OSHUN  beta
Arbitrary Order Spherical-Harmonic 1D-3P Vlasov-Fokker-Planck-Maxwell code
St2d

Data Structures

class  SHarmonic2D
 A 2D Spherical Harmonic. More...
 
class  Field2D
 A 2D Field. More...
 
class  EMF1D
 
class  EMF2D
 An EMF2D is the container for the 6 EM fields in a 2D-3P code. More...
 
class  DistFunc2D
 The 2D distribution function is the container for all SHarmonic2D per species. More...
 
class  State2D
 

Functions

 SHarmonic1D::SHarmonic1D (size_t nump, size_t numx)
 The constructor requires nump, and numx as inputs. More...
 
 SHarmonic1D::SHarmonic1D (const SHarmonic1D &other)
 
 SHarmonic1D::~SHarmonic1D ()
 
Array2D< complex< double > > & SHarmonic1D::array () const
 To retrieve the the array that stores the information. More...
 
size_t SHarmonic1D::dim () const
 
size_t SHarmonic1D::nump () const
 
size_t SHarmonic1D::numx () const
 
complex< double > & SHarmonic1D::operator() (size_t i, size_t j)
 
complex< double > SHarmonic1D::operator() (size_t i, size_t j) const
 
complex< double > & SHarmonic1D::operator() (size_t i)
 
complex< double > SHarmonic1D::operator() (size_t i) const
 
vector< complex< double > > SHarmonic1D::xVec (size_t j) const
 
SHarmonic1DSHarmonic1D::operator= (const complex< double > &d)
 
SHarmonic1DSHarmonic1D::operator= (const SHarmonic1D &other)
 
SHarmonic1DSHarmonic1D::operator*= (const complex< double > &d)
 
SHarmonic1DSHarmonic1D::operator*= (const SHarmonic1D &shmulti)
 
SHarmonic1DSHarmonic1D::operator+= (const complex< double > &d)
 
SHarmonic1DSHarmonic1D::operator+= (const SHarmonic1D &shadd)
 
SHarmonic1DSHarmonic1D::operator-= (const complex< double > &d)
 
SHarmonic1DSHarmonic1D::operator-= (const SHarmonic1D &shmin)
 
SHarmonic1DSHarmonic1D::mpaxis (const valarray< complex< double > > &shmulti)
 
SHarmonic1DSHarmonic1D::mxaxis (const valarray< complex< double > > &shmulti)
 
SHarmonic1DSHarmonic1D::Re ()
 
SHarmonic1DSHarmonic1D::Dp ()
 
SHarmonic1DSHarmonic1D::Dx ()
 
SHarmonic1DSHarmonic1D::Filterp (size_t N)
 
void SHarmonic1D::checknan ()
 
 SHarmonic2D::SHarmonic2D (size_t nump, size_t numx, size_t numy)
 
 SHarmonic2D::SHarmonic2D (const SHarmonic2D &other)
 
 SHarmonic2D::~SHarmonic2D ()
 
Array3D< complex< double > > & SHarmonic2D::array () const
 
size_t SHarmonic2D::dim () const
 
size_t SHarmonic2D::nump () const
 
size_t SHarmonic2D::numx () const
 
size_t SHarmonic2D::numy () const
 
complex< double > & SHarmonic2D::operator() (size_t i, size_t j, size_t k)
 
complex< double > & SHarmonic2D::operator() (size_t i)
 
SHarmonic2DSHarmonic2D::operator= (const complex< double > &d)
 
SHarmonic2DSHarmonic2D::operator= (const SHarmonic2D &other)
 
SHarmonic2DSHarmonic2D::operator*= (const complex< double > &d)
 
SHarmonic2DSHarmonic2D::operator*= (const SHarmonic2D &shmulti)
 
SHarmonic2DSHarmonic2D::operator+= (const complex< double > &d)
 
SHarmonic2DSHarmonic2D::operator+= (const SHarmonic2D &shadd)
 
SHarmonic2DSHarmonic2D::operator-= (const complex< double > &d)
 
SHarmonic2DSHarmonic2D::operator-= (const SHarmonic2D &shmin)
 
SHarmonic2DSHarmonic2D::mpaxis (const valarray< complex< double > > &shmulti)
 
SHarmonic2DSHarmonic2D::mxaxis (const valarray< complex< double > > &shmulti)
 
SHarmonic2DSHarmonic2D::myaxis (const valarray< complex< double > > &shmulti)
 
SHarmonic2DSHarmonic2D::mxy_matrix (Array2D< complex< double > > &shmultiM)
 
SHarmonic2DSHarmonic2D::Dx ()
 
SHarmonic2DSHarmonic2D::Dy ()
 
SHarmonic2DSHarmonic2D::Filterp (size_t N)
 
 Field1D::Field1D (size_t numx)
 
 Field1D::Field1D (const Field1D &other)
 
 Field1D::~Field1D ()
 
valarray< complex< double > > & Field1D::array () const
 
size_t Field1D::numx () const
 
complex< double > & Field1D::operator() (size_t i)
 
complex< double > Field1D::operator() (size_t i) const
 
Field1DField1D::operator= (const complex< double > &d)
 
Field1DField1D::operator= (const valarray< complex< double > > &other)
 
Field1DField1D::operator= (const Field1D &other)
 
Field1DField1D::operator*= (const complex< double > &d)
 
Field1DField1D::operator*= (const valarray< complex< double > > &fimulti)
 
Field1DField1D::operator*= (const Field1D &fimulti)
 
Field1DField1D::operator+= (const complex< double > &d)
 
Field1DField1D::operator+= (const Field1D &fiadd)
 
Field1DField1D::operator-= (const complex< double > &d)
 
Field1DField1D::operator-= (const Field1D &fimin)
 
Field1DField1D::Re ()
 
Field1DField1D::Dx ()
 
 Field2D::Field2D (size_t numx, size_t numy)
 
 Field2D::Field2D (const Field2D &other)
 
 Field2D::~Field2D ()
 
Array2D< complex< double > > & Field2D::array () const
 
size_t Field2D::numx () const
 
size_t Field2D::numy () const
 
complex< double > & Field2D::operator() (size_t i, size_t j)
 
complex< double > & Field2D::operator() (size_t i)
 
Field2DField2D::operator= (const complex< double > &d)
 
Field2DField2D::operator= (const Field2D &other)
 
Field2DField2D::operator*= (const complex< double > &d)
 
Field2DField2D::operator*= (const Field2D &fimulti)
 
Field2DField2D::operator+= (const complex< double > &d)
 
Field2DField2D::operator+= (const Field2D &fiadd)
 
Field2DField2D::operator-= (const complex< double > &d)
 
Field2DField2D::operator-= (const Field2D &fimin)
 
Field2DField2D::Dx ()
 
Field2DField2D::Dy ()
 
 EMF1D::EMF1D (size_t nx)
 
 EMF1D::EMF1D (const EMF1D &other)
 
 EMF1D::~EMF1D ()
 
size_t EMF1D::dim () const
 
Field1DEMF1D::operator() (size_t i)
 
Field1D EMF1D::operator() (size_t i) const
 
Field1DEMF1D::Ex ()
 
Field1DEMF1D::Ey ()
 
Field1DEMF1D::Ez ()
 
Field1DEMF1D::Bx ()
 
Field1DEMF1D::By ()
 
Field1DEMF1D::Bz ()
 
EMF1DEMF1D::operator= (const complex< double > &d)
 
EMF1DEMF1D::operator= (const Field1D &h)
 
EMF1DEMF1D::operator= (const EMF1D &other)
 
EMF1DEMF1D::operator*= (const complex< double > &d)
 
EMF1DEMF1D::operator*= (const EMF1D &other)
 
EMF1DEMF1D::operator+= (const complex< double > &d)
 
EMF1DEMF1D::operator+= (const EMF1D &other)
 
EMF1DEMF1D::operator-= (const complex< double > &d)
 
EMF1DEMF1D::operator-= (const EMF1D &other)
 
 EMF2D::EMF2D (size_t nx, size_t ny)
 
 EMF2D::EMF2D (const EMF2D &other)
 
 EMF2D::~EMF2D ()
 
size_t EMF2D::dim () const
 
Field2DEMF2D::operator() (size_t i)
 
Field2D EMF2D::operator() (size_t i) const
 
Field2DEMF2D::Ex ()
 
Field2DEMF2D::Ey ()
 
Field2DEMF2D::Ez ()
 
Field2DEMF2D::Bx ()
 
Field2DEMF2D::By ()
 
Field2DEMF2D::Bz ()
 
EMF2DEMF2D::operator= (const complex< double > &d)
 
EMF2DEMF2D::operator= (const Field2D &h)
 
EMF2DEMF2D::operator= (const EMF2D &other)
 
EMF2DEMF2D::operator*= (const complex< double > &d)
 
EMF2DEMF2D::operator*= (const EMF2D &other)
 
EMF2DEMF2D::operator+= (const complex< double > &d)
 
EMF2DEMF2D::operator+= (const EMF2D &other)
 
EMF2DEMF2D::operator-= (const complex< double > &d)
 
EMF2DEMF2D::operator-= (const EMF2D &other)
 
 DistFunc1D::DistFunc1D (size_t l, size_t m, size_t np, double pma, size_t nx, double q, double _ma)
 
 DistFunc1D::DistFunc1D (const DistFunc1D &other)
 
 DistFunc1D::~DistFunc1D ()
 
size_t DistFunc1D::dim () const
 
size_t DistFunc1D::l0 () const
 
size_t DistFunc1D::m0 () const
 
double DistFunc1D::pmax () const
 
double DistFunc1D::q () const
 
double DistFunc1D::mass () const
 
Array2D< int > DistFunc1D::indx () const
 
valarray< double > DistFunc1D::getdensity ()
 
valarray< double > DistFunc1D::getcurrent (size_t dir)
 
valarray< double > DistFunc1D::getcurrent (size_t dir) const
 
Array2D< double > DistFunc1D::getcurrent () const
 
valarray< double > DistFunc1D::getpressure ()
 
SHarmonic1DDistFunc1D::operator() (int i)
 
SHarmonic1DDistFunc1D::operator() (int i) const
 
SHarmonic1DDistFunc1D::operator() (size_t l, size_t m)
 
SHarmonic1DDistFunc1D::operator() (size_t l, size_t m) const
 
DistFunc1DDistFunc1D::operator= (const complex< double > &d)
 
DistFunc1DDistFunc1D::operator= (const SHarmonic1D &h)
 
DistFunc1DDistFunc1D::operator= (const DistFunc1D &other)
 
DistFunc1DDistFunc1D::operator*= (const complex< double > &d)
 
DistFunc1DDistFunc1D::operator*= (const DistFunc1D &other)
 
DistFunc1DDistFunc1D::operator+= (const complex< double > &d)
 
DistFunc1DDistFunc1D::operator+= (const DistFunc1D &other)
 
DistFunc1DDistFunc1D::operator-= (const complex< double > &d)
 
DistFunc1DDistFunc1D::operator-= (const DistFunc1D &other)
 
DistFunc1DDistFunc1D::Filterp ()
 
void DistFunc1D::checknan ()
 
Array2D< int > DistFunc2D::indx () const
 
 DistFunc2D::DistFunc2D (size_t l, size_t m, size_t np, size_t nx, size_t ny, double q, double _ma)
 
 DistFunc2D::DistFunc2D (const DistFunc2D &other)
 
 DistFunc2D::~DistFunc2D ()
 
size_t DistFunc2D::dim () const
 
size_t DistFunc2D::ldim () const
 
size_t DistFunc2D::mdim () const
 
size_t DistFunc2D::l0 () const
 
size_t DistFunc2D::m0 () const
 
double DistFunc2D::q () const
 
double DistFunc2D::mass () const
 
SHarmonic2DDistFunc2D::operator() (size_t i)
 
SHarmonic2DDistFunc2D::operator() (size_t i) const
 
SHarmonic2DDistFunc2D::operator() (size_t l, size_t m)
 
SHarmonic2DDistFunc2D::operator() (size_t l, size_t m) const
 
DistFunc2DDistFunc2D::operator= (const complex< double > &d)
 
DistFunc2DDistFunc2D::operator= (const SHarmonic2D &h)
 
DistFunc2DDistFunc2D::operator= (const DistFunc2D &other)
 
DistFunc2DDistFunc2D::operator*= (const complex< double > &d)
 
DistFunc2DDistFunc2D::operator*= (const DistFunc2D &other)
 
DistFunc2DDistFunc2D::operator+= (const complex< double > &d)
 
DistFunc2DDistFunc2D::operator+= (const DistFunc2D &other)
 
DistFunc2DDistFunc2D::operator-= (const complex< double > &d)
 
DistFunc2DDistFunc2D::operator-= (const DistFunc2D &other)
 
 Hydro1D::Hydro1D (size_t numx, double _mass, double _charge)
 
 Hydro1D::Hydro1D (const Hydro1D &other)
 
 Hydro1D::~Hydro1D ()
 
size_t Hydro1D::numx () const
 
double Hydro1D::mass () const
 
double Hydro1D::charge () const
 
double & Hydro1D::density (size_t i)
 
double Hydro1D::density (size_t i) const
 
double & Hydro1D::vx (size_t i)
 
double Hydro1D::vx (size_t i) const
 
double & Hydro1D::vy (size_t i)
 
double Hydro1D::vy (size_t i) const
 
double & Hydro1D::vz (size_t i)
 
double Hydro1D::vz (size_t i) const
 
double & Hydro1D::temperature (size_t i)
 
double Hydro1D::temperature (size_t i) const
 
double & Hydro1D::Z (size_t i)
 
double Hydro1D::Z (size_t i) const
 
valarray< double > & Hydro1D::densityarray () const
 
valarray< double > & Hydro1D::vxarray () const
 
valarray< double > & Hydro1D::vyarray () const
 
valarray< double > & Hydro1D::vzarray () const
 
valarray< double > & Hydro1D::temperaturearray () const
 
valarray< double > & Hydro1D::Zarray () const
 
Hydro1DHydro1D::operator= (const double &d)
 
Hydro1DHydro1D::operator= (const valarray< double > &other)
 
Hydro1DHydro1D::operator= (const Hydro1D &other)
 
Hydro1DHydro1D::operator*= (const double &d)
 
Hydro1DHydro1D::operator*= (const valarray< double > &other)
 
Hydro1DHydro1D::operator*= (const Hydro1D &other)
 
Hydro1DHydro1D::operator+= (const double &d)
 
Hydro1DHydro1D::operator+= (const valarray< double > &other)
 
Hydro1DHydro1D::operator+= (const Hydro1D &other)
 
Hydro1DHydro1D::operator-= (const double &d)
 
Hydro1DHydro1D::operator-= (const valarray< double > &other)
 
Hydro1DHydro1D::operator-= (const Hydro1D &other)
 
 State1D::State1D (size_t nx, vector< size_t > l0, vector< size_t > m0, vector< size_t > np, vector< double > pmax, vector< double > q, vector< double > ma, double hydromass, double hydrocharge)
 
 State1D::State1D (const State1D &other)
 
 State1D::~State1D ()
 
size_t State1D::Species () const
 
size_t State1D::Fields () const
 
void State1D::checknan ()
 
DistFunc1DState1D::DF (size_t s)
 
DistFunc1DState1D::DF (size_t s) const
 
SHarmonic1DState1D::SH (size_t s, size_t lh, size_t mh)
 
SHarmonic1DState1D::SH (size_t s, size_t lh, size_t mh) const
 
EMF1DState1D::EMF () const
 
Field1DState1D::FLD (size_t ip) const
 
Hydro1DState1D::HYDRO ()
 
Hydro1DState1D::HYDRO () const
 
State1DState1D::operator= (const State1D &other)
 
State1DState1D::operator= (const complex< double > &d)
 
State1DState1D::operator*= (const State1D &other)
 
State1DState1D::operator*= (const complex< double > &d)
 
State1DState1D::operator+= (const State1D &other)
 
State1DState1D::operator+= (const complex< double > &d)
 
State1DState1D::operator-= (const State1D &other)
 
State1DState1D::operator-= (const complex< double > &d)
 
 State2D::State2D (size_t nx, size_t ny, vector< size_t > l0, vector< size_t > m0, vector< size_t > np, vector< double > q, vector< double > ma)
 
 State2D::State2D (const State2D &other)
 
 State2D::~State2D ()
 
size_t State2D::Species () const
 
size_t State2D::Fields () const
 
DistFunc2DState2D::DF (size_t s)
 
DistFunc2DState2D::DF (size_t s) const
 
SHarmonic2DState2D::SH (size_t s, size_t lh, size_t mh)
 
SHarmonic2DState2D::SH (size_t s, size_t lh, size_t mh) const
 
SHarmonic2DState2D::SHp (size_t s, size_t lh, size_t mh)
 
SHarmonic2DState2D::SHp (size_t s, size_t lh, size_t mh) const
 
EMF2DState2D::EMF () const
 
Field2DState2D::FLD (size_t ip) const
 
State2DState2D::operator= (const State2D &other)
 
State2DState2D::operator= (const complex< double > &d)
 
State2DState2D::operator*= (const State2D &other)
 
State2DState2D::operator*= (const complex< double > &d)
 
State2DState2D::operator+= (const State2D &other)
 
State2DState2D::operator+= (const complex< double > &d)
 
State2DState2D::operator-= (const State2D &other)
 
State2DState2D::operator-= (const complex< double > &d)
 

Variables

Array2D< complex< double > > * SHarmonic1D::sh
 
Array3D< complex< double > > * SHarmonic2D::sh
 
valarray< complex< double > > * Field1D::fi
 
Array2D< complex< double > > * Field2D::fi
 
vector< Field1D > * EMF1D::fie
 
vector< Field2D > * EMF2D::fie
 
vector< SHarmonic1D > * DistFunc1D::df
 
size_t DistFunc1D::lmax
 
size_t DistFunc1D::mmax
 
size_t DistFunc1D::sz
 
double DistFunc1D::pmx
 
double DistFunc1D::charge
 
double DistFunc1D::ma
 
Array2D< int > DistFunc1D::ind
 
valarray< int > DistFunc1D::filter_ceiling
 
vector< SHarmonic2D > * DistFunc2D::df
 
size_t DistFunc2D::lmax
 
size_t DistFunc2D::mmax
 
size_t DistFunc2D::sz
 
double DistFunc2D::charge
 
double DistFunc2D::ma
 
Array2D< int > DistFunc2D::ind
 
valarray< double > * Hydro1D::hn
 
valarray< double > * Hydro1D::hvx
 
valarray< double > * Hydro1D::hvy
 
valarray< double > * Hydro1D::hvz
 
valarray< double > * Hydro1D::ht
 
valarray< double > * Hydro1D::hz
 
double Hydro1D::hydromass
 
double Hydro1D::hydrocharge
 
vector< DistFunc1D > * State1D::sp
 
EMF1DState1D::flds
 
Hydro1DState1D::hydro
 
size_t State1D::ns
 
vector< DistFunc2D > * State2D::sp
 
EMF2DState2D::flds
 
size_t State2D::ns
 

Detailed Description

Function Documentation

◆ array() [1/4]

Array2D<complex<double> >& SHarmonic1D::array ( ) const
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

To retrieve the the array that stores the information.

Definition at line 69 of file state.h.

Referenced by SHarmonic1D::operator*=(), SHarmonic1D::operator+=(), SHarmonic1D::operator-=(), SHarmonic1D::operator=(), and SHarmonic1D::SHarmonic1D().

69 {return (*sh);}
Array2D< complex< double > > * sh
Definition: state.h:60
Here is the caller graph for this function:

◆ array() [2/4]

Array3D< complex <double> >& SHarmonic2D::array ( ) const
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 134 of file state.h.

Referenced by SHarmonic2D::operator*=(), SHarmonic2D::operator+=(), SHarmonic2D::operator-=(), SHarmonic2D::operator=(), and SHarmonic2D::SHarmonic2D().

134 {return (*sh);}
Array3D< complex< double > > * sh
Definition: state.h:125
Here is the caller graph for this function:

◆ array() [3/4]

◆ array() [4/4]

Array2D< complex <double> >& Field2D::array ( ) const
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 245 of file state.h.

Referenced by Field2D::Field2D(), Field2D::operator*=(), Field2D::operator+=(), Field2D::operator-=(), and Field2D::operator=().

245 {return (*fi);}
Array2D< complex< double > > * fi
Definition: state.h:236
Here is the caller graph for this function:

◆ Bx() [1/2]

◆ Bx() [2/2]

Field2D& EMF2D::Bx ( )
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 345 of file state.h.

345 {return (*fie)[3];}
vector< Field2D > * fie
Definition: state.h:329

◆ By() [1/2]

◆ By() [2/2]

Field2D& EMF2D::By ( )
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 346 of file state.h.

346 {return (*fie)[4];}
vector< Field2D > * fie
Definition: state.h:329

◆ Bz() [1/2]

◆ Bz() [2/2]

Field2D& EMF2D::Bz ( )
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 347 of file state.h.

References SHarmonic1D::operator*=(), SHarmonic1D::operator+=(), SHarmonic1D::operator-=(), and SHarmonic1D::operator=().

347 {return (*fie)[5];}
vector< Field2D > * fie
Definition: state.h:329
Here is the call graph for this function:

◆ charge()

double Hydro1D::charge ( ) const
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 524 of file state.h.

Referenced by State1D::State1D(), and Fluid_Equation_1D::velocity().

524 {return hydrocharge;}
double hydrocharge
Definition: state.h:512
Here is the caller graph for this function:

◆ checknan() [1/3]

void SHarmonic1D::checknan ( )

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 218 of file state.cpp.

References SHarmonic1D::nump(), SHarmonic1D::numx(), and SHarmonic1D::sh.

Referenced by State1D::Fields(), DistFunc1D::indx(), and SHarmonic1D::xVec().

218  {
219 
220  for (size_t i(0); i<numx();++i){
221  for (size_t p(0); p<nump();++p){
222  if ((isnan((*sh)(p,i).real())) || (isnan((*sh)(p,i).imag())))
223  {
224  std::cout << "NaN @ (" << p << "," << i << ")\n";
225  exit(1);
226  }
227  }
228  }
229 // std::cout << "SH OK! \n";
230  return;
231 
232 
233 }
Array2D< complex< double > > * sh
Definition: state.h:60
size_t numx() const
Definition: state.h:72
size_t nump() const
Definition: state.h:71
Here is the call graph for this function:
Here is the caller graph for this function:

◆ checknan() [2/3]

void DistFunc1D::checknan ( )

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1103 of file state.cpp.

References DistFunc1D::df, DistFunc1D::dim(), and DistFunc1D::indx().

1103  {
1104 
1105  for (int indx(0); indx<dim();++indx){
1106  for (size_t i(0); i<(*df)[indx].numx();++i){
1107  for (size_t p(0); p<(*df)[indx].nump();++p){
1108  if ( isnan((*df)[indx](p,i).real()) || isnan((*df)[indx](p,i).imag()) )
1109  {
1110  std::cout << "NaN @ (" << indx << "," << p << "," << i << ")\n";
1111  exit(1);
1112  }
1113  }
1114  }
1115  }
1116 // std::cout << "OK! \n";
1117  return;
1118 
1119 
1120 }
size_t dim() const
Definition: state.h:395
vector< SHarmonic1D > * df
Definition: state.h:380
Array2D< int > indx() const
Definition: state.h:402
Here is the call graph for this function:

◆ checknan() [3/3]

void State1D::checknan ( )

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1630 of file state.cpp.

References State1D::ns.

1630  {
1631 
1632  for(size_t s(0); s < ns; ++s){
1633  (*sp)[s].checknan();
1634  }
1635 // std::cout << "Y OK! \n";
1636  return;
1637 }
size_t ns
Definition: state.h:586

◆ density() [1/2]

◆ density() [2/2]

double Hydro1D::density ( size_t  i) const
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 528 of file state.h.

528 {return (*hn)[i];}
valarray< double > * hn
Definition: state.h:510

◆ densityarray()

valarray<double >& Hydro1D::densityarray ( ) const
inline

◆ DF() [1/4]

DistFunc1D& State1D::DF ( size_t  s)
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 602 of file state.h.

Referenced by collisions::advance(), collisions::advancef0(), collisions::advancef1(), collisions::advanceflm(), Electric_Field_Methods::Current_xyz::calculate_J(), collisions::collisions(), Output_Data::Output_Preprocessor_1D::f0(), Output_Data::Output_Preprocessor_1D::f10(), Output_Data::Output_Preprocessor_1D::f11(), Output_Data::Output_Preprocessor_1D::f20(), Output_Data::Output_Preprocessor_1D::fl0(), Setup_Y::initialize(), interspecies_collisions::interspecies_collisions(), Output_Data::Output_Preprocessor_1D::Jx(), Output_Data::Output_Preprocessor_1D::Jy(), Output_Data::Output_Preprocessor_1D::Jz(), Node_Communications::mirror_bound_Xleft(), Node_Communications::mirror_bound_Xright(), VlasovFunctor1D_explicitE::operator()(), Hydro_Functor::operator()(), VlasovFunctor1D_spatialpush::operator()(), VlasovFunctor1D_momentumpush::operator()(), VlasovFunctor1D_explicitE_implicitB::operator()(), VlasovFunctor1D_f1_explicitE::operator()(), VlasovFunctor1D_implicitE_p1::operator()(), VlasovFunctor1D_f1_explicitEB::operator()(), VlasovFunctor1D_implicitE_implicitB_p1::operator()(), VlasovFunctor1D_f1_implicitE_p1::operator()(), VlasovFunctor1D_implicitE_p2::operator()(), VlasovFunctor1D_f1_implicitEB_p1::operator()(), VlasovFunctor1D_f1_implicitE_p2::operator()(), State1D::operator*=(), State1D::operator+=(), State1D::operator-=(), State1D::operator=(), Output_Data::Output_Preprocessor_1D::px(), Export_Files::Restart_Facility::Read(), Node_Communications::Recv_from_left_X(), Node_Communications::Recv_from_right_X(), Node_Communications::sameNode_mirror_X(), Node_Communications::sameNode_periodic_X(), Node_Communications::Send_left_X(), Node_Communications::Send_right_X(), State1D::State1D(), Output_Data::Output_Preprocessor_1D::T(), and Export_Files::Restart_Facility::Write().

602 {return (*sp)[s];}
vector< DistFunc1D > * sp
Definition: state.h:579
Here is the caller graph for this function:

◆ DF() [2/4]

DistFunc1D& State1D::DF ( size_t  s) const
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 603 of file state.h.

603 {return (*sp)[s];}
vector< DistFunc1D > * sp
Definition: state.h:579

◆ DF() [3/4]

DistFunc2D& State2D::DF ( size_t  s)
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 656 of file state.h.

Referenced by State2D::operator*=(), State2D::operator+=(), State2D::operator-=(), State2D::operator=(), and State2D::State2D().

656 {return (*sp)[s];}
vector< DistFunc2D > * sp
Definition: state.h:639
Here is the caller graph for this function:

◆ DF() [4/4]

DistFunc2D& State2D::DF ( size_t  s) const
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 657 of file state.h.

657 {return (*sp)[s];}
vector< DistFunc2D > * sp
Definition: state.h:639

◆ dim() [1/6]

size_t SHarmonic1D::dim ( ) const
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 70 of file state.h.

Referenced by EMF1D::operator*=(), EMF2D::operator*=(), EMF1D::operator+=(), EMF2D::operator+=(), EMF1D::operator-=(), EMF2D::operator-=(), EMF1D::operator=(), EMF2D::operator=(), and SHarmonic1D::Re().

70 {return (*sh).dim();} //< Total number of values in the array
Here is the caller graph for this function:

◆ dim() [2/6]

size_t SHarmonic2D::dim ( ) const
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 135 of file state.h.

135 {return (*sh).dim();}

◆ dim() [3/6]

◆ dim() [4/6]

size_t EMF2D::dim ( ) const
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 338 of file state.h.

Referenced by EMF2D::EMF2D().

338 {return (*fie).size();}
Here is the caller graph for this function:

◆ dim() [5/6]

◆ dim() [6/6]

size_t DistFunc2D::dim ( ) const
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 468 of file state.h.

Referenced by DistFunc2D::operator*=(), DistFunc2D::operator+=(), DistFunc2D::operator-=(), and DistFunc2D::operator=().

468 {return sz;}
size_t sz
Definition: state.h:453
Here is the caller graph for this function:

◆ DistFunc1D() [1/2]

DistFunc1D::DistFunc1D ( size_t  l,
size_t  m,
size_t  np,
double  pma,
size_t  nx,
double  q = 1,
double  _ma = 1 
)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 749 of file state.cpp.

References DistFunc1D::df, DistFunc1D::filter_ceiling, DistFunc1D::ind, DistFunc1D::lmax, DistFunc1D::mmax, and DistFunc1D::sz.

750  : lmax(l), mmax(m), pmx(pma), charge(q), ma(_ma), ind(l+1,m+1) {
751 
752 // Initialize the array of the harmonics
753  if (lmax < 1) {
754  cout << "l0 < 1 is not acceptable.\n";
755  exit(1);
756  }
757 
758 // Generate container for the harmonics
759  sz = ((mmax+1)*(2*lmax-mmax+2))/2;
760  df = new vector<SHarmonic1D>(sz,SHarmonic1D(np,nx));
761  valarray<int> filter_ceiling(0,sz);
762 // Define the index for the triangular array
763  ind = -1;
764 
765  if (mmax == 0)
766  {
767  for(int il(0); il < lmax+1 ; ++il){
768  ind(il,0) = il;
769 
770  // filter_ceiling[il] = floor(il/ceil(lmax/np));
771  filter_ceiling[il] = ((il < np)?il:np);
772  }
773 
774  }
775  else
776  {
777  for(int il=0; il < lmax+1 ; ++il){
778  for(int im=0; im < ((mmax < il)? mmax:il)+1; ++im){
779  ind(il,im) = ((il < mmax+1)?((il*(il+1))/2+im):
780  (il*(mmax+1)-(mmax*(mmax+1))/2 + im));
781  filter_ceiling[ind(il,im)] = ((il < np)?il:np);
782  }
783  }
784  }
785  // exit(1);
786 
787 }
double charge
Definition: state.h:382
size_t mmax
Definition: state.h:381
double ma
Definition: state.h:382
double pmx
Definition: state.h:382
size_t sz
Definition: state.h:381
A 1D Spherical Harmonic.
Definition: state.h:57
size_t lmax
Definition: state.h:381
vector< SHarmonic1D > * df
Definition: state.h:380
double q() const
Definition: state.h:399
Array2D< int > ind
Definition: state.h:384
valarray< int > filter_ceiling
Definition: state.h:385

◆ DistFunc1D() [2/2]

DistFunc1D::DistFunc1D ( const DistFunc1D other)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 791 of file state.cpp.

References DistFunc1D::df, DistFunc1D::filter_ceiling, DistFunc1D::ind, DistFunc1D::lmax, DistFunc1D::mmax, and DistFunc1D::sz.

792  : lmax(other.l0()), mmax(other.m0()), pmx(other.pmax()),
793  charge(other.q()), ma(other.mass()), ind(other.l0()+1,other.m0()+1),
794  filter_ceiling(((mmax+1)*(2*lmax-mmax+2))/2) {
795 
796 // Generate container for the harmonics
797  sz = ((mmax+1)*(2*lmax-mmax+2))/2;
798  df = new vector<SHarmonic1D>(sz,SHarmonic1D(other(0).nump(),other(0).numx()));
799 
800 
801  for(size_t i(0); i < sz ; ++i){
802  (*df).push_back(other(i));
803  }
804 
805 // Define the index for the triangular array
806  ind = -1;
807  if (mmax == 0)
808  {
809  for(int il(0); il < lmax+1 ; ++il){
810  ind(il,0) = il;
811  filter_ceiling[il] = (il < other(0).nump())?il:other(0).nump();
812  }
813 
814  }
815  else
816  {
817  for(int il=0; il < lmax+1 ; ++il){
818  for(int im=0; im < ((mmax < il)? mmax:il)+1; ++im){
819  ind(il,im) = ((il < mmax+1)?((il*(il+1))/2+im):
820  (il*(mmax+1)-(mmax*(mmax+1))/2 + im));
821  filter_ceiling[ind(il,im)] = (il*im < other(0).nump())?il*im:other(0).nump();
822  }
823  }
824  }
825  // exit(1);
826 
827 }
double charge
Definition: state.h:382
size_t mmax
Definition: state.h:381
double ma
Definition: state.h:382
double mass() const
Definition: state.h:400
double pmx
Definition: state.h:382
size_t sz
Definition: state.h:381
A 1D Spherical Harmonic.
Definition: state.h:57
double pmax() const
Definition: state.h:398
size_t lmax
Definition: state.h:381
vector< SHarmonic1D > * df
Definition: state.h:380
size_t m0() const
Definition: state.h:397
double q() const
Definition: state.h:399
size_t l0() const
Definition: state.h:396
Array2D< int > ind
Definition: state.h:384
valarray< int > filter_ceiling
Definition: state.h:385

◆ DistFunc2D() [1/2]

DistFunc2D::DistFunc2D ( size_t  l,
size_t  m,
size_t  np,
size_t  nx,
size_t  ny,
double  q = 1,
double  _ma = 1 
)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1131 of file state.cpp.

References DistFunc2D::df, DistFunc2D::ind, DistFunc2D::lmax, DistFunc2D::mmax, and DistFunc2D::sz.

1132  : lmax(l), mmax(m), charge(q), ma(_ma), ind(l+1,m+1) {
1133  // double q=1, double _ma=1)
1134 
1135 // Initialize the array of the harmonics
1136  if (lmax < 1 || mmax < 1) {
1137  cout << "l0 < 1 or m0 < 1 is not acceptable.\n";
1138  exit(1);
1139  }
1140 
1141  sz = ((mmax+1)*(2*lmax-mmax+2))/2;
1142 
1143 // Generate container for the harmonics
1144  df = new vector<SHarmonic2D>(sz,SHarmonic2D(np,nx,ny));
1145 
1146 // Define the index for the triangular array
1147  ind = -1;
1148  for(int il=0; il < lmax+1 ; ++il){
1149  for(int im=0; im < ((mmax < il)? mmax:il)+1; ++im){
1150  ind(il,im) = ((il < mmax+1)?((il*(il+1))/2+im):
1151  (il*(mmax+1)-(mmax*(mmax+1))/2 + im));
1152  }
1153  }
1154 
1155 }
double ma
Definition: state.h:454
double charge
Definition: state.h:454
size_t lmax
Definition: state.h:453
A 2D Spherical Harmonic.
Definition: state.h:122
double q() const
Definition: state.h:473
Array2D< int > ind
Definition: state.h:457
size_t mmax
Definition: state.h:453
vector< SHarmonic2D > * df
Definition: state.h:452
size_t sz
Definition: state.h:453

◆ DistFunc2D() [2/2]

DistFunc2D::DistFunc2D ( const DistFunc2D other)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1159 of file state.cpp.

References DistFunc2D::df, DistFunc2D::ind, DistFunc2D::l0(), and DistFunc2D::m0().

1160  : lmax(other.l0()), mmax(other.m0()), charge(other.q()), ma(other.mass()), ind(other.ldim(),other.mdim()) {
1161 
1162 // Generate container for the harmonics
1163  df = new vector<SHarmonic2D>;
1164  for(size_t l(0); l < other.l0()+1 ; ++l){
1165  for(size_t m(0); m < other.m0()+1 ; ++m){
1166  (*df).push_back(*(other(l,m)));
1167  }
1168  }
1169 
1170  // Define the index for the triangular array
1171  ind = -1;
1172  for(int il=0; il < l0()+1 ; ++il){
1173  for(int im=0; im < ((m0() < il)? m0():il)+1; ++im){
1174  ind(il,im) = ((il < m0()+1)?((il*(il+1))/2+im):
1175  (il*(m0()+1)-(m0()*(m0()+1))/2 + im));
1176  }
1177  }
1178 
1179 }
size_t ldim() const
Definition: state.h:469
double ma
Definition: state.h:454
double charge
Definition: state.h:454
size_t lmax
Definition: state.h:453
size_t m0() const
Definition: state.h:472
double q() const
Definition: state.h:473
Array2D< int > ind
Definition: state.h:457
size_t mmax
Definition: state.h:453
size_t l0() const
Definition: state.h:471
size_t mdim() const
Definition: state.h:470
vector< SHarmonic2D > * df
Definition: state.h:452
double mass() const
Definition: state.h:474
Here is the call graph for this function:

◆ Dp()

SHarmonic1D & SHarmonic1D::Dp ( )

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

2nd order

4th order

Definition at line 139 of file state.cpp.

References Array2D< T >::Dd1(), SHarmonic1D::nump(), SHarmonic1D::numx(), and SHarmonic1D::sh.

Referenced by Setup_Y::init_f1(), Electric_Field_1D_f1::MakeG00(), Electric_Field_1D::MakeG00(), Hydro_Advection_1D::MakeG00(), Electric_Field_1D_f1::MakeGH(), Electric_Field_1D::MakeGH(), Hydro_Advection_1D::MakeGH(), and SHarmonic1D::xVec().

139  {
140  //--------------------------------------------------------//
141  //--------------------------------------------------------//
143  valarray <complex<double> > plast(this->numx());
144 
145  for (size_t i(0); i < plast.size(); ++i) {
146  plast[i] = (*sh)(nump()-2,i) - (*sh)(nump()-1,i);
147  }
148  *sh = (*sh).Dd1();
149  for (size_t i(0); i < plast.size(); ++i) {
150  // TODO The Dp at the zeroth cell is taken care off
151  // (*sh)(0,i) = 0.0; //separately, both for the E-field and the collisions.
152  (*sh)(nump()-1,i) = 2.0*plast[i];
153  }
154 
155  //--------------------------------------------------------//
156  //--------------------------------------------------------//
158  // Array2D<complex<double> > df((*this).nump(),(*this).numx());
159 
160  // for (long i2(0); i2<numx();++i2){
161 
162  // df(0,i2) = (*this)(1,i2)-(*this)(0,i2);
163  // df(1,i2) = 1.0/12.0*((*this)(4,i2)-6.0*(*this)(3,i2)+18.0*(*this)(2,i2)-10.0*(*this)(1,i2)-3.0*(*this)(0,i2));
164 
165  // for (long i1(2); i1<nump()-2;++i1){
166  // df(i1,i2) = 1.0/12.0*(-(*this)(i1+2,i2)+8.0*(*this)(i1+1,i2)-8.0*(*this)(i1-1,i2)+(*this)(i1-2,i2));
167  // }
168 
169  // df(nump()-2,i2) = 0.0; //1.0/12.0*(3.0*(*this)(nump()-1,i2)+10.0*(*this)(nump()-2,i2)-18.0*(*this)(nump()-3,i2)+6.0*(*this)(nump()-4,i2)-(*this)(nump()-5,i2));
170  // df(nump()-1,i2) = 0.0; //(*this)(nump()-1,i2)-(*this)(nump()-2,i2);
171 
172  // }
173 
174  // for (long i2(0); i2<numx();++i2) {
175  // for (long i1(0); i1 < nump(); ++i1) {
176  // (*this)(i1, i2) = -2.0*df(i1, i2);
177  // }
178  // }
179 
180  return *this;
181 }
Array2D< complex< double > > * sh
Definition: state.h:60
size_t numx() const
Definition: state.h:72
size_t nump() const
Definition: state.h:71
Array2D & Dd1()
Definition: lib-array.h:507
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Dx() [1/4]

SHarmonic1D & SHarmonic1D::Dx ( )

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

2nd order

Definition at line 185 of file state.cpp.

References Array2D< T >::Dd2(), and SHarmonic1D::sh.

Referenced by Spatial_Advection_1D::f1only(), Spatial_Advection_1D::operator()(), Spatial_Advection_1D_f1::operator()(), SHarmonic2D::operator()(), Field1D::operator()(), Field2D::operator()(), and SHarmonic1D::xVec().

185  {
186 
187  //--------------------------------------------------------//
188  //--------------------------------------------------------//
190  // for (size_t ix(0); ix < this->numx(); ++ix) {
191  // for (size_t ip(0); ip < this->nump(); ++ip) {
192  // (*sh)(ip,ix) = ix;
193  // }
194  // }
195  *sh = (*sh).Dd2(); // Worry about boundaries elsewhere
196 
197  // for (size_t ix(0); ix < this->numx(); ++ix) {
198  // for (size_t ip(0); ip < this->nump(); ++ip) {
199  // std::cout << "*sh(" << ip << "," << ix << ")" << (*sh)(ip,ix) << "\n";
200  // }
201  // }
202 
203 
204  //--------------------------------------------------------//
205  //--------------------------------------------------------//
206 
207  return *this;
208 }
Array2D & Dd2()
Definition: lib-array.h:556
Array2D< complex< double > > * sh
Definition: state.h:60
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Dx() [2/4]

SHarmonic2D & SHarmonic2D::Dx ( )

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 341 of file state.cpp.

References Array2D< T >::Dd2(), and SHarmonic1D::sh.

341  {
342 
343  *sh = (*sh).Dd2(); // Worry about boundaries elsewhere
344  return *this;
345 }
Array3D & Dd2()
Definition: lib-array.h:1336
Array3D< complex< double > > * sh
Definition: state.h:125
Here is the call graph for this function:

◆ Dx() [3/4]

Field1D & Field1D::Dx ( )

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

4th order

Definition at line 450 of file state.cpp.

References SHarmonic1D::numx().

Referenced by Faraday_1D::operator()(), and Ampere_1D::operator()().

450  {
451 //--------------------------------------------------------------
452  //--------------------------------------------------------//
453  //--------------------------------------------------------//
455  // valarray<complex<double> > df(numx());
456 
457  // df[0] = (*fi)[1]-(*fi)[0];
458  // df[1] = 1.0/12.0*((*fi)[4]-6.0*(*fi)[3]+18.0*(*fi)[2]-10.0*(*fi)[1]-3.0*(*fi)[0]);
459 
460  // for (long i(2); i < numx()-2; ++i) {
461  // df[i] = 1.0/12.0*(-(*fi)[i+2]+8.0*(*fi)[i+1]-8.0*(*fi)[i-1]+(*fi)[i-2]);
462  // }
463 
464  // df[numx()-2] = 1.0/12.0*(3.0*(*fi)[numx()-1]+10.0*(*fi)[numx()-2]-18.0*(*fi)[numx()-3]+6.0*(*fi)[numx()-4]-(*fi)[numx()-5]);
465  // df[numx()-1] = (*fi)[numx()-1]-(*fi)[numx()-2];
466 
467  // for (long i(0); i < numx(); ++i)
468  // (*fi)[i] = -2.0*df[i];
469  //--------------------------------------------------------//
470  //--------------------------------------------------------//
471  // 2nd order
472  // df[0] = 2.0*((*fi)[0]-(*fi)[1]);
473  // for(long i(0); i < long(numx())-1; ++i) {
474  // df[i] = (*fi)[i-1]-(*fi)[i+1];
475  // }
476  // df[numx()-1] = 2.0*((*fi)[numx()-2]-(*fi)[numx()-1]);
477  // *fi = df;
478 
479  for(long i(0); i< long(numx())-2; ++i) {
480  (*fi)[i] -= (*fi)[i+2];
481  }
482 
483  for(long i(numx()-3); i>-1; --i) {
484  (*fi)[i+1] = (*fi)[i];
485  }
486  //--------------------------------------------------------//
487  //--------------------------------------------------------//
488  return *this;
489 }
size_t numx() const
Definition: state.h:197
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Dx() [4/4]

Field2D & Field2D::Dx ( )

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 556 of file state.cpp.

556  {
557 //--------------------------------------------------------------
558  *fi = (*fi).Dd1();
559  return *this;
560 }
Array2D< complex< double > > * fi
Definition: state.h:236
Array2D & Dd1()
Definition: lib-array.h:507

◆ Dy() [1/2]

SHarmonic2D & SHarmonic2D::Dy ( )

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 347 of file state.cpp.

References SHarmonic1D::sh.

347  {
348 
349  *sh = (*sh).Dd3(); // Worry about boundaries elsewhere
350  return *this;
351 }
Array3D< complex< double > > * sh
Definition: state.h:125
Array3D & Dd3()
Definition: lib-array.h:1348

◆ Dy() [2/2]

Field2D & Field2D::Dy ( )

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 562 of file state.cpp.

562  {
563 //--------------------------------------------------------------
564  *fi = (*fi).Dd2();
565  return *this;
566 }
Array2D< complex< double > > * fi
Definition: state.h:236
Array2D & Dd2()
Definition: lib-array.h:556

◆ EMF() [1/2]

EMF1D& State1D::EMF ( ) const
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 610 of file state.h.

Referenced by Electric_Field_Methods::Implicit_E_Field::advance(), Setup_Y::applyexternalfields(), Setup_Y::applytravelingwave(), Output_Data::Output_Preprocessor_1D::Bx(), Output_Data::Output_Preprocessor_1D::By(), Output_Data::Output_Preprocessor_1D::Bz(), Electric_Field_Methods::Current_xyz::calculate_J(), Output_Data::Output_Preprocessor_1D::Ex(), Output_Data::Output_Preprocessor_1D::Ey(), Output_Data::Output_Preprocessor_1D::Ez(), Setup_Y::initialize(), Node_ImplicitE_Communications::mirror_bound_Xleft(), Node_Communications::mirror_bound_Xleft(), Node_ImplicitE_Communications::mirror_bound_Xright(), Node_Communications::mirror_bound_Xright(), VlasovFunctor1D_explicitE::operator()(), Hydro_Functor::operator()(), VlasovFunctor1D_momentumpush::operator()(), VlasovFunctor1D_explicitE_implicitB::operator()(), VlasovFunctor1D_f1_explicitE::operator()(), VlasovFunctor1D_implicitE_p1::operator()(), VlasovFunctor1D_f1_explicitEB::operator()(), VlasovFunctor1D_f1_implicitE_p1::operator()(), VlasovFunctor1D_implicitE_p2::operator()(), VlasovFunctor1D_f1_implicitE_p2::operator()(), State1D::operator*=(), State1D::operator+=(), State1D::operator-=(), State1D::operator=(), Export_Files::Restart_Facility::Read(), Node_ImplicitE_Communications::Recv_from_left_X(), Node_Communications::Recv_from_left_X(), Node_ImplicitE_Communications::Recv_from_right_X(), Node_Communications::Recv_from_right_X(), Node_ImplicitE_Communications::sameNode_mirror_X(), Node_Communications::sameNode_mirror_X(), Node_ImplicitE_Communications::sameNode_periodic_X(), Node_Communications::sameNode_periodic_X(), Node_ImplicitE_Communications::Send_left_X(), Node_Communications::Send_left_X(), Node_ImplicitE_Communications::Send_right_X(), Node_Communications::Send_right_X(), State1D::State1D(), Fluid_Equation_1D::velocity(), and Export_Files::Restart_Facility::Write().

610 {return (*flds);}
EMF1D * flds
Definition: state.h:580
Here is the caller graph for this function:

◆ EMF() [2/2]

EMF2D& State2D::EMF ( ) const
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 664 of file state.h.

Referenced by State2D::operator*=(), State2D::operator+=(), State2D::operator-=(), State2D::operator=(), and State2D::State2D().

664 {return (*flds);}
EMF2D * flds
Definition: state.h:640
Here is the caller graph for this function:

◆ EMF1D() [1/2]

EMF1D::EMF1D ( size_t  nx)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 581 of file state.cpp.

581  {
582  fie = new vector<Field1D> (6,Field1D(nx));
583 
584 }
A 1D Field.
Definition: state.h:184
vector< Field1D > * fie
Definition: state.h:277

◆ EMF1D() [2/2]

EMF1D::EMF1D ( const EMF1D other)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 586 of file state.cpp.

References EMF1D::dim(), and SHarmonic1D::numx().

586  {
587  fie = new vector<Field1D>(6,Field1D(other(1).numx()));
588  for(int i=0; i < other.dim() ; ++i) (*fie)[i] = other(i);
589 }
A 1D Field.
Definition: state.h:184
size_t dim() const
Definition: state.h:286
vector< Field1D > * fie
Definition: state.h:277
Here is the call graph for this function:

◆ EMF2D() [1/2]

EMF2D::EMF2D ( size_t  nx,
size_t  ny 
)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 664 of file state.cpp.

664  {
665  fie = new vector<Field2D> (6,Field2D(nx,ny));
666 
667 }
A 2D Field.
Definition: state.h:233
vector< Field2D > * fie
Definition: state.h:329

◆ EMF2D() [2/2]

EMF2D::EMF2D ( const EMF2D other)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 669 of file state.cpp.

References EMF2D::dim(), and SHarmonic1D::numx().

669  {
670  fie = new vector<Field2D>(6,Field2D(other(1).numx(),other(1).numy()));
671  for(int i=0; i < other.dim() ; ++i) (*fie)[i] = other(i);
672 }
A 2D Field.
Definition: state.h:233
size_t dim() const
Definition: state.h:338
vector< Field2D > * fie
Definition: state.h:329
Here is the call graph for this function:

◆ Ex() [1/2]

◆ Ex() [2/2]

Field2D& EMF2D::Ex ( )
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 342 of file state.h.

342 {return (*fie)[0];}
vector< Field2D > * fie
Definition: state.h:329

◆ Ey() [1/2]

◆ Ey() [2/2]

Field2D& EMF2D::Ey ( )
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 343 of file state.h.

343 {return (*fie)[1];}
vector< Field2D > * fie
Definition: state.h:329

◆ Ez() [1/2]

◆ Ez() [2/2]

Field2D& EMF2D::Ez ( )
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 344 of file state.h.

344 {return (*fie)[2];}
vector< Field2D > * fie
Definition: state.h:329

◆ Field1D() [1/2]

Field1D::Field1D ( size_t  numx)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 377 of file state.cpp.

References SHarmonic1D::numx().

377  {
378  fi = new valarray<complex<double> >(numx);
379 }
size_t numx() const
Definition: state.h:197
valarray< complex< double > > * fi
Definition: state.h:187
Here is the call graph for this function:

◆ Field1D() [2/2]

Field1D::Field1D ( const Field1D other)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 381 of file state.cpp.

References Field1D::array(), and Field1D::numx().

381  {
382  fi = new valarray<complex<double> >(other.numx());
383  *fi = other.array();
384 }
size_t numx() const
Definition: state.h:197
valarray< complex< double > > & array() const
Definition: state.h:196
valarray< complex< double > > * fi
Definition: state.h:187
Here is the call graph for this function:

◆ Field2D() [1/2]

Field2D::Field2D ( size_t  numx,
size_t  numy 
)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 499 of file state.cpp.

References SHarmonic1D::numx().

499  {
501 }
Array2D< complex< double > > * fi
Definition: state.h:236
size_t numy() const
Definition: state.h:247
size_t numx() const
Definition: state.h:246
Here is the call graph for this function:

◆ Field2D() [2/2]

Field2D::Field2D ( const Field2D other)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 503 of file state.cpp.

References Field2D::array(), Field2D::numx(), and Field2D::numy().

503  {
504  fi = new Array2D < complex < double > >(other.numx(),other.numy());
505  *fi = other.array();
506 }
Array2D< complex< double > > * fi
Definition: state.h:236
Array2D< complex< double > > & array() const
Definition: state.h:245
size_t numy() const
Definition: state.h:247
size_t numx() const
Definition: state.h:246
Here is the call graph for this function:

◆ Fields() [1/2]

size_t State1D::Fields ( ) const
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 597 of file state.h.

References SHarmonic1D::checknan().

597 {return 6;}
Here is the call graph for this function:

◆ Fields() [2/2]

size_t State2D::Fields ( ) const
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 652 of file state.h.

652 {return 6;}

◆ Filterp() [1/3]

SHarmonic1D & SHarmonic1D::Filterp ( size_t  N)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 212 of file state.cpp.

References Array2D< T >::Filterd1(), and SHarmonic1D::sh.

Referenced by DistFunc1D::indx(), SHarmonic2D::operator()(), and SHarmonic1D::xVec().

212  {
213  *sh = (*sh).Filterd1(N);
214  return *this;
215 }
Array2D< complex< double > > * sh
Definition: state.h:60
Array2D & Filterd1(size_t N)
Definition: lib-array.h:604
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Filterp() [2/3]

SHarmonic2D & SHarmonic2D::Filterp ( size_t  N)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 364 of file state.cpp.

References Array2D< T >::Filterd1(), and SHarmonic1D::sh.

364  {
365  *sh = (*sh).Filterd1(N);
366  return *this;
367 }
Array3D< complex< double > > * sh
Definition: state.h:125
Array3D & Filterd1(size_t N)
Definition: lib-array.h:1361
Here is the call graph for this function:

◆ Filterp() [3/3]

◆ FLD() [1/2]

◆ FLD() [2/2]

Field2D& State2D::FLD ( size_t  ip) const
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 665 of file state.h.

References SHarmonic1D::operator*=(), SHarmonic1D::operator+=(), SHarmonic1D::operator-=(), and SHarmonic1D::operator=().

Referenced by State2D::State2D().

665 {return (*flds)(ip);}
EMF2D * flds
Definition: state.h:640
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getcurrent() [1/3]

valarray< double > DistFunc1D::getcurrent ( size_t  dir)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 965 of file state.cpp.

References DistFunc1D::charge, DistFunc1D::df, DistFunc1D::ma, Algorithms::MakeCAxis(), DistFunc1D::pmax(), and Algorithms::relativistic_invg_moment().

Referenced by Electric_Field_Methods::Current_xyz::calculate_J(), Current_1D::es1d(), and Current_1D::operator()().

965  {
966  // complex<double> ii(0.0,-1.0);
967  valarray<double> out((*df)[0].numx());
968 
969  // valarray<complex<double> > vr(Algorithms::MakeAxis(
970  // static_cast<complex<double> > (pmax()/(2.0*((*df)[0].nump()))),static_cast<complex<double> >(pmax()),(*df)[0].nump()
971  // ));
972 
973  valarray<complex<double> > vr(Algorithms::MakeCAxis(
974  static_cast<complex<double> > (0.0),static_cast<complex<double> >(pmax()),(*df)[0].nump()
975  ));
976 
977 
978  if (dir == 0)
979  {
980  for (size_t i(0); i<(*df)[0].numx();++i){
981  out[i] = (4.0/3.0*M_PI*charge/ma)*(Algorithms::relativistic_invg_moment((*df)[1].xVec(i),vr,3.0)).real();
982  }
983  }
984  else if (dir == 1)
985  {
986  for (size_t i(0); i<(*df)[0].numx();++i){
987  out[i] = (8.0/3.0*M_PI*charge/ma)*(Algorithms::relativistic_invg_moment((*df)[2].xVec(i),vr,3.0)).real();
988  }
989  }
990  else if (dir == 2)
991  {
992  for (size_t i(0); i<(*df)[0].numx();++i){
993  out[i] = (-8.0/3.0*M_PI*charge/ma)*(Algorithms::relativistic_invg_moment((*df)[2].xVec(i),vr,3.0)).imag();
994  }
995  }
996 
997  else
998  {
999  std::cout << "\n\n ERROR: Wrong current Direction \n\n ";
1000  exit(1);
1001  }
1002 
1003  return out;
1004 
1005 
1006 }
double charge
Definition: state.h:382
double ma
Definition: state.h:382
T relativistic_invg_moment(const vector< T > q, const valarray< T > x, const int p)
double pmax() const
Definition: state.h:398
vector< SHarmonic1D > * df
Definition: state.h:380
valarray< T > MakeCAxis(const T min, const T max, const size_t N)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getcurrent() [2/3]

valarray< double > DistFunc1D::getcurrent ( size_t  dir) const

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1008 of file state.cpp.

References DistFunc1D::charge, DistFunc1D::df, DistFunc1D::ma, Algorithms::MakeCAxis(), DistFunc1D::pmax(), and Algorithms::relativistic_invg_moment().

