XGCa
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions
em_push_physics.tpp File Reference
#include "globals.hpp"
#include "push_controls.hpp"
#include "magnetic_field.hpp"
#include "grid.hpp"
#include "particles.hpp"
#include "species.hpp"
#include "perturbed_B_field.hpp"
Include dependency graph for em_push_physics.tpp:

Functions

KOKKOS_INLINE_FUNCTION double get_denergy_dt_em (bool dwdt_exb_only, double mass, int i_simd, const SimdVector &bfield, const Simd< double > &f0flow, const Simd< double > &Epar_em, const double(&Bs)[3], double fr_pert, double fz_pert, double fp_pert, double fr2, double fz2, double fp2, double vp, double mu, double B, double c_m, double over_B, double over_B2, double dbdr, double dbdz, double dbdphi, double D)
 
KOKKOS_INLINE_FUNCTION double get_dweight (double dfdp, double gradpsi_r, double gradpsi_z, double yp_r, double yp_z, double dEdtT)
 
KOKKOS_INLINE_FUNCTION double get_dw1 (double mass, double charge, bool is_electron, bool dwdt_exb_only, bool dwdt_fix_bg, int i_simd, double w2, double r, const SimdVector &bfield, const SimdVector2D &gradpsi, const SimdVector &tdb, const SimdVector &efield, const Simd< double > &f0den, const Simd< double > &f0dden, const Simd< double > &f0tev, const Simd< double > &f0dtev, const Simd< double > &f0flow, const Simd< double > &f0dflow, const SimdVector &efield00, const Simd< double > &ddpotdt, const double(&yp_exb)[3], double rho, double vp, double mu, double B, double c_m, double over_B, double over_B2, double dbdr, double dbdz, double dbdphi, const double(&curl_B)[3], const double drift_on, double D, double yp_r, double yp_z, double yp_p)
 
KOKKOS_INLINE_FUNCTION double get_nb_curl_nb (double over_B2, const SimdVector &bfield, const SimdVector(&jacb)[3], double inv_r, int i_simd)
 
template<class Device >
KOKKOS_INLINE_FUNCTION void derivs_elec (const PushControls &push_controls, const Species< Device > &species, const SimdParticles &part, const Simd< double > &inv_r_vec, const SimdVector &bfield, const Simd< double > &B_mag, const SimdVector(&jacb)[3], const Simd< double > &psi, const SimdVector2D &gradpsi, const SimdVector &tdb, const SimdVector &efield, SimdPhase &yprime, Simd< double > *vf_diag)
 

Function Documentation

template<class Device >
KOKKOS_INLINE_FUNCTION void derivs_elec ( const PushControls push_controls,
const Species< Device > &  species,
const SimdParticles part,
const Simd< double > &  inv_r_vec,
const SimdVector bfield,
const Simd< double > &  B_mag,
const SimdVector(&)  jacb[3],
const Simd< double > &  psi,
const SimdVector2D gradpsi,
const SimdVector tdb,
const SimdVector efield,
SimdPhase yprime,
Simd< double > *  vf_diag 
)

Get the phase derivatives of a vector of particles

Parameters
[in]partVector of particles
[in]inv_r_vecVector of 1/r (1/r_axis in cylindrical limit)
[in]bfieldVector of magnetic fields
[in]B_magVector of bfield magnitudes
[in]jacbVector of jacobians
[in]psiVector of psi coordinates
[in]gradpsiVector of psi gradients (r,z)
[in]tdbVector of perturbed magnetic field
[in]efieldVector of electric fields
[in]efield00Vector of 00 electric fields for DELTAF_CONV
[in]ddpotdtVector of dPotential/dt for DELTAF_CONV
[in]f0denVector of f0 density for DELTAF_CONV
[in]f0ddenVector of d[f0 density]/dpsi for DELTAF_CONV
[in]f0tevVector of f0 temperature in eV for DELTAF_CONV
[in]f0dtevVector of d[f0 tempearture]/dpsi for DELTAF_CONV
[in]dAh,Ah,dAs,As: Vector of vector potentials for EXPLICIT_EM. Minus sign included in dAh and dAs
[out]yprimeVector of derivatives of the particle phases
[out]vf_diagOptional vector of quantities for diagnostic

Here is the caller graph for this function:

KOKKOS_INLINE_FUNCTION double get_denergy_dt_em ( bool  dwdt_exb_only,
double  mass,
int  i_simd,
const SimdVector bfield,
const Simd< double > &  f0flow,
const Simd< double > &  Epar_em,
const double(&)  Bs[3],
double  fr_pert,
double  fz_pert,
double  fp_pert,
double  fr2,
double  fz2,
double  fp2,
double  vp,
double  mu,
double  B,
double  c_m,
double  over_B,
double  over_B2,
double  dbdr,
double  dbdz,
double  dbdphi,
double  D 
)

Here is the caller graph for this function:

KOKKOS_INLINE_FUNCTION double get_dw1 ( double  mass,
double  charge,
bool  is_electron,
bool  dwdt_exb_only,
bool  dwdt_fix_bg,
int  i_simd,
double  w2,
double  r,
const SimdVector bfield,
const SimdVector2D gradpsi,
const SimdVector tdb,
const SimdVector efield,
const Simd< double > &  f0den,
const Simd< double > &  f0dden,
const Simd< double > &  f0tev,
const Simd< double > &  f0dtev,
const Simd< double > &  f0flow,
const Simd< double > &  f0dflow,
const SimdVector efield00,
const Simd< double > &  ddpotdt,
const double(&)  yp_exb[3],
double  rho,
double  vp,
double  mu,
double  B,
double  c_m,
double  over_B,
double  over_B2,
double  dbdr,
double  dbdz,
double  dbdphi,
const double(&)  curl_B[3],
const double  drift_on,
double  D,
double  yp_r,
double  yp_z,
double  yp_p 
)

Here is the call graph for this function:

Here is the caller graph for this function:

KOKKOS_INLINE_FUNCTION double get_dweight ( double  dfdp,
double  gradpsi_r,
double  gradpsi_z,
double  yp_r,
double  yp_z,
double  dEdtT 
)

Here is the caller graph for this function:

KOKKOS_INLINE_FUNCTION double get_nb_curl_nb ( double  over_B2,
const SimdVector bfield,
const SimdVector(&)  jacb[3],
double  inv_r,
int  i_simd 
)

Here is the caller graph for this function: