diff options
author | 2020-05-29 10:53:33 -0700 | |
---|---|---|
committer | 2020-05-29 10:53:33 -0700 | |
commit | 36c337d1dd00dc4945802a4a4da6e23aee86355e (patch) | |
tree | f206e889dfbd559cbff0aad1b037d84bc5c0ef3d /Source/FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.cpp | |
parent | b75932d3a1439f19d5b6b697c69fbe72cfb60044 (diff) | |
download | WarpX-36c337d1dd00dc4945802a4a4da6e23aee86355e.tar.gz WarpX-36c337d1dd00dc4945802a4a4da6e23aee86355e.tar.zst WarpX-36c337d1dd00dc4945802a4a4da6e23aee86355e.zip |
Macroscopic EvolveE with constant properties (#991)
* Adding macro-E Push and new file
* Add macroEvolveE, call it, and include algo selection in utils
* fix eol
* Fixing bug in macroE for sigma method 1
* changing MacroEvolveE to MacroscopicEvolveE
* add class for macroscopicproperties and an object in WarpX class
* fix eol
* adding templated ckc call with comment that EvolveE is same for yee and ckc
* add header file pointing to ckc algorithm
* adding obejct m_macroscopic_properties to access sigma,eps,mu
* some cleaning
* Adding comments
* adding documentation
* spelling wandroff to wendroff
* fixing eol
* eol
* const in the right place. Thanks bot!
* profiler for macroscopic evolveE
* re-introduced deleted line when fixing conflict to declare templated EvolveBPMLCartesian function
* fixing if-else statement for RZ in MAcroscopicEvolveE.cpp
* adding suggestions and corrections made in PR review.
* fixing grammar in docs
* fix eol whitespace
* fix typo
Diffstat (limited to 'Source/FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.cpp')
-rw-r--r-- | Source/FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.cpp b/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.cpp new file mode 100644 index 000000000..7bb1911fd --- /dev/null +++ b/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicProperties/MacroscopicProperties.cpp @@ -0,0 +1,21 @@ +#include "MacroscopicProperties.H" +#include <AMReX_ParmParse.H> + +using namespace amrex; + +MacroscopicProperties::MacroscopicProperties () +{ + ReadParameters(); +} + +void +MacroscopicProperties::ReadParameters () +{ + ParmParse pp("macroscopic"); + // Since macroscopic maxwell solve is turned on, user must define sigma, mu, and epsilon // + pp.get("sigma", m_sigma); + pp.get("mu", m_mu); + pp.get("epsilon", m_epsilon); + +} + |