36#ifndef Foam_MapLagrangianFields_H
37#define Foam_MapLagrangianFields_H
52template<
class SourceIOFieldType,
class TargetIOFieldType>
66 Info<<
" mapping lagrangian " << msg <<
' ' <<
io.name() <<
endl;
72 SourceIOFieldType fieldSource(
io);
75 TargetIOFieldType fieldTarget
87 min(fieldSource.size(), addParticles.
size())
90 if (!fieldSource.empty())
94 fieldTarget[i] = fieldSource[addParticles[i]];
const word cloudName(propsDict.get< word >("cloud"))
A Field of objects of type <T> with automated input and output using a compact storage....
A primitive field of type <T> with automated input and output.
List of IOobjects with searching and retrieving facilities. Implemented as a HashTable,...
UPtrList< const IOobject > csorted() const
The sorted list of IOobjects with headerClassName == Type::typeName.
@ NO_REGISTER
Do not request registration (bool: false).
@ NO_READ
Nothing to be read.
@ NO_WRITE
Ignore writing from objectRegistry::writeObject().
Defines the attributes of an object for which implicit objectRegistry management is supported,...
static word timeName(const scalar t, const int precision=precision_)
Return a time name for the given scalar time value formatted with the given precision.
void size(const label n)
Older name for setAddressableSize.
static const word prefix
The prefix to local: lagrangian.
Mesh data needed to do the Finite Volume discretisation.
const Time & time() const
Return the top-level database.
virtual bool write(const bool writeOnProc=true) const
Write mesh using IO settings from time.
Serial mesh to mesh interpolation class.
const fvMesh & toMesh() const
List< label > labelList
A List of labels.
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.
void MapLagrangianFields(const string &cloudName, const IOobjectList &objects, const meshToMesh0 &meshToMesh0Interp, const labelList &addParticles, const char *msg)
Gets the indices of (source)particles that have been appended to the.
#define forAll(list, i)
Loop across all elements in list.