Buildings.Media.ConstantPropertyLiquidWater

Package with model for liquid water with constant properties

Information


This medium model is identical to Modelica.Media.Water.ConstantPropertyLiquidWater, except that it implements the function that computes the specific internal energy.

Extends from Modelica.Media.Water.ConstantPropertyLiquidWater (Water: Simple liquid water medium (incompressible, constant data)).

Package Content

NameDescription
Buildings.Media.ConstantPropertyLiquidWater.specificInternalEnergy specificInternalEnergy Return specific internal energy
Inherited
cp_constConstant specific heat capacity at constant pressure
cv_constConstant specific heat capacity at constant volume
d_constConstant density
eta_constConstant dynamic viscosity
lambda_constConstant thermal conductivity
a_constConstant velocity of sound
T_minMinimum temperature valid for medium model
T_maxMaximum temperature valid for medium model
T0=reference_TZero enthalpy temperature
MM_constMolar mass
fluidConstantsfluid constants
Modelica.Media.Interfaces.PartialSimpleMedium.ThermodynamicState ThermodynamicStateThermodynamic state
Modelica.Media.Interfaces.PartialSimpleMedium.BaseProperties BasePropertiesBase properties
Modelica.Media.Interfaces.PartialSimpleMedium.setState_pTX setState_pTXReturn thermodynamic state from p, T, and X or Xi
Modelica.Media.Interfaces.PartialSimpleMedium.setState_phX setState_phXReturn thermodynamic state from p, h, and X or Xi
Modelica.Media.Interfaces.PartialSimpleMedium.setState_psX setState_psXReturn thermodynamic state from p, s, and X or Xi
Modelica.Media.Interfaces.PartialSimpleMedium.setState_dTX setState_dTXReturn thermodynamic state from d, T, and X or Xi
Modelica.Media.Interfaces.PartialSimpleMedium.dynamicViscosity dynamicViscosityReturn dynamic viscosity
Modelica.Media.Interfaces.PartialSimpleMedium.thermalConductivity thermalConductivityReturn thermal conductivity
Modelica.Media.Interfaces.PartialSimpleMedium.pressure pressureReturn pressure
Modelica.Media.Interfaces.PartialSimpleMedium.temperature temperatureReturn temperature
Modelica.Media.Interfaces.PartialSimpleMedium.density densityReturn density
Modelica.Media.Interfaces.PartialSimpleMedium.specificEnthalpy specificEnthalpyReturn specific enthalpy
Modelica.Media.Interfaces.PartialSimpleMedium.specificHeatCapacityCp specificHeatCapacityCpReturn specific heat capacity at constant pressure
Modelica.Media.Interfaces.PartialSimpleMedium.specificHeatCapacityCv specificHeatCapacityCvReturn specific heat capacity at constant volume
Modelica.Media.Interfaces.PartialSimpleMedium.isentropicExponent isentropicExponentReturn isentropic exponent
Modelica.Media.Interfaces.PartialSimpleMedium.velocityOfSound velocityOfSoundReturn velocity of sound
Modelica.Media.Interfaces.PartialSimpleMedium.specificEnthalpy_pTX specificEnthalpy_pTXReturn specific enthalpy from p, T, and X or Xi
Modelica.Media.Interfaces.PartialSimpleMedium.temperature_phX temperature_phXReturn temperature from p, h, and X or Xi
Modelica.Media.Interfaces.PartialSimpleMedium.density_phX density_phXReturn density from p, h, and X or Xi
Modelica.Media.Interfaces.PartialPureSubstance.setState_pT setState_pTReturn thermodynamic state from p and T
Modelica.Media.Interfaces.PartialPureSubstance.setState_ph setState_phReturn thermodynamic state from p and h
Modelica.Media.Interfaces.PartialPureSubstance.setState_ps setState_psReturn thermodynamic state from p and s
Modelica.Media.Interfaces.PartialPureSubstance.setState_dT setState_dTReturn thermodynamic state from d and T
Modelica.Media.Interfaces.PartialPureSubstance.density_ph density_phReturn density from p and h
Modelica.Media.Interfaces.PartialPureSubstance.temperature_ph temperature_phReturn temperature from p and h
Modelica.Media.Interfaces.PartialPureSubstance.pressure_dT pressure_dTReturn pressure from d and T
Modelica.Media.Interfaces.PartialPureSubstance.specificEnthalpy_dT specificEnthalpy_dTReturn specific enthalpy from d and T
Modelica.Media.Interfaces.PartialPureSubstance.specificEnthalpy_ps specificEnthalpy_psReturn specific enthalpy from p and s
Modelica.Media.Interfaces.PartialPureSubstance.temperature_ps temperature_psReturn temperature from p and s
Modelica.Media.Interfaces.PartialPureSubstance.density_ps density_psReturn density from p and s
Modelica.Media.Interfaces.PartialPureSubstance.specificEnthalpy_pT specificEnthalpy_pTReturn specific enthalpy from p and T
Modelica.Media.Interfaces.PartialPureSubstance.density_pT density_pTReturn density from p and T
mediumName="unusablePartialMedium"Name of the medium
substanceNames={mediumName}Names of the mixture substances. Set substanceNames={mediumName} if only one substance.
extraPropertiesNames=fill("", 0)Names of the additional (extra) transported properties. Set extraPropertiesNames=fill("",0) if unused
singleState= true, if u and d are not a function of pressure
reducedX=true= true if medium contains the equation sum(X) = 1.0; set reducedX=true if only one substance (see docu for details)
fixedX=false= true if medium contains the equation X = reference_X
reference_p=101325Reference pressure of Medium: default 1 atmosphere
reference_T=298.15Reference temperature of Medium: default 25 deg Celsius
reference_X=fill(1/nX, nX)Default mass fractions of medium
p_default=101325Default value for pressure of medium (for initialization)
T_default=Modelica.SIunits.Conversions.from_degC(20)Default value for temperature of medium (for initialization)
h_default=specificEnthalpy_pTX(p_default, T_default, X_default)Default value for specific enthalpy of medium (for initialization)
X_default=reference_XDefault value for mass fractions of medium (for initialization)
nS=size(substanceNames, 1)Number of substances
nX=nSNumber of mass fractions
nXi=if fixedX then 0 else if reducedX then nS - 1 else nSNumber of structurally independent mass fractions (see docu for details)
nC=size(extraPropertiesNames, 1)Number of extra (outside of standard mass-balance) transported properties
Modelica.Media.Interfaces.PartialMedium.FluidConstants FluidConstantscritical, triple, molecular and other standard data of fluid
Modelica.Media.Interfaces.PartialMedium.prandtlNumber prandtlNumberReturn the Prandtl number
Modelica.Media.Interfaces.PartialMedium.specificEntropy specificEntropyReturn specific entropy
Modelica.Media.Interfaces.PartialMedium.specificGibbsEnergy specificGibbsEnergyReturn specific Gibbs energy
Modelica.Media.Interfaces.PartialMedium.specificHelmholtzEnergy specificHelmholtzEnergyReturn specific Helmholtz energy
Modelica.Media.Interfaces.PartialMedium.heatCapacity_cp heatCapacity_cpalias for deprecated name
Modelica.Media.Interfaces.PartialMedium.heatCapacity_cv heatCapacity_cvalias for deprecated name
Modelica.Media.Interfaces.PartialMedium.isentropicEnthalpy isentropicEnthalpyReturn isentropic enthalpy
Modelica.Media.Interfaces.PartialMedium.isobaricExpansionCoefficient isobaricExpansionCoefficientReturn overall the isobaric expansion coefficient beta
Modelica.Media.Interfaces.PartialMedium.beta betaalias for isobaricExpansionCoefficient for user convenience
Modelica.Media.Interfaces.PartialMedium.isothermalCompressibility isothermalCompressibilityReturn overall the isothermal compressibility factor
Modelica.Media.Interfaces.PartialMedium.kappa kappaalias of isothermalCompressibility for user convenience
Modelica.Media.Interfaces.PartialMedium.density_derp_h density_derp_hReturn density derivative wrt pressure at const specific enthalpy
Modelica.Media.Interfaces.PartialMedium.density_derh_p density_derh_pReturn density derivative wrt specific enthalpy at constant pressure
Modelica.Media.Interfaces.PartialMedium.density_derp_T density_derp_TReturn density derivative wrt pressure at const temperature
Modelica.Media.Interfaces.PartialMedium.density_derT_p density_derT_pReturn density derivative wrt temperature at constant pressure
Modelica.Media.Interfaces.PartialMedium.density_derX density_derXReturn density derivative wrt mass fraction
Modelica.Media.Interfaces.PartialMedium.molarMass molarMassReturn the molar mass of the medium
Modelica.Media.Interfaces.PartialMedium.density_pTX density_pTXReturn density from p, T, and X or Xi
Modelica.Media.Interfaces.PartialMedium.temperature_psX temperature_psXReturn temperature from p,s, and X or Xi
Modelica.Media.Interfaces.PartialMedium.density_psX density_psXReturn density from p, s, and X or Xi
Modelica.Media.Interfaces.PartialMedium.specificEnthalpy_psX specificEnthalpy_psXReturn specific enthalpy from p, s, and X or Xi
AbsolutePressureType for absolute pressure with medium specific attributes
DensityType for density with medium specific attributes
DynamicViscosityType for dynamic viscosity with medium specific attributes
EnthalpyFlowRateType for enthalpy flow rate with medium specific attributes
MassFlowRateType for mass flow rate with medium specific attributes
MassFractionType for mass fraction with medium specific attributes
MoleFractionType for mole fraction with medium specific attributes
MolarMassType for molar mass with medium specific attributes
MolarVolumeType for molar volume with medium specific attributes
IsentropicExponentType for isentropic exponent with medium specific attributes
SpecificEnergyType for specific energy with medium specific attributes
SpecificInternalEnergyType for specific internal energy with medium specific attributes
SpecificEnthalpyType for specific enthalpy with medium specific attributes
SpecificEntropyType for specific entropy with medium specific attributes
SpecificHeatCapacityType for specific heat capacity with medium specific attributes
SurfaceTensionType for surface tension with medium specific attributes
TemperatureType for temperature with medium specific attributes
ThermalConductivityType for thermal conductivity with medium specific attributes
PrandtlNumberType for Prandtl number with medium specific attributes
VelocityOfSoundType for velocity of sound with medium specific attributes
ExtraPropertyType for unspecified, mass-specific property transported by flow
CumulativeExtraPropertyType for conserved integral of unspecified, mass specific property
ExtraPropertyFlowRateType for flow rate of unspecified, mass-specific property
IsobaricExpansionCoefficientType for isobaric expansion coefficient with medium specific attributes
DipoleMomentType for dipole moment with medium specific attributes
DerDensityByPressureType for partial derivative of density with resect to pressure with medium specific attributes
DerDensityByEnthalpyType for partial derivative of density with resect to enthalpy with medium specific attributes
DerEnthalpyByPressureType for partial derivative of enthalpy with resect to pressure with medium specific attributes
DerDensityByTemperatureType for partial derivative of density with resect to temperature with medium specific attributes
Modelica.Media.Interfaces.PartialMedium.Choices ChoicesTypes, constants to define menu choices


Buildings.Media.ConstantPropertyLiquidWater.specificInternalEnergy Buildings.Media.ConstantPropertyLiquidWater.specificInternalEnergy

Return specific internal energy

Inputs

TypeNameDefaultDescription
ThermodynamicStatestate  

Outputs

TypeNameDescription
SpecificEnergyuSpecific internal energy [J/kg]

Modelica definition

redeclare replaceable function extends specificInternalEnergy 
  "Return specific internal energy"
 input ThermodynamicState state;
 output SpecificEnergy u "Specific internal energy";
algorithm 
  u := cv_const * (state.T-T0);
end specificInternalEnergy;

HTML-documentation generated by Dymola Thu Feb 19 16:53:04 2009.