14 #ifndef KRATOS_EMBEDDED_POSTPROCESS_PROCESS_H
15 #define KRATOS_EMBEDDED_POSTPROCESS_PROCESS_H
105 KRATOS_ERROR <<
"Nodes do not have EMBEDDED_WET_PRESSURE variable!";
107 KRATOS_ERROR <<
"Nodes do not have EMBEDDED_WET_VELOCITY variable!";
110 #pragma omp parallel for
111 for (
int k = 0; k < static_cast<int>(rNodes.size()); ++
k)
113 ModelPart::NodesContainerType::iterator itNode = rNodes.begin() +
k;
114 const double dist = itNode->FastGetSolutionStepValue(DISTANCE);
115 double& emb_wet_pres = itNode->FastGetSolutionStepValue(EMBEDDED_WET_PRESSURE);
116 array_1d<double, 3>& emb_wet_vel = itNode->FastGetSolutionStepValue(EMBEDDED_WET_VELOCITY);
120 emb_wet_pres = itNode->FastGetSolutionStepValue(PRESSURE);
121 emb_wet_vel = itNode->FastGetSolutionStepValue(VELOCITY);
126 emb_wet_vel = aux_zero;
140 std::string
Info()
const override
142 std::stringstream buffer;
143 buffer <<
"EmbeddedPostprocessProcess" ;
148 void PrintInfo(std::ostream& rOStream)
const override {rOStream <<
"EmbeddedPostprocessProcess";}
151 void PrintData(std::ostream& rOStream)
const override {}
Utility to filter the embedded velocity and pressure values.
Definition: embedded_postprocess_process.h:59
ModelPart & mrModelPart
Definition: embedded_postprocess_process.h:169
KRATOS_CLASS_POINTER_DEFINITION(EmbeddedPostprocessProcess)
Pointer definition of EmbeddedPostprocessProcess.
EmbeddedPostprocessProcess(ModelPart &rModelPart)
Constructor.
Definition: embedded_postprocess_process.h:72
void ExecuteFinalizeSolutionStep() override
This function will be executed at every time step AFTER performing the solve phase.
Definition: embedded_postprocess_process.h:92
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: embedded_postprocess_process.h:151
~EmbeddedPostprocessProcess() override
Destructor.
Definition: embedded_postprocess_process.h:78
std::string Info() const override
Turn back information as a string.
Definition: embedded_postprocess_process.h:140
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: embedded_postprocess_process.h:148
This class aims to manage meshes for multi-physics simulations.
Definition: model_part.h:77
NodeIterator NodesBegin(IndexType ThisIndex=0)
Definition: model_part.h:487
MeshType::NodesContainerType NodesContainerType
Nodes container. Which is a vector set of nodes with their Id's as key.
Definition: model_part.h:128
NodesContainerType & Nodes(IndexType ThisIndex=0)
Definition: model_part.h:507
The base class for all processes in Kratos.
Definition: process.h:49
#define KRATOS_ERROR
Definition: exception.h:161
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
KratosZeroVector< double > ZeroVector
Definition: amatrix_interface.h:561
float dist
Definition: edgebased_PureConvection.py:89
int k
Definition: quadrature.py:595