|
24 | 24 | 'universe', 'material', 'cell', 'cellborn', 'surface', 'mesh', 'energy', |
25 | 25 | 'energyout', 'mu', 'musurface', 'polar', 'azimuthal', 'distribcell', 'delayedgroup', |
26 | 26 | 'energyfunction', 'cellfrom', 'materialfrom', 'legendre', 'spatiallegendre', |
27 | | - 'sphericalharmonics', 'zernike', 'zernikeradial', 'particle', 'cellinstance', |
28 | | - 'collision', 'time', 'parentnuclide', 'weight', 'meshborn', 'meshsurface', |
29 | | - 'meshmaterial', |
| 27 | + 'sphericalharmonics', 'zernike', 'zernikeradial', 'particle', 'particleout', |
| 28 | + 'cellinstance', 'collision', 'time', 'parentnuclide', 'weight', 'meshborn', |
| 29 | + 'meshsurface', 'meshmaterial', |
30 | 30 | ) |
31 | 31 |
|
32 | 32 | _CURRENT_NAMES = ( |
@@ -785,6 +785,29 @@ def from_xml_element(cls, elem, **kwargs): |
785 | 785 | filter_id = int(get_text(elem, "id")) |
786 | 786 | bins = get_elem_list(elem, "bins", str) or [] |
787 | 787 | return cls(bins, filter_id=filter_id) |
| 788 | + |
| 789 | + |
| 790 | +class ParticleoutFilter(ParticleFilter): |
| 791 | + """Bins tally events based on the outgoing particle type. |
| 792 | +
|
| 793 | + Parameters |
| 794 | + ---------- |
| 795 | + bins : str, or sequence of str |
| 796 | + The particles to tally represented as strings ('neutron', 'photon', |
| 797 | + 'electron', 'positron'). |
| 798 | + filter_id : int |
| 799 | + Unique identifier for the filter |
| 800 | +
|
| 801 | + Attributes |
| 802 | + ---------- |
| 803 | + bins : sequence of str |
| 804 | + The particles to tally |
| 805 | + id : int |
| 806 | + Unique identifier for the filter |
| 807 | + num_bins : Integral |
| 808 | + The number of filter bins |
| 809 | +
|
| 810 | + """ |
788 | 811 |
|
789 | 812 |
|
790 | 813 | class ParentNuclideFilter(ParticleFilter): |
|
0 commit comments