Go to the documentation of this file.
44 deleteMeshSurface_(true),
45 partitionerPtr_(NULL),
47 hairEdgesAtBndPoint_(),
48 hairEdgesNearHairEdge_(),
55 relThicknessTol_(0.1),
56 featureSizeFactor_(0.3),
57 reCalculateNormals_(true)
69 meshSurfacePtr_(&mse),
70 deleteMeshSurface_(
false),
71 partitionerPtr_(NULL),
73 hairEdgesAtBndPoint_(),
74 hairEdgesNearHairEdge_(),
81 relThicknessTol_(0.15),
82 featureSizeFactor_(0.3),
83 reCalculateNormals_(
true)
102 const label maxNumIterations
105 maxNumIterations_ = maxNumIterations;
110 const label nSmoothNormals
113 nSmoothNormals_ = nSmoothNormals;
123 const scalar relThicknessTol
126 relThicknessTol_ = relThicknessTol;
131 const scalar featureSizeFactor
134 featureSizeFactor_ = featureSizeFactor;
163 if( meshDict.
found(
"boundaryLayers") )
167 if( layersDict.
found(
"optimiseLayer") )
169 const bool smoothLayers =
176 if( layersDict.
found(
"optimisationParameters") )
179 layersDict.
subDict(
"optimisationParameters");
181 if( optParams.
found(
"recalculateNormals") )
183 const bool recalculateNormals =
189 if( optParams.
found(
"nSmoothNormals") )
191 const label nSmoothNormals =
197 if( optParams.
found(
"featureSizeFactor") )
199 const scalar featureSizeFactor =
202 if( featureSizeFactor >= 1.0 || featureSizeFactor < 0.0 )
205 "void boundaryLayerOptimisation::optimiseLayer"
206 "(const dictionary&, boundaryLayerOptimisation&)"
207 ) <<
"Feature size factor is out"
213 if( optParams.
found(
"relThicknessTol") )
215 const scalar relThicknessTol =
218 if( relThicknessTol >= 1.0 || relThicknessTol < 0.0 )
221 "void boundaryLayerOptimisation::optimiseLayer"
222 "(const dictionary&, boundaryLayerOptimisation&)"
223 ) <<
"Relative thickness tolerance is out"
229 if( optParams.
found(
"maxNumIterations") )
231 const label maxNumIterations =
bool reCalculateNormals_
activate calculation of normals
boolList isExitFace_
is boundary face part of a layer where a layer exits
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_
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
void calculateHairEdges()
calculate hairEdges
void deleteDemandDrivenData(DataPtr &dataPtr)
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.
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
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.
A list of keyword definitions, which are a keyword followed by any number of values (e....
errorManipArg< error, int > exit(error &err, const int errNo=1)
void setNumNormalsSmoothingIterations(const label nSmoothNormal)
set the number of normal smoothing iterations (default is 5)
~boundaryLayerOptimisation()
edgeLongList hairEdges_
boundary layer hairs
const edgeLongList & hairEdges() const
return hair edges
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if succesful.
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
label readLabel(Istream &is)
void setMaxNumIterations(const label maxNumIterations)
set the maximum number of iterations
static void readSettings(const dictionary &, boundaryLayerOptimisation &)
read the settings from dictionary
const VRWGraph & hairEdgesAtBndPoint() const
hair edges attached to a boundary point
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.