36Foam::expressions::patchExpr::parseDriver::getSurfaceField<bool>
41 return getVariable<bool>(
name, this->
size());
47Foam::expressions::patchExpr::parseDriver::getPointField<bool>
52 return getVariable<bool>(
name, this->pointSize());
71 tselected = getTopoSetLabels(
name, setType);
78 <<
"Unexpected sourceType: " << int(setType) <<
nl
89 auto& result = tresult.ref();
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();
173 return patch_.patch().localPoints();
bool found(const Key &key) const
Return true if hashed entry is found in table.
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
void fill_random(scalarField &field, label seed=0, const bool gaussian=false) const
Fill a random field.
virtual label size() const
The natural field size for the expression.
tmp< vectorField > field_faceCentre() const
The face centres - (swak = pos)
tmp< boolField > field_cellSelection(const word &name, enum topoSetSource::sourceType setType) const
Cell selections (as logical)
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)
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.
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.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a)
#define forAll(list, i)
Loop across all elements in list.