All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MPLICface Class Reference

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
 

Detailed Description

Class that deals with cutting faces based on face point values and target value.

Source files

Definition at line 51 of file MPLICface.H.

Constructor & Destructor Documentation

◆ MPLICface()

MPLICface ( const bool  unweighted = true)

Construct empty.

Definition at line 31 of file MPLICface.C.

References MPLICface::cutFace().

Here is the call graph for this function:

◆ ~MPLICface()

Member Function Documentation

◆ cutFace() [1/2]

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:

  • 0: no cut
  • 1: cut

Definition at line 40 of file MPLICface.C.

References DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::clear(), UList< T >::fcIndex(), Foam::findMin(), forAll, and UList< T >::rcIndex().

Referenced by MPLICface::MPLICface(), and MPLICface::~MPLICface().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ cutFace() [2/2]

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:

  • -1: multi cut
  • 0: no cut
  • +1: single cut

Definition at line 186 of file MPLICface.C.

References UList< T >::fcIndex(), Foam::findMin(), forAll, and UList< T >::rcIndex().

Here is the call graph for this function:

◆ alphaPhiU() [1/5]

Foam::scalar alphaPhiU ( ) const
inline

Calculate and return alphaPhiU.

Definition at line 30 of file MPLICfaceI.H.

Referenced by MPLICface::alphaPhiU(), and MPLICface::~MPLICface().

Here is the caller graph for this function:

◆ alphaPhiU() [2/5]

scalar alphaPhiU ( const VectorList &  pointsU,
const PointList &  points 
) const
inline

Calculate and return alphaPhiU.

◆ alphaPhiU() [3/5]

scalar alphaPhiU ( const VectorList &  pointsU,
const PointList &  points,
const labelList f 
) const
inline

Calculate and return alphaPhiU.

◆ cutPoints()

const Foam::DynamicList< Foam::point > & cutPoints ( ) const
inline

Access to cut points.

Definition at line 96 of file MPLICfaceI.H.

Referenced by MPLICface::~MPLICface().

Here is the caller graph for this function:

◆ subPoints()

const Foam::DynamicList< Foam::point > & subPoints ( ) const
inline

Access to submerged face points.

Definition at line 103 of file MPLICfaceI.H.

Referenced by MPLICface::~MPLICface().

Here is the caller graph for this function:

◆ cutEdges()

const Foam::DynamicList< Foam::label > & cutEdges ( ) const
inline

Access to cut edges.

Definition at line 109 of file MPLICfaceI.H.

Referenced by MPLICface::~MPLICface().

Here is the caller graph for this function:

◆ Sf()

const Foam::vector Sf ( ) const
inline

Return subface surface area vector.

Definition at line 115 of file MPLICfaceI.H.

References face::area(), and MPLICface::Cf().

Referenced by MPLICface::~MPLICface().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Cf()

const Foam::vector Cf ( const vector area) const
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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ U()

const DynamicList<vector>& U ( ) const
inline

Return interpolated U values.

Referenced by MPLICface::~MPLICface().

Here is the caller graph for this function:

◆ alphaPhiU() [4/5]

Foam::scalar alphaPhiU ( const VectorList &  pointsU,
const PointList &  points 
) const
inline

Definition at line 45 of file MPLICfaceI.H.

References MPLICface::alphaPhiU().

Here is the call graph for this function:

◆ alphaPhiU() [5/5]

Foam::scalar alphaPhiU ( const VectorList &  pointsU,
const PointList &  points,
const labelList f 
) const
inline

Definition at line 71 of file MPLICfaceI.H.

References MPLICface::alphaPhiU().

Here is the call graph for this function:

The documentation for this class was generated from the following files: