10 #if !defined(KRATOS_SET_MATERIAL_PROPERTIES_FROM_FLUID_TO_RIGID_NODES_PROCESS_H_INCLUDED)
11 #define KRATOS_SET_MATERIAL_PROPERTIES_FROM_FLUID_TO_RIGID_NODES_PROCESS_H_INCLUDED
107 double flow_index = 1;
108 double yield_shear = 0;
109 double adaptive_exponent = 0;
110 double static_friction = 0;
111 double dynamic_friction = 0;
112 double inertial_number_zero = 0;
113 double grain_diameter = 0;
114 double grain_density = 0;
115 double regularization_coefficient = 0;
116 double friction_angle = 0;
129 density = elemProperties[DENSITY];
131 viscosity = elemProperties[DYNAMIC_VISCOSITY];
133 if (elemProperties.
Has(YIELD_SHEAR))
135 flow_index = elemProperties[FLOW_INDEX];
136 yield_shear = elemProperties[YIELD_SHEAR];
137 adaptive_exponent = elemProperties[ADAPTIVE_EXPONENT];
139 else if (elemProperties.
Has(INTERNAL_FRICTION_ANGLE))
141 friction_angle = elemProperties[INTERNAL_FRICTION_ANGLE];
142 cohesion = elemProperties[COHESION];
143 adaptive_exponent = elemProperties[ADAPTIVE_EXPONENT];
145 else if (elemProperties.
Has(STATIC_FRICTION))
147 static_friction = elemProperties[STATIC_FRICTION];
148 dynamic_friction = elemProperties[DYNAMIC_FRICTION];
149 inertial_number_zero = elemProperties[INERTIAL_NUMBER_ZERO];
150 grain_diameter = elemProperties[GRAIN_DIAMETER];
151 grain_density = elemProperties[GRAIN_DENSITY];
152 regularization_coefficient = elemProperties[REGULARIZATION_COEFFICIENT];
167 iNode->FastGetSolutionStepValue(BULK_MODULUS) =
bulk_modulus;
170 iNode->FastGetSolutionStepValue(DENSITY) =
density;
173 iNode->FastGetSolutionStepValue(DYNAMIC_VISCOSITY) =
viscosity;
176 iNode->FastGetSolutionStepValue(YIELD_SHEAR) = yield_shear;
179 iNode->FastGetSolutionStepValue(FLOW_INDEX) = flow_index;
182 iNode->FastGetSolutionStepValue(ADAPTIVE_EXPONENT) = adaptive_exponent;
185 iNode->FastGetSolutionStepValue(INTERNAL_FRICTION_ANGLE) = friction_angle;
188 iNode->FastGetSolutionStepValue(COHESION) = cohesion;
191 iNode->FastGetSolutionStepValue(ADAPTIVE_EXPONENT) = adaptive_exponent;
194 iNode->FastGetSolutionStepValue(STATIC_FRICTION) = static_friction;
197 iNode->FastGetSolutionStepValue(DYNAMIC_FRICTION) = dynamic_friction;
200 iNode->FastGetSolutionStepValue(INERTIAL_NUMBER_ZERO) = inertial_number_zero;
203 iNode->FastGetSolutionStepValue(GRAIN_DIAMETER) = grain_diameter;
206 iNode->FastGetSolutionStepValue(GRAIN_DENSITY) = grain_density;
209 iNode->FastGetSolutionStepValue(REGULARIZATION_COEFFICIENT) = regularization_coefficient;
233 std::string
Info()
const override
235 return "SetMaterialPropertiesFromFluidToRigidNodesProcess";
241 rOStream <<
"SetMaterialPropertiesFromFluidToRigidNodesProcess";
324 rOStream << std::endl;
PointerVector< TPointType > PointsArrayType
Definition: geometry.h:118
The base class for processes passed to the solution scheme.
Definition: mesher_process.hpp:37
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: mesher_process.hpp:157
This class aims to manage meshes for multi-physics simulations.
Definition: model_part.h:77
MeshType::ElementsContainerType ElementsContainerType
Element container. A vector set of Elements with their Id's as key.
Definition: model_part.h:168
MeshType::NodeIterator NodeIterator
Definition: model_part.h:134
ElementsContainerType & Elements(IndexType ThisIndex=0)
Definition: model_part.h:1189
MeshType::NodesContainerType NodesContainerType
Nodes container. Which is a vector set of nodes with their Id's as key.
Definition: model_part.h:128
MeshType::ElementIterator ElementIterator
Definition: model_part.h:174
NodesContainerType & Nodes(IndexType ThisIndex=0)
Definition: model_part.h:507
VariablesList & GetNodalSolutionStepVariablesList()
Definition: model_part.h:549
static void PartitionedIterators(TVector &rVector, typename TVector::iterator &rBegin, typename TVector::iterator &rEnd)
Generate a partition for an std::vector-like array, providing iterators to the begin and end position...
Definition: openmp_utils.h:179
Properties encapsulates data shared by different Elements or Conditions. It can store any type of dat...
Definition: properties.h:69
bool Has(TVariableType const &rThisVariable) const
Definition: properties.h:578
Short class definition.
Definition: set_material_properties_from_fluid_to_rigid_nodes_process.hpp:67
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: set_material_properties_from_fluid_to_rigid_nodes_process.hpp:239
SetMaterialPropertiesFromFluidToRigidNodesProcess(ModelPart &rRigidModelPart, ModelPart &rFluidModelPart)
Default constructor.
Definition: set_material_properties_from_fluid_to_rigid_nodes_process.hpp:80
std::string Info() const override
Turn back information as a string.
Definition: set_material_properties_from_fluid_to_rigid_nodes_process.hpp:233
void operator()()
Definition: set_material_properties_from_fluid_to_rigid_nodes_process.hpp:91
ModelPart & mrRigidModelPart
Definition: set_material_properties_from_fluid_to_rigid_nodes_process.hpp:255
KRATOS_CLASS_POINTER_DEFINITION(SetMaterialPropertiesFromFluidToRigidNodesProcess)
Pointer definition of SetMaterialPropertiesFromFluidToRigidNodesProcess.
ModelPart & mrFluidModelPart
Definition: set_material_properties_from_fluid_to_rigid_nodes_process.hpp:256
virtual ~SetMaterialPropertiesFromFluidToRigidNodesProcess()
Destructor.
Definition: set_material_properties_from_fluid_to_rigid_nodes_process.hpp:87
void Execute() override
Execute method is used to execute the MesherProcess algorithms.
Definition: set_material_properties_from_fluid_to_rigid_nodes_process.hpp:100
bool Has(const VariableData &rThisVariable) const
Definition: variables_list.h:372
#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
ModelPart::NodesContainerType NodesContainerType
Definition: find_conditions_neighbours_process.h:44
std::size_t SizeType
The definition of the size type.
Definition: mortar_classes.h:43
std::istream & operator>>(std::istream &rIStream, LinearMasterSlaveConstraint &rThis)
input stream function
ModelPart::ElementsContainerType ElementsContainerType
Definition: clear_contact_conditions_mesher_process.hpp:43
std::ostream & operator<<(std::ostream &rOStream, const LinearMasterSlaveConstraint &rThis)
output stream function
Definition: linear_master_slave_constraint.h:432
GeometryType::PointsArrayType PointsArrayType
Definition: settle_model_structure_process.hpp:48
float viscosity
Definition: edgebased_var.py:8
float density
Definition: face_heat.py:56
bulk_modulus
Definition: script.py:97