Go to the documentation of this file.
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:
71 tselected = getTopoSetLabels(
name, setType);
78 <<
"Unexpected sourceType: " << int(setType) <<
nl
89 auto& result = tresult.ref();
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;
173 return patch_.patch().localPoints();
sourceType
Enumeration defining the types of sources.
tmp< vectorField > field_pointField() const
The patch point locations - (swak = pts)
A class for handling words, derived from Foam::string.
A class for managing temporary objects.
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)
#define forAll(list, i)
Loop across all elements in list.
tmp< vectorField > field_areaNormal() const
The face areas with their vector direction [Sf] - (swak = face)
void fill_random(scalarField &field, label seed=0, const bool gaussian=false) const
Fill a random field.
tmp< scalarField > field_rand(label seed=0, bool gaussian=false) const
A uniform random field.
tmp< vectorField > field_faceCentre() const
The face centres - (swak = pos)
errorManipArg< error, int > exit(error &err, const int errNo=1)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
tmp< boolField > field_cellSelection(const word &name, enum topoSetSource::sourceType setType) const
Cell selections (as logical)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
static tmp< T > New(Args &&... args)
Construct tmp of T with forwarding arguments.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
const scalarField & magSf() const
Return face area magnitudes.
const fvPatch & patch_
The referenced patch.
Smooth ATC in cells next to a set of patches supplied by type.
A class for managing references or pointers (no reference counting)