Memosa-FVM  0.2
Discretization.h
Go to the documentation of this file.
1 // This file os part of FVM
2 // Copyright (c) 2012 FVM Authors
3 // See LICENSE file for terms.
4 
5 #ifndef _DISCRETIZATION_H_
6 #define _DISCRETIZATION_H_
7 
8 #include "misc.h"
9 #include "Mesh.h"
10 
11 class MultiFieldMatrix;
12 class MultiField;
13 class Model;
14 
16 {
17 public:
18 
19  Discretization(const MeshList& meshes);
20 
21  virtual ~Discretization();
22 
23  virtual void discretize(const Mesh& mesh, MultiFieldMatrix& matrix,
24  MultiField& x, MultiField& r) = 0;
25 
26  DEFINE_TYPENAME("Discretization");
27 protected:
28  const MeshList& _meshes;
29 };
30 
31 typedef vector<shared_ptr<Discretization> > DiscrList;
32 #endif
Discretization(const MeshList &meshes)
virtual void discretize(const Mesh &mesh, MultiFieldMatrix &matrix, MultiField &x, MultiField &r)=0
Definition: Mesh.h:49
const MeshList & _meshes
DEFINE_TYPENAME("Discretization")
vector< shared_ptr< Discretization > > DiscrList
Definition: Model.h:13
virtual ~Discretization()
vector< Mesh * > MeshList
Definition: Mesh.h:439