Memosa-FVM  0.2
KeModel.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 _KEMODEL_H_
6 #define _KEMODEL_H_
7 
8 #include "Model.h"
9 
10 #include "GeomFields.h"
11 #include "KeFields.h"
12 #include "FlowFields.h"
13 #include "Mesh.h"
14 
15 
16 #include "KeBC.h"
17 
18 template<class T>
19 class KeModel : public Model
20 {
21 public:
22 
23  typedef std::map<int,KeBC<T>*> KeBCMap;
24  typedef std::map<int,KeVC<T>*> KeVCMap;
25  class Impl;
26 
27 
28  KeModel(const GeomFields& geomFields,
29  KeFields& keFields,
30  FlowFields& flowFields,
31  const MeshList& meshes);
32 
33  virtual ~KeModel();
34 
35  virtual void init();
36 
37  KeBCMap& getBCMap();
38  KeVCMap& getVCMap();
39 
40  KeBC<T>& getBC(const int id);
41 
43 
44  void getViscosity(const Mesh& mesh);
45  void updateTimek();
46  void updateTimee();
47  void printBCs();
48 /*
49 #if !(defined(USING_ATYPE_TANGENT) || defined(USING_ATYPE_PC))
50  void dumpMatrix(const string fileBase);
51 #endif
52 */
53  void advance(const int niter);
54 
55 private:
56  shared_ptr<Impl> _impl;
57 };
58 
59 #endif
60 
void updateTimee()
void getViscosity(const Mesh &mesh)
shared_ptr< Impl > _impl
Definition: KeModel.h:56
KeModelOptions< T > & getOptions()
Definition: KeBC.h:9
Definition: Mesh.h:49
virtual void init()
void printBCs()
KeBCMap & getBCMap()
void advance(const int niter)
KeBC< T > & getBC(const int id)
Definition: Model.h:13
std::map< int, KeVC< T > * > KeVCMap
Definition: KeModel.h:24
virtual ~KeModel()
std::map< int, KeBC< T > * > KeBCMap
Definition: KeModel.h:23
void updateTimek()
KeModel(const GeomFields &geomFields, KeFields &keFields, FlowFields &flowFields, const MeshList &meshes)
Definition: KeModel_impl.h:990
vector< Mesh * > MeshList
Definition: Mesh.h:439
KeVCMap & getVCMap()