Computes the simulation charge error which is measured as the difference in charge as computed from the divergence of the electric field and that computed using the continuity equation. This source does not compute \(\nabla\cdot E\), instead this value is passed in.
where \(E\) is the electric field, \(m_{i}\) is the species mass, \(q_{i}\) is the species charge, \(\epsilon_{0}\) is the permittivity, \(\rho_{i}\) is the species mass density.
speciesCharge
(vector float)speciesMass
(vector float)epsilon0
(float)in
(string vector, required)1st Variable
Remaining variables
This source takes an arbitrary number of species mass variables, but requires at least 1.
out
(string vector, required)The output is the charge error
1st Variable
<Equation>
kind = computeChargeError
speciesCharge = [ELECTRON_CHARGE, ION_CHARGE]
speciesMass = [ELECTRON_MASS, ION_MASS]
epsilon0 = EPSILON0
</Equation>