MPM-Geomechanics
Material Point Method for simulating geo-materials under large deformation conditions
Loading...
Searching...
No Matches
ShapeLinear.h
Go to the documentation of this file.
1/*
2 * ShapeLinear.h
3 *
4 * Created on: 8 de mai de 2021
5 * Author: Fabricio Fernandez <fabricio.hmf@gmail.com>
6 */
7
8#ifndef SHAPELINEAR_H_
9#define SHAPELINEAR_H_
10
11#include "Shape/Shape.h"
12
15class ShapeLinear: public Shape {
16
17public:
18
22
25 virtual ~ShapeLinear();
26
32 virtual void update(const Vector3d& particle_position, const Vector3d& nodal_position, const Vector3d& cell_dimension, const Vector3d& particle_size);
33
34private:
35
42 virtual double computeGradient(double pI_position, double cell_dimension, double lp);
43
50 virtual double computeShape(double pI_position, double cell_dimension, double lp);
51};
52
53#endif /* SHAPELINEAR_H_ */
Represents the Linear shape functions used in the interpolation process.
Definition ShapeLinear.h:15
virtual ~ShapeLinear()
Default desconstructor.
virtual double computeGradient(double pI_position, double cell_dimension, double lp)
Returns the gradient of the shape function.
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.
virtual double computeShape(double pI_position, double cell_dimension, double lp)
Returns the shape function value.
ShapeLinear()
Default constructor.
Represents the shape functions used in the interpolation process.
Definition Shape.h:16