33 template<
template<
class>
class Container>
34 void Foam::weightedPosition::operator()
37 Container<weightedPosition>& map
45 point pt(iter->second());
46 if (
mag(iter->first()) > VSMALL)
56 iter->second() =
fld[i++]*iter->first();
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
The coupledPolyPatch is an abstract base class for patches that couple regions of the computational d...
Generic templated field type.
#define forAllIters(container, iter)
Iterate across all elements in the container object.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< ' ';}gmvFile<< nl;for(const word &name :lagrangianScalarNames){ IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
virtual void transformPosition(pointField &) const =0
Transform a patch-based position from other side to this side.
forAllConstIters(mixture.phases(), phase)