Section#
- class sgio.Section(name: str, material: str, orientation: float = 0.0, property_id: int | None = None, source_ids: dict[str, int] = <factory>, extras: dict[str, ~typing.Any] = <factory>)#
Bases:
objectFinite-element section definition for SG material regions.
- Parameters:
name (str) – Section name.
material (str) – Material name referenced from
FEModel.materials.orientation (float, optional) – In-plane material orientation angle in degrees.
property_id (int or None, optional) – Internal element->section binding key. It is the integer that tags each element in
mesh.cell_data["property_id"]and keys the legacymocombosview; sections read from a mesh are created from it. It is an internal implementation detail, not a user-authored field and not part of the public SG-on-Gmsh serialization contract (the sidecars usename/id, neverproperty_id). For the id a section carried in a specific solver file, usesource_idsinstead.source_ids (dict[str, int], optional) – Per-format provenance of the integer id this section carried in the solver file it was read from, keyed by format name (e.g.
{"vabs": 3}). Enables same-format round-trip fidelity: a writer prefers the remembered id for its format, then fills gaps deterministically. Not user-authored; populated by adapter readers.extras (dict[str, Any], optional) – Additional adapter-specific metadata.
Orientation#
- class sgio.Orientation(name: str, angle: float = 0.0, extras: dict[str, ~typing.Any] = <factory>)#
Bases:
objectPlaceholder FE orientation object.
- Parameters:
name (str) – Orientation name.
angle (float, optional) – Simple scalar orientation angle in degrees.
extras (dict[str, Any], optional) – Additional adapter-specific metadata.