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 
24 {
26 
27  params.addClassDescription("Temperature is an auxiliary value computed from the total energy "
28  "based on the FluidProperties.");
29  // Mark variables as required
30  params.addRequiredCoupledVar(NS::specific_volume, "specific volume");
31  params.addRequiredCoupledVar(NS::specific_internal_energy, "internal energy");
32  params.addRequiredParam<UserObjectName>("fluid_properties",
33  "The name of the user object for fluid properties");
34 
35  return params;
36 }
37 
39  : AuxKernel(parameters),
40  _specific_volume(coupledValue(NS::specific_volume)),
41  _specific_internal_energy(coupledValue(NS::specific_internal_energy)),
42  _fp(getUserObject<IdealGasFluidProperties>("fluid_properties"))
43 {
44  mooseDeprecated("The NSTemperatureAux aux kernel has been replaced by the "
45  "TemperatureAux kernel in the fluid properties module.");
46 }
47 
48 Real
50 {
52 }
void mooseDeprecated(Args &&... args) const
virtual Real computeValue()
const IdealGasFluidProperties & _fp
virtual Real T_from_v_e(Real v, Real e) const override
static const std::string specific_internal_energy
Definition: NS.h:60
static InputParameters validParams()
void addRequiredParam(const std::string &name, const std::string &doc_string)
const VariableValue & _specific_volume
static const std::string specific_volume
Definition: NS.h:79
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Temperature is an auxiliary value computed from the total energy based on the FluidProperties.
const VariableValue & _specific_internal_energy
registerMooseObject("NavierStokesApp", NSTemperatureAux)
void addClassDescription(const std::string &doc_string)
static InputParameters validParams()
Ideal gas fluid properties Default parameters are for air at atmospheric pressure and temperature...
NSTemperatureAux(const InputParameters &parameters)