17 #if !defined(KRATOS_BODY_NORMAL_CALCULATION_UTILS )
18 #define KRATOS_BODY_NORMAL_CALCULATION_UTILS
29 #include "utilities/geometry_utilities.h"
138 noalias(it->FastGetSolutionStepValue(NORMAL)) =
zero;
162 for(
unsigned int i = 0;
i<geom.
size();
i++)
165 for(
unsigned int j=0;
j<2;
j++)
167 normal[
j] += Volume*DN_DX(
i,
j);
182 for(
unsigned int i = 0;
i<geom.
size();
i++)
185 for(
unsigned int j=0;
j<3;
j++)
187 normal[
j] += Volume*DN_DX(
i,
j);
Definition: body_normal_calculation_utils.h:84
void CalculateBodyNormals(ModelPart &r_model_part, int dimension)
Definition: body_normal_calculation_utils.h:124
ModelPart::ElementsContainerType ElementsArrayType
Definition: body_normal_calculation_utils.h:89
ModelPart::NodesContainerType NodesArrayType
Definition: body_normal_calculation_utils.h:88
virtual bool AssembleCurrentData(Variable< int > const &ThisVariable)
Definition: communicator.cpp:502
Geometry base class.
Definition: geometry.h:71
SizeType size() const
Definition: geometry.h:518
static void CalculateGeometryData(const GeometryType &rGeometry, BoundedMatrix< double, 4, 3 > &rDN_DX, array_1d< double, 4 > &rN, double &rVolume)
This function is designed to compute the shape function derivatives, shape functions and volume in 3D...
Definition: geometry_utilities.h:176
Definition: amatrix_interface.h:41
This class aims to manage meshes for multi-physics simulations.
Definition: model_part.h:77
Communicator & GetCommunicator()
Definition: model_part.h:1821
NodeIterator NodesBegin(IndexType ThisIndex=0)
Definition: model_part.h:487
ElementsContainerType & Elements(IndexType ThisIndex=0)
Definition: model_part.h:1189
NodeIterator NodesEnd(IndexType ThisIndex=0)
Definition: model_part.h:497
A sorted associative container similar to an STL set, but uses a vector to store pointers to its data...
Definition: pointer_vector_set.h:72
boost::indirect_iterator< typename TContainerType::iterator > iterator
Definition: pointer_vector_set.h:95
#define KRATOS_CATCH(MoreInfo)
Definition: define.h:110
#define KRATOS_TRY
Definition: define.h:109
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
KratosZeroVector< double > ZeroVector
Definition: amatrix_interface.h:561
T & noalias(T &TheMatrix)
Definition: amatrix_interface.h:484
int dimension
Definition: isotropic_damage_automatic_differentiation.py:123
int j
Definition: quadrature.py:648
N
Definition: sensitivityMatrix.py:29
integer i
Definition: TensorModule.f:17
zero
Definition: test_pureconvectionsolver_benchmarking.py:94