Skip to content
Snippets Groups Projects
Commit b2b12835 authored by laurence's avatar laurence
Browse files

ENH: cvMesh: Add edgeMergeAngle to cvMeshDict

parent bb8c2712
Branches
Tags
No related merge requests found
......@@ -291,6 +291,11 @@ Foam::cvControls::cvControls
filteringDict.lookup("mergeClosenessCoeff")
);
edgeMergeAngle_ = readScalar
(
filteringDict.lookup("edgeMergeAngle")
);
continueFilteringOnBadInitialPolyMesh_ = Switch
(
filteringDict.lookupOrDefault<Switch>
......
......@@ -234,6 +234,11 @@ class cvControls
// being merged, fraction of the local target cell size
scalar mergeClosenessCoeff_;
//- If the angle between two dual edges that are connected by a single
// point is less than this angle, then the edges will be merged into a
// single edge.
scalar edgeMergeAngle_;
//- If the mesh quality criteria cannot be satisfied, continue
// with filtering anyway?
Switch continueFilteringOnBadInitialPolyMesh_;
......@@ -405,6 +410,9 @@ public:
//- Return the mergeClosenessCoeff
inline scalar mergeClosenessCoeff() const;
//- Return the edgeMergeAngle
inline scalar edgeMergeAngle() const;
//- Return the continueFilteringOnBadInitialPolyMesh Switch
inline Switch continueFilteringOnBadInitialPolyMesh() const;
......
......@@ -166,6 +166,12 @@ inline Foam::scalar Foam::cvControls::mergeClosenessCoeff() const
}
inline Foam::scalar Foam::cvControls::edgeMergeAngle() const
{
return edgeMergeAngle_;
}
inline Foam::Switch
Foam::cvControls::continueFilteringOnBadInitialPolyMesh() const
{
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment