modelExampleSanFran

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

Information

Example to test and tune Kusuda ground temperature model with the weather model from the Modelica Buildings Library.

The outputs T, Tamp and Tmean in the top of the model can be used to determine the parameters tshift (day of the coldest air temperature in the year), Tmean (average air temperature in the year) and Tamp (amplitude of the air temperature) for the Kusuda ground temperature model.

The output Tground constitutes the main result of this example and shows the trajectory of the ground temperature over the year.

Connectors

TypeNameDefaultDescription
AixLib.BoundaryConditions.WeatherData.BusweaBusComponent to supply air temperature
Modelica.Blocks.Interfaces.RealOutputT_airOutput to show air temperature
Modelica.Blocks.Interfaces.RealOutputT_meanOutput of average air temperature since beginning of simulation
Modelica.Blocks.Interfaces.RealOutputT_groundOutput to show ground temperature
Modelica.Blocks.Interfaces.RealOutputT_ampKeeps track of the amplitude of the air temperature

Components

TypeNameDefaultDescription
RealT_maxKeeps track of the maximum air temperature
RealT_minKeeps track of the minimum air temperature
Modelica.Blocks.Continuous.IntegratorintegratorIntegrates air temperature to compute average air temperature
Modelica.Blocks.Math.DivisiondivisionDivision for average air temperature
Modelica.Blocks.Sources.RealExpressiontimeSourceDenominator for average air temperature
Modelica.Blocks.Math.MaxdenominatorTmeanMax-function to prevent division by 0 at time=0
Modelica.Blocks.Sources.RealExpressiondenominatorAtTimeZeroReal source to prevent division by 0 at time=0
AixLib.BoundaryConditions.WeatherData.ReaderTMY3weaDatFile reader that reads weather data
GroundTemperatureKusudagroundTemperatureKusudaUndisturbed ground temperature model
Modelica.Thermal.HeatTransfer.Sensors.TemperatureSensortemperatureSensorSensor to show ground temperature

Revisions

  • May 2017, by Felix Buenning: Updated documentation, added T_amp as output
  • October 2016, by Felix Buenning: Developed and implemented