Go to the documentation of this file.
37 const word& surfaceType,
38 const word& surfaceName
64 const word& defaultSurfaceName,
77 dict.getOrDefault(
"surfaceName", defaultSurfaceName),
95 const bool triangulate,
113 calcCellCuts(fvm, pointDist, cellCuts);
121 const auto edgeOrientIntersect =
124 if (pointDist[
e.last()] < pointDist[
e.first()])
129 const scalar s0 = pointDist[
e.first()];
130 const scalar s1 = pointDist[
e.last()];
149 const auto edgeAlphaIntersect =
150 [=](
const edge&
e) -> scalar
152 const scalar s0 = pointDist[
e.first()];
153 const scalar s1 = pointDist[
e.last()];
154 const scalar d = s1-s0;
156 return Foam::mag(d) < ROOTVSMALL ? -1 : (-s0/d);
172 os <<
" surface:" << surfaceName();
175 os <<
" faces:" << Mesh::surfFaces().size()
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
A class for handling words, derived from Foam::string.
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
const List< Face > & surfFaces() const
cuttingSurface(const polyMesh &mesh, const word &surfaceType, const word &surfaceName)
Mesh consisting of general polyhedral cells.
void print(Ostream &os, int level=0) const
label nCells() const noexcept
virtual void performCut(const primitiveMesh &mesh, const bool triangulate, bitSet &&cellIdLabels)
Generic templated field type.
Base class of (analytical or triangulated) surface. Encapsulates all the search routines....
const word & surfaceName() const
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
Mesh data needed to do the Finite Volume discretisation.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
const dimensionedScalar e
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
Base for creating a MeshedSurface by performing some type of cell cutting/intersection.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
constant condensation/saturation model.
Description of cuts across cells.
Cell-face mesh analysis engine.