60 clipPlaneToFace::typeName,
61 "\n Usage: clipPlaneToFace (px py pz) (nx ny nz)\n\n"
62 " Select faces with centres above the plane\n\n"
68void Foam::clipPlaneToFace::combine(topoSet& set,
const bool add)
const
77 if (((ctrs[elemi] - point_) & normal_) > 0)
90 const point& basePoint,
136 Info<<
" Adding faces with centres above plane at "
137 << point_ <<
" with normal " << normal_ <<
endl;
146 Info<<
" Removing faces with centres above plane at "
147 << point_ <<
" with normal " << normal_ <<
endl;
Macros for easy insertion into run-time selection tables.
#define addNamedToRunTimeSelectionTable(baseType, thisType, argNames, lookupName)
Add to construction table with 'lookupName' as the key.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
A topoSetFaceSource to select all faces whose face centre is above the specified plane.
clipPlaneToFace()=delete
No default construct.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &set) const
Apply specified action to the topoSet.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Mesh consisting of general polyhedral cells.
const vectorField & faceCentres() const
The topoSetFaceSource is a intermediate class for handling topoSet sources for selecting faces.
topoSetFaceSource(const polyMesh &mesh)
Construct from mesh.
Class with constructor to add usage string to table.
Base class of a source for a topoSet.
void addOrDelete(topoSet &set, const label id, const bool add) const
Add or delete id from set. Add when 'add' is true.
setAction
Enumeration defining various actions.
@ SUBTRACT
Subtract elements from current set.
@ ADD
Add elements to current set.
@ NEW
Create a new set and ADD elements to it.
bool verbose_
Output verbosity (default: true).
const polyMesh & mesh() const noexcept
Reference to the mesh.
const polyMesh & mesh_
Reference to the mesh.
static Istream & checkIs(Istream &is)
Check state of stream.
General set of labels of mesh quantity (points, cells, faces).
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
refinementData transform(const tensor &, const refinementData val)
No-op rotational transform for base types.
messageStream Info
Information stream (stdout output on master, null elsewhere).
Ostream & endl(Ostream &os)
Add newline and flush stream.
vector point
Point is a vector.
vectorField pointField
pointField is a vectorField.
dict add("bounds", meshBb)
#define forAll(list, i)
Loop across all elements in list.