www.mooseframework.org
TwoPhaseFluidPropertiesIndependent.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 
15 template <>
16 InputParameters
18 {
19  InputParameters params = validParams<TwoPhaseFluidProperties>();
20 
21  params.addClassDescription(
22  "2-phase fluid properties for 2 independent single-phase fluid properties");
23 
24  params.makeParamRequired<UserObjectName>("fp_liquid");
25  params.makeParamRequired<UserObjectName>("fp_vapor");
26 
27  return params;
28 }
29 
31  const InputParameters & parameters)
32  : TwoPhaseFluidProperties(parameters)
33 
34 {
35  _fp_liquid = &getUserObject<SinglePhaseFluidProperties>("fp_liquid");
36  _fp_vapor = &getUserObject<SinglePhaseFluidProperties>("fp_vapor");
37 }
38 
39 [[noreturn]] void
41 {
42  mooseError(
43  name(),
44  ": The 2-phase fluid properties class 'TwoPhaseFluidPropertiesIndependent' does not allow "
45  "calling any 2-phase property interfaces.");
46 }
47 
48 Real
50 {
52 }
53 
55 
57 
TwoPhaseFluidPropertiesIndependent::throwNotImplementedError
void throwNotImplementedError() const
Calls mooseError with a message saying that this class cannot call 2-phase fluid properties.
Definition: TwoPhaseFluidPropertiesIndependent.C:40
validParams< TwoPhaseFluidPropertiesIndependent >
InputParameters validParams< TwoPhaseFluidPropertiesIndependent >()
Definition: TwoPhaseFluidPropertiesIndependent.C:17
TwoPhaseFluidProperties::_fp_liquid
const SinglePhaseFluidProperties * _fp_liquid
The user object that provides liquid phase fluid properties.
Definition: TwoPhaseFluidProperties.h:99
TwoPhaseFluidProperties::_fp_vapor
const SinglePhaseFluidProperties * _fp_vapor
The user object that provides vapor phase fluid properties.
Definition: TwoPhaseFluidProperties.h:101
SinglePhaseFluidProperties.h
TwoPhaseFluidPropertiesIndependent.h
registerMooseObject
registerMooseObject("FluidPropertiesApp", TwoPhaseFluidPropertiesIndependent)
TwoPhaseFluidPropertiesIndependent::p_critical
virtual Real p_critical() const override
Returns the critical pressure.
Definition: TwoPhaseFluidPropertiesIndependent.C:49
validParams< TwoPhaseFluidProperties >
InputParameters validParams< TwoPhaseFluidProperties >()
Definition: TwoPhaseFluidProperties.C:15
TwoPhaseFluidPropertiesIndependent::p_sat
virtual Real p_sat(Real T) const override
Computes the saturation pressure at a temperature.
Definition: TwoPhaseFluidPropertiesIndependent.C:56
TwoPhaseFluidPropertiesIndependent::TwoPhaseFluidPropertiesIndependent
TwoPhaseFluidPropertiesIndependent(const InputParameters &parameters)
Definition: TwoPhaseFluidPropertiesIndependent.C:30
name
const std::string name
Definition: Setup.h:21
TwoPhaseFluidProperties
Base class for fluid properties used with two-phase flow.
Definition: TwoPhaseFluidProperties.h:23
TwoPhaseFluidPropertiesIndependent::dT_sat_dp
virtual Real dT_sat_dp(Real p) const override
Computes dT/dp along the saturation line.
Definition: TwoPhaseFluidPropertiesIndependent.C:58
TwoPhaseFluidPropertiesIndependent
2-phase fluid properties for 2 independent single-phase fluid properties.
Definition: TwoPhaseFluidPropertiesIndependent.h:24
TwoPhaseFluidPropertiesIndependent::T_sat
virtual Real T_sat(Real p) const override
Computes the saturation temperature at a pressure.
Definition: TwoPhaseFluidPropertiesIndependent.C:54