Loading [MathJax]/extensions/tex2jax.js
Cardinal
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
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
40class FilterBase : public MooseObject
41{
42public:
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
68protected:
71
73 openmc::Filter * _filter = nullptr;
74
76 unsigned int _filter_index;
77};
Definition FilterBase.h:41
OpenMCCellAverageProblem & _openmc_problem
The OpenMCCellAverageProblem using the tally system.
Definition FilterBase.h:70
FilterBase(const InputParameters &parameters)
openmc::Filter * getWrappedFilter()
virtual std::string binName(unsigned int bin_index) const =0
int numBins() const
Definition FilterBase.h:60
openmc::Filter * _filter
The OpenMC filter this class wraps.
Definition FilterBase.h:73
static InputParameters validParams()
unsigned int _filter_index
The index of the OpenMC filter this class wraps.
Definition FilterBase.h:76
Definition OpenMCCellAverageProblem.h:67