48 active_(bool(coordSys_))
58 scale_.set(dir, std::move(scaling));
68 coordSys_(rhs.coordSys_.clone()),
84 return coordSys_->localPosition(globalPos);
99 auto&
fld = tfld.ref();
111 scale_[dir].value(
local.component(dir))
116 return coordSys_->transform(
pos,
fld);
118 else if (scale_.size())
142 coordSys_->writeEntry(
os);
148 scale_[dir].writeData(
os);
Base class for coordinate system specification, the default coordinate system type is cartesian ...
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
dimensioned< cmptType > component(const direction d) const
Return a component as a dimensioned<cmptType>
tmp< pointField > localPosition(const pointField &globalPos) const
Convert to local coordinates, pass-through if no coordinate system is active.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
::Foam::direction nComponents(const expressions::valueTypeCode) noexcept
The number of components associated with given valueTypeCode.
#define forAll(list, i)
Loop across all elements in list.
dimensionedScalar pos(const dimensionedScalar &ds)
coordinateScaling()
Default construct.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
A class for handling words, derived from Foam::string.
dimensioned< Type > cmptMultiply(const dimensioned< Type > &, const dimensioned< Type > &)
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
OBJstream os(runTime.globalPath()/outputName)
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))
auto key(const Type &t) -> typename std::enable_if< std::is_enum< Type >::value, typename std::underlying_type< Type >::type >::type
A class for managing temporary objects.
Registry of regIOobjects.
virtual tmp< Field< Type > > transform(const pointField &pos, const Field< Type > &local) const
Evaluate.
virtual void writeEntry(Ostream &os) const
Write dictionary entry.
const volScalarField & p0