www.mooseframework.org
NormalizationAux.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* DO NOT MODIFY THIS HEADER */
3 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
4 /* */
5 /* (c) 2010 Battelle Energy Alliance, LLC */
6 /* ALL RIGHTS RESERVED */
7 /* */
8 /* Prepared by Battelle Energy Alliance, LLC */
9 /* Under Contract No. DE-AC07-05ID14517 */
10 /* With the U. S. Department of Energy */
11 /* */
12 /* See COPYRIGHT for full restrictions */
13 /****************************************************************/
14 
15 #include "NormalizationAux.h"
16 
17 template <>
20 {
22  params.addRequiredCoupledVar("source_variable", "The variable to be normalized");
23  params.addRequiredParam<PostprocessorName>("normalization", "The postprocessor on the source");
24  params.addParam<Real>("normal_factor", 1.0, "The normalization factor");
25  return params;
26 }
27 
29  : AuxKernel(parameters),
30  _src(coupledValue("source_variable")),
31  _pp_on_source(getPostprocessorValue("normalization")),
32  _normal_factor(getParam<Real>("normal_factor"))
33 {
34 }
35 
36 Real
38 {
40 }
virtual Real computeValue() override
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
const VariableValue & _src
void addRequiredParam(const std::string &name, const std::string &doc_string)
This method adds a parameter and documentation string to the InputParameters object that will be extr...
InputParameters validParams< AuxKernel >()
Definition: AuxKernel.C:30
const Real & _pp_on_source
unsigned int _qp
Quadrature point index.
Definition: AuxKernel.h:192
Base class for creating new auxiliary kernels and auxiliary boundary conditions.
Definition: AuxKernel.h:51
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
This method adds a coupled variable name pair.
NormalizationAux(const InputParameters &parameters)
void addParam(const std::string &name, const S &value, const std::string &doc_string)
These methods add an option parameter and a documentation string to the InputParameters object...
InputParameters validParams< NormalizationAux >()