https://mooseframework.inl.gov
Loading...
Searching...
No Matches
TwoPhaseFluidPropertiesIndependent.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 "2-phase fluid properties for 2 independent single-phase fluid properties");
22
23 params.makeParamRequired<UserObjectName>("fp_liquid");
24 params.makeParamRequired<UserObjectName>("fp_vapor");
25 params.addParam<bool>(
26 "error_on_unimplemented",
27 true,
28 "If true, throw an error when a 2-phase interface is called. Else, return a zero value.");
29
30 return params;
31}
32
34 const InputParameters & parameters)
35 : TwoPhaseFluidProperties(parameters),
36
37 _error_on_unimplemented(getParam<bool>("error_on_unimplemented"))
38{
39 _fp_liquid = &getUserObject<SinglePhaseFluidProperties>("fp_liquid");
40 _fp_vapor = &getUserObject<SinglePhaseFluidProperties>("fp_vapor");
41}
42
43Real
45{
48 "The 2-phase fluid properties class 'TwoPhaseFluidPropertiesIndependent' does not allow "
49 "calling any 2-phase property interfaces.");
50 else
51 return 0;
52}
53
54Real
59
60Real
65
66Real
71
77
78Real
83
89
90Real
95
96Real
101
102Real
107
108ADReal
113
114Real
DualNumber< Real, DNDerivativeType, true > ADReal
registerMooseObject("FluidPropertiesApp", TwoPhaseFluidPropertiesIndependent)
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
void makeParamRequired(const std::string &name)
void mooseError(Args &&... args) const
2-phase fluid properties for 2 independent single-phase fluid properties.
TwoPhaseFluidPropertiesIndependent(const InputParameters &parameters)
virtual Real T_sat(Real p) const override
Computes the saturation temperature at a pressure.
virtual Real dsigma_dT_from_T(Real T) const override
Computes dsigma/dT along the saturation line.
const bool _error_on_unimplemented
If true, throw an error when a 2-phase interface is called. Else, return a zero value.
Real getTwoPhaseInterfaceDummyValue() const
Returns a dummy zero value or throws a mooseError.
virtual Real L_fusion() const override
Returns the latent heat of fusion.
virtual Real T_triple() const override
Returns the triple-point temperature.
virtual Real p_sat(Real T) const override
Computes the saturation pressure at a temperature.
virtual Real dT_sat_dp(Real p) const override
Computes dT/dp along the saturation line.
virtual Real p_critical() const override
Returns the critical pressure.
virtual Real sigma_from_T(Real T) const override
Computes surface tension sigma of saturated liquid in contact with saturated vapor.
Base class for fluid properties used with two-phase flow.
static InputParameters validParams()
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.