modelTestModelBase

Information

The model allows the testing of bubble and dew pressure and temperature, and the generation of thermodynamic states from p,T and p,h. You can ramp both pressure and temperature. You will need to fill the subsNames string, choose the thermodynamic models and give value for the molar fractions of the components.

Parameters

TypeNameDefaultDescription
RealinitialT373.15
RealfinalT373.15
RealinitialP1e5
RealfinalP1e5

Components

TypeNameDefaultDescription
Real[Medium.nX]Zmole fraction of substances
Medium.TemperatureT
Medium.AbsolutePressurep
Medium.MolarMass[Medium.nX]MM
Medium.MolarMassMWmix molecular weight in kg/mol)
Real[Medium.subsNum]Zmassmass fraction of substances
Medium.ThermodynamicStatestateBubblePbubble state from T and X
Medium.ThermodynamicStatestateBubbleT
Medium.ThermodynamicStatestateDewP
Medium.ThermodynamicStatestateDewT
Medium.ThermodynamicStatestatePstate at given p,T,Z
Medium.ThermodynamicStatestateHstate at given p,h,Z. It shoud be a match of stateP
Medium.ThermodynamicStatestateSstate at given p,s,Z. It shoud be a match of stateP
Medium.ThermodynamicStatestateThetastate at given p,gas fraction,Z. It shoud be a match of stateP
Real[Medium.subsNum]xmolar fractions of the liquid phase of stateP
Real[Medium.subsNum]ymolar fractions of the gas phase of stateP
Real[Medium.subsNum]gamma
Medium.SpecificEnergygE
Medium.SpecificEnergyHv
Medium.DensityDof stateP
Medium.SpecificEnthalpyHof stateP
Medium.SpecificEntropySof stateP
Medium.SpecificHeatCapacityCpof stateP
RealSSspeed of sound of stateP
RealBetaisobaric expansion coefficient of stateP
RealKappaisothermal compressibility of stateP
Medium.DynamicViscosityEta
Medium.ThermalConductivityLambda
Medium.SurfaceTensionSigma

Contents

NameDescription
Medium