Go to the documentation of this file.
47 #include <type_traits>
111 inline constexpr
complex() noexcept;
117 inline explicit constexpr
complex(
const scalar r) noexcept;
120 inline constexpr
complex(
const scalar r,
const scalar i) noexcept;
123 inline complex(
const std::complex<float>&
c);
126 inline complex(
const std::complex<double>&
c);
137 constexpr scalar
real()
const
143 constexpr scalar
imag()
const
149 inline void real(scalar val);
152 inline void imag(scalar val);
158 inline scalar
Re()
const;
161 inline scalar
Im()
const;
182 operator std::complex<scalar>()
const
184 return std::complex<scalar>(re, im);
288 static const char*
const typeName;
289 static const char*
const componentNames[];
336 typename std::enable_if
338 !std::is_same<complex, T>::value,
347 typename std::enable_if
349 std::is_same<complex, T>::value,
353 return val.conjugate();
friend complex limit(const complex &c1, const complex &c2)
static const complex zero
complex (0,0)
static const complex min
complex (-VGREAT,-VGREAT)
A class for handling words, derived from Foam::string.
friend complex operator+(const complex &c1, const complex &c2)
void operator-=(const complex &c)
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))
friend scalar mag(const complex &c)
bool operator!=(const complex &c) const
constexpr scalar imag() const
friend complex sign(const complex &c)
tmp< faMatrix< Type > > operator-(const faMatrix< Type > &)
A class representing the concept of 1 (one) that can be used to avoid manipulating objects known to b...
complex conjugate() const
Istream & operator>>(Istream &, directionInfo &)
friend scalar csign(const complex &c)
label min(const labelHashSet &set, label minValue=labelMax)
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)
void operator*=(const complex &c)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
const dimensionedScalar c1
friend complex operator-(const complex &c)
friend complex operator*(const complex &c1, const complex &c2)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
const friend complex & sum(const complex &c)
static const complex one
complex (1,0)
void operator+=(const complex &c)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
label max(const labelHashSet &set, label maxValue=labelMin)
friend complex sqr(const complex &c)
OBJstream os(runTime.globalPath()/outputName)
constexpr scalar real() const
A complex number, similar to the C++ complex type.
const dimensionedScalar c2
static const complex rootMax
complex (ROOTVGREAT, ROOTVGREAT)
A template class to specify if a data type is composed solely of Foam::scalar elements.
const friend complex & max(const complex &c1, const complex &c2)
dimensionedScalar operator/(const scalar s1, const dimensionedScalar &ds2)
static const complex max
complex (VGREAT,VGREAT)
bitSet operator~(const bitSet &bitset)
static const char *const typeName
dimensionedSymmTensor sqr(const dimensionedVector &dv)
complex & operator=(const complex &)=default
std::enable_if< !std::is_same< complex, T >::value, const T & >::type conj(const T &val)
A traits class, which is primarily used for primitives.
tmp< faMatrix< Type > > operator+(const faMatrix< Type > &, const faMatrix< Type > &)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
fileName::Type type(const fileName &name, const bool followLink=true)
tmp< faMatrix< Type > > operator*(const areaScalarField &, const faMatrix< Type > &)
complex limit(const complex &, const complex &)
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &df)
const dimensionedScalar c
word name(const expressions::valueTypeCode typeCode)
friend scalar magSqr(const complex &c)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
const friend complex & min(const complex &c1, const complex &c2)
constexpr complex() noexcept
static const complex rootMin
complex (-ROOTVGREAT, -ROOTVGREAT)
void operator/=(const complex &c)
friend complex operator/(const complex &c1, const complex &c2)
A template class to specify that a data type can be considered as being contiguous in memory.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...