100 static const char*
const componentNames[];
238 return (
s >= 0)? 1: -1;
245 return (
s > 0)? 1: 0;
252 return (
s >= 0)? 1: 0;
259 return (
s < 0)? 1: 0;
266 return (
s <= 0)? 1: 0;
273 return (
s > 0)?
s: 0;
281 return (
s < 0)?
s: 0;
299 return (
mag(s1) <
mag(s2)) ? s1: 0.0;
305 return (
mag(s1) <
mag(s2)) ? s1: s2;
424 return maga*
sqrt(1.0 +
sqr(magb/maga));
450template<
class T>
struct compareOp;
466 return (
mag(a -
b) <= tolerance) ? 0 : (a -
b);
472template<
class T>
struct equalOp;
488 return mag(a -
b) <= tolerance;
494template<
class T>
struct notEqualOp;
510 return mag(a -
b) > tolerance;
525 return std::floor(
x);
553 return std::round(
x);
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Scalar cmptType
Component type.
pTraits(Scalar val) noexcept
Copy construct from primitive.
static const Scalar rootMax
static const Scalar rootMin
Scalar magType
Magnitude type.
label labelType
Equivalent type of labels used for valid component indexing.
static const Scalar vsmall
static const char *const typeName
A traits class, which is primarily used for primitives.
A class for handling words, derived from Foam::string.
#define besselFunc2(func)
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;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
dimensionedScalar pow6(const dimensionedScalar &ds)
dimensionedScalar pos(const dimensionedScalar &ds)
dimensionedScalar pow5(const dimensionedScalar &ds)
dimensionedScalar erfc(const dimensionedScalar &ds)
dimensionedScalar asin(const dimensionedScalar &ds)
dimensionedScalar exp(const dimensionedScalar &ds)
dimensionedScalar tan(const dimensionedScalar &ds)
dimensionedScalar pos0(const dimensionedScalar &ds)
dimensionedScalar sign(const dimensionedScalar &ds)
bool notEqual(const Scalar s1, const Scalar s2)
dimensionedScalar lgamma(const dimensionedScalar &ds)
dimensionedSymmTensor sqr(const dimensionedVector &dv)
dimensionedScalar j1(const dimensionedScalar &ds)
dimensionedScalar pow3(const dimensionedScalar &ds)
dimensionedScalar y0(const dimensionedScalar &ds)
Scalar minMod(const Scalar s1, const Scalar s2)
void component(FieldField< Field, typename FieldField< Field, Type >::cmptType > &sf, const FieldField< Field, Type > &f, const direction d)
dimensionedScalar cosh(const dimensionedScalar &ds)
Scalar cmptPow(const Scalar s1, const Scalar s2)
dimensionedScalar sin(const dimensionedScalar &ds)
label & setComponent(label &val, const direction) noexcept
Non-const access to integer-type (has no components)
dimensionedScalar tanh(const dimensionedScalar &ds)
void cmptMin(FieldField< Field, typename FieldField< Field, Type >::cmptType > &cf, const FieldField< Field, Type > &f)
dimensioned< Type > cmptDivide(const dimensioned< Type > &, const dimensioned< Type > &)
dimensionedScalar erf(const dimensionedScalar &ds)
Scalar cmptSqr(const Scalar s)
dimensionedScalar sinh(const dimensionedScalar &ds)
dimensionedScalar log10(const dimensionedScalar &ds)
complex limit(const complex &, const complex &)
dimensionedScalar yn(const int n, const dimensionedScalar &ds)
void cmptMagSqr(Field< Type > &res, const UList< Type > &f)
void dot(FieldField< Field1, typename innerProduct< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
dimensionedScalar log(const dimensionedScalar &ds)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
bool equal(const T &s1, const T &s2)
Compare two values for equality.
dimensionedScalar y1(const dimensionedScalar &ds)
dimensionedScalar negPart(const dimensionedScalar &ds)
dimensionedScalar acosh(const dimensionedScalar &ds)
dimensionedScalar sqrt(const dimensionedScalar &ds)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
Istream & operator>>(Istream &, directionInfo &)
dimensionedScalar pow4(const dimensionedScalar &ds)
dimensionedScalar jn(const int n, const dimensionedScalar &ds)
dimensionedScalar neg(const dimensionedScalar &ds)
dimensionedScalar atanh(const dimensionedScalar &ds)
void cmptMax(FieldField< Field, typename FieldField< Field, Type >::cmptType > &cf, const FieldField< Field, Type > &f)
dimensionedScalar stabilise(const dimensionedScalar &x, const dimensionedScalar &y)
dimensioned< Type > cmptMultiply(const dimensioned< Type > &, const dimensioned< Type > &)
dimensionedSphericalTensor inv(const dimensionedSphericalTensor &dt)
dimensionedScalar neg0(const dimensionedScalar &ds)
dimensionedScalar cbrt(const dimensionedScalar &ds)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
void cmptMag(FieldField< Field, Type > &cf, const FieldField< Field, Type > &f)
tmp< DimensionedField< typename DimensionedField< Type, GeoMesh >::cmptType, GeoMesh > > cmptAv(const DimensionedField< Type, GeoMesh > &df)
dimensionedScalar atan(const dimensionedScalar &ds)
Scalar sqrtSumSqr(const Scalar a, const Scalar b)
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)
dimensionedScalar cos(const dimensionedScalar &ds)
dimensionedScalar posPart(const dimensionedScalar &ds)
dimensionedScalar acos(const dimensionedScalar &ds)
dimensionedScalar j0(const dimensionedScalar &ds)
dimensionedScalar pow025(const dimensionedScalar &ds)
dimensionedScalar asinh(const dimensionedScalar &ds)
Scalar operator()(const Scalar &x) const
Scalar operator()(const Scalar &a, const Scalar &b) const
compareOp(Scalar tol=ScalarVSMALL)
Construct with specified tolerance (non-negative value)
Three-way comparison operation of two parameters,.
equalOp(Scalar tol=ScalarVSMALL)
Construct with specified tolerance (non-negative value)
bool operator()(const Scalar &a, const Scalar &b) const
Scalar operator()(const Scalar &x) const
word operator()(const Scalar val) const
Extract name (as a word) from an object, typically using its name() method.
notEqualOp(Scalar tol=ScalarVSMALL)
Construct with specified tolerance (non-negative value)
bool operator()(const Scalar &a, const Scalar &b) const
Scalar operator()(const Scalar &x) const