sgio.write_material_to_json#

sgio.write_material_to_json(material: CauchyContinuumModel, file_path: str, *, exclude_none: bool = True, indent: int | None = None) None#

Write one material to JSON using the standard section/material record schema.

Parameters:
  • material (CauchyContinuumModel) – Material model to serialize.

  • file_path (str) – Target JSON file path.

  • exclude_none (bool, optional) – If True, omit fields whose value is None.

  • indent (int or None, optional) – JSON indentation passed to json.dump().