Cardinal
Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
ElementOpticalDepthIndicator Class Reference

#include <ElementOpticalDepthIndicator.h>

Inheritance diagram for ElementOpticalDepthIndicator:
[legend]

Public Member Functions

 ElementOpticalDepthIndicator (const InputParameters &parameters)
 
virtual void computeIndicator () override
 

Static Public Member Functions

static InputParameters validParams ()
 

Protected Types

enum  HType { HType::Min = 0, HType::Max = 1, HType::CubeRoot = 2 }
 The type of element length to use for estimating the optical depth. More...
 

Protected Member Functions

std::string getScore (const std::string &score_param)
 
std::string tallyByScore (const std::string &score, const std::string &tally_param)
 
Real stdev (const double &mean, const double &sum_sq, unsigned int realizations) const
 
Real kMean (const eigenvalue::EigenvalueEnum estimator) const
 
Real kStandardDeviation (const eigenvalue::EigenvalueEnum estimator) const
 

Protected Attributes

enum ElementOpticalDepthIndicator::HType _h_type
 
std::vector< const VariableValue * > _rxn_rates
 
std::vector< const VariableValue * > _scalar_fluxes
 
const bool _invert
 Whether or not the optical depth should be inverted or not. More...
 
MooseVariable & _field_var
 The field variable holding the results of this indicator. More...
 
const Elem *const & _current_elem
 The current element. More...
 
OpenMCCellAverageProblem_openmc_problem
 The OpenMCCellAverageProblem required by all objects which inherit from OpenMCBase. More...
 

Detailed Description

An Indicator which returns an estimate of the optical depth experienced by photons/neutrons which traverse the element.

Member Enumeration Documentation

◆ HType

The type of element length to use for estimating the optical depth.

Enumerator
Min 
Max 
CubeRoot 

Constructor & Destructor Documentation

◆ ElementOpticalDepthIndicator()

ElementOpticalDepthIndicator::ElementOpticalDepthIndicator ( const InputParameters &  parameters)

Member Function Documentation

◆ computeIndicator()

virtual void ElementOpticalDepthIndicator::computeIndicator ( )
overridevirtual

◆ getScore()

std::string TallyInterface::getScore ( const std::string &  score_param)
protectedinherited

Get the score given a parameter name which points to a MooseEnum parameter. This checks to ensure that the score is valid (at least one tally is accumulating it).

Parameters
[in]score_paramthe name of the input parameter holding the score
Returns
the valid score

◆ kMean()

Real OpenMCBase::kMean ( const eigenvalue::EigenvalueEnum  estimator) const
protectedinherited

A function which computes the mean value of \(k_{eff}\).

Parameters
[in]estimatortype of estimator
Returns
the mean value of the k-eigenvalue

◆ kStandardDeviation()

Real OpenMCBase::kStandardDeviation ( const eigenvalue::EigenvalueEnum  estimator) const
protectedinherited

A function which computes the standard deviation of \(k_{eff}\).

Parameters
[in]estimatortype of estimator
Returns
the standard deviation of the k-eigenvalue

◆ stdev()

Real OpenMCBase::stdev ( const double &  mean,
const double &  sum_sq,
unsigned int  realizations 
) const
protectedinherited

Compute standard deviation of a variable

Parameters
[in]meanmean
[in]sum_sqsum squared
[in]realizationsthe number of realizations of the variable
Returns
standard deviation

◆ tallyByScore()

std::string TallyInterface::tallyByScore ( const std::string &  score,
const std::string &  tally_param 
)
protectedinherited

Fetch a tally name by the score and the tally param in the input parameters. This checks the tally to ensure it is valid for the given score. If the parameter 'tally_param' is not valid and only one tally object accumulates 'score', this function returns the name of that tally.

Parameters
[in]scorethe score which the tally should be accumulating
[in]tally_paramthe parameter name in the input parameters for '_object' which contains the name of a tally.
Returns
the name of the tally which can be used to fetch score variables

◆ validParams()

static InputParameters ElementOpticalDepthIndicator::validParams ( )
static

Member Data Documentation

◆ _current_elem

const Elem* const& OpenMCIndicator::_current_elem
protectedinherited

The current element.

◆ _field_var

MooseVariable& OpenMCIndicator::_field_var
protectedinherited

The field variable holding the results of this indicator.

◆ _h_type

enum ElementOpticalDepthIndicator::HType ElementOpticalDepthIndicator::_h_type
protected

◆ _invert

const bool ElementOpticalDepthIndicator::_invert
protected

Whether or not the optical depth should be inverted or not.

◆ _openmc_problem

OpenMCCellAverageProblem* OpenMCBase::_openmc_problem
protectedinherited

The OpenMCCellAverageProblem required by all objects which inherit from OpenMCBase.

◆ _rxn_rates

std::vector<const VariableValue *> ElementOpticalDepthIndicator::_rxn_rates
protected

The variables containing the reaction rate. This needs to be a vector because the reaction rate score may have filters applied, and so we need to sum the reaction rate over all filter bins.

◆ _scalar_fluxes

std::vector<const VariableValue *> ElementOpticalDepthIndicator::_scalar_fluxes
protected

The variables containing the scalar flux. This needs to be a vector because the scalar flux score may have filters applied, and so we need to sum the scalar fluxes over all filter bins.


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