Charge Conservation and injection #158
-
Dear EPOCH team, So from what I gather it seems that if the initial Electric and magnetic fields are calculated via Gauss' Law for E and B, then the FDTD algorithm will move the fields along in time and conserve charge/current. In EPOCH it looks like charge density is set to zero for the entire simulation so that there is no electrostatic fields even from non-neutral plasmas. Additionally, for single species injection, how is charge conservation implemented? Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
I'm not really sure I understand your question. Specifically:
Here's what I know: EPOCH solves for the (change in) electric field using Ampere's law. As you say, if you have an initial charge imbalance, you should solve for the initial (electrostatic) field according to that charge imbalance, and use that field as the initial conditions. After that charge density is only a diagnostic, it doesn't play any part in the evolution of the field. Note that the current densities are calculated from the flux of charge through cell boundaries, so that the current densities \vec{j}, are consistent with d\rho / dt = -\nabla \cdot \vec{j}, using the scheme of Esirkepov. This means that Gauss' law is automatically satisfied. To see this note from Ampere's law d / dt \nabla \cdot \vec{E} = - \nabla \cdot \vec{j} / \epsilon_0. Combined with the fact that the current densities are calculated consistently with charge conservation, this means that Gauss' law is satisfied automatically. |
Beta Was this translation helpful? Give feedback.
-
Additionally, I'm wondering if the reason the particles injectors are restricted to the boundaries is because of this charge conservation? What is the reason keeping particles from being injected in the middle? |
Beta Was this translation helpful? Give feedback.
I'm not really sure I understand your question. Specifically:
Here's what I know:
EPOCH solves for the (change in) electric field using Ampere's law. As you say, if you have an initial charge imbalance, you should solve for the initial (electrostatic) field according to that charge imbalance, and use that field as the initial conditions. After that charge density is only a diagnostic, it doesn't play any part in the evolution of the field.
Note that the current d…