sgio.readOutputState

sgio.readOutputState(filename: str, file_format: str, analysis: str, model_type: str = '', extension: str = 'ele', sg: StructureGene | None = None, tool_version: str = '', num_cases: int = 1, num_elements: int = 0, **kwargs) StateCase

Read SG dehomogenization or failure analysis output.

Parameters:
filename : str

Name of the SG analysis output file

file_format : str

Format of the SG data file. Choose one from ‘vabs’, ‘sc’, ‘swiftcomp’.

analysis : str

Indicator of SG analysis. Choose one from

  • ’d’ or ‘l’: Dehomogenization

  • ’fi’: Initial failure indices and strength ratios

model_type : str

Type of the macro structural model. 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

extension : str or list of str

Extension of the output data. Default is ‘ele’. Include one or more of the following keywords:

  • ’u’: Displacement

  • ’ele’: Element strain and stress

sg : StructureGene

Structure gene object

tool_version : str

Version of the tool

num_cases : int

Number of load cases

Returns:

State case object

Return type:

StateCase