Go to the documentation of this file.
57 void scalarField::replace(
const direction,
const UList<scalar>& sf)
63 void scalarField::replace(
const direction,
const scalar&
s)
185 #define BesselFunc(func) \
186 void func(scalarField& res, const int n, const UList<scalar>& sf) \
188 TFOR_ALL_F_OP_FUNC_S_F(scalar, res, =, ::Foam::func, int, n, scalar, sf) \
191 tmp<scalarField> func(const int n, const UList<scalar>& sf) \
193 auto tresult = tmp<scalarField>::New(sf.size()); \
194 func(tresult.ref(), n, sf); \
198 tmp<scalarField> func(const int n, const tmp<scalarField>& tsf) \
200 tmp<scalarField> tresult = New(tsf); \
201 func(tresult.ref(), n, tsf()); \
#define BINARY_TYPE_OPERATOR_SF(ReturnType, Type1, Type2, Op, OpName, OpFunc)
#define BINARY_OPERATOR(ReturnType, Type1, Type2, Op, OpName, OpFunc)
void subtract(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
dimensionedScalar tan(const dimensionedScalar &ds)
#define UNARY_FUNCTION(ReturnType, Type1, Func, Dfunc)
void clear() const noexcept
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 cosh(const dimensionedScalar &ds)
dimensionedScalar y1(const dimensionedScalar &ds)
A class for managing temporary objects.
tmp< scalarField > yn(const int n, const tmp< scalarField > &tsf)
dimensionedScalar sin(const dimensionedScalar &ds)
dimensionedScalar posPart(const dimensionedScalar &ds)
dimensionedScalar atan2(const dimensionedScalar &x, const dimensionedScalar &y)
dimensionedScalar neg0(const dimensionedScalar &ds)
#define BINARY_TYPE_OPERATOR(ReturnType, Type1, Type2, Op, OpName, OpFunc)
Unit conversion functions.
dimensionedScalar pos0(const dimensionedScalar &ds)
dimensionedScalar exp(const dimensionedScalar &ds)
#define BINARY_FUNCTION(ReturnType, Type1, Type2, Func)
dimensionedScalar sign(const dimensionedScalar &ds)
dimensionedScalar erf(const dimensionedScalar &ds)
tmp< scalarField > jn(const int n, const tmp< scalarField > &tsf)
void divide(FieldField< Field, Type > &f, const FieldField< Field, Type > &f1, const FieldField< Field, scalar > &f2)
dimensionedScalar pow025(const dimensionedScalar &ds)
dimensionedScalar hypot(const dimensionedScalar &x, const dimensionedScalar &y)
dimensionedScalar atanh(const dimensionedScalar &ds)
dimensionedScalar lgamma(const dimensionedScalar &ds)
dimensionedScalar pow4(const dimensionedScalar &ds)
dimensionedScalar pow6(const dimensionedScalar &ds)
constexpr scalar atmToPa(const scalar atm) noexcept
Conversion from atm to Pa.
Generic templated field type.
dimensionedScalar tanh(const dimensionedScalar &ds)
dimensionedScalar pow3(const dimensionedScalar &ds)
constexpr scalar paToAtm(const scalar pa) noexcept
Conversion from Pa to atm.
tmp< DimensionedField< scalar, GeoMesh > > stabilise(const DimensionedField< scalar, GeoMesh > &dsf, const dimensioned< scalar > &ds)
dimensionedScalar log10(const dimensionedScalar &ds)
dimensionedScalar y0(const dimensionedScalar &ds)
dimensionedScalar erfc(const dimensionedScalar &ds)
constexpr scalar radToDeg(const scalar rad) noexcept
Conversion from radians to degrees.
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)
tmp< Field< cmptType > > component(const direction) const
Return a component field of the field.
#define BINARY_TYPE_FUNCTION(ReturnType, Type1, Type2, Func)
constexpr scalar degToRad(const scalar deg) noexcept
Conversion from degrees to radians.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
dimensionedScalar acosh(const dimensionedScalar &ds)
constexpr scalar barToPa(const scalar bar) noexcept
Conversion from bar to Pa.
dimensionedScalar negPart(const dimensionedScalar &ds)
#define TFOR_ALL_F_OP_FUNC_S_F(typeF1, f1, OP, FUNC, typeS, s, typeF2, f2)
void component(scalarField &sf, const UList< scalar > &f, const direction)
constexpr scalar paToBar(const scalar pa) noexcept
Conversion from Pa to bar.
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)
double sumProd(const UList< double > &f1, const UList< double > &f2)
Sum product for double.
void size(const label n) noexcept
Override size to be inconsistent with allocated storage.
void multiply(FieldField< Field, Type > &f, const FieldField< Field, Type > &f1, const FieldField< Field, scalar > &f2)
dimensionedScalar cbrt(const dimensionedScalar &ds)
dimensionedScalar j1(const dimensionedScalar &ds)
dimensionedScalar neg(const dimensionedScalar &ds)
dimensionedScalar asin(const dimensionedScalar &ds)
tmp< scalarField > stabilise(const tmp< scalarField > &tsf, const scalar s)
dimensionedScalar cos(const dimensionedScalar &ds)
dimensionedScalar pos(const dimensionedScalar &ds)
dimensionedScalar sinh(const dimensionedScalar &ds)