Class that deals with cutting faces based on face point values and target value. More...
Public Member Functions | |
MPLICface (const bool unweighted=true) | |
Construct empty. More... | |
~MPLICface () | |
label | cutFace (const labelList &f, const labelList &faceEdges, const pointField &points, const boolList &isEdgeCutOld, boolList &isEdgeCut, label &faceEdgei, const UList< scalar > &pointsAlpha, const UList< vector > &pointsU, const label facei, const scalar target, const bool ow) |
Function to cut for multi cut. More... | |
label | cutFace (const UList< label > &f, const UList< point > &points, const UList< scalar > &pointsAlpha, const UList< vector > &pointsU, const scalar target, const bool ow) |
Cut the face and return the type of cut. More... | |
scalar | alphaPhiU () const |
Calculate and return alphaPhiU. More... | |
template<class VectorList , class PointList > | |
scalar | alphaPhiU (const VectorList &pointsU, const PointList &points) const |
Calculate and return alphaPhiU. More... | |
template<class VectorList , class PointList > | |
scalar | alphaPhiU (const VectorList &pointsU, const PointList &points, const labelList &f) const |
Calculate and return alphaPhiU. More... | |
const DynamicList< point > & | cutPoints () const |
Access to cut points. More... | |
const DynamicList< point > & | subPoints () const |
Access to submerged face points. More... | |
const DynamicList< label > & | cutEdges () const |
Access to cut edges. More... | |
const vector | Sf () const |
Return subface surface area vector. More... | |
const vector | Cf (const vector &area) const |
Return subface centre. More... | |
const DynamicList< vector > & | U () const |
Return interpolated U values. More... | |
template<class VectorList , class PointList > | |
Foam::scalar | alphaPhiU (const VectorList &pointsU, const PointList &points) const |
template<class VectorList , class PointList > | |
Foam::scalar | alphaPhiU (const VectorList &pointsU, const PointList &points, const labelList &f) const |
Class that deals with cutting faces based on face point values and target value.
Definition at line 52 of file MPLICface.H.
Construct empty.
Definition at line 31 of file MPLICface.C.
References MPLICface::cutFace().
|
inline |
Definition at line 84 of file MPLICface.H.
References MPLICface::alphaPhiU(), MPLICface::Cf(), MPLICface::cutEdges(), MPLICface::cutFace(), MPLICface::cutPoints(), f(), points, MPLICface::Sf(), MPLICface::subPoints(), and MPLICface::U().
Foam::label cutFace | ( | const labelList & | f, |
const labelList & | faceEdges, | ||
const pointField & | points, | ||
const boolList & | isEdgeCutOld, | ||
boolList & | isEdgeCut, | ||
label & | faceEdgei, | ||
const UList< scalar > & | pointsAlpha, | ||
const UList< vector > & | pointsU, | ||
const label | facei, | ||
const scalar | target, | ||
const bool | ow | ||
) |
Function to cut for multi cut.
Returns:
Definition at line 40 of file MPLICface.C.
References UList< T >::fcIndex(), Foam::findMin(), forAll, and UList< T >::rcIndex().
Referenced by MPLICface::MPLICface(), and MPLICface::~MPLICface().
Foam::label cutFace | ( | const UList< label > & | f, |
const UList< point > & | points, | ||
const UList< scalar > & | pointsAlpha, | ||
const UList< vector > & | pointsU, | ||
const scalar | target, | ||
const bool | ow | ||
) |
Cut the face and return the type of cut.
Returns:
Definition at line 186 of file MPLICface.C.
References UList< T >::fcIndex(), Foam::findMin(), forAll, and UList< T >::rcIndex().
|
inline |
Calculate and return alphaPhiU.
Definition at line 30 of file MPLICfaceI.H.
Referenced by MPLICface::alphaPhiU(), and MPLICface::~MPLICface().
|
inline |
Calculate and return alphaPhiU.
|
inline |
Calculate and return alphaPhiU.
|
inline |
Access to cut points.
Definition at line 96 of file MPLICfaceI.H.
Referenced by MPLICface::~MPLICface().
|
inline |
Access to submerged face points.
Definition at line 103 of file MPLICfaceI.H.
Referenced by MPLICface::~MPLICface().
|
inline |
Access to cut edges.
Definition at line 109 of file MPLICfaceI.H.
Referenced by MPLICface::~MPLICface().
|
inline |
Return subface surface area vector.
Definition at line 115 of file MPLICfaceI.H.
References face::area(), and MPLICface::Cf().
Referenced by MPLICface::~MPLICface().
|
inline |
Return subface centre.
Definition at line 122 of file MPLICfaceI.H.
References Foam::constant::universal::c, forAll, Foam::normalised(), p, Foam::constant::mathematical::pi(), and Foam::Zero.
Referenced by MPLICface::Sf(), and MPLICface::~MPLICface().
|
inline |
Return interpolated U values.
Referenced by MPLICface::~MPLICface().
|
inline |
Definition at line 45 of file MPLICfaceI.H.
References MPLICface::alphaPhiU().
|
inline |
Definition at line 71 of file MPLICfaceI.H.
References MPLICface::alphaPhiU().