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 52 of file MPLICface.H.

Constructor & Destructor Documentation

◆ MPLICface()

MPLICface ( const bool  unweighted = true)

Construct empty.

Definition at line 31 of file MPLICface.C.

◆ ~MPLICface()

~MPLICface ( )
inline

Definition at line 84 of file MPLICface.H.

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 39 of file MPLICface.C.

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

Here is the call 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 185 of file MPLICface.C.

References List< T >::append(), f(), UList< T >::fcIndex(), Foam::findMin(), forAll, points, 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.

◆ 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.

◆ subPoints()

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

Access to submerged face points.

Definition at line 103 of file MPLICfaceI.H.

◆ cutEdges()

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

Access to cut edges.

Definition at line 109 of file MPLICfaceI.H.

◆ Sf()

const Foam::vector Sf ( ) const
inline

Return subface surface area vector.

Definition at line 115 of file MPLICfaceI.H.

References face::area().

Here is the call graph for this function:

◆ Cf()

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

Here is the call graph for this function:

◆ U()

const DynamicList<vector>& U ( ) const
inline

Return interpolated U values.

◆ alphaPhiU() [4/5]

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

Definition at line 44 of file MPLICfaceI.H.

References points, and List< T >::size().

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 70 of file MPLICfaceI.H.

References f(), points, and List< T >::size().

Here is the call graph for this function:

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