Go to the documentation of this file.
100 static const char*
const componentNames[];
233 return (
s >= 0)? 1: -1;
240 return (
s > 0)? 1: 0;
247 return (
s >= 0)? 1: 0;
254 return (
s < 0)? 1: 0;
261 return (
s <= 0)? 1: 0;
268 return (
s > 0)?
s: 0;
276 return (
s < 0)?
s: 0;
294 return (
mag(s1) <
mag(s2)) ? s1: 0.0;
300 return (
mag(s1) <
mag(s2)) ? s1: s2;
419 return maga*
sqrt(1.0 +
sqr(magb/maga));
445 template<
class T>
struct compareOp;
461 return (
mag(a -
b) <= tolerance) ? 0 : (a -
b);
467 template<
class T>
struct equalOp;
483 return mag(a -
b) <= tolerance;
489 template<
class T>
struct notEqualOp;
505 return mag(a -
b) > tolerance;
520 return std::floor(
x);
548 return std::round(
x);
Scalar magType
Magnitude type.
Scalar sqrtSumSqr(const Scalar a, const Scalar b)
static const Scalar vsmall
void cmptMagSqr(Field< Type > &res, const UList< Type > &f)
word operator()(const Scalar val) const
label & setComponent(label &l, const direction)
void component(FieldField< Field, typename FieldField< Field, Type >::cmptType > &sf, const FieldField< Field, Type > &f, const direction d)
label labelType
Equivalent type of labels used for valid component indexing.
dimensionedScalar tan(const dimensionedScalar &ds)
Scalar cmptPow(const Scalar s1, const Scalar s2)
A class for handling words, derived from Foam::string.
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))
Scalar ScalarRead(const char *buf)
Parse entire buffer as a float/double, skipping leading/trailing whitespace.
dimensionedScalar cosh(const dimensionedScalar &ds)
dimensioned< Type > cmptMultiply(const dimensioned< Type > &, const dimensioned< Type > &)
dimensionedScalar y1(const dimensionedScalar &ds)
Scalar cmptType
Component type.
Scalar operator()(const Scalar &x) const
Three-way comparison operation of two parameters,.
dimensionedScalar sin(const dimensionedScalar &ds)
dimensionedScalar jn(const int n, const dimensionedScalar &ds)
dimensionedScalar posPart(const dimensionedScalar &ds)
dimensionedScalar neg0(const dimensionedScalar &ds)
void dot(FieldField< Field1, typename innerProduct< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
Istream & operator>>(Istream &, directionInfo &)
dimensionedScalar pos0(const dimensionedScalar &ds)
dimensionedScalar exp(const dimensionedScalar &ds)
dimensionedScalar sign(const dimensionedScalar &ds)
dimensionedScalar erf(const dimensionedScalar &ds)
#define besselFunc2(func)
Scalar operator()(const Scalar &x) const
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)
dimensionedScalar pow025(const dimensionedScalar &ds)
void cmptMin(FieldField< Field, typename FieldField< Field, Type >::cmptType > &cf, const FieldField< Field, Type > &f)
void cmptMag(FieldField< Field, Type > &cf, const FieldField< Field, Type > &f)
dimensionedScalar atanh(const dimensionedScalar &ds)
void cmptMax(FieldField< Field, typename FieldField< Field, Type >::cmptType > &cf, const FieldField< Field, Type > &f)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
dimensionedScalar lgamma(const dimensionedScalar &ds)
dimensionedScalar pow4(const dimensionedScalar &ds)
dimensionedScalar pow6(const dimensionedScalar &ds)
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
dimensionedScalar tanh(const dimensionedScalar &ds)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
dimensionedScalar pow3(const dimensionedScalar &ds)
tmp< DimensionedField< scalar, GeoMesh > > stabilise(const DimensionedField< scalar, GeoMesh > &dsf, const dimensioned< scalar > &ds)
dimensionedSphericalTensor inv(const dimensionedSphericalTensor &dt)
static const char *const typeName
pTraits(const PrimitiveType &p)
Copy construct from primitive.
word name(const complex &c)
Return string representation of complex.
bool operator()(const Scalar &a, const Scalar &b) const
dimensionedScalar log10(const dimensionedScalar &ds)
dimensionedScalar y0(const dimensionedScalar &ds)
tmp< DimensionedField< typename DimensionedField< Type, GeoMesh >::cmptType, GeoMesh >> cmptAv(const DimensionedField< Type, GeoMesh > &df)
bool operator()(const Scalar &a, const Scalar &b) const
dimensionedScalar erfc(const dimensionedScalar &ds)
Extract name (as a word) from an object, typically using its name() method.
dimensionedScalar asinh(const dimensionedScalar &ds)
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
static const Scalar rootMax
dimensionedScalar pow5(const dimensionedScalar &ds)
dimensionedScalar log(const dimensionedScalar &ds)
compareOp(Scalar tol=ScalarVSMALL)
Construct with specified tolerance (non-negative value)
Scalar cmptSqr(const Scalar s)
dimensionedScalar yn(const int n, const dimensionedScalar &ds)
dimensioned< Type > cmptDivide(const dimensioned< Type > &, const dimensioned< Type > &)
dimensionedScalar acosh(const dimensionedScalar &ds)
dimensionedSymmTensor sqr(const dimensionedVector &dv)
dimensionedScalar negPart(const dimensionedScalar &ds)
Scalar minMod(const Scalar s1, const Scalar s2)
dimensionedScalar sqrt(const dimensionedScalar &ds)
dimensionedScalar j0(const dimensionedScalar &ds)
Traits class for primitives.
dimensionedScalar acos(const dimensionedScalar &ds)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
complex limit(const complex &, const complex &)
transFunc(sqrt) transFunc(cbrt) transFunc(exp) transFunc(log) transFunc(log10) transFunc(sin) transFunc(cos) transFunc(tan) transFunc(asin) transFunc(acos) transFunc(atan) transFunc(sinh) transFunc(cosh) transFunc(tanh) transFunc(asinh) transFunc(acosh) transFunc(atanh) transFunc(erf) transFunc(erfc) transFunc(lgamma) transFunc(tgamma) besselFunc(j0) besselFunc(j1) besselFunc(y0) besselFunc(y1) besselFunc2(jn) besselFunc2(yn) inline Scalar &setComponent(Scalar &s
dimensionedScalar atan(const dimensionedScalar &ds)
Scalar operator()(const Scalar &x) const
equalOp(Scalar tol=ScalarVSMALL)
Construct with specified tolerance (non-negative value)
static const Scalar rootMin
dimensionedScalar cbrt(const dimensionedScalar &ds)
dimensionedScalar j1(const dimensionedScalar &ds)
bool equal(const T &s1, const T &s2)
Compare two values for equality.
bool notEqual(const Scalar s1, const Scalar s2)
dimensionedScalar neg(const dimensionedScalar &ds)
dimensionedScalar asin(const dimensionedScalar &ds)
dimensionedScalar cos(const dimensionedScalar &ds)
dimensionedScalar pos(const dimensionedScalar &ds)
dimensionedScalar sinh(const dimensionedScalar &ds)
notEqualOp(Scalar tol=ScalarVSMALL)
Construct with specified tolerance (non-negative value)
Scalar operator()(const Scalar &a, const Scalar &b) const