36 Foam::expressions::patchExpr::parseDriver::getSurfaceField<bool>
41 return getVariable<bool>(
name, this->size());
47 Foam::expressions::patchExpr::parseDriver::getPointField<bool>
52 return getVariable<bool>(
name, this->pointSize());
68 case topoSetSource::sourceType::CELLZONE_SOURCE:
69 case topoSetSource::sourceType::CELLSET_SOURCE:
78 <<
"Unexpected sourceType: " << int(setType) <<
nl 113 case topoSetSource::sourceType::FACESET_SOURCE:
114 case topoSetSource::sourceType::FACEZONE_SOURCE:
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;
152 return patch_.magSf();
180 return patch_.patch().localPoints();
void fill_random(scalarField &field, label seed=0, const bool gaussian=false) const
Fill a random field.
Field< Type > & ref()
Return non-const reference to the field.
errorManipArg< error, int > exit(error &err, const int errNo=1)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
refPtr< labelList > getTopoSetLabels(const word &name, enum topoSetSource::sourceType setType) const
Get the labels associated with the topo set.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
constexpr char nl
The newline '\n' character (0x0a)
tmp< vectorField > field_pointField() const
The patch point locations - (swak = pts)
tmp< vectorField > field_unitNormal() const
The face unit normal direction [nf] - (expression: normal)
Smooth ATC in cells next to a set of patches supplied by type.
A class for managing references or pointers (no reference counting)
#define forAll(list, i)
Loop across all elements in list.
tmp< scalarField > field_faceArea() const
The face area magnitudes [magSf] - (swak = area)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
A class for handling words, derived from Foam::string.
virtual const labelUList & faceCells() const
Return faceCells.
static tmp< T > New(Args &&... args)
Construct tmp with forwarding arguments.
const exprResult & result() const noexcept
Const access to expression result.
virtual label size() const
The natural field size for the expression.
tmp< vectorField > field_areaNormal() const
The face areas with their vector direction [Sf] - (swak = face)
const fvPatch & patch_
The referenced patch.
sourceType
Enumeration defining the types of sources.
tmp< vectorField > field_faceCentre() const
The face centres - (swak = pos)
tmp< scalarField > field_rand(label seed=0, bool gaussian=false) const
A uniform random field.
A class for managing temporary objects.
tmp< boolField > field_cellSelection(const word &name, enum topoSetSource::sourceType setType) const
Cell selections (as logical)
tmp< boolField > field_faceSelection(const word &name, enum topoSetSource::sourceType setType) const
Face selections (as logical)