36 Foam::functionObjects::sampledSurfaces::sampleLocalType
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);
114 if (fieldTypeValues.
set(fieldi))
116 gatheredTypeValues.
set
122 fieldTypeValues[fieldi];
128 fieldTypeValues.
clear();
137 if (gatheredTypeValues.
set(fieldi))
146 gatheredTypeValues[fieldi],
157 if (fieldTypeValues.
set(fieldi))
161 mergeList_[surfi].pointsMap.size()
162 == fieldTypeValues[fieldi].
size()
168 f.setSize(mergeList_[surfi].
points.size());
177 return fieldTypeValues;
#define forAll(list, i)
Loop across all elements in list.
Pre-declare SubField and related Field type.
Generic GeometricField class.
A HashTable specialisation for hashing pointers.
void size(const label)
Override size to be inconsistent with allocated storage.
static void gatherList(const List< commsStruct > &comms, List< T > &Values, const int tag, const label comm)
Gather data but keep individual values separate.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
bool set(const label) const
Is element set.
void resize(const label)
Alias for setSize(const label)
void clear()
Clear the PtrList, i.e. set size to zero deleting all the.
static bool master(const label communicator=0)
Am I the master process.
static label nProcs(const label communicator=0)
Number of processes in parallel run.
static bool & parRun()
Is this a parallel run?
static int myProcNo(const label communicator=0)
Number of this process (starting from masterNo() = 0)
label size() const
Return the number of elements in the UPtrList.
const T & operator[](const label) const
Return element const reference.
const word & name() const
Return the name of this functionObject.
const fvMesh & mesh_
Reference to the fvMesh.
Abstract base class for interpolation.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type and name.
bool foundObject(const word &name) const
Is the named Type in registry.
An abstract class for surfaces with sampling.
A class for handling words, derived from string.
volScalarField sf(fieldObject, mesh)
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.name(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
AccessType combine(const List< T > &, AccessOp aop=accessOp< T >())
Combines sublists into one big list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void inplaceReorder(const labelUList &oldToNew, ListType &)
Inplace reorder the elements of a list.
Operations on lists of strings.