Go to the documentation of this file.
95 if (
f1.size() && (
f1.size() == f2.
size()))
167 #define BesselFunc(func) \
168 void func(scalarField& res, const int n, const UList<scalar>& sf) \
170 TFOR_ALL_F_OP_FUNC_S_F(scalar, res, =, ::Foam::func, int, n, scalar, sf) \
173 tmp<scalarField> func(const int n, const UList<scalar>& sf) \
175 tmp<scalarField> tRes(new scalarField(sf.size())); \
176 func(tRes(), n, sf); \
180 tmp<scalarField> func(const int n, const tmp<scalarField>& tsf) \
182 tmp<scalarField> tRes = reuseTmp<scalar, scalar>::New(tsf); \
183 func(tRes(), n, tsf()); \
184 reuseTmp<scalar, scalar>::clear(tsf); \
#define BINARY_TYPE_OPERATOR_SF(ReturnType, Type1, Type2, Op, OpName, OpFunc)
#define BINARY_OPERATOR(ReturnType, Type1, Type2, Op, OpName, OpFunc)
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
void subtract(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
void component(FieldField< Field, typename FieldField< Field, Type >::cmptType > &sf, const FieldField< Field, Type > &f, const direction d)
dimensionedScalar tan(const dimensionedScalar &ds)
#define UNARY_FUNCTION(ReturnType, Type1, Func, Dfunc)
static void clear(const tmp< Field< Type1 > > &tf1)
dimensionedScalar cosh(const dimensionedScalar &ds)
dimensionedScalar y1(const dimensionedScalar &ds)
A class for managing temporary objects.
dimensionedScalar sin(const dimensionedScalar &ds)
dimensionedScalar jn(const int n, const dimensionedScalar &ds)
dimensionedScalar posPart(const dimensionedScalar &ds)
dimensionedScalar atan2(const dimensionedScalar &x, const dimensionedScalar &y)
#define BINARY_TYPE_OPERATOR(ReturnType, Type1, Type2, Op, OpName, OpFunc)
Unit conversion functions.
scalar paToAtm(const scalar pa)
Conversion from atm to Pa.
dimensionedScalar exp(const dimensionedScalar &ds)
#define BINARY_FUNCTION(ReturnType, Type1, Type2, Func)
dimensionedScalar sign(const dimensionedScalar &ds)
dimensionedScalar erf(const dimensionedScalar &ds)
void divide(FieldField< Field, Type > &f, const FieldField< Field, Type > &f1, const FieldField< Field, scalar > &f2)
dimensionedScalar pow025(const dimensionedScalar &ds)
dimensionedScalar atanh(const dimensionedScalar &ds)
dimensionedScalar lgamma(const dimensionedScalar &ds)
dimensionedScalar pow4(const dimensionedScalar &ds)
dimensionedScalar pow6(const dimensionedScalar &ds)
Pre-declare SubField and related Field type.
dimensionedScalar tanh(const dimensionedScalar &ds)
dimensionedScalar pow3(const dimensionedScalar &ds)
tmp< DimensionedField< scalar, GeoMesh > > stabilise(const DimensionedField< scalar, GeoMesh > &dsf, const dimensioned< scalar > &ds)
static tmp< Field< TypeR > > New(const tmp< Field< Type1 > > &tf1)
dimensionedScalar log10(const dimensionedScalar &ds)
dimensionedScalar y0(const dimensionedScalar &ds)
dimensionedScalar erfc(const dimensionedScalar &ds)
void replace(const direction, const UList< cmptType > &)
Replace a component field of the field.
dimensionedScalar asinh(const dimensionedScalar &ds)
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
dimensionedScalar pow5(const dimensionedScalar &ds)
dimensionedScalar log(const dimensionedScalar &ds)
#define TFOR_ALL_S_OP_F_OP_F(typeS, s, OP1, typeF1, f1, OP2, typeF2, f2)
volScalarField sf(fieldObject, mesh)
tmp< Field< cmptType > > component(const direction) const
Return a component field of the field.
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))
#define BINARY_TYPE_FUNCTION(ReturnType, Type1, Type2, Func)
dimensionedScalar yn(const int n, const dimensionedScalar &ds)
dimensionedScalar acosh(const dimensionedScalar &ds)
dimensionedScalar negPart(const dimensionedScalar &ds)
#define TFOR_ALL_F_OP_FUNC_S_F(typeF1, f1, OP, FUNC, typeS, s, typeF2, f2)
dimensionedScalar sqrt(const dimensionedScalar &ds)
dimensionedScalar j0(const dimensionedScalar &ds)
dimensionedScalar acos(const dimensionedScalar &ds)
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
dimensionedScalar atan(const dimensionedScalar &ds)
scalar radToDeg(const scalar rad)
Conversion from radians to degrees.
void multiply(FieldField< Field, Type > &f, const FieldField< Field, Type > &f1, const FieldField< Field, scalar > &f2)
label size() const
Return the number of elements in the UList.
dimensionedScalar cbrt(const dimensionedScalar &ds)
dimensionedScalar j1(const dimensionedScalar &ds)
scalar sumProd(const UList< Type > &f1, const UList< Type > &f2)
scalar atmToPa(const scalar atm)
Conversion from atm to Pa.
dimensionedScalar neg(const dimensionedScalar &ds)
dimensionedScalar asin(const dimensionedScalar &ds)
scalar degToRad(const scalar deg)
Conversion from degrees to radians.
dimensionedScalar cos(const dimensionedScalar &ds)
dimensionedScalar pos(const dimensionedScalar &ds)
dimensionedScalar sinh(const dimensionedScalar &ds)