KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
Typedefs | Functions
Kratos::MPMParticleGeneratorUtility Namespace Reference

Typedefs

typedef std::size_t IndexType
 
typedef std::size_t SizeType
 
typedef Geometry< NodeGeometryType
 
typedef GeometryData::IntegrationMethod IntegrationMethod
 

Functions

template<SizeType TDimension>
void GenerateMaterialPointElement (ModelPart &rBackgroundGridModelPart, ModelPart &rInitialModelPart, ModelPart &rMPMModelPart, bool IsMixedFormulation=false)
 Construct material points or particles from given initial mesh. More...
 
template<SizeType TDimension>
void GenerateMaterialPointCondition (ModelPart &rBackgroundGridModelPart, ModelPart &rInitialModelPart, ModelPart &rMPMModelPart)
 Function to Initiate material point condition. More...
 
Matrix MP16ShapeFunctions ()
 Function that return matrix of shape function value for 16 particles. More...
 
Matrix MP33ShapeFunctions ()
 Function that return matrix of shape function value for 33 particles. More...
 
void GetIntegrationPointVolumes (const GeometryType &rGeom, const IntegrationMethod IntegrationMethod, Vector &rIntVolumes)
 Get integration weights of the geometry for the given integration method. More...
 
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. More...
 
void DetermineGeometryIntegrationMethod (const GeometryType &rGeom, const SizeType ParticlesPerCondition, IndexType &rNumPointsPerSpan)
 Get integration method and shape function values for the given condition. More...
 
template void GenerateMaterialPointElement< 2 > (ModelPart &rBackgroundGridModelPart, ModelPart &rInitialModelPart, ModelPart &rMPMModelPart, bool IsMixedFormulation)
 
template void GenerateMaterialPointElement< 3 > (ModelPart &rBackgroundGridModelPart, ModelPart &rInitialModelPart, ModelPart &rMPMModelPart, bool IsMixedFormulation)
 
template void GenerateMaterialPointCondition< 2 > (ModelPart &rBackgroundGridModelPart, ModelPart &rInitialModelPart, ModelPart &rMPMModelPart)
 
template void GenerateMaterialPointCondition< 3 > (ModelPart &rBackgroundGridModelPart, ModelPart &rInitialModelPart, ModelPart &rMPMModelPart)
 

Typedef Documentation

◆ GeometryType

◆ IndexType

◆ IntegrationMethod

◆ SizeType

Function Documentation

◆ DetermineGeometryIntegrationMethod()

void Kratos::MPMParticleGeneratorUtility::DetermineGeometryIntegrationMethod ( const GeometryType rGeom,
const SizeType  ParticlesPerCondition,
IndexType rNumPointsPerSpan 
)

Get integration method and shape function values for the given condition.

◆ DetermineIntegrationMethodAndShapeFunctionValues()

void Kratos::MPMParticleGeneratorUtility::DetermineIntegrationMethodAndShapeFunctionValues ( const GeometryType rGeom,
const SizeType  ParticlesPerElement,
IntegrationMethod rIntegrationMethod,
Matrix rN,
bool IsEqualVolumes 
)

Get integration method and shape function values for the given element.

◆ GenerateMaterialPointCondition()

template<SizeType TDimension>
void Kratos::MPMParticleGeneratorUtility::GenerateMaterialPointCondition ( ModelPart rBackgroundGridModelPart,
ModelPart rInitialModelPart,
ModelPart rMPMModelPart 
)

Function to Initiate material point condition.

Generating particle condition using a designated shape functions

◆ GenerateMaterialPointCondition< 2 >()

template void Kratos::MPMParticleGeneratorUtility::GenerateMaterialPointCondition< 2 > ( ModelPart rBackgroundGridModelPart,
ModelPart rInitialModelPart,
ModelPart rMPMModelPart 
)

◆ GenerateMaterialPointCondition< 3 >()

template void Kratos::MPMParticleGeneratorUtility::GenerateMaterialPointCondition< 3 > ( ModelPart rBackgroundGridModelPart,
ModelPart rInitialModelPart,
ModelPart rMPMModelPart 
)

◆ GenerateMaterialPointElement()

template<SizeType TDimension>
void Kratos::MPMParticleGeneratorUtility::GenerateMaterialPointElement ( ModelPart rBackgroundGridModelPart,
ModelPart rInitialModelPart,
ModelPart rMPMModelPart,
bool  IsMixedFormulation = false 
)

Construct material points or particles from given initial mesh.

Generating particles using a designated shape functions

◆ GenerateMaterialPointElement< 2 >()

template void Kratos::MPMParticleGeneratorUtility::GenerateMaterialPointElement< 2 > ( ModelPart rBackgroundGridModelPart,
ModelPart rInitialModelPart,
ModelPart rMPMModelPart,
bool  IsMixedFormulation 
)

◆ GenerateMaterialPointElement< 3 >()

template void Kratos::MPMParticleGeneratorUtility::GenerateMaterialPointElement< 3 > ( ModelPart rBackgroundGridModelPart,
ModelPart rInitialModelPart,
ModelPart rMPMModelPart,
bool  IsMixedFormulation 
)

◆ GetIntegrationPointVolumes()

void Kratos::MPMParticleGeneratorUtility::GetIntegrationPointVolumes ( const GeometryType rGeom,
const IntegrationMethod  IntegrationMethod,
Vector rIntVolumes 
)

Get integration weights of the geometry for the given integration method.

◆ MP16ShapeFunctions()

Matrix Kratos::MPMParticleGeneratorUtility::MP16ShapeFunctions ( )

Function that return matrix of shape function value for 16 particles.

It is only possible to be used in 2D Triangular.

◆ MP33ShapeFunctions()

Matrix Kratos::MPMParticleGeneratorUtility::MP33ShapeFunctions ( )

Function that return matrix of shape function value for 33 particles.

It is only possible to be used in 2D Triangular.