limited volume meshing to boundary layer only
[engrid-github.git] / src / libengrid / createhexibmesh.h
blob47e52b58b1036fa7d9b7a928b7c1685505afb613
1 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 // + +
3 // + This file is part of enGrid. +
4 // + +
5 // + Copyright 2008-2014 enGits GmbH +
6 // + +
7 // + enGrid is free software: you can redistribute it and/or modify +
8 // + it under the terms of the GNU General Public License as published by +
9 // + the Free Software Foundation, either version 3 of the License, or +
10 // + (at your option) any later version. +
11 // + +
12 // + enGrid is distributed in the hope that it will be useful, +
13 // + but WITHOUT ANY WARRANTY; without even the implied warranty of +
14 // + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +
15 // + GNU General Public License for more details. +
16 // + +
17 // + You should have received a copy of the GNU General Public License +
18 // + along with enGrid. If not, see <http://www.gnu.org/licenses/>. +
19 // + +
20 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
21 #ifndef CREATEHEXIBMESH_H
22 #define CREATEHEXIBMESH_H
24 class CreateHexIbMesh;
26 #include "surfaceoperation.h"
27 #include "octree.h"
28 #include "edgelengthsourcemanager.h"
30 class CreateHexIbMesh : public SurfaceOperation
33 int m_MinDim;
34 double m_MinSize;
35 Octree m_Octree;
36 QVector<QList<vtkIdType> > m_Faces;
37 QVector<double> m_MeshSize;
38 int m_MinNumLayersWithRequiredResolution;
39 vec3_t m_InsidePosition;
40 EdgeLengthSourceManager m_ELSManager;
41 double m_GrowthFactor;
42 double m_MinEdgeLength;
43 double m_MaxEdgeLength;
46 protected: // methods
48 int refine();
49 void updateMeshSize();
50 double meshSize(vtkIdType id_face);
51 double meshSize(const QList<vtkIdType> &faces);
52 void findInsideCells(MeshPartition &part, QList<vtkIdType> &inside_cells);
54 virtual void operate();
56 QString bigIntText(long long N);
59 public:
61 CreateHexIbMesh();
62 void setMinNumLayersWithRequiredResolution(int N) { m_MinNumLayersWithRequiredResolution = N; }
63 void setMinDim(int N) { m_MinDim = N; }
64 void setInsidePosition(vec3_t x) { m_InsidePosition = x; }
68 #endif // CREATEHEXIBMESH_H