Add macro-particle weight to Coords struct#232
Conversation
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
|
In what cases do particles of a bunch (one species) each have different weights? |
|
|
Weights can also be used, for example, when simulating space charge, where the weight is used to calculate how large a wake is left by a macroparticle. A typical situation is to have a leading particle with a large weight which generates a reasonable wake followed by "test" particles with zero weights to not perturbe the wake. |
|
sounds good. we should probably just use |
weightis a weighting factor typically used when macro-particles are being simulated. It is optional and defaults to nothing.