aboutsummaryrefslogtreecommitdiff
path: root/Source/WarpX.H
diff options
context:
space:
mode:
authorGravatar Weiqun Zhang <WeiqunZhang@lbl.gov> 2021-05-24 12:13:02 -0700
committerGravatar GitHub <noreply@github.com> 2021-05-24 12:13:02 -0700
commit79f432a12dd8220fab68eb7eb81b82022a431fd0 (patch)
treeb81a5181dfec8713e3e126b7cc1f4ca6f2d6067e /Source/WarpX.H
parent0f516ad1377e6d514c3521048c0e975d4349e081 (diff)
downloadWarpX-79f432a12dd8220fab68eb7eb81b82022a431fd0.tar.gz
WarpX-79f432a12dd8220fab68eb7eb81b82022a431fd0.tar.zst
WarpX-79f432a12dd8220fab68eb7eb81b82022a431fd0.zip
EB initialization with Parser (#1980)
If `warpx.eb_implicit_function = ...` is present in input parameters, Parser will be used to initialize EB. For example, ``` warpx.eb_implicit_function = "max(max(max(x-0.5,-0.5-x), max(y-0.5,-0.5-y)), max(z-0.5,-0.5-z))" ``` specifies a box with boundaries at x=+-0.5, y=+-0.5 and z=+-0.5 and regular domain inside the box. ``` warpx.eb_implicit_function = "-(x**2+y**2+z**2-0.2**2)" ``` specifies a solid sphere at (0,0,0) with a radius of 0.2.
Diffstat (limited to '')
-rw-r--r--Source/WarpX.H3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/WarpX.H b/Source/WarpX.H
index 82a3e1483..9141df0e9 100644
--- a/Source/WarpX.H
+++ b/Source/WarpX.H
@@ -1099,6 +1099,9 @@ private:
amrex::EBFArrayBoxFactory const& fieldEBFactory (int lev) const noexcept {
return static_cast<amrex::EBFArrayBoxFactory const&>(*m_field_factory[lev]);
}
+
+ // EB implicit funciton
+ std::unique_ptr<ParserWrapper<3> > m_eb_if_parser;
#endif
void InitEB ();