XGCa
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
push.hpp
Go to the documentation of this file.
1 #ifndef PUSH_HPP
2 #define PUSH_HPP
3 
4 #include "sml.hpp"
5 #include "magnetic_field.hpp"
6 #include "grid.hpp"
7 #include "electric_field.hpp"
8 #include "plasma.hpp"
9 #include "perturbed_B_field.hpp"
10 #include "sort.hpp"
11 #include "pushe_diagnostics.hpp"
12 #include "sheath.hpp"
13 #include "neutrals.hpp"
14 #include "domain_decomposition.hpp"
15 
16 
17 template<KinType KT>
18 void templated_push(const int ipc,const bool diag_on, const Simulation<DeviceType> &sml, const Grid<DeviceType> &grid,
20  const ElectricField<DeviceType> &electric_field, const PerturbedBField<DeviceType> &perturbed_B_field,
21  const Sheath<DeviceType> &sheath, const SheathParticles<DeviceType> &sheath_particles,
22  const Neutrals<DeviceType> &neutrals, const SortViews<DeviceType> &sort_views, const Diagnostics<DeviceType> &diag,
23  const HeatDiagnostics<DeviceType> &heat_diag );
24 
25 void push(int ipc, int istep, int isp, bool diag_on, const Simulation<DeviceType> &sml, const Grid<DeviceType> &grid,
27  ElectricField<DeviceType> &electric_field, const PerturbedBField<DeviceType> &perturbed_B_field,
28  const Sheath<DeviceType> &sheath, SheathParticles<DeviceType> &sheath_particles,
29  const Neutrals<DeviceType> &neutrals, const SortViews<DeviceType> &sort_views, const Diagnostics<DeviceType> &diag,
30  const HeatDiagnostics<DeviceType> &heat_diag,
31  const DomainDecomposition<DeviceType> &pol_decomp );
32 
33 void push_all_species(int ipc, int istep, bool diag_on, const Simulation<DeviceType> &sml, const Grid<DeviceType> &grid,
35  ElectricField<DeviceType> &electric_field, const PerturbedBField<DeviceType> &perturbed_B_field,
36  const Sheath<DeviceType> &sheath, SheathParticles<DeviceType> &sheath_particles,
37  const Neutrals<DeviceType> &neutrals, const Diagnostics<DeviceType> &diag,
38  const HeatDiagnostics<DeviceType> &heat_diag,
39  const DomainDecomposition<DeviceType> &pol_decomp );
40 
42  const PerturbedBField<DeviceType> &perturbed_B_field, const Sheath<DeviceType> &sheath,
43  SheathParticles<DeviceType> &sheath_particles, const Neutrals<DeviceType> &neutrals, const Diagnostics<DeviceType> &diag,
44  const HeatDiagnostics<DeviceType> &heat_diag);
45 
47  const SheathParticles<DeviceType> &sheath_particles, const Neutrals<DeviceType> &neutrals, const Diagnostics<DeviceType> &diag,
48  const HeatDiagnostics<DeviceType> &heat_diag);
49 
50 void setup_sheath_mode_2(SheathParticles<DeviceType> &sheath_particles, int n_tmp);
51 
52 void copy_grid_fields_to_device(ElectricField<DeviceType> &electric_field, int isp, bool electron_on);
53 
54 #endif
void copy_push_requisites_to_device(const Simulation< DeviceType > &sml, const PerturbedBField< DeviceType > &perturbed_B_field, const Sheath< DeviceType > &sheath, SheathParticles< DeviceType > &sheath_particles, const Neutrals< DeviceType > &neutrals, const Diagnostics< DeviceType > &diag, const HeatDiagnostics< DeviceType > &heat_diag)
Definition: push.cpp:231
Definition: heat_diagnostics.hpp:14
Definition: perturbed_B_field.hpp:16
void push(int ipc, int istep, int isp, bool diag_on, const Simulation< DeviceType > &sml, const Grid< DeviceType > &grid, const MagneticField< DeviceType > &magnetic_field, Species< DeviceType > &species, TmpSpecies< DeviceType > &tmp_species, ElectricField< DeviceType > &electric_field, const PerturbedBField< DeviceType > &perturbed_B_field, const Sheath< DeviceType > &sheath, SheathParticles< DeviceType > &sheath_particles, const Neutrals< DeviceType > &neutrals, const SortViews< DeviceType > &sort_views, const Diagnostics< DeviceType > &diag, const HeatDiagnostics< DeviceType > &heat_diag, const DomainDecomposition< DeviceType > &pol_decomp)
Definition: push.cpp:110
Definition: sml.hpp:8
void templated_push(const int ipc, const bool diag_on, const Simulation< DeviceType > &sml, const Grid< DeviceType > &grid, const MagneticField< DeviceType > &magnetic_field, const Species< DeviceType > &species, const TmpSpecies< DeviceType > &tmp_species, const ElectricField< DeviceType > &electric_field, const PerturbedBField< DeviceType > &perturbed_B_field, const Sheath< DeviceType > &sheath, const SheathParticles< DeviceType > &sheath_particles, const Neutrals< DeviceType > &neutrals, const SortViews< DeviceType > &sort_views, const Diagnostics< DeviceType > &diag, const HeatDiagnostics< DeviceType > &heat_diag)
Definition: push.cpp:30
Definition: magnetic_field.hpp:9
Definition: electric_field.hpp:72
Definition: grid.hpp:10
void setup_sheath_mode_2(SheathParticles< DeviceType > &sheath_particles, int n_tmp)
Definition: push.cpp:224
Definition: sheath.hpp:16
Definition: neutrals.hpp:6
Definition: sort.hpp:9
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:1300
Definition: magnetic_field.F90:1
Definition: domain_decomposition.hpp:11
void copy_grid_fields_to_device(ElectricField< DeviceType > &electric_field, int isp, bool electron_on)
Definition: push.cpp:306
Definition: plasma.hpp:8
Definition: sheath.hpp:42
Definition: species.hpp:21
Definition: pushe_diagnostics.hpp:24
void push_all_species(int ipc, int istep, bool diag_on, const Simulation< DeviceType > &sml, const Grid< DeviceType > &grid, const MagneticField< DeviceType > &magnetic_field, Plasma &plasma, ElectricField< DeviceType > &electric_field, const PerturbedBField< DeviceType > &perturbed_B_field, const Sheath< DeviceType > &sheath, SheathParticles< DeviceType > &sheath_particles, const Neutrals< DeviceType > &neutrals, const Diagnostics< DeviceType > &diag, const HeatDiagnostics< DeviceType > &heat_diag, const DomainDecomposition< DeviceType > &pol_decomp)
Definition: push.cpp:405
void copy_push_updates_from_device(const Simulation< DeviceType > &sml, const Sheath< DeviceType > &sheath, const SheathParticles< DeviceType > &sheath_particles, const Neutrals< DeviceType > &neutrals, const Diagnostics< DeviceType > &diag, const HeatDiagnostics< DeviceType > &heat_diag)
Definition: push.cpp:323