28 #define TEMPLATE template<class GeoMesh> 38 template<
class GeoMesh>
39 tmp<DimensionedField<scalar, GeoMesh>>
stabilise 49 "stabilise(" + dsf.
name() +
',' + ds.
name() +
')',
61 template<
class GeoMesh>
73 "stabilise(" + dsf.
name() +
',' + ds.
name() +
')',
97 template<
class GeoMesh>
107 <<
"Base field is not dimensionless: " << dsf1.
dimensions()
114 <<
"Exponent field is not dimensionless: " << dsf2.
dimensions()
122 "pow(" + dsf1.
name() +
',' + dsf2.
name() +
')',
134 template<
class GeoMesh>
146 <<
"Base field is not dimensionless: " << dsf1.
dimensions()
153 <<
"Exponent field is not dimensionless: " << dsf2.
dimensions()
160 "pow(" + dsf1.
name() +
',' + dsf2.
name() +
')',
172 template<
class GeoMesh>
184 <<
"Base field is not dimensionless: " << dsf1.
dimensions()
191 <<
"Exponent field is not dimensionless: " << dsf2.
dimensions()
198 "pow(" + dsf1.
name() +
',' + dsf2.
name() +
')',
210 template<
class GeoMesh>
223 <<
"Base field is not dimensionless: " << dsf1.
dimensions()
230 <<
"Exponent field is not dimensionless: " << dsf2.
dimensions()
240 "pow(" + dsf1.
name() +
',' + dsf2.
name() +
')',
253 template<
class GeoMesh>
263 <<
"Exponent is not dimensionless: " << ds.
dimensions()
271 "pow(" + dsf.
name() +
',' + ds.
name() +
')',
283 template<
class GeoMesh>
293 <<
"Exponent is not dimensionless: " << ds.
dimensions()
302 "pow(" + dsf.
name() +
',' + ds.
name() +
')',
314 template<
class GeoMesh>
325 template<
class GeoMesh>
336 template<
class GeoMesh>
346 <<
"Base scalar is not dimensionless: " << ds.
dimensions()
353 <<
"Exponent field is not dimensionless: " << dsf.
dimensions()
361 "pow(" + ds.
name() +
',' + dsf.
name() +
')',
373 template<
class GeoMesh>
385 <<
"Base scalar is not dimensionless: " << ds.
dimensions()
392 <<
"Exponent field is not dimensionless: " << dsf.
dimensions()
399 "pow(" + ds.
name() +
',' + dsf.
name() +
')',
410 template<
class GeoMesh>
420 template<
class GeoMesh>
433 template<
class GeoMesh>
444 "atan2(" + dsf1.
name() +
',' + dsf2.
name() +
')',
456 template<
class GeoMesh>
468 "atan2(" + dsf1.
name() +
',' + dsf2.
name() +
')',
480 template<
class GeoMesh>
492 "atan2(" + dsf1.
name() +
',' + dsf2.
name() +
')',
503 template<
class GeoMesh>
519 "atan2(" + dsf1.
name() +
',' + dsf2.
name() +
')',
532 template<
class GeoMesh>
543 "atan2(" + dsf.
name() +
',' + ds.
name() +
')',
554 template<
class GeoMesh>
566 "atan2(" + dsf.
name() +
',' + ds.
name() +
')',
577 template<
class GeoMesh>
587 template<
class GeoMesh>
598 template<
class GeoMesh>
609 "atan2(" + ds.
name() +
',' + dsf.
name() +
')',
621 template<
class GeoMesh>
633 "atan2(" + ds.
name() +
',' + dsf.
name() +
')',
644 template<
class GeoMesh>
654 template<
class GeoMesh>
708 #define BesselFunc(func) \ 710 template<class GeoMesh> \ 711 tmp<DimensionedField<scalar, GeoMesh>> func \ 714 const DimensionedField<scalar, GeoMesh>& dsf \ 717 if (!dsf.dimensions().dimensionless()) \ 719 FatalErrorInFunction \ 720 << "dsf not dimensionless" \ 721 << abort(FatalError); \ 724 tmp<DimensionedField<scalar, GeoMesh>> tFunc \ 726 DimensionedField<scalar, GeoMesh>::New \ 728 #func "(" + name(n) + ',' + dsf.name() + ')', \ 734 func(tFunc.ref().field(), n, dsf.field()); \ 739 template<class GeoMesh> \ 740 tmp<DimensionedField<scalar, GeoMesh>> func \ 743 const tmp<DimensionedField<scalar, GeoMesh>>& tdsf \ 746 const DimensionedField<scalar, GeoMesh>& dsf = tdsf(); \ 748 if (!dsf.dimensions().dimensionless()) \ 750 FatalErrorInFunction \ 751 << " : dsf not dimensionless" \ 752 << abort(FatalError); \ 755 tmp<DimensionedField<scalar, GeoMesh>> tFunc \ 760 #func "(" + name(n) + ',' + dsf.name() + ')', \ 765 func(tFunc.ref().field(), n, dsf.field()); \ void divide(FieldField< Field, Type > &f, const FieldField< Field, Type > &f1, const FieldField< Field, scalar > &f2)
dimensionedScalar sign(const dimensionedScalar &ds)
dimensionedScalar tanh(const dimensionedScalar &ds)
dimensionSet trans(const dimensionSet &)
dimensionedScalar acos(const dimensionedScalar &ds)
#define BINARY_OPERATOR(ReturnType, Type1, Type2, Op, OpName, OpFunc)
static tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< Type1, GeoMesh >> &tdf1, const tmp< DimensionedField< Type2, GeoMesh >> &tdf2, const word &name, const dimensionSet &dimensions)
void multiply(FieldField< Field, Type > &f, const FieldField< Field, Type > &f1, const FieldField< Field, scalar > &f2)
const word & name() const
Return name.
dimensionedScalar log(const dimensionedScalar &ds)
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
#define UNARY_FUNCTION(ReturnType, Type1, Func, Dfunc)
T & ref() const
Return non-const reference or generate a fatal error.
dimensionedScalar yn(const int n, const dimensionedScalar &ds)
#define BINARY_TYPE_OPERATOR_SF(ReturnType, Type1, Type2, Op, OpName, OpFunc)
dimensionedScalar sqrt(const dimensionedScalar &ds)
dimensionedScalar pow025(const dimensionedScalar &ds)
dimensionedScalar y0(const dimensionedScalar &ds)
void subtract(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
dimensionedScalar posPart(const dimensionedScalar &ds)
dimensionedScalar neg(const dimensionedScalar &ds)
dimensionedScalar asin(const dimensionedScalar &ds)
dimensionedScalar pow5(const dimensionedScalar &ds)
dimensionedScalar j1(const dimensionedScalar &ds)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
dimensionedScalar pos(const dimensionedScalar &ds)
const dimensionSet & dimensions() const
Return dimensions.
dimensionedScalar acosh(const dimensionedScalar &ds)
dimensionedScalar cos(const dimensionedScalar &ds)
dimensionedScalar exp(const dimensionedScalar &ds)
dimensionedScalar asinh(const dimensionedScalar &ds)
dimensionedScalar jn(const int n, const dimensionedScalar &ds)
dimensionedScalar cbrt(const dimensionedScalar &ds)
dimensionedScalar neg0(const dimensionedScalar &ds)
const Type & value() const
Return const reference to value.
dimensionedScalar atanh(const dimensionedScalar &ds)
dimensionedScalar y1(const dimensionedScalar &ds)
dimensionedScalar pos0(const dimensionedScalar &ds)
dimensionedScalar sin(const dimensionedScalar &ds)
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
dimensionedScalar erf(const dimensionedScalar &ds)
dimensionedScalar atan2(const dimensionedScalar &x, const dimensionedScalar &y)
const Mesh & mesh() const
Return mesh.
const word & name() const
Return const reference to name.
const Field< Type > & field() const
dimensionedScalar lgamma(const dimensionedScalar &ds)
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
dimensionedScalar pow3(const dimensionedScalar &ds)
tmp< DimensionedField< scalar, GeoMesh > > stabilise(const DimensionedField< scalar, GeoMesh > &dsf, const dimensioned< scalar > &ds)
dimensionedScalar erfc(const dimensionedScalar &ds)
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
dimensionedScalar sinh(const dimensionedScalar &ds)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
dimensionedScalar atan(const dimensionedScalar &ds)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
dimensionedScalar pow4(const dimensionedScalar &ds)
const dimensionSet & dimensions() const
Return const reference to dimensions.
dimensionedScalar pow6(const dimensionedScalar &ds)
Scalar specific part of the implementation of DimensionedField.
dimensionedScalar cosh(const dimensionedScalar &ds)
A class for managing temporary objects.
dimensionedScalar tan(const dimensionedScalar &ds)
dimensionedScalar j0(const dimensionedScalar &ds)
#define BINARY_TYPE_OPERATOR(ReturnType, Type1, Type2, Op, OpName, OpFunc)
bool dimensionless() const
Return true if it is dimensionless.
dimensionedScalar log10(const dimensionedScalar &ds)
dimensionedScalar negPart(const dimensionedScalar &ds)