83 ):mrThisModelPart(rThisModelPart),
84 mrNodalLengthVariable(rNodalLengthVariable)
88 ThisParameters.ValidateAndAssignDefaults(GetDefaultParameters());
91 mFactorStiffness = ThisParameters[
"stiffness_factor"].GetDouble();
92 mPenaltyScale = ThisParameters[
"penalty_scale_factor"].GetDouble();
93 mComputeScaleFactor = ThisParameters[
"compute_scale_factor"].GetBool();
94 mComputePenalty = ThisParameters[
"compute_penalty"].GetBool();
131 void Execute()
override;
140 "stiffness_factor" : 10.0,
141 "penalty_scale_factor" : 1.0,
142 "compute_scale_factor" : true,
143 "compute_penalty" : true
146 return default_parameters;
162 std::string
Info()
const override
164 return "ALMVariablesCalculationProcess";
170 rOStream <<
"ALMVariablesCalculationProcess";
189 double mFactorStiffness;
190 double mPenaltyScale;
191 bool mComputeScaleFactor;
192 bool mComputePenalty;
241 rOStream << std::endl;
PeriodicInterfaceProcess & operator=(const PeriodicInterfaceProcess &)=delete
This process calculates the variables related with the ALM.
Definition: alm_variables_calculation_process.h:51
~ALMVariablesCalculationProcess() override=default
Destructor.
ALMVariablesCalculationProcess(ModelPart &rThisModelPart, Variable< double > &rNodalLengthVariable=NODAL_H, Parameters ThisParameters=Parameters(R"({})"))
Default constructor.
Definition: alm_variables_calculation_process.h:79
std::string Info() const override
Turn back information as a string.
Definition: alm_variables_calculation_process.h:162
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: alm_variables_calculation_process.h:168
KRATOS_CLASS_POINTER_DEFINITION(ALMVariablesCalculationProcess)
Pointer definition of ALMVariablesCalculationProcess.
ModelPart::ConditionsContainerType ConditionsArrayType
Conditions container definition.
Definition: alm_variables_calculation_process.h:72
ModelPart::NodesContainerType NodesArrayType
Nodes container definition.
Definition: alm_variables_calculation_process.h:69
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: alm_variables_calculation_process.h:174
void operator()()
Executes the process.
Definition: alm_variables_calculation_process.h:119
std::size_t SizeType
Size type definition.
Definition: alm_variables_calculation_process.h:60
const Parameters GetDefaultParameters() const override
This method provides the defaults parameters to avoid conflicts between the different constructors.
Definition: alm_variables_calculation_process.h:136
std::size_t IndexType
Definition: flags.h:74
Geometry base class.
Definition: geometry.h:71
This class aims to manage meshes for multi-physics simulations.
Definition: model_part.h:77
MeshType::ConditionsContainerType ConditionsContainerType
Condintions container. A vector set of Conditions with their Id's as key.
Definition: model_part.h:183
bool HasNodalSolutionStepVariable(VariableData const &ThisVariable) const
Definition: model_part.h:544
MeshType::NodesContainerType NodesContainerType
Nodes container. Which is a vector set of nodes with their Id's as key.
Definition: model_part.h:128
This class provides to Kratos a data structure for I/O based on the standard of JSON.
Definition: kratos_parameters.h:59
The base class for all processes in Kratos.
Definition: process.h:49
#define KRATOS_CATCH(MoreInfo)
Definition: define.h:110
#define KRATOS_TRY
Definition: define.h:109
#define KRATOS_ERROR_IF_NOT(conditional)
Definition: exception.h:163
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