modelFluidTest

Information

This test maintains a constant pressure, and ramps temperature between the selected values. At each temperature, a thermodynamic state is created from p and T and, from it, different properties are calculated. The state is recovered also from d_T, p_H, and p_S, in order to check if the state is correctly reconstructed.

Also an intermediate state between bubble and dew is created and some of its properties calculate.

You can enable also the calculation of viscosity and thermal conductivity, but the CoolProp fluids will fail many times due to lack of implementation.

Parameters

TypeNameDefaultDescription
Medium.AbsolutePressurePs1.0e5
Medium.TemperatureinitialT273.19
Medium.TemperaturefinalT372.15

Components

TypeNameDefaultDescription
Medium.TemperatureTsWe will ramp the temperature
Medium.ThermodynamicStateStatePoriginal state from p and T
Medium.MolarMassMM
Medium.SpecificEnthalpyH
Medium.DensityD
Medium.SpecificEntropyS
RealUinternal energy
RealCp
RealCv
RealGamma
RealSSspeed of sound
RealBetaisobaric expansion coefficient
RealKappaisothermal compressibility
RealDensity_derp_T
RealDensity_derT_p
RealDensity_derp_h
RealDensity_derh_p
Medium.ThermodynamicStateStateDstate reproduced from d,T
Medium.ThermodynamicStateStateHstate reproduced from p,h
Medium.SaturationPropertiessatsaturation point at given T
Medium.AbsolutePressureVp
Medium.TemperatureTb
Medium.TemperatureTsattemperature recovered from saturation pressure
Medium.ThermodynamicStateStateBubbubble state at sat
Medium.ThermodynamicStateStateDewdew state at sat
RealBetaBubisobaric expansion coefficient
RealKappaBubisothermal compressibility
RealBetaDewisobaric expansion coefficient
RealKappaDewisothermal compressibility
RealBubD
RealBubHbubble properties
RealBubS
RealBubDerD_p
RealBubDerH_p
RealDewD
RealDewHdew properties
RealDewS
RealDewDerD_p
RealDewDerH_p
RealHvvaporization enthalpy
Medium.ThermodynamicStateState2Hstate half way between Bub and Dew
RealT2
RealD2
RealS2
RealCv2
RealCp2
RealDensity_derp_h2
RealDensity_derh_p2
Medium.ThermodynamicStateState2D
Medium.BasePropertiesBasePropT
Medium.BasePropertiesBasePropH
Medium.BasePropertiesBasePropD
Medium.BasePropertiesBasePropH2

Contents

NameDescription
Medium