38 #ifndef Foam_primitives_double_H 39 #define Foam_primitives_double_H 68 #define Scalar doubleScalar 69 #define ScalarVGREAT doubleScalarVGREAT 70 #define ScalarVSMALL doubleScalarVSMALL 71 #define ScalarROOTVGREAT doubleScalarROOTVGREAT 72 #define ScalarROOTVSMALL doubleScalarROOTVSMALL 73 #define ScalarRead readDouble 93 #define transFunc(func) \ 94 inline Scalar func(const Scalar s) \ 101 #ifdef Foam_no_besselFunc 103 #define besselFunc(func) \ 104 inline Scalar func(const Scalar s) \ 106 std::cerr<< "No '" << #func << "' function\n"; \ 109 #define besselFunc2(func) \ 110 inline Scalar func(const int n, const Scalar s) \ 112 std::cerr<< "No '" << #func << "' function\n"; \ 115 #elif defined(__MINGW32__) 117 #define besselFunc(func) \ 118 inline Scalar func(const Scalar s) \ 122 #define besselFunc2(func) \ 123 inline Scalar func(const int n, const Scalar s) \ 125 return _##func(n, s); \ 128 #define besselFunc(func) \ 129 inline Scalar func(const Scalar s) \ 133 #define besselFunc2(func) \ 134 inline Scalar func(const int n, const Scalar s) \ 136 return ::func(n, s); \ 152 #undef ScalarROOTVGREAT 153 #undef ScalarROOTVSMALL
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
constexpr doubleScalar doubleScalarVSMALL
constexpr doubleScalar doubleScalarROOTVSMALL
constexpr doubleScalar doubleScalarROOTVGREAT
double doubleScalar
A typedef for double.
dimensionedScalar atan2(const dimensionedScalar &x, const dimensionedScalar &y)
constexpr doubleScalar doubleScalarGREAT
Typedefs for float/double/scalar without requiring scalar.H.
doubleScalar atan2(const doubleScalar y, const doubleScalar x)
constexpr doubleScalar doubleScalarVGREAT
doubleScalar hypot(const doubleScalar x, const doubleScalar y)
Direction is an 8-bit unsigned integer type used to represent Cartesian directions, components etc.
constexpr doubleScalar doubleScalarSMALL
constexpr doubleScalar doubleScalarROOTSMALL
constexpr doubleScalar doubleScalarROOTGREAT
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.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 hypot(const dimensionedScalar &x, const dimensionedScalar &y)