87#ifndef targetVolumeToCell_H
88#define targetVolumeToCell_H
104class targetVolumeToCell
106 public topoSetCellSource
111 static addToUsageTable usage_;
120 const word maskSetName_;
126 scalar volumeOfSet(
const bitSet& selected)
const;
130 const scalar normalComp,
135 void combine(topoSet& set,
const bool add)
const;
149 const polyMesh&
mesh,
152 const word& maskSetName =
""
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Mesh consisting of general polyhedral cells.
A topoSetCellSource to select cells based on a target volume of cells. Adapts a plane until it has en...
TypeName("targetVolumeToCell")
Runtime type information.
virtual ~targetVolumeToCell()=default
Destructor.
targetVolumeToCell(const polyMesh &mesh, const scalar vol, const vector &normal, const word &maskSetName="")
Construct from components.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &set) const
Apply specified action to the topoSet.
The topoSetCellSource is a intermediate class for handling topoSet sources for selecting cells.
Class with constructor to add usage string to table.
setAction
Enumeration defining various actions.
const polyMesh & mesh() const noexcept
Reference to the mesh.
General set of labels of mesh quantity (points, cells, faces).
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
A class for handling words, derived from Foam::string.
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.