modelZoneWithInputsValidationLinear

Model to validate the linearization method by simulating both the original model (with all flags set to linear) and the obtained state space model.

Extends from ZoneWithInputsValidationNonLinear (Model to validate the linearization method by simulating both the original model and the obtained state space model. This model contains all buildings components of IDEAS).

Information

This example verified that the obtained state-space model gives the same results as the original modelica model with all linearise flags set to true. The remaining error is probably due to numerical error.

Parameters

TypeNameDefaultDescription
IntegernZones (from ZoneLinearise)2Number of zone
IntegernEmb (from ZoneLinearise)1Number of embbed systems
Booleanvalidation (from ZoneWithInputsLinearise)falseSet to true to keep the prescribed heat flows even when sim.linearize is false. This is used for models in LIDEAS.Validation.
StringfileName (from ZoneWithInputsValidationNonLinear)Modelica.Utilities.Files.loadResource("modelica://IDEAS/Resources/LIDEAS/ssm_ZoneWithInputsLinearise.mat")
IntegernSta (from ZoneWithInputsValidationNonLinear)Bsize[1]Number of states
IntegernInp (from ZoneWithInputsValidationNonLinear)Bsize[2]Number of inputs
IntegernPreInp (from ZoneWithInputsValidationNonLinear)size(preInp, 1)Number of precomputed inputs
IntegernOut (from ZoneWithInputsValidationNonLinear)Csize[1]Number of precomputed outputs

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.InputsctrlInputs (from ZoneWithInputsLinearise)Control inputs
Components.BaseClasses.Outputsoutputs (from ZoneWithInputsLinearise)Outputs
Components.BaseClasses.PrescribedprescribedIn (from ZoneWithInputsLinearise)Prescribed inputs which do not depend on the model states value (e.g. heat flow from occupancy)
Components.BaseClasses.PrescribedprescribedOut (from ZoneWithInputsValidationNonLinear)Prescribed 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]preQFloCon (from ZoneWithInputsLinearise)Convective heat flow from control inputs
Modelica.Thermal.HeatTransfer.Sources.PrescribedHeatFlow[nZones]preQFloRad (from ZoneWithInputsLinearise)Radiative heat flow from control inputs
Modelica.Thermal.HeatTransfer.Sources.PrescribedHeatFlow[nEmb]preQFloTabs (from ZoneWithInputsLinearise)Embedded heat flow from control inputs
Modelica.Thermal.HeatTransfer.Sources.PrescribedHeatFlow[nZones]occQFloCon (from ZoneWithInputsLinearise)Convective heat flow for occupancy
Modelica.Thermal.HeatTransfer.Sources.PrescribedHeatFlow[nZones]occQFloRad (from ZoneWithInputsLinearise)Radiative heat flow for occupancy
Modelica.Blocks.Sources.Sine[2]occQRad (from ZoneWithInputsValidationNonLinear)Fake occupancy gains
Modelica.Blocks.Sources.Sine[2]occQCon (from ZoneWithInputsValidationNonLinear)Fake occupancy gains
Modelica.Blocks.Sources.RealExpression[64]preInp (from ZoneWithInputsValidationNonLinear)Precomputed input values
Modelica.Blocks.Continuous.StateSpacestateSpace (from ZoneWithInputsValidationNonLinear)State space model
Modelica.Blocks.Sources.Sine[nZones]ctrlInputTestCon (from ZoneWithInputsValidationNonLinear)Fake occupancy gains
Modelica.Blocks.Sources.Sine[nZones]ctrlInputTestRad (from ZoneWithInputsValidationNonLinear)Fake occupancy gains
Modelica.Blocks.Sources.Sine[nEmb]ctrlInputTestEmb (from ZoneWithInputsValidationNonLinear)Fake occupancy gains
Modelica.Blocks.Math.UnitConversions.To_degC[nZones]TZon_ssm (from ZoneWithInputsValidationNonLinear)Zones temperature from the SSM
Modelica.Blocks.Math.UnitConversions.To_degC[nZones]TZon (from ZoneWithInputsValidationNonLinear)Zones temperature from the zone models
Modelica.Blocks.Math.Add[nZones]err (from ZoneWithInputsValidationNonLinear)Difference between the temperature of the zone models and the state space model outputs

Revisions

  • December 11, 2019, by Filip Jorissen:
    Revised error bounds for issue #1089.
  • May 15, 2018 by Damien Picard:
    First implementation