www.mooseframework.org
CNSFVPressureAux.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 
8 #include "CNSFVPressureAux.h"
9 
10 template <>
11 InputParameters
13 {
14  InputParameters params = validParams<AuxKernel>();
15  params.addClassDescription("An aux kernel for calculating pressure.");
16  return params;
17 }
18 
19 CNSFVPressureAux::CNSFVPressureAux(const InputParameters & parameters)
20  : AuxKernel(parameters), _pres(getMaterialProperty<Real>("pressure"))
21 {
22 }
23 
24 Real
26 {
27  return _pres[_qp];
28 }
CNSFVPressureAux(const InputParameters &parameters)
InputParameters validParams< CNSFVPressureAux >()
const MaterialProperty< Real > & _pres
virtual Real computeValue()