9 #ifndef KRATOS_TWO_STEP_V_P_SETTINGS_H
10 #define KRATOS_TWO_STEP_V_P_SETTINGS_H
32 #include "custom_utilities/solver_settings.h"
59 template <
class TSparseSpace,
84 const unsigned int ThisDomainSize,
85 const unsigned int ThisTimeOrder,
86 const bool ReformDofSet) :
BaseType(rModelPart, ThisDomainSize, ThisTimeOrder, ReformDofSet)
106 typename TLinearSolver::Pointer pLinearSolver,
107 const double Tolerance,
108 const unsigned int MaxIter)
118 bool CalculateReactions =
false;
119 bool CalculateNormDxFlag =
true;
123 bool ReformDofSet =
false;
132 SchemePointerType pScheme;
154 KRATOS_THROW_ERROR(std::runtime_error,
"Error in TwoStepVPSettings: Unknown strategy label.",
"");
175 virtual std::string
Info()
const
177 std::stringstream buffer;
178 buffer <<
"TwoStepVPSettings";
183 virtual void PrintInfo(std::ostream &rOStream)
const { rOStream <<
"TwoStepVPSettings"; }
256 TwoStepVPSettings &operator=(TwoStepVPSettings
const &rOther) {}
275 template <
class TDenseSpace,
class TSparseSpace,
class TLinearSolver>
283 template <
class TDenseSpace,
class TSparseSpace,
class TLinearSolver>
288 rOStream << std::endl;
Current class provides an implementation for the base builder and solving operations.
Definition: builder_and_solver.h:64
This class aims to manage meshes for multi-physics simulations.
Definition: model_part.h:77
Current class provides an implementation for standard builder and solving operations.
Definition: residualbased_block_builder_and_solver.h:82
This class provides the implementation of a static scheme.
Definition: residualbased_incrementalupdate_static_scheme.h:57
This is a very simple strategy to solve linearly the problem.
Definition: residualbased_linear_strategy.h:64
This class provides the implementation of the basic tasks that are needed by the solution strategy.
Definition: scheme.h:56
Solving strategy base class This is the base class from which we will derive all the strategies (impl...
Definition: solving_strategy.h:64
Helper class to define solution strategies for FS_Strategy.
Definition: two_step_v_p_settings.h:63
virtual void PrintInfo(std::ostream &rOStream) const
Print information about this object.
Definition: two_step_v_p_settings.h:183
BaseType::StrategyLabel StrategyLabel
Definition: two_step_v_p_settings.h:76
BaseType::StrategyPointerType StrategyPointerType
Definition: two_step_v_p_settings.h:73
BaseType::StrategyType StrategyType
Definition: two_step_v_p_settings.h:72
TwoStepVPSolverSettings< TSparseSpace, TDenseSpace, TLinearSolver > BaseType
Definition: two_step_v_p_settings.h:71
BaseType::ProcessPointerType ProcessPointerType
Definition: two_step_v_p_settings.h:74
KRATOS_CLASS_POINTER_DEFINITION(TwoStepVPSettings)
Pointer definition of TwoStepVPSettings.
virtual std::string Info() const
Turn back information as a string.
Definition: two_step_v_p_settings.h:175
virtual void PrintData(std::ostream &rOStream) const
Print object's data.
Definition: two_step_v_p_settings.h:186
TwoStepVPSettings(ModelPart &rModelPart, const unsigned int ThisDomainSize, const unsigned int ThisTimeOrder, const bool ReformDofSet)
Constructor.
Definition: two_step_v_p_settings.h:83
virtual ~TwoStepVPSettings()
Destructor.
Definition: two_step_v_p_settings.h:91
virtual void SetStrategy(StrategyLabel const &rStrategyLabel, typename TLinearSolver::Pointer pLinearSolver, const double Tolerance, const unsigned int MaxIter)
Definition: two_step_v_p_settings.h:105
Helper class to define solution strategies for TwoStepVPStrategy.
Definition: solver_settings.h:57
ModelPart & GetModelPart()
Definition: solver_settings.h:234
StrategyLabel
Definition: solver_settings.h:70
@ Velocity
Definition: solver_settings.h:71
@ Pressure
Definition: solver_settings.h:72
std::map< StrategyLabel, double > mTolerances
Definition: solver_settings.h:241
virtual unsigned int GetEchoLevel()
Definition: solver_settings.h:176
std::map< StrategyLabel, unsigned int > mMaxIter
Definition: solver_settings.h:243
Process::Pointer ProcessPointerType
Definition: solver_settings.h:67
StrategyType::Pointer StrategyPointerType
Definition: solver_settings.h:66
std::map< StrategyLabel, StrategyPointerType > mStrategies
Definition: solver_settings.h:239
#define KRATOS_THROW_ERROR(ExceptionType, ErrorMessage, MoreInfo)
Definition: define.h:77
#define KRATOS_CATCH(MoreInfo)
Definition: define.h:110
#define KRATOS_TRY
Definition: define.h:109
static int EchoLevel
Definition: co_sim_EMPIRE_API.h:42
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
std::istream & operator>>(std::istream &rIStream, LinearMasterSlaveConstraint &rThis)
input stream function
std::ostream & operator<<(std::ostream &rOStream, const LinearMasterSlaveConstraint &rThis)
output stream function
Definition: linear_master_slave_constraint.h:432
Temp
Definition: PecletTest.py:105