8 #ifndef WARPX_SPECIESPHYSICALPROPERTIES_H_ 9 #define WARPX_SPECIESPHYSICALPROPERTIES_H_ 13 #include <AMReX_REAL.H> 14 #include <AMReX_AmrCore.H> 26 if( species==
"unspecified" )
28 if( species==
"electron" )
30 if( species==
"positron" )
32 if( species==
"photon" )
34 if( species==
"hydrogen" )
36 amrex::Abort(
"unknown PhysicalSpecies");
45 return std::numeric_limits<amrex::Real>::quiet_NaN();
47 return -PhysConst::q_e;
49 return PhysConst::q_e;
53 return PhysConst::q_e;
55 amrex::Abort(
"unknown PhysicalSpecies");
65 return std::numeric_limits<amrex::Real>::quiet_NaN();
67 return PhysConst::m_e;
69 return PhysConst::m_e;
73 return PhysConst::m_p;
75 amrex::Abort(
"unknown PhysicalSpecies");
81 #endif // WARPX_SPECIESPHYSICALPROPERTIES_H_
AMREX_FORCE_INLINE PhysicalSpecies from_string(std::string species)
Definition: SpeciesPhysicalProperties.H:24
PhysicalSpecies
Definition: SpeciesPhysicalProperties.H:19
AMREX_FORCE_INLINE amrex::Real get_mass(PhysicalSpecies ps)
Definition: SpeciesPhysicalProperties.H:61
AMREX_FORCE_INLINE amrex::Real get_charge(PhysicalSpecies ps)
Definition: SpeciesPhysicalProperties.H:41
Definition: SpeciesPhysicalProperties.H:21