62 rotatedBoxToCell::typeName,
63 "\n Usage: rotatedBoxToCell (originx originy originz)" 64 " (ix iy iz) (jx jy jz) (kx ky kz)\n\n" 65 " Select all cells with cellCentre within parallelopiped\n\n" 71 void Foam::rotatedBoxToCell::combine(topoSet&
set,
const bool add)
const 77 boxPoints[2] += i_ + j_;
80 boxPoints[5] += k_ + i_;
81 boxPoints[6] += k_ + i_ + j_;
82 boxPoints[7] += k_ + j_;
91 boxFaceNormals[i] = boxFaces[i].areaNormal(boxPoints);
107 const face&
f = boxFaces[i];
109 if (((ctrs[celli] - boxPoints[
f[0]]) & boxFaceNormals[i]) > 0)
128 const polyMesh&
mesh,
135 topoSetCellSource(
mesh),
182 Info<<
" Adding cells with centre within rotated box" 192 Info<<
" Removing cells with centre within rotated box" 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.
static const Foam::faceList & modelFaces()
Return the model faces.
label k
Boltzmann constant.
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.
List< face > faceList
List of faces.
AccessType combine(const UList< T > &lists, AccessOp aop=accessOp< T >())
Combines sub-lists into a single list.
vectorField pointField
pointField is a vectorField.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &set) const
Apply specified action to the topoSet.
setAction
Enumeration defining various actions.
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 cells based on cell centres inside a given parallopiped (i...
Subtract elements from current set.
Class with constructor to add usage string to table.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Field< vector > vectorField
Specialisation of Field<T> for vector.
Mesh consisting of general polyhedral cells.
addToRunTimeSelectionTable(functionObject, pointHistory, dictionary)
rotatedBoxToCell(const polyMesh &mesh, const vector &origin, const vector &i, const vector &j, const vector &k)
Construct from components.