www.mooseframework.org
TwoPhaseNCGFluidProperties.h
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 
10 #pragma once
11 
14 
15 #pragma GCC diagnostic push
16 #pragma GCC diagnostic ignored "-Woverloaded-virtual"
17 
23 {
24 public:
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 
59  virtual Real p_sat(Real T) const override { return _fp_2phase->p_sat(T); }
60 
66  virtual Real dT_sat_dp(Real p) const override { return _fp_2phase->dT_sat_dp(p); }
67 
74  virtual Real h_lat(Real p, Real T) const override { return _fp_2phase->h_lat(p, T); }
75 
76  virtual bool supportsPhaseChange() const override { return _fp_2phase->supportsPhaseChange(); }
77 
78 protected:
80  const UserObjectName _2phase_name;
82  const UserObjectName _vapor_mixture_name;
83 
88 };
89 
90 #pragma GCC diagnostic pop
Base class for fluid properties of vapor mixtures.
const UserObjectName _2phase_name
Two-phase fluid properties user object name.
TwoPhaseNCGFluidProperties(const InputParameters &parameters)
virtual const UserObjectName & getLiquidName() const
Returns the name of the liquid single-phase fluid properties object.
virtual const UserObjectName & getVaporName() const
Returns the name of the vapor single-phase fluid properties object.
virtual Real T_sat(Real p) const override
Computes the saturation temperature at a pressure.
Base class for fluid properties used with 2-phase flow with non-condensable gases (NCGs) present...
const UserObjectName & getVaporName() const override
Returns the name of the vapor single-phase fluid properties object.
virtual Real h_lat(Real p, Real T) const override
Computes latent heat of vaporization.
unsigned int getNumberOfNCGs() const
Returns the number of non-condensable gases.
static InputParameters validParams()
Base class for fluid properties used with two-phase flow.
virtual Real h_lat(Real p, Real T) const
Computes latent heat of vaporization.
virtual Real p_sat(Real T) const override
Computes the saturation pressure at a temperature.
const UserObjectName & getVaporMixtureName() const
Returns the name of the vapor mixture fluid properties object.
virtual bool supportsPhaseChange() const =0
Returns true if phase change is supported, otherwise false.
virtual Real dT_sat_dp(Real p) const override
Computes dT/dp along the saturation line.
virtual Real p_critical() const =0
Returns the critical pressure.
const UserObjectName & getLiquidName() const override
Returns the name of the liquid single-phase fluid properties object.
virtual Real dT_sat_dp(Real p) const =0
Computes dT/dp along the saturation line.
virtual Real p_sat(Real T) const =0
Computes the saturation pressure at a temperature.
virtual Real T_sat(Real p) const =0
Computes the saturation temperature at a pressure.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const VaporMixtureFluidProperties * _fp_vapor_mixture
Vapor mixture fluid properties user object.
const TwoPhaseFluidProperties * _fp_2phase
Two-phase fluid properties user object.
const InputParameters & parameters() const
virtual bool supportsPhaseChange() const override
Returns true if phase change is supported, otherwise false.
virtual Real p_critical() const override
Returns the critical pressure.
const UserObjectName _vapor_mixture_name
Vapor mixture fluid properties user object name.