35 #ifndef doubleScalar_H 36 #define doubleScalar_H 43 using std::numeric_limits;
61 static const doubleScalar doubleScalarRootVGreat =
::sqrt(doubleScalarVGreat);
62 static const doubleScalar doubleScalarRootVSmall =
::sqrt(doubleScalarVSmall);
64 static const doubleScalar doubleScalarRootGreat =
::sqrt(doubleScalarGreat);
65 static const doubleScalar doubleScalarRootSmall =
::sqrt(doubleScalarSmall);
71 s = strtod(buf, &endPtr);
73 return (*endPtr ==
'\0');
76 #define Scalar doubleScalar 77 #define ScalarVGreat doubleScalarVGreat 78 #define ScalarVSmall doubleScalarVSmall 79 #define ScalarRootVGreat doubleScalarRootVGreat 80 #define ScalarRootVSmall doubleScalarRootVSmall 81 #define readScalar readDoubleScalar 89 #define MAXMINPOW(retType, type1, type2) \ 91 MAXMIN(retType, type1, type2) \ 93 inline double pow(const type1 s, const type2 e) \ 95 return ::pow(Scalar(s), Scalar(e)); \ 108 #define transFunc(func) \ 109 inline Scalar func(const Scalar s) \ 152 #undef ScalarRootVGreat 153 #undef ScalarRootVSmall
doubleScalar jn(const int n, const doubleScalar s)
#define MAXMINPOW(retType, type1, type2)
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
dimensionedScalar yn(const int n, const dimensionedScalar &ds)
dimensionedScalar sqrt(const dimensionedScalar &ds)
doubleScalar yn(const int n, const doubleScalar s)
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))
dimensionedScalar jn(const int n, const dimensionedScalar &ds)
double doubleScalar
Double precision floating point scalar type.
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 > &)
doubleScalar atan2(const doubleScalar y, const doubleScalar x)
static const doubleScalar doubleScalarSmall
doubleScalar hypot(const doubleScalar x, const doubleScalar y)
Direction is an 8-bit unsigned integer type used to represent the Cartesian directions etc...
dimensioned< scalar > mag(const dimensioned< Type > &)
dimensionedScalar hypot(const dimensionedScalar &x, const dimensionedScalar &y)