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.
Public Member Functions | Public Attributes | List of all members
FemDemMechanicalSolver.FemDemMechanicalSolver Class Reference

The base class for solid mechanics solvers. More...

Inheritance diagram for FemDemMechanicalSolver.FemDemMechanicalSolver:
Collaboration diagram for FemDemMechanicalSolver.FemDemMechanicalSolver:

Public Member Functions

def __init__ (self, main_model_part, custom_settings)
 
def GetMinimumBufferSize (self)
 
def SetVariables (self)
 
def AddVariables (self)
 
def AddDofs (self)
 
def ImportModelPart (self)
 
def ExportModelPart (self)
 
def Initialize (self)
 Perform initialization after adding nodal variables and dofs to the main model part. More...
 
def GetComputingModelPart (self)
 
def GetOutputVariables (self)
 
def ComputeDeltaTime (self)
 
def SaveRestart (self)
 
def Solve (self)
 
def InitializeSolutionStep (self)
 
def Predict (self)
 
def SolveSolutionStep (self)
 
def FinalizeSolutionStep (self)
 
def SetEchoLevel (self, level)
 
def Clear (self)
 
def Check (self)
 

Public Attributes

 settings
 
 main_model_part
 
 nodal_variables
 
 dof_variables
 
 dof_reactions
 
 computing_model_part_name
 

Detailed Description

The base class for solid 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 _create_mechanical_solver which
constructs and returns a valid solving strategy. Depending on the type of
solver, derived classes may also need to override the following functions:

_create_solution_scheme
_create_convergence_criterion
_create_linear_solver
_create_builder_and_solver
_create_mechanical_solver

The mechanical_solver, builder_and_solver, etc. should alway be retrieved
using the getter functions _get_mechanical_solver, _get_builder_and_solver,
etc. from this base class.

Only the member variables listed below should be accessed directly.

Public member variables:
settings -- Kratos parameters containing solver settings.
main_model_part -- the model part used to construct the solver.

Constructor & Destructor Documentation

◆ __init__()

def FemDemMechanicalSolver.FemDemMechanicalSolver.__init__ (   self,
  main_model_part,
  custom_settings 
)

Member Function Documentation

◆ AddDofs()

def FemDemMechanicalSolver.FemDemMechanicalSolver.AddDofs (   self)

◆ AddVariables()

def FemDemMechanicalSolver.FemDemMechanicalSolver.AddVariables (   self)

◆ Check()

def FemDemMechanicalSolver.FemDemMechanicalSolver.Check (   self)

◆ Clear()

def FemDemMechanicalSolver.FemDemMechanicalSolver.Clear (   self)

◆ ComputeDeltaTime()

def FemDemMechanicalSolver.FemDemMechanicalSolver.ComputeDeltaTime (   self)

◆ ExportModelPart()

def FemDemMechanicalSolver.FemDemMechanicalSolver.ExportModelPart (   self)

◆ FinalizeSolutionStep()

def FemDemMechanicalSolver.FemDemMechanicalSolver.FinalizeSolutionStep (   self)

◆ GetComputingModelPart()

def FemDemMechanicalSolver.FemDemMechanicalSolver.GetComputingModelPart (   self)

◆ GetMinimumBufferSize()

def FemDemMechanicalSolver.FemDemMechanicalSolver.GetMinimumBufferSize (   self)

◆ GetOutputVariables()

def FemDemMechanicalSolver.FemDemMechanicalSolver.GetOutputVariables (   self)

◆ ImportModelPart()

def FemDemMechanicalSolver.FemDemMechanicalSolver.ImportModelPart (   self)

◆ Initialize()

def FemDemMechanicalSolver.FemDemMechanicalSolver.Initialize (   self)

Perform initialization after adding nodal variables and dofs to the main model part.

◆ InitializeSolutionStep()

def FemDemMechanicalSolver.FemDemMechanicalSolver.InitializeSolutionStep (   self)

◆ Predict()

def FemDemMechanicalSolver.FemDemMechanicalSolver.Predict (   self)

◆ SaveRestart()

def FemDemMechanicalSolver.FemDemMechanicalSolver.SaveRestart (   self)

◆ SetEchoLevel()

def FemDemMechanicalSolver.FemDemMechanicalSolver.SetEchoLevel (   self,
  level 
)

◆ SetVariables()

def FemDemMechanicalSolver.FemDemMechanicalSolver.SetVariables (   self)

◆ Solve()

def FemDemMechanicalSolver.FemDemMechanicalSolver.Solve (   self)

◆ SolveSolutionStep()

def FemDemMechanicalSolver.FemDemMechanicalSolver.SolveSolutionStep (   self)

Member Data Documentation

◆ computing_model_part_name

FemDemMechanicalSolver.FemDemMechanicalSolver.computing_model_part_name

◆ dof_reactions

FemDemMechanicalSolver.FemDemMechanicalSolver.dof_reactions

◆ dof_variables

FemDemMechanicalSolver.FemDemMechanicalSolver.dof_variables

◆ main_model_part

FemDemMechanicalSolver.FemDemMechanicalSolver.main_model_part

◆ nodal_variables

FemDemMechanicalSolver.FemDemMechanicalSolver.nodal_variables

◆ settings

FemDemMechanicalSolver.FemDemMechanicalSolver.settings

The documentation for this class was generated from the following file: