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")
67 for (label celli = 0; celli <
mesh_.
nCells(); ++celli)
152 Info<<
" Adding all " << shape_ <<
" cells ..." <<
endl;
161 Info<<
" Removing all " << shape_ <<
" cells ..." <<
endl;
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
Add elements to current set.
void set(List< bool > &bools, const labelRange &range)
Set the specified range 'on' in a boolList.
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.
static bool test(const UList< face > &faces)
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 the type of their cell shapes.
Mesh consisting of general polyhedral cells.
#define forAll(list, i)
Loop across all elements in list.
label nCells() const noexcept
Number of mesh cells.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
messageStream Info
Information stream (stdout output on master, null elsewhere)
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 current 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)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
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.
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)