Package Modelica.​Media.​Incompressible.​Examples.​Glycol47
1,2-Propylene glycol, 47% mixture with water

Information

Extends from Modelica.​Media.​Incompressible.​TableBased (Incompressible medium properties based on tables).

Package Contents

NameDescription
AbsolutePressureType for absolute pressure with medium specific attributes
BasePropertiesBase properties of T dependent medium
BasicThe most basic version of a record used in several degrees of detail
betaAlias for isobaricExpansionCoefficient for user convenience
Choices 
CumulativeExtraPropertyType for conserved integral of unspecified, mass specific property
DensityType for density with medium specific attributes
densityReturn density as a function of the thermodynamic state record
density_derh_pReturn density derivative w.r.t. specific enthalpy at constant pressure
density_derp_hReturn density derivative w.r.t. pressure at const specific enthalpy
density_derp_TReturn density derivative w.r.t. pressure at const temperature
density_derT_pReturn density derivative w.r.t. temperature at constant pressure
density_derXReturn density derivative w.r.t. mass fraction
density_phXReturn density from p, h, and X or Xi
density_psXReturn density from p, s, and X or Xi
density_pTXReturn density from p, T, and X or Xi
density_TReturn density as function of temperature
DerDensityByEnthalpyType for partial derivative of density with respect to enthalpy with medium specific attributes
DerDensityByPressureType for partial derivative of density with respect to pressure with medium specific attributes
DerDensityByTemperatureType for partial derivative of density with respect to temperature with medium specific attributes
DerEnthalpyByPressureType for partial derivative of enthalpy with respect to pressure with medium specific attributes
DerTemperatureByPressureType for partial derivative of temperature with respect to pressure with medium specific attributes
DipoleMomentType for dipole moment with medium specific attributes
DynamicViscosityType for dynamic viscosity with medium specific attributes
dynamicViscosityReturn dynamic viscosity as a function of the thermodynamic state record
EnthalpyFlowRateType for enthalpy flow rate with medium specific attributes
ExtraPropertyType for unspecified, mass-specific property transported by flow
ExtraPropertyFlowRateType for flow rate of unspecified, mass-specific property
FixedPhasePhase of the fluid: 1 for 1-phase, 2 for two-phase, 0 for not known, e.g., interactive use
FluidConstantsCritical, triple, molecular and other standard data of fluid
FluidLimitsValidity limits for fluid model
h_pTCompute specific enthalpy from pressure and temperature
h_TCompute specific enthalpy from temperature
h_T_derCompute specific enthalpy from temperature
heatCapacity_cpAlias for deprecated name
heatCapacity_cvAlias for deprecated name
IdealGasThe ideal gas version of a record used in several degrees of detail
invertTempFunction to invert temperatures
isentropicEnthalpyReturn isentropic enthalpy
IsentropicExponentType for isentropic exponent with medium specific attributes
isentropicExponentReturn isentropic exponent
IsobaricExpansionCoefficientType for isobaric expansion coefficient with medium specific attributes
isobaricExpansionCoefficientReturn overall the isobaric expansion coefficient beta
isothermalCompressibilityReturn overall the isothermal compressibility factor
kappaAlias of isothermalCompressibility for user convenience
MassFlowRateType for mass flow rate with medium specific attributes
MassFractionType for mass fraction with medium specific attributes
MolarMassType for molar mass with medium specific attributes
molarMassReturn the molar mass of the medium
MolarVolumeType for molar volume with medium specific attributes
MoleFractionType for mole fraction with medium specific attributes
Polynomials_TempTemporary Functions operating on polynomials (including polynomial fitting); only to be used in Modelica.Media.Incompressible.TableBased
PrandtlNumberType for Prandtl number with medium specific attributes
prandtlNumberReturn the Prandtl number
pressureReturn pressure as a function of the thermodynamic state record
s_TCompute specific entropy
SaturationPropertiesSaturation properties of two phase medium
setSmoothStateReturn thermodynamic state so that it smoothly approximates: if x > 0 then state_a else state_b
setState_dTXReturns state record, given pressure and temperature
setState_phReturns state record as function of p and h
setState_phXReturns state record, given pressure and specific enthalpy
setState_psReturns state record as function of p and s
setState_psXReturns state record, given pressure and specific entropy
setState_pTReturns state record as function of p and T
setState_pTXReturns state record, given pressure and temperature
SpecificEnergyType for specific energy with medium specific attributes
SpecificEnthalpyType for specific enthalpy with medium specific attributes
specificEnthalpyReturn specific enthalpy as a function of the thermodynamic state record
specificEnthalpy_psXReturn specific enthalpy from p, s, and X or Xi
specificEnthalpy_pTXReturn specific enthalpy from p, T, and X or Xi
SpecificEntropyType for specific entropy with medium specific attributes
specificEntropyReturn specific entropy as a function of the thermodynamic state record
specificEntropy_pTXReturn specific enthalpy from p, T, and X or Xi
specificGibbsEnergyReturn specific Gibbs energy
SpecificHeatCapacityType for specific heat capacity with medium specific attributes
specificHeatCapacityCpSpecific heat capacity at constant volume (or pressure) of medium
specificHeatCapacityCvSpecific heat capacity at constant volume (or pressure) of medium
specificHelmholtzEnergyReturn specific Helmholtz energy
SpecificInternalEnergyType for specific internal energy with medium specific attributes
specificInternalEnergyReturn specific internal energy as a function of the thermodynamic state record
SurfaceTensionType for surface tension with medium specific attributes
T_phCompute temperature from pressure and specific enthalpy
T_psCompute temperature from pressure and specific enthalpy
TemperatureType for temperature with medium specific attributes
temperatureReturn temperature as a function of the thermodynamic state record
temperature_phXReturn temperature from p, h, and X or Xi
temperature_psXReturn temperature from p,s, and X or Xi
ThermalConductivityType for thermal conductivity with medium specific attributes
thermalConductivityReturn thermal conductivity as a function of the thermodynamic state record
ThermodynamicState 
TwoPhaseThe two phase fluid version of a record used in several degrees of detail
VelocityOfSoundType for velocity of sound with medium specific attributes
velocityOfSoundReturn velocity of sound

