167 return (c.re*c.re + c.im*c.im);
266 c1.re*c2.re - c1.im*c2.im,
267 c1.im*c2.re + c1.re*c2.im
274 scalar sqrC2 =
magSqr(c2);
278 (c1.re*c2.re + c1.im*c2.im)/sqrC2,
279 (c1.im*c2.re - c1.re*c2.im)/sqrC2
286 return complex(s*c.re, s*c.im);
292 return complex(s*c.re, s*c.im);
298 return complex(c.re/s, c.im/s);
304 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 c2
Second radiation constant: default SI units: [m.K].
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 &)
friend const complex & min(const complex &, const complex &)
void operator=(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))
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)
const dimensionedScalar c
Speed of light in a vacuum.
const dimensionedScalar c1
First radiation constant: default SI units: [W/m2].
friend complex operator*(const complex &, const complex &)
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 &)