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
| Type | Name | Default | Description |
|---|---|---|---|
| AixLib.BoundaryConditions.WeatherData.Bus | weaBus | Component to supply air temperature | |
| Modelica.Blocks.Interfaces.RealOutput | T_air | Output to show air temperature | |
| Modelica.Blocks.Interfaces.RealOutput | T_mean | Output of average air temperature since beginning of simulation | |
| Modelica.Blocks.Interfaces.RealOutput | T_ground | Output to show ground temperature | |
| Modelica.Blocks.Interfaces.RealOutput | T_amp | Keeps track of the amplitude of the air temperature |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Real | T_max | Keeps track of the maximum air temperature | |
| Real | T_min | Keeps track of the minimum air temperature | |
| Modelica.Blocks.Continuous.Integrator | integrator | Integrates air temperature to compute average air temperature | |
| Modelica.Blocks.Math.Division | division | Division for average air temperature | |
| Modelica.Blocks.Sources.RealExpression | timeSource | Denominator for average air temperature | |
| Modelica.Blocks.Math.Max | denominatorTmean | Max-function to prevent division by 0 at time=0 | |
| Modelica.Blocks.Sources.RealExpression | denominatorAtTimeZero | Real source to prevent division by 0 at time=0 | |
| AixLib.BoundaryConditions.WeatherData.ReaderTMY3 | weaDat | File reader that reads weather data | |
| GroundTemperatureKusuda | groundTemperatureKusuda | Undisturbed ground temperature model | |
| Modelica.Thermal.HeatTransfer.Sensors.TemperatureSensor | temperatureSensor | Sensor 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