MCPcopy Create free account
hub / github.com/BLAST-WarpX/warpx / ContinuousInjection

Method ContinuousInjection

Source/Particles/ParticleCreation/AddParticles.cpp:266–274  ·  view source on GitHub ↗

\brief Inject particles during the simulation * \param injection_box: domain where particles should be injected. */

Source from the content-addressed store, hash-verified

264 * \param injection_box: domain where particles should be injected.
265 */
266void
267PhysicalParticleContainer::ContinuousInjection (const amrex::RealBox& injection_box)
268{
269 // Inject plasma on level 0. Particles will be redistributed.
270 const int lev=0;
271 for (auto const& plasma_injector : plasma_injectors) {
272 AddPlasma(*plasma_injector, lev, injection_box);
273 }
274}
275
276/* \brief Inject a flux of particles during the simulation
277 */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected