BuildingSystems.Examples.Tutorial.SimpleHouse.SimpleHouse2

# .BuildingSystems.Examples.Tutorial.SimpleHouse.SimpleHouse2

Building window model

## Information

The window has a surface area of 2 m2. In this simple model we will therefore assume that two times the outdoor solar irradiance is injected as heat onto the inside of the wall.

#### Required models

- Modelica.Blocks.Math.Gain
- Modelica.Thermal.HeatTransfer.Sources.PrescribedHeatFlow

#### Connection instructions

To be able to use the value of the outdoor solar irradiance you will need to access the weather data reader. To do this, make a connection to the `weaBus`. In the dialog box, select `HDirNor`, which is the direct solar irradiance on a surface of 1 m2, perpendicular to the sun rays. Set the gain factor `k` to 2, in order to get the solar irradiance through the window of 2 m2.

Make a connection with the `PrescribedHeatFlow` as well. This block makes the connection between the heat flow from the gain, represented as a real value, and a heat port that is compatible with the connectors of the thermal capacitance and resistance.

#### Reference result

The result with and without the window model is plotted in the figure below.

## Revisions

- September 4, 2023, by Jelger Jansen:
  First implementation.

Generated at 2026-05-12T20:19:03Z by OpenModelicaOpenModelica 1.26.7 using GenerateDoc.mos