https://mooseframework.inl.gov
Loading...
Searching...
No Matches
NSSpecificTotalEnthalpyAux.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 includes
12#include "NS.h"
13
15
18{
20
21 params.addClassDescription("Nodal auxiliary variable, for computing enthalpy at the nodes.");
22 // Mark variables as required
23 params.addRequiredCoupledVar(NS::density, "density");
24 params.addRequiredCoupledVar(NS::total_energy_density, "total energy");
25 params.addRequiredCoupledVar(NS::pressure, "pressure");
26
27 return params;
28}
29
31 : AuxKernel(parameters),
32 _rho(coupledValue(NS::density)),
33 _rho_et(coupledValue(NS::total_energy_density)),
34 _pressure(coupledValue(NS::pressure))
35{
36}
37
38Real
40{
41 // H = (rho*E + P) / rho
42 return (_rho_et[_qp] + _pressure[_qp]) / _rho[_qp];
43}
registerMooseObject("NavierStokesApp", NSSpecificTotalEnthalpyAux)
static InputParameters validParams()
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
Nodal auxiliary variable, for computing enthalpy at the nodes.
NSSpecificTotalEnthalpyAux(const InputParameters &parameters)
static InputParameters validParams()
static const std::string density
Definition NS.h:34
static const std::string total_energy_density
Definition NS.h:66
static const std::string pressure
Definition NS.h:57