diff options
author | 2021-06-07 16:30:42 -0700 | |
---|---|---|
committer | 2021-06-07 16:30:42 -0700 | |
commit | 82b1cb5480466cb9ba582f1edbe04389bab9a32a (patch) | |
tree | 793490bd89e613b9acbcc851da8c4cecbc64ebf2 /Source/Particles/MultiParticleContainer.cpp | |
parent | 628899258454f55d72c277969a84929f1c1caa9d (diff) | |
download | WarpX-82b1cb5480466cb9ba582f1edbe04389bab9a32a.tar.gz WarpX-82b1cb5480466cb9ba582f1edbe04389bab9a32a.tar.zst WarpX-82b1cb5480466cb9ba582f1edbe04389bab9a32a.zip |
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 <axel.huebl@plasma.ninja>
Diffstat (limited to 'Source/Particles/MultiParticleContainer.cpp')
-rw-r--r-- | Source/Particles/MultiParticleContainer.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
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. |