Go to the documentation of this file.
50 shapeToCell::typeName,
51 "\n Usage: shapeToCell tet|pyr|prism|hex|tetWedge|wedge|splitHex\n\n"
52 " Select all cells of given cellShape.\n"
53 " (splitHex hardcoded with internal angle < 10 degrees)\n"
65 if (
type_ ==
"splitHex")
165 Info<<
" Adding all cells of type " << type_ <<
" ..." <<
endl;
171 Info<<
" Removing all cells of type " << type_ <<
" ..." <<
endl;
const cellShapeList & cellShapes
A class for handling words, derived from string.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const
#define forAll(list, i)
Loop across all elements in list.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
virtual ~shapeToCell()
Destructor.
AccessType combine(const List< T > &, AccessOp aop=accessOp< T >())
Combines sublists into one big list.
Class with constructor to add usage string to table.
static addToUsageTable usage_
Add usage string.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
Unit conversion functions.
Ostream & endl(Ostream &os)
Add newline and flush stream.
setAction
Enumeration defining the valid actions.
Mesh consisting of general polyhedral cells.
A cellMatcher for hex cells.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
const faceList & faces() const
static const cellModel * lookup(const word &)
Look up a model by name and return a pointer to the model or NULL.
void combine(topoSet &set, const bool add) const
Depending on cell type add to or delete from cellSet.
General set of labels of mesh quantity (points, cells, faces).
A list of keyword definitions, which are a keyword followed by any number of values (e....
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.
Base class of a source for a topoSet.
const cellShapeList & cellShapes() const
Return cell shapes.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
bool isA(const Type &t)
Check if a dynamic_cast to typeid is possible.
shapeToCell(const polyMesh &mesh, const word &type)
Construct from components.
Maps a geometry to a set of cell primitives, which enables geometric cell data to be calculated witho...
static scalar featureCos
Cos of feature angle for polyHedral to be splitHex.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
word type_
Name of cell type.
defineTypeNameAndDebug(combustionModel, 0)
void addOrDelete(topoSet &set, const label cellI, const bool) const
Add (if bool) cellI to set or delete cellI from set.
scalar degToRad(const scalar deg)
Conversion from degrees to radians.
dimensionedScalar cos(const dimensionedScalar &ds)