XGC1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
diffusion.hpp
Go to the documentation of this file.
1 #ifndef DIFFUSION_HPP
2 #define DIFFUSION_HPP
3 
4 #include "sml.hpp"
5 #include "grid.hpp"
6 #include "magnetic_field.hpp"
7 #include "electric_field.hpp"
9 #include "velocity_grid.hpp"
10 #include "plasma.hpp"
11 #include "vgrid_distribution.hpp"
12 #include "source.hpp"
13 #include "diag_f0_df.hpp"
14 
15 extern "C" void initialize_diffusion(int* bd);
16 
17 class Diffusion : public Source{
20 
21  public:
22 
24 
26 
28  ElectricField<DeviceType>& electric_field,
29  const DomainDecomposition<DeviceType>& pol_decomp, const VelocityGrid& vgrid, Plasma& plasma,
30  DiagF0DF& diag_f0_df, const Moments& moments,
32  double dt);
33 };
34 
35 #endif
Definition: diag_f0_df.hpp:9
Definition: velocity_grid.hpp:8
Definition: sml.hpp:8
subroutine plasma(grid, itr, p, dene_out, deni_out, Te_out, Ti_out, Vparai_out)
Calculate the plasma density, temperature, and parallel velocity for a point in triangle itr using pl...
Definition: neutral_totalf.F90:1224
Definition: NamelistReader.hpp:193
Definition: magnetic_field.hpp:12
Definition: moments.hpp:9
Definition: electric_field.hpp:41
Definition: source.hpp:7
Definition: diffusion.hpp:17
void apply(const Simulation< DeviceType > &sml, const Grid< DeviceType > &grid, const MagneticField< DeviceType > &magnetic_field, ElectricField< DeviceType > &electric_field, const DomainDecomposition< DeviceType > &pol_decomp, const VelocityGrid &vgrid, Plasma &plasma, DiagF0DF &diag_f0_df, const Moments &moments, const VGridDistribution< DeviceType > &f0_f, VGridDistribution< HostType > &f0_df0g, double dt)
Definition: diffusion.cpp:588
double inner_psi_bound
Definition: diffusion.hpp:18
Definition: vgrid_distribution.hpp:18
Definition: magnetic_field.F90:1
Definition: plasma.hpp:13
subroutine initialize_diffusion(bd)
Definition: diffusion.F90:847
double outer_psi_bound
Definition: diffusion.hpp:19
Diffusion()
Definition: diffusion.hpp:23