Go to the documentation of this file.
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
75 boxPoints[0] = origin_;
76 boxPoints[1] = origin_ + i_;
77 boxPoints[2] = origin_ + i_ + j_;
78 boxPoints[3] = origin_ + j_;
79 boxPoints[4] = origin_ + k_;
80 boxPoints[5] = origin_ + k_ + i_;
81 boxPoints[6] = origin_ + k_ + i_ + j_;
82 boxPoints[7] = origin_ + k_ + j_;
89 faceList boxFaces(cellShape(
hex, boxVerts).faces());
95 boxFaceNormals[i] = boxFaces[i].areaNormal(boxPoints);
111 const face&
f = boxFaces[i];
113 if (((ctrs[celli] - boxPoints[
f[0]]) & boxFaceNormals[i]) > 0)
186 Info<<
" Adding cells with centre within rotated box"
196 Info<<
" Removing cells with centre within rotated box"
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
List< label > labelList
A List of labels.
vectorField pointField
pointField is a vectorField.
void set(List< bool > &bools, const labelRange &range)
Set the specified range 'on' in a boolList.
Class with constructor to add usage string to table.
Ostream & endl(Ostream &os)
Add newline and flush stream.
setAction
Enumeration defining the valid actions.
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Create a new set and ADD elements to it.
Mesh consisting of general polyhedral cells.
#define forAll(list, i)
Loop across all elements in list.
Field< vector > vectorField
Specialisation of Field<T> for vector.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
messageStream Info
Information stream (uses stdout - output is on the master only)
AccessType combine(const UList< T > &lists, AccessOp aop=accessOp< T >())
Combines sub-lists into a single list.
addNamedToRunTimeSelectionTable(topoSetCellSource, badQualityToCell, word, badQuality)
virtual void applyToSet(const topoSetSource::setAction action, topoSet &set) const
Apply specified action to the topoSet.
General set of labels of mesh quantity (points, cells, faces).
static const cellModel & ref(const modelType model)
Look up reference to cellModel by enumeration. Fatal on failure.
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)
Macros for easy insertion into run-time selection tables.
Subtract elements from the set.
IOstream & hex(IOstream &io)
A topoSetCellSource to select cells based on cell centres inside a given parallopiped (i....
const vectorField & cellCentres() const
List< face > faceList
A List of faces.
The topoSetCellSource is a intermediate class for handling topoSet sources for selecting cells.
label k
Boltzmann constant.
labelList identity(const label len, label start=0)
Create identity map of the given length with (map[i] == i)
void addOrDelete(topoSet &set, const label id, const bool add) const
Add or delete id from set. Add when 'add' is true.
const polyMesh & mesh_
Reference to the mesh.
defineTypeNameAndDebug(combustionModel, 0)
rotatedBoxToCell(const polyMesh &mesh, const vector &origin, const vector &i, const vector &j, const vector &k)
Construct from components.