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.
MPLICface | ( | const bool | unweighted = true | ) |
Construct empty.
Definition at line 31 of file MPLICface.C.
|
inline |
Definition at line 84 of file MPLICface.H.
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 39 of file MPLICface.C.
References List< T >::append(), f(), UList< T >::fcIndex(), Foam::findMin(), forAll, points, and UList< T >::rcIndex().
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 185 of file MPLICface.C.
References List< T >::append(), f(), UList< T >::fcIndex(), Foam::findMin(), forAll, points, and UList< T >::rcIndex().
|
inline |
Calculate and return alphaPhiU.
Definition at line 30 of file MPLICfaceI.H.
|
inline |
Calculate and return alphaPhiU.
|
inline |
Calculate and return alphaPhiU.
|
inline |
Access to cut points.
Definition at line 96 of file MPLICfaceI.H.
|
inline |
Access to submerged face points.
Definition at line 103 of file MPLICfaceI.H.
|
inline |
Access to cut edges.
Definition at line 109 of file MPLICfaceI.H.
|
inline |
Return subface surface area vector.
Definition at line 115 of file MPLICfaceI.H.
References face::area().
|
inline |
Return subface centre.
Definition at line 121 of file MPLICfaceI.H.
References Foam::constant::universal::c, forAll, Foam::normalised(), p, Foam::constant::mathematical::pi(), VectorSpace< Form, Cmpt, Ncmpts >::size(), and Foam::Zero.
|
inline |
Return interpolated U values.
|
inline |
Definition at line 44 of file MPLICfaceI.H.
References points, and List< T >::size().
|
inline |
Definition at line 70 of file MPLICfaceI.H.
References f(), points, and List< T >::size().