ECP-WarpX / WarpX

WarpX is an advanced electromagnetic & electrostatic Particle-In-Cell code.
https://ecp-warpx.github.io
Other
309 stars 196 forks source link

negative Hydrogen ion simulation #5467

Open mojgan-zare opened 5 days ago

mojgan-zare commented 5 days ago

Can I simulate a negative H plasma ion source by warpx ? excatly it needs to initialize the H. minus ,H plus ,H , H2 , electron as nessessery particles for simulation. are these species defined or need to be defined?

RemiLehe commented 3 days ago

Thanks for the question.

These species are not explicitly defined in WarpX, but you can still use them in simulations by specifying their charge and mass by hand. (In WarpX, either species_type or both mass and charge have to be specified.) In other words, your warpx input script could have:

particles.species_names = H_minus H_plus H H2
...
H_minus.charge = -q_e
H_minus.mass = m_p + 2*m_e
...
H_plus.charge = q_e
H_plus.mass = m_p
...
H.charge = 0
H.mass = m_p + m_e
...
H2.charge = 0
H2.mass = 2*m_p + 2*m_e

Does this answer your question?