diff options
author | 2021-03-16 11:42:47 -0700 | |
---|---|---|
committer | 2021-03-16 11:42:47 -0700 | |
commit | 0d74f67d074c06e34acbec6a20d36d5900f6c9ee (patch) | |
tree | cdbfa529f97e4cded9c7f604c261145662544e45 /Source/Evolve/WarpXEvolve.cpp | |
parent | 1bdaceebb8c8c244f68e1187ab03f46b9e763ff0 (diff) | |
download | WarpX-0d74f67d074c06e34acbec6a20d36d5900f6c9ee.tar.gz WarpX-0d74f67d074c06e34acbec6a20d36d5900f6c9ee.tar.zst WarpX-0d74f67d074c06e34acbec6a20d36d5900f6c9ee.zip |
Implement Silver Mueller boundary conditions (#1766)
* Add function definitions for Silver-Mueller boundary condition
* Add test file
* Implement Silver-Mueller equations
* Add equations for Bz
* Add equation in the z direction
* Add equation for Bx
* Add 3D implementation
* Add documentation, automated tests, and warnings
* Include second automated test and evaluate benchmark
* Fix unused variable warning
* Fix minor bugs
* Update benchmark
* Apply suggestions from code review
Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
* Incorporate review comments
* Incorporate more suggestions
Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
Diffstat (limited to 'Source/Evolve/WarpXEvolve.cpp')
-rw-r--r-- | Source/Evolve/WarpXEvolve.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Evolve/WarpXEvolve.cpp b/Source/Evolve/WarpXEvolve.cpp index 8e67af998..d2392f21b 100644 --- a/Source/Evolve/WarpXEvolve.cpp +++ b/Source/Evolve/WarpXEvolve.cpp @@ -358,7 +358,9 @@ WarpX::OneStep_nosub (Real cur_time) FillBoundaryF(guard_cells.ng_FieldSolverF); EvolveB(0.5_rt * dt[0]); // We now have B^{n+1/2} + if (do_silver_mueller) ApplySilverMuellerBoundary( dt[0] ); FillBoundaryB(guard_cells.ng_FieldSolver); + if (WarpX::em_solver_medium == MediumForEM::Vacuum) { // vacuum medium EvolveE(dt[0]); // We now have E^{n+1} |