diff options
author | 2020-01-24 11:03:48 -0800 | |
---|---|---|
committer | 2020-01-24 11:03:48 -0800 | |
commit | a32b3292967b6b0ee766ad14303c6cd0f2369b04 (patch) | |
tree | f271f8104c0cc38784bbbe6cb3f8747d12cc3d32 /Source/Particles/MultiParticleContainer.H | |
parent | 50b7e6c7189e98241684212dbae37f85cb43a02f (diff) | |
parent | c5d8298284709dbea9f2c764bf429872933de11c (diff) | |
download | WarpX-a32b3292967b6b0ee766ad14303c6cd0f2369b04.tar.gz WarpX-a32b3292967b6b0ee766ad14303c6cd0f2369b04.tar.zst WarpX-a32b3292967b6b0ee766ad14303c6cd0f2369b04.zip |
Merge pull request #609 from RevathiJambunathan/ParticlesEBParser
Externally applied E/B fields on the particles using parser
Diffstat (limited to 'Source/Particles/MultiParticleContainer.H')
-rw-r--r-- | Source/Particles/MultiParticleContainer.H | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Source/Particles/MultiParticleContainer.H b/Source/Particles/MultiParticleContainer.H index 9db129b05..ed1c2f371 100644 --- a/Source/Particles/MultiParticleContainer.H +++ b/Source/Particles/MultiParticleContainer.H @@ -8,6 +8,7 @@ #include <RigidInjectedParticleContainer.H> #include <PhotonParticleContainer.H> #include <LaserParticleContainer.H> +#include <WarpXParserWrapper.H> #include <AMReX_Particles.H> #ifdef WARPX_QED @@ -215,6 +216,21 @@ public: IonizationProcess ionization_process; + std::string m_B_ext_particle_s = "default"; + std::string m_E_ext_particle_s = "default"; + // External fields added to particle fields. + amrex::Vector<amrex::Real> m_B_external_particle; + amrex::Vector<amrex::Real> m_E_external_particle; + // ParserWrapper for B_external on the particle + std::unique_ptr<ParserWrapper> m_Bx_particle_parser; + std::unique_ptr<ParserWrapper> m_By_particle_parser; + std::unique_ptr<ParserWrapper> m_Bz_particle_parser; + // ParserWrapper for E_external on the particle + std::unique_ptr<ParserWrapper> m_Ex_particle_parser; + std::unique_ptr<ParserWrapper> m_Ey_particle_parser; + std::unique_ptr<ParserWrapper> m_Ez_particle_parser; + + protected: // Particle container types |