www.mooseframework.org
NSTemperatureAux.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 // Navier-Stokes inclues
11 #include "NSTemperatureAux.h"
12 #include "NS.h"
13 
14 // FluidProperties includes
16 
17 // MOOSE includes
18 #include "MooseMesh.h"
19 
20 registerMooseObject("NavierStokesApp", NSTemperatureAux);
21 
22 template <>
23 InputParameters
25 {
26  InputParameters params = validParams<AuxKernel>();
27 
28  params.addClassDescription("Temperature is an auxiliary value computed from the total energy "
29  "based on the FluidProperties.");
30  // Mark variables as required
31  params.addRequiredCoupledVar(NS::specific_volume, "specific volume");
32  params.addRequiredCoupledVar(NS::internal_energy, "internal energy");
33  params.addRequiredParam<UserObjectName>("fluid_properties",
34  "The name of the user object for fluid properties");
35 
36  return params;
37 }
38 
39 NSTemperatureAux::NSTemperatureAux(const InputParameters & parameters)
40  : AuxKernel(parameters),
41  _specific_volume(coupledValue(NS::specific_volume)),
42  _internal_energy(coupledValue(NS::internal_energy)),
43  _fp(getUserObject<IdealGasFluidProperties>("fluid_properties"))
44 {
45 }
46 
47 Real
49 {
51 }
IdealGasFluidProperties.h
NS::specific_volume
const std::string specific_volume
Definition: NS.h:30
IdealGasFluidProperties
Ideal gas fluid properties Default parameters are for air at atmospheric pressure and temperature.
Definition: IdealGasFluidProperties.h:26
validParams< NSTemperatureAux >
InputParameters validParams< NSTemperatureAux >()
Definition: NSTemperatureAux.C:24
NSTemperatureAux
Temperature is an auxiliary value computed from the total energy based on the FluidProperties.
Definition: NSTemperatureAux.h:25
NSTemperatureAux.h
NS
Definition: NS.h:14
IdealGasFluidProperties::T_from_v_e
virtual Real T_from_v_e(Real v, Real e) const override
Definition: IdealGasFluidProperties.C:88
NSTemperatureAux::NSTemperatureAux
NSTemperatureAux(const InputParameters &parameters)
Definition: NSTemperatureAux.C:39
NSTemperatureAux::_internal_energy
const VariableValue & _internal_energy
Definition: NSTemperatureAux.h:34
registerMooseObject
registerMooseObject("NavierStokesApp", NSTemperatureAux)
NS::internal_energy
const std::string internal_energy
Definition: NS.h:29
NSTemperatureAux::computeValue
virtual Real computeValue()
Definition: NSTemperatureAux.C:48
NS.h
NSTemperatureAux::_specific_volume
const VariableValue & _specific_volume
Definition: NSTemperatureAux.h:33
NSTemperatureAux::_fp
const IdealGasFluidProperties & _fp
Definition: NSTemperatureAux.h:37