160 return (c.re*c.re + c.im*c.im);
259 c1.re*c2.re - c1.im*c2.im,
260 c1.im*c2.re + c1.re*c2.im
267 scalar sqrC2 =
magSqr(c2);
271 (c1.re*c2.re + c1.im*c2.im)/sqrC2,
272 (c1.im*c2.re - c1.re*c2.im)/sqrC2
279 return complex(s*c.re, s*c.im);
285 return complex(s*c.re, s*c.im);
291 return complex(c.re/s, c.im/s);
297 return complex(s/c.re, s/c.im);
bool operator==(const complex &) const
friend complex operator+(const complex &, const complex &)
friend const complex & sum(const complex &)
const dimensionedScalar & c1
First radiation constant: default SI units: [W/m^2].
void operator-=(const complex &)
dimensionedScalar sqrt(const dimensionedScalar &ds)
friend complex sqr(const complex &c)
friend scalar mag(const complex &c)
friend complex operator-(const complex &)
const dimensionedScalar & c
Speed of light in a vacuum.
friend const complex & min(const complex &, const complex &)
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))
void operator=(const scalar)
complex conjugate() const
complex operator!() const
bool operator!=(const complex &) const
void operator/=(const complex &)
friend const complex & max(const complex &, const complex &)
friend scalar magSqr(const complex &c)
friend complex limit(const complex &, const complex &)
friend complex operator/(const complex &, const complex &)
bool equal(const T &s1, const T &s2)
friend complex operator*(const complex &, const complex &)
const dimensionedScalar & c2
Second radiation constant: default SI units: [m K].
Extension to the c++ complex library type.
Templated 3D tensor derived from MatrixSpace adding construction from 9 components, element access using xx(), xy() etc. member functions and the inner-product (dot-product) and outer-product of two Vectors (tensor-product) operators.
void operator+=(const complex &)
dimensionSet transform(const dimensionSet &)
void operator*=(const complex &)