Memosa-FVM  0.2
FractureModel.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 _FRACTUREMODEL_H_
6 #define _FRACTUREMODEL_H_
7 
8 #include "Model.h"
9 
10 #include "GeomFields.h"
11 #include "FractureFields.h"
12 
13 #include "Mesh.h"
14 
15 
16 #include "FractureBC.h"
17 
18 template<class T>
19 class FractureModel : public Model
20 {
21 public:
22 
23  typedef std::map<int,FractureBC<T>*> FractureBCMap;
24  typedef std::map<int,FractureVC<T>*> FractureVCMap;
25  class Impl;
26 
27 
28  FractureModel(const GeomFields& geomFields,
29  FractureFields& fractureFields, const MeshList& meshes);
30 
31  virtual ~FractureModel();
32 
33  virtual void init();
34 
37 
38  FractureBC<T>& getBC(const int id);
39 
41 
42  //void computeIBFaceTemperature(const StorageSite& particles);
43 
44  //T getHeatFluxIntegral(const Mesh& mesh, const int faceGroupId);
45 
46  void printBCs();
47 //#if !(defined(USING_ATYPE_TANGENT) || defined(USING_ATYPE_PC))
48 // void dumpMatrix(const string fileBase);
49 //#endif
50  void advance(const int niter);
51 
52  void updateTime();
53 private:
54  shared_ptr<Impl> _impl;
55 };
56 
57 #endif
58 
FractureModel(const GeomFields &geomFields, FractureFields &fractureFields, const MeshList &meshes)
FractureVCMap & getVCMap()
std::map< int, FractureBC< T > * > FractureBCMap
Definition: FractureModel.h:23
FractureModelOptions< T > & getOptions()
virtual ~FractureModel()
shared_ptr< Impl > _impl
Definition: FractureModel.h:54
Definition: Model.h:13
void advance(const int niter)
FractureBCMap & getBCMap()
std::map< int, FractureVC< T > * > FractureVCMap
Definition: FractureModel.h:24
virtual void init()
FractureBC< T > & getBC(const int id)
vector< Mesh * > MeshList
Definition: Mesh.h:439