Package Constants

TypeNameValueDescription
ExtraPropertyC_default[nC]fill(0, nC)Default value for trace substances of medium (for initialization)
RealC_nominal[nC]1e-6 * ones(nC)Default for the nominal values for the extra properties
BooleandensityOfT1 < size(tableDensity, 1)True if density is a function of temperature
BooleanenthalpyOfTtrueTrue if enthalpy is approximated as a function of T only, (p-dependence neglected)
StringextraPropertiesNames[:]fill("", 0)Names of the additional (extra) transported properties. Set extraPropertiesNames=fill("",0) if unused
final BooleanfixedXtrue= true if medium contains the equation X = reference_X
SpecificEnthalpyh00Reference enthalpy at T0, reference_p
SpecificEnthalpyh_defaultspecificEnthalpy_pTX(p_default, T_default, X_default)Default value for specific enthalpy of medium (for initialization)
BooleanhasDensitynot size(tableDensity, 1) == 0True if table tableDensity is present
BooleanhasHeatCapacitynot size(tableHeatCapacity, 1) == 0True if table tableHeatCapacity is present
BooleanhasVaporPressurenot size(tableVaporPressure, 1) == 0True if table tableVaporPressure is present
BooleanhasViscositynot size(tableViscosity, 1) == 0True if table tableViscosity is present
final RealinvTK[neta]if 0 < size(tableViscosity, 1) then if TinK then 1 ./ tableViscosity[:,1] else 1 ./ Cv.from_degC(tableViscosity[:,1]) else fill(0, neta) 
StringmediumName"Glycol-Water 47%"Name of the medium
MolarMassMM_const0.1Molar mass
final IntegernCsize(extraPropertiesNames, 1)Number of extra (outside of standard mass-balance) transported properties
Integernetasize(tableViscosity, 1)Number of data points for viscosity
Integernpol2Degree of polynomial used for fitting
IntegernpolConductivitynpolDegree of polynomial used for fitting lambda(T)
IntegernpolDensitynpolDegree of polynomial used for fitting rho(T)
IntegernpolHeatCapacitynpolDegree of polynomial used for fitting Cp(T)
IntegernpolVaporPressurenpolDegree of polynomial used for fitting pVap(T)
IntegernpolViscositynpolDegree of polynomial used for fitting eta(T)
final IntegernSsize(substanceNames, 1)Number of substances
IntegernXnSNumber of mass fractions
IntegernXiif fixedX then 0 else if reducedX then nS - 1 else nSNumber of structurally independent mass fractions (see docu for details)
AbsolutePressurep_default101325Default value for pressure of medium (for initialization)
final Realpoly_Cp[:]if hasHeatCapacity then Poly.fitting(tableHeatCapacity[:,1], tableHeatCapacity[:,2], npolHeatCapacity) else zeros(npolHeatCapacity + 1) 
final Realpoly_eta[:]if hasViscosity then Poly.fitting(invTK, Math.log(tableViscosity[:,2]), npolViscosity) else zeros(npolViscosity + 1) 
final Realpoly_lam[:]if 0 < size(tableConductivity, 1) then Poly.fitting(tableConductivity[:,1], tableConductivity[:,2], npolConductivity) else zeros(npolConductivity + 1) 
final Realpoly_pVap[:]if hasVaporPressure then Poly.fitting(tableVaporPressure[:,1], tableVaporPressure[:,2], npolVaporPressure) else zeros(npolVaporPressure + 1) 
final Realpoly_rho[:]if hasDensity then Poly.fitting(tableDensity[:,1], tableDensity[:,2], npolDensity) else zeros(npolDensity + 1) 
final BooleanreducedXtrue= true if medium contains the equation sum(X) = 1.0; set reducedX=true if only one substance (see docu for details)
AbsolutePressurereference_p101300Reference pressure of Medium: default 1 atmosphere
Temperaturereference_T298.15Reference temperature of Medium: default 25 deg Celsius
MassFractionreference_X[nX]fill(nX ^ (-1), nX)Default mass fractions of medium
SpecificEntropys00Reference entropy at T0, reference_p
BooleansingleStatetrue= true, if u and d are not a function of pressure
StringsubstanceNames[:]{mediumName}Names of the mixture substances. Set substanceNames={mediumName} if only one substance.
TemperatureT0273.15Reference Temperature
TemperatureT_defaultModelica.SIunits.Conversions.from_degC(20)Default value for temperature of medium (for initialization)
TemperatureT_maxCv.from_degC(100)Maximum temperature valid for medium model
TemperatureT_minCv.from_degC(-30)Minimum temperature valid for medium model
RealtableConductivity[:,2][-30,0.397; -20,0.396; -10,0.395; 0,0.395; 20,0.394; 40,0.393; 60,0.392; 80,0.391; 100,0.39]Table for lambda(T)
RealtableDensity[:,2][-30,1066; -20,1062; -10,1058; 0,1054; 20,1044; 40,1030; 60,1015; 80,999; 100,984]Table for rho(T)
RealtableHeatCapacity[:,2][-30,3450; -20,3490; -10,3520; 0,3560; 20,3620; 40,3690; 60,3760; 80,3820; 100,3890]Table for Cp(T)
RealtableVaporPressure[:,2][0,500; 20,1900; 40,5300; 60,16000; 80,37000; 100,80000]Table for pVap(T)
RealtableViscosity[:,2][-30,0.16; -20,0.0743; -10,0.0317; 0,0.019; 20,0.00626; 40,0.00299; 60,0.00162; 80,0.0011; 100,8.1e-4]Table for eta(T)
IndependentVariablesThermoStatesif enthalpyOfT then Modelica.Media.Interfaces.Choices.IndependentVariables.T else Modelica.Media.Interfaces.Choices.IndependentVariables.pTEnumeration type for independent variables
BooleanTinKfalseTrue if T[K],Kelvin used for table temperatures
MassFractionX_default[nX]reference_XDefault value for mass fractions of medium (for initialization)

