54 #if !defined(KRATOS_PRESSURE_CALCULATE_PROCESS_AXISYM_INCLUDED )
55 #define KRATOS_PRESSURE_CALCULATE_PROCESS_AXISYM_INCLUDED
73 #include "utilities/geometry_utilities.h"
156 for(ModelPart::NodesContainerType::iterator in = mr_model_part.
NodesBegin() ;
157 in != mr_model_part.
NodesEnd() ; ++in)
159 in->FastGetSolutionStepValue(PRESSURE)=0.0;
162 for(ModelPart::ElementsContainerType::iterator
im = mr_model_part.
ElementsBegin() ;
165 im->Calculate(PRESSURE,
dummy,proc_info);
206 for(ModelPart::NodesContainerType::iterator in = mr_model_part.
NodesBegin() ;
207 in != mr_model_part.
NodesEnd() ; ++in)
209 if( (in->GetValue(NEIGHBOUR_ELEMENTS)).size() != 0)
211 const double& ar=in->FastGetSolutionStepValue(NODAL_AREA);
218 in->FastGetSolutionStepValue(PRESSURE)/=ar;
225 in->FastGetSolutionStepValue(PRESSURE)+=in->FastGetSolutionStepValue(PRESSURE,1);
233 in->FastGetSolutionStepValue(PRESSURE)=0.0;
256 std::string
Info()
const override
258 return "PressureCalculateProcessAxisym";
264 rOStream <<
"PressureCalculateProcessAxisym";
327 unsigned int mdomain_size;
385 rOStream << std::endl;
This class aims to manage meshes for multi-physics simulations.
Definition: model_part.h:77
ElementIterator ElementsBegin(IndexType ThisIndex=0)
Definition: model_part.h:1169
NodeIterator NodesBegin(IndexType ThisIndex=0)
Definition: model_part.h:487
ProcessInfo & GetProcessInfo()
Definition: model_part.h:1746
ElementIterator ElementsEnd(IndexType ThisIndex=0)
Definition: model_part.h:1179
NodeIterator NodesEnd(IndexType ThisIndex=0)
Definition: model_part.h:497
Short class definition.
Definition: pressure_calculate_process_axisym.h:109
KRATOS_CLASS_POINTER_DEFINITION(PressureCalculateProcessAxisym)
Pointer definition of PressureCalculateProcessAxisym.
void Execute() override
Execute method is used to execute the Process algorithms.
Definition: pressure_calculate_process_axisym.h:147
~PressureCalculateProcessAxisym() override
Destructor.
Definition: pressure_calculate_process_axisym.h:128
std::string Info() const override
Turn back information as a string.
Definition: pressure_calculate_process_axisym.h:256
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: pressure_calculate_process_axisym.h:262
void operator()()
Definition: pressure_calculate_process_axisym.h:137
PressureCalculateProcessAxisym(ModelPart &model_part, unsigned int domain_size)
Default constructor.
Definition: pressure_calculate_process_axisym.h:122
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: pressure_calculate_process_axisym.h:268
The base class for all processes in Kratos.
Definition: process.h:49
ProcessInfo holds the current value of different solution parameters.
Definition: process_info.h:59
#define KRATOS_CATCH(MoreInfo)
Definition: define.h:110
#define KRATOS_WATCH(variable)
Definition: define.h:806
#define KRATOS_TRY
Definition: define.h:109
im
Definition: GenerateCN.py:100
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
int domain_size
Definition: face_heat.py:4
model_part
Definition: face_heat.py:14
dummy
Definition: script.py:194