10 #if !defined(KRATOS_SOLUTION_STRATEGY_H_INCLUDED)
11 #define KRATOS_SOLUTION_STRATEGY_H_INCLUDED
47 template<
class TSparseSpace,
112 if( this->
IsNot(LocalFlagType::ADAPTIVE_SOLUTION) )
158 for (ModelPart::ElementsContainerType::iterator it_elem =
GetModelPart().ElementsBegin();
bool IsNot(Flags const &rOther) const
Definition: flags.h:291
This class aims to manage meshes for multi-physics simulations.
Definition: model_part.h:77
ConditionIterator ConditionsBegin(IndexType ThisIndex=0)
Definition: model_part.h:1361
ProcessInfo & GetProcessInfo()
Definition: model_part.h:1746
ElementIterator ElementsEnd(IndexType ThisIndex=0)
Definition: model_part.h:1179
ConditionIterator ConditionsEnd(IndexType ThisIndex=0)
Definition: model_part.h:1371
A sorted associative container similar to an STL set, but uses a vector to store pointers to its data...
Definition: pointer_vector_set.h:72
Solution Buider and Solver base class.
Definition: solution_builder_and_solver.hpp:63
Solution scheme base class.
Definition: solution_scheme.hpp:54
Solution strategy base class.
Definition: solution_strategy.hpp:52
virtual void Clear()
Clears the internal storage.
Definition: solution_strategy.hpp:148
TSparseSpace::VectorPointerType SystemVectorPointerType
Definition: solution_strategy.hpp:63
virtual void Initialize()
Initialization of member variables and prior operations.
Definition: solution_strategy.hpp:279
virtual bool Solve()
The problem of interest is solved.
Definition: solution_strategy.hpp:103
SolutionStrategy(ModelPart &rModelPart, Flags &rOptions)
Constructor.
Definition: solution_strategy.hpp:82
ModelPart::DofsArrayType DofsArrayType
Definition: solution_strategy.hpp:58
virtual void Finalize()
Finalization of member variables and prior operations.
Definition: solution_strategy.hpp:296
SolutionStrategy(ModelPart &rModelPart)
Constructor.
Definition: solution_strategy.hpp:79
Flags & GetOptions()
Get strategy options.
Definition: solution_strategy.hpp:224
virtual bool SolveIteration()
Solves the current iteration. This function returns true if a solution has been found,...
Definition: solution_strategy.hpp:143
virtual void Update()
Operation to update the solution ... if it is not called a trivial updater is used in which the value...
Definition: solution_strategy.hpp:291
~SolutionStrategy() override
Destructor.
Definition: solution_strategy.hpp:85
virtual void InitializeSolutionStep()
Performs all the required operations that should be done (for each step) before solving the solution ...
Definition: solution_strategy.hpp:127
SolverLocalFlags LocalFlagType
Definition: solution_strategy.hpp:57
SolutionScheme< TSparseSpace, TDenseSpace > SchemeType
Definition: solution_strategy.hpp:65
ModelPart & GetModelPart()
Operations to get the pointer to the model.
Definition: solution_strategy.hpp:243
Flags mOptions
Definition: solution_strategy.hpp:267
TSparseSpace::MatrixPointerType SystemMatrixPointerType
Definition: solution_strategy.hpp:62
TSparseSpace::MatrixType SystemMatrixType
Definition: solution_strategy.hpp:60
virtual void Predict()
Operation to predict the solution ... if it is not called a trivial predictor is used in which the va...
Definition: solution_strategy.hpp:285
KRATOS_CLASS_POINTER_DEFINITION(SolutionStrategy)
Pointer definition of SolutionStrategy.
void SetOptions(Flags &rOptions)
Sets strategy options.
Definition: solution_strategy.hpp:215
virtual int Check()
Function to perform expensive checks.
Definition: solution_strategy.hpp:154
virtual void FinalizeSolutionStep()
Performs all the required operations that should be done (for each step) after solving the solution s...
Definition: solution_strategy.hpp:133
SolutionBuilderAndSolver< TSparseSpace, TDenseSpace, TLinearSolver > BuilderAndSolverType
Definition: solution_strategy.hpp:66
virtual unsigned int GetMaxIterationNumber()
This method gets the flag mMaxIterationNumber.
Definition: solution_strategy.hpp:234
TSparseSpace::VectorType SystemVectorType
Definition: solution_strategy.hpp:61
virtual void SetEchoLevel(const int Level)
This sets the level of echo for the solution strategy.
Definition: solution_strategy.hpp:190
virtual bool SolveSolutionStep()
Solves the current step. This function returns true if a solution has been found, false otherwise.
Definition: solution_strategy.hpp:138
int mEchoLevel
Definition: solution_strategy.hpp:270
virtual int GetEchoLevel()
This returns the level of echo for the solution strategy.
Definition: solution_strategy.hpp:206
Solver local flags class definition.
Definition: solution_local_flags.hpp:48
#define KRATOS_CATCH(MoreInfo)
Definition: define.h:110
#define KRATOS_TRY
Definition: define.h:109
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21