WarpX
QedChiFunctions.H
Go to the documentation of this file.
1 /* Copyright 2019 Luca Fedeli
2  *
3  * This file is part of WarpX.
4  *
5  * License: BSD-3-Clause-LBNL
6  */
7 #ifndef WARPX_amrex_qed_chi_functions_h_
8 #define WARPX_amrex_qed_chi_functions_h_
9 
16 #include "QedWrapperCommons.H"
17 
18 #include <physics/chi_functions.hpp>
19 
20 namespace QedUtils{
29  AMREX_GPU_DEVICE
30  AMREX_FORCE_INLINE
31  amrex::Real chi_photon(
32  const amrex::Real px, const amrex::Real py, const amrex::Real pz,
33  const amrex::Real ex, const amrex::Real ey, const amrex::Real ez,
34  const amrex::Real bx, const amrex::Real by, const amrex::Real bz)
35  {
36  namespace pxr_p = picsar::multi_physics::phys;
37  return pxr_p::chi_photon<amrex::Real, pxr_p::unit_system::SI>(
38  px, py, pz, ex, ey, ez, bx, by, bz);
39  }
40 
49  AMREX_GPU_DEVICE
50  AMREX_FORCE_INLINE
51  amrex::Real chi_ele_pos(
52  const amrex::Real px, const amrex::Real py, const amrex::Real pz,
53  const amrex::Real ex, const amrex::Real ey, const amrex::Real ez,
54  const amrex::Real bx, const amrex::Real by, const amrex::Real bz)
55  {
56  namespace pxr_p = picsar::multi_physics::phys;
57  return pxr_p::chi_ele_pos<amrex::Real, pxr_p::unit_system::SI>(
58  px, py, pz, ex, ey, ez, bx, by, bz);
59  }
60  //_________
61 }
62 
63 #endif //WARPX_amrex_qed_chi_functions_h_
Definition: QedChiFunctions.H:20
AMREX_GPU_DEVICE AMREX_FORCE_INLINE amrex::Real chi_ele_pos(const amrex::Real px, const amrex::Real py, const amrex::Real pz, const amrex::Real ex, const amrex::Real ey, const amrex::Real ez, const amrex::Real bx, const amrex::Real by, const amrex::Real bz)
Definition: QedChiFunctions.H:51
AMREX_GPU_DEVICE AMREX_FORCE_INLINE amrex::Real chi_photon(const amrex::Real px, const amrex::Real py, const amrex::Real pz, const amrex::Real ex, const amrex::Real ey, const amrex::Real ez, const amrex::Real bx, const amrex::Real by, const amrex::Real bz)
Definition: QedChiFunctions.H:31