Buildings.HeatExchangers.CoolingTowers.Correlations.Examples

Collection of models that illustrate model use and test models

Information


This package contains examples for the use of models
that can be found in 
Buildings.HeatExchangers.CoolingTowers.Correlations.

Package Content

NameDescription
YorkCalc Example for yorkCalc correlation
YorkCalcDerivativeCheck  


Buildings.HeatExchangers.CoolingTowers.Correlations.Examples.YorkCalc

Example for yorkCalc correlation

Parameters

TypeNameDefaultDescription
TemperatureTRan5.56Range temperature (water in - water out) [K]
TemperatureTAirInWB25.55 + 273.15Inlet air wet bulb temperature [K]

Modelica definition

model YorkCalc "Example for yorkCalc correlation" 
  
  parameter Modelica.SIunits.Temperature TRan = 5.56 
    "Range temperature (water in - water out)";
  parameter Modelica.SIunits.Temperature TAirInWB = 25.55 + 273.15 
    "Inlet air wet bulb temperature";
  Modelica.SIunits.MassFraction x "Independent variable";
  Modelica.SIunits.Temperature TApp_Wat 
    "Approach temperature as a function of FRWat";
  Modelica.SIunits.Temperature TApp_Air 
    "Approach temperature as a function of FRAir";
  
equation 
  x = 0.25+time;
  TApp_Wat=Buildings.HeatExchangers.CoolingTowers.Correlations.yorkCalc(TRan=TRan,
                                                                    TWB=TAirInWB,
                                                                    FRWat=x,
                                                                    FRAir=1);
  TApp_Air=Buildings.HeatExchangers.CoolingTowers.Correlations.yorkCalc(TRan=TRan,
                                                                    TWB=TAirInWB,
                                                                    FRWat=1,
                                                                    FRAir=x);
  
end YorkCalc;

Buildings.HeatExchangers.CoolingTowers.Correlations.Examples.YorkCalcDerivativeCheck

Information


This example checks whether the function derivative is implemented correctly. If the derivative implementation is not correct, the model will stop with an assert statement.


Parameters

TypeNameDefaultDescription
TemperatureTRan5.56Range temperature (water in - water out) [K]
TemperatureTAirInWB35.55 + 273.15Inlet air wet bulb temperature [K]

Modelica definition

model YorkCalcDerivativeCheck 
  
  parameter Modelica.SIunits.Temperature TRan = 5.56 
    "Range temperature (water in - water out)";
  parameter Modelica.SIunits.Temperature TAirInWB = 35.55 + 273.15 
    "Inlet air wet bulb temperature";
  Real x;
  Real y;
initial equation 
   y=x;
equation 
  x=CoolingTowers.Correlations.yorkCalc(TRan=TRan,      TWB=TAirInWB,
                                                        FRWat=time,
                                                        FRAir=1.1);
  der(y)=der(x);
  assert(abs(x-y) < 1E-2, "Model has an error");
end YorkCalcDerivativeCheck;

HTML-documentation generated by Dymola Tue Sep 30 14:24:39 2008.