stem.IO.kratos_material_io module

class stem.IO.kratos_material_io.KratosMaterialIO(ndim: int, domain: str)

Bases: object

Class containing methods to write materials to Kratos

Attributes:
  • ndim (int): number of dimensions of the mesh

Constructor of KratosMaterialIO class

Args:
  • ndim (int): number of dimensions of the mesh

create_material_dict(part_name: str, material: SoilMaterial | StructuralMaterial | InterfaceMaterial, material_id: int) Dict[str, Any]

Creates a dictionary containing the material parameters

Args:
Raises:
  • ValueError: if material is not of either SoilMaterial, InterfaceMaterial or StructuralMaterial type

Returns:
  • Dict[str, Any]: dictionary containing the material parameters