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
Copy file name to clipboardExpand all lines: docs/source/usage/plugins/binningPlugin.rst
+19-3Lines changed: 19 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -191,7 +191,7 @@ Species can be instances of a species type or a particle species name as a PMACC
191
191
auto electronsObj = PMACC_CSTRING("e"){};
192
192
193
193
Optionally, users can specify a filter to be used with the species. This is a predicate functor, i.e. it is a functor with a signature as described above and which returns a boolean. If the filter returns true it means the particle is included in the binning.
194
-
They can then create a FilteredSpecies object which contains the species and the filter.
194
+
They can then create a ``FilteredSpecies`` object which contains the species and the filter.
Fields are passed to addFieldBinner in the form of a tuple. This is just a collection of field objects and is of arbitrary size.
223
+
Fields are passed to addFieldBinner in the form of a tuple. This is just a collection of ``FieldInfo`` and is of arbitrary size.
219
224
Users can make a fields tuple by using the ``createTuple()`` function and passing in the objects as arguments.
225
+
The functors receive the fields in the form of the field data box, which is the field data on the current GPU including the guard cells, in the order they are passed in the tuple.
It is possible to have an empty tuple for fields when doing field binning, in which case the functor will be called with no fields. This may be useful if you are passing in extra data and want field traversal over it.
224
236
237
+
.. note::
238
+
239
+
It is possible to have field information available while doing particle binning as well. Users can simply pass in ``FieldInfo`` objects in the extra data tuple, and the functor will be called with the field information as well.
240
+
225
241
Deposited Quantity
226
242
------------------
227
243
Quantity to be deposited is simply a :ref:`functor description <usage/plugins/binningPlugin:Functor Description>`.
0 commit comments