modelDetailedHouse4

Including custom occupant schedule

Extends from DetailedHouse3 (Adding occupancy and lighting).

Information

This example extends the third example by adding a custom occupancy model that uses an occupancy schedule that returns an occupancy of two during office hours and zero otherwise.

Required models

Connection instructions

Create a new model that extends the occupancy partial model. This partial model contains an input, which is not used, and an output, which must be set. Create an occupancy signal using a RealExpression that returns the parameter value k during office hours (7–19 h on weekdays) and zero otherwise. Implement this model by extending the previous example, redeclaring the occupancy model, and setting parameter k. Use the year 2019 ( IDEAS.Utilities.Time.Types.ZeroTime.NY2019) to define the reference time in the calendar model. Use an if-then-else statement with logical checks for the calendar outputs weekDay and hour.

Reference result

The figure below shows the operative zone temperature with the old (blue) and new (red) occupancy model. Note the much more peaked behaviour of the zone temperature during the weekdays when there are occupants present.

The operative zone temperature with old (blue) and new (red) occupant model.

Parameters

TypeNameDefaultDescription
Modelica.Units.SI.Lengthl (from DetailedHouse1)8Zone length
Modelica.Units.SI.Lengthw (from DetailedHouse1)4Zone width
Modelica.Units.SI.Lengthh (from DetailedHouse1)zon.hZoneZone height (Default)

Components

TypeNameDefaultDescription
IDEAS.BoundaryConditions.SimInfoManagersim (from DetailedHouse1)
IDEAS.Buildings.Components.Zonezon (from DetailedHouse1)Zone model
IDEAS.Buildings.Components.OuterWalloutWalWes (from DetailedHouse1)Western outer wall model
IDEAS.Buildings.Components.OuterWalloutWalEas (from DetailedHouse1)Eastern outer wall model
IDEAS.Buildings.Components.OuterWalloutWalNor (from DetailedHouse1)Northern outer wall model
IDEAS.Buildings.Components.OuterWalloutWalSou (from DetailedHouse1)Southern outer wall model
IDEAS.Buildings.Components.Windowwin (from DetailedHouse1)Window model
IDEAS.Buildings.Components.SlabOnGroundslaOnGro (from DetailedHouse1)Floor model
IDEAS.Buildings.Components.OuterWallcei (from DetailedHouse1)Ceiling model
Modelica.Blocks.Sources.Constantcon (from DetailedHouse2)Solar screen's external control signal

Contents

NameDescription
OccSchprotectedSimple occupancy schedule

Revisions

  • April 14, 2025, by Anna Dell'Isola and Lone Meertens:
    Update and restructure IDEAS tutorial models. See #1374 and #1389.
  • September 18, 2019 by Filip Jorissen:
    First implementation for the IDEAS crash course.