Class for cutting a face, faceI, of an fvMesh, mesh_, at its intersection with an isosurface defined by the mesh point values f_ and the isovalue, cutValue. More...
#include <cutFaceIso.H>


Public Member Functions | |
| cutFaceIso (const fvMesh &mesh, scalarField &f) | |
| Construct from fvMesh and a scalarField. | |
| label | calcSubFace (const label faceI, const scalar cutValue) |
| Calculate cut points along edges of faceI. | |
| const point & | subFaceCentre () const noexcept |
| Returns centre of cutted face. | |
| const vector & | subFaceArea () const noexcept |
| Returns area vector of cutted face. | |
| const DynamicList< point > & | subFacePoints () const noexcept |
| Returns the cut edge of the cutted face. | |
| const DynamicList< point > & | surfacePoints () const noexcept |
| Returns point of the face in sorted of cutted face. | |
| void | clearStorage () |
| Resets internal variables. | |
| Public Member Functions inherited from cutFace | |
| cutFace (const fvMesh &mesh) | |
| Construct from fvMesh. | |
Additional Inherited Members | |
| Static Public Attributes inherited from cutFace | |
| static int | debug = 0 |
| Protected Member Functions inherited from cutFace | |
| void | calcSubFace (const label faceI, const scalarList &pointStatus, label firstFullySubmergedPoint, DynamicList< point > &subFacePoints, DynamicList< point > &surfacePoints, label &faceStatus, vector &subFaceCentre, vector &subFaceArea) |
| Calculate cut points along edges of face with pointStatus, pointfield and computes geometric information and the face status where: | |
| void | calcSubFace (const label faceI, const scalarList &pointStatus, const scalarList &weights, label firstFullySubmergedPoint, DynamicList< point > &subFacePoints, DynamicList< point > &surfacePoints, label &faceStatus, vector &subFaceCentre, vector &subFaceArea) |
| Calculate cut points along edges of face with pointStatus, pointfield, weights and computes geometric information and the face status where: | |
| void | calcSubFaceCentreAndArea (DynamicList< point > &subFacePoints, vector &subFaceCentre, vector &subFaceArea) |
| Calculates centre and normal of the face. | |
| void | calcSubFace (const face &f, const pointField &points, const scalarList &pointStatus, label firstFullySubmergedPoint, DynamicList< point > &subFacePoints, DynamicList< point > &surfacePoints, label &faceStatus, vector &subFaceCentre, vector &subFaceArea) |
| Calculate cut points along edges of face with pointStatus, pointfield and computes geometric information and the face status where: | |
Class for cutting a face, faceI, of an fvMesh, mesh_, at its intersection with an isosurface defined by the mesh point values f_ and the isovalue, cutValue.
Reference:
Roenby, J., Bredmose, H. and Jasak, H. (2016).
A computational method for sharp interface advection
Royal Society Open Science, 3
doi 10.1098/rsos.160405
Original code supplied by Johan Roenby, DHI (2016)
Definition at line 64 of file cutFaceIso.H.
| cutFaceIso | ( | const fvMesh & | mesh, |
| scalarField & | f ) |
Construct from fvMesh and a scalarField.
length of scalarField should equal number of mesh points
Definition at line 27 of file cutFaceIso.C.
References clearStorage(), cutFace::cutFace(), f(), mesh, and Foam::Zero.

| Foam::label calcSubFace | ( | const label | faceI, |
| const scalar | cutValue ) |
Calculate cut points along edges of faceI.
Definition at line 46 of file cutFaceIso.C.
References cutFace::calcSubFace(), clearStorage(), f(), forAll, Foam::mag(), and Foam::Zero.

|
inlinenoexcept |
Returns centre of cutted face.
Definition at line 148 of file cutFaceIso.H.
References Foam::noexcept.
|
inlinenoexcept |
Returns area vector of cutted face.
Definition at line 156 of file cutFaceIso.H.
References Foam::noexcept.
|
inlinenoexcept |
Returns the cut edge of the cutted face.
Definition at line 164 of file cutFaceIso.H.
References Foam::noexcept.
|
inlinenoexcept |
Returns point of the face in sorted of cutted face.
Definition at line 172 of file cutFaceIso.H.
References Foam::noexcept.
| void clearStorage | ( | ) |
Resets internal variables.
Definition at line 107 of file cutFaceIso.C.
References Foam::Zero.
Referenced by calcSubFace(), and cutFaceIso().
