KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
|
Kratos Multiphysics multistage project container. More...
Public Member Functions | |
None | __init__ (self, KratosMultiphysics.Parameters settings) |
Constructs the multistage project container instance and sets current Kratos version in the settings. More... | |
KratosMultiphysics.Model | GetModel (self) |
Returns the current multistage simulation model. More... | |
KratosMultiphysics.Parameters | GetSettings (self) |
Returns the current multistage simulation settings. More... | |
dict | GetOutputData (self) |
Returns the current multistage simulation output data container. More... | |
dict | GetActiveStages (self) |
Returns the current multistage simulation active stages dictionary. More... | |
None | AddActiveStage (self, str stage_name, AnalysisStage stage_instance) |
Adds the provided stage instance to the active stages dictionary. More... | |
None | RemoveActiveStage (self, str stage_name) |
Removes an active stage instance from the current stages dictionary. More... | |
None | Save (self, pathlib.Path save_folder_path, pathlib.Path checkpoint_file_path, Optional[pathlib.Path] output_settings_file_path=None) |
Saves the Project current status. More... | |
None | Load (self, pathlib.Path loading_path) |
Loads a saved Project status into current one. More... | |
Kratos Multiphysics multistage project container.
This class has two main purposes. First one is to hold the multistage components (output data, active stages and model) Second one is to perform the checkpoint save and load operations. Member variables: __settings -- Kratos parameters object with the multistage simulation settings __output_data -- Dictionary containing the stages data retrieved from GetFinalData __active_stages -- Dictionary containing the active (alive) stage instances __model -- Model instance
None project.Project.__init__ | ( | self, | |
KratosMultiphysics.Parameters | settings | ||
) |
Constructs the multistage project container instance and sets current Kratos version in the settings.
None project.Project.AddActiveStage | ( | self, | |
str | stage_name, | ||
AnalysisStage | stage_instance | ||
) |
Adds the provided stage instance to the active stages dictionary.
dict project.Project.GetActiveStages | ( | self | ) |
Returns the current multistage simulation active stages dictionary.
KratosMultiphysics.Model project.Project.GetModel | ( | self | ) |
Returns the current multistage simulation model.
dict project.Project.GetOutputData | ( | self | ) |
Returns the current multistage simulation output data container.
KratosMultiphysics.Parameters project.Project.GetSettings | ( | self | ) |
Returns the current multistage simulation settings.
None project.Project.Load | ( | self, | |
pathlib.Path | loading_path | ||
) |
Loads a saved Project status into current one.
None project.Project.RemoveActiveStage | ( | self, | |
str | stage_name | ||
) |
Removes an active stage instance from the current stages dictionary.
None project.Project.Save | ( | self, | |
pathlib.Path | save_folder_path, | ||
pathlib.Path | checkpoint_file_path, | ||
Optional[pathlib.Path] | output_settings_file_path = None |
||
) |
Saves the Project current status.