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.
|
The base class for the AnalysisStage-classes in the applications Changes to this BaseClass have to be discussed first! More...
Public Member Functions | |
def | __init__ (self, model, project_parameters) |
The constructor of the AnalysisStage-Object. More... | |
def | Run (self) |
This function executes the entire AnalysisStage It can be overridden by derived classes. More... | |
def | KeepAdvancingSolutionLoop (self) |
This function specifies the stopping criteria for breaking the solution loop It can be overridden by derived classes. More... | |
def | RunSolutionLoop (self) |
This function executes the solution loop of the AnalysisStage It can be overridden by derived classes. More... | |
def | Initialize (self) |
This function initializes the AnalysisStage Usage: It is designed to be called ONCE, BEFORE the execution of the solution-loop This function has to be implemented in deriving classes! More... | |
def | Finalize (self) |
This function finalizes the AnalysisStage Usage: It is designed to be called ONCE, AFTER the execution of the solution-loop. More... | |
def | GetFinalData (self) |
Returns the final data dictionary. More... | |
def | InitializeSolutionStep (self) |
This function performs all the required operations that should be executed (for each step) BEFORE solving the solution step. More... | |
def | PrintAnalysisStageProgressInformation (self) |
def | FinalizeSolutionStep (self) |
This function performs all the required operations that should be executed (for each step) AFTER solving the solution step. More... | |
def | OutputSolutionStep (self) |
This function printed / writes output files after the solution of a step. More... | |
def | Check (self) |
This function checks the AnalysisStage. More... | |
def | Clear (self) |
This function clears the AnalysisStage. More... | |
def | ModifyInitialProperties (self) |
this is the place to eventually modify material properties in the stage More... | |
def | ModifyInitialGeometry (self) |
this is the place to eventually modify geometry (for example moving nodes) in the stage More... | |
def | ModifyAfterSolverInitialize (self) |
this is the place to eventually do any modification that requires the solver to be initialized More... | |
def | ApplyBoundaryConditions (self) |
here the boundary conditions is applied, by calling the InitializeSolutionStep function of the processes More... | |
def | ChangeMaterialProperties (self) |
this function is where the user could change material parameters as a part of the solution step More... | |
None | Save (self, KratosMultiphysics.StreamSerializer serializer) |
Serializes current analysis stage instance. More... | |
None | Load (self, KratosMultiphysics.StreamSerializer serializer) |
Loads current analysis stage instance. More... | |
Public Attributes | |
model | |
project_parameters | |
echo_level | |
Get echo level and parallel type. More... | |
parallel_type | |
time | |
end_time | |
here we initialize user-provided processes More... | |
The base class for the AnalysisStage-classes in the applications Changes to this BaseClass have to be discussed first!
def analysis_stage.AnalysisStage.__init__ | ( | self, | |
model, | |||
project_parameters | |||
) |
The constructor of the AnalysisStage-Object.
It is intended to be called from the constructor of deriving classes: super(DerivedAnalysis, self).__init__(project_parameters) Keyword arguments: self -- It signifies an instance of a class. model -- The Model to be used project_parameters -- The ProjectParameters used
def analysis_stage.AnalysisStage.ApplyBoundaryConditions | ( | self | ) |
here the boundary conditions is applied, by calling the InitializeSolutionStep function of the processes
def analysis_stage.AnalysisStage.ChangeMaterialProperties | ( | self | ) |
this function is where the user could change material parameters as a part of the solution step
def analysis_stage.AnalysisStage.Check | ( | self | ) |
This function checks the AnalysisStage.
Keyword arguments: self -- It signifies an instance of a class.
def analysis_stage.AnalysisStage.Clear | ( | self | ) |
This function clears the AnalysisStage.
Keyword arguments: self -- It signifies an instance of a class.
def analysis_stage.AnalysisStage.Finalize | ( | self | ) |
This function finalizes the AnalysisStage Usage: It is designed to be called ONCE, AFTER the execution of the solution-loop.
def analysis_stage.AnalysisStage.FinalizeSolutionStep | ( | self | ) |
This function performs all the required operations that should be executed (for each step) AFTER solving the solution step.
def analysis_stage.AnalysisStage.GetFinalData | ( | self | ) |
Returns the final data dictionary.
The main purpose of this function is to retrieve any data (in a key-value format) from outside the stage. Note that even though it can be called at any point, it is intended to be called at the end of the stage run.
def analysis_stage.AnalysisStage.Initialize | ( | self | ) |
This function initializes the AnalysisStage Usage: It is designed to be called ONCE, BEFORE the execution of the solution-loop This function has to be implemented in deriving classes!
def analysis_stage.AnalysisStage.InitializeSolutionStep | ( | self | ) |
This function performs all the required operations that should be executed (for each step) BEFORE solving the solution step.
def analysis_stage.AnalysisStage.KeepAdvancingSolutionLoop | ( | self | ) |
This function specifies the stopping criteria for breaking the solution loop It can be overridden by derived classes.
None analysis_stage.AnalysisStage.Load | ( | self, | |
KratosMultiphysics.StreamSerializer | serializer | ||
) |
Loads current analysis stage instance.
From the given serializer, this method restores current class from a pure Python status (pickable) to the one in the serializer.
def analysis_stage.AnalysisStage.ModifyAfterSolverInitialize | ( | self | ) |
this is the place to eventually do any modification that requires the solver to be initialized
def analysis_stage.AnalysisStage.ModifyInitialGeometry | ( | self | ) |
this is the place to eventually modify geometry (for example moving nodes) in the stage
def analysis_stage.AnalysisStage.ModifyInitialProperties | ( | self | ) |
this is the place to eventually modify material properties in the stage
def analysis_stage.AnalysisStage.OutputSolutionStep | ( | self | ) |
This function printed / writes output files after the solution of a step.
def analysis_stage.AnalysisStage.PrintAnalysisStageProgressInformation | ( | self | ) |
def analysis_stage.AnalysisStage.Run | ( | self | ) |
This function executes the entire AnalysisStage It can be overridden by derived classes.
def analysis_stage.AnalysisStage.RunSolutionLoop | ( | self | ) |
This function executes the solution loop of the AnalysisStage It can be overridden by derived classes.
None analysis_stage.AnalysisStage.Save | ( | self, | |
KratosMultiphysics.StreamSerializer | serializer | ||
) |
Serializes current analysis stage instance.
This method is intended to make the class pure Python (pickable). This means serialize all the Kratos objects, that is to say all the objects coming from Pybind, with the provided serializer. After the serialization, it is required to assign None value to all the objects in order to make the class pickable.
analysis_stage.AnalysisStage.echo_level |
Get echo level and parallel type.
analysis_stage.AnalysisStage.end_time |
here we initialize user-provided processes
Stepping and time settings
analysis_stage.AnalysisStage.model |
analysis_stage.AnalysisStage.parallel_type |
analysis_stage.AnalysisStage.project_parameters |
analysis_stage.AnalysisStage.time |