https://mooseframework.inl.gov
TemperatureAux.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 #include "TemperatureAux.h"
12 
13 registerMooseObject("FluidPropertiesApp", TemperatureAux);
14 
17 {
19  params.addRequiredCoupledVar("e", "Specific internal energy");
20  params.addRequiredCoupledVar("v", "Specific volume");
21  params.addRequiredParam<UserObjectName>("fp", "The name of the user object for fluid properties");
22  params.addClassDescription(
23  "Computes temperature given specific volume and specific internal energy");
24  return params;
25 }
26 
28  : AuxKernel(parameters),
29  _v(coupledValue("v")),
30  _e(coupledValue("e")),
31  _fp(getUserObject<SinglePhaseFluidProperties>("fp"))
32 {
33 }
34 
35 Real
37 {
38  return _fp.T_from_v_e(_v[_qp], _e[_qp]);
39 }
const SinglePhaseFluidProperties & _fp
TemperatureAux(const InputParameters &parameters)
void addRequiredParam(const std::string &name, const std::string &doc_string)
const VariableValue & _v
Compute temperature values from specific volume and internal energy.
Common class for single phase fluid properties.
static InputParameters validParams()
const VariableValue & _e
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
virtual Real computeValue()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void addClassDescription(const std::string &doc_string)
static InputParameters validParams()
registerMooseObject("FluidPropertiesApp", TemperatureAux)