Go to the documentation of this file.
33 #ifndef MapLagrangianFields_H
34 #define MapLagrangianFields_H
63 const word& fieldName = fieldIter()->name();
65 Info<<
" mapping lagrangian field " << fieldName <<
endl;
88 fieldTarget[i] = fieldSource[addParticles[i]];
102 const word& fieldName = fieldIter()->name();
104 Info<<
" mapping lagrangian fieldField " << fieldName <<
endl;
125 min(fieldSource.size(), addParticles.
size())
128 if (fieldSource.size())
132 fieldTarget[i] = fieldSource[addParticles[i]];
135 else if (cloud::debug)
137 Pout<<
"Not mapping " << fieldName <<
" since source size "
138 << fieldSource.size() <<
" different to"
139 <<
" cloud size " << addParticles.
size()
154 const word& fieldName = fieldIter()->name();
156 Info<<
" mapping lagrangian fieldField " << fieldName <<
endl;
174 min(fieldSource.size(), addParticles.
size())
177 if (fieldSource.size())
181 fieldTarget[i] = fieldSource[addParticles[i]];
184 else if (cloud::debug)
186 Pout<<
"Not mapping " << fieldName <<
" since source size "
187 << fieldSource.size() <<
" different to"
188 <<
" cloud size " << addParticles.
size()
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
A class for handling words, derived from string.
#define forAllIter(Container, container, iter)
Iterate across all elements in the container object of type.
A primitive field of type <T> with automated input and output.
#define forAll(list, i)
Loop across all elements in list.
Info<< "Creating field dpdt\n"<< endl;volScalarField dpdt(IOobject("dpdt", runTime.timeName(), mesh), mesh, dimensionedScalar("dpdt", p.dimensions()/dimTime, 0));Info<< "Creating field kinetic energy K\n"<< endl;volScalarField K("K", 0.5 *magSqr(U));volScalarField p_rgh(IOobject("p_rgh", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);p_rgh=p - rho *gh;mesh.setFluxRequired(p_rgh.name());multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
const Time & time() const
Return time.
virtual bool write() const
Write using setting from DB.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A Field of objects of type <T> with automated input and output using a compact storage....
Mesh consisting of general polyhedral cells.
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.
IOobjectList lookupClass(const word &className) const
Return the list for all IOobjects of a given class.
List of IOobjects with searching and retrieving facilities.
static const word prefix
The prefix to local: lagrangian.
prefixOSstream Pout(cout, "Pout")
static word timeName(const scalar, const int precision=precision_)
Return time name of given scalar time.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
const word cloudName(propsDict.lookup("cloudName"))
void size(const label)
Override size to be inconsistent with allocated storage.
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)