Type Modelica.​Media.​Incompressible.​Examples.​Glycol47.​AbsolutePressure
Type for absolute pressure with medium specific attributes

Extends from Modelica.​SIunits.​AbsolutePressure.

Attributes

NameValue
quantity"Pressure"
unit"Pa"
displayUnit"bar"
min0
max1e+8
start100000
nominal100000

Type Modelica.​Media.​Incompressible.​Examples.​Glycol47.​Density
Type for density with medium specific attributes

Extends from Modelica.​SIunits.​Density.

Attributes

NameValue
quantity"Density"
unit"kg/m3"
displayUnit"g/cm3"
min0
max100000
start1
nominal1

Type Modelica.​Media.​Incompressible.​Examples.​Glycol47.​DynamicViscosity
Type for dynamic viscosity with medium specific attributes

Extends from Modelica.​SIunits.​DynamicViscosity.

Attributes

NameValue
quantity"DynamicViscosity"
unit"Pa.s"
min0
max1e+8
start0.001
nominal0.001

Type Modelica.​Media.​Incompressible.​Examples.​Glycol47.​EnthalpyFlowRate
Type for enthalpy flow rate with medium specific attributes

Extends from Modelica.​SIunits.​EnthalpyFlowRate.

Attributes

NameValue
quantity"EnthalpyFlowRate"
unit"W"
min-1e+8
max1e+8
start0.
nominal1000

Type Modelica.​Media.​Incompressible.​Examples.​Glycol47.​MassFraction
Type for mass fraction with medium specific attributes

Extends from Real.

Attributes

NameValue
quantity"MassFraction"
unit"kg/kg"
min0
max1
start0.
nominal0.1

Type Modelica.​Media.​Incompressible.​Examples.​Glycol47.​MoleFraction
Type for mole fraction with medium specific attributes

Extends from Real.

Attributes

NameValue
quantity"MoleFraction"
unit"mol/mol"
min0
max1
start0.
nominal0.1

Type Modelica.​Media.​Incompressible.​Examples.​Glycol47.​MolarMass
Type for molar mass with medium specific attributes

Extends from Modelica.​SIunits.​MolarMass.

Attributes

NameValue
quantity"MolarMass"
unit"kg/mol"
min0.001
max0.25
start0.
nominal0.032

Type Modelica.​Media.​Incompressible.​Examples.​Glycol47.​MolarVolume
Type for molar volume with medium specific attributes

Extends from Modelica.​SIunits.​MolarVolume.

Attributes

NameValue
quantity"MolarVolume"
unit"m3/mol"
min1e-6
max1000000
start0.
nominal1

Type Modelica.​Media.​Incompressible.​Examples.​Glycol47.​IsentropicExponent
Type for isentropic exponent with medium specific attributes

Extends from Modelica.​SIunits.​RatioOfSpecificHeatCapacities.

Attributes

NameValue
quantity"RatioOfSpecificHeatCapacities"
unit"1"
min1
max500000
start1.2
nominal1.2

Type Modelica.​Media.​Incompressible.​Examples.​Glycol47.​SpecificEnergy
Type for specific energy with medium specific attributes

Extends from Modelica.​SIunits.​SpecificEnergy.

Attributes

NameValue
quantity"SpecificEnergy"
unit"J/kg"
min-1e+8
max1e+8
start0.
nominal1000000

Type Modelica.​Media.​Incompressible.​Examples.​Glycol47.​SpecificInternalEnergy
Type for specific internal energy with medium specific attributes

Extends from Modelica.​Media.​Incompressible.​Examples.​Glycol47.​SpecificEnergy (Type for specific energy with medium specific attributes).

Attributes

NameValue
quantity"SpecificEnergy"
unit"J/kg"
min-1e+8
max1e+8
start0.
nominal1000000

Type Modelica.​Media.​Incompressible.​Examples.​Glycol47.​SpecificEnthalpy
Type for specific enthalpy with medium specific attributes

Extends from Modelica.​SIunits.​SpecificEnthalpy.

Attributes

NameValue
quantity"SpecificEnergy"
unit"J/kg"
min-1e+10
max1e+10
start0.
nominal1000000

Type Modelica.​Media.​Incompressible.​Examples.​Glycol47.​SpecificEntropy
Type for specific entropy with medium specific attributes

Extends from Modelica.​SIunits.​SpecificEntropy.

Attributes

NameValue
quantity"SpecificEntropy"
unit"J/(kg.K)"
min-1e+7
max1e+7
start0.
nominal1000

Type Modelica.​Media.​Incompressible.​Examples.​Glycol47.​SpecificHeatCapacity
Type for specific heat capacity with medium specific attributes

Extends from Modelica.​SIunits.​SpecificHeatCapacity.

Attributes

NameValue
quantity"SpecificHeatCapacity"
unit"J/(kg.K)"
min0
max1e+7
start1000
nominal1000

Type Modelica.​Media.​Incompressible.​Examples.​Glycol47.​SurfaceTension
Type for surface tension with medium specific attributes

Extends from Modelica.​SIunits.​SurfaceTension.

Attributes

NameValue
quantity"SurfaceTension"
unit"N/m"
min-Modelica.Constants.inf
maxModelica.Constants.inf
start0.

Type Modelica.​Media.​Incompressible.​Examples.​Glycol47.​Temperature
Type for temperature with medium specific attributes

Extends from Modelica.​SIunits.​Temperature.

