76 void Field<Vector<double>>::normalise()
78 typedef double cmptType;
82 for (Vector<cmptType>& v : *
this)
pTraits< Foam::vector >::cmptType cmptType
Component type.
constexpr floatScalar floatScalarROOTVSMALL
dimensionedScalar sqrt(const dimensionedScalar &ds)
const Cmpt & y() const noexcept
Access to the vector y component.
constexpr doubleScalar doubleScalarROOTVSMALL
Generic templated field type.
Templated 3D Vector derived from VectorSpace adding construction from 3 components, element access using x(), y() and z() member functions and the inner-product (dot-product) and cross-product operators.
const Cmpt & x() const noexcept
Access to the vector x component.
const Cmpt & z() const noexcept
Access to the vector z component.
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;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)