MPM-Geomechanics
Material Point Method for simulating geo-materials under large deformation conditions
Loading...
Searching...
No Matches
BodyPolygon.h
Go to the documentation of this file.
1/*
2 * BodyPolygon.h
3 *
4 * Created on: 16 de jul de 2021
5 * Author: Fabricio Fernandez <fabricio.hmf@gmail.com>
6 */
7
8#ifndef BODYPOLYGON_H_
9#define BODYPOLYGON_H_
10
11#include <Body/Body.h>
12
59class BodyPolygon: public Body {
60
61public:
62
66
69 virtual ~BodyPolygon();
70
73 inline void setPoints(vector<Vector3d> polygon_points) { this->polygonPoints=polygon_points; }
74
77 inline virtual void setMaterialId(int material_id) { this->materialId=material_id; }
78
81 inline virtual int getMaterialId() const { return this->materialId; }
82
86 virtual void create(Mesh& mesh, Material* material);
87
90 inline void setExtrudeDirection(string extrude_direction) { this->extrudeDirection=extrude_direction; }
91
94 inline void setExtrudeDisplacement(double extrude_displacement) { this->extrudeDisplacement=extrude_displacement; }
95
98 inline void setDiscretizationLength(double distretization_length) { this->distretizationLength=distretization_length; }
99
100private:
101
103
104 vector<Vector3d> polygonPoints;
105
107
109
111};
112
113#endif /* BODYPOLYGON_H_ */
Is a type of Body created by the extrusion of a 2D polygon.
Definition BodyPolygon.h:59
BodyPolygon()
Default constructor.
double distretizationLength
length of the local mesh used to create the body
Definition BodyPolygon.h:110
virtual void setMaterialId(int material_id)
Configure the material id.
Definition BodyPolygon.h:77
virtual int getMaterialId() const
Return the material identification.
Definition BodyPolygon.h:81
double extrudeDisplacement
extrude displacement
Definition BodyPolygon.h:108
void setExtrudeDirection(string extrude_direction)
Configures the extrude direction.
Definition BodyPolygon.h:90
void setExtrudeDisplacement(double extrude_displacement)
Configures the extrude displacement.
Definition BodyPolygon.h:94
virtual ~BodyPolygon()
Default destruction.
string extrudeDirection
extrude direction
Definition BodyPolygon.h:106
void setDiscretizationLength(double distretization_length)
Configures the discretization parameter.
Definition BodyPolygon.h:98
int materialId
material identification
Definition BodyPolygon.h:102
void setPoints(vector< Vector3d > polygon_points)
Configure the geometrical points of the polygon.
Definition BodyPolygon.h:73
vector< Vector3d > polygonPoints
geometrical definition of the polygon
Definition BodyPolygon.h:104
virtual void create(Mesh &mesh, Material *material)
Create a body in space using a polygon in 2D.
Represents a body in the space forming by a group of materials points and identified by a number.
Definition Body.h:19
Represents a material.
Definition Material.h:18
Class representing a rectangular grid mesh.
Definition Mesh.h:29