modelZoneWithInputsLinearise

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

Extends from ZoneLinearise.

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
BooleanvalidationfalseSet to true to keep the prescribed heat flows even when sim.linearize is false. This is used for models in LIDEAS.Validation.

Components

TypeNameDefaultDescription
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
Components.BaseClasses.InputsctrlInputsControl inputs
Components.BaseClasses.OutputsoutputsOutputs
Modelica.Thermal.HeatTransfer.Sources.PrescribedHeatFlow[nZones]occQFloConConvective heat flow for occupancy
Modelica.Thermal.HeatTransfer.Sources.PrescribedHeatFlow[nZones]occQFloRadRadiative heat flow for occupancy
Components.BaseClasses.PrescribedprescribedInPrescribed inputs which do not depend on the model states value (e.g. heat flow from occupancy)

Revisions

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