stem.IO.kratos_solver_io module
- class stem.IO.kratos_solver_io.KratosSolverIO(ndim: int, domain: str)
Bases:
objectClass containing methods to write Kratos solver settings
- Attributes:
ndim (int): The number of dimensions of the problem (2 or 3).
domain (str): The name of the Kratos domain.
Class to read and write Kratos solver settings.
- Args:
ndim (int): The number of dimensions of the problem (2 or 3).
domain (str): The name of the Kratos domain.
- create_settings_dictionary(problem_data: Problem, mesh_file_name: str, materials_file_name: str, model_parts: List[ModelPart]) Dict[str, Any]
Creates a dictionary containing the solver settings
- Args:
problem_data (
stem.solver.Problem): The problem datamesh_file_name (str): The name of the mesh file
materials_file_name (str): The name of the materials file
model_parts (List[
stem.model_part.ModelPart]): The list of model parts
- Returns:
Dict[str, Any]: dictionary containing the problem data and the solver settings