35 #ifndef longDoubleScalar_H 36 #define longDoubleScalar_H 43 using std::numeric_limits;
76 = numeric_limits<longDoubleScalar>::signaling_NaN();
82 s = strtold(buf, &endPtr);
84 return (*endPtr ==
'\0');
87 #define Scalar longDoubleScalar 88 #define ScalarVGreat longDoubleScalarVGreat 89 #define ScalarVSmall longDoubleScalarVSmall 90 #define ScalarRootVGreat longDoubleScalarRootVGreat 91 #define ScalarRootVSmall longDoubleScalarRootVSmall 92 #define readScalar readLongDoubleScalar 99 #define MAXMINPOW(retType, type1, type2) \ 101 MAXMIN(retType, type1, type2) \ 103 inline double pow(const type1 s, const type2 e) \ 105 return ::powl(Scalar(s), Scalar(e)); \ 120 #define transFunc(func) \ 121 inline Scalar func(const Scalar s) \ 143 return ::hypotl(x, y);
148 return ::atan2l(y, x);
164 #undef ScalarRootVGreat 165 #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
static const longDoubleScalar longDoubleScalarNaN
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