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 convection-diffusion solvers. More...
Public Member Functions | |
def | __init__ (self, model, custom_settings) |
def | GetDefaultParameters (cls) |
def | AddVariables (self, target_model_part=None) |
def | GetMinimumBufferSize (self) |
def | AddDofs (self) |
def | GetDofsList (self) |
This function creates and returns a list with the DOFs defined in the Kratos parameters settings Note that element GetSpecifications method cannot be used in this case as DOF variables are a priori unknown. 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 | GetOutputVariables (self) |
def | Solve (self) |
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_materials (self) |
def | is_restarted (self) |
def | get_epetra_communicator (self) |
Public Attributes | |
min_buffer_size | |
main_model_part | |
solver_imports_model_part | |
distributed_model_part_importer | |
The base class for convection-diffusion 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 convection_diffusion_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 convection_diffusion_solver.ConvectionDiffusionSolver.__init__ | ( | self, | |
model, | |||
custom_settings | |||
) |
Reimplemented in convection_diffusion_transient_solver.ConvectionDiffusionTransientSolver, convection_diffusion_semi_eulerian_solver.ConvectionDiffusionSemiImplicitSolver, convection_diffusion_explicit_solver.ConvectionDiffusionExplicitSolver, convection_diffusion_stationary_solver.ConvectionDiffusionStationarySolver, convection_diffusion_stationary_matrix_solver.ConvectionDiffusionStationaryMatrixSolver, and convection_diffusion_stationary_embedded_solver.ConvectionDiffusionStationaryEmbeddedSolver.
def convection_diffusion_solver.ConvectionDiffusionSolver.AddDofs | ( | self | ) |
def convection_diffusion_solver.ConvectionDiffusionSolver.AddVariables | ( | self, | |
target_model_part = None |
|||
) |
def convection_diffusion_solver.ConvectionDiffusionSolver.AdvanceInTime | ( | self, | |
current_time | |||
) |
def convection_diffusion_solver.ConvectionDiffusionSolver.Check | ( | self | ) |
def convection_diffusion_solver.ConvectionDiffusionSolver.Clear | ( | self | ) |
def convection_diffusion_solver.ConvectionDiffusionSolver.ComputeDeltaTime | ( | self | ) |
def convection_diffusion_solver.ConvectionDiffusionSolver.ExportModelPart | ( | self | ) |
def convection_diffusion_solver.ConvectionDiffusionSolver.FinalizeSolutionStep | ( | self | ) |
def convection_diffusion_solver.ConvectionDiffusionSolver.get_epetra_communicator | ( | self | ) |
def convection_diffusion_solver.ConvectionDiffusionSolver.GetComputingModelPart | ( | self | ) |
def convection_diffusion_solver.ConvectionDiffusionSolver.GetDefaultParameters | ( | cls | ) |
Reimplemented in convection_diffusion_transient_solver.ConvectionDiffusionTransientSolver, convection_diffusion_stationary_embedded_solver.ConvectionDiffusionStationaryEmbeddedSolver, convection_diffusion_semi_eulerian_solver.ConvectionDiffusionSemiImplicitSolver, and convection_diffusion_explicit_solver.ConvectionDiffusionExplicitSolver.
def convection_diffusion_solver.ConvectionDiffusionSolver.GetDofsList | ( | self | ) |
This function creates and returns a list with the DOFs defined in the Kratos parameters settings Note that element GetSpecifications method cannot be used in this case as DOF variables are a priori unknown.
def convection_diffusion_solver.ConvectionDiffusionSolver.GetMinimumBufferSize | ( | self | ) |
def convection_diffusion_solver.ConvectionDiffusionSolver.GetOutputVariables | ( | self | ) |
def convection_diffusion_solver.ConvectionDiffusionSolver.import_materials | ( | self | ) |
def convection_diffusion_solver.ConvectionDiffusionSolver.ImportModelPart | ( | self | ) |
This function imports the ModelPart.
def convection_diffusion_solver.ConvectionDiffusionSolver.Initialize | ( | self | ) |
Perform initialization after adding nodal variables and dofs to the main model part.
Reimplemented in convection_diffusion_stationary_embedded_solver.ConvectionDiffusionStationaryEmbeddedSolver, convection_diffusion_semi_eulerian_solver.ConvectionDiffusionSemiImplicitSolver, and convection_diffusion_explicit_solver.ConvectionDiffusionExplicitSolver.
def convection_diffusion_solver.ConvectionDiffusionSolver.InitializeSolutionStep | ( | self | ) |
def convection_diffusion_solver.ConvectionDiffusionSolver.is_restarted | ( | self | ) |
def convection_diffusion_solver.ConvectionDiffusionSolver.Predict | ( | self | ) |
def convection_diffusion_solver.ConvectionDiffusionSolver.PrepareModelPart | ( | self | ) |
def convection_diffusion_solver.ConvectionDiffusionSolver.SetEchoLevel | ( | self, | |
level | |||
) |
def convection_diffusion_solver.ConvectionDiffusionSolver.Solve | ( | self | ) |
def convection_diffusion_solver.ConvectionDiffusionSolver.SolveSolutionStep | ( | self | ) |
convection_diffusion_solver.ConvectionDiffusionSolver.distributed_model_part_importer |
convection_diffusion_solver.ConvectionDiffusionSolver.main_model_part |
convection_diffusion_solver.ConvectionDiffusionSolver.min_buffer_size |
convection_diffusion_solver.ConvectionDiffusionSolver.solver_imports_model_part |