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 ScalarNaN longDoubleScalarNaN
93 #define readScalar readLongDoubleScalar
100 #define MAXMINPOW(retType, type1, type2) \
102 MAXMIN(retType, type1, type2) \
104 inline double pow(const type1 s, const type2 e) \
106 return ::powl(Scalar(s), Scalar(e)); \
121 #define transFunc(func) \
122 inline Scalar func(const Scalar s) \
144 return ::hypotl(
x,
y);
149 return ::atan2l(
y,
x);
165 #undef ScalarRootVGreat
166 #undef ScalarRootVSmall
Direction is an 8-bit unsigned integer type used to represent the Cartesian directions etc.
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.name(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
#define MAXMINPOW(retType, type1, type2)
static const longDoubleScalar longDoubleScalarNaN
static const longDoubleScalar longDoubleScalarSmall
static const longDoubleScalar longDoubleScalarRootGreat
static const longDoubleScalar longDoubleScalarGreat
static const longDoubleScalar longDoubleScalarRootVSmall
dimensionedScalar yn(const int n, const dimensionedScalar &ds)
static const longDoubleScalar longDoubleScalarVSmall
static const longDoubleScalar longDoubleScalarRootVGreat
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
dimensionedScalar atan2(const dimensionedScalar &x, const dimensionedScalar &y)
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if successful.
dimensionedScalar hypot(const dimensionedScalar &x, const dimensionedScalar &y)
static const longDoubleScalar longDoubleScalarVGreat
dimensioned< scalar > mag(const dimensioned< Type > &)
dimensionedScalar jn(const int n, const dimensionedScalar &ds)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
long double longDoubleScalar
Lang double precision floating point scalar type.
static const longDoubleScalar longDoubleScalarRootSmall