1008  {
1009  // complex<double> ii(0.0,-1.0);
1010  valarray<double> out((*df)[0].numx());
1011  // valarray<complex<double> > vr(Algorithms::MakeAxis(
1012  // static_cast<complex<double> > (pmax()/(2.0*((*df)[0].nump()))),static_cast<complex<double> >(pmax()),(*df)[0].nump()
1013  // ));
1014 
1015  valarray<complex<double> > vr(Algorithms::MakeCAxis(
1016  static_cast<complex<double> > (0.0),static_cast<complex<double> >(pmax()),(*df)[0].nump()
1017  ));
1018 
1019 
1020  if (dir == 0)
1021  {
1022  for (size_t i(0); i<(*df)[0].numx();++i){
1023  out[i] = (4.0/3.0*M_PI*charge/ma)*(Algorithms::relativistic_invg_moment((*df)[1].xVec(i),vr,3.0)).real();
1024  }
1025  }
1026  else if (dir == 1)
1027  {
1028  for (size_t i(0); i<(*df)[0].numx();++i){
1029  out[i] = (8.0/3.0*M_PI*charge/ma)*(Algorithms::relativistic_invg_moment((*df)[2].xVec(i),vr,3.0)).real();
1030  }
1031  }
1032  else if (dir == 2)
1033  {
1034  for (size_t i(0); i<(*df)[0].numx();++i){
1035  out[i] = (-8.0/3.0*M_PI*charge/ma)*(Algorithms::relativistic_invg_moment((*df)[2].xVec(i),vr,3.0)).imag();
1036  }
1037  }
1038 
1039  else
1040  {
1041  std::cout << "\n\n ERROR: Wrong current Direction \n\n ";
1042  exit(1);
1043  }
1044 
1045  return out;
1046 
1047 
1048 }
double charge
Definition: state.h:382
double ma
Definition: state.h:382
T relativistic_invg_moment(const vector< T > q, const valarray< T > x, const int p)
double pmax() const
Definition: state.h:398
vector< SHarmonic1D > * df
Definition: state.h:380
valarray< T > MakeCAxis(const T min, const T max, const size_t N)
Here is the call graph for this function:

◆ getcurrent() [3/3]

Array2D< double > DistFunc1D::getcurrent ( ) const

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1050 of file state.cpp.

References DistFunc1D::charge, DistFunc1D::df, DistFunc1D::ma, Algorithms::MakeCAxis(), DistFunc1D::pmax(), and Algorithms::relativistic_invg_moment().

1050  {
1051  // complex<double> ii(0.0,-1.0);
1052  Array2D<double> out(3,(*df)[0].numx());
1053 // valarray<complex<double> > vr(Algorithms::MakeAxis(
1054 // static_cast<complex<double> > (pmax()/(2.0*((*df)[0].nump())-1.0)),static_cast<complex<double> >(pmax()),(*df)[0].nump()
1055 // ));
1056 
1057  valarray<complex<double> > vr(Algorithms::MakeCAxis(
1058  static_cast<complex<double> > (0.0),static_cast<complex<double> >(pmax()),(*df)[0].nump()
1059  ));
1060 
1061  double current_c1(4.0/3.0*M_PI*charge/ma);
1062  double current_c2(2.0*current_c1);
1063  double current_c3(-1.0*current_c2);
1064 
1065  for (size_t i(0); i<(*df)[0].numx();++i){
1066  out(0,i) = (current_c1)*(Algorithms::relativistic_invg_moment((*df)[1].xVec(i),vr,3.0)).real();
1067 
1068  out(1,i) = (current_c2)*(Algorithms::relativistic_invg_moment((*df)[2].xVec(i),vr,3.0)).real();
1069 
1070  out(2,i) = (current_c3)*(Algorithms::relativistic_invg_moment((*df)[2].xVec(i),vr,3.0)).imag();
1071 
1072  }
1073 
1074  return out;
1075 
1076 
1077 }
double charge
Definition: state.h:382
double ma
Definition: state.h:382
T relativistic_invg_moment(const vector< T > q, const valarray< T > x, const int p)
double pmax() const
Definition: state.h:398
vector< SHarmonic1D > * df
Definition: state.h:380
valarray< T > MakeCAxis(const T min, const T max, const size_t N)
Here is the call graph for this function:

◆ getdensity()

valarray< double > DistFunc1D::getdensity ( )

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 945 of file state.cpp.

References DistFunc1D::df, Algorithms::MakeCAxis(), Algorithms::moment(), and DistFunc1D::pmax().

Referenced by Hydro_Functor::operator()().

945  {
946 
947  valarray<double> out((*df)[0].numx());
948 // valarray<complex<double> > vr(Algorithms::MakeAxis(
949 // static_cast<complex<double> > (pmax()/(2.0*((*df)[0].nump())-1.0)),static_cast<complex<double> >(pmax()),(*df)[0].nump()
950 // ));
951 
952  valarray<complex<double> > vr(Algorithms::MakeCAxis(
953  static_cast<complex<double> > (0.0),static_cast<complex<double> >(pmax()),(*df)[0].nump()
954  ));
955 
956  for (size_t i(0); i<(*df)[0].numx();++i){
957  out[i] = (4.0*M_PI*Algorithms::moment((*df)[0].xVec(i),vr,2.0)).real();
958  }
959 
960  return out;
961 }
double pmax() const
Definition: state.h:398
vector< SHarmonic1D > * df
Definition: state.h:380
valarray< T > MakeCAxis(const T min, const T max, const size_t N)
T moment(const vector< T > q, const vector< T > x, const int p)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getpressure()

valarray< double > DistFunc1D::getpressure ( )

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1081 of file state.cpp.

References DistFunc1D::df, DistFunc1D::ma, Algorithms::MakeCAxis(), Algorithms::moment(), and DistFunc1D::pmax().

Referenced by Hydro_Functor::operator()().

1081  {
1082 
1083  valarray<double> out((*df)[0].numx());
1084 // valarray<complex<double> > vr(Algorithms::MakeAxis(
1085 // static_cast<complex<double> > (pmax()/(2.0*((*df)[0].nump())-1.0)),static_cast<complex<double> >(pmax()),(*df)[0].nump()
1086 // ));
1087 
1088  valarray<complex<double> > vr(Algorithms::MakeCAxis(
1089  static_cast<complex<double> > (0.0),static_cast<complex<double> >(pmax()),(*df)[0].nump()
1090  ));
1091 
1092  for (size_t i(0); i<(*df)[0].numx();++i){
1093  out[i] = (4.0/3.0/ma*M_PI*Algorithms::moment((*df)[0].xVec(i),vr,4.0)).real();
1094  }
1095 
1096  return out;
1097 }
double ma
Definition: state.h:382
double pmax() const
Definition: state.h:398
vector< SHarmonic1D > * df
Definition: state.h:380
valarray< T > MakeCAxis(const T min, const T max, const size_t N)
T moment(const vector< T > q, const vector< T > x, const int p)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ HYDRO() [1/2]

◆ HYDRO() [2/2]

Hydro1D& State1D::HYDRO ( ) const
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 614 of file state.h.

References SHarmonic1D::operator*=(), SHarmonic1D::operator+=(), SHarmonic1D::operator-=(), and SHarmonic1D::operator=().

614 {return (*hydro);}
Hydro1D * hydro
Definition: state.h:581
Here is the call graph for this function:

◆ Hydro1D() [1/2]

Hydro1D::Hydro1D ( size_t  numx,
double  _mass,
double  _charge 
)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1337 of file state.cpp.

References Hydro1D::hn, Hydro1D::ht, Hydro1D::hvx, Hydro1D::hvy, Hydro1D::hvz, and Hydro1D::hz.

1337  : hydromass(_mass), hydrocharge(_charge) {
1338  hn = new valarray<double >(nx);
1339  hvx = new valarray<double >(nx);
1340  hvy = new valarray<double >(nx);
1341  hvz = new valarray<double >(nx);
1342  ht = new valarray<double >(nx);
1343  hz = new valarray<double >(nx);
1344 }
valarray< double > * hvz
Definition: state.h:510
double hydrocharge
Definition: state.h:512
valarray< double > * hvy
Definition: state.h:510
double hydromass
Definition: state.h:512
valarray< double > * hn
Definition: state.h:510
valarray< double > * ht
Definition: state.h:510
valarray< double > * hz
Definition: state.h:510
valarray< double > * hvx
Definition: state.h:510

◆ Hydro1D() [2/2]

Hydro1D::Hydro1D ( const Hydro1D other)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1346 of file state.cpp.

References Hydro1D::densityarray(), Hydro1D::hn, Hydro1D::ht, Hydro1D::hvx, Hydro1D::hvy, Hydro1D::hvz, Hydro1D::hz, Hydro1D::numx(), Hydro1D::temperaturearray(), Hydro1D::vxarray(), Hydro1D::vyarray(), Hydro1D::vzarray(), and Hydro1D::Zarray().

1346  {
1347  hn = new valarray<double >(other.numx());
1348  *hn = other.densityarray();
1349 
1350  hvx = new valarray<double >(other.numx());
1351  *hvx = other.vxarray();
1352 
1353  hvy = new valarray<double >(other.numx());
1354  *hvy = other.vyarray();
1355 
1356  hvz = new valarray<double >(other.numx());
1357  *hvz = other.vzarray();
1358 
1359  ht = new valarray<double >(other.numx());
1360  *ht = other.temperaturearray();
1361 
1362  hz = new valarray<double >(other.numx());
1363  *hz = other.Zarray();
1364 
1365 }
valarray< double > & temperaturearray() const
Definition: state.h:549
size_t numx() const
Definition: state.h:522
valarray< double > * hvz
Definition: state.h:510
valarray< double > * hvy
Definition: state.h:510
valarray< double > & vyarray() const
Definition: state.h:547
valarray< double > * hn
Definition: state.h:510
valarray< double > * ht
Definition: state.h:510
valarray< double > & Zarray() const
Definition: state.h:550
valarray< double > * hz
Definition: state.h:510
valarray< double > & densityarray() const
Definition: state.h:545
valarray< double > & vzarray() const
Definition: state.h:548
valarray< double > * hvx
Definition: state.h:510
valarray< double > & vxarray() const
Definition: state.h:546
Here is the call graph for this function:

◆ indx() [1/2]

Array2D<int> DistFunc1D::indx ( ) const
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 402 of file state.h.

References SHarmonic1D::checknan(), SHarmonic1D::Filterp(), SHarmonic1D::operator()(), SHarmonic1D::operator*=(), SHarmonic1D::operator+=(), SHarmonic1D::operator-=(), and SHarmonic1D::operator=().

Referenced by DistFunc1D::checknan().

402 {return ind;}
Array2D< int > ind
Definition: state.h:384
Here is the call graph for this function:
Here is the caller graph for this function:

◆ indx() [2/2]

Array2D<int> DistFunc2D::indx ( ) const
inlineprivate

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 458 of file state.h.

458 {return ind;}
Array2D< int > ind
Definition: state.h:457

◆ l0() [1/2]

◆ l0() [2/2]

size_t DistFunc2D::l0 ( ) const
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 471 of file state.h.

Referenced by DistFunc2D::DistFunc2D(), and State2D::State2D().

471 {return lmax; }
size_t lmax
Definition: state.h:453
Here is the caller graph for this function:

◆ ldim()

size_t DistFunc2D::ldim ( ) const
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 469 of file state.h.

Referenced by DistFunc2D::operator*=(), and DistFunc2D::operator=().

469 {return lmax+1;}
size_t lmax
Definition: state.h:453
Here is the caller graph for this function:

◆ m0() [1/2]

◆ m0() [2/2]

size_t DistFunc2D::m0 ( ) const
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 472 of file state.h.

Referenced by DistFunc2D::DistFunc2D(), and State2D::State2D().

472 {return mmax; }
size_t mmax
Definition: state.h:453
Here is the caller graph for this function:

◆ mass() [1/3]

◆ mass() [2/3]

double DistFunc2D::mass ( ) const
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 474 of file state.h.

References SHarmonic1D::operator()().

Referenced by State2D::State2D().

474 {return ma;}
double ma
Definition: state.h:454
Here is the call graph for this function:
Here is the caller graph for this function:

◆ mass() [3/3]

double Hydro1D::mass ( ) const
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 523 of file state.h.

Referenced by State1D::State1D(), and Fluid_Equation_1D::velocity().

523 {return hydromass;}
double hydromass
Definition: state.h:512
Here is the caller graph for this function:

◆ mdim()

size_t DistFunc2D::mdim ( ) const
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 470 of file state.h.

Referenced by DistFunc2D::operator*=(), and DistFunc2D::operator=().

470 {return mmax+1;}
size_t mmax
Definition: state.h:453
Here is the caller graph for this function:

◆ mpaxis() [1/2]

SHarmonic1D & SHarmonic1D::mpaxis ( const valarray< complex< double > > &  shmulti)

◆ mpaxis() [2/2]

SHarmonic2D & SHarmonic2D::mpaxis ( const valarray< complex< double > > &  shmulti)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 303 of file state.cpp.

303  {
304  (*sh).multid1(shmulti);
305  return *this;
306 }

◆ mxaxis() [1/2]

◆ mxaxis() [2/2]

SHarmonic2D & SHarmonic2D::mxaxis ( const valarray< complex< double > > &  shmulti)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 307 of file state.cpp.

307  {
308  (*sh).multid2(shmulti);
309  return *this;
310 }

◆ mxy_matrix()

SHarmonic2D & SHarmonic2D::mxy_matrix ( Array2D< complex< double > > &  shmultiM)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 352 of file state.cpp.

References SHarmonic1D::nump(), and SHarmonic1D::sh.

352  {
353  int st(0), nxt(nump());
354  for (int im(0); im < shmultiM.dim(); ++im) {
355  for (int ip(st); ip < nxt; ++ip)
356  (*sh)(ip) *= shmultiM(im);
357  st += nump(); nxt += nump();
358  }
359  return *this;
360 }
size_t dim() const
Definition: lib-array.h:288
size_t nump() const
Definition: state.h:136
Array3D< complex< double > > * sh
Definition: state.h:125
Here is the call graph for this function:

◆ myaxis()

SHarmonic2D & SHarmonic2D::myaxis ( const valarray< complex< double > > &  shmulti)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 311 of file state.cpp.

311  {
312  (*sh).multid3(shmulti);
313  return *this;
314 }

◆ nump() [1/2]

◆ nump() [2/2]

size_t SHarmonic2D::nump ( ) const
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 136 of file state.h.

Referenced by SHarmonic2D::SHarmonic2D().

136 {return (*sh).dim1();}
Here is the caller graph for this function:

◆ numx() [1/5]

◆ numx() [2/5]

size_t SHarmonic2D::numx ( ) const
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 137 of file state.h.

Referenced by SHarmonic2D::SHarmonic2D().

137 {return (*sh).dim2();}
Here is the caller graph for this function:

◆ numx() [3/5]

◆ numx() [4/5]

size_t Field2D::numx ( ) const
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 246 of file state.h.

Referenced by Field2D::Field2D(), and State2D::State2D().

246 {return (*fi).dim1();}
Here is the caller graph for this function:

◆ numx() [5/5]

size_t Hydro1D::numx ( ) const
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 522 of file state.h.

Referenced by Hydro1D::Hydro1D().

522 {return (*hn).size();}
Here is the caller graph for this function:

◆ numy() [1/2]

size_t SHarmonic2D::numy ( ) const
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 138 of file state.h.

Referenced by SHarmonic2D::SHarmonic2D().

138 {return (*sh).dim3();}
Here is the caller graph for this function:

◆ numy() [2/2]

size_t Field2D::numy ( ) const
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 247 of file state.h.

Referenced by Field2D::Field2D(), and State2D::State2D().

247 {return (*fi).dim2();}
Here is the caller graph for this function:

◆ operator()() [1/22]

complex<double>& SHarmonic1D::operator() ( size_t  i,
size_t  j 
)
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 75 of file state.h.

Referenced by DistFunc1D::indx(), and DistFunc2D::mass().

75 {return (*sh)(i,j);}
Array2D< complex< double > > * sh
Definition: state.h:60
Here is the caller graph for this function:

◆ operator()() [2/22]

complex<double> SHarmonic1D::operator() ( size_t  i,
size_t  j 
) const
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 76 of file state.h.

76 {return (*sh)(i,j);}
Array2D< complex< double > > * sh
Definition: state.h:60

◆ operator()() [3/22]

complex<double>& SHarmonic1D::operator() ( size_t  i)
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 77 of file state.h.

77 {return (*sh)(i);} //1D-style
Array2D< complex< double > > * sh
Definition: state.h:60

◆ operator()() [4/22]

complex<double> SHarmonic1D::operator() ( size_t  i) const
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 78 of file state.h.

78 {return (*sh)(i);} //1D-style
Array2D< complex< double > > * sh
Definition: state.h:60

◆ operator()() [5/22]

complex<double>& SHarmonic2D::operator() ( size_t  i,
size_t  j,
size_t  k 
)
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 141 of file state.h.

141 {return (*sh)(i,j,k);}
Array3D< complex< double > > * sh
Definition: state.h:125

◆ operator()() [6/22]

complex<double>& SHarmonic2D::operator() ( size_t  i)
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 142 of file state.h.

References SHarmonic1D::Dx(), SHarmonic1D::Filterp(), SHarmonic1D::mpaxis(), SHarmonic1D::mxaxis(), SHarmonic1D::operator*=(), SHarmonic1D::operator+=(), SHarmonic1D::operator-=(), and SHarmonic1D::operator=().

142 {return (*sh)(i);} //1D-style
Array3D< complex< double > > * sh
Definition: state.h:125
Here is the call graph for this function:

◆ operator()() [7/22]

complex<double>& Field1D::operator() ( size_t  i)
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 198 of file state.h.

198 { return (*fi)[i];} //1D-style
valarray< complex< double > > * fi
Definition: state.h:187

◆ operator()() [8/22]

complex<double> Field1D::operator() ( size_t  i) const
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 199 of file state.h.

References SHarmonic1D::Dx(), SHarmonic1D::operator*=(), SHarmonic1D::operator+=(), SHarmonic1D::operator-=(), SHarmonic1D::operator=(), and SHarmonic1D::Re().

199 {return (*fi)[i];}
valarray< complex< double > > * fi
Definition: state.h:187
Here is the call graph for this function:

◆ operator()() [9/22]

complex<double>& Field2D::operator() ( size_t  i,
size_t  j 
)
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 248 of file state.h.

248 {return (*fi)(i,j);} //Fortran-style
Array2D< complex< double > > * fi
Definition: state.h:236

◆ operator()() [10/22]

complex<double>& Field2D::operator() ( size_t  i)
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 249 of file state.h.

References SHarmonic1D::Dx(), SHarmonic1D::operator*=(), SHarmonic1D::operator+=(), SHarmonic1D::operator-=(), and SHarmonic1D::operator=().

249 {return (*fi)(i);} //1D-style
Array2D< complex< double > > * fi
Definition: state.h:236
Here is the call graph for this function:

◆ operator()() [11/22]

Field1D& EMF1D::operator() ( size_t  i)
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 287 of file state.h.

287 {return (*fie)[i];}
vector< Field1D > * fie
Definition: state.h:277

◆ operator()() [12/22]

Field1D EMF1D::operator() ( size_t  i) const
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 288 of file state.h.

288 {return (*fie)[i];}
vector< Field1D > * fie
Definition: state.h:277

◆ operator()() [13/22]

Field2D& EMF2D::operator() ( size_t  i)
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 339 of file state.h.

339 {return (*fie)[i];}
vector< Field2D > * fie
Definition: state.h:329

◆ operator()() [14/22]

Field2D EMF2D::operator() ( size_t  i) const
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 340 of file state.h.

340 {return (*fie)[i];}
vector< Field2D > * fie
Definition: state.h:329

◆ operator()() [15/22]

SHarmonic1D & DistFunc1D::operator() ( int  i)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 838 of file state.cpp.

References DistFunc1D::df.

