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()
176 <<
" points:" << Mesh::points().size();
Defines the attributes of an object for which implicit objectRegistry management is supported,...
virtual label triangulate()
const List< face > & surfFaces() const
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
const Field< point_type > & points() const noexcept
surfaceTopo surfaceType(labelHashSet *badEdgesPtr=nullptr) const
T & first()
Access first element of the list, position [0].
bool get(const label i) const
T & last()
Access last element of the list, position [size()-1].
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
Description of cuts across cells.
Base for creating a MeshedSurface by performing some type of cell cutting/intersection.
void walkCellCuts(const primitiveMesh &mesh, const bitSet &cellCuts, const EdgeOrientIntersect &edgeOrientIntersect, const EdgeAlphaIntersect &edgeAlphaIntersect, const bool triangulate, label nFaceCuts=0)
Walk cell cuts to create faces.
labelList meshCells_
List of the cells cut.
cuttingSurfaceBase()=default
Default construct.
void print(Ostream &os, int level=0) const
Print information.
virtual void performCut(const primitiveMesh &mesh, const bool triangulate, bitSet &&cellIdLabels)
Cut mesh, restricted to a list of cells.
const word & surfaceName() const
The name of the underlying searchableSurface.
cuttingSurface(const polyMesh &mesh, const word &surfaceType, const word &surfaceName)
Construct from components.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
An edge is a list of two vertex labels. This can correspond to a directed graph edge or an edge on a ...
Mesh data needed to do the Finite Volume discretisation.
Mesh consisting of general polyhedral cells.
Cell-face mesh analysis engine.
Base class of (analytical or triangulated) surface. Encapsulates all the search routines....
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
Different types of constants.
Namespace of functions to calculate implicit derivatives returning a matrix.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh > > &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)