Attributes

NameValue
quantity"ThermodynamicTemperature"
unit"K"
displayUnit"degC"
minT_min
maxT_max
start288.15
nominal300

Type Modelica.​Media.​Incompressible.​Examples.​Glycol47.​ThermalConductivity
Type for thermal conductivity with medium specific attributes

Extends from Modelica.​SIunits.​ThermalConductivity.

Attributes

NameValue
quantity"ThermalConductivity"
unit"W/(m.K)"
min0
max500
start1
nominal1

Type Modelica.​Media.​Incompressible.​Examples.​Glycol47.​PrandtlNumber
Type for Prandtl number with medium specific attributes

Extends from Modelica.​SIunits.​PrandtlNumber.

Attributes

NameValue
quantity"PrandtlNumber"
unit"1"
min0.001
max100000
start0.
nominal1

Type Modelica.​Media.​Incompressible.​Examples.​Glycol47.​VelocityOfSound
Type for velocity of sound with medium specific attributes

Extends from Modelica.​SIunits.​Velocity.

Attributes

NameValue
quantity"Velocity"
unit"m/s"
min0
max100000
start1000
nominal1000

Type Modelica.​Media.​Incompressible.​Examples.​Glycol47.​ExtraProperty
Type for unspecified, mass-specific property transported by flow

Extends from Real.

Attributes

NameValue
min0
maxModelica.Constants.inf
start1

Type Modelica.​Media.​Incompressible.​Examples.​Glycol47.​CumulativeExtraProperty
Type for conserved integral of unspecified, mass specific property

Extends from Real.

Attributes

NameValue
min0
maxModelica.Constants.inf
start1

Type Modelica.​Media.​Incompressible.​Examples.​Glycol47.​ExtraPropertyFlowRate
Type for flow rate of unspecified, mass-specific property

Extends from Real.

Attributes

NameValue
unit"kg/s"
min-Modelica.Constants.inf
maxModelica.Constants.inf
start0.

Type Modelica.​Media.​Incompressible.​Examples.​Glycol47.​IsobaricExpansionCoefficient
Type for isobaric expansion coefficient with medium specific attributes

Extends from Real.

Attributes

NameValue
unit"1/K"
min0
max1e+8
start0.

Type Modelica.​Media.​Incompressible.​Examples.​Glycol47.​DipoleMoment
Type for dipole moment with medium specific attributes

Extends from Real.

Attributes

NameValue
quantity"ElectricDipoleMoment"
unit"debye"
min0
max2
start0.

Type Modelica.​Media.​Incompressible.​Examples.​Glycol47.​DerDensityByPressure
Type for partial derivative of density with respect to pressure with medium specific attributes

Extends from Modelica.​SIunits.​DerDensityByPressure.

Attributes

NameValue
unit"s2/m2"
min-Modelica.Constants.inf
maxModelica.Constants.inf
start0.

Type Modelica.​Media.​Incompressible.​Examples.​Glycol47.​DerDensityByEnthalpy
Type for partial derivative of density with respect to enthalpy with medium specific attributes

Extends from Modelica.​SIunits.​DerDensityByEnthalpy.

Attributes

NameValue
unit"kg.s2/m5"
min-Modelica.Constants.inf
maxModelica.Constants.inf
start0.

Type Modelica.​Media.​Incompressible.​Examples.​Glycol47.​DerEnthalpyByPressure
Type for partial derivative of enthalpy with respect to pressure with medium specific attributes

Extends from Modelica.​SIunits.​DerEnthalpyByPressure.

Attributes

NameValue
unit"J.m.s2/kg2"
min-Modelica.Constants.inf
maxModelica.Constants.inf
start0.

Type Modelica.​Media.​Incompressible.​Examples.​Glycol47.​DerDensityByTemperature
Type for partial derivative of density with respect to temperature with medium specific attributes

Extends from Modelica.​SIunits.​DerDensityByTemperature.

Attributes

NameValue
unit"kg/(m3.K)"
min-Modelica.Constants.inf
maxModelica.Constants.inf
start0.

Type Modelica.​Media.​Incompressible.​Examples.​Glycol47.​DerTemperatureByPressure
Type for partial derivative of temperature with respect to pressure with medium specific attributes

Extends from Real.

Attributes

NameValue
unit"K/Pa"
min-Modelica.Constants.inf
maxModelica.Constants.inf
start0.

Record Modelica.​Media.​Incompressible.​Examples.​Glycol47.​SaturationProperties
Saturation properties of two phase medium

Information

This icon is indicates a record.

Extends from Modelica.​Icons.​Record (Icon for records).

Fields

TypeNameDescription
AbsolutePressurepsatSaturation pressure
TemperatureTsatSaturation temperature

Record Modelica.​Media.​Incompressible.​Examples.​Glycol47.​FluidLimits
Validity limits for fluid model

Information

The minimum pressure mostly applies to the liquid state only. The minimum density is also arbitrary, but is reasonable for technical applications to limit iterations in non-linear systems. The limits in enthalpy and entropy are used as safeguards in inverse iterations.

Extends from Modelica.​Icons.​Record (Icon for records).

Fields

TypeNameDescription
TemperatureTMINMinimum temperature
TemperatureTMAXMaximum temperature
DensityDMINMinimum density
DensityDMAXMaximum density
AbsolutePressurePMINMinimum pressure
AbsolutePressurePMAXMaximum pressure
SpecificEnthalpyHMINMinimum enthalpy
SpecificEnthalpyHMAXMaximum enthalpy
SpecificEntropySMINMinimum entropy
SpecificEntropySMAXMaximum entropy

Type Modelica.​Media.​Incompressible.​Examples.​Glycol47.​FixedPhase
Phase of the fluid: 1 for 1-phase, 2 for two-phase, 0 for not known, e.g., interactive use

Extends from Integer.

Attributes