838  {
839 // if ((l < 0) || (l> lmax)) return NULL;
840  return (*df)[size_t(i)];
841 }
vector< SHarmonic1D > * df
Definition: state.h:380

◆ operator()() [16/22]

SHarmonic1D & DistFunc1D::operator() ( int  i) const

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 843 of file state.cpp.

References DistFunc1D::df.

843  {
844 // if ((l < 0) || (l> lmax)) return NULL;
845  return (*df)[size_t(i)];
846 }
vector< SHarmonic1D > * df
Definition: state.h:380

◆ operator()() [17/22]

SHarmonic1D & DistFunc1D::operator() ( size_t  l,
size_t  m 
)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 848 of file state.cpp.

References DistFunc1D::df, and DistFunc1D::ind.

848  {
849 // if ((l < 0) || (l> lmax)) return NULL;
850  return (*df)[ind(l,m)];
851 }
vector< SHarmonic1D > * df
Definition: state.h:380
Array2D< int > ind
Definition: state.h:384

◆ operator()() [18/22]

SHarmonic1D & DistFunc1D::operator() ( size_t  l,
size_t  m 
) const

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 853 of file state.cpp.

References DistFunc1D::df, and DistFunc1D::ind.

853  {
854 // if ((l < 0) || (l> lmax)) return NULL;
855  return (*df)[ind(l,m)];
856 }
vector< SHarmonic1D > * df
Definition: state.h:380
Array2D< int > ind
Definition: state.h:384

◆ operator()() [19/22]

SHarmonic2D * DistFunc2D::operator() ( size_t  i)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1196 of file state.cpp.

1196  {
1197 
1198  return &((*df)[size_t(i)]);
1199 }

◆ operator()() [20/22]

SHarmonic2D * DistFunc2D::operator() ( size_t  i) const

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1206 of file state.cpp.

1206  {
1207  // if ((l < 0) || (l> lmax) || (m < 0) || (m > mmax)) return NULL;
1208  return &((*df)[size_t(i)]);
1209 }

◆ operator()() [21/22]

SHarmonic2D* DistFunc2D::operator() ( size_t  l,
size_t  m 
)
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 479 of file state.h.

479 {return &(*df)[ind(l,m)];}
Array2D< int > ind
Definition: state.h:457

◆ operator()() [22/22]

SHarmonic2D* DistFunc2D::operator() ( size_t  l,
size_t  m 
) const
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 480 of file state.h.

References SHarmonic1D::operator*=(), SHarmonic1D::operator+=(), SHarmonic1D::operator-=(), and SHarmonic1D::operator=().

480 {return &(*df)[ind(l,m)];} // Returns the address of a harmonic, NULL if out-of-bounds
Array2D< int > ind
Definition: state.h:457
Here is the call graph for this function:

◆ operator*=() [1/24]

SHarmonic1D & SHarmonic1D::operator*= ( const complex< double > &  d)

◆ operator*=() [2/24]

SHarmonic1D & SHarmonic1D::operator*= ( const SHarmonic1D shmulti)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 96 of file state.cpp.

References SHarmonic1D::array().

96  {
97  (*sh) *= shmulti.array();
98  return *this;
99 }
Array2D< complex< double > > & array() const
To retrieve the the array that stores the information.
Definition: state.h:69
Here is the call graph for this function:

◆ operator*=() [3/24]

SHarmonic2D & SHarmonic2D::operator*= ( const complex< double > &  d)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 273 of file state.cpp.

273  {
274  (*sh) *=d;
275  return *this;
276 }

◆ operator*=() [4/24]

SHarmonic2D & SHarmonic2D::operator*= ( const SHarmonic2D shmulti)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 277 of file state.cpp.

References SHarmonic2D::array().

277  {
278  (*sh) *= shmulti.array();
279  return *this;
280 }
Array3D< complex< double > > & array() const
Definition: state.h:134
Here is the call graph for this function:

◆ operator*=() [5/24]

Field1D & Field1D::operator*= ( const complex< double > &  d)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 409 of file state.cpp.

409  {
410  (*fi) *=d;
411  return *this;
412 }

◆ operator*=() [6/24]

Field1D & Field1D::operator*= ( const valarray< complex< double > > &  fimulti)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 413 of file state.cpp.

413  {
414  (*fi) *= fimulti;
415  return *this;
416 }

◆ operator*=() [7/24]

Field1D & Field1D::operator*= ( const Field1D fimulti)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 417 of file state.cpp.

References Field1D::array().

417  {
418  (*fi) *= fimulti.array();
419  return *this;
420 }
valarray< complex< double > > & array() const
Definition: state.h:196
Here is the call graph for this function:

◆ operator*=() [8/24]

Field2D & Field2D::operator*= ( const complex< double > &  d)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 527 of file state.cpp.

527  {
528  (*fi) *=d;
529  return *this;
530 }

◆ operator*=() [9/24]

Field2D & Field2D::operator*= ( const Field2D fimulti)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 532 of file state.cpp.

References Field2D::array().

532  {
533  (*fi) *= fimulti.array();
534  return *this;
535 }
Array2D< complex< double > > & array() const
Definition: state.h:245
Here is the call graph for this function:

◆ operator*=() [10/24]

EMF1D & EMF1D::operator*= ( const complex< double > &  d)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 620 of file state.cpp.

References SHarmonic1D::dim().

620  {
621  for(int i=0; i < dim() ; ++i)
622  (*fie)[i] *= d;
623  return *this;
624 }
size_t dim() const
Definition: state.h:286
vector< Field1D > * fie
Definition: state.h:277
Here is the call graph for this function:

◆ operator*=() [11/24]

EMF1D & EMF1D::operator*= ( const EMF1D other)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 625 of file state.cpp.

References SHarmonic1D::dim().

625  {
626  if (this != &other) { //self-assignment
627  for(int i=0; i < dim() ; ++i)
628  (*fie)[i] *= other(i);
629  }
630  return *this;
631 }
size_t dim() const
Definition: state.h:286
vector< Field1D > * fie
Definition: state.h:277
Here is the call graph for this function:

◆ operator*=() [12/24]

EMF2D & EMF2D::operator*= ( const complex< double > &  d)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 703 of file state.cpp.

References SHarmonic1D::dim().

703  {
704  for(int i=0; i < dim() ; ++i)
705  (*fie)[i] *= d;
706  return *this;
707 }
size_t dim() const
Definition: state.h:338
vector< Field2D > * fie
Definition: state.h:329
Here is the call graph for this function:

◆ operator*=() [13/24]

EMF2D & EMF2D::operator*= ( const EMF2D other)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 708 of file state.cpp.

References SHarmonic1D::dim().

708  {
709  if (this != &other) { //self-assignment
710  for(int i=0; i < dim() ; ++i)
711  (*fie)[i] *= other(i);
712  }
713  return *this;
714 }
size_t dim() const
Definition: state.h:338
vector< Field2D > * fie
Definition: state.h:329
Here is the call graph for this function:

◆ operator*=() [14/24]

DistFunc1D & DistFunc1D::operator*= ( const complex< double > &  d)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 889 of file state.cpp.

References DistFunc1D::dim().

889  {
890  for(size_t i(0); i < dim() ; ++i) {
891  (*df)[i] *= d;
892  }
893  return *this;
894 }
size_t dim() const
Definition: state.h:395
Here is the call graph for this function:

◆ operator*=() [15/24]

DistFunc1D & DistFunc1D::operator*= ( const DistFunc1D other)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 895 of file state.cpp.

References DistFunc1D::dim().

895  {
896  if (this != &other) { //self-assignment
897  for(size_t i(0); i < dim() ; ++i) {
898  (*df)[i] *= other(i);
899  }
900  }
901  return *this;
902 }
size_t dim() const
Definition: state.h:395
Here is the call graph for this function:

◆ operator*=() [16/24]

DistFunc2D & DistFunc2D::operator*= ( const complex< double > &  d)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1249 of file state.cpp.

References DistFunc2D::dim().

1249  {
1250  for(size_t i(0); i < dim() ; ++i) {
1251  (*df)[i] *= d;
1252  }
1253  return *this;
1254 }
size_t dim() const
Definition: state.h:468
Here is the call graph for this function:

◆ operator*=() [17/24]

DistFunc2D & DistFunc2D::operator*= ( const DistFunc2D other)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1255 of file state.cpp.

References DistFunc2D::ldim(), and DistFunc2D::mdim().

1255  {
1256  if (this != &other) { //self-assignment
1257  // for(size_t i(0); i < dim() ; ++i) {
1258  size_t i(0);
1259  for(size_t l(0); l < ldim() ; ++l)
1260  {
1261  for(size_t m(0); m < mdim() ; ++m)
1262  {
1263  (*df)[i] *= *(other(l,m));
1264  ++i;
1265  }
1266  }
1267  }
1268  return *this;
1269 }
size_t ldim() const
Definition: state.h:469
size_t mdim() const
Definition: state.h:470
Here is the call graph for this function:

◆ operator*=() [18/24]

Hydro1D & Hydro1D::operator*= ( const double &  d)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1409 of file state.cpp.

References Hydro1D::hn, Hydro1D::ht, Hydro1D::hvx, Hydro1D::hvy, Hydro1D::hvz, and Hydro1D::hz.

1409  {
1410  *hn *= d;
1411  *hvx *= d;
1412  *hvy *= d;
1413  *hvz *= d;
1414  *ht *= d;
1415  *hz *= d;
1416  return *this;
1417 }
valarray< double > * hvz
Definition: state.h:510
valarray< double > * hvy
Definition: state.h:510
valarray< double > * hn
Definition: state.h:510
valarray< double > * ht
Definition: state.h:510
valarray< double > * hz
Definition: state.h:510
valarray< double > * hvx
Definition: state.h:510

◆ operator*=() [19/24]

Hydro1D & Hydro1D::operator*= ( const valarray< double > &  other)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1418 of file state.cpp.

References Hydro1D::hn, Hydro1D::ht, Hydro1D::hvx, Hydro1D::hvy, Hydro1D::hvz, and Hydro1D::hz.

1418  {
1419  *hn *= other;
1420  *hvx *= other;
1421  *hvy *= other;
1422  *hvz *= other;
1423  *ht *= other;
1424  *hz *= other;
1425  return *this;
1426 }
valarray< double > * hvz
Definition: state.h:510
valarray< double > * hvy
Definition: state.h:510
valarray< double > * hn
Definition: state.h:510
valarray< double > * ht
Definition: state.h:510
valarray< double > * hz
Definition: state.h:510
valarray< double > * hvx
Definition: state.h:510

◆ operator*=() [20/24]

Hydro1D & Hydro1D::operator*= ( const Hydro1D other)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1427 of file state.cpp.

References Hydro1D::densityarray(), Hydro1D::hn, Hydro1D::ht, Hydro1D::hvx, Hydro1D::hvy, Hydro1D::hvz, Hydro1D::hz, Hydro1D::temperaturearray(), Hydro1D::vxarray(), Hydro1D::vyarray(), Hydro1D::vzarray(), and Hydro1D::Zarray().

1427  {
1428  if (this != &other) { //self-assignment
1429  *hn *= other.densityarray();
1430  *hvx *= other.vxarray();
1431  *hvy *= other.vyarray();
1432  *hvz *= other.vzarray();
1433  *ht *= other.temperaturearray();
1434  *hz *= other.Zarray();
1435 
1436  }
1437  return *this;
1438 }
valarray< double > & temperaturearray() const
Definition: state.h:549
valarray< double > * hvz
Definition: state.h:510
valarray< double > * hvy
Definition: state.h:510
valarray< double > & vyarray() const
Definition: state.h:547
valarray< double > * hn
Definition: state.h:510
valarray< double > * ht
Definition: state.h:510
valarray< double > & Zarray() const
Definition: state.h:550
valarray< double > * hz
Definition: state.h:510
valarray< double > & densityarray() const
Definition: state.h:545
valarray< double > & vzarray() const
Definition: state.h:548
valarray< double > * hvx
Definition: state.h:510
valarray< double > & vxarray() const
Definition: state.h:546
Here is the call graph for this function:

◆ operator*=() [21/24]

State1D & State1D::operator*= ( const State1D other)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1576 of file state.cpp.

References State1D::DF(), State1D::EMF(), State1D::flds, State1D::hydro, State1D::HYDRO(), and State1D::ns.

1576  {
1577  for(size_t s(0); s < ns; ++s){
1578  (*sp)[s] *= other.DF(s);
1579  }
1580  *flds *= other.EMF();
1581  *hydro *= other.HYDRO();
1582  return *this;
1583 }
EMF1D * flds
Definition: state.h:580
Hydro1D & HYDRO()
Definition: state.h:613
DistFunc1D & DF(size_t s)
Definition: state.h:602
size_t ns
Definition: state.h:586
Hydro1D * hydro
Definition: state.h:581
EMF1D & EMF() const
Definition: state.h:610
Here is the call graph for this function:

◆ operator*=() [22/24]

State1D & State1D::operator*= ( const complex< double > &  d)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1585 of file state.cpp.

References State1D::hydro, and State1D::ns.

1585  {
1586  for(size_t s(0); s < ns; ++s){
1587  (*sp)[s] *= d;
1588  }
1589  (*flds) *= d;
1590  *hydro *= d.real();
1591  return *this;
1592 }
size_t ns
Definition: state.h:586
Hydro1D * hydro
Definition: state.h:581

◆ operator*=() [23/24]

State2D & State2D::operator*= ( const State2D other)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1705 of file state.cpp.

References State2D::DF(), State2D::EMF(), State2D::flds, State2D::ns, and State2D::sp.

1705  {
1706  for(size_t s(0); s < ns; ++s) (*sp)[s] *= other.DF(s);
1707  *flds *= other.EMF();
1708  return *this;
1709 }
size_t ns
Definition: state.h:642
EMF2D & EMF() const
Definition: state.h:664
vector< DistFunc2D > * sp
Definition: state.h:639
DistFunc2D & DF(size_t s)
Definition: state.h:656
EMF2D * flds
Definition: state.h:640
Here is the call graph for this function:

◆ operator*=() [24/24]

State2D & State2D::operator*= ( const complex< double > &  d)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1711 of file state.cpp.

References State2D::flds, State2D::ns, and State2D::sp.

1711  {
1712  for(size_t s(0); s < ns; ++s) (*sp)[s] *= d;
1713  *flds *= d;
1714  return *this;
1715 }
size_t ns
Definition: state.h:642
vector< DistFunc2D > * sp
Definition: state.h:639
EMF2D * flds
Definition: state.h:640

◆ operator+=() [1/23]

SHarmonic1D & SHarmonic1D::operator+= ( const complex< double > &  d)

◆ operator+=() [2/23]

SHarmonic1D & SHarmonic1D::operator+= ( const SHarmonic1D shadd)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 105 of file state.cpp.

References SHarmonic1D::array().

105  {
106  (*sh) += shadd.array();
107  return *this;
108 }
Array2D< complex< double > > & array() const
To retrieve the the array that stores the information.
Definition: state.h:69
Here is the call graph for this function:

◆ operator+=() [3/23]

SHarmonic2D & SHarmonic2D::operator+= ( const complex< double > &  d)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 282 of file state.cpp.

282  {
283  (*sh) +=d;
284  return *this;
285 }

◆ operator+=() [4/23]

SHarmonic2D & SHarmonic2D::operator+= ( const SHarmonic2D shadd)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 286 of file state.cpp.

References SHarmonic2D::array().

286  {
287  (*sh) += shadd.array();
288  return *this;
289 }
Array3D< complex< double > > & array() const
Definition: state.h:134
Here is the call graph for this function:

◆ operator+=() [5/23]

Field1D & Field1D::operator+= ( const complex< double > &  d)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 422 of file state.cpp.

422  {
423  (*fi) +=d;
424  return *this;
425 }

◆ operator+=() [6/23]

Field1D & Field1D::operator+= ( const Field1D fiadd)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 426 of file state.cpp.

References Field1D::array().

426  {
427  (*fi) += fiadd.array();
428  return *this;
429 }
valarray< complex< double > > & array() const
Definition: state.h:196
Here is the call graph for this function:

◆ operator+=() [7/23]

Field2D & Field2D::operator+= ( const complex< double > &  d)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 537 of file state.cpp.

537  {
538  (*fi) +=d;
539  return *this;
540 }

◆ operator+=() [8/23]

Field2D & Field2D::operator+= ( const Field2D fiadd)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 541 of file state.cpp.

References Field2D::array().

541  {
542  (*fi) += fiadd.array();
543  return *this;
544 }
Array2D< complex< double > > & array() const
Definition: state.h:245
Here is the call graph for this function:

◆ operator+=() [9/23]

EMF1D & EMF1D::operator+= ( const complex< double > &  d)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 633 of file state.cpp.

References SHarmonic1D::dim().

633  {
634  for(int i=0; i < dim() ; ++i)
635  (*fie)[i] += d;
636  return *this;
637 }
size_t dim() const
Definition: state.h:286
vector< Field1D > * fie
Definition: state.h:277
Here is the call graph for this function:

◆ operator+=() [10/23]

EMF1D & EMF1D::operator+= ( const EMF1D other)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 638 of file state.cpp.

References SHarmonic1D::dim().

638  {
639  if (this != &other) { //self-assignment
640  for(int i=0; i < dim() ; ++i)
641  (*fie)[i] += other(i);
642  }
643  return *this;
644 }
size_t dim() const
Definition: state.h:286
vector< Field1D > * fie
Definition: state.h:277
Here is the call graph for this function:

◆ operator+=() [11/23]

EMF2D & EMF2D::operator+= ( const complex< double > &  d)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 716 of file state.cpp.

References SHarmonic1D::dim().

716  {
717  for(int i=0; i < dim() ; ++i)
718  (*fie)[i] += d;
719  return *this;
720 }
size_t dim() const
Definition: state.h:338
vector< Field2D > * fie
Definition: state.h:329
Here is the call graph for this function:

◆ operator+=() [12/23]

EMF2D & EMF2D::operator+= ( const EMF2D other)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 721 of file state.cpp.

References SHarmonic1D::dim().

721  {
722  if (this != &other) { //self-assignment
723  for(int i=0; i < dim() ; ++i)
724  (*fie)[i] += other(i);
725  }
726  return *this;
727 }
size_t dim() const
Definition: state.h:338
vector< Field2D > * fie
Definition: state.h:329
Here is the call graph for this function:

◆ operator+=() [13/23]

DistFunc1D & DistFunc1D::operator+= ( const complex< double > &  d)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 904 of file state.cpp.

References DistFunc1D::dim().

904  {
905  for(size_t i(0); i < dim() ; ++i) {
906  (*df)[i] += d;
907  }
908  return *this;
909 }
size_t dim() const
Definition: state.h:395
Here is the call graph for this function:

◆ operator+=() [14/23]

DistFunc1D & DistFunc1D::operator+= ( const DistFunc1D other)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 910 of file state.cpp.

References DistFunc1D::dim().

910  {
911  if (this != &other) { //self-assignment
912  for(size_t i(0); i < dim() ; ++i) {
913  (*df)[i] += other(i);
914  }
915  }
916  return *this;
917 }
size_t dim() const
Definition: state.h:395
Here is the call graph for this function:

◆ operator+=() [15/23]

DistFunc2D & DistFunc2D::operator+= ( const complex< double > &  d)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1271 of file state.cpp.

References DistFunc2D::dim().

1271  {
1272  for(size_t i(0); i < dim() ; ++i) {
1273  (*df)[i] += d;
1274  }
1275  return *this;
1276 }
size_t dim() const
Definition: state.h:468
Here is the call graph for this function:

◆ operator+=() [16/23]

DistFunc2D & DistFunc2D::operator+= ( const DistFunc2D other)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1277 of file state.cpp.

References DistFunc2D::dim().

1277  {
1278 // MORE L AND M STUFF TO CHECK AGAINST ORIGINAL
1279 // if (this != &other) //self-assignment
1280 // {
1281 // size_t i(0);
1282 // // for(size_t i(0); i < dim() ; ++i) {
1283 // for(size_t l(0); l < ldim() ; ++l)
1284 // {
1285 // for(size_t m(0); m < mdim() ; ++m)
1286 // {
1287 // (*df)[i] *= *(other(l,m));
1288 // ++i;
1289 // }
1290  if (this != &other) { //self-assignment
1291  for(size_t i(0); i < dim() ; ++i) {
1292  (*df)[i] += *(other(i));
1293  }
1294  }
1295  return *this;
1296 }
size_t dim() const
Definition: state.h:468
Here is the call graph for this function:

◆ operator+=() [17/23]

Hydro1D & Hydro1D::operator+= ( const double &  d)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1441 of file state.cpp.

References Hydro1D::hn, Hydro1D::ht, Hydro1D::hvx, Hydro1D::hvy, Hydro1D::hvz, and Hydro1D::hz.

1441  {
1442  *hn += d;
1443  *hvx += d;
1444  *hvy += d;
1445  *hvz += d;
1446  *ht += d;
1447  *hz += d;
1448 
1449  return *this;
1450 }
valarray< double > * hvz
Definition: state.h:510
valarray< double > * hvy
Definition: state.h:510
valarray< double > * hn
Definition: state.h:510
valarray< double > * ht
Definition: state.h:510
valarray< double > * hz
Definition: state.h:510
valarray< double > * hvx
Definition: state.h:510

◆ operator+=() [18/23]

Hydro1D & Hydro1D::operator+= ( const valarray< double > &  other)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1451 of file state.cpp.

References Hydro1D::hn, Hydro1D::ht, Hydro1D::hvx, Hydro1D::hvy, Hydro1D::hvz, and Hydro1D::hz.

1451  {
1452  *hn += other;
1453  *hvx += other;
1454  *hvy += other;
1455  *hvz += other;
1456  *ht += other;
1457  *hz += other;
1458  return *this;
1459 }
valarray< double > * hvz
Definition: state.h:510
valarray< double > * hvy
Definition: state.h:510
valarray< double > * hn
Definition: state.h:510
valarray< double > * ht
Definition: state.h:510
valarray< double > * hz
Definition: state.h:510
valarray< double > * hvx
Definition: state.h:510

◆ operator+=() [19/23]

Hydro1D & Hydro1D::operator+= ( const Hydro1D other)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1460 of file state.cpp.

References Hydro1D::densityarray(), Hydro1D::hn, Hydro1D::ht, Hydro1D::hvx, Hydro1D::hvy, Hydro1D::hvz, Hydro1D::hz, Hydro1D::temperaturearray(), Hydro1D::vxarray(), Hydro1D::vyarray(), Hydro1D::vzarray(), and Hydro1D::Zarray().

1460  {
1461  if (this != &other) { //self-assignment
1462  *hn += other.densityarray();
1463  *hvx += other.vxarray();
1464  *hvy += other.vyarray();
1465  *hvz += other.vzarray();
1466  *ht += other.temperaturearray();
1467  *hz += other.Zarray();
1468 
1469  }
1470  return *this;
1471 }
valarray< double > & temperaturearray() const
Definition: state.h:549
valarray< double > * hvz
Definition: state.h:510
valarray< double > * hvy
Definition: state.h:510
valarray< double > & vyarray() const
Definition: state.h:547
valarray< double > * hn
Definition: state.h:510
valarray< double > * ht
Definition: state.h:510
valarray< double > & Zarray() const
Definition: state.h:550
valarray< double > * hz
Definition: state.h:510
valarray< double > & densityarray() const
Definition: state.h:545
valarray< double > & vzarray() const
Definition: state.h:548
valarray< double > * hvx
Definition: state.h:510
valarray< double > & vxarray() const
Definition: state.h:546
Here is the call graph for this function:

◆ operator+=() [20/23]

State1D & State1D::operator+= ( const State1D other)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1594 of file state.cpp.

References State1D::DF(), State1D::EMF(), State1D::flds, State1D::hydro, State1D::HYDRO(), and State1D::ns.

1594  {
1595  for(size_t s(0); s < ns; ++s){
1596  (*sp)[s] += other.DF(s);
1597  }
1598  *flds += other.EMF();
1599  *hydro += other.HYDRO();
1600  return *this;
1601 }
EMF1D * flds
Definition: state.h:580
Hydro1D & HYDRO()
Definition: state.h:613
DistFunc1D & DF(size_t s)
Definition: state.h:602
size_t ns
Definition: state.h:586
Hydro1D * hydro
Definition: state.h:581
EMF1D & EMF() const
Definition: state.h:610
Here is the call graph for this function:

◆ operator+=() [21/23]

State1D & State1D::operator+= ( const complex< double > &  d)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1603 of file state.cpp.

References State1D::hydro, and State1D::ns.

1603  {
1604  for(size_t s(0); s < ns; ++s){
1605  (*sp)[s] += d;
1606  }
1607  (*flds) += d;
1608  *hydro += d.real();
1609  return *this;
1610 }
size_t ns
Definition: state.h:586
Hydro1D * hydro
Definition: state.h:581

◆ operator+=() [22/23]

State2D & State2D::operator+= ( const State2D other)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1717 of file state.cpp.

References State2D::DF(), State2D::EMF(), State2D::flds, State2D::ns, and State2D::sp.

1717  {
1718  for(size_t s(0); s < ns; ++s) (*sp)[s] += other.DF(s);
1719  *flds += other.EMF();
1720  return *this;
1721 }
size_t ns
Definition: state.h:642
EMF2D & EMF() const
Definition: state.h:664
vector< DistFunc2D > * sp
Definition: state.h:639
DistFunc2D & DF(size_t s)
Definition: state.h:656
EMF2D * flds
Definition: state.h:640
Here is the call graph for this function:

◆ operator+=() [23/23]

State2D & State2D::operator+= ( const complex< double > &  d)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1723 of file state.cpp.

References State2D::flds, State2D::ns, and State2D::sp.

1723  {
1724  for(size_t s(0); s < ns; ++s) (*sp)[s] += d;
1725  *flds += d;
1726  return *this;
1727 }
size_t ns
Definition: state.h:642
vector< DistFunc2D > * sp
Definition: state.h:639
EMF2D * flds
Definition: state.h:640

◆ operator-=() [1/23]

SHarmonic1D & SHarmonic1D::operator-= ( const complex< double > &  d)

◆ operator-=() [2/23]

SHarmonic1D & SHarmonic1D::operator-= ( const SHarmonic1D shmin)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 114 of file state.cpp.

References SHarmonic1D::array().

114  {
115  (*sh) -= shmin.array();
116  return *this;
117 }
Array2D< complex< double > > & array() const
To retrieve the the array that stores the information.
Definition: state.h:69
Here is the call graph for this function:

◆ operator-=() [3/23]

SHarmonic2D & SHarmonic2D::operator-= ( const complex< double > &  d)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 291 of file state.cpp.

291  {
292  (*sh) -=d;
293  return *this;
294 }

◆ operator-=() [4/23]

SHarmonic2D & SHarmonic2D::operator-= ( const SHarmonic2D shmin)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 295 of file state.cpp.

References SHarmonic2D::array().

295  {
296  (*sh) -= shmin.array();
297  return *this;
298 }
Array3D< complex< double > > & array() const
Definition: state.h:134
Here is the call graph for this function:

◆ operator-=() [5/23]

Field1D & Field1D::operator-= ( const complex< double > &  d)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 431 of file state.cpp.

431  {
432  (*fi) -=d;
433  return *this;
434 }

◆ operator-=() [6/23]

Field1D & Field1D::operator-= ( const Field1D fimin)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 435 of file state.cpp.

References Field1D::array().

435  {
436  (*fi) -= fimin.array();
437  return *this;
438 }
valarray< complex< double > > & array() const
Definition: state.h:196
Here is the call graph for this function:

◆ operator-=() [7/23]

Field2D & Field2D::operator-= ( const complex< double > &  d)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 546 of file state.cpp.

546  {
547  (*fi) -=d;
548  return *this;
549 }

◆ operator-=() [8/23]

Field2D & Field2D::operator-= ( const Field2D fimin)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 550 of file state.cpp.

References Field2D::array().

550  {
551  (*fi) -= fimin.array();
552  return *this;
553 }
Array2D< complex< double > > & array() const
Definition: state.h:245
Here is the call graph for this function:

◆ operator-=() [9/23]

EMF1D & EMF1D::operator-= ( const complex< double > &  d)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 646 of file state.cpp.

References SHarmonic1D::dim().

646  {
647  for(int i=0; i < dim() ; ++i)
648  (*fie)[i] -= d;
649  return *this;
650 }
size_t dim() const
Definition: state.h:286
vector< Field1D > * fie
Definition: state.h:277
Here is the call graph for this function:

◆ operator-=() [10/23]

EMF1D & EMF1D::operator-= ( const EMF1D other)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 651 of file state.cpp.

References SHarmonic1D::dim().

651  {
652  if (this != &other) { //self-assignment
653  for(int i=0; i < dim() ; ++i)
654  (*fie)[i] -= other(i);
655  }
656  return *this;
657 }
size_t dim() const
Definition: state.h:286
vector< Field1D > * fie
Definition: state.h:277
Here is the call graph for this function:

◆ operator-=() [11/23]

EMF2D & EMF2D::operator-= ( const complex< double > &  d)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 729 of file state.cpp.

References SHarmonic1D::dim().

729  {
730  for(int i=0; i < dim() ; ++i)
731  (*fie)[i] -= d;
732  return *this;
733 }
size_t dim() const
Definition: state.h:338
vector< Field2D > * fie
Definition: state.h:329
Here is the call graph for this function:

◆ operator-=() [12/23]

EMF2D & EMF2D::operator-= ( const EMF2D other)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 734 of file state.cpp.

References SHarmonic1D::dim().

734  {
735  if (this != &other) { //self-assignment
736  for(int i=0; i < dim() ; ++i)
737  (*fie)[i] -= other(i);
738  }
739  return *this;
740 }
size_t dim() const
Definition: state.h:338
vector< Field2D > * fie
Definition: state.h:329
Here is the call graph for this function:

◆ operator-=() [13/23]

DistFunc1D & DistFunc1D::operator-= ( const complex< double > &  d)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 919 of file state.cpp.

References DistFunc1D::dim().

919  {
920  for(size_t i(0); i < dim() ; ++i) {
921  (*df)[i] -= d;
922  }
923  return *this;
924 }
size_t dim() const
Definition: state.h:395
Here is the call graph for this function:

◆ operator-=() [14/23]

DistFunc1D & DistFunc1D::operator-= ( const DistFunc1D other)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 925 of file state.cpp.

References DistFunc1D::dim().

925  {
926  if (this != &other) { //self-assignment
927  for(size_t i(0); i < dim() ; ++i) {
928  (*df)[i] -= other(i);
929  }
930  }
931  return *this;
932 }
size_t dim() const
Definition: state.h:395
Here is the call graph for this function:

◆ operator-=() [15/23]

DistFunc2D & DistFunc2D::operator-= ( const complex< double > &  d)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1298 of file state.cpp.

References DistFunc2D::dim().

1298  {
1299  for(size_t i(0); i < dim() ; ++i) {
1300  (*df)[i] -= d;
1301  }
1302  return *this;
1303 }
size_t dim() const
Definition: state.h:468
Here is the call graph for this function:

◆ operator-=() [16/23]

DistFunc2D & DistFunc2D::operator-= ( const DistFunc2D other)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1304 of file state.cpp.

References DistFunc2D::dim().

1304  {
1305  if (this != &other) { //self-assignment
1306 // MORE L AND M STUFF TO CHECK AGAINST ORIGINAL
1307 // // for(size_t i(0); i < dim() ; ++i) {
1308 // size_t i(0);
1309 // for(size_t l(0); l < ldim() ; ++l)
1310 // {
1311 // for(size_t m(0); m < mdim() ; ++m)
1312 // {
1313 // (*df)[i] *= *(other(l,m));
1314 // ++i;
1315 // }
1316  for(size_t i(0); i < dim() ; ++i) {
1317  (*df)[i] -= *(other(i));
1318  }
1319  }
1320  return *this;
1321 }
size_t dim() const
Definition: state.h:468
Here is the call graph for this function:

◆ operator-=() [17/23]

Hydro1D & Hydro1D::operator-= ( const double &  d)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1474 of file state.cpp.

References Hydro1D::hn, Hydro1D::ht, Hydro1D::hvx, Hydro1D::hvy, Hydro1D::hvz, and Hydro1D::hz.

1474  {
1475  *hn -= d;
1476  *hvx -= d;
1477  *hvy -= d;
1478  *hvz -= d;
1479  *ht -= d;
1480  *hz -= d;
1481  return *this;
1482 }
valarray< double > * hvz
Definition: state.h:510
valarray< double > * hvy
Definition: state.h:510
valarray< double > * hn
Definition: state.h:510
valarray< double > * ht
Definition: state.h:510
valarray< double > * hz
Definition: state.h:510
valarray< double > * hvx
Definition: state.h:510

◆ operator-=() [18/23]

Hydro1D & Hydro1D::operator-= ( const valarray< double > &  other)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1483 of file state.cpp.

References Hydro1D::hn, Hydro1D::ht, Hydro1D::hvx, Hydro1D::hvy, Hydro1D::hvz, and Hydro1D::hz.

1483  {
1484  *hn -= other;
1485  *hvx -= other;
1486  *hvy -= other;
1487  *hvz -= other;
1488  *ht -= other;
1489  *hz -= other;
1490 
1491  return *this;
1492 }
valarray< double > * hvz
Definition: state.h:510
valarray< double > * hvy
Definition: state.h:510
valarray< double > * hn
Definition: state.h:510
valarray< double > * ht
Definition: state.h:510
valarray< double > * hz
Definition: state.h:510
valarray< double > * hvx
Definition: state.h:510

◆ operator-=() [19/23]

Hydro1D & Hydro1D::operator-= ( const Hydro1D other)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1493 of file state.cpp.

References Hydro1D::densityarray(), Hydro1D::hn, Hydro1D::ht, Hydro1D::hvx, Hydro1D::hvy, Hydro1D::hvz, Hydro1D::hz, Hydro1D::temperaturearray(), Hydro1D::vxarray(), Hydro1D::vyarray(), Hydro1D::vzarray(), and Hydro1D::Zarray().

1493  {
1494  if (this != &other) { //self-assignment
1495  *hn -= other.densityarray();
1496  *hvx -= other.vxarray();
1497  *hvy -= other.vyarray();
1498  *hvz -= other.vzarray();
1499  *ht -= other.temperaturearray();
1500  *hz -= other.Zarray();
1501 
1502  }
1503  return *this;
1504 }
valarray< double > & temperaturearray() const
Definition: state.h:549
valarray< double > * hvz
Definition: state.h:510
valarray< double > * hvy
Definition: state.h:510
valarray< double > & vyarray() const
Definition: state.h:547
valarray< double > * hn
Definition: state.h:510
valarray< double > * ht
Definition: state.h:510
valarray< double > & Zarray() const
Definition: state.h:550
valarray< double > * hz
Definition: state.h:510
valarray< double > & densityarray() const
Definition: state.h:545
valarray< double > & vzarray() const
Definition: state.h:548
valarray< double > * hvx
Definition: state.h:510
valarray< double > & vxarray() const
Definition: state.h:546
Here is the call graph for this function:

◆ operator-=() [20/23]

State1D & State1D::operator-= ( const State1D other)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1612 of file state.cpp.

References State1D::DF(), State1D::EMF(), State1D::flds, State1D::hydro, State1D::HYDRO(), and State1D::ns.

1612  {
1613  for(size_t s(0); s < ns; ++s){
1614  (*sp)[s] -= other.DF(s);
1615  }
1616  *flds -= other.EMF();
1617  *hydro -= other.HYDRO();
1618  return *this;
1619 }
EMF1D * flds
Definition: state.h:580
Hydro1D & HYDRO()
Definition: state.h:613
DistFunc1D & DF(size_t s)
Definition: state.h:602
size_t ns
Definition: state.h:586
Hydro1D * hydro
Definition: state.h:581
EMF1D & EMF() const
Definition: state.h:610
Here is the call graph for this function:

◆ operator-=() [21/23]

State1D & State1D::operator-= ( const complex< double > &  d)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1621 of file state.cpp.

References State1D::hydro, and State1D::ns.

1621  {
1622  for(size_t s(0); s < ns; ++s){
1623  (*sp)[s] -= d;
1624  }
1625  (*flds) -= d;
1626  *hydro -= d.real();
1627  return *this;
1628 }
size_t ns
Definition: state.h:586
Hydro1D * hydro
Definition: state.h:581

◆ operator-=() [22/23]

State2D & State2D::operator-= ( const State2D other)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1729 of file state.cpp.

References State2D::DF(), State2D::EMF(), State2D::flds, State2D::ns, and State2D::sp.

1729  {
1730  for(size_t s(0); s < ns; ++s) (*sp)[s] -= other.DF(s);
1731  *flds -= other.EMF();
1732  return *this;
1733 }
size_t ns
Definition: state.h:642
EMF2D & EMF() const
Definition: state.h:664
vector< DistFunc2D > * sp
Definition: state.h:639
DistFunc2D & DF(size_t s)
Definition: state.h:656
EMF2D * flds
Definition: state.h:640
Here is the call graph for this function:

◆ operator-=() [23/23]

State2D & State2D::operator-= ( const complex< double > &  d)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1735 of file state.cpp.

References State2D::flds, State2D::ns, and State2D::sp.

1735  {
1736  for(size_t s(0); s < ns; ++s) (*sp)[s] -= d;
1737  *flds -= d;
1738  return *this;
1739 }
size_t ns
Definition: state.h:642
vector< DistFunc2D > * sp
Definition: state.h:639
EMF2D * flds
Definition: state.h:640

◆ operator=() [1/28]

SHarmonic1D & SHarmonic1D::operator= ( const complex< double > &  d)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 81 of file state.cpp.

References SHarmonic1D::sh.

Referenced by EMF1D::Bz(), EMF2D::Bz(), State2D::FLD(), State1D::HYDRO(), DistFunc1D::indx(), SHarmonic2D::operator()(), Field1D::operator()(), Field2D::operator()(), DistFunc2D::operator()(), SHarmonic1D::xVec(), and Hydro1D::Zarray().

