https://mooseframework.inl.gov
Loading...
Searching...
No Matches
SpecificTotalEnthalpyAux.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
11
13
16{
18 params.addRequiredCoupledVar("rhoA", "Conserved density");
19 params.addRequiredCoupledVar("rhoEA", "Conserved total energy");
20 params.addRequiredCoupledVar("p", "Pressure");
21 params.addRequiredCoupledVar("A", "Cross-sectional area");
22 params.addCoupledVar("alpha", 1., "Volume fraction");
23 params.addClassDescription("Compute the specific total enthalpy");
24
25 return params;
26}
27
29 : AuxKernel(parameters),
30 _rhoA(coupledValue("rhoA")),
31 _rhoEA(coupledValue("rhoEA")),
32 _pressure(coupledValue("p")),
33 _area(coupledValue("A")),
34 _alpha(coupledValue("alpha"))
35{
36}
37
38Real
registerMooseObject("ThermalHydraulicsApp", SpecificTotalEnthalpyAux)
static InputParameters validParams()
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
void addCoupledVar(const std::string &name, const std::string &doc_string)
Nodal auxiliary variable for specific total enthalpy.
SpecificTotalEnthalpyAux(const InputParameters &parameters)
static InputParameters validParams()