https://mooseframework.inl.gov
SaturationTemperatureAux.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 
12 
13 registerMooseObject("FluidPropertiesApp", SaturationTemperatureAux);
14 
17 {
19 
20  params.addClassDescription(
21  "Computes saturation temperature from pressure and 2-phase fluid properties object");
22 
23  params.addRequiredCoupledVar("p", "Pressure at which to evaluate saturation temperature");
24  params.addRequiredParam<UserObjectName>("fp_2phase",
25  "The name of the user object with fluid properties");
26 
27  return params;
28 }
29 
31  : AuxKernel(parameters),
32 
33  _p(coupledValue("p")),
34  _fp_2phase(getUserObject<TwoPhaseFluidProperties>("fp_2phase"))
35 {
36 }
37 
38 Real
40 {
41  return _fp_2phase.T_sat(_p[_qp]);
42 }
static InputParameters validParams()
void addRequiredParam(const std::string &name, const std::string &doc_string)
Base class for fluid properties used with two-phase flow.
SaturationTemperatureAux(const InputParameters &parameters)
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
virtual Real T_sat(Real p) const =0
Computes the saturation temperature at a pressure.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
registerMooseObject("FluidPropertiesApp", SaturationTemperatureAux)
const TwoPhaseFluidProperties & _fp_2phase
2-phase fluid properties object
const VariableValue & _p
Pressure at which to evaluate saturation temperature.
void addClassDescription(const std::string &doc_string)
Computes saturation temperature from pressure and 2-phase fluid properties object.
static InputParameters validParams()