201 return c.conjugate();
212 return (
c.re*
c.re +
c.im*
c.im);
230 const scalar
s(
mag(
c));
231 return s < ROOTVSMALL ?
Zero :
c/
s;
275 template<
class Cmpt>
class Tensor;
391 #define transFunc(func) \ 392 inline complex func(const complex& c) \ 394 return std:: func (static_cast<std::complex<scalar>>(c)); \ 419 static_cast<std::complex<scalar>
>(
x),
420 static_cast<std::complex<scalar>
>(
y)
426 #define powFuncs(type2) \ 427 inline complex pow(const complex& x, const type2 y) \ 429 return std::pow(static_cast<std::complex<scalar>>(x), y); \ 432 inline complex pow(const type2 x, const complex& y) \ 436 static_cast<std::complex<scalar>>(x), \ 437 static_cast<std::complex<scalar>>(y) \ 443 #if defined(__APPLE__) && WM_LABEL_SIZE == 64
dimensionedScalar sign(const dimensionedScalar &ds)
dimensionedScalar tanh(const dimensionedScalar &ds)
dimensionedScalar acos(const dimensionedScalar &ds)
complex pow(const double x, const complex &y)
void operator/=(const complex &c)
bitSet operator~(const bitSet &bitset)
Bitset complement, returns a copy of the bitset with all its bits flipped.
dimensionedScalar log(const dimensionedScalar &ds)
bool operator!=(const complex &c) const
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
const dimensionedScalar re
Classical electron radius: default SI units: [m].
const dimensionedScalar c2
Second radiation constant: default SI units: [m.K].
dimensionedScalar sqrt(const dimensionedScalar &ds)
dimensionedScalar pow025(const dimensionedScalar &ds)
void operator+=(const complex &c)
dimensionedScalar operator/(const scalar s1, const dimensionedScalar &ds2)
tmp< faMatrix< Type > > operator+(const faMatrix< Type > &, const faMatrix< Type > &)
complex & operator=(const complex &)=default
Copy assignment.
dimensionedScalar asin(const dimensionedScalar &ds)
dimensionedScalar pow5(const dimensionedScalar &ds)
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &df)
complex limit(const complex &, const complex &)
dimensionedScalar acosh(const dimensionedScalar &ds)
dimensionedScalar cos(const dimensionedScalar &ds)
dimensionedScalar exp(const dimensionedScalar &ds)
tmp< faMatrix< Type > > operator*(const areaScalarField::Internal &, const faMatrix< Type > &)
dimensionedScalar asinh(const dimensionedScalar &ds)
void operator*=(const complex &c)
dimensionedScalar atanh(const dimensionedScalar &ds)
constexpr scalar real() const
Real part of complex number - STL naming.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
void operator-=(const complex &c)
tmp< faMatrix< Type > > operator-(const faMatrix< Type > &)
Unary negation.
dimensionedScalar sin(const dimensionedScalar &ds)
complex conjugate() const
Complex conjugate.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
dimensionedScalar pow3(const dimensionedScalar &ds)
constexpr complex() noexcept
Default construct, as zero-initialized.
bool equal(const T &s1, const T &s2)
Compare two values for equality.
dimensionedScalar sinh(const dimensionedScalar &ds)
dimensionedScalar atan(const dimensionedScalar &ds)
const dimensionedScalar c
Speed of light in a vacuum.
dimensionedScalar pow4(const dimensionedScalar &ds)
const dimensionedScalar c1
First radiation constant: default SI units: [W/m2].
dimensionedScalar pow6(const dimensionedScalar &ds)
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
scalar csign(const complex &c)
A complex number, similar to the C++ complex type.
transFunc(sqrt) transFunc(cbrt) transFunc(exp) transFunc(log) transFunc(log10) transFunc(sin) transFunc(cos) transFunc(tan) transFunc(asin) transFunc(acos) transFunc(atan) transFunc(sinh) transFunc(cosh) transFunc(tanh) transFunc(asinh) transFunc(acosh) transFunc(atanh) transFunc(erf) transFunc(erfc) transFunc(lgamma) transFunc(tgamma) besselFunc(j0) besselFunc(j1) besselFunc(y0) besselFunc(y1) besselFunc2(jn) besselFunc2(yn) inline Scalar &setComponent(Scalar &val
Non-const access to scalar-type (has no components)
dimensionedScalar cosh(const dimensionedScalar &ds)
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
scalar Re() const
Real part of complex number.
bool operator==(const complex &c) const
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.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))
dimensionedScalar tan(const dimensionedScalar &ds)
scalar Im() const
Imaginary part of complex number.
dimensionSet transform(const dimensionSet &ds)
Return the argument; transformations do not change the dimensions.
dimensionedScalar hypot(const dimensionedScalar &x, const dimensionedScalar &y)
dimensionedScalar log10(const dimensionedScalar &ds)
constexpr scalar imag() const
Imaginary part of complex number - STL naming.
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)
static constexpr const zero Zero
Global zero (0)