1 #ifndef KRATOS_FRACTIONAL_STEP_SETTINGS_H
2 #define KRATOS_FRACTIONAL_STEP_SETTINGS_H
27 #include "custom_utilities/solver_settings.h"
55 template<
class TSparseSpace,
82 const unsigned int ThisDomainSize,
83 const unsigned int ThisTimeOrder,
85 const bool MoveMeshFlag,
86 const bool ReformDofSet):
87 BaseType(rModelPart,ThisDomainSize,ThisTimeOrder,UseSlip,MoveMeshFlag,ReformDofSet)
107 typename TLinearSolver::Pointer pLinearSolver,
108 const double Tolerance,
109 const unsigned int MaxIter)
override
119 bool CalculateReactions =
false;
120 bool CalculateNormDxFlag =
true;
125 bool ReformDofSet =
false;
135 SchemePointerType pScheme;
156 CalculateNormDxFlag));
172 CalculateNormDxFlag));
176 KRATOS_THROW_ERROR(std::runtime_error,
"Error in FractionalStepSettings: Unknown strategy label.",
"");
189 typename TLinearSolver::Pointer pLinearSolver,
190 const double Tolerance,
191 const unsigned int MaxIter)
override
205 (rModelPart,pLinearSolver,DomainSize,Tolerance,MaxIter,ReformDofSet,TimeOrder));
209 KRATOS_THROW_ERROR(std::runtime_error,
"Error in FractionalStepSettings: Unknown turbulence model label.",
"");
229 std::string
Info()
const override
231 std::stringstream buffer;
232 buffer <<
"FractionalStepSettings" ;
237 void PrintInfo(std::ostream& rOStream)
const override {rOStream <<
"FractionalStepSettings";}
240 void PrintData(std::ostream& rOStream)
const override {}
325 FractionalStepSettings& operator=(FractionalStepSettings
const& rOther){}
347 template<
class TDenseSpace,
class TSparseSpace,
class TLinearSolver >
355 template<
class TDenseSpace,
class TSparseSpace,
class TLinearSolver >
360 rOStream << std::endl;
Current class provides an implementation for the base builder and solving operations.
Definition: builder_and_solver.h:64
Helper class to define solution strategies for FS_Strategy.
Definition: fractional_step_settings.h:60
BaseType::StrategyLabel StrategyLabel
Definition: fractional_step_settings.h:73
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: fractional_step_settings.h:237
BaseType::TurbulenceModelLabel TurbulenceModelLabel
Definition: fractional_step_settings.h:74
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: fractional_step_settings.h:240
void SetStrategy(StrategyLabel const &rStrategyLabel, typename TLinearSolver::Pointer pLinearSolver, const double Tolerance, const unsigned int MaxIter) override
Definition: fractional_step_settings.h:106
KRATOS_CLASS_POINTER_DEFINITION(FractionalStepSettings)
Pointer definition of FractionalStepSettings.
BaseType::StrategyType StrategyType
Definition: fractional_step_settings.h:69
void SetTurbulenceModel(TurbulenceModelLabel const &rTurbulenceModel, typename TLinearSolver::Pointer pLinearSolver, const double Tolerance, const unsigned int MaxIter) override
Definition: fractional_step_settings.h:188
BaseType::StrategyPointerType StrategyPointerType
Definition: fractional_step_settings.h:70
std::string Info() const override
Turn back information as a string.
Definition: fractional_step_settings.h:229
void SetTurbulenceModel(ProcessPointerType pTurbulenceModel) override
Definition: fractional_step_settings.h:215
BaseType::ProcessPointerType ProcessPointerType
Definition: fractional_step_settings.h:71
FractionalStepSettings(ModelPart &rModelPart, const unsigned int ThisDomainSize, const unsigned int ThisTimeOrder, const bool UseSlip, const bool MoveMeshFlag, const bool ReformDofSet)
Constructor.
Definition: fractional_step_settings.h:81
SolverSettings< TSparseSpace, TDenseSpace, TLinearSolver > BaseType
Definition: fractional_step_settings.h:68
~FractionalStepSettings() override
Destructor.
Definition: fractional_step_settings.h:91
Implicit solving strategy base class This is the base class from which we will derive all the implici...
Definition: implicit_solving_strategy.h:61
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
Scheme for the solution of problems involving a slip condition.
Definition: residualbased_incrementalupdate_static_scheme_slip.h:70
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
Helper class to define solution strategies for FS_Strategy.
Definition: solver_settings.h:53
StrategyLabel
Definition: solver_settings.h:66
@ Velocity
Definition: solver_settings.h:66
@ Pressure
Definition: solver_settings.h:66
virtual unsigned int GetDomainSize() const
Definition: solver_settings.h:146
ModelPart & GetModelPart()
Definition: solver_settings.h:285
virtual void SetTurbulenceModel(TurbulenceModelLabel const &rTurbulenceModel, typename TLinearSolver::Pointer pLinearSolver, const double Tolerance, const unsigned int MaxIter)
Definition: solver_settings.h:124
bool GetReformDofSet()
Definition: solver_settings.h:226
StrategyType::Pointer StrategyPointerType
Definition: solver_settings.h:62
virtual bool UseSlipConditions() const
Definition: solver_settings.h:156
std::map< StrategyLabel, double > mTolerances
Definition: solver_settings.h:292
std::map< StrategyLabel, StrategyPointerType > mStrategies
Definition: solver_settings.h:290
std::map< StrategyLabel, unsigned int > mMaxIter
Definition: solver_settings.h:294
Process::Pointer ProcessPointerType
Definition: solver_settings.h:63
virtual unsigned int GetEchoLevel()
Definition: solver_settings.h:221
TurbulenceModelLabel
Definition: solver_settings.h:68
@ SpalartAllmaras
Definition: solver_settings.h:68
bool mHaveTurbulenceModel
Definition: solver_settings.h:298
ProcessPointerType mpTurbulenceModel
Definition: solver_settings.h:296
virtual unsigned int GetTimeOrder() const
Definition: solver_settings.h:151
An impelementation of the Spalart-Allmaras turbulence model for incompressible flows.
Definition: spalart_allmaras_turbulence_model.h:77
#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