Skip to content

number_density(electron) returns 0 when loading from file? #734

Answered by Status-Mirror
fcour asked this question in Q&A
Discussion options

You must be logged in to vote

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…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@fcour
Comment options

@Status-Mirror
Comment options

Answer selected by fcour
@fcour
Comment options

@Status-Mirror
Comment options

@fcour
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants