Go to the documentation of this file.
63 badQualityToCell::typeName,
64 "\n Usage: badQualityToCell mesh-quality-dictionary\n\n"
65 " Select all cells that do not satisfy the selection criterion\n\n"
71 void Foam::badQualityToCell::combine(topoSet&
set,
const bool add)
const
77 for (
const label facei : faces)
124 Info<<
" Adding bad-quality cells" <<
endl;
133 Info<<
" Removing bad-quality 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.
Class with constructor to add usage string to table.
static bool checkMesh(const bool report, const polyMesh &mesh, const dictionary &dict, labelHashSet &wrongFaces, const bool dryRun=false)
Check mesh with mesh settings in dict. Collects incorrect faces.
Ostream & endl(Ostream &os)
Add newline and flush stream.
setAction
Enumeration defining the valid actions.
Create a new set and ADD elements to it.
Mesh consisting of general polyhedral cells.
badQualityToCell(const polyMesh &mesh, const dictionary &dict)
Construct from dictionary.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
virtual void applyToSet(const topoSetSource::setAction action, topoSet &set) const
Apply specified action to the topoSet.
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.
virtual const labelList & faceOwner() const
Return face owner.
addNamedToRunTimeSelectionTable(topoSetCellSource, badQualityToCell, word, badQuality)
General set of labels of mesh quantity (points, cells, faces).
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.
bool isInternalFace(const label faceIndex) const noexcept
Return true if given face label is internal to the mesh.
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.
label nFaces() const noexcept
Number of mesh faces.
const polyMesh & mesh_
Reference to the mesh.
defineTypeNameAndDebug(combustionModel, 0)
virtual const labelList & faceNeighbour() const
Return face neighbour.