14 #ifndef KRATOS_MPM_PARTICLE_GENERATOR_UTILITY
15 #define KRATOS_MPM_PARTICLE_GENERATOR_UTILITY
31 namespace MPMParticleGeneratorUtility
70 template<SizeType TDimension>
74 bool IsMixedFormulation=
false);
80 template<SizeType TDimension>
IntegrationMethod
Definition: geometry_data.h:76
Geometry base class.
Definition: geometry.h:71
This class aims to manage meshes for multi-physics simulations.
Definition: model_part.h:77
#define KRATOS_API(...)
Definition: kratos_export_api.h:40
void DetermineIntegrationMethodAndShapeFunctionValues(const GeometryType &rGeom, const SizeType ParticlesPerElement, IntegrationMethod &rIntegrationMethod, Matrix &rN, bool &IsEqualVolumes)
Get integration method and shape function values for the given element.
Definition: mpm_particle_generator_utility.cpp:794
void DetermineGeometryIntegrationMethod(const GeometryType &rGeom, const SizeType ParticlesPerCondition, IndexType &rNumPointsPerSpan)
Get integration method and shape function values for the given condition.
Definition: mpm_particle_generator_utility.cpp:874
Matrix MP33ShapeFunctions()
Function that return matrix of shape function value for 33 particles.
Definition: mpm_particle_generator_utility.cpp:615
void GenerateMaterialPointElement(ModelPart &rBackgroundGridModelPart, ModelPart &rInitialModelPart, ModelPart &rMPMModelPart, bool IsMixedFormulation)
Construct material points or particles from given initial mesh.
Definition: mpm_particle_generator_utility.cpp:30
Geometry< Node > GeometryType
Definition: mpm_particle_generator_utility.h:38
GeometryData::IntegrationMethod IntegrationMethod
Definition: mpm_particle_generator_utility.h:40
Matrix MP16ShapeFunctions()
Function that return matrix of shape function value for 16 particles.
Definition: mpm_particle_generator_utility.cpp:523
std::size_t IndexType
Definition: mpm_particle_generator_utility.h:34
void GenerateMaterialPointCondition(ModelPart &rBackgroundGridModelPart, ModelPart &rInitialModelPart, ModelPart &rMPMModelPart)
Function to Initiate material point condition.
Definition: mpm_particle_generator_utility.cpp:206
std::size_t SizeType
Definition: mpm_particle_generator_utility.h:36
void GetIntegrationPointVolumes(const GeometryType &rGeom, const IntegrationMethod IntegrationMethod, Vector &rIntVolumes)
Get integration weights of the geometry for the given integration method.
Definition: mpm_particle_generator_utility.cpp:782
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21