13 #if !defined(KRATOS_COMPUTE_DIVERGENCE_PROCESS_INCLUDED )
14 #define KRATOS_COMPUTE_DIVERGENCE_PROCESS_INCLUDED
25 #include "utilities/geometry_utilities.h"
68 template<
bool THistorical>
89 const bool NormalizeDivergence =
true,
90 const bool NonHistoricalOriginVariable =
false
115 void Execute()
override;
132 std::string
Info()
const override
134 return "ComputeNodalNormalDivergenceProcess";
140 rOStream <<
"ComputeNodalNormalDivergenceProcess";
169 bool mNormalizeDivergence =
true;
170 bool mNonHistoricalOriginVariable =
false;
183 void ClearDivergence();
190 double& GetDivergence(
198 void SynchronizeDivergenceAndVolume();
203 void PonderateDivergence();
Compute Nodal Normal Divergence process.
Definition: compute_nodal_normal_divergence_process.h:71
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: compute_nodal_normal_divergence_process.h:138
ComputeNodalNormalDivergenceProcess(ModelPart &rModelPart, const Variable< array_1d< double, 3 > > &rOriginVariable, const Variable< double > &rDivergenceVariable, const Variable< double > &rAreaVariable=NODAL_AREA, const bool NormalizeDivergence=true, const bool NonHistoricalOriginVariable=false)
Default constructor. (component)
void operator()()
This operator is provided to call the process as a function and simply calls the Execute method.
Definition: compute_nodal_normal_divergence_process.h:101
std::string Info() const override
Turn back information as a string.
Definition: compute_nodal_normal_divergence_process.h:132
~ComputeNodalNormalDivergenceProcess() override=default
Destructor.
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: compute_nodal_normal_divergence_process.h:144
KRATOS_CLASS_POINTER_DEFINITION(ComputeNodalNormalDivergenceProcess)
Pointer definition of ComputeNodalNormalDivergenceProcess.
Geometry base class.
Definition: geometry.h:71
This class aims to manage meshes for multi-physics simulations.
Definition: model_part.h:77
This class defines the node.
Definition: node.h:65
The base class for all processes in Kratos.
Definition: process.h:49
Variable class contains all information needed to store and retrive data from a data container.
Definition: variable.h:63
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
integer i
Definition: TensorModule.f:17
This struct is used in order to identify when using the hitorical and non historical variables.
Definition: compute_nodal_normal_divergence_process.h:54
constexpr static bool SaveAsHistoricalVariable
Definition: compute_nodal_normal_divergence_process.h:56
constexpr static bool SaveAsNonHistoricalVariable
Definition: compute_nodal_normal_divergence_process.h:57