NameValue
min0
max2
start0

Record Modelica.​Media.​Incompressible.​Examples.​Glycol47.​FluidConstants
Critical, triple, molecular and other standard data of fluid

Information

This icon is indicates a record.

Extends from Modelica.​Media.​Interfaces.​Types.​Basic.​FluidConstants (Critical, triple, molecular and other standard data of fluid).

Fields

TypeNameDescription
StringiupacNameComplete IUPAC name (or common name, if non-existent)
StringcasRegistryNumberChemical abstracts sequencing number (if it exists)
StringchemicalFormulaChemical formula, (brutto, nomenclature according to Hill
StringstructureFormulaChemical structure formula
MolarMassmolarMassMolar mass

Record Modelica.​Media.​Incompressible.​Examples.​Glycol47.​ThermodynamicState
Fluid state record

Information

This icon is indicates a record.

Extends from Modelica.​Media.​Incompressible.​Common.​BaseProps_Tpoly (Fluid state record).

Fields

TypeNameDescription
TemperatureTTemperature
PressurepPressure

Model Modelica.​Media.​Incompressible.​Examples.​Glycol47.​BaseProperties
Base properties of T dependent medium

Information

Note that the inner energy neglects the pressure dependence, which is only true for an incompressible medium with d = constant. The neglected term is p-reference_p)/rho*(T/rho)*(partial rho /partial T). This is very small for liquids due to proportionality to 1/d^2, but can be problematic for gases that are modeled incompressible.

It should be noted that incompressible media only have 1 state per control volume (usually T), but have both T and p as inputs for fully correct properties. The error of using only T-dependent properties is small, therefore a Boolean flag enthalpyOfT exists. If it is true, the enumeration Choices.independentVariables is set to Choices.independentVariables.T otherwise it is set to Choices.independentVariables.pT.

Enthalpy is never a function of T only (h = h(T) + (p-reference_p)/d), but the error is also small and non-linear systems can be avoided. In particular, non-linear systems are small and local as opposed to large and over all volumes.

Entropy is calculated as

  s = s0 + integral(Cp(T)/T,dt)

which is only exactly true for a fluid with constant density d=d0.

Extends from Modelica.​Media.​Interfaces.​PartialMedium.​BaseProperties (Base properties (p, d, T, h, u, R, MM and, if applicable, X and Xi) of a medium).

Parameters

TypeNameDefaultDescription
BooleanpreferredMediumStatesfalse= true if StateSelect.prefer shall be used for the independent property variables of the medium
final BooleanstandardOrderComponentstrueIf true, and reducedX = true, the last element of X will be computed from the other ones
TemperatureT_start298.15Initial temperature

Connectors

TypeNameDescription
input InputAbsolutePressurepAbsolute pressure of medium
input InputMassFractionXi[nXi]Structurally independent mass fractions
input InputSpecificEnthalpyhSpecific enthalpy of medium

Function Modelica.​Media.​Incompressible.​Examples.​Glycol47.​setState_pTX
Returns state record, given pressure and temperature

Information

This icon indicates Modelica functions.

Extends from Modelica.​Media.​Interfaces.​PartialMedium.​setState_pTX (Return thermodynamic state as function of p, T and composition X or Xi).

Inputs

TypeNameDescription
AbsolutePressurepPressure
TemperatureTTemperature
MassFractionX[:]Mass fractions

Outputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Function Modelica.​Media.​Incompressible.​Examples.​Glycol47.​setState_phX
Returns state record, given pressure and specific enthalpy

Information

This icon indicates Modelica functions.

Extends from Modelica.​Media.​Interfaces.​PartialMedium.​setState_phX (Return thermodynamic state as function of p, h and composition X or Xi).

Inputs

TypeNameDescription
AbsolutePressurepPressure
SpecificEnthalpyhSpecific enthalpy
MassFractionX[:]Mass fractions

Outputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Function Modelica.​Media.​Incompressible.​Examples.​Glycol47.​setState_psX
Returns state record, given pressure and specific entropy

Information

This icon indicates Modelica functions.

Extends from Modelica.​Media.​Interfaces.​PartialMedium.​setState_psX (Return thermodynamic state as function of p, s and composition X or Xi).

Inputs

TypeNameDescription
AbsolutePressurepPressure
SpecificEntropysSpecific entropy
MassFractionX[:]Mass fractions

Outputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Function Modelica.​Media.​Incompressible.​Examples.​Glycol47.​setState_dTX
Returns state record, given pressure and temperature

Information

This icon indicates Modelica functions.

Extends from Modelica.​Media.​Interfaces.​PartialMedium.​setState_dTX (Return thermodynamic state as function of d, T and composition X or Xi).

Inputs

TypeNameDescription
DensitydDensity
TemperatureTTemperature
MassFractionX[:]Mass fractions

Outputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Function Modelica.​Media.​Incompressible.​Examples.​Glycol47.​setSmoothState
Return thermodynamic state so that it smoothly approximates: if x > 0 then state_a else state_b

Information

This function is used to approximate the equation

    state = if x > 0 then state_a else state_b;

by a smooth characteristic, so that the expression is continuous and differentiable:

   state := smooth(1, if x >  x_small then state_a else
                      if x < -x_small then state_b else f(state_a, state_b));

This is performed by applying function Media.Common.smoothStep(..) on every element of the thermodynamic state record.

If mass fractions X[:] are approximated with this function then this can be performed for all nX mass fractions, instead of applying it for nX-1 mass fractions and computing the last one by the mass fraction constraint sum(X)=1. The reason is that the approximating function has the property that sum(state.X) = 1, provided sum(state_a.X) = sum(state_b.X) = 1. This can be shown by evaluating the approximating function in the abs(x) < x_small region (otherwise state.X is either state_a.X or state_b.X):

    X[1]  = smoothStep(x, X_a[1] , X_b[1] , x_small);
    X[2]  = smoothStep(x, X_a[2] , X_b[2] , x_small);
       ...
    X[nX] = smoothStep(x, X_a[nX], X_b[nX], x_small);

