8 #ifndef WARPX_SPECIESPHYSICALPROPERTIES_H_ 9 #define WARPX_SPECIESPHYSICALPROPERTIES_H_ 13 #include <AMReX_AmrCore.H> 14 #include <AMReX_REAL.H> 26 if( species==
"unspecified" )
28 if( species==
"electron" )
30 if( species==
"positron" )
32 if( species==
"photon" )
34 if( species==
"hydrogen" )
36 if( species==
"carbon" )
38 if( species==
"nitrogen" )
40 if( species==
"oxygen" )
42 if( species==
"copper" )
44 amrex::Abort(
"unknown PhysicalSpecies");
53 return std::numeric_limits<amrex::Real>::quiet_NaN();
55 return -PhysConst::q_e;
57 return PhysConst::q_e;
61 return PhysConst::q_e;
63 return PhysConst::q_e * amrex::Real(6.0);
65 return PhysConst::q_e * amrex::Real(7.0);
67 return PhysConst::q_e * amrex::Real(8.0);
69 return PhysConst::q_e * amrex::Real(29.0);
71 amrex::Abort(
"unknown PhysicalSpecies");
81 return std::numeric_limits<amrex::Real>::quiet_NaN();
83 return PhysConst::m_e;
85 return PhysConst::m_e;
89 return PhysConst::m_p;
91 return PhysConst::m_e * amrex::Real(22032.0);
93 return PhysConst::m_e * amrex::Real(25716.9);
95 return PhysConst::m_p * amrex::Real(15.8834);
97 return PhysConst::m_p * amrex::Real(63.0864);
99 amrex::Abort(
"unknown PhysicalSpecies");
105 #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:77
AMREX_FORCE_INLINE amrex::Real get_charge(PhysicalSpecies ps)
Definition: SpeciesPhysicalProperties.H:49
Definition: SpeciesPhysicalProperties.H:21