Go to the documentation of this file.
18 params.addCustomTypeParam<std::string>(
19 "fp_type",
"two-phase-fp",
"FPType",
"Type of the fluid property object");
20 params.addParam<UserObjectName>(
"fp_liquid",
21 "Liquid single-phase fluid properties user object name");
22 params.addParam<UserObjectName>(
"fp_vapor",
23 "Vapor single-phase fluid properties user object name");
31 _liquid_name(isParamValid(
"fp_liquid") ? getParam<UserObjectName>(
"fp_liquid")
32 : UserObjectName(
name() +
":liquid")),
33 _vapor_name(isParamValid(
"fp_vapor") ? getParam<UserObjectName>(
"fp_vapor")
34 : UserObjectName(
name() +
":vapor"))
39 if (!isParamValid(
"fp_liquid"))
40 if (_tid == 0 && _fe_problem.hasUserObject(
_liquid_name))
41 paramError(
"fp_liquid",
42 "The two-phase fluid properties object '" +
name() +
"' is ",
43 "trying to create a single-phase fluid properties object with ",
46 "', but a single-phase fluid properties ",
47 "object with this name already exists.");
48 if (!isParamValid(
"fp_vapor"))
49 if (_tid == 0 && _fe_problem.hasUserObject(
_vapor_name))
50 paramError(
"fp_vapor",
51 "The two-phase fluid properties object '" +
name() +
"' is ",
52 "trying to create a single-phase fluid properties object with ",
55 "', but a single-phase fluid properties ",
56 "object with this name already exists.");
67 mooseError(
name(),
": ", __PRETTY_FUNCTION__,
" is not implemented.");
72 mooseError(
name(),
": ", __PRETTY_FUNCTION__,
" is not implemented.");
const UserObjectName _liquid_name
The name of the user object that provides liquid phase fluid properties.
virtual Real sigma_from_T(Real T) const
Computes surface tension sigma of saturated liquid in contact with saturated vapor.
const SinglePhaseFluidProperties * _fp_liquid
The user object that provides liquid phase fluid properties.
const SinglePhaseFluidProperties * _fp_vapor
The user object that provides vapor phase fluid properties.
const UserObjectName _vapor_name
The name of the user object that provides vapor phase fluid properties.
InputParameters validParams< TwoPhaseFluidProperties >()
TwoPhaseFluidProperties(const InputParameters ¶meters)
virtual Real h_lat(Real p, Real T) const
Computes latent heat of vaporization.
InputParameters validParams< FluidProperties >()
virtual Real dsigma_dT_from_T(Real T) const
Computes dsigma/dT along the saturation line.