1 #ifndef KRATOS_SWIMMING_DEM_IN_PFEM_UTILS_H
2 #define KRATOS_SWIMMING_DEM_IN_PFEM_UTILS_H
46 Properties::Pointer props;
52 props = Properties::Pointer(
new Properties(0));
53 props->SetValue(STATIC_FRICTION, 0.5773502691896257);
54 props->SetValue(WALL_COHESION, 0.0);
55 props->SetValue(COMPUTE_WEAR, 0);
56 props->SetValue(SEVERITY_OF_WEAR, 0.001);
57 props->SetValue(IMPACT_WEAR_SEVERITY, 0.001);
58 props->SetValue(BRINELL_HARDNESS, 200.0);
59 props->SetValue(YOUNG_MODULUS, 1e20);
60 props->SetValue(POISSON_RATIO, 0.25);
65 if (r_destination_model_part.
Conditions().size()) {
71 for (
unsigned int i = 0;
i < source_elements.size();
i++) {
72 ModelPart::ElementsContainerType::iterator it = r_source_model_part.
ElementsBegin() +
i;
74 Condition::Pointer cond = Condition::Pointer(
new RigidFace3D(
id, p_geometry, props));
95 virtual std::string
Info()
const
Geometry base class.
Definition: geometry.h:71
PropertiesContainerType & Properties()
Definition: mesh.h:446
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
PropertiesType::Pointer pGetProperties(IndexType PropertiesId, IndexType MeshIndex=0)
Returns the Properties::Pointer corresponding to it's identifier.
Definition: model_part.cpp:664
PropertiesIterator PropertiesBegin(IndexType ThisIndex=0)
Definition: model_part.h:978
MeshType::ElementsContainerType ElementsContainerType
Element container. A vector set of Elements with their Id's as key.
Definition: model_part.h:168
ConditionsContainerType & Conditions(IndexType ThisIndex=0)
Definition: model_part.h:1381
ElementsContainerType & Elements(IndexType ThisIndex=0)
Definition: model_part.h:1189
void AddCondition(ConditionType::Pointer pNewCondition, IndexType ThisIndex=0)
Definition: model_part.cpp:1436
MeshType & GetMesh(IndexType ThisIndex=0)
Definition: model_part.h:1791
ConditionIterator ConditionsEnd(IndexType ThisIndex=0)
Definition: model_part.h:1371
size_type size() const
Returns the number of elements in the container.
Definition: pointer_vector_set.h:502
Properties encapsulates data shared by different Elements or Conditions. It can store any type of dat...
Definition: properties.h:69
Definition: real_field.h:29
Definition: RigidFace.h:21
Definition: swimming_dem_in_pfem_utils.h:27
virtual void PrintData(std::ostream &rOStream) const
Print object's data.
Definition: swimming_dem_in_pfem_utils.h:108
virtual void PrintInfo(std::ostream &rOStream) const
Print information about this object.
Definition: swimming_dem_in_pfem_utils.h:102
SwimmingDemInPfemUtils()
Default constructor.
Definition: swimming_dem_in_pfem_utils.h:35
virtual ~SwimmingDemInPfemUtils()
Destructor.
Definition: swimming_dem_in_pfem_utils.h:39
ModelPart::NodesContainerType::ContainerType::iterator NodesIteratorType
Definition: swimming_dem_in_pfem_utils.h:29
virtual std::string Info() const
Turn back information as a stemplate<class T, std::size_t dim> tring.
Definition: swimming_dem_in_pfem_utils.h:95
KRATOS_CLASS_POINTER_DEFINITION(SwimmingDemInPfemUtils)
void TransferWalls(ModelPart &r_source_model_part, ModelPart &r_destination_model_part)
Definition: swimming_dem_in_pfem_utils.h:44
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
integer i
Definition: TensorModule.f:17