Buildings.Media.Conversions.Validation

Package with validation models

Information

This package contains validation models for the models in Buildings.Media.Conversions.

Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).

Package Content

Name Description
Buildings.Media.Conversions.Validation.PressureDrop_massFlowRate PressureDrop_massFlowRate Validation model for Buildings.Media.Conversions.FlowResistance.pressureDrop_massFlowRate

Buildings.Media.Conversions.Validation.PressureDrop_massFlowRate Buildings.Media.Conversions.Validation.PressureDrop_massFlowRate

Validation model for Buildings.Media.Conversions.FlowResistance.pressureDrop_massFlowRate

Information

Validation model for Buildings.Media.Conversions.FlowResistanceFlowWork.pressureDrop_massFlowRate.

The model computes the ratio of pressure drops dpRat_m_flow when the working fluid is changed from water to a 25% volume fraction propylene glycol-water mixture, both evaluated at 20°C. The mass flow rate ratio ratio_m_flow varies linearly from 0.5 to 1.5 over the simulation period of 1 second. The pressure drop ratio is computed for turbulent flow, i.e., n=2.

Extends from Modelica.Icons.Example (Icon for runnable examples).

Parameters

TypeNameDefaultDescription
Realn1.688Flow coefficient n, n=1 for laminar, n=1.688 for turbulent flow
RealdpRat_equalHeatFlowRateFloRes.pressureDrop_equalHea...Pressure drop ratio for equal heat flow rate at turbulent flow [1]
RealdWFloRat_equalHeatFlowRateFloRes.flowWork_equalHeatFlo...Flow work ratio for equal heat flow rate at turbulent flow [1]

Modelica definition

model PressureDrop_massFlowRate "Validation model for Buildings.Media.Conversions.FlowResistance.pressureDrop_massFlowRate" extends Modelica.Icons.Example; package FloRes = Buildings.Media.Conversions.FlowResistanceFlowWork( TOri=T, TNew=T, redeclare package MediumOri = Modelica.Media.Water.WaterIF97OnePhase_ph, redeclare package MediumNew = Buildings.Media.Antifreeze.PropyleneGlycolWater ( property_T=T, X_a=Buildings.Media.Antifreeze.Functions.PropyleneGlycolWater.volumeToMassFraction( T=T, phi=0.25))); constant Modelica.Units.SI.Temperature T=293.15 "Temperature at which the properties of the media are evaluated"; parameter Real n=1.688 "Flow coefficient n, n=1 for laminar, n=1.688 for turbulent flow"; Real ratio_m_flow(min=0, unit="1") = 0.5 + time "Ratio of mass flow rates, varies from 0.5 to 1.5 as time goes from 0 to 1"; Real dpRat_m_flow(min=0, unit="1") = FloRes.pressureDrop_massFlowRate( ratio_m_flow=ratio_m_flow, n=n) "Pressure drop ratio for turbulent flow"; Real ratio_V_flow(min=0, unit="1") = 0.5 + time "Ratio of volume flow rates, varies from 0.5 to 1.5 as time goes from 0 to 1"; Real dpRat_V_flow(min=0, unit="1") = FloRes.pressureDrop_volumeFlowRate( ratio_V_flow=ratio_V_flow, n=n) "Pressure drop ratio for turbulent flow"; parameter Real dpRat_equalHeatFlowRate(min=0, unit="1") = FloRes.pressureDrop_equalHeatFlowRate( n=n) "Pressure drop ratio for equal heat flow rate at turbulent flow"; parameter Real dWFloRat_equalHeatFlowRate(min=0, unit="1") = FloRes.flowWork_equalHeatFlowRate( n=n) "Flow work ratio for equal heat flow rate at turbulent flow"; end PressureDrop_massFlowRate;