https://mooseframework.inl.gov
Loading...
Searching...
No Matches
NSTemperatureAux.C
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
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
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
48Real
registerMooseObject("NavierStokesApp", NSTemperatureAux)
static InputParameters validParams()
Ideal gas fluid properties Default parameters are for air at atmospheric pressure and temperature.
virtual Real T_from_v_e(Real v, Real e) const override
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
void mooseDeprecated(Args &&... args) const
Temperature is an auxiliary value computed from the total energy based on the FluidProperties.
const IdealGasFluidProperties & _fp
static InputParameters validParams()
const VariableValue & _specific_internal_energy
virtual Real computeValue()
const VariableValue & _specific_volume
NSTemperatureAux(const InputParameters &parameters)
static const std::string specific_volume
Definition NS.h:82
static const std::string specific_internal_energy
Definition NS.h:63