WRApplication
External kratos "application" for multiscale time integration.
|
Base class for composable solvers that handle their domains asynchronously. More...
Classes | |
class | AdvanceScope |
Embed AsyncSolver._Advance in a SolutionStageScope. More... | |
class | PostprocessScope |
Embed AsyncSolver._Postprocess in a SolutionStageScope. More... | |
class | PreprocessScope |
Embed AsyncSolver._Preprocess in a SolutionStageScope. More... | |
class | SolutionLoopScope |
Embed AsyncSolver.Run in a SolutionStageScope. More... | |
class | SolverScope |
Embed some part of AsyncSolver in a SolutionStageScope. More... | |
class | SynchronizeScope |
Embed AsyncSolver._Synchronize in a SolutionStageScope. More... | |
Public Member Functions | |
Public Members | |
"AsyncSolver.PreprocessScope" | Preprocess (self) |
Tasks to run before any calls to AsyncSolver.Advance. More... | |
"AsyncSolver.AdvanceScope" | Advance (self) |
Repeatedly solve the partition until synchronization becomes necessary. More... | |
"AsyncSolver.SynchronizeScope" | Synchronize (self) |
Perform data synchronization and coupling tasks between partitions. More... | |
"AsyncSolver.PostprocessScope" | Postprocess (self) |
Tasks to run if no more AsyncSolver.Advance calls are made. More... | |
"AsyncSolver.SolutionLoopScope" | RunSolutionLoop (self) |
"AsyncSolver" | GetSolver (self, str partition_name) |
Get the solver assigned to the specified partition. More... | |
Properties | |
KratosMultiphysics.Model | model (self) |
"collections.abc.KeysView[str]" | partitions (self) |
KratosMultiphysics.Parameters | parameters (self) |
WRApp.ModelPredicate | synchronization_predicate (self) |
Static Members | |
KratosMultiphysics.Parameters | GetDefaultParameters (cls) |
Base class for composable solvers that handle their domains asynchronously.
@classname AsyncSolver
Default parameters:
Each partition has a solver (AsyncSolver) and a predicate for determining when the partition requires synchronization (ModelPredicate ), both of which must be present in the RuntimeRegistry. Partition configuration is expected in the following format:
"termination_predicate" controls when to break the solution loop. It should define a ModelPartPredicate accessible from the registry:
"AsyncSolver.AdvanceScope" Advance | ( | self | ) |
Repeatedly solve the partition until synchronization becomes necessary.
KratosMultiphysics.Parameters GetDefaultParameters | ( | cls | ) |
Reimplemented in WrappedAnalysis, and CoupledAsyncSolver.
"AsyncSolver" GetSolver | ( | self, | |
str | partition_name | ||
) |
Get the solver assigned to the specified partition.
KratosMultiphysics.Model model | ( | self | ) |
KratosMultiphysics.Parameters parameters | ( | self | ) |
"collections.abc.KeysView[str]" partitions | ( | self | ) |
"AsyncSolver.PostprocessScope" Postprocess | ( | self | ) |
Tasks to run if no more AsyncSolver.Advance calls are made.
"AsyncSolver.PreprocessScope" Preprocess | ( | self | ) |
Tasks to run before any calls to AsyncSolver.Advance.
"AsyncSolver.SolutionLoopScope" RunSolutionLoop | ( | self | ) |
WRApp.ModelPredicate synchronization_predicate | ( | self | ) |
"AsyncSolver.SynchronizeScope" Synchronize | ( | self | ) |
Perform data synchronization and coupling tasks between partitions.