Go to the documentation of this file.
53 const label len = result.size();
56 if (len !=
re.size() || len != im.
size())
59 <<
"Components sizes do not match: " << len <<
" ("
60 <<
re.size() <<
' ' << im.
size() <<
')'
66 for (label i=0; i < len; ++i)
68 result[i].Re() =
re[i];
69 result[i].Im() = im[i];
81 const label len = input.
size();
84 if (len !=
re.size() || len != im.size())
87 <<
"Components sizes do not match: " << len <<
" ("
88 <<
re.size() <<
' ' << im.size() <<
')'
94 for (label i=0; i < len; ++i)
96 re[i] = input[i].Re();
97 im[i] = input[i].Im();
152 sf[i] = cf[i].Re() + cf[i].Im();
#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 unzip(const FieldField< Field, SphericalTensor< Cmpt >> &input, FieldField< Field, Cmpt > &ii)
Unzip sphericalTensor field field into components.
dimensionedScalar cosh(const dimensionedScalar &ds)
static constexpr const zero Zero
Global zero (0)
dimensionedScalar sin(const dimensionedScalar &ds)
complexField ComplexField(const UList< scalar > &re, const UList< scalar > &im)
Zip up two lists of values into a list of complex.
#define BINARY_TYPE_OPERATOR(ReturnType, Type1, Type2, Op, OpName, OpFunc)
dimensionedScalar exp(const dimensionedScalar &ds)
complex sumProd(const UList< complex > &f1, const UList< complex > &f2)
Sum product.
#define forAll(list, i)
Loop across all elements in list.
void divide(FieldField< Field, Type > &f, const FieldField< Field, Type > &f1, const FieldField< Field, scalar > &f2)
dimensionedScalar pow025(const dimensionedScalar &ds)
complexField ReComplexField(const UList< scalar > &re)
Create complex field from a list of real (using imag == 0)
dimensionedScalar atanh(const dimensionedScalar &ds)
dimensionedScalar pow4(const dimensionedScalar &ds)
dimensionedScalar pow6(const dimensionedScalar &ds)
scalarField Im(const UList< complex > &cf)
Extract imag component.
Generic templated field type.
dimensionedScalar tanh(const dimensionedScalar &ds)
dimensionedScalar pow3(const dimensionedScalar &ds)
dimensionedScalar log10(const dimensionedScalar &ds)
dimensionedScalar asinh(const dimensionedScalar &ds)
const dimensionedScalar re
Classical electron radius: default SI units: [m].
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)
Macros for easy insertion into run-time selection tables.
A complex number, similar to the C++ complex type.
#define TFOR_ALL_S_OP_F_OP_F(typeS, s, OP1, typeF1, f1, OP2, typeF2, f2)
errorManip< error > abort(error &err)
complexField ImComplexField(const UList< scalar > &im)
Create complex field from a list of imag (using real == 0)
scalarField ReImSum(const UList< complex > &cf)
Sum real and imag components.
dimensionedScalar acosh(const dimensionedScalar &ds)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
addCompoundToRunTimeSelectionTable(List< complex >, complexList)
defineCompoundTypeName(List< complex >, complexList)
dimensionedScalar sqrt(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...
scalarField Re(const UList< complex > &cf)
Extract real component.
void zip(FieldField< Field, SphericalTensor< Cmpt >> &result, const FieldField< Field, Cmpt > &ii)
Zip together sphericalTensor field field from components.
dimensionedScalar atan(const dimensionedScalar &ds)
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 asin(const dimensionedScalar &ds)
dimensionedScalar cos(const dimensionedScalar &ds)
dimensionedScalar sinh(const dimensionedScalar &ds)