36#ifndef MapLagrangianFields_H
37#define MapLagrangianFields_H
66 const word& fieldName = (*fieldIter)->name();
68 Info<<
" mapping lagrangian field " << fieldName <<
endl;
91 fieldTarget[i] = fieldSource[addParticles[i]];
105 const word& fieldName = (*fieldIter)->name();
107 Info<<
" mapping lagrangian fieldField " << fieldName <<
endl;
131 if (fieldSource.
size())
135 fieldTarget[i] = fieldSource[addParticles[i]];
138 else if (cloud::debug)
140 Pout<<
"Not mapping " << fieldName <<
" since source size "
141 << fieldSource.
size() <<
" different to"
142 <<
" cloud size " << addParticles.
size()
157 const word& fieldName = (*fieldIter)->name();
159 Info<<
" mapping lagrangian fieldField " << fieldName <<
endl;
180 if (fieldSource.
size())
184 fieldTarget[i] = fieldSource[addParticles[i]];
187 else if (cloud::debug)
189 Pout<<
"Not mapping " << fieldName <<
" since source size "
190 << fieldSource.
size() <<
" different to"
191 <<
" cloud size " << addParticles.
size()
A Field of objects of type <T> with automated input and output using a compact storage....
Generic templated field type.
A primitive field of type <T> with automated input and output.
List of IOobjects with searching and retrieving facilities.
IOobjectList lookupClass(const char *clsName) const
The list of IOobjects with the given headerClassName.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
static word timeName(const scalar t, const int precision=precision_)
void size(const label n)
Older name for setAddressableSize.
static const word prefix
The prefix to local: lagrangian.
const Time & time() const noexcept
Return time registry.
Mesh consisting of general polyhedral cells.
virtual bool write(const bool valid=true) const
Write using setting from DB.
A class for handling words, derived from Foam::string.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
prefixOSstream Pout
OSstream wrapped stdout (std::cout) with parallel prefix.
void MapLagrangianFields(const string &cloudName, const IOobjectList &objects, const meshToMesh0 &meshToMesh0Interp, const labelList &addParticles)
Gets the indices of (source)particles that have been appended to the.
multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
#define forAll(list, i)
Loop across all elements in list.
#define forAllConstIters(container, iter)
Iterate across all elements of the container object with const access.
const word cloudName(propsDict.get< word >("cloud"))