37 const word& surfaceType,
38 const word& surfaceName
50 mesh.time().constant(),
64 const word& defaultSurfaceName,
77 dict.getOrDefault(
"surfaceName", defaultSurfaceName),
78 mesh.time().constant(),
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()
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
void size(const label n)
Older name for setAddressableSize.
void print(Ostream &os, int level=0) const
Print information.
cuttingSurface(const polyMesh &mesh, const word &surfaceType, const word &surfaceName)
Construct from components.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Base for creating a MeshedSurface by performing some type of cell cutting/intersection.
Cell-face mesh analysis engine.
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.
Base class of (analytical or triangulated) surface. Encapsulates all the search routines. WIP.
Description of cuts across cells.
const dimensionedScalar e
Elementary charge.
A class for handling words, derived from Foam::string.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
virtual void performCut(const primitiveMesh &mesh, const bool triangulate, bitSet &&cellIdLabels)
Cut mesh, restricted to a list of cells.
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
label nCells() const noexcept
Number of mesh cells.
Mesh data needed to do the Finite Volume discretisation.
Mesh consisting of general polyhedral cells.
Defines the attributes of an object for which implicit objectRegistry management is supported...