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// SPDX-License-Identifier: MIT
2// Copyright (c) 2021-2025 MPM-Geomechanics Development Team
3
4#ifndef SHAPELINEAR_H_
5#define SHAPELINEAR_H_
6
7#include "Shape/Shape.h"
8
11class ShapeLinear: public Shape {
12
13public:
14
18
21 virtual ~ShapeLinear();
22
28 virtual void update(const Vector3d& particle_position, const Vector3d& nodal_position, const Vector3d& cell_dimension, const Vector3d& particle_size);
29
30private:
31
38 virtual double computeGradient(double pI_position, double cell_dimension, double lp);
39
46 virtual double computeShape(double pI_position, double cell_dimension, double lp);
47};
48
49#endif /* SHAPELINEAR_H_ */
Represents the Linear shape functions used in the interpolation process.
Definition ShapeLinear.h:11
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:12