blockAmbientTemp

Ambient temperature

Extends from Modelica.Blocks.Interfaces.SISO (Single Input Single Output continuous control block).

Information

This block computes the ambient temperature as a function of time for the location of Oracle, Arizona, i.e., for the location of Biosphere 2. The model operates on a huge table containing temperature values of an entire year stored hourly in oF. The model then converts the interpolated temperature value to oC, and finally to oK, which are the unit needed by the model.

The model reads the data from an external file. This is essential, as Dymola isn't geared to dealing with large data tables in memory. Dymola essentially converts all matrices to sets of individual scalar variables in the process of compilation. This is necessary, as the most flexible automatic causality assignment depends on this feature. Yet, this is highly inefficient, when dealing with large data tables containing many thousands of data points. We must hide these tables from Dymola, and can do so by placing them in external data files.

Parameters

TypeNameDefaultDescription
Realm0.556Multiplicative factor for conversion of temperature from Fahrenheit to Centigrade
Modelica.SIunits.CelsiusTemperaturea-17.78Additive factor for conversion of temperature from Fahrenheit to Centigrade
Modelica.SIunits.TemperatureT0-Modelica.Constants.T_zeroConversion between Centigrade and Kelvin

Connectors

TypeNameDefaultDescription
RealInputu (from SISO)Connector of Real input signal
RealOutputy (from SISO)Connector of Real output signal

Components

TypeNameDefaultDescription
Modelica.Blocks.Math.GainCelsiusConversion
Modelica.Blocks.Math.AddAdd1
Modelica.Blocks.Sources.ConstantOffset
Modelica.Blocks.Math.AddAdd2
Modelica.Blocks.Sources.ConstantKelvinConversion
Modelica.Blocks.Tables.CombiTable1DsTempTable