https://mooseframework.inl.gov
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 
38 Real
40 {
41  // H = (rho*E + P) / rho
42  return (_rho_et[_qp] + _pressure[_qp]) / _rho[_qp];
43 }
static const std::string total_energy_density
Definition: NS.h:65
static const std::string density
Definition: NS.h:33
NSSpecificTotalEnthalpyAux(const InputParameters &parameters)
Nodal auxiliary variable, for computing enthalpy at the nodes.
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static const std::string pressure
Definition: NS.h:56
static InputParameters validParams()
void addClassDescription(const std::string &doc_string)
static InputParameters validParams()
registerMooseObject("NavierStokesApp", NSSpecificTotalEnthalpyAux)