38 #ifndef Foam_doubleScalar_H 39 #define Foam_doubleScalar_H 67 #define Scalar doubleScalar 68 #define ScalarVGREAT doubleScalarVGREAT 69 #define ScalarVSMALL doubleScalarVSMALL 70 #define ScalarROOTVGREAT doubleScalarROOTVGREAT 71 #define ScalarROOTVSMALL doubleScalarROOTVSMALL 72 #define ScalarRead readDouble 92 #define transFunc(func) \ 93 inline Scalar func(const Scalar s) \ 100 #ifdef Foam_no_besselFunc 102 #define besselFunc(func) \ 103 inline Scalar func(const Scalar s) \ 105 std::cerr<< "No '" << #func << "' function\n"; \ 108 #define besselFunc2(func) \ 109 inline Scalar func(const int n, const Scalar s) \ 111 std::cerr<< "No '" << #func << "' function\n"; \ 114 #elif defined(__MINGW32__) 116 #define besselFunc(func) \ 117 inline Scalar func(const Scalar s) \ 121 #define besselFunc2(func) \ 122 inline Scalar func(const int n, const Scalar s) \ 124 return _##func(n, s); \ 127 #define besselFunc(func) \ 128 inline Scalar func(const Scalar s) \ 132 #define besselFunc2(func) \ 133 inline Scalar func(const int n, const Scalar s) \ 135 return ::func(n, s); \ 151 #undef ScalarROOTVGREAT 152 #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)