Skip to content

Commit

Permalink
adding picmi interface with doc for Analytical initial field
Browse files Browse the repository at this point in the history
  • Loading branch information
RevathiJambunathan committed Oct 5, 2023
1 parent 58cbfbe commit f4a01d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Docs/source/usage/python.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ EmbeddedBoundary
Applied fields
^^^^^^^^^^^^^^

AnalyticInitialField
""""""""""""""""""""
.. autoclass:: pywarpx.picmi.AnalyticInitialField

ConstantAppliedField
""""""""""""""""""""
.. autoclass:: pywarpx.picmi.ConstantAppliedField
Expand Down
2 changes: 2 additions & 0 deletions Python/pywarpx/picmi.py
Original file line number Diff line number Diff line change
Expand Up @@ -1213,9 +1213,11 @@ def initialize_inputs(self):
class AnalyticInitialField(picmistandard.PICMI_AnalyticAppliedField):
def init(self, kw):
self.mangle_dict = None
self.maxlevel_extEMfield_init = kw.pop('warpx_maxlevel_extEMfield_init', None);

def initialize_inputs(self):
# Note that lower and upper_bound are not used by WarpX
pywarpx.warpx.maxlevel_extEMfield_init = self.maxlevel_extEMfield_init;

if self.mangle_dict is None:
# Only do this once so that the same variables are used in this distribution
Expand Down

0 comments on commit f4a01d4

Please sign in to comment.