#include "grid.hpp"
#include "globals.hpp"
Go to the source code of this file.
|
template<class Device , PhiInterpType PIT> |
KOKKOS_INLINE_FUNCTION void | add_loop_voltage (const PushControls &push_controls, const Grid< Device > &grid, const MagneticField< Device > &magnetic_field, const GridFieldPack< Device, PIT > &gfpack, const Species< Device > &species, const SimdParticles &part, const Simd< double > &B_mag, const Simd< double > &psi, SimdVector &efield, SimdGridWeights< Order::One, PIT > &grid_wts) |
|
template<class Device , PhiInterpType PIT>
KOKKOS_INLINE_FUNCTION void add_loop_voltage |
( |
const PushControls & |
push_controls, |
|
|
const Grid< Device > & |
grid, |
|
|
const MagneticField< Device > & |
magnetic_field, |
|
|
const GridFieldPack< Device, PIT > & |
gfpack, |
|
|
const Species< Device > & |
species, |
|
|
const SimdParticles & |
part, |
|
|
const Simd< double > & |
B_mag, |
|
|
const Simd< double > & |
psi, |
|
|
SimdVector & |
efield, |
|
|
SimdGridWeights< Order::One, PIT > & |
grid_wts |
|
) |
| |
Add electric force from loop voltage Loop voltage acts only on markers inside the LCFS and with velocity v<4*v_th
- Parameters
-
[in] | push_controls | general push settings (for the loop voltage settings) |
[in] | magnetic_field | the magnetic field |
[in] | species | the species |
[in] | part | the vector particles |
[in] | B_mag | the magnetic field magnitude |
[in] | psi | the psi value |
[in,out] | efield | the electric field to be updated |