71 tselected = getTopoSetLabels(
name, setType);
78 <<
"Unexpected sourceType: " << int(setType) <<
nl
87 const labelUList& faceCells = patch_.faceCells();
89 auto& result = tresult.ref();
93 if (inSelection.found(faceCells[facei]))
116 tselected = getTopoSetLabels(
name, setType);
123 <<
"Unexpected sourceType: " << int(setType) <<
nl
132 const label patchStart = patch_.start();
135 auto& result = tresult.ref();
139 if (inSelection.found(facei + patchStart))
141 result[facei] =
true;
180 return patch_.patch().localPoints();
bool found(const Key &key) const
Same as contains().
void fill_random(scalarField &field, label seed=0, const bool gaussian=false) const
Fill a random field.
const exprResult & result() const noexcept
Const access to expression result.
tmp< Field< Type > > getVariable(const word &name, const label expectSize, const bool mandatory=true) const
Retrieve local/global variable as a tmp field.
refPtr< labelList > getTopoSetLabels(const word &name, enum topoSetSource::sourceType setType) const
Get the labels associated with the topo set.
virtual label size() const
The natural field size for the expression.
virtual label pointSize() const
The point field size for the expression.
tmp< vectorField > field_faceCentre() const
The face centres - (swak = pos).
tmp< Field< Type > > getPointField(const word &fldName)
Retrieve field (point field).
tmp< boolField > field_cellSelection(const word &name, enum topoSetSource::sourceType setType) const
Cell selections (as logical).
tmp< vectorField > field_unitNormal() const
The face unit normal direction [nf] - (expression: normal).
tmp< Field< Type > > getSurfaceField(const word &fldName)
Retrieve field (surface field).
tmp< scalarField > field_rand(label seed=0, bool gaussian=false) const
A uniform random field.
tmp< boolField > field_faceSelection(const word &name, enum topoSetSource::sourceType setType) const
Face selections (as logical).
const fvPatch & patch_
The referenced patch.
tmp< scalarField > field_faceArea() const
The face area magnitudes [magSf] - (swak = area).
tmp< vectorField > field_areaNormal() const
The face areas with their vector direction [Sf] - (swak = face).
tmp< vectorField > field_pointField() const
The patch point locations - (swak = pts).
Smooth ATC in cells next to a set of patches supplied by type.
A class for managing references or pointers (no reference counting).
A class for managing temporary objects.
static tmp< T > New(Args &&... args)
Construct tmp with forwarding arguments.
sourceType
Enumeration defining the types of sources.
@ FACESET_SOURCE
Faces as set.
@ FACEZONE_SOURCE
Faces as zone.
@ CELLSET_SOURCE
Cells as set.
@ CELLZONE_SOURCE
Cells as zone.
A class for handling words, derived from Foam::string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
HashSet< label, Hash< label > > labelHashSet
A HashSet of labels, uses label hasher.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
errorManipArg< error, int > exit(error &err, const int errNo=1)
UList< label > labelUList
A UList of labels.
constexpr char nl
The newline '\n' character (0x0a).
#define forAll(list, i)
Loop across all elements in list.