modelCase900ValidationNonLinear

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

Extends from IDEAS.LIDEAS.Validation.Case900Linearise.

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 and weaBus were renamed to winBusOut and weaBusOut to coincide with the variables created in the model.

Parameters

TypeNameDefaultDescription
StringfileNameModelica.Utilities.Files.loadResource("modelica://IDEAS/Resources/LIDEAS/ssm_Case900Linearise.mat")
IntegernStaBsize[1]Number of states
IntegernInpBsize[2]Number of inputs
IntegernPreInpsize(preInp, 1)Number of precomputed inputs
IntegernOutCsize[1]Number of precomputed outputs

Components

TypeNameDefaultDescription
Buildings.Components.RectangularZoneTemplaterecZonZone model representing Case900
Modelica.Blocks.Sources.RealExpression[nInp]preInpPrecomputed input values
Modelica.Blocks.Continuous.StateSpacestateSpaceState space model
Modelica.Blocks.Math.UnitConversions.To_degCTRecZonTemperature of the rectangular zone model
Modelica.Blocks.Math.UnitConversions.To_degCTLinRecZonZone temperature of linear rectangular zone model
Modelica.Blocks.Math.Adderr_linRecZon_ssmDifference between the temperature of the zone models and the state space model outputs
Modelica.Blocks.Math.UnitConversions.To_degCTSsmZone temperature of the state space model
Modelica.Blocks.Math.Adderr_linRecZon_recZonDifference between the temperature of the zone models and the state space model outputs

Revisions

  • June 2nd, 2022, by Filip Jorissen:
    Using MSL functions for readMatrixSize and readMatrix for OM compatibility for issue #1284.
  • December 11, 2019, by Filip Jorissen:
    Revised input list for issue #1089.
  • August 21, 2018 by Damien Picard:
    Adapt the name of the states which have changed due to the change of medium to IDEAS.Media.Specialized.DryAir.
  • May 15, 2018 by Damien Picard:
    First implementation