33 namespace sampledSurfaces
51 mappers_(patchIndices().size())
55 if (
dict.found(
"distance"))
57 mappersDict.set(
"distance", -mappersDict.
lookup<scalar>(
"distance"));
83 #define IMPLEMENT_SAMPLE(Type, nullArg) \
84 Foam::tmp<Foam::Field<Foam::Type>> \
85 Foam::sampledSurfaces::patchInternalField::sample \
87 const VolField<Type>& vField \
90 return sampleField(vField); \
93 #undef IMPLEMENT_SAMPLE
96 #define IMPLEMENT_INTERPOLATE(Type, nullArg) \
97 Foam::tmp<Foam::Field<Foam::Type>> \
98 Foam::sampledSurfaces::patchInternalField::interpolate \
100 const interpolation<Type>& interpolator \
103 return interpolateField(interpolator); \
106 #undef IMPLEMENT_INTERPOLATE
111 os <<
"patchInternalField: " <<
name() <<
" :"
113 <<
" faces:" << faces().size()
114 <<
" points:" <<
points().size();
#define forAll(list, i)
Loop across all elements in list.
Macros for easy insertion into run-time selection tables.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
Engine which provides mapping from cells to patch faces.
Mesh consisting of general polyhedral cells.
const polyBoundaryMesh & boundary() const
Return boundary mesh.
An abstract class for surfaces with sampling.
const polyMesh & mesh() const
Access to the underlying mesh.
Variation of sampledPatch that samples the internalField (at a given normal distance from the patch) ...
patchInternalField(const word &name, const polyMesh &mesh, const dictionary &dict)
Construct from dictionary.
virtual ~patchInternalField()
Destructor.
virtual void print(Ostream &) const
Write.
A sampledSurface on patches. Non-triangulated by default.
const labelList & patchIndices() const
A class for handling words, derived from string.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
defineTypeNameAndDebug(cutPlane, 0)
addToRunTimeSelectionTable(sampledSurface, cutPlane, word)
FOR_ALL_FIELD_TYPES(makeDimensionedPointFieldFunctions)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
wordList patchNames(nPatches)
#define IMPLEMENT_INTERPOLATE(Type, nullArg)
#define IMPLEMENT_SAMPLE(Type, nullArg)