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>
12using std::vector;
13
14class Body;
15class Mesh;
16
19class Solver {
20
21public:
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
43protected:
44
46 vector<Body*>* bodies;
47};
48
49inline Solver::Solver():mesh(0),bodies(0) {
50
51}
52
54
55}
56
57#endif /* SOLVER_H_ */
Represents a body in the space forming by a group of materials points and identified by a number.
Definition Body.h:19
Class representing a rectangular grid mesh.
Definition Mesh.h:29
Represents the operations to solve the equations in time.
Definition Solver.h:19
void registerBodies(vector< Body * > *bodies)
Register the bodies in the solver.
Definition Solver.h:41
virtual void Solve()=0
Solve the problem in time.
void registerMesh(Mesh *mesh)
Register the mesh in the solver.
Definition Solver.h:37
Mesh * mesh
pointer to mesh
Definition Solver.h:45
Solver()
Default constructor.
Definition Solver.h:49
virtual ~Solver()
Default destructor.
Definition Solver.h:53
vector< Body * > * bodies
pointer to bodies
Definition Solver.h:46