Go to the documentation of this file.
87 #ifndef targetVolumeToCell_H
88 #define targetVolumeToCell_H
104 class 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 =
""
void set(List< bool > &bools, const labelRange &range)
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...
virtual void applyToSet(const topoSetSource::setAction action, topoSet &set) const
virtual ~targetVolumeToCell()=default
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...
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
General set of labels of mesh quantity (points, cells, faces).
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
Vector< scalar > vector
A scalar version of the templated Vector.
TypeName("targetVolumeToCell")
The topoSetCellSource is a intermediate class for handling topoSet sources for selecting cells.
const polyMesh & mesh() const noexcept
targetVolumeToCell(const polyMesh &mesh, const scalar vol, const vector &normal, const word &maskSetName="")