35 #ifndef doubleScalar_H
36 #define doubleScalar_H
43 using std::numeric_limits;
72 = numeric_limits<doubleScalar>::signaling_NaN();
78 s = strtod(buf, &endPtr);
80 return (*endPtr ==
'\0');
83 #define Scalar doubleScalar
84 #define ScalarVGreat doubleScalarVGreat
85 #define ScalarVSmall doubleScalarVSmall
86 #define ScalarRootVGreat doubleScalarRootVGreat
87 #define ScalarRootVSmall doubleScalarRootVSmall
88 #define ScalarNaN doubleScalarNaN
89 #define readScalar readDoubleScalar
97 #define MAXMINPOW(retType, type1, type2) \
99 MAXMIN(retType, type1, type2) \
101 inline double pow(const type1 s, const type2 e) \
103 return ::pow(Scalar(s), Scalar(e)); \
116 #define transFunc(func) \
117 inline Scalar func(const Scalar s) \
160 #undef ScalarRootVGreat
161 #undef ScalarRootVSmall
Direction is an 8-bit unsigned integer type used to represent the Cartesian directions etc.
#define MAXMINPOW(retType, type1, type2)
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(lagrangian::Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(lagrangian::Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(lagrangian::Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.name(), lagrangian::cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
static const doubleScalar doubleScalarRootVGreat
doubleScalar jn(const int n, const doubleScalar s)
double doubleScalar
Double precision floating point scalar type.
static const doubleScalar doubleScalarSmall
static const doubleScalar doubleScalarNaN
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 doubleScalar doubleScalarRootGreat
dimensioned< Type > min(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
static const doubleScalar doubleScalarGreat
tmp< DimensionedField< scalar, GeoMesh, Field > > jn(const int n, const DimensionedField< scalar, GeoMesh, PrimitiveField > &dsf)
doubleScalar yn(const int n, const doubleScalar s)
doubleScalar atan2(const doubleScalar y, const doubleScalar x)
tmp< DimensionedField< scalar, GeoMesh, Field > > mag(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
tmp< DimensionedField< scalar, GeoMesh, Field > > atan2(const DimensionedField< scalar, GeoMesh, PrimitiveField1 > &dsf1, const DimensionedField< scalar, GeoMesh, PrimitiveField2 > &dsf2)
void sqrt(LagrangianPatchField< scalar > &f, const LagrangianPatchField< scalar > &f1)
doubleScalar hypot(const doubleScalar x, const doubleScalar y)
static const doubleScalar doubleScalarVSmall
tmp< DimensionedField< scalar, GeoMesh, Field > > yn(const int n, const DimensionedField< scalar, GeoMesh, PrimitiveField > &dsf)
dimensioned< Type > max(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
static const doubleScalar doubleScalarVGreat
static const doubleScalar doubleScalarRootSmall
static const doubleScalar doubleScalarRootVSmall