Finite Element Model#

class sgio.FEModel(name: str = '', mesh: ~sgio.core.mesh.SGMesh | None = None, materials: dict[str, object] = <factory>, orientations: dict[str, ~sgio.core.section.Orientation] = <factory>, sections: dict[str, ~sgio.core.section.Section] = <factory>, material_source_ids: dict[str, dict[str, int]] = <factory>, extras: dict[str, object] = <factory>)#

Bases: object

Finite element core model used by StructureGene.

Parameters:
  • name (str, optional) – Model name.

  • mesh (SGMesh or None, optional) – Finite element mesh.

name#

Model name.

Type:

str

mesh#

Finite element mesh.

Type:

SGMesh or None

materials#

Materials indexed by material name.

Type:

dict[str, Any]

orientations#

FE orientation objects indexed by name.

Type:

dict[str, Orientation]

sections#

FE sections indexed by section name.

Type:

dict[str, Section]

material_source_ids#

Per-format provenance of solver material ids, keyed by material name then by format name (e.g. {"steel": {"vabs": 3}}). Enables same-format round-trip fidelity for the 1..n material labels that VABS/SwiftComp files require. Not user-authored; populated by adapter readers and consumed by writers via prefer-then-fill numbering.

Type:

dict[str, dict[str, int]]

extras#

Extra FE-level metadata.

Type:

dict[str, Any]