Go to the documentation of this file.
90 sf[i] = cf[i].Re() + cf[i].Im();
141 cvf[i].
component(cmpt).Im() = im[i].component(cmpt);
157 cvf[i].
component(cmpt).Re() = vf[i].component(cmpt);
175 cvf[i].
component(cmpt).Im() = 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();
dimensioned< cmptType > component(const direction) const
Return a component as a dimensioned<cmptType>
scalarField Im(const UList< complex > &cf)
#define forAll(list, i)
Loop across all elements in list.
complexField ImComplexField(const UList< scalar > &sf)
complexField ReComplexField(const UList< scalar > &sf)
scalarField Re(const UList< complex > &cf)
@ nComponents
Number of components in this vector space.
complexField ComplexField(const UList< scalar > &re, const UList< scalar > &im)
Pre-declare SubField and related Field type.
Field< complexVector > complexVectorField
Specialisation of Field<T> for complexVector.
const dimensionedScalar re
Classical electron radius: default SI units: [m].
Macros for easy insertion into run-time selection tables.
scalarField ReImSum(const UList< complex > &cf)
volScalarField sf(fieldObject, mesh)
tmp< Field< cmptType > > component(const direction) const
Return a component field of the field.
addCompoundToRunTimeSelectionTable(List< complex >, complexList)
defineCompoundTypeName(List< complex >, complexList)
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
label size() const
Return the number of elements in the UList.