From 23021844da6185d6fa28fc81bf84b15f7e566fb2 Mon Sep 17 00:00:00 2001 From: Revathi Jambunathan <41089244+RevathiJambunathan@users.noreply.github.com> Date: Thu, 15 Apr 2021 00:00:44 -0700 Subject: Boundary Condition : Interface with existing PML (#1768) * Read boundary and set periodicity, enumerate BC types, added support for periodic * separate particle and field boudnary structs * Update comment for particle struct * default pml is 0, and reset lo, hi, and do_pml to 1 * turn on pml for MR * eol * remove duplication * resolving commit conflict * explicitly setting pml_HI_MR * default pml lo and hi to 0, and set MR pml lo and hi to the domain values if fine patch coincides with domain boundary * set lo and hi flag for pml when do pml = 1 and domain is non-periodic * remove commented line * add doc * Update Source/Utils/WarpXUtil.cpp remove empty line * Apply suggestions from code review Co-authored-by: Axel Huebl * Update Docs/source/usage/parameters.rst lower case for input * add do_pml flags for IonAcc2d and PlasmaMirror * add pml = true in PICMI for gaussian beam and plasma acceleration * pml is the default field BC * adding temporary defaults for field and particle BC using periodicity * fix temp initialization * set default to pec if input sets pml to 0 * fix typo * logic for both old and new pml interface * fix eol * change examples to original pml input with default values * Update Docs/source/usage/parameters.rst Co-authored-by: Axel Huebl * fix comments Co-authored-by: Edoardo Zoni <59625522+EZoni@users.noreply.github.com> * Docs: fix .rst list Co-authored-by: Axel Huebl Co-authored-by: Edoardo Zoni <59625522+EZoni@users.noreply.github.com> --- Source/Utils/WarpXAlgorithmSelection.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Source/Utils/WarpXAlgorithmSelection.cpp') diff --git a/Source/Utils/WarpXAlgorithmSelection.cpp b/Source/Utils/WarpXAlgorithmSelection.cpp index 302060b1a..14d1bea64 100644 --- a/Source/Utils/WarpXAlgorithmSelection.cpp +++ b/Source/Utils/WarpXAlgorithmSelection.cpp @@ -76,11 +76,11 @@ const std::map MacroscopicSolver_algo_to_int = { }; const std::map FieldBCType_algo_to_int = { - {"pec", FieldBoundaryType::PEC}, - {"periodic", FieldBoundaryType::Periodic}, {"pml", FieldBoundaryType::PML}, + {"periodic", FieldBoundaryType::Periodic}, + {"pec", FieldBoundaryType::PEC}, {"pmc", FieldBoundaryType::PMC}, - {"default", FieldBoundaryType::PEC} + {"default", FieldBoundaryType::PML} }; const std::map ParticleBCType_algo_to_int = { -- cgit v1.2.3