81  {
82  *sh = d;
83  return *this;
84 }
Array2D< complex< double > > * sh
Definition: state.h:60
Here is the caller graph for this function:

◆ operator=() [2/28]

SHarmonic1D & SHarmonic1D::operator= ( const SHarmonic1D other)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 85 of file state.cpp.

References SHarmonic1D::array(), and SHarmonic1D::sh.

85  {
86  if (this != &other) { //self-assignment
87  *sh = other.array();
88  }
89  return *this;
90 }
Array2D< complex< double > > * sh
Definition: state.h:60
Array2D< complex< double > > & array() const
To retrieve the the array that stores the information.
Definition: state.h:69
Here is the call graph for this function:

◆ operator=() [3/28]

SHarmonic2D & SHarmonic2D::operator= ( const complex< double > &  d)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 262 of file state.cpp.

References SHarmonic1D::sh.

262  {
263  *sh = d;
264  return *this;
265 }
Array3D< complex< double > > * sh
Definition: state.h:125

◆ operator=() [4/28]

SHarmonic2D & SHarmonic2D::operator= ( const SHarmonic2D other)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 266 of file state.cpp.

References SHarmonic2D::array(), and SHarmonic1D::sh.

266  {
267  if (this != &other) { //self-assignment
268  *sh = other.array();
269  }
270  return *this;
271 }
Array3D< complex< double > > * sh
Definition: state.h:125
Array3D< complex< double > > & array() const
Definition: state.h:134
Here is the call graph for this function:

◆ operator=() [5/28]

Field1D & Field1D::operator= ( const complex< double > &  d)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 394 of file state.cpp.

394  {
395  *fi = d;
396  return *this;
397 }
valarray< complex< double > > * fi
Definition: state.h:187

◆ operator=() [6/28]

Field1D & Field1D::operator= ( const valarray< complex< double > > &  other)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 398 of file state.cpp.

398  {
399  *fi = other;
400  return *this;
401 }
valarray< complex< double > > * fi
Definition: state.h:187

◆ operator=() [7/28]

Field1D & Field1D::operator= ( const Field1D other)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 402 of file state.cpp.

References Field1D::array().

402  {
403  if (this != &other) { //self-assignment
404  *fi = other.array();
405  }
406  return *this;
407 }
valarray< complex< double > > & array() const
Definition: state.h:196
valarray< complex< double > > * fi
Definition: state.h:187
Here is the call graph for this function:

◆ operator=() [8/28]

Field2D & Field2D::operator= ( const complex< double > &  d)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 516 of file state.cpp.

516  {
517  *fi = d;
518  return *this;
519 }
Array2D< complex< double > > * fi
Definition: state.h:236

◆ operator=() [9/28]

Field2D & Field2D::operator= ( const Field2D other)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 520 of file state.cpp.

References Field2D::array().

520  {
521  if (this != &other) { //self-assignment
522  *fi = other.array();
523  }
524  return *this;
525 }
Array2D< complex< double > > * fi
Definition: state.h:236
Array2D< complex< double > > & array() const
Definition: state.h:245
Here is the call graph for this function:

◆ operator=() [10/28]

EMF1D & EMF1D::operator= ( const complex< double > &  d)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 599 of file state.cpp.

References SHarmonic1D::dim().

599  {
600  for(int i=0; i < dim() ; ++i)
601  (*fie)[i] = d;
602  return *this;
603 }
size_t dim() const
Definition: state.h:286
vector< Field1D > * fie
Definition: state.h:277
Here is the call graph for this function:

◆ operator=() [11/28]

EMF1D & EMF1D::operator= ( const Field1D h)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 604 of file state.cpp.

References SHarmonic1D::dim().

604  {
605  for(int i=0; i < dim() ; ++i){
606  if (&((*fie)[i]) != &h) { //self-assignment
607  (*fie)[i] = h;
608  }
609  }
610  return *this;
611 }
size_t dim() const
Definition: state.h:286
vector< Field1D > * fie
Definition: state.h:277
Here is the call graph for this function:

◆ operator=() [12/28]

EMF1D & EMF1D::operator= ( const EMF1D other)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 612 of file state.cpp.

References SHarmonic1D::dim().

612  {
613  if (this != &other) { //self-assignment
614  for(int i=0; i < dim() ; ++i)
615  (*fie)[i] = other(i);
616  }
617  return *this;
618 }
size_t dim() const
Definition: state.h:286
vector< Field1D > * fie
Definition: state.h:277
Here is the call graph for this function:

◆ operator=() [13/28]

EMF2D & EMF2D::operator= ( const complex< double > &  d)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 682 of file state.cpp.

References SHarmonic1D::dim().

682  {
683  for(int i=0; i < dim() ; ++i)
684  (*fie)[i] = d;
685  return *this;
686 }
size_t dim() const
Definition: state.h:338
vector< Field2D > * fie
Definition: state.h:329
Here is the call graph for this function:

◆ operator=() [14/28]

EMF2D & EMF2D::operator= ( const Field2D h)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 687 of file state.cpp.

References SHarmonic1D::dim().

687  {
688  for(int i=0; i < dim() ; ++i){
689  if (&((*fie)[i]) != &h) { //self-assignment
690  (*fie)[i] = h;
691  }
692  }
693  return *this;
694 }
size_t dim() const
Definition: state.h:338
vector< Field2D > * fie
Definition: state.h:329
Here is the call graph for this function:

◆ operator=() [15/28]

EMF2D & EMF2D::operator= ( const EMF2D other)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 695 of file state.cpp.

References SHarmonic1D::dim().

695  {
696  if (this != &other) { //self-assignment
697  for(int i=0; i < dim() ; ++i)
698  (*fie)[i] = other(i);
699  }
700  return *this;
701 }
size_t dim() const
Definition: state.h:338
vector< Field2D > * fie
Definition: state.h:329
Here is the call graph for this function:

◆ operator=() [16/28]

DistFunc1D & DistFunc1D::operator= ( const complex< double > &  d)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 866 of file state.cpp.

References DistFunc1D::dim().

866  {
867  for(size_t i(0); i < dim() ; ++i){
868  (*df)[i] = d;
869  }
870  return *this;
871 }
size_t dim() const
Definition: state.h:395
Here is the call graph for this function:

◆ operator=() [17/28]

DistFunc1D & DistFunc1D::operator= ( const SHarmonic1D h)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 872 of file state.cpp.

References DistFunc1D::df, and DistFunc1D::dim().

872  {
873  for(size_t i(0); i < dim() ; ++i){
874  if (&((*df)[i]) != &h) { //self-assignment
875  (*df)[i] = h;
876  }
877  }
878  return *this;
879 }
size_t dim() const
Definition: state.h:395
vector< SHarmonic1D > * df
Definition: state.h:380
Here is the call graph for this function:

◆ operator=() [18/28]

DistFunc1D & DistFunc1D::operator= ( const DistFunc1D other)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 880 of file state.cpp.

References DistFunc1D::dim().

880  {
881  if (this != &other) { //self-assignment
882  for(size_t i(0); i < dim() ; ++i) {
883  (*df)[i] = other(i);
884  }
885  }
886  return *this;
887 }
size_t dim() const
Definition: state.h:395
Here is the call graph for this function:

◆ operator=() [19/28]

DistFunc2D & DistFunc2D::operator= ( const complex< double > &  d)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1219 of file state.cpp.

References DistFunc2D::dim().

1219  {
1220  for(size_t i(0); i < dim() ; ++i){
1221  (*df)[i] = d;
1222  }
1223  return *this;
1224 }
size_t dim() const
Definition: state.h:468
Here is the call graph for this function:

◆ operator=() [20/28]

DistFunc2D & DistFunc2D::operator= ( const SHarmonic2D h)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1225 of file state.cpp.

References DistFunc2D::df, and DistFunc2D::dim().

1225  {
1226  for(size_t i(0); i < dim() ; ++i){
1227  if (&((*df)[i]) != &h) { //self-assignment
1228  (*df)[i] = h;
1229  }
1230  }
1231  return *this;
1232 }
size_t dim() const
Definition: state.h:468
vector< SHarmonic2D > * df
Definition: state.h:452
Here is the call graph for this function:

◆ operator=() [21/28]

DistFunc2D & DistFunc2D::operator= ( const DistFunc2D other)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1233 of file state.cpp.

References DistFunc2D::ldim(), and DistFunc2D::mdim().

1233  {
1234  if (this != &other) { //self-assignment
1235  // for(size_t i(0); i < dim() ; ++i) {
1236  size_t i(0);
1237  for(size_t l(0); l < ldim() ; ++l)
1238  {
1239  for(size_t m(0); m < mdim() ; ++m)
1240  {
1241  (*df)[i] = *(other(l,m));
1242  ++i;
1243  }
1244  }
1245  }
1246  return *this;
1247 }
size_t ldim() const
Definition: state.h:469
size_t mdim() const
Definition: state.h:470
Here is the call graph for this function:

◆ operator=() [22/28]

Hydro1D & Hydro1D::operator= ( const double &  d)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1377 of file state.cpp.

References Hydro1D::hn, Hydro1D::ht, Hydro1D::hvx, Hydro1D::hvy, Hydro1D::hvz, and Hydro1D::hz.

1377  {
1378  *hn = d;
1379  *hvx = d;
1380  *hvy = d;
1381  *hvz = d;
1382  *ht = d;
1383  *hz = d;
1384  return *this;
1385 }
valarray< double > * hvz
Definition: state.h:510
valarray< double > * hvy
Definition: state.h:510
valarray< double > * hn
Definition: state.h:510
valarray< double > * ht
Definition: state.h:510
valarray< double > * hz
Definition: state.h:510
valarray< double > * hvx
Definition: state.h:510

◆ operator=() [23/28]

Hydro1D & Hydro1D::operator= ( const valarray< double > &  other)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1386 of file state.cpp.

References Hydro1D::hn, Hydro1D::ht, Hydro1D::hvx, Hydro1D::hvy, Hydro1D::hvz, and Hydro1D::hz.

1386  {
1387  *hn = other;
1388  *hvx = other;
1389  *hvy = other;
1390  *hvz = other;
1391  *ht = other;
1392  *hz = other;
1393  return *this;
1394 }
valarray< double > * hvz
Definition: state.h:510
valarray< double > * hvy
Definition: state.h:510
valarray< double > * hn
Definition: state.h:510
valarray< double > * ht
Definition: state.h:510
valarray< double > * hz
Definition: state.h:510
valarray< double > * hvx
Definition: state.h:510

◆ operator=() [24/28]

Hydro1D & Hydro1D::operator= ( const Hydro1D other)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1395 of file state.cpp.

References Hydro1D::densityarray(), Hydro1D::hn, Hydro1D::ht, Hydro1D::hvx, Hydro1D::hvy, Hydro1D::hvz, Hydro1D::hz, Hydro1D::temperaturearray(), Hydro1D::vxarray(), Hydro1D::vyarray(), Hydro1D::vzarray(), and Hydro1D::Zarray().

1395  {
1396 
1397  if (this != &other) { //self-assignment
1398  *hn = other.densityarray();
1399  *hvx = other.vxarray();
1400  *hvy = other.vyarray();
1401  *hvz = other.vzarray();
1402  *ht = other.temperaturearray();
1403  *hz = other.Zarray();
1404  }
1405  return *this;
1406 }
valarray< double > & temperaturearray() const
Definition: state.h:549
valarray< double > * hvz
Definition: state.h:510
valarray< double > * hvy
Definition: state.h:510
valarray< double > & vyarray() const
Definition: state.h:547
valarray< double > * hn
Definition: state.h:510
valarray< double > * ht
Definition: state.h:510
valarray< double > & Zarray() const
Definition: state.h:550
valarray< double > * hz
Definition: state.h:510
valarray< double > & densityarray() const
Definition: state.h:545
valarray< double > & vzarray() const
Definition: state.h:548
valarray< double > * hvx
Definition: state.h:510
valarray< double > & vxarray() const
Definition: state.h:546
Here is the call graph for this function:

◆ operator=() [25/28]

State1D & State1D::operator= ( const State1D other)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1554 of file state.cpp.

References State1D::DF(), State1D::EMF(), State1D::flds, State1D::hydro, State1D::HYDRO(), State1D::ns, and State1D::Species().

1554  {
1555  if (this != &other) { //self-assignment
1556  ns = other.Species();
1557  for(size_t s(0); s < ns; ++s){
1558  (*sp)[s] = other.DF(s);
1559  }
1560  *flds = other.EMF();
1561  *hydro = other.HYDRO();
1562 
1563  }
1564  return *this;
1565 }
EMF1D * flds
Definition: state.h:580
Hydro1D & HYDRO()
Definition: state.h:613
DistFunc1D & DF(size_t s)
Definition: state.h:602
size_t ns
Definition: state.h:586
Hydro1D * hydro
Definition: state.h:581
size_t Species() const
Definition: state.h:596
EMF1D & EMF() const
Definition: state.h:610
Here is the call graph for this function:

◆ operator=() [26/28]

State1D & State1D::operator= ( const complex< double > &  d)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1567 of file state.cpp.

References State1D::flds, State1D::hydro, and State1D::ns.

1567  {
1568  for(size_t s(0); s < ns; ++s){
1569  (*sp)[s] = d;
1570  }
1571  *flds = d;
1572  *hydro = d.real();
1573  return *this;
1574 }
EMF1D * flds
Definition: state.h:580
size_t ns
Definition: state.h:586
Hydro1D * hydro
Definition: state.h:581

◆ operator=() [27/28]

State2D & State2D::operator= ( const State2D other)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1689 of file state.cpp.

References State2D::DF(), State2D::EMF(), State2D::flds, and State2D::ns.

1689  {
1690  if (this != &other) { //self-assignment
1691  for(size_t s(0); s < ns; ++s){
1692  (*sp).push_back(other.DF(s));
1693  }
1694  *flds = other.EMF();
1695  }
1696  return *this;
1697 }
size_t ns
Definition: state.h:642
EMF2D & EMF() const
Definition: state.h:664
DistFunc2D & DF(size_t s)
Definition: state.h:656
EMF2D * flds
Definition: state.h:640
Here is the call graph for this function:

◆ operator=() [28/28]

State2D & State2D::operator= ( const complex< double > &  d)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1699 of file state.cpp.

References State2D::flds, State2D::ns, and State2D::sp.

1699  {
1700  for(size_t s(0); s < ns; ++s) (*sp)[s] = d;
1701  *flds = d;
1702  return *this;
1703 }
size_t ns
Definition: state.h:642
vector< DistFunc2D > * sp
Definition: state.h:639
EMF2D * flds
Definition: state.h:640

◆ pmax()

double DistFunc1D::pmax ( ) const
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 398 of file state.h.

Referenced by DistFunc1D::getcurrent(), DistFunc1D::getdensity(), and DistFunc1D::getpressure().

398 {return pmx; }
double pmx
Definition: state.h:382
Here is the caller graph for this function:

◆ q() [1/2]

◆ q() [2/2]

double DistFunc2D::q ( ) const
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 473 of file state.h.

Referenced by State2D::State2D().

473 {return charge;}
double charge
Definition: state.h:454
Here is the caller graph for this function:

◆ Re() [1/2]

◆ Re() [2/2]

Field1D & Field1D::Re ( )

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 441 of file state.cpp.

References SHarmonic1D::numx().

441  {
442 //--------------------------------------------------------------
443  for (int i(0); i < numx(); ++i) {
444  (*fi)[i] = (*fi)[i].real();
445  }
446  return *this;
447 }
size_t numx() const
Definition: state.h:197
Here is the call graph for this function:

◆ SH() [1/4]

SHarmonic1D& State1D::SH ( size_t  s,
size_t  lh,
size_t  mh 
)
inline

◆ SH() [2/4]

SHarmonic1D& State1D::SH ( size_t  s,
size_t  lh,
size_t  mh 
) const
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 606 of file state.h.

606 {return ((*sp)[s])(lh,mh);}
vector< DistFunc1D > * sp
Definition: state.h:579

◆ SH() [3/4]

SHarmonic2D& State2D::SH ( size_t  s,
size_t  lh,
size_t  mh 
)
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 659 of file state.h.

659 {return *(((*sp)[s])(lh,mh));} // Reference to spherical harmonic

◆ SH() [4/4]

SHarmonic2D& State2D::SH ( size_t  s,
size_t  lh,
size_t  mh 
) const
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 660 of file state.h.

660 {return *(((*sp)[s])(lh,mh));}

◆ SHarmonic1D() [1/2]

SHarmonic1D::SHarmonic1D ( size_t  nump,
size_t  numx 
)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

The constructor requires nump, and numx as inputs.

Definition at line 63 of file state.cpp.

References SHarmonic1D::nump(), SHarmonic1D::numx(), and SHarmonic1D::sh.

63  {
65 }
Array2D< complex< double > > * sh
Definition: state.h:60
size_t numx() const
Definition: state.h:72
size_t nump() const
Definition: state.h:71
Here is the call graph for this function:

◆ SHarmonic1D() [2/2]

SHarmonic1D::SHarmonic1D ( const SHarmonic1D other)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 67 of file state.cpp.

References SHarmonic1D::array(), SHarmonic1D::nump(), SHarmonic1D::numx(), and SHarmonic1D::sh.

67  {
68  sh = new Array2D<complex<double> >(other.nump(),other.numx());
69  *sh = other.array();
70 }
Array2D< complex< double > > * sh
Definition: state.h:60
size_t numx() const
Definition: state.h:72
size_t nump() const
Definition: state.h:71
Array2D< complex< double > > & array() const
To retrieve the the array that stores the information.
Definition: state.h:69
Here is the call graph for this function:

◆ SHarmonic2D() [1/2]

SHarmonic2D::SHarmonic2D ( size_t  nump,
size_t  numx,
size_t  numy 
)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 244 of file state.cpp.

References SHarmonic1D::nump(), SHarmonic1D::numx(), and SHarmonic1D::sh.

244  {
246 }
size_t nump() const
Definition: state.h:136
Array3D< complex< double > > * sh
Definition: state.h:125
size_t numy() const
Definition: state.h:138
size_t numx() const
Definition: state.h:137
Here is the call graph for this function:

◆ SHarmonic2D() [2/2]

SHarmonic2D::SHarmonic2D ( const SHarmonic2D other)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 248 of file state.cpp.

References SHarmonic2D::array(), SHarmonic2D::nump(), SHarmonic2D::numx(), SHarmonic2D::numy(), and SHarmonic1D::sh.

248  {
249  sh = new Array3D < complex <double> >(other.nump(),other.numx(),other.numy());
250  *sh = other.array();
251 }
size_t nump() const
Definition: state.h:136
Array3D< complex< double > > * sh
Definition: state.h:125
size_t numy() const
Definition: state.h:138
Array3D< complex< double > > & array() const
Definition: state.h:134
size_t numx() const
Definition: state.h:137
Here is the call graph for this function:

◆ SHp() [1/2]

SHarmonic2D* State2D::SHp ( size_t  s,
size_t  lh,
size_t  mh 
)
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 661 of file state.h.

