https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ADSaturationTemperatureMaterial.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
20 params.addRequiredParam<MaterialPropertyName>("p", "Pressure material property");
21 params.addRequiredParam<MaterialPropertyName>(
22 "T_sat", "Name to give saturation temperature material property");
23
24 params.addRequiredParam<UserObjectName>("fp_2phase",
25 "Two-phase fluid properties user object name");
26
27 params.addClassDescription("Computes saturation temperature at some pressure");
28
29 return params;
30}
31
33 : Material(parameters),
34
35 _p(getADMaterialProperty<Real>("p")),
36 _T_sat_name(getParam<MaterialPropertyName>("T_sat")),
37 _T_sat(declareADProperty<Real>(_T_sat_name)),
38
39 _fp_2phase(getUserObject<TwoPhaseFluidProperties>("fp_2phase"))
40{
41}
42
43void
registerMooseObject("FluidPropertiesApp", ADSaturationTemperatureMaterial)
Computes saturation temperature at some pressure.
ADSaturationTemperatureMaterial(const InputParameters &parameters)
const ADMaterialProperty< Real > & _p
Pressure.
const TwoPhaseFluidProperties & _fp_2phase
2-phase fluid properties object
ADMaterialProperty< Real > & _T_sat
Saturation temperature.
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
unsigned int _qp
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.