MPM-Geomechanics
Material Point Method for simulating geo-materials under large deformation conditions
Loading...
Searching...
No Matches
ShapeGimp Class Reference

Represents the GIMP shape functions used in the interpolation process. More...

#include <ShapeGimp.h>

Inheritance diagram for ShapeGimp:
Collaboration diagram for ShapeGimp:

Public Member Functions

 ShapeGimp ()
 Default constructor.
 
virtual ~ShapeGimp ()
 Default destructor.
 
virtual void update (const Vector3d &particle_position, const Vector3d &nodal_position, const Vector3d &cell_dimension, const Vector3d &particle_size)
 Update the shape functions and its gradients.
 
- Public Member Functions inherited from Shape
 Shape ()
 Default constructor.
 
virtual ~Shape ()
 Default destructor.
 
const Vector3d & getShape () const
 Return the shape function values.
 
const Vector3d & getDerivate () const
 Returns the derivates values.
 
void setShape (double sx, double sy, double sz)
 Configure the shape function values.
 
void setDerivate (double gx, double gy, double gz)
 Configure the nodal shape function derivates.
 

Private Member Functions

virtual double computeGradient (double pI_position, double cell_dimension, double lp)
 Returns the gradient of the shape function.
 
virtual double computeShape (double pI_position, double cell_dimension, double lp)
 Returns the shape function value.
 

Detailed Description

Represents the GIMP shape functions used in the interpolation process.

Constructor & Destructor Documentation

◆ ShapeGimp()

ShapeGimp::ShapeGimp ( )

Default constructor.

◆ ~ShapeGimp()

virtual ShapeGimp::~ShapeGimp ( )
virtual

Default destructor.

Member Function Documentation

◆ computeGradient()

virtual double ShapeGimp::computeGradient ( double pI_position,
double cell_dimension,
double lp )
privatevirtual

Returns the gradient of the shape function.

Parameters
[in]pI_positionRelative position of the particle \(p\) respect to the node: \(x_p-x_I\)
[in]cell_dimensionCell dimension in the direction
[in]lpHalf current particle size
Returns
The gradient of the shape function \(dS_{Ip}/di\)

Implements Shape.

◆ computeShape()

virtual double ShapeGimp::computeShape ( double pI_position,
double cell_dimension,
double lp )
privatevirtual

Returns the shape function value.

Parameters
[in]pI_positionRelative position of the particle \(p\) respect to the node: \(x_p-x_I\)
[in]cell_dimensionCell dimension in the direction
[in]lpHalf current particle size
Returns
Shape function value \(S_{Ip}\)

Implements Shape.

◆ update()

virtual void ShapeGimp::update ( const Vector3d & particle_position,
const Vector3d & nodal_position,
const Vector3d & cell_dimension,
const Vector3d & particle_size )
virtual

Update the shape functions and its gradients.

Parameters
[in]particle_positionParticle position
[in]nodal_positionNodal position
[in]cell_dimensionCell dimension
[in]particle_sizeParticle size

Implements Shape.


The documentation for this class was generated from the following file: