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, output_format: int = 0, **kwargs) list[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

  • num_elements (int) – Number of elements

  • output_format (int) –

    Format of the output file. Choose one from

    • 0 - Native format

    • 1 - Gmsh format

Returns:

List of state case objects

Return type:

list[StateCase]