You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maximum number of iterations used for MLMG solver for initial space-charge
381
+
fields calculation. In case if MLMG converges but fails to reach the desired
382
+
``self_fields_required_precision``, this parameter may be increased.
383
+
379
384
* ``<species_name>.profile`` (`string`)
380
385
Density profile for this species. The options are:
381
386
@@ -1209,7 +1214,7 @@ Numerics and algorithms
1209
1214
This option guarantees charge conservation only when used in combination with ``psatd.periodic_single_box_fft=1``, namely for periodic single-box simulations with global FFTs without guard cells.
1210
1215
The implementation for domain decomposition with local FFTs over guard cells is planned but not yet completed.
1211
1216
1212
-
* ``psatd.update_with_rho`` (`0` or `1`; default: `0`)
1217
+
* ``psatd.update_with_rho`` (`0` or `1`)
1213
1218
If true, the update equation for the electric field is expressed in terms of both the current density and the charge density, namely :math:`\widehat{\boldsymbol{J}}^{\,n+1/2}`, :math:`\widehat\rho^{n}`, and :math:`\widehat\rho^{n+1}`.
1214
1219
If false, instead, the update equation for the electric field is expressed in terms of the current density :math:`\widehat{\boldsymbol{J}}^{\,n+1/2}` only.
1215
1220
If charge is expected to be conserved (by setting, for example, ``psatd.current_correction=1``), then the two formulations are expected to be equivalent.
@@ -1276,6 +1281,11 @@ Numerics and algorithms
1276
1281
1277
1282
The coefficients :math:`C`, :math:`S`, :math:`\theta`, :math:`\nu`, :math:`\chi_1`, :math:`\chi_2`, and :math:`\chi_3` are defined in (`Lehe et al, PRE 94, 2016 <https://doi.org/10.1103/PhysRevE.94.053305>`_).
1278
1283
1284
+
The default value for ``psatd.update_with_rho`` is ``1`` if ``psatd.v_galilean`` is non-zero or
1285
+
in RZ geometry and ``0`` otherwise.
1286
+
1287
+
Note that ``psatd.update_with_rho=0`` is not supported in RZ geometry.
1288
+
1279
1289
* ``pstad.v_galilean`` (`3 floats`, in units of the speed of light; default `0. 0. 0.`)
1280
1290
Defines the galilean velocity.
1281
1291
Non-zero `v_galilean` activates Galilean algorithm, which suppresses the Numerical Cherenkov instability
@@ -1433,11 +1443,12 @@ In-situ capabilities can be used by turning on Sensei or Ascent (provided they a
1433
1443
1434
1444
* ``<diag_name>.fields_to_plot`` (list of `strings`, optional)
1435
1445
Fields written to output.
1436
-
Possible values: ``Ex`` ``Ey`` ``Ez`` ``Bx`` ``By`` ``Bz`` ``jx`` ``jy`` ``jz`` ``part_per_cell`` ``rho`` ``F`` ``part_per_grid`` ``part_per_proc`` ``divE`` ``divB`` and ``rho_<species_name>``, where ``<species_name>`` must match the name of one of the available particle species.
1446
+
Possible values: ``Ex`` ``Ey`` ``Ez`` ``Bx`` ``By`` ``Bz`` ``jx`` ``jy`` ``jz`` ``part_per_cell`` ``rho`` ``F`` ``part_per_grid`` ``divE`` ``divB`` and ``rho_<species_name>``, where ``<species_name>`` must match the name of one of the available particle species.
1437
1447
Default is ``<diag_name>.fields_to_plot = Ex Ey Ez Bx By Bz jx jy jz``.
1448
+
Note that the fields are averaged on the cell centers before they are written to file.
1438
1449
1439
1450
* ``<diag_name>.plot_raw_fields`` (`0` or `1`) optional (default `0`)
1440
-
By default, the fields written in the plot files are averaged on the nodes.
1451
+
By default, the fields written in the plot files are averaged on the cell centers.
1441
1452
When ```warpx.plot_raw_fields`` is `1`, then the raw (i.e. unaveraged)
1442
1453
fields are also saved in the output files.
1443
1454
Only works with ``<diag_name>.format = plotfile``.
@@ -1462,7 +1473,10 @@ In-situ capabilities can be used by turning on Sensei or Ascent (provided they a
1462
1473
* ``<diag_name>.coarsening_ratio`` (list of `int`) optional (default `1 1 1`)
1463
1474
Reduce size of the field output by this ratio in each dimension.
1464
1475
(This is done by averaging the field over 1 or 2 points along each direction, depending on the staggering).
1465
-
``plot_coarsening_ratio`` should be an integer divisor of ``blocking_factor``, defined in the :ref:`parallelization <parallelization_warpx>` section.
1476
+
If ``blocking_factor`` and ``max_grid_size`` are used for the domain decomposition, as detailed in
1477
+
the :ref:`parallelization <parallelization_warpx>` section, ``coarsening_ratio`` should be an integer
1478
+
divisor of ``blocking_factor``. If ``warpx.numprocs`` is used instead, the total number of cells in a given
1479
+
dimension must be a multiple of the ``coarsening_ratio`` multiplied by ``numprocs`` in that dimension.
0 commit comments