36 Foam::functionObjects::sampledSurfaces::sampleLocalType
49 const word&
name = fieldNames[fieldi];
58 if (!interpolations.found(name))
74 s.interpolate(*interpolations[name]).ptr()
79 fieldTypeValues.set(fieldi, s.sample(vf).ptr());
87 fieldTypeValues.set(fieldi, s.sample(sf).ptr());
91 return fieldTypeValues;
97 Foam::functionObjects::sampledSurfaces::sampleType
106 sampleLocalType<Type>(surfi,
fieldNames, interpolations);
108 if (Pstream::parRun())
112 forAll(fieldNames, fieldi)
114 if (fieldTypeValues.
set(fieldi))
116 gatheredTypeValues.set
121 gatheredTypeValues[fieldi][Pstream::myProcNo()] =
122 fieldTypeValues[fieldi];
123 Pstream::gatherList(gatheredTypeValues[fieldi]);
128 fieldTypeValues.
clear();
129 fieldTypeValues.
resize(fieldNames.size());
132 if (Pstream::master())
135 forAll(fieldNames, fieldi)
137 if (gatheredTypeValues.set(fieldi))
146 gatheredTypeValues[fieldi],
155 forAll(fieldNames, fieldi)
157 if (fieldTypeValues.
set(fieldi))
161 mergeList_[surfi].pointsMap.size()
162 == fieldTypeValues[fieldi].
size()
177 return fieldTypeValues;
void inplaceReorder(const labelUList &oldToNew, ListType &)
Inplace reorder the elements of a list.
#define forAll(list, i)
Loop across all elements in list.
bool set(const label) const
Is element set.
An abstract class for surfaces with sampling.
void size(const label)
Override size to be inconsistent with allocated storage.
Generic GeometricField class.
Operations on lists of strings.
A HashTable specialisation for hashing pointers.
static List< word > fieldNames
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
Pre-declare SubField and related Field type.
A class for handling words, derived from string.
volScalarField sf(fieldObject, mesh)
word name(const complex &)
Return a string representation of a complex.
label size() const
Return the number of elements in the UPtrList.
void setSize(const label)
Reset size of List.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
Abstract base class for interpolation.
void resize(const label)
Alias for setSize(const label)
void clear()
Clear the PtrList, i.e. set size to zero deleting all the.
treeBoundBox combine(const treeBoundBox &a, const treeBoundBox &b)