10 #if !defined(KRATOS_SET_MATERIAL_PROPERTIES_TO_SOLID_NODES_PROCESS_H_INCLUDED)
11 #define KRATOS_SET_MATERIAL_PROPERTIES_TO_SOLID_NODES_PROCESS_H_INCLUDED
104 double young_modulus = 0;
105 double poisson_ratio = 0;
117 density = elemProperties[DENSITY];
118 young_modulus = elemProperties[YOUNG_MODULUS];
119 poisson_ratio = elemProperties[POISSON_RATIO];
125 rGeom[
i].FastGetSolutionStepValue(YOUNG_MODULUS) = young_modulus;
126 if (rGeom[
i].SolutionStepsDataHas(SOLID_DENSITY))
128 rGeom[
i].FastGetSolutionStepValue(SOLID_DENSITY) =
density;
130 rGeom[
i].FastGetSolutionStepValue(DENSITY) =
density;
131 rGeom[
i].FastGetSolutionStepValue(POISSON_RATIO) = poisson_ratio;
156 std::string
Info()
const override
158 return "SetMaterialPropertiesToSolidNodesProcess";
164 rOStream <<
"SetMaterialPropertiesToSolidNodesProcess";
246 rOStream << std::endl;
Geometry base class.
Definition: geometry.h:71
SizeType PointsNumber() const
Definition: geometry.h:528
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
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
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
Short class definition.
Definition: set_material_properties_to_solid_nodes_process.hpp:67
virtual ~SetMaterialPropertiesToSolidNodesProcess()
Destructor.
Definition: set_material_properties_to_solid_nodes_process.hpp:86
void operator()()
Definition: set_material_properties_to_solid_nodes_process.hpp:90
ModelPart & mrModelPart
Definition: set_material_properties_to_solid_nodes_process.hpp:178
std::string Info() const override
Turn back information as a string.
Definition: set_material_properties_to_solid_nodes_process.hpp:156
KRATOS_CLASS_POINTER_DEFINITION(SetMaterialPropertiesToSolidNodesProcess)
Pointer definition of SetMaterialPropertiesToSolidNodesProcess.
SetMaterialPropertiesToSolidNodesProcess(ModelPart &rModelPart)
Default constructor.
Definition: set_material_properties_to_solid_nodes_process.hpp:80
void Execute() override
Execute method is used to execute the MesherProcess algorithms.
Definition: set_material_properties_to_solid_nodes_process.hpp:99
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: set_material_properties_to_solid_nodes_process.hpp:162
#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 density
Definition: face_heat.py:56
integer i
Definition: TensorModule.f:17