number_density(electron) returns 0 when loading from file? #734
-
Dear all,
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
I'm not sure the binary file loading is compatable with the EPOCH maths parser. In this example, you could just set the Cheers, |
Beta Was this translation helpful? Give feedback.
That's correct, but you'd have this problem of non-overlapping particle positions even if you used the maths parser. Macro-particle positions in cells are always random. The only way you could override this behaviour is to manually specify the starting position of each particle, as in the load particles from file demo.
Edit: The E-fields are assumed 0 at the simulation start by the way. If you have a chage imbalance, the code will assume there is an immobile charge distribution present to initially neutralise each cell. This will cause issues if all your particle move away - this immobile charge may affect their trajectories. In practice, the energies of plasma particles mean that the sma…