661 {return ((*sp)[s])(lh,mh); } // Pointer to spherical harmonic
vector< DistFunc2D > * sp
Definition: state.h:639

◆ SHp() [2/2]

SHarmonic2D* State2D::SHp ( size_t  s,
size_t  lh,
size_t  mh 
) const
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 662 of file state.h.

662 {return ((*sp)[s])(lh,mh); }
vector< DistFunc2D > * sp
Definition: state.h:639

◆ Species() [1/2]

size_t State1D::Species ( ) const
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 596 of file state.h.

Referenced by collisions::advance(), collisions::advancef0(), interspecies_collisions::advancef00(), collisions::advancef1(), collisions::advanceflm(), Electric_Field_Methods::Current_xyz::calculate_J(), collisions::collisions(), Output_Data::Output_Preprocessor_1D::f0(), Output_Data::Output_Preprocessor_1D::f10(), Output_Data::Output_Preprocessor_1D::f11(), Output_Data::Output_Preprocessor_1D::f20(), Output_Data::Output_Preprocessor_1D::fl0(), interspecies_collisions::interspecies_collisions(), Output_Data::Output_Preprocessor_1D::Jx(), Output_Data::Output_Preprocessor_1D::Jy(), Output_Data::Output_Preprocessor_1D::Jz(), Node_Communications::mirror_bound_Xleft(), Node_Communications::mirror_bound_Xright(), Output_Data::Output_Preprocessor_1D::n(), VlasovFunctor1D_explicitE::operator()(), VlasovFunctor1D_spatialpush::operator()(), VlasovFunctor1D_momentumpush::operator()(), VlasovFunctor1D_explicitE_implicitB::operator()(), VlasovFunctor1D_f1_explicitE::operator()(), VlasovFunctor1D_implicitE_p1::operator()(), VlasovFunctor1D_f1_explicitEB::operator()(), VlasovFunctor1D_implicitE_implicitB_p1::operator()(), VlasovFunctor1D_f1_implicitE_p1::operator()(), VlasovFunctor1D_implicitE_p2::operator()(), VlasovFunctor1D_f1_implicitEB_p1::operator()(), VlasovFunctor1D_f1_implicitE_p2::operator()(), State1D::operator=(), Output_Data::Output_Preprocessor_1D::px(), Output_Data::Output_Preprocessor_1D::Qx(), Output_Data::Output_Preprocessor_1D::Qy(), Output_Data::Output_Preprocessor_1D::Qz(), Export_Files::Restart_Facility::Read(), Node_Communications::Recv_from_left_X(), Node_Communications::Recv_from_right_X(), Node_Communications::sameNode_mirror_X(), Node_Communications::sameNode_periodic_X(), Node_Communications::Send_left_X(), Node_Communications::Send_right_X(), Output_Data::Output_Preprocessor_1D::T(), Output_Data::Output_Preprocessor_1D::vNx(), Output_Data::Output_Preprocessor_1D::vNy(), Output_Data::Output_Preprocessor_1D::vNz(), and Export_Files::Restart_Facility::Write().

596 {return ns;}
size_t ns
Definition: state.h:586
Here is the caller graph for this function:

◆ Species() [2/2]

size_t State2D::Species ( ) const
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 651 of file state.h.

651 {return ns;}
size_t ns
Definition: state.h:642

◆ State1D() [1/2]

State1D::State1D ( size_t  nx,
vector< size_t >  l0,
vector< size_t >  m0,
vector< size_t >  np,
vector< double >  pmax,
vector< double >  q,
vector< double >  ma,
double  hydromass,
double  hydrocharge 
)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1512 of file state.cpp.

References State1D::flds, State1D::hydro, State1D::ns, and State1D::sp.

1515  : ns(l0.size()) {
1516  if (ns != np.size()) {
1517  cout << "ERROR:Overdetermined number of species\n";
1518  exit(1);
1519  }
1520  sp = new vector<DistFunc1D>;
1521  for(size_t s(0); s < ns; ++s){
1522  (*sp).push_back(DistFunc1D(l0[s],m0[s],np[s],pmax[s],nx,q[s],ma[s]));
1523  }
1524  flds = new EMF1D(nx);
1525 
1526  hydro = new Hydro1D(nx,_hydromass,_hydrocharge);
1527 
1528 }
A Collection of relevant 1D Hydrodynamic Quantities.
Definition: state.h:507
EMF1D * flds
Definition: state.h:580
Definition: state.h:271
size_t ns
Definition: state.h:586
Hydro1D * hydro
Definition: state.h:581
vector< DistFunc1D > * sp
Definition: state.h:579
The 1D distribution function is the container for all SHarmonic1D per species.
Definition: state.h:376

◆ State1D() [2/2]

State1D::State1D ( const State1D other)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1531 of file state.cpp.

References Hydro1D::charge(), State1D::DF(), State1D::EMF(), State1D::FLD(), State1D::flds, State1D::hydro, State1D::HYDRO(), Hydro1D::mass(), State1D::ns, Field1D::numx(), and State1D::sp.

1532  : ns(other.Species()) {
1533  sp = new vector<DistFunc1D>;
1534  for(size_t s(0); s < ns; ++s){
1535  (*sp).push_back(DistFunc1D(other.DF(s)));
1536  }
1537  flds = new EMF1D(other.FLD(0).numx());
1538  *flds = other.EMF();
1539 
1540  hydro = new Hydro1D(other.FLD(0).numx(),other.HYDRO().mass(),other.HYDRO().charge());
1541  *hydro = other.HYDRO();
1542 }
size_t numx() const
Definition: state.h:197
A Collection of relevant 1D Hydrodynamic Quantities.
Definition: state.h:507
EMF1D * flds
Definition: state.h:580
Hydro1D & HYDRO()
Definition: state.h:613
double mass() const
Definition: state.h:523
DistFunc1D & DF(size_t s)
Definition: state.h:602
Definition: state.h:271
size_t ns
Definition: state.h:586
Field1D & FLD(size_t ip) const
Definition: state.h:611
Hydro1D * hydro
Definition: state.h:581
vector< DistFunc1D > * sp
Definition: state.h:579
size_t Species() const
Definition: state.h:596
double charge() const
Definition: state.h:524
The 1D distribution function is the container for all SHarmonic1D per species.
Definition: state.h:376
EMF1D & EMF() const
Definition: state.h:610
Here is the call graph for this function:

◆ State2D() [1/2]

State2D::State2D ( size_t  nx,
size_t  ny,
vector< size_t >  l0,
vector< size_t >  m0,
vector< size_t >  np,
vector< double >  q,
vector< double >  ma 
)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1654 of file state.cpp.

References State2D::flds, State2D::ns, and State2D::sp.

1655  : ns(l0.size()) {
1656  if (ns != np.size()) {
1657  cout << "ERROR:Overdetermined number of species\n";
1658  exit(1);
1659  }
1660  sp = new vector<DistFunc2D>;
1661  for(size_t s(0); s < ns; ++s){
1662  (*sp).push_back(DistFunc2D(l0[s],m0[s],np[s],nx,ny,q[s],ma[s]));
1663  }
1664  flds = new EMF2D(nx,ny);
1665 
1666 }
size_t ns
Definition: state.h:642
vector< DistFunc2D > * sp
Definition: state.h:639
EMF2D * flds
Definition: state.h:640
An EMF2D is the container for the 6 EM fields in a 2D-3P code.
Definition: state.h:326
The 2D distribution function is the container for all SHarmonic2D per species.
Definition: state.h:449

◆ State2D() [2/2]

State2D::State2D ( const State2D other)

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1669 of file state.cpp.

References State2D::DF(), State2D::EMF(), State2D::FLD(), State2D::flds, DistFunc2D::l0(), DistFunc2D::m0(), DistFunc2D::mass(), State2D::ns, Field2D::numx(), Field2D::numy(), DistFunc2D::q(), and State2D::sp.

1669  {
1670  sp = new vector<DistFunc2D>;
1671  for(size_t s(0); s < ns; ++s){
1672  (*sp).push_back(DistFunc2D(other.DF(s).l0(),other.DF(s).m0(),
1673  other.DF(s)(0,0)->nump(),other.FLD(0).numx(),other.FLD(0).numy(),
1674  other.DF(s).q(),other.DF(s).mass()));
1675  }
1676  flds = new EMF2D(other.FLD(0).numx(),other.FLD(0).numy());
1677  *flds = other.EMF();
1678 }
size_t ns
Definition: state.h:642
EMF2D & EMF() const
Definition: state.h:664
vector< DistFunc2D > * sp
Definition: state.h:639
DistFunc2D & DF(size_t s)
Definition: state.h:656
size_t m0() const
Definition: state.h:472
EMF2D * flds
Definition: state.h:640
Field2D & FLD(size_t ip) const
Definition: state.h:665
double q() const
Definition: state.h:473
size_t l0() const
Definition: state.h:471
An EMF2D is the container for the 6 EM fields in a 2D-3P code.
Definition: state.h:326
size_t numy() const
Definition: state.h:247
double mass() const
Definition: state.h:474
The 2D distribution function is the container for all SHarmonic2D per species.
Definition: state.h:449
size_t numx() const
Definition: state.h:246
Here is the call graph for this function:

◆ temperature() [1/2]

◆ temperature() [2/2]

double Hydro1D::temperature ( size_t  i) const
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 540 of file state.h.

540 {return (*ht)[i];}
valarray< double > * ht
Definition: state.h:510

◆ temperaturearray()

valarray<double >& Hydro1D::temperaturearray ( ) const
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 549 of file state.h.

Referenced by Hydro1D::Hydro1D(), Setup_Y::initialize(), Hydro1D::operator*=(), Hydro1D::operator+=(), Hydro1D::operator-=(), and Hydro1D::operator=().

549 {return (*ht);}
valarray< double > * ht
Definition: state.h:510
Here is the caller graph for this function:

◆ vx() [1/2]

◆ vx() [2/2]

double Hydro1D::vx ( size_t  i) const
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 531 of file state.h.

531 {return (*hvx)[i];}
valarray< double > * hvx
Definition: state.h:510

◆ vxarray()

valarray<double >& Hydro1D::vxarray ( ) const
inline

◆ vy() [1/2]

◆ vy() [2/2]

double Hydro1D::vy ( size_t  i) const
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 534 of file state.h.

534 {return (*hvy)[i];}
valarray< double > * hvy
Definition: state.h:510

◆ vyarray()

valarray<double >& Hydro1D::vyarray ( ) const
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 547 of file state.h.

Referenced by Hydro1D::Hydro1D(), Setup_Y::initialize(), Hydro1D::operator*=(), Hydro1D::operator+=(), Hydro1D::operator-=(), and Hydro1D::operator=().

547 {return (*hvy);}
valarray< double > * hvy
Definition: state.h:510
Here is the caller graph for this function:

◆ vz() [1/2]

◆ vz() [2/2]

double Hydro1D::vz ( size_t  i) const
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 537 of file state.h.

537 {return (*hvz)[i];}
valarray< double > * hvz
Definition: state.h:510

◆ vzarray()

valarray<double >& Hydro1D::vzarray ( ) const
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 548 of file state.h.

Referenced by Hydro1D::Hydro1D(), Setup_Y::initialize(), Hydro1D::operator*=(), Hydro1D::operator+=(), Hydro1D::operator-=(), and Hydro1D::operator=().

548 {return (*hvz);}
valarray< double > * hvz
Definition: state.h:510
Here is the caller graph for this function:

◆ xVec()

vector<complex<double> > SHarmonic1D::xVec ( size_t  j) const
inline

◆ Z() [1/2]

◆ Z() [2/2]

double Hydro1D::Z ( size_t  i) const
inline

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 543 of file state.h.

543 {return (*hz)[i];}
valarray< double > * hz
Definition: state.h:510

◆ Zarray()

valarray<double >& Hydro1D::Zarray ( ) const
inline

◆ ~DistFunc1D()

DistFunc1D::~DistFunc1D ( )

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 831 of file state.cpp.

References DistFunc1D::df.

831  {
832  delete df;
833 }
vector< SHarmonic1D > * df
Definition: state.h:380

◆ ~DistFunc2D()

DistFunc2D::~DistFunc2D ( )

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1183 of file state.cpp.

References DistFunc2D::df.

1183  {
1184  delete df;
1185 }
vector< SHarmonic2D > * df
Definition: state.h:452

◆ ~EMF1D()

EMF1D::~EMF1D ( )

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 591 of file state.cpp.

591  {
592  delete fie;
593 }
vector< Field1D > * fie
Definition: state.h:277

◆ ~EMF2D()

EMF2D::~EMF2D ( )

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 674 of file state.cpp.

674  {
675  delete fie;
676 }
vector< Field2D > * fie
Definition: state.h:329

◆ ~Field1D()

Field1D::~Field1D ( )

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 386 of file state.cpp.

386  {
387  delete fi;
388 }
valarray< complex< double > > * fi
Definition: state.h:187

◆ ~Field2D()

Field2D::~Field2D ( )

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 508 of file state.cpp.

508  {
509  delete fi;
510 }
Array2D< complex< double > > * fi
Definition: state.h:236

◆ ~Hydro1D()

Hydro1D::~Hydro1D ( )

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1367 of file state.cpp.

References Hydro1D::hn, Hydro1D::ht, Hydro1D::hvx, Hydro1D::hvy, Hydro1D::hvz, and Hydro1D::hz.

1367  {
1368  delete hn;
1369  delete hvx;
1370  delete hvy;
1371  delete hvz;
1372  delete ht;
1373  delete hz;
1374 }
valarray< double > * hvz
Definition: state.h:510
valarray< double > * hvy
Definition: state.h:510
valarray< double > * hn
Definition: state.h:510
valarray< double > * ht
Definition: state.h:510
valarray< double > * hz
Definition: state.h:510
valarray< double > * hvx
Definition: state.h:510

◆ ~SHarmonic1D()

SHarmonic1D::~SHarmonic1D ( )

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 72 of file state.cpp.

References SHarmonic1D::sh.

72  {
73  delete sh;
74 }
Array2D< complex< double > > * sh
Definition: state.h:60

◆ ~SHarmonic2D()

SHarmonic2D::~SHarmonic2D ( )

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 253 of file state.cpp.

References SHarmonic1D::sh.

253  {
254  delete sh;
255 }
Array3D< complex< double > > * sh
Definition: state.h:125

◆ ~State1D()

State1D::~State1D ( )

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1545 of file state.cpp.

References State1D::flds, State1D::hydro, and State1D::sp.

1545  {
1546  delete sp;
1547  delete flds;
1548  delete hydro;
1549 }
EMF1D * flds
Definition: state.h:580
Hydro1D * hydro
Definition: state.h:581
vector< DistFunc1D > * sp
Definition: state.h:579

◆ ~State2D()

State2D::~State2D ( )

#include </Users/archis/Dropbox/work/dev/oshun/oshun-OS/OSHUN/1d_cpp/source/state.h>

Definition at line 1681 of file state.cpp.

References State2D::flds, and State2D::sp.

1681  {
1682  delete sp;
1683  delete flds;
1684 }
vector< DistFunc2D > * sp
Definition: state.h:639
EMF2D * flds
Definition: state.h:640

Variable Documentation

◆ charge [1/2]

double DistFunc1D::charge
private

Definition at line 382 of file state.h.

Referenced by DistFunc1D::getcurrent().

◆ charge [2/2]

double DistFunc2D::charge
private

Definition at line 454 of file state.h.

◆ df [1/2]

◆ df [2/2]

vector<SHarmonic2D>* DistFunc2D::df
private

Definition at line 452 of file state.h.

Referenced by DistFunc2D::DistFunc2D(), DistFunc2D::operator=(), and DistFunc2D::~DistFunc2D().

◆ fi [1/2]

valarray<complex<double> >* Field1D::fi
private

Definition at line 187 of file state.h.

◆ fi [2/2]

Array2D< complex < double > >* Field2D::fi
private

Definition at line 236 of file state.h.

◆ fie [1/2]

vector<Field1D>* EMF1D::fie
private

Definition at line 277 of file state.h.

◆ fie [2/2]

vector<Field2D>* EMF2D::fie
private

Definition at line 329 of file state.h.

◆ filter_ceiling

valarray<int> DistFunc1D::filter_ceiling
private

Definition at line 385 of file state.h.

Referenced by DistFunc1D::DistFunc1D().

◆ flds [1/2]

◆ flds [2/2]

◆ hn

valarray<double>* Hydro1D::hn
private

◆ ht

valarray<double> * Hydro1D::ht
private

◆ hvx

valarray<double> * Hydro1D::hvx
private

◆ hvy

valarray<double> * Hydro1D::hvy
private

◆ hvz

valarray<double> * Hydro1D::hvz
private

◆ hydro

◆ hydrocharge

double Hydro1D::hydrocharge
private

Definition at line 512 of file state.h.

◆ hydromass

double Hydro1D::hydromass
private

Definition at line 512 of file state.h.

◆ hz

valarray<double> * Hydro1D::hz
private

◆ ind [1/2]

Array2D<int> DistFunc1D::ind
private

Definition at line 384 of file state.h.

Referenced by DistFunc1D::DistFunc1D(), and DistFunc1D::operator()().

◆ ind [2/2]

Array2D<int> DistFunc2D::ind
private

Definition at line 457 of file state.h.

Referenced by DistFunc2D::DistFunc2D().

◆ lmax [1/2]

size_t DistFunc1D::lmax
private

Definition at line 381 of file state.h.

Referenced by DistFunc1D::DistFunc1D().

◆ lmax [2/2]

size_t DistFunc2D::lmax
private

Definition at line 453 of file state.h.

Referenced by DistFunc2D::DistFunc2D().

◆ ma [1/2]

double DistFunc1D::ma
private

Definition at line 382 of file state.h.

Referenced by DistFunc1D::getcurrent(), and DistFunc1D::getpressure().

◆ ma [2/2]

double DistFunc2D::ma
private

Definition at line 454 of file state.h.

◆ mmax [1/2]

size_t DistFunc1D::mmax
private

Definition at line 381 of file state.h.

Referenced by DistFunc1D::DistFunc1D().

◆ mmax [2/2]

size_t DistFunc2D::mmax
private

Definition at line 453 of file state.h.

Referenced by DistFunc2D::DistFunc2D().

◆ ns [1/2]

size_t State1D::ns
private

◆ ns [2/2]

size_t State2D::ns
private

◆ pmx

double DistFunc1D::pmx
private

Definition at line 382 of file state.h.

◆ sh [1/2]

◆ sh [2/2]

Array3D<complex <double> >* SHarmonic2D::sh
private

Definition at line 125 of file state.h.

◆ sp [1/2]

vector<DistFunc1D>* State1D::sp
private

Definition at line 579 of file state.h.

Referenced by State1D::State1D(), and State1D::~State1D().

◆ sp [2/2]

◆ sz [1/2]

size_t DistFunc1D::sz
private

Definition at line 381 of file state.h.

Referenced by DistFunc1D::DistFunc1D().

◆ sz [2/2]

size_t DistFunc2D::sz
private

Definition at line 453 of file state.h.

Referenced by DistFunc2D::DistFunc2D().