Go to the documentation of this file.
122 return Cmpt(v1.
x()*v2.
x() + v1.
y()*v2.
y());
129 return x()*
b.y() -
y()*
b.x();
140 return (
mag(
x() -
b.x()) < tol &&
mag(
y() -
b.y()) < tol);
bool isClose(const Vector2D< Cmpt > &b, const scalar tol=1e-10) const
Return true if vector is within tol.
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))
tmp< GeometricField< Type, fvPatchField, volMesh > > operator&(const fvMatrix< Type > &, const DimensionedField< Type, volMesh > &)
static constexpr const zero Zero
Global zero (0)
Templated 2D Vector derived from VectorSpace adding construction from 2 components,...
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Vector2D()=default
Default construct.
PtrList< volScalarField > & Y
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
Vector2D< Cmpt > & normalise()
Normalise the vector by its magnitude.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
tmp< faMatrix< Type > > operator*(const areaScalarField &, const faMatrix< Type > &)
const Cmpt & y() const
Access to the vector y component.
scalar perp(const Vector2D< Cmpt > &b) const
Perp dot product (dot product with perpendicular vector)
const Cmpt & x() const
Access to the vector x component.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...