modelZoneWithInputsLinearise

Example of how to add controlled and prescribed inputs to the linearised model and how to add outputs.

Extends from ZoneLinearise (Test for linearisation).

Information

This model illustrates how to add control inputs to the linearised model. Control inputs are inputs which will be decided by the user / controller. Additionally, prescribed inputs are added. Prescribed inputs are inputs which can be precomputed as they are known in advance (i.e. internal gains due to occupancy). Finally, the outputs bus should include all variables that the user wants to output from the linearised model.

The ctrlInputs, outputs and prescribed buses can be adapted to the user's need. However, the names ctrlInputs, outputs, and prescribed should remain unchanged such that it is compatible with the model creating the outputs.

In order to linearise the model, use the command Linearise from the Dymola Commands menu.

Parameters

TypeNameDefaultDescription
IntegernZones (from ZoneLinearise)2Number of zone
IntegernEmb (from ZoneLinearise)1Number of embbed systems
BooleanvalidationfalseSet to true to keep the prescribed heat flows even when sim.linearize is false. This is used for models in LIDEAS.Validation.

Connectors

TypeNameDefaultDescription
IDEAS.Buildings.Components.Interfaces.WindowBuswinBusIn (from LinearisationInterface)
IDEAS.Buildings.Components.Interfaces.WeaBusweaBus (from LinearisationInterface)
IDEAS.Buildings.Components.Interfaces.WindowBuswinBusOut (from LinearisationInterface)Dummy for getting outputs
IDEAS.Buildings.Components.Interfaces.WeaBusweaBusOut (from LinearisationInterface)
Components.BaseClasses.InputsctrlInputsControl inputs
Components.BaseClasses.OutputsoutputsOutputs
Components.BaseClasses.PrescribedprescribedInPrescribed inputs which do not depend on the model states value (e.g. heat flow from occupancy)

Components

TypeNameDefaultDescription
IDEAS.BoundaryConditions.SimInfoManagersim (from LinearisationInterface)
LIDEAS.Components.LinZonegroFlo (from ZoneLinearise)Ground floor
IDEAS.Buildings.Components.BoundaryWallcommonWall (from ZoneLinearise)Common wall model
IDEAS.Buildings.Components.InternalWallfloor (from ZoneLinearise)TABS Floor between the two zones.
LIDEAS.Components.LinWindowwindow (from ZoneLinearise)Window model
IDEAS.Buildings.Components.SlabOnGroundslabOnGround (from ZoneLinearise)Floor model
IDEAS.Buildings.Components.OuterWallouterWall (from ZoneLinearise)Outer wall model
LIDEAS.Components.LinZonefirFlo (from ZoneLinearise)First floor
IDEAS.Buildings.Components.Shading.ShadingControlshadingControl (from ZoneLinearise)Shading control model
IDEAS.Buildings.Components.BoundaryWallcommonWall1 (from ZoneLinearise)Common wall model
Modelica.Blocks.Sources.ConstantTCom (from ZoneLinearise)Temperature at one side of the common wall
Modelica.Blocks.Sources.ConstantQCom (from ZoneLinearise)Constant heat flow at one side of the common wall 1
IDEAS.Buildings.Components.OuterWallouterWall1 (from ZoneLinearise)Outer wall model
IDEAS.Buildings.Components.OuterWallRoof (from ZoneLinearise)Outer wall model
Modelica.Thermal.HeatTransfer.Sources.PrescribedHeatFlow[nZones]preQFloConConvective heat flow from control inputs
Modelica.Thermal.HeatTransfer.Sources.PrescribedHeatFlow[nZones]preQFloRadRadiative heat flow from control inputs
Modelica.Thermal.HeatTransfer.Sources.PrescribedHeatFlow[nEmb]preQFloTabsEmbedded heat flow from control inputs
Modelica.Thermal.HeatTransfer.Sources.PrescribedHeatFlow[nZones]occQFloConConvective heat flow for occupancy
Modelica.Thermal.HeatTransfer.Sources.PrescribedHeatFlow[nZones]occQFloRadRadiative heat flow for occupancy

Revisions

  • April 5, 2018 by Damien Picard:
    First implementation.