sgio.read#
- sgio.read(filename: str, file_format: str, model_type: str | None = None, format_version: str = '', sgdim: int | None = None, sg: StructureGene | None = None, model_space: str | None = None, omega: float | None = None, **kwargs) StructureGene#
Read SG data file.
- Parameters:
filename (str) – Name of the SG data file.
file_format (str) – Format of the SG data file. Choose one from ‘abaqus’, ‘vabs’, ‘sc’, ‘swiftcomp’, ‘gmsh’, ‘sg_manifest’.
model_type (str, optional) –
Type of the macro structural model. Required for ‘swiftcomp’; for ‘abaqus’ it may be left out and given to
write()instead; for ‘sg_manifest’ it must agree with the manifest. 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
format_version (str, optional) – Version of the format.
sgdim (int, optional) – Dimension of the geometry. Required for ‘abaqus’; for ‘sg_manifest’ it must agree with the manifest. Choose one from 1, 2, 3.
sg (StructureGene, optional) – Pre-built structure gene object (if not given, one is constructed).
model_space (str, optional) – Mapping from mesh coordinate axes to SG axes, stored on the SG. Required when the SG is 1D or 2D and the format does not define it (‘vabs’ and ‘swiftcomp’ do); for ‘sg_manifest’ it must agree with the manifest.
omega (float, optional) – SG measure written to SwiftComp input, stored on the SG. By default it is computed from the mesh bounding box at write time.
- Returns:
The parsed structure gene object.
- Return type:
- Raises:
IncompleteModelDataError – If a required SG argument is missing.