Cardinal
FilterBase.h
Go to the documentation of this file.
1 /********************************************************************/
2 /* SOFTWARE COPYRIGHT NOTIFICATION */
3 /* Cardinal */
4 /* */
5 /* (c) 2021 UChicago Argonne, LLC */
6 /* ALL RIGHTS RESERVED */
7 /* */
8 /* Prepared by UChicago Argonne, LLC */
9 /* Under Contract No. DE-AC02-06CH11357 */
10 /* With the U. S. Department of Energy */
11 /* */
12 /* Prepared by Battelle Energy Alliance, LLC */
13 /* Under Contract No. DE-AC07-05ID14517 */
14 /* With the U. S. Department of Energy */
15 /* */
16 /* See LICENSE for full restrictions */
17 /********************************************************************/
18 
19 #pragma once
20 
21 #include "MooseObject.h"
22 
23 #include "openmc/tallies/filter.h"
24 
27 
40 class FilterBase : public MooseObject
41 {
42 public:
43  static InputParameters validParams();
44 
45  FilterBase(const InputParameters & parameters);
46 
54  virtual std::string binName(unsigned int bin_index) const = 0;
55 
60  int numBins() const { return _filter->n_bins(); }
61 
66  openmc::Filter * getWrappedFilter();
67 
68 protected:
71 
73  openmc::Filter * _filter = nullptr;
74 
76  unsigned int _filter_index;
77 };
unsigned int _filter_index
The index of the OpenMC filter this class wraps.
Definition: FilterBase.h:76
Tally/filter includes.
Definition: OpenMCCellAverageProblem.h:64
openmc::Filter * getWrappedFilter()
int numBins() const
Definition: FilterBase.h:60
OpenMCCellAverageProblem & _openmc_problem
The OpenMCCellAverageProblem using the tally system.
Definition: FilterBase.h:70
FilterBase(const InputParameters &parameters)
static InputParameters validParams()
Definition: FilterBase.h:40
virtual std::string binName(unsigned int bin_index) const =0
openmc::Filter * _filter
The OpenMC filter this class wraps.
Definition: FilterBase.h:73