or

    X[1]  = c*(X_a[1]  - X_b[1])  + (X_a[1]  + X_b[1])/2
    X[2]  = c*(X_a[2]  - X_b[2])  + (X_a[2]  + X_b[2])/2;
       ...
    X[nX] = c*(X_a[nX] - X_b[nX]) + (X_a[nX] + X_b[nX])/2;
    c     = (x/x_small)*((x/x_small)^2 - 3)/4

Summing all mass fractions together results in

    sum(X) = c*(sum(X_a) - sum(X_b)) + (sum(X_a) + sum(X_b))/2
           = c*(1 - 1) + (1 + 1)/2
           = 1

Extends from Modelica.​Media.​Interfaces.​PartialMedium.​setSmoothState (Return thermodynamic state so that it smoothly approximates: if x > 0 then state_a else state_b).

Inputs

TypeNameDescription
Realxm_flow or dp
ThermodynamicStatestate_aThermodynamic state if x > 0
ThermodynamicStatestate_bThermodynamic state if x < 0
Realx_smallSmooth transition in the region -x_small < x < x_small

Outputs

TypeNameDescription
ThermodynamicStatestateSmooth thermodynamic state for all x (continuous and differentiable)

Function Modelica.​Media.​Incompressible.​Examples.​Glycol47.​dynamicViscosity
Return dynamic viscosity as a function of the thermodynamic state record

Information

This icon indicates Modelica functions.

Extends from Modelica.​Media.​Interfaces.​PartialMedium.​dynamicViscosity (Return dynamic viscosity).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
DynamicViscosityetaDynamic viscosity

Function Modelica.​Media.​Incompressible.​Examples.​Glycol47.​thermalConductivity
Return thermal conductivity as a function of the thermodynamic state record

Information

This icon indicates Modelica functions.

Extends from Modelica.​Media.​Interfaces.​PartialMedium.​thermalConductivity (Return thermal conductivity).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
ThermalConductivitylambdaThermal conductivity

Function Modelica.​Media.​Incompressible.​Examples.​Glycol47.​prandtlNumber
Return the Prandtl number

Information

This icon indicates Modelica functions.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
PrandtlNumberPrPrandtl number

Function Modelica.​Media.​Incompressible.​Examples.​Glycol47.​pressure
Return pressure as a function of the thermodynamic state record

Information

This icon indicates Modelica functions.

Extends from Modelica.​Media.​Interfaces.​PartialMedium.​pressure (Return pressure).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
AbsolutePressurepPressure

Function Modelica.​Media.​Incompressible.​Examples.​Glycol47.​temperature
Return temperature as a function of the thermodynamic state record

Information

This icon indicates Modelica functions.

Extends from Modelica.​Media.​Interfaces.​PartialMedium.​temperature (Return temperature).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
TemperatureTTemperature

Function Modelica.​Media.​Incompressible.​Examples.​Glycol47.​density
Return density as a function of the thermodynamic state record

Information

This icon indicates Modelica functions.

Extends from Modelica.​Media.​Interfaces.​PartialMedium.​density (Return density).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
DensitydDensity

Function Modelica.​Media.​Incompressible.​Examples.​Glycol47.​specificEnthalpy
Return specific enthalpy as a function of the thermodynamic state record

Information

This icon indicates Modelica functions.

Extends from Modelica.​Media.​Interfaces.​PartialMedium.​specificEnthalpy (Return specific enthalpy).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
SpecificEnthalpyhSpecific enthalpy

Function Modelica.​Media.​Incompressible.​Examples.​Glycol47.​specificInternalEnergy
Return specific internal energy as a function of the thermodynamic state record

Information

This icon indicates Modelica functions.

Extends from Modelica.​Media.​Interfaces.​PartialMedium.​specificInternalEnergy (Return specific internal energy).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
SpecificEnergyuSpecific internal energy

Function Modelica.​Media.​Incompressible.​Examples.​Glycol47.​specificEntropy
Return specific entropy as a function of the thermodynamic state record

Information

This icon indicates Modelica functions.

Extends from Modelica.​Media.​Interfaces.​PartialMedium.​specificEntropy (Return specific entropy).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
SpecificEntropysSpecific entropy

Partial Function Modelica.​Media.​Incompressible.​Examples.​Glycol47.​specificGibbsEnergy
Return specific Gibbs energy

Information

This icon indicates Modelica functions.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
SpecificEnergygSpecific Gibbs energy

Partial Function Modelica.​Media.​Incompressible.​Examples.​Glycol47.​specificHelmholtzEnergy
Return specific Helmholtz energy

Information

This icon indicates Modelica functions.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
SpecificEnergyfSpecific Helmholtz energy

Function Modelica.​Media.​Incompressible.​Examples.​Glycol47.​specificHeatCapacityCp
Specific heat capacity at constant volume (or pressure) of medium

Information

This icon indicates Modelica functions.

Extends from Modelica.​Media.​Interfaces.​PartialMedium.​specificHeatCapacityCp (Return specific heat capacity at constant pressure).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
SpecificHeatCapacitycpSpecific heat capacity at constant pressure

Function Modelica.​Media.​Incompressible.​Examples.​Glycol47.​heatCapacity_cp
Alias for deprecated name

Information

This icon indicates Modelica functions.

Extends from Modelica.​Media.​Incompressible.​Examples.​Glycol47.​specificHeatCapacityCp (Specific heat capacity at constant volume (or pressure) of medium).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
SpecificHeatCapacitycpSpecific heat capacity at constant pressure

Function Modelica.​Media.​Incompressible.​Examples.​Glycol47.​specificHeatCapacityCv
Specific heat capacity at constant volume (or pressure) of medium

Information

This icon indicates Modelica functions.

Extends from Modelica.​Media.​Interfaces.​PartialMedium.​specificHeatCapacityCv (Return specific heat capacity at constant volume).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
SpecificHeatCapacitycvSpecific heat capacity at constant volume

Function Modelica.​Media.​Incompressible.​Examples.​Glycol47.​heatCapacity_cv
Alias for deprecated name

Information

This icon indicates Modelica functions.

Extends from Modelica.​Media.​Incompressible.​Examples.​Glycol47.​specificHeatCapacityCv (Specific heat capacity at constant volume (or pressure) of medium).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
SpecificHeatCapacitycvSpecific heat capacity at constant volume

Partial Function Modelica.​Media.​Incompressible.​Examples.​Glycol47.​isentropicExponent
Return isentropic exponent

Information

This icon indicates Modelica functions.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
IsentropicExponentgammaIsentropic exponent

Partial Function Modelica.​Media.​Incompressible.​Examples.​Glycol47.​isentropicEnthalpy
Return isentropic enthalpy

Information

This function computes an isentropic state transformation:

  1. A medium is in a particular state, refState.
  2. The enthalpy at another state (h_is) shall be computed under the assumption that the state transformation from refState to h_is is performed with a change of specific entropy ds = 0 and the pressure of state h_is is p_downstream and the composition X upstream and downstream is assumed to be the same.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
AbsolutePressurep_downstreamDownstream pressure
ThermodynamicStaterefStateReference state for entropy

Outputs

TypeNameDescription
SpecificEnthalpyh_isIsentropic enthalpy

Partial Function Modelica.​Media.​Incompressible.​Examples.​Glycol47.​velocityOfSound
Return velocity of sound

Information

This icon indicates Modelica functions.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
VelocityOfSoundaVelocity of sound

Partial Function Modelica.​Media.​Incompressible.​Examples.​Glycol47.​isobaricExpansionCoefficient
Return overall the isobaric expansion coefficient beta

Information

beta is defined as  1/v * der(v,T), with v = 1/d, at constant pressure p.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
IsobaricExpansionCoefficientbetaIsobaric expansion coefficient

Partial Function Modelica.​Media.​Incompressible.​Examples.​Glycol47.​beta
Alias for isobaricExpansionCoefficient for user convenience

Information

beta is defined as  1/v * der(v,T), with v = 1/d, at constant pressure p.

Extends from Modelica.​Media.​Incompressible.​Examples.​Glycol47.​isobaricExpansionCoefficient (Return overall the isobaric expansion coefficient beta).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
IsobaricExpansionCoefficientbetaIsobaric expansion coefficient

Partial Function Modelica.​Media.​Incompressible.​Examples.​Glycol47.​isothermalCompressibility
Return overall the isothermal compressibility factor

Information


kappa is defined as - 1/v * der(v,p), with v = 1/d at constant temperature T.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
IsothermalCompressibilitykappaIsothermal compressibility

Partial Function Modelica.​Media.​Incompressible.​Examples.​Glycol47.​kappa
Alias of isothermalCompressibility for user convenience

Information


kappa is defined as - 1/v * der(v,p), with v = 1/d at constant temperature T.

Extends from Modelica.​Media.​Incompressible.​Examples.​Glycol47.​isothermalCompressibility (Return overall the isothermal compressibility factor).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
IsothermalCompressibilitykappaIsothermal compressibility

Partial Function Modelica.​Media.​Incompressible.​Examples.​Glycol47.​density_derp_h
Return density derivative w.r.t. pressure at const specific enthalpy

Information

This icon indicates Modelica functions.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
DerDensityByPressureddphDensity derivative w.r.t. pressure

Partial Function Modelica.​Media.​Incompressible.​Examples.​Glycol47.​density_derh_p
Return density derivative w.r.t. specific enthalpy at constant pressure

Information

This icon indicates Modelica functions.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
DerDensityByEnthalpyddhpDensity derivative w.r.t. specific enthalpy

Partial Function Modelica.​Media.​Incompressible.​Examples.​Glycol47.​density_derp_T
Return density derivative w.r.t. pressure at const temperature

Information

This icon indicates Modelica functions.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
DerDensityByPressureddpTDensity derivative w.r.t. pressure

Partial Function Modelica.​Media.​Incompressible.​Examples.​Glycol47.​density_derT_p
Return density derivative w.r.t. temperature at constant pressure

Information

This icon indicates Modelica functions.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
DerDensityByTemperatureddTpDensity derivative w.r.t. temperature

Partial Function Modelica.​Media.​Incompressible.​Examples.​Glycol47.​density_derX
Return density derivative w.r.t. mass fraction

Information

This icon indicates Modelica functions.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
DensitydddX[nX]Derivative of density w.r.t. mass fraction

Partial Function Modelica.​Media.​Incompressible.​Examples.​Glycol47.​molarMass
Return the molar mass of the medium

Information

This icon indicates Modelica functions.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state record

Outputs

TypeNameDescription
MolarMassMMMixture molar mass

Function Modelica.​Media.​Incompressible.​Examples.​Glycol47.​specificEnthalpy_pTX
Return specific enthalpy from p, T, and X or Xi

Information

This icon indicates Modelica functions.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
AbsolutePressurepPressure
TemperatureTTemperature
MassFractionX[:]Mass fractions

Outputs

TypeNameDescription
SpecificEnthalpyhSpecific enthalpy

Function Modelica.​Media.​Incompressible.​Examples.​Glycol47.​specificEntropy_pTX
Return specific enthalpy from p, T, and X or Xi

Information

This icon indicates Modelica functions.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
AbsolutePressurepPressure
TemperatureTTemperature
MassFractionX[:]Mass fractions

Outputs

TypeNameDescription
SpecificEntropysSpecific entropy

Function Modelica.​Media.​Incompressible.​Examples.​Glycol47.​density_pTX
Return density from p, T, and X or Xi

Information

This icon indicates Modelica functions.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
AbsolutePressurepPressure
TemperatureTTemperature
MassFractionX[:]Mass fractions

Outputs

TypeNameDescription
DensitydDensity

Function Modelica.​Media.​Incompressible.​Examples.​Glycol47.​temperature_phX
Return temperature from p, h, and X or Xi

Information

This icon indicates Modelica functions.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
AbsolutePressurepPressure
SpecificEnthalpyhSpecific enthalpy
MassFractionX[:]Mass fractions

Outputs

TypeNameDescription
TemperatureTTemperature

Function Modelica.​Media.​Incompressible.​Examples.​Glycol47.​density_phX
Return density from p, h, and X or Xi

Information

This icon indicates Modelica functions.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
AbsolutePressurepPressure
SpecificEnthalpyhSpecific enthalpy
MassFractionX[:]Mass fractions

Outputs

TypeNameDescription
DensitydDensity

Function Modelica.​Media.​Incompressible.​Examples.​Glycol47.​temperature_psX
Return temperature from p,s, and X or Xi

Information

This icon indicates Modelica functions.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
AbsolutePressurepPressure
SpecificEntropysSpecific entropy
MassFractionX[:]Mass fractions

Outputs

TypeNameDescription
TemperatureTTemperature

Function Modelica.​Media.​Incompressible.​Examples.​Glycol47.​density_psX
Return density from p, s, and X or Xi

Information

This icon indicates Modelica functions.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
AbsolutePressurepPressure
SpecificEntropysSpecific entropy
MassFractionX[:]Mass fractions

Outputs

TypeNameDescription
DensitydDensity

Function Modelica.​Media.​Incompressible.​Examples.​Glycol47.​specificEnthalpy_psX
Return specific enthalpy from p, s, and X or Xi

Information

This icon indicates Modelica functions.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
AbsolutePressurepPressure
SpecificEntropysSpecific entropy
MassFractionX[:]Mass fractions

Outputs

TypeNameDescription
SpecificEnthalpyhSpecific enthalpy

Type Modelica.​Media.​Incompressible.​Examples.​Glycol47.​MassFlowRate
Type for mass flow rate with medium specific attributes

Extends from Modelica.​SIunits.​MassFlowRate.

Attributes

NameValue
quantity"MassFlowRate." + mediumName
unit"kg/s"
min-100000
max100000
start0.

Function Modelica.​Media.​Incompressible.​Examples.​Glycol47.​invertTemp
Function to invert temperatures

Information

This icon indicates Modelica functions.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
Realtable[:]Table temperature data
BooleanTinkFlag for Celsius or Kelvin

Outputs

TypeNameDescription
RealinvTable[size(table, 1)]Inverted temperatures

Function Modelica.​Media.​Incompressible.​Examples.​Glycol47.​setState_pT
Returns state record as function of p and T

Information

This icon indicates Modelica functions.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
AbsolutePressurepPressure
TemperatureTTemperature

Outputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state

Function Modelica.​Media.​Incompressible.​Examples.​Glycol47.​setState_ph
Returns state record as function of p and h

Information

This icon indicates Modelica functions.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
AbsolutePressurepPressure
SpecificEnthalpyhSpecific enthalpy

Outputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state

Function Modelica.​Media.​Incompressible.​Examples.​Glycol47.​setState_ps
Returns state record as function of p and s

Information

This icon indicates Modelica functions.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
AbsolutePressurepPressure
SpecificEntropysSpecific entropy

Outputs

TypeNameDescription
ThermodynamicStatestateThermodynamic state

Function Modelica.​Media.​Incompressible.​Examples.​Glycol47.​s_T
Compute specific entropy

Information

This icon indicates Modelica functions.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
TemperatureTTemperature

Outputs

TypeNameDescription
SpecificEntropysSpecific entropy

Function Modelica.​Media.​Incompressible.​Examples.​Glycol47.​h_T
Compute specific enthalpy from temperature

Information

This icon indicates Modelica functions.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
TemperatureTTemperature

Outputs

TypeNameDescription
SpecificEnthalpyhSpecific enthalpy at p, T

Function Modelica.​Media.​Incompressible.​Examples.​Glycol47.​h_T_der
Compute specific enthalpy from temperature

Information

This icon indicates Modelica functions.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
TemperatureTTemperature
RealdTTemperature derivative

Outputs

TypeNameDescription
RealdhDerivative of Specific enthalpy at T

Function Modelica.​Media.​Incompressible.​Examples.​Glycol47.​h_pT
Compute specific enthalpy from pressure and temperature

Information

This icon indicates Modelica functions.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
PressurepPressure
TemperatureTTemperature
BooleandensityOfTInclude or neglect density derivative dependence of enthalpy

Outputs

TypeNameDescription
SpecificEnthalpyhSpecific enthalpy at p, T

Function Modelica.​Media.​Incompressible.​Examples.​Glycol47.​density_T
Return density as function of temperature

Information

This icon indicates Modelica functions.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
TemperatureTTemperature

Outputs

TypeNameDescription
DensitydDensity

Function Modelica.​Media.​Incompressible.​Examples.​Glycol47.​T_ph
Compute temperature from pressure and specific enthalpy

Information

This icon indicates Modelica functions.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
AbsolutePressurepPressure
SpecificEnthalpyhSpecific enthalpy

Outputs

TypeNameDescription
TemperatureTTemperature

Function Modelica.​Media.​Incompressible.​Examples.​Glycol47.​T_ps
Compute temperature from pressure and specific enthalpy

Information

This icon indicates Modelica functions.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
AbsolutePressurepPressure
SpecificEntropysSpecific entropy

Outputs

TypeNameDescription
TemperatureTTemperature

Generated 2018-12-12 12:14:17 EST by MapleSim.