www.mooseframework.org
NSTemperatureAux.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 // Navier-Stokes inclues
9 #include "NSTemperatureAux.h"
10 #include "NS.h"
11 
12 // FluidProperties includes
14 
15 // MOOSE includes
16 #include "MooseMesh.h"
17 
18 template <>
19 InputParameters
21 {
22  InputParameters params = validParams<AuxKernel>();
23 
24  params.addClassDescription("Temperature is an auxiliary value computed from the total energy "
25  "based on the FluidProperties.");
26  // Mark variables as required
27  params.addRequiredCoupledVar(NS::specific_volume, "specific volume");
28  params.addRequiredCoupledVar(NS::internal_energy, "internal energy");
29  params.addRequiredParam<UserObjectName>("fluid_properties",
30  "The name of the user object for fluid properties");
31 
32  return params;
33 }
34 
35 NSTemperatureAux::NSTemperatureAux(const InputParameters & parameters)
36  : AuxKernel(parameters),
37  _specific_volume(coupledValue(NS::specific_volume)),
38  _internal_energy(coupledValue(NS::internal_energy)),
39  _fp(getUserObject<IdealGasFluidProperties>("fluid_properties"))
40 {
41 }
42 
43 Real
45 {
47 }
Definition: NS.h:13
const VariableValue & _internal_energy
virtual Real computeValue()
const IdealGasFluidProperties & _fp
const VariableValue & _specific_volume
InputParameters validParams< NSTemperatureAux >()
const std::string specific_volume
Definition: NS.h:29
virtual Real temperature(Real v, Real u) const override
Temperature as a function of specific internal energy and specific volume.
const std::string internal_energy
Definition: NS.h:28
Ideal gas fluid properties.
NSTemperatureAux(const InputParameters &parameters)