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]];
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]];
189 Pout<<
"Not mapping " << fieldName <<
" since source size " 190 << fieldSource.
size() <<
" different to" 191 <<
" cloud size " << addParticles.
size()
void size(const label n)
Older name for setAddressableSize.
List of IOobjects with searching and retrieving facilities. Implemented as a HashTable, so the various sorted methods should be used if traversing in parallel.
IOobjectList lookupClass(const char *clsName) const
The list of IOobjects with the given headerClassName.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Ignore writing from objectRegistry::writeObject()
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.
Generic templated field type.
const word cloudName(propsDict.get< word >("cloud"))
A class for handling words, derived from Foam::string.
const Time & time() const noexcept
Return time registry.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
static word timeName(const scalar t, const int precision=precision_)
Return time name of given scalar time formatted with the given precision.
int debug
Static debugging option.
A Field of objects of type <T> with automated input and output using a compact storage. Behaves like IOField except when binary output in case it writes a CompactListList.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Mesh consisting of general polyhedral cells.
virtual bool write(const bool valid=true) const
Write using setting from DB.
Defines the attributes of an object for which implicit objectRegistry management is supported...
A primitive field of type <T> with automated input and output.
prefixOSstream Pout
OSstream wrapped stdout (std::cout) with parallel prefix.
forAllConstIters(mixture.phases(), phase)
static const word prefix
The prefix to local: lagrangian.