Go to the documentation of this file.
37 #ifndef boundaryLayerOptimisation_H
38 #define boundaryLayerOptimisation_H
153 const label baseFaceI,
172 const label baseFaceI
scalar featureSizeFactor_
feature size factor used for curvature-based optimisation
A class for handling file names.
bool reCalculateNormals_
activate calculation of normals
boolList isExitFace_
is boundary face part of a layer where a layer exits
scalar relThicknessTol_
relative tolerance for thickness variation
Calculates surface of the mesh.
void optimiseHairNormalsInside()
optimise hair normals inside the mesh
label nSmoothNormals_
number of iterations for smoothing of hairs
void optimiseHairNormalsAtTheBoundary()
void recalculateNormals(const bool)
shall normals be re-calculated (default true)
void setFeatureSizeFactor(const scalar)
set the feature size factor (default 0.3)
const bool deleteMeshSurface_
void calculateHairEdges()
calculate hairEdges
std::map< label, patchNormalType > pointNormalsType
boolList thinnedHairEdge_
stores information where boundary hairs are made thinner
void calculateNormalVectorsSmother(const direction eType, pointNormalsType &)
calculate normal vectors
void hairEdgesAtBndFace(const label cellI, const label baseFaceI, DynList< edge > &) const
calculate hair edges at a boundary faces
scalar calculateThickness(const label heI, const label heJ) const
std::map< label, std::pair< point, scalar > > patchNormalType
static void writeVTK(const fileName &fName, const pointField &origin, const vectorField &vecs)
write vectors into a VTK file. Helper for debugging
VRWGraph hairEdgesNearHairEdge_
hair edge to other hair edges
VRWGraph hairEdgesAtBndPoint_
hair edges attached to a boundary point
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
const meshSurfaceEngine * meshSurfacePtr_
const pointer to meshSurfaceEngine
void setRelativeThicknessTolerance(const scalar)
set the relative thickness tolerance (default 0.15)
const boolList & isBaseFace() const
boundaryLayerOptimisation(const boundaryLayerOptimisation &)
Disallow default bitwise copy construct.
void optimiseLayer()
performs boundary layer optimisation
Finds corners and edge points at the surface of the volume mesh.
void operator=(const boundaryLayerOptimisation &)
Disallow default bitwise assignment.
A list of keyword definitions, which are a keyword followed by any number of values (e....
bool optimiseLayersAtExittingFaces()
optimise layers at exitting faces due to requests from the inside
const meshSurfaceEngine & meshSurface() const
access to mesh surface
polyMeshGen & mesh_
reference to polyMeshGen
void setNumNormalsSmoothingIterations(const label nSmoothNormal)
set the number of normal smoothing iterations (default is 5)
~boundaryLayerOptimisation()
void optimiseThicknessVariation(const direction edgeType=(INSIDE|BOUNDARY))
optimise thickness variation
edgeLongList hairEdges_
boundary layer hairs
scalar calculateThicknessOverCell(const label heI, const label cellI, const label baseFaceI) const
const edgeLongList & hairEdges() const
return hair edges
const boolList & isExitFace() const
boundary faces where the layers exit at the boundary
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
const meshSurfacePartitioner * partitionerPtr_
mesh surface partitioner
boolList isBndLayerBase_
is boundary face a base for a prism in the bnd layer
void setMaxNumIterations(const label maxNumIterations)
set the maximum number of iterations
static void readSettings(const dictionary &, boundaryLayerOptimisation &)
read the settings from dictionary
const meshSurfacePartitioner & surfacePartitioner() const
access to meshSurfacePartitioner
const VRWGraph & hairEdgesAtBndPoint() const
hair edges attached to a boundary point
void writeHairEdges(const fileName &fName, const direction eType, const vectorField &vecs) const
write vector correcposing to hair edges. Helper for debugging
void calculateHairVectorsAtTheBoundary(vectorField &)
calculate hair vectors at the boundary
List< direction > hairEdgeType_
classification of hair edges
label maxNumIterations_
maximum number of iterations
void calculateNormalVectors(const direction eType, pointNormalsType &) const