https://mooseframework.inl.gov
Loading...
Searching...
No Matches
TwoPhaseNCGFluidProperties.h
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
10#pragma once
11
14
15#pragma GCC diagnostic push
16#pragma GCC diagnostic ignored "-Woverloaded-virtual"
17
23{
24public:
26
28
29 const UserObjectName & getLiquidName() const override { return _fp_2phase->getLiquidName(); }
30 const UserObjectName & getVaporName() const override { return _fp_2phase->getVaporName(); }
31
35 const UserObjectName & getVaporMixtureName() const { return _vapor_mixture_name; }
36
40 unsigned int getNumberOfNCGs() const { return _fp_vapor_mixture->getNumberOfSecondaryVapors(); }
41
45 virtual Real p_critical() const override { return _fp_2phase->p_critical(); }
46
52 virtual Real T_sat(Real p) const override { return _fp_2phase->T_sat(p); }
53 virtual ADReal T_sat(const ADReal & p) const override { return _fp_2phase->T_sat(p); }
54
60 virtual Real p_sat(Real T) const override { return _fp_2phase->p_sat(T); }
61 virtual ADReal p_sat(const ADReal & T) const override { return _fp_2phase->p_sat(T); }
62
68 virtual Real dT_sat_dp(Real p) const override { return _fp_2phase->dT_sat_dp(p); }
69
76 virtual Real h_lat(Real p, Real T) const override { return _fp_2phase->h_lat(p, T); }
77 virtual ADReal h_lat(const ADReal & p, const ADReal & T) const override
78 {
79 return _fp_2phase->h_lat(p, T);
80 }
81
82 virtual bool supportsPhaseChange() const override { return _fp_2phase->supportsPhaseChange(); }
83
84protected:
86 const UserObjectName _2phase_name;
88 const UserObjectName _vapor_mixture_name;
89
94};
95
96#pragma GCC diagnostic pop
DualNumber< Real, DNDerivativeType, true > ADReal
const Real p
const double T
const InputParameters & parameters() const
Base class for fluid properties used with two-phase flow.
virtual Real p_critical() const =0
Returns the critical pressure.
virtual Real dT_sat_dp(Real p) const =0
Computes dT/dp along the saturation line.
virtual const UserObjectName & getLiquidName() const
Returns the name of the liquid single-phase fluid properties object.
virtual bool supportsPhaseChange() const =0
Returns true if phase change is supported, otherwise false.
virtual Real p_sat(Real T) const =0
Computes the saturation pressure at a temperature.
virtual Real h_lat(Real p, Real T) const
Computes latent heat of vaporization.
virtual Real T_sat(Real p) const =0
Computes the saturation temperature at a pressure.
virtual const UserObjectName & getVaporName() const
Returns the name of the vapor single-phase fluid properties object.
Base class for fluid properties used with 2-phase flow with non-condensable gases (NCGs) present.
virtual ADReal p_sat(const ADReal &T) const override
virtual Real p_critical() const override
Returns the critical pressure.
virtual ADReal T_sat(const ADReal &p) const override
const UserObjectName & getLiquidName() const override
Returns the name of the liquid single-phase fluid properties object.
virtual Real T_sat(Real p) const override
Computes the saturation temperature at a pressure.
virtual Real p_sat(Real T) const override
Computes the saturation pressure at a temperature.
unsigned int getNumberOfNCGs() const
Returns the number of non-condensable gases.
const VaporMixtureFluidProperties * _fp_vapor_mixture
Vapor mixture fluid properties user object.
static InputParameters validParams()
virtual Real h_lat(Real p, Real T) const override
Computes latent heat of vaporization.
const UserObjectName _2phase_name
Two-phase fluid properties user object name.
const UserObjectName & getVaporMixtureName() const
Returns the name of the vapor mixture fluid properties object.
virtual ADReal h_lat(const ADReal &p, const ADReal &T) const override
const UserObjectName & getVaporName() const override
Returns the name of the vapor single-phase fluid properties object.
const TwoPhaseFluidProperties * _fp_2phase
Two-phase fluid properties user object.
virtual bool supportsPhaseChange() const override
Returns true if phase change is supported, otherwise false.
const UserObjectName _vapor_mixture_name
Vapor mixture fluid properties user object name.
virtual Real dT_sat_dp(Real p) const override
Computes dT/dp along the saturation line.
Base class for fluid properties of vapor mixtures.