Go to the documentation of this file.
48 const bool transformIntoPlane
51 if( vertexType_[bpI] & LOCKED )
54 const point newP = newPositionLaplacian(bpI, transformIntoPlane);
63 const bool transformIntoPlane
66 if( vertexType_[bpI] & LOCKED )
69 const point newP = newPositionLaplacianFC(bpI, transformIntoPlane);
81 if( vertexType_[bpI] & LOCKED )
85 const labelList& bPoints = surfaceEngine_.boundaryPoints();
88 Info <<
"Smoothing boundary node " << bpI <<
endl;
89 Info <<
"Node label in the mesh is " << bPoints[bpI] <<
endl;
94 const vector& pNormal = surfaceEngine_.pointNormals()[bpI];
95 if(
magSqr(pNormal) < VSMALL )
103 if( !transformIntoPlane(bpI, pl, vecX, vecY, pts, trias) )
115 vecX * newPoint.
x() +
135 Info <<
"New position for point is " << newP <<
endl;
void nodeDisplacementLaplacianFC(const label bpI, const bool transformIntoPlane=true) const
point optimizePoint(const scalar tol=0.1)
optimizes position of a central point in the simplex
void nodeDisplacementLaplacian(const label bpI, const bool transformIntoPlane=true) const
Template functions to aid in the implementation of demand driven data.
point newEdgePositionLaplacian(const label bpI) const
Ostream & endl(Ostream &os)
Add newline and flush stream.
void nodeDisplacementSurfaceOptimizer(const label bpI, const scalar tol=1.0)
smooth the node using surface optimizer
Geometric class that creates a 2D plane and can return the intersection point between a line and the ...
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
List< direction > vertexType_
type of surface vertex
void moveBoundaryVertex(const label bpI, const point &newP)
relocate the selected boundary vertex and update geometry data
const pointFieldPMG & points() const
const meshSurfaceEngine & surfaceEngine_
const reference to the mesh surface
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
const labelList & boundaryPoints() const
void edgeNodeDisplacement(const label bpI) const
smooth edge node
dimensioned< scalar > magSqr(const dimensioned< Type > &)
dimensionedScalar pos(const dimensionedScalar &ds)