51 #if !defined(ASSIGN_POINT_NEUMANN3D_CONDITION )
52 #define ASSIGN_POINT_NEUMANN3D_CONDITION
65 #include <pybind11/pybind11.h>
71 #include "utilities/geometry_utilities.h"
98 const int TDim=ThisModelPart.
ElementsBegin()->GetGeometry().WorkingSpaceDimension();
104 for(ModelPart::NodesContainerType::iterator it = ThisModelPart.
NodesBegin();
107 if( it->FastGetSolutionStepValue(FLAG_VARIABLE) == 1.0)
110 temp.push_back(*(it.base()));
112 if constexpr (TDim==3)
115 (ThisModelPart.
Conditions()).push_back(p_cond);
117 else if constexpr (TDim==2)
120 (ThisModelPart.
Conditions()).push_back(p_cond);
140 KRATOS_WATCH(
"Inside of AssignPointNeumannConditions UTILITY")
141 const int TDim=ThisModelPart.
ElementsBegin()->GetGeometry().WorkingSpaceDimension();
147 for(ModelPart::NodesContainerType::iterator it = ThisModelPart.
NodesBegin();
152 temp.push_back(*(it.base()));
154 if( it->FastGetSolutionStepValue(FLAG_VARIABLE) == 1.0)
157 (ThisModelPart.
Conditions()).push_back(p_cond);
Definition: assign_point_neumann_conditions.h:87
void AssignPointNeumannConditionsDisp(ModelPart &ThisModelPart)
Definition: assign_point_neumann_conditions.h:94
void AssignPointNeumannConditionsDispAxisym(ModelPart &ThisModelPart)
Definition: assign_point_neumann_conditions.h:137
static const TComponentType & Get(const std::string &rName)
Retrieves a component with the specified name.
Definition: kratos_components.h:114
PropertiesType::Pointer pGetProperties(IndexType PropertiesId)
Definition: mesh.h:394
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
ConditionsContainerType & Conditions(IndexType ThisIndex=0)
Definition: model_part.h:1381
NodeIterator NodesEnd(IndexType ThisIndex=0)
Definition: model_part.h:497
MeshType & GetMesh(IndexType ThisIndex=0)
Definition: model_part.h:1791
PointerVector is a container like stl vector but using a vector to store pointers to its data.
Definition: pointer_vector.h:72
#define KRATOS_CATCH(MoreInfo)
Definition: define.h:110
#define KRATOS_WATCH(variable)
Definition: define.h:806
#define KRATOS_TRY
Definition: define.h:109
Modeler::Pointer Create(const std::string &ModelerName, Model &rModel, const Parameters ModelParameters)
Checks if the modeler is registered.
Definition: modeler_factory.cpp:30
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
float temp
Definition: rotating_cone.py:85