From 82b1cb5480466cb9ba582f1edbe04389bab9a32a Mon Sep 17 00:00:00 2001 From: David Grote Date: Mon, 7 Jun 2021 16:30:42 -0700 Subject: Added injection of a thermal flux from a plane (#1892) * Added injection of a thermal flux from the domain surface * Major fixes to NFluxPerCell injection * Small fixes and clean up * Fixed 'if WARPX_DIMS_RZ' to use ifdef * Small fix to flux_normal_axis error message * Fix typo Co-authored-by: Axel Huebl --- Source/Particles/MultiParticleContainer.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Source/Particles/MultiParticleContainer.cpp') diff --git a/Source/Particles/MultiParticleContainer.cpp b/Source/Particles/MultiParticleContainer.cpp index eb5293bee..a0524c166 100644 --- a/Source/Particles/MultiParticleContainer.cpp +++ b/Source/Particles/MultiParticleContainer.cpp @@ -611,6 +611,18 @@ MultiParticleContainer::doContinuousInjection () const return warpx_do_continuous_injection; } +/* \brief Continuous injection of a flux of particles + * Loop over all WarpXParticleContainer in MultiParticleContainer and + * calls virtual function ContinuousFluxInjection. + */ +void +MultiParticleContainer::ContinuousFluxInjection (amrex::Real dt) const +{ + for (auto& pc : allcontainers){ + pc->ContinuousFluxInjection(dt); + } +} + /* \brief Get ID of product species of each species. * The users specifies the name of the product species, * this routine get its ID. -- cgit v1.2.3