1 #ifndef KRATOS_POROSITY_TOOLS_H
2 #define KRATOS_POROSITY_TOOLS_H
48 double time = r_current_process_info[TIME];
51 #pragma omp parallel for
55 coor[0] = node_it->X();
56 coor[1] = node_it->Y();
57 coor[2] = node_it->Z();
58 node_it->FastGetSolutionStepValue(FLUID_FRACTION) = mPorosityField.
Evaluate(
time, coor);
77 virtual std::string
Info()
const
84 virtual void PrintInfo(std::ostream& rOStream)
const
90 virtual void PrintData(std::ostream& rOStream)
const
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::NodeIterator NodeIterator
Definition: model_part.h:134
NodesContainerType & Nodes(IndexType ThisIndex=0)
Definition: model_part.h:507
Definition: porosity_tools.h:29
virtual void PrintInfo(std::ostream &rOStream) const
Print information about this object.
Definition: porosity_tools.h:84
virtual ~PorosityUtils()
Destructor.
Definition: porosity_tools.h:41
PorosityUtils(RealField &porosity_field)
Default constructor.
Definition: porosity_tools.h:37
virtual void PrintData(std::ostream &rOStream) const
Print object's data.
Definition: porosity_tools.h:90
KRATOS_CLASS_POINTER_DEFINITION(PorosityUtils)
ModelPart::NodesContainerType::ContainerType::iterator NodesIteratorType
Definition: porosity_tools.h:31
virtual std::string Info() const
Turn back information as a stemplate<class T, std::size_t dim> tring.
Definition: porosity_tools.h:77
void CalculatePorosity(ModelPart &r_model_part, const ProcessInfo &r_current_process_info)
Definition: porosity_tools.h:46
ProcessInfo holds the current value of different solution parameters.
Definition: process_info.h:59
Definition: real_field.h:29
virtual double Evaluate(const double time, const array_1d< double, 3 > &coor)
Definition: real_field.h:45
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
time
Definition: face_heat.py:85
int nnodes
Definition: sensitivityMatrix.py:24
integer i
Definition: TensorModule.f:17