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/parameters.rst
+4-2
Original file line number
Diff line number
Diff line change
@@ -2752,8 +2752,10 @@ The data collected at each boundary is written out to a subdirectory of the diag
2752
2752
By default, all of the collected particle data is written out at the end of the simulation. Optionally, the ``<diag_name>.intervals`` parameter can be given to specify writing out the data more often.
2753
2753
This can be important if a large number of particles are lost, avoiding filling up memory with the accumulated lost particle data.
2754
2754
2755
-
In addition to their usual attributes, the saved particles have an integer attribute ``timestamp``, which
2756
-
indicates the PIC iteration at which each particle was absorbed at the boundary.
2755
+
In addition to their usual attributes, the saved particles have an integer attribute ``step_scraped``, which
2756
+
indicates the PIC iteration at which each particle was absorbed at the boundary,
2757
+
and a real attribute ``time_scraped``, which indicates the exact time calculated when each
2758
+
particle hits the EB.
2757
2759
2758
2760
``BoundaryScrapingDiagnostics`` can be used with ``<diag_name>.<species>.random_fraction``, ``<diag_name>.<species>.uniform_stride``, and ``<diag_name>.<species>.plot_filter_function``, which have the same behavior as for ``FullDiagnostics``. For ``BoundaryScrapingDiagnostics``, these filters are applied at the time the data is written to file. An implication of this is that more particles may initially be accumulated in memory than are ultimately written. ``t`` in ``plot_filter_function`` refers to the time the diagnostic is written rather than the time the particle crossed the boundary.
print("percentage error for x = %5.4f %%"%(diff_x*100))
49
58
print("percentage error for y = %5.4f %%"%(diff_y*100))
50
59
51
-
assert (diff_x<tolerance) and (diff_y<tolerance) and (np.abs(z[0]) <1e-8) , 'Test point_of_contact did not pass'
60
+
assert (diff_x<tolerance) and (diff_y<tolerance) and (np.abs(z[0]) <1e-8) and (diff_step<1e-8) and (diff_time<tolerance_t) , 'Test point_of_contact did not pass'
0 commit comments