90 sf[i] = cf[i].Re() + cf[i].Im();
140 cvf[i].component(cmpt).Re() = re[i].component(cmpt);
141 cvf[i].component(cmpt).Im() = im[i].component(cmpt);
157 cvf[i].component(cmpt).Re() = vf[i].component(cmpt);
158 cvf[i].component(cmpt).Im() = 0.0;
174 cvf[i].component(cmpt).Re() = 0.0;
175 cvf[i].component(cmpt).Im() = vf[i].component(cmpt);
191 vf[i].component(cmpt) =
192 cvf[i].component(cmpt).Re() + cvf[i].component(cmpt).Im();
208 vf[i].component(cmpt) = cvf[i].component(cmpt).Re();
224 vf[i].component(cmpt) = cvf[i].component(cmpt).Im();
complexField ImComplexField(const UList< scalar > &sf)
complexField ComplexField(const UList< scalar > &re, const UList< scalar > &im)
#define forAll(list, i)
Loop across all elements in list.
addCompoundToRunTimeSelectionTable(List< complex >, complexList)
defineCompoundTypeName(List< complex >, complexList)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
scalarField ReImSum(const UList< complex > &cf)
Macros for easy insertion into run-time selection tables.
static const direction nComponents
Number of components in this vector space.
Pre-declare SubField and related Field type.
scalarField Im(const UList< complex > &cf)
volScalarField sf(fieldObject, mesh)
complexField ReComplexField(const UList< scalar > &sf)
const dimensionedScalar re
Classical electron radius: default SI units: [m].
label size() const
Return the number of elements in the UList.
scalarField Re(const UList< complex > &cf)