www.mooseframework.org
CNSFVMachAux.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 "CNSFVMachAux.h"
9 
10 template <>
11 InputParameters
13 {
14  InputParameters params = validParams<AuxKernel>();
15  params.addClassDescription("An aux kernel for calculating Mach number.");
16  return params;
17 }
18 
19 CNSFVMachAux::CNSFVMachAux(const InputParameters & parameters)
20  : AuxKernel(parameters), _mach(getMaterialProperty<Real>("mach_number"))
21 {
22 }
23 
24 Real
26 {
27  return _mach[_qp];
28 }
CNSFVMachAux(const InputParameters &parameters)
Definition: CNSFVMachAux.C:19
InputParameters validParams< CNSFVMachAux >()
Definition: CNSFVMachAux.C:12
const MaterialProperty< Real > & _mach
Definition: CNSFVMachAux.h:30
virtual Real computeValue()
Definition: CNSFVMachAux.C:25