modelCase900ValidationNonLinearInputs

Model to validate the linearization method by simulating both the original model and the obtained state space model.

Extends from Case900ValidationNonLinear (Model to validate the linearization method by simulating both the original model and the obtained state space model.).

Information

Notice that this model has the commando Linearise, simulate and plot. The model being linearised is IDEAS.LIDEAS.Examples.ZoneLinearise. The linearisation creates 3 text files and 1 mat file in the simulation folder: uNames_ZoneLinearise.txt (inputs name), xNames_ZoneLinearise.txt (state names), yNames_ZoneLinearise.txt (output names) and ssm_ZoneLinearise.mat (state space model). The name of the states were manually copied into the model to retrieve the initial state values (x_start). Also the input names were manually copied to feed their value to the SSM model included in this example. However, the input names winBusIn, weaBus, QCon and QRad were renamed to winBusOut, weaBusOut, gainCon and gainRad to coincide with the variables created in the model.

Parameters

TypeNameDefaultDescription
StringfileName (from Case900ValidationNonLinear)Modelica.Utilities.Files.loadResource("modelica://IDEAS/Resources/LIDEAS/ssm_Case900Linearise.mat")
IntegernSta (from Case900ValidationNonLinear)Bsize[1]Number of states
IntegernInp (from Case900ValidationNonLinear)Bsize[2]Number of inputs
IntegernPreInp (from Case900ValidationNonLinear)size(preInp, 1)Number of precomputed inputs
IntegernOut (from Case900ValidationNonLinear)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)
Modelica.Blocks.Interfaces.RealOutputTSenLinRecZon (from Case900Linearise)Sensor temperature of the zone, i.e. operative temeprature

Components

TypeNameDefaultDescription
IDEAS.BoundaryConditions.SimInfoManagersim (from LinearisationInterface)
Components.LinRectangularZoneTemplatelinRecZon (from Case900Linearise)
Buildings.Components.RectangularZoneTemplaterecZon (from Case900ValidationNonLinear)Zone model representing Case900
Modelica.Blocks.Sources.RealExpression[nInp]preInp (from Case900ValidationNonLinear)Precomputed input values
Modelica.Blocks.Continuous.StateSpacestateSpace (from Case900ValidationNonLinear)State space model
Modelica.Blocks.Math.UnitConversions.To_degCTRecZon (from Case900ValidationNonLinear)Temperature of the rectangular zone model
Modelica.Blocks.Math.UnitConversions.To_degCTLinRecZon (from Case900ValidationNonLinear)Zone temperature of linear rectangular zone model
Modelica.Blocks.Math.Adderr_linRecZon_ssm (from Case900ValidationNonLinear)Difference between the temperature of the zone models and the state space model outputs
Modelica.Blocks.Math.UnitConversions.To_degCTSsm (from Case900ValidationNonLinear)Zone temperature of the state space model
Modelica.Blocks.Math.Adderr_linRecZon_recZon (from Case900ValidationNonLinear)Difference between the temperature of the zone models and the state space model outputs
Modelica.Thermal.HeatTransfer.Sources.PrescribedHeatFlowprescribedQConPrescribed convective heat flow for linRect zone
Modelica.Thermal.HeatTransfer.Sources.PrescribedHeatFlowprescribedQRadPrescribed radiative heat flow for linRect zone
Modelica.Blocks.Sources.SineQConFake convective gains
Modelica.Blocks.Sources.SineQRadFake radiative gains
Modelica.Blocks.Math.GaingainConGain to scale convective gain
Modelica.Blocks.Math.GaingainRadGain to scale radiative gain
Modelica.Thermal.HeatTransfer.Sources.PrescribedHeatFlowprescribedQCon1Prescribed convective heat flow for rect zone
Modelica.Thermal.HeatTransfer.Sources.PrescribedHeatFlowprescribedQRad1Prescribed radiative heat flow for rect zone

Revisions

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