OSHUN  beta
Arbitrary Order Spherical-Harmonic 1D-3P Vlasov-Fokker-Planck-Maxwell code
Output_Data::fx1_1D Class Reference

#include <export.h>

Public Member Functions

 fx1_1D (const Grid_Info &_G)
 
 fx1_1D (const fx1_1D &other)
 
 ~fx1_1D ()
 
Array2D< float > operator() (DistFunc1D &df, size_t l, size_t m, size_t x0, size_t s)
 
size_t Species () const
 
size_t Np (size_t s) const
 
float Pmin (size_t s) const
 
float Pmax (size_t s) const
 

Private Attributes

vector< float > pmin
 
vector< float > pmax
 
vector< float > nump
 

Detailed Description

Definition at line 373 of file export.h.

Constructor & Destructor Documentation

◆ fx1_1D() [1/2]

Output_Data::fx1_1D::fx1_1D ( const Grid_Info _G)

Definition at line 1093 of file export.cpp.

References Grid_Info::axis, Algorithms::AxisBundle< T >::Np(), Algorithms::AxisBundle< T >::pdim(), Algorithms::AxisBundle< T >::pmax(), and Algorithms::AxisBundle< T >::pmin().

1093  {
1094 
1095 // Generate the required structures
1096  for (size_t s(0); s < _G.axis.pdim(); ++s) {
1097  pmax.push_back( static_cast<float>(_G.axis.pmax(s)) );
1098  pmin.push_back( static_cast<float>(_G.axis.pmin(s)) );
1099  nump.push_back( static_cast<float>(_G.axis.Np(s)));
1100  // f0x1.push_back( valarray<float>( _G.axis.Npx(s)) );
1101  }
1102 // f0x1 = new valarray<float>(Npx);
1103 }
T pmin(size_t i) const
size_t Np(size_t i) const
vector< float > pmin
Definition: export.h:398
const Algorithms::AxisBundle< double > axis
Definition: setup.h:47
T pmax(size_t i) const
vector< float > nump
Definition: export.h:399
vector< float > pmax
Definition: export.h:398
Here is the call graph for this function:

◆ fx1_1D() [2/2]

Output_Data::fx1_1D::fx1_1D ( const fx1_1D other)

Definition at line 1106 of file export.cpp.

References Np(), Pmax(), Pmin(), and Species().

1106  {
1107 
1108  for (size_t s(0); s < other.Species(); ++s) {
1109  pmin.push_back( other.Pmin(s) );
1110  pmax.push_back( other.Pmax(s) );
1111  nump.push_back( other.Np(s));
1112  // fx1.push_back( other.f_x1(s) );
1113  }
1114 }
vector< float > pmin
Definition: export.h:398
vector< float > nump
Definition: export.h:399
vector< float > pmax
Definition: export.h:398
Here is the call graph for this function:

◆ ~fx1_1D()

Output_Data::fx1_1D::~fx1_1D ( )

Definition at line 1117 of file export.cpp.

1117  {
1118 
1119 }

Member Function Documentation

◆ Np()

size_t Output_Data::fx1_1D::Np ( size_t  s) const
inline

Definition at line 388 of file export.h.

Referenced by fx1_1D().

388 { return nump[s]; }
vector< float > nump
Definition: export.h:399
Here is the caller graph for this function:

◆ operator()()

Array2D< float > Output_Data::fx1_1D::operator() ( DistFunc1D df,
size_t  l,
size_t  m,
size_t  x0,
size_t  s 
)

Definition at line 1124 of file export.cpp.

1124  {
1125 
1126  // valarray<float> fx1(0.0,Npx(s)); // this is a valarray<float>
1127  Array2D<float> fx1(Np(s),2); // this is a valarray<float>//
1128 
1129  for (size_t ip(0); ip < Np(s); ++ip) {
1130  // At each location in |p|
1131  // fx1[0.5*(Npx(s)-1)+ip] = (float( (df(whichdist))(ip,x0).real() ));
1132  // fx1[0.5*(Npx(s)-1)-ip] = (float( (df(whichdist))(ip,x0).real() ));
1133 
1134  // fx1(0.5*(Npx(s)-1)+1+ip,1) = (float( (df(whichdist))(ip,x0).real() ));
1135  // fx1(0.5*(Npx(s)-1)-1-ip,1) = (float( (df(whichdist))(ip,x0).real() ));
1136 
1137  // fx1(0.5*(Npx(s)-1)+1+ip,2) = (float( (df(whichdist))(ip,x0).imag() ));
1138  // fx1(0.5*(Npx(s)-1)-1-ip,2) = (float( (df(whichdist))(ip,x0).imag() ));
1139  //
1140  fx1(ip,0) = (float( (df(l,m))(ip,x0).real() ));
1141  fx1(ip,1) = (float( (df(l,m))(ip,x0).imag() ));
1142 
1143  // std::cout << "fx1(" << ip << ") = " << (df(whichdist))(ip,x0).real() << "\n";
1144  // << fx1(0.5*(Npx(s)-1)+1+ip,1) << "," << fx1(0.5*(Npx(s)-1)+1+ip,2) << "\n";
1145  }
1146  // fx1[Npx(s)] = (float( (df(whichdist))(0,x0).real() ));
1147  // fx1(,1) = (float( (df(whichdist))(0,x0).real() ));
1148  // fx1(0.5*(Npx(s)-1),2) = (float( (df(whichdist))(0,x0).imag() ));
1149  return fx1;
1150 }
size_t Np(size_t s) const
Definition: export.h:388

◆ Pmax()

float Output_Data::fx1_1D::Pmax ( size_t  s) const
inline

Definition at line 390 of file export.h.

Referenced by fx1_1D().

390 { return pmax[s]; }
vector< float > pmax
Definition: export.h:398
Here is the caller graph for this function:

◆ Pmin()

float Output_Data::fx1_1D::Pmin ( size_t  s) const
inline

Definition at line 389 of file export.h.

Referenced by fx1_1D().

389 { return pmin[s]; }
vector< float > pmin
Definition: export.h:398
Here is the caller graph for this function:

◆ Species()

size_t Output_Data::fx1_1D::Species ( ) const
inline

Definition at line 386 of file export.h.

Referenced by fx1_1D().

386 { return nump.size(); }
vector< float > nump
Definition: export.h:399
Here is the caller graph for this function:

Field Documentation

◆ nump

vector<float> Output_Data::fx1_1D::nump
private

Definition at line 399 of file export.h.

◆ pmax

vector<float> Output_Data::fx1_1D::pmax
private

Definition at line 398 of file export.h.

◆ pmin

vector<float> Output_Data::fx1_1D::pmin
private

Definition at line 398 of file export.h.


The documentation for this class was generated from the following files: