35 #ifndef longDoubleScalar_H 36 #define longDoubleScalar_H 43 using std::numeric_limits;
79 s = strtold(buf, &endPtr);
81 return (*endPtr ==
'\0');
84 #define Scalar longDoubleScalar 85 #define ScalarVGreat longDoubleScalarVGreat 86 #define ScalarVSmall longDoubleScalarVSmall 87 #define ScalarRootVGreat longDoubleScalarRootVGreat 88 #define ScalarRootVSmall longDoubleScalarRootVSmall 89 #define readScalar readLongDoubleScalar 96 #define MAXMINPOW(retType, type1, type2) \ 98 MAXMIN(retType, type1, type2) \ 100 inline double pow(const type1 s, const type2 e) \ 102 return ::powl(Scalar(s), Scalar(e)); \ 117 #define transFunc(func) \ 118 inline Scalar func(const Scalar s) \ 140 return ::hypotl(x, y);
145 return ::atan2l(y, x);
161 #undef ScalarRootVGreat 162 #undef ScalarRootVSmall static const longDoubleScalar longDoubleScalarGreat
static const longDoubleScalar longDoubleScalarVSmall
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
dimensionedScalar yn(const int n, const dimensionedScalar &ds)
#define MAXMINPOW(retType, type1, type2)
static const longDoubleScalar longDoubleScalarRootVGreat
static const longDoubleScalar longDoubleScalarRootSmall
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().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))
static const longDoubleScalar longDoubleScalarRootVSmall
dimensionedScalar jn(const int n, const dimensionedScalar &ds)
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if successful.
dimensionedScalar atan2(const dimensionedScalar &x, const dimensionedScalar &y)
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
static const longDoubleScalar longDoubleScalarSmall
long double longDoubleScalar
Lang double precision floating point scalar type.
Direction is an 8-bit unsigned integer type used to represent the Cartesian directions etc...
static const longDoubleScalar longDoubleScalarVGreat
dimensioned< scalar > mag(const dimensioned< Type > &)
dimensionedScalar hypot(const dimensionedScalar &x, const dimensionedScalar &y)
static const longDoubleScalar longDoubleScalarRootGreat