Loading [MathJax]/extensions/tex2jax.js
Cardinal
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
FDTallyGradAux.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 "OpenMCAuxKernel.h"
22 
30 {
31 public:
32  static InputParameters validParams();
33 
34  FDTallyGradAux(const InputParameters & parameters);
35 
37  virtual void compute() override;
38 
39 protected:
41  virtual RealVectorValue computeValue() override { return RealVectorValue(0.0, 0.0, 0.0); }
42 
44  const unsigned int _bin_index;
45 
47  const VariableValue * _tally_val;
48 
50  const VariableValue * _tally_neighbor_val;
51 
57  RealEigenMatrix _sum_y_y_t;
58 
62  RealEigenVector _sum_y_du_dy;
63 };
const VariableValue * _tally_val
The element's tally value.
Definition: FDTallyGradAux.h:47
RealEigenMatrix _sum_y_y_t
Definition: FDTallyGradAux.h:57
Definition: OpenMCAuxKernel.h:27
Definition: FDTallyGradAux.h:29
static InputParameters validParams()
const unsigned int _bin_index
The external filter bin index for the score.
Definition: FDTallyGradAux.h:44
virtual RealVectorValue computeValue() override
Need to override computeValue() to avoid creating a pure-virtual class.
Definition: FDTallyGradAux.h:41
const VariableValue * _tally_neighbor_val
The neighboring element's tally value.
Definition: FDTallyGradAux.h:50
virtual void compute() override
We handle computing and storing the variable value manually.
RealEigenVector _sum_y_du_dy
Definition: FDTallyGradAux.h:62
FDTallyGradAux(const InputParameters &parameters)