60 clipPlaneToCell::typeName,
61 "\n Usage: clipPlaneToCell (px py pz) (nx ny nz)\n\n" 62 " Select cells with centres above the plane\n\n" 68 void Foam::clipPlaneToCell::combine(topoSet&
set,
const bool add)
const 76 if (((ctrs[elemi] - point_) & normal_) > 0)
89 const point& basePoint,
138 Info<<
" Adding cells with centres above plane at " 139 << point_ <<
" with normal " << normal_ <<
endl;
148 Info<<
" Removing cells with centres above plane at " 149 << point_ <<
" with normal " << normal_ <<
endl;
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Create a new set and ADD elements to it.
Add elements to current set.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
Ostream & endl(Ostream &os)
Add newline and flush stream.
The topoSetCellSource is a intermediate class for handling topoSet sources for selecting cells...
void addOrDelete(topoSet &set, const label id, const bool add) const
Add or delete id from set. Add when 'add' is true.
Macros for easy insertion into run-time selection tables.
addNamedToRunTimeSelectionTable(topoSetCellSource, badQualityToCell, word, badQuality)
#define forAll(list, i)
Loop across all elements in list.
AccessType combine(const UList< T > &lists, AccessOp aop=accessOp< T >())
Combines sub-lists into a single list.
vectorField pointField
pointField is a vectorField.
clipPlaneToCell()=delete
No default construct.
setAction
Enumeration defining various actions.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &set) const
Apply specified action to the topoSet.
const vectorField & cellCentres() const
const polyMesh & mesh_
Reference to the mesh.
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
defineTypeNameAndDebug(combustionModel, 0)
General set of labels of mesh quantity (points, cells, faces).
A topoSetCellSource to select all cells whose cell centre is above the specified plane.
Subtract elements from current set.
vector point
Point is a vector.
Class with constructor to add usage string to table.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Mesh consisting of general polyhedral cells.
addToRunTimeSelectionTable(functionObject, pointHistory, dictionary)