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"
63 void Foam::shapeToCell::combine(topoSet& set,
const bool add)
const
65 if (shape_ ==
"splitHex")
71 if (hexMatcher().
isA(superCell.faces()))
152 Info<<
" Adding all " << shape_ <<
" cells ..." <<
endl;
161 Info<<
" Removing all " << shape_ <<
" cells ..." <<
endl;
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
A class for handling words, derived from Foam::string.
Class with constructor to add usage string to table.
List< cellShape > cellShapeList
List of cellShapes and PtrList of List of cellShape.
Unit conversion functions.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &set) const
Apply specified action to the topoSet.
Ostream & endl(Ostream &os)
Add newline and flush stream.
setAction
Enumeration defining the valid actions.
T getCompat(const word &keyword, std::initializer_list< std::pair< const char *, int >> compat, enum keyType::option=keyType::REGEX) const
Create a new set and ADD elements to it.
static const cellModel * ptr(const modelType model)
Look up pointer to cellModel by enumeration, or nullptr on failure.
A topoSetCellSource to select cells based on cell shape.
Mesh consisting of general polyhedral cells.
#define forAll(list, i)
Loop across all elements in list.
label nCells() const
Number of mesh 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)....
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.
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.
const cellShapeList & cellShapes() const
Return cell shapes.
constexpr scalar degToRad(const scalar deg) noexcept
Conversion from degrees to radians.
errorManipArg< error, int > exit(error &err, const int errNo=1)
const TargetType * isA(const Type &t)
Check if dynamic_cast to TargetType is possible.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Base class of a topoSet source 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.
static scalar featureCos
Cos of feature angle for polyHedral to be splitHex.
const polyMesh & mesh_
Reference to the mesh.
defineTypeNameAndDebug(combustionModel, 0)
shapeToCell(const polyMesh &mesh, const word &shapeName)
Construct from components.
dimensionedScalar cos(const dimensionedScalar &ds)