Go to the documentation of this file.
21 #include "MooseObject.h"
24 #include "openmc/tallies/tally.h"
25 #include "xtensor/xview.hpp"
30 class AuxiliarySystem;
37 TallyBase(
const InputParameters & parameters);
45 virtual std::pair<unsigned int, openmc::Filter *>
spatialFilter() = 0;
67 virtual Real
storeResults(
const std::vector<unsigned int> & var_numbers,
68 unsigned int local_score,
69 unsigned int global_score,
70 const std::string & output_type) = 0;
76 void addScore(
const std::string & score);
179 const std::vector<unsigned int> & elem_ids,
std::vector< Real > _local_sum_tally
Sum value of this tally across all bins. Indexed by score.
Definition: TallyBase.h:216
void applyTriggersToLocalTally(openmc::Tally *tally)
openmc::TallyEstimator getTallyEstimator() const
Definition: TallyBase.h:137
virtual void resetTally()
void relaxAndNormalizeTally(unsigned int local_score, const Real &alpha, const Real &norm)
bool hasTrigger() const
Definition: TallyBase.h:157
AuxiliarySystem & _aux
The aux system.
Definition: TallyBase.h:195
const bool _has_outputs
Whether this tally has additional outputs or not.
Definition: TallyBase.h:261
static InputParameters validParams()
const std::vector< std::string > & getScores() const
Definition: TallyBase.h:116
const MultiMooseEnum * _tally_trigger
Definition: TallyBase.h:230
std::vector< Real > _local_mean_tally
Definition: TallyBase.h:222
TallyBase(const InputParameters ¶meters)
OpenMCCellAverageProblem & _openmc_problem
The OpenMCCellAverageProblem using the tally system.
Definition: TallyBase.h:189
virtual void initializeTally()
const Real & getMean(unsigned int local_score) const
Definition: TallyBase.h:144
std::vector< std::string > _tally_score
OpenMC tally score(s) to use with this tally.
Definition: TallyBase.h:201
Tally includes.
Definition: OpenMCCellAverageProblem.h:65
openmc::TallyEstimator _estimator
The OpenMC estimator to use with this tally.
Definition: TallyBase.h:198
void fillElementalAuxVariable(const unsigned int &var_num, const std::vector< unsigned int > &elem_ids, const Real &value)
const Real & getSum(unsigned int local_score) const
Definition: TallyBase.h:151
std::vector< xt::xtensor< double, 1 > > _current_tally
Definition: TallyBase.h:246
virtual Real storeResults(const std::vector< unsigned int > &var_numbers, unsigned int local_score, unsigned int global_score, const std::string &output_type)=0
static constexpr Real ZERO_TALLY_THRESHOLD
Tolerance for setting zero tally.
Definition: TallyBase.h:267
std::vector< Real > _tally_trigger_threshold
Definition: TallyBase.h:236
std::vector< std::string > _tally_name
Auxiliary variable name(s) for this tally.
Definition: TallyBase.h:204
bool hasOutputs() const
Definition: TallyBase.h:163
std::vector< std::string > _output_name
Suffixes to apply to 'tally_name' in order to name the fields in the 'output'.
Definition: TallyBase.h:264
const openmc::Tally * getWrappedTally() const
virtual std::pair< unsigned int, openmc::Filter * > spatialFilter()=0
std::vector< xt::xtensor< double, 1 > > _current_raw_tally
Current "raw" tally output from Monte Carlo solution.
Definition: TallyBase.h:252
Definition: TallyBase.h:32
const bool _renames_tally_vars
Whether this tally stores results in variables names something other than '_tally_score'.
Definition: TallyBase.h:258
unsigned int _local_tally_index
The index of the OpenMC tally this object wraps.
Definition: TallyBase.h:210
unsigned int _filter_index
The index of the first filter added by this tally.
Definition: TallyBase.h:213
std::vector< xt::xtensor< double, 1 > > _current_raw_tally_std_dev
Current "raw" tally standard deviation.
Definition: TallyBase.h:255
const std::vector< std::string > & getAuxVarNames() const
Definition: TallyBase.h:124
bool renamesTallyVars() const
Definition: TallyBase.h:169
void addScore(const std::string &score)
const std::vector< std::string > & getOutputs() const
Definition: TallyBase.h:131
MooseMesh & _mesh
The MooseMesh.
Definition: TallyBase.h:192
Definition: CardinalEnums.h:128
std::vector< xt::xtensor< double, 1 > > _previous_tally
Previous fixed point iteration tally result (after relaxation)
Definition: TallyBase.h:249
openmc::Tally * _local_tally
The OpenMC tally object this class wraps.
Definition: TallyBase.h:207