1 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3 // + This file is part of enGrid. +
5 // + Copyright 2008-2014 enGits GmbH +
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. +
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. +
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/>. +
20 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
21 #ifndef CREATEHEXIBMESH_H
22 #define CREATEHEXIBMESH_H
24 class CreateHexIbMesh
;
26 #include "surfaceoperation.h"
28 #include "edgelengthsourcemanager.h"
30 class CreateHexIbMesh
: public SurfaceOperation
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
;
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
);
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