aboutsummaryrefslogtreecommitdiff
path: root/Source/WarpX.H
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WarpX.H')
-rw-r--r--Source/WarpX.H23
1 files changed, 14 insertions, 9 deletions
diff --git a/Source/WarpX.H b/Source/WarpX.H
index 426609831..da9431d32 100644
--- a/Source/WarpX.H
+++ b/Source/WarpX.H
@@ -4,7 +4,7 @@
#include "WarpXDtType.H"
#include <MultiParticleContainer.H>
#include <PML.H>
-#include <BoostedFrameDiagnostic.H>
+#include <BackTransformedDiagnostic.H>
#include <BilinearFilter.H>
#include <NCIGodfreyFilter.H>
@@ -71,13 +71,18 @@ public:
MultiParticleContainer& GetPartContainer () { return *mypc; }
- static void shiftMF(amrex::MultiFab& mf, const amrex::Geometry& geom, int num_shift, int dir);
+ static void shiftMF(amrex::MultiFab& mf, const amrex::Geometry& geom, int num_shift, int dir,
+ amrex::Real external_field = 0.);
static void GotoNextLine (std::istream& is);
- // External fields
- static amrex::Vector<amrex::Real> B_external;
- static amrex::Vector<amrex::Real> E_external;
+ // External fields added to particle fields.
+ static amrex::Vector<amrex::Real> B_external_particle;
+ static amrex::Vector<amrex::Real> E_external_particle;
+
+ // Initial field on the grid.
+ static amrex::Vector<amrex::Real> E_external_grid;
+ static amrex::Vector<amrex::Real> B_external_grid;
// Algorithms
static long current_deposition_algo;
@@ -102,12 +107,12 @@ public:
static bool serialize_ics;
// Back transformation diagnostic
- static bool do_boosted_frame_diagnostic;
+ static bool do_back_transformed_diagnostics;
static std::string lab_data_directory;
static int num_snapshots_lab;
static amrex::Real dt_snapshots_lab;
- static bool do_boosted_frame_fields;
- static bool do_boosted_frame_particles;
+ static bool do_back_transformed_fields;
+ static bool do_back_transformed_particles;
// Boosted frame parameters
static amrex::Real gamma_boost;
@@ -484,7 +489,7 @@ private:
std::unique_ptr<MultiParticleContainer> mypc;
// Boosted Frame Diagnostics
- std::unique_ptr<BoostedFrameDiagnostic> myBFD;
+ std::unique_ptr<BackTransformedDiagnostic> myBFD;
//
// Fields: First array for level, second for direction