33 namespace sampledSurfaces
51 patch(name, mesh, dict),
52 mappers_(patchIDs().size())
55 if (dict.
found(
"offsetMode"))
145 return sampleField(vField);
155 return sampleField(vField);
164 return sampleField(vField);
174 return sampleField(vField);
184 return sampleField(vField);
194 return interpolateField(interpolator);
204 return interpolateField(interpolator);
214 return interpolateField(interpolator);
224 return interpolateField(interpolator);
234 return interpolateField(interpolator);
240 os <<
"patchInternalField: " <<
name() <<
" :" 242 <<
" faces:" << faces().size()
243 <<
" points:" <<
points().size();
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
#define forAll(list, i)
Loop across all elements in list.
mode_t mode(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file mode.
const word & name() const
Return name.
A list of keyword definitions, which are a keyword followed by any number of values (e...
patchInternalField(const word &name, const polyMesh &mesh, const dictionary &dict)
Construct from dictionary.
defineTypeNameAndDebug(distanceSurface, 0)
A sampledSurface on patches. Non-triangulated by default.
bool interpolate() const
Interpolation requested for surface.
virtual void print(Ostream &) const
Write.
scalar distance(const vector &p1, const vector &p2)
virtual tmp< scalarField > sample(const volScalarField &) const
Sample field on surface.
Macros for easy insertion into run-time selection tables.
A class for handling words, derived from string.
wordList patchNames(nPatches)
static const word null
An empty word.
Determines a mapping between patch face centres and mesh cell or face centres and processors they're ...
An Ostream is an abstract base class for all output systems (streams, files, token lists...
offsetMode
How to project face centres.
addToRunTimeSelectionTable(sampledSurface, distanceSurface, word)
word name(const complex &)
Return a string representation of a complex.
Enum read(Istream &) const
Read a word from Istream and return the corresponding.
Mesh consisting of general polyhedral cells.
static const NamedEnum< offsetMode, 3 > offsetModeNames_
A class for managing temporary objects.
virtual ~patchInternalField()
Destructor.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.