Loading [MathJax]/extensions/tex2jax.js
Cardinal
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
EnergyFilter Class Reference

#include <EnergyFilter.h>

Inheritance diagram for EnergyFilter:
[legend]

Public Member Functions

 EnergyFilter (const InputParameters &parameters)
 
virtual std::string binName (unsigned int bin_index) const override
 
virtual bool skipBin (const unsigned int bin) const
 
int numBins () const
 
openmc::Filter * getWrappedFilter ()
 
std::vector< double > getGroupBoundaries (energyfilter::GroupStructureEnum group_structure)
 

Static Public Member Functions

static InputParameters validParams ()
 

Protected Attributes

OpenMCCellAverageProblem_openmc_problem
 The OpenMCCellAverageProblem using the tally system. More...
 
openmc::Filter * _filter = nullptr
 The OpenMC filter this class wraps. More...
 
unsigned int _filter_index
 The index of the OpenMC filter this class wraps. More...
 
std::vector< Real > _energy_bnds
 The energy bounds used to build bins. More...
 
const bool _reverse_bins
 Whether or not to reverse the ordering of energy bins during output. More...
 

Constructor & Destructor Documentation

◆ EnergyFilter()

EnergyFilter::EnergyFilter ( const InputParameters &  parameters)

Member Function Documentation

◆ binName()

virtual std::string EnergyFilter::binName ( unsigned int  bin_index) const
overridevirtual

A function which returns the short-form name for each bin of this filter. Used to label auxvariables a TallyBase scores in. EnergyFilter(s) use 'g' for each filter bin.

Parameters
[in]thebin index
Returns
a short name for the bin represented by bin_index

Implements FilterBase.

◆ getGroupBoundaries()

std::vector<double> EnergyBinBase::getGroupBoundaries ( energyfilter::GroupStructureEnum  group_structure)
inherited

A function which converts a GroupStructureEnum into the vector representation of the group structure.

Parameters
[in]structurethe requested group structure
Returns
the energy gruop boundaries

◆ getWrappedFilter()

openmc::Filter* FilterBase::getWrappedFilter ( )
inherited

Get the OpenMC filter that this object wraps.

Returns
the OpenMC filter object

◆ numBins()

int FilterBase::numBins ( ) const
inlineinherited

A function which gets the number of bins in the wrapped filter.

Returns
the number of bins in the filter

◆ skipBin()

virtual bool FilterBase::skipBin ( const unsigned int  bin) const
inlinevirtualinherited

Whether a specific bin should be skipped when computing sums and means for normalization. This is useful for functional expansion filters, where not all bins represent an average.

Parameters
[in]binthe filter bin
Returns
whether the bin should be skipped.

Reimplemented in AngularLegendreFilter, and SphericalHarmonicsFilter.

◆ validParams()

static InputParameters EnergyFilter::validParams ( )
static

Member Data Documentation

◆ _energy_bnds

std::vector<Real> EnergyBinBase::_energy_bnds
protectedinherited

The energy bounds used to build bins.

◆ _filter

openmc::Filter* FilterBase::_filter = nullptr
protectedinherited

The OpenMC filter this class wraps.

◆ _filter_index

unsigned int FilterBase::_filter_index
protectedinherited

The index of the OpenMC filter this class wraps.

◆ _openmc_problem

OpenMCCellAverageProblem& FilterBase::_openmc_problem
protectedinherited

The OpenMCCellAverageProblem using the tally system.

◆ _reverse_bins

const bool EnergyBinBase::_reverse_bins
protectedinherited

Whether or not to reverse the ordering of energy bins during output.


The documentation for this class was generated from the following file: