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 structural mechanics solvers. More...
Public Member Functions | |
def | __init__ (self, model, custom_settings) |
def | GetDefaultParameters (cls) |
def | ValidateSettings (self) |
This function validates the settings of the solver. More... | |
def | AddVariables (self) |
def | GetMinimumBufferSize (self) |
def | AddDofs (self) |
def | GetDofsList (self) |
This function creates and returns a list with the DOFs defined in the conditions and elements specifications. More... | |
def | ImportModelPart (self) |
This function imports the ModelPart. More... | |
def | PrepareModelPart (self) |
def | Initialize (self) |
Perform initialization after adding nodal variables and dofs to the main model part. More... | |
def | InitializeSolutionStep (self) |
def | Predict (self) |
def | SolveSolutionStep (self) |
def | FinalizeSolutionStep (self) |
def | AdvanceInTime (self, current_time) |
def | ComputeDeltaTime (self) |
def | GetComputingModelPart (self) |
def | ExportModelPart (self) |
def | SetEchoLevel (self, level) |
def | Clear (self) |
def | Check (self) |
def | import_constitutive_laws (self) |
def | is_restarted (self) |
Public Attributes | |
main_model_part | |
mpc_block_builder_initialized | |
The base class for structural mechanics solvers.
This class provides functions for importing and exporting models, adding nodal variables and dofs and solving each solution step. Derived classes must override the function _CreateScheme which constructs and returns a solution scheme. Depending on the type of solver, derived classes may also need to override the following functions: _CreateScheme _CreateConvergenceCriterion _CreateLinearSolver _CreateBuilderAndSolver _CreateSolutionStrategy The mechanical_solution_strategy, builder_and_solver, etc. should alway be retrieved using the getter functions _GetSolutionStrategy, get_builder_and_solver, etc. from this base class. Only the member variables listed below should be accessed directly. Public member variables: model -- the model containing the modelpart used to construct the solver. settings -- Kratos parameters containing solver settings.
def structural_mechanics_solver.MechanicalSolver.__init__ | ( | self, | |
model, | |||
custom_settings | |||
) |
def structural_mechanics_solver.MechanicalSolver.AddDofs | ( | self | ) |
def structural_mechanics_solver.MechanicalSolver.AddVariables | ( | self | ) |
def structural_mechanics_solver.MechanicalSolver.AdvanceInTime | ( | self, | |
current_time | |||
) |
def structural_mechanics_solver.MechanicalSolver.Check | ( | self | ) |
def structural_mechanics_solver.MechanicalSolver.Clear | ( | self | ) |
def structural_mechanics_solver.MechanicalSolver.ComputeDeltaTime | ( | self | ) |
def structural_mechanics_solver.MechanicalSolver.ExportModelPart | ( | self | ) |
def structural_mechanics_solver.MechanicalSolver.FinalizeSolutionStep | ( | self | ) |
def structural_mechanics_solver.MechanicalSolver.GetComputingModelPart | ( | self | ) |
def structural_mechanics_solver.MechanicalSolver.GetDefaultParameters | ( | cls | ) |
def structural_mechanics_solver.MechanicalSolver.GetDofsList | ( | self | ) |
This function creates and returns a list with the DOFs defined in the conditions and elements specifications.
def structural_mechanics_solver.MechanicalSolver.GetMinimumBufferSize | ( | self | ) |
def structural_mechanics_solver.MechanicalSolver.import_constitutive_laws | ( | self | ) |
def structural_mechanics_solver.MechanicalSolver.ImportModelPart | ( | self | ) |
This function imports the ModelPart.
def structural_mechanics_solver.MechanicalSolver.Initialize | ( | self | ) |
Perform initialization after adding nodal variables and dofs to the main model part.
def structural_mechanics_solver.MechanicalSolver.InitializeSolutionStep | ( | self | ) |
def structural_mechanics_solver.MechanicalSolver.is_restarted | ( | self | ) |
def structural_mechanics_solver.MechanicalSolver.Predict | ( | self | ) |
def structural_mechanics_solver.MechanicalSolver.PrepareModelPart | ( | self | ) |
def structural_mechanics_solver.MechanicalSolver.SetEchoLevel | ( | self, | |
level | |||
) |
def structural_mechanics_solver.MechanicalSolver.SolveSolutionStep | ( | self | ) |
def structural_mechanics_solver.MechanicalSolver.ValidateSettings | ( | self | ) |
This function validates the settings of the solver.
structural_mechanics_solver.MechanicalSolver.main_model_part |
structural_mechanics_solver.MechanicalSolver.mpc_block_builder_initialized |