From 32784653ec0f0c2b5fc06d59a0eb6c35c137af73 Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Wed, 24 Jun 2020 16:28:39 -0500 Subject: [PATCH] Add missing filters in openmc/lib/filter.py --- openmc/lib/filter.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/openmc/lib/filter.py b/openmc/lib/filter.py index 92818a2aa..aab311345 100644 --- a/openmc/lib/filter.py +++ b/openmc/lib/filter.py @@ -202,6 +202,10 @@ class CellfromFilter(Filter): filter_type = 'cellfrom' +class CellInstanceFilter(Filter): + filter_type = 'cellinstance' + + class DelayedGroupFilter(Filter): filter_type = 'delayedgroup' @@ -340,6 +344,10 @@ class MuFilter(Filter): filter_type = 'mu' +class ParticleFilter(Filter): + filter_type = 'particle' + + class PolarFilter(Filter): filter_type = 'polar' @@ -418,6 +426,7 @@ _FILTER_TYPE_MAP = { 'cell': CellFilter, 'cellborn': CellbornFilter, 'cellfrom': CellfromFilter, + 'cellinstance': CellInstanceFilter, 'delayedgroup': DelayedGroupFilter, 'distribcell': DistribcellFilter, 'energy': EnergyFilter, @@ -428,6 +437,7 @@ _FILTER_TYPE_MAP = { 'mesh': MeshFilter, 'meshsurface': MeshSurfaceFilter, 'mu': MuFilter, + 'particle': ParticleFilter, 'polar': PolarFilter, 'sphericalharmonics': SphericalHarmonicsFilter, 'spatiallegendre': SpatialLegendreFilter,