https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
14
17{
19
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
38Real
registerMooseObject("FluidPropertiesApp", SaturationTemperatureAux)
static InputParameters validParams()
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
Computes saturation temperature from pressure and 2-phase fluid properties object.
const VariableValue & _p
Pressure at which to evaluate saturation temperature.
const TwoPhaseFluidProperties & _fp_2phase
2-phase fluid properties object
SaturationTemperatureAux(const InputParameters &parameters)
static InputParameters validParams()
Base class for fluid properties used with two-phase flow.
virtual Real T_sat(Real p) const =0
Computes the saturation temperature at a pressure.