MPM-Geomechanics
Material Point Method for simulating geo-materials under large deformation conditions
Loading...
Searching...
No Matches
Solver.h
Go to the documentation of this file.
1
/*
2
* Solver.h
3
*
4
* Created on: 13 de mai de 2021
5
* Author: Fabricio Fernandez <fabricio.hmf@gmail.com>
6
*/
7
8
#ifndef SOLVER_H_
9
#define SOLVER_H_
10
11
#include <vector>
12
using
std::vector;
13
14
class
Body
;
15
class
Mesh
;
16
19
class
Solver
{
20
21
public
:
22
25
Solver
();
26
29
virtual
~Solver
();
30
33
virtual
void
Solve
()=0;
34
37
inline
void
registerMesh
(
Mesh
*
mesh
){ this->mesh=
mesh
; }
38
41
inline
void
registerBodies
(vector<Body*>*
bodies
){ this->bodies=
bodies
; }
42
43
protected
:
44
45
Mesh
*
mesh
;
46
vector<Body*>*
bodies
;
47
};
48
49
inline
Solver::Solver
():mesh(0),bodies(0) {
50
51
}
52
53
inline
Solver::~Solver
() {
54
55
}
56
57
#endif
/* SOLVER_H_ */
Body
Represents a body in the space forming by a group of materials points and identified by a number.
Definition
Body.h:19
Mesh
Class representing a rectangular grid mesh.
Definition
Mesh.h:29
Solver
Represents the operations to solve the equations in time.
Definition
Solver.h:19
Solver::registerBodies
void registerBodies(vector< Body * > *bodies)
Register the bodies in the solver.
Definition
Solver.h:41
Solver::Solve
virtual void Solve()=0
Solve the problem in time.
Solver::registerMesh
void registerMesh(Mesh *mesh)
Register the mesh in the solver.
Definition
Solver.h:37
Solver::mesh
Mesh * mesh
pointer to mesh
Definition
Solver.h:45
Solver::Solver
Solver()
Default constructor.
Definition
Solver.h:49
Solver::~Solver
virtual ~Solver()
Default destructor.
Definition
Solver.h:53
Solver::bodies
vector< Body * > * bodies
pointer to bodies
Definition
Solver.h:46
inc
Solver
Solver.h
Generated by
1.12.0