https://mooseframework.inl.gov
Loading...
Searching...
No Matches
THMSpecificInternalEnergyAux.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("rhouA", "Conserved momentum");
20 params.addRequiredCoupledVar("rhoEA", "Conserved total energy");
21 params.addClassDescription("Computed the specific internal energy.");
22 return params;
23}
24
26 : AuxKernel(parameters),
27 _rho(coupledValue("rhoA")),
28 _rhou(coupledValue("rhouA")),
29 _rhoE(coupledValue("rhoEA"))
30{
31}
32
33Real
registerMooseObject("ThermalHydraulicsApp", THMSpecificInternalEnergyAux)
static InputParameters validParams()
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
Computes specific internal energy.
const VariableValue & _rho
density, rho
const VariableValue & _rhoE
total energy, rhoE
const VariableValue & _rhou
momentum, rhou
THMSpecificInternalEnergyAux(const InputParameters &parameters)