#include <FDTallyGradAux.h>
|
| | FDTallyGradAux (const InputParameters ¶meters) |
| |
| virtual void | compute () override |
| | We handle computing and storing the variable value manually. More...
|
| |
A class which approximates gradients of constant monomial tallies using forward finite differences. The gradient computation is based on: K. N. Stolte and P. V. Tsvetkov (2023), Annals of Nuclear Energy, 182, 109617. https://doi.org/10.1016/j.anucene.2022.109617
◆ FDTallyGradAux()
| FDTallyGradAux::FDTallyGradAux |
( |
const InputParameters & |
parameters | ) |
|
◆ compute()
| virtual void FDTallyGradAux::compute |
( |
| ) |
|
|
overridevirtual |
We handle computing and storing the variable value manually.
◆ computeValue()
| virtual RealVectorValue FDTallyGradAux::computeValue |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ 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_param | the name of the input parameter holding the score |
- Returns
- the valid score
◆ kMean()
A function which computes the mean value of \(k_{eff}\).
- Parameters
-
| [in] | estimator | type of estimator |
- Returns
- the mean value of the k-eigenvalue
◆ kStandardDeviation()
A function which computes the standard deviation of \(k_{eff}\).
- Parameters
-
| [in] | estimator | type of estimator |
- Returns
- the standard deviation of the k-eigenvalue
◆ mappedElement()
template<typename ComputeValueType >
Determine whether the MOOSE element maps to an OpenMC cell to make sure we don't call accessor methods that rely on valid values for the cell instance and index
- Returns
- whether element maps to OpenMC
◆ stdev()
| Real OpenMCBase::stdev |
( |
const double & |
mean, |
|
|
const double & |
sum_sq, |
|
|
unsigned int |
realizations |
|
) |
| const |
|
protectedinherited |
Compute standard deviation of a variable
- Parameters
-
| [in] | mean | mean |
| [in] | sum_sq | sum squared |
| [in] | realizations | the 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] | score | the score which the tally should be accumulating |
| [in] | tally_param | the 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 FDTallyGradAux::validParams |
( |
| ) |
|
|
static |
◆ _bin_index
| const unsigned int FDTallyGradAux::_bin_index |
|
protected |
The external filter bin index for the score.
◆ _openmc_problem
◆ _sum_y_du_dy
| RealEigenVector FDTallyGradAux::_sum_y_du_dy |
|
protected |
The sum of the finite difference approximation of u multiplied by y'.
◆ _sum_y_y_t
| RealEigenMatrix FDTallyGradAux::_sum_y_y_t |
|
protected |
The sum of outer products of y' with itself, where y' = x_j - x_i. x_j is the centroid of the neighboring element j of element i. x_i is the centroid of element i.
◆ _tally_neighbor_val
| const VariableValue* FDTallyGradAux::_tally_neighbor_val |
|
protected |
The neighboring element's tally value.
◆ _tally_val
| const VariableValue* FDTallyGradAux::_tally_val |
|
protected |
The element's tally value.
The documentation for this class was generated from the following file: