www.mooseframework.org
MaterialRealAux.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 "MaterialRealAux.h"
16 
17 template <>
20 {
21  InputParameters params = validParams<MaterialAuxBase<Real>>();
22  params.addClassDescription("Outputs element volume-averaged material properties");
23  return params;
24 }
25 
27  : MaterialAuxBase<Real>(parameters)
28 {
29 }
30 
31 Real
33 {
34  return _prop[_qp];
35 }
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
A base class for the various Material related AuxKernal objects.
const MaterialProperty< Real > & _prop
Reference to the material property for this AuxKernel.
InputParameters validParams< MaterialRealAux >()
unsigned int _qp
Quadrature point index.
Definition: AuxKernel.h:192
virtual Real getRealValue()
Returns the material property values at quadrature points.
void addClassDescription(const std::string &doc_string)
This method adds a description of the class that will be displayed in the input file syntax dump...
MaterialRealAux(const InputParameters &parameters)
Class constructor.