1 #ifndef PARALLEL_BOND_UTILITIES_H
2 #define PARALLEL_BOND_UTILITIES_H
51 noalias(other_to_me_vector) = r_sphere.
GetGeometry()[0].Coordinates() - other_particle->GetGeometry()[0].Coordinates();
52 const double& this_radius = r_sphere.
GetRadius();
53 const double& other_radius = other_particle->GetRadius();
55 const double radius_sum = this_radius + other_radius;
57 const double initial_dist = radius_sum - initial_delta;
58 const double indentation = initial_dist - distance;
87 noalias(other_to_me_vector) = r_sphere.
GetGeometry()[0].Coordinates() - other_particle->GetGeometry()[0].Coordinates();
88 const double& this_radius = r_sphere.
GetRadius();
89 const double& other_radius = other_particle->GetRadius();
91 const double radius_sum = this_radius + other_radius;
93 const double initial_dist = radius_sum - initial_delta;
94 const double indentation = initial_dist - distance;
96 if (ccl->GetTypeOfLaw() ==
"parallel_bond_CL"){
#define DEM_MODULUS_3(a)
Definition: DEM_application_variables.h:29
MeshType & LocalMesh()
Returns the reference to the mesh storing all local entities.
Definition: communicator.cpp:245
Definition: DEM_KDEM_with_damage_parallel_bond_CL.h:10
double mInitialIndentationForBondedPart
Definition: DEM_KDEM_with_damage_parallel_bond_CL.h:126
Definition: DEM_parallel_bond_CL.h:16
double mInitialIndentationForBondedPart
Definition: DEM_parallel_bond_CL.h:190
Base class for all Elements.
Definition: element.h:60
GeometryType & GetGeometry()
Returns the reference of the geometry.
Definition: geometrical_object.h:158
ElementsContainerType & Elements()
Definition: mesh.h:568
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
Communicator & GetCommunicator()
Definition: model_part.h:1821
MeshType::NodesContainerType NodesContainerType
Nodes container. Which is a vector set of nodes with their Id's as key.
Definition: model_part.h:128
Definition: parallel_bond_utilities.h:15
ModelPart::ElementsContainerType ElementsArrayType
Definition: parallel_bond_utilities.h:19
ModelPart::NodesContainerType NodesContainerType
Definition: parallel_bond_utilities.h:20
virtual ~ParallelBondUtilities()
Destructor.
Definition: parallel_bond_utilities.h:30
void SetCurrentIndentationAsAReferenceInParallelBondsForPBM(ModelPart &rModelPart)
Definition: parallel_bond_utilities.h:68
void SetCurrentIndentationAsAReferenceInParallelBonds(ModelPart &rModelPart)
Definition: parallel_bond_utilities.h:32
ParallelBondUtilities()
Default constructor.
Definition: parallel_bond_utilities.h:26
KRATOS_CLASS_POINTER_DEFINITION(ParallelBondUtilities)
Definition: spheric_continuum_particle.h:26
std::vector< Kratos::DEMContinuumConstitutiveLaw::Pointer > mContinuumConstitutiveLawArray
Definition: spheric_continuum_particle.h:135
unsigned int mContinuumInitialNeighborsSize
Definition: spheric_continuum_particle.h:133
virtual double GetInitialDelta(int index)
Definition: spheric_continuum_particle.cpp:834
virtual double GetRadius()
Definition: spheric_particle.cpp:2195
std::vector< SphericParticle * > mNeighbourElements
Definition: spheric_particle.h:248
#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
void block_for_each(TIterator itBegin, TIterator itEnd, TFunction &&rFunction)
Execute a functor on all items of a range in parallel.
Definition: parallel_utilities.h:299
T & noalias(T &TheMatrix)
Definition: amatrix_interface.h:484
REACTION_CHECK_STIFFNESS_FACTOR int
Definition: contact_structural_mechanics_application_variables.h:75
integer i
Definition: TensorModule.f:17