sgio.convert¶
-
sgio.convert(file_name_in, file_name_out, file_format_in, file_format_out, format_version_in=
''
, format_version_out=''
, analysis='h'
, sgdim=3
, model_type='SD1'
, sg_fmt=1
, sfi='8d'
, sff='20.12e'
, mesh_only=False
)¶ Convert the SG data file format.
- Parameters:¶
- file_name_in : str¶
File name before conversion
- file_name_out : str¶
File name after conversion
- file_format_in : str, optional¶
Format of the input file. Choose one from ‘vabs’, ‘sc’, ‘swiftcomp’.
- file_format_out : str, optional¶
Format of the output file. Choose one from ‘vabs’, ‘sc’, ‘swiftcomp’.
- format_version_in : str, optional¶
Version of the input file, by default ‘’
- format_version_out : str, optional¶
Version of the output file, by default ‘’
- analysis : str, optional¶
Indicator of SG analysis. Default is ‘h’. Choose one from
’h’: Homogenization
’d’ or ‘l’: Dehomogenization
’fi’: Initial failure indices and strength ratios
- sgdim : int¶
Dimension of the geometry. Default is 3. Choose one from 1, 2, 3.
- model_type : str¶
Type of the macro structural model. Default is ‘SD1’. Choose one from
’SD1’: Cauchy continuum model
’PL1’: Kirchhoff-Love plate/shell model
’PL2’: Reissner-Mindlin plate/shell model
’BM1’: Euler-Bernoulli beam model
’BM2’: Timoshenko beam model
- sg_fmt : int, optional¶
Format for the VABS input, by default 1
- sfi : str, optional¶
String formating integers, by default ‘8d’
- sff : str, optional¶
String formating floats, by default ‘20.12e’
- mesh_only : bool, optional¶
If write meshing data only, by default False