aboutsummaryrefslogtreecommitdiff
path: root/Docs/source/running_cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Docs/source/running_cpp')
-rw-r--r--Docs/source/running_cpp/parameters.rst51
1 files changed, 47 insertions, 4 deletions
diff --git a/Docs/source/running_cpp/parameters.rst b/Docs/source/running_cpp/parameters.rst
index cba041e6d..5925d4d6b 100644
--- a/Docs/source/running_cpp/parameters.rst
+++ b/Docs/source/running_cpp/parameters.rst
@@ -450,10 +450,6 @@ Particle initialization
this process (see "Lookup tables for QED modules" section below).
**Implementation of this feature is in progress. It requires to compile with QED=TRUE**
-* ``warpx.E_external_particle`` & ``warpx.B_external_particle`` (list of `float`) optional (default `0. 0. 0.`)
- Two separate parameters which add a uniform E-field or B-field to each particle
- which is then added to the field values gathered from the grid in the
- PIC cycle.
Laser initialization
--------------------
@@ -728,6 +724,53 @@ Laser initialization
the field solver. In particular, do not use any other boundary condition
than periodic.
+* ``warpx.B_ext_particle_init_style`` (string) optional (default is "default")
+ This parameter determines the type of initialization for the external
+ magnetic field that is applied directly to the particles at every timestep.
+ The "default" style sets the external B-field (Bx,By,Bz) to (0.0,0.0,0.0).
+ The string can be set to "constant" if a constant external B-field is applied
+ every timestep. If this parameter is set to "constant", then an additional
+ parameter, namely, ``warpx.B_external_particle`` must be specified in
+ the input file.
+ To parse a mathematical function for the external B-field, use the option
+ ``parse_B_ext_particle_function``. This option requires additional parameters
+ in the input file, namely,
+ ``warpx.Bx_external_particle_function(x,y,z,t)``,
+ ``warpx.By_external_particle_function(x,y,z,t)``,
+ ``warpx.Bz_external_particle_function(x,y,z,t)`` to apply the external B-field
+ on the particles. Constants required in the mathematical expression can be set
+ using ``my_constants``. For a two-dimensional simulation, it is assumed that
+ the first and second dimensions are `x` and `z`, respectively, and the
+ value of the `By` component is set to zero.
+ Note that the current implementation of the parser for B-field on particles
+ does not work with RZ and the code will abort with an error message.
+
+* ``warpx.E_ext_particle_init_style`` (string) optional (default is "default")
+ This parameter determines the type of initialization for the external
+ electric field that is applied directly to the particles at every timestep.
+ The "default" style set the external E-field (Ex,Ey,Ez) to (0.0,0.0,0.0).
+ The string can be set to "constant" if a cosntant external E-field is to be
+ used in the simulation at every timestep. If this parameter is set to "constant",
+ then an additional parameter, namely, ``warpx.E_external_particle`` must be
+ specified in the input file.
+ To parse a mathematical function for the external E-field, use the option
+ ``parse_E_ext_particle_function``. This option requires additional
+ parameters in the input file, namely,
+ ``warpx.Ex_external_particle_function(x,y,z,t)``,
+ ``warpx.Ey_external_particle_function(x,y,z,t)``,
+ ``warpx.Ez_external_particle_function(x,y,z,t)`` to apply the external E-field
+ on the particles. Constants required in the mathematical expression can be set
+ using ``my_constants``. For a two-dimensional simulation, similar to the B-field,
+ it is assumed that the first and second dimensions are `x` and `z`, respectively,
+ and the value of the `Ey` component is set to zero.
+ The current implementation of the parser for the E-field on particles does not work
+ with RZ and the code will abort with an error message.
+
+* ``warpx.E_external_particle`` & ``warpx.B_external_particle`` (list of `float`) optional (default `0. 0. 0.`)
+ Two separate parameters which add an externally applied uniform E-field or
+ B-field to each particle which is then added to the field values gathered
+ from the grid in the PIC cycle.
+
Collision initialization
------------------------