sgio.convert#
- sgio.convert(file_name_in: str, file_name_out: str, file_format_in: str, file_format_out: str, file_version_in: str = '', file_version_out: str = '', analysis: str = 'h', sgdim: int = 3, model_space: str = 'xy', prop_ref_y: str = 'x', model_type: str = 'SD1', vabs_format_version: int = 1, str_format_int: str = '8d', str_format_float: str = '20.12e', mesh_only: bool = False, sections_json: str | None = None, config_json: str | None = None) StructureGene#
Convert the Structure Gene data file format.
- Parameters:
file_name_in (str) – File name before conversion
file_name_out (str) – File name after conversion
file_format_in (str) – Format of the input file. Choose one from ‘vabs’, ‘sc’, ‘swiftcomp’.
file_format_out (str) – Format of the output file. Choose one from ‘vabs’, ‘sc’, ‘swiftcomp’.
file_version_in (str, optional) – Version of the input file, by default ‘’
file_version_out (str, optional) – Version of the output file, by default ‘’
analysis (str, optional) –
Indicator of Structure Gene 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
vabs_format_version (int, optional) – Format for the VABS input, by default 1
str_format_int (str, optional) – String formating integers, by default ‘8d’
str_format_float (str, optional) – String formating floats, by default ‘20.12e’
mesh_only (bool, optional) – If write meshing data only, by default False
sections_json (str, optional) – Path to a
sections.jsonsidecar. Required whenfile_format_inis'gmsh', since a bare.mshcarries mesh data only; seesgio.iofunc.gmsh.bundle.read_sg_from_gmsh_bundle().config_json (str, optional) – Path to a
config.jsonsidecar carrying the analysis config, used together withsections_jsonfor the Gmsh bundle path.