Memosa-FVM  0.2
UMesh.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 _UMESH_H_
6 #define _UMESH_H_
7 
8 #include "Mesh.h"
9 #include "Array.h"
10 #include "Vector.h"
11 #include "StorageSite.h"
12 
13 class CRConnectivity;
14 
15 #include "base_public.h"
16 
17 class BASE_PUBLIC UMesh : public Mesh
18 {
19 public:
20 
21  UMesh(const Args& args);
22 
23  virtual ~UMesh();
24 
25  DECLARE_HT("UMesh");
26 
27  const CRConnectivity& getConnectivity(const StorageSite& from,
28  const StorageSite& to) const;
29 
30  const CRConnectivity& getAllFaceCells() const;
31  const CRConnectivity& getFaceCells(const StorageSite& site) const;
32 
33  const Array<int>& getCellTypes() const;
34  const Array<int>& getCellTypeCount() const;
35 
36  DECLARE_METHOD(maskCellsOfType);
37  DECLARE_METHOD(getCellTypeCount);
38  DECLARE_METHOD(getCellTypes);
39 
40 private:
42  map<const StorageSite*,const CRConnectivity*> _faceCellsMap;
45 };
46 
47 #endif
const CRConnectivity & getConnectivity(const StorageSite &from, const StorageSite &to) const
Definition: Mesh.cpp:416
Definition: Mesh.h:49
const CRConnectivity & _allFaceCells
Definition: UMesh.h:41
const CRConnectivity & getAllFaceCells() const
Definition: Mesh.cpp:378
Array< int > * _cellTypeCount
Definition: UMesh.h:44
Definition: UMesh.h:17
const CRConnectivity & getFaceCells(const StorageSite &site) const
Definition: Mesh.cpp:388
Array< int > * _cellTypes
Definition: UMesh.h:43
map< const StorageSite *, const CRConnectivity * > _faceCellsMap
Definition: UMesh.h:42