diff --git a/.travis.yml b/.travis.yml index b049722bd2..a1b89ee8ab 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,8 +28,8 @@ env: # Test matrix for regression tests. # The documentation is tested using github actions. - TEST_ARG="make test-bestest" - - TEST_ARG="make test-dymola PACKAGE=\"IBPSA.Experimental\"" - - TEST_ARG="make test-openmodelica PACKAGE=\"IBPSA.Experimental\"" + - TEST_ARG="make test-dymola PACKAGE=\"IBPSA.{Examples,Experimental}\"" + - TEST_ARG="make test-openmodelica PACKAGE=\"IBPSA.{Examples,Experimental}\"" - TEST_ARG="make test-dymola PACKAGE=\"IBPSA.Fluid.{Actuators,BaseClasses,Chillers,Delays,Geothermal,Examples,FMI,FixedResistances}\"" - TEST_ARG="make test-openmodelica PACKAGE=\"IBPSA.Fluid.{Actuators,BaseClasses,Chillers,Delays,Geothermal,Examples,FMI,FixedResistances}\"" - TEST_ARG="make test-dymola PACKAGE=\"IBPSA.Fluid.{HeatExchangers,HeatPumps,Humidifiers,Interfaces,MassExchangers,MixingVolumes,Movers,Sensors,Sources,Storage}\"" diff --git a/IBPSA/Examples/Tutorial/SimpleHouse/SimpleHouse0.mo b/IBPSA/Examples/Tutorial/SimpleHouse/SimpleHouse0.mo new file mode 100644 index 0000000000..28c3662126 --- /dev/null +++ b/IBPSA/Examples/Tutorial/SimpleHouse/SimpleHouse0.mo @@ -0,0 +1,102 @@ +within IBPSA.Examples.Tutorial.SimpleHouse; +model SimpleHouse0 + "Start file for simple house example" + extends Modelica.Icons.Example; + package MediumAir = IBPSA.Media.Air "Medium model for air"; + package MediumWater = IBPSA.Media.Water "Medium model for water"; + parameter Modelica.Units.SI.Area AWall = 100 "Wall area"; + parameter Modelica.Units.SI.Length dWall = 0.25 "Wall thickness"; + parameter Modelica.Units.SI.ThermalConductivity kWall = 0.04 "Wall thermal conductivity"; + parameter Modelica.Units.SI.Density rhoWall = 2000 "Wall density"; + parameter Modelica.Units.SI.SpecificHeatCapacity cpWall = 1000 "Wall specific heat capacity"; + IBPSA.BoundaryConditions.WeatherData.ReaderTMY3 weaDat(filNam= + ModelicaServices.ExternalReferences.loadResource( + "modelica://IBPSA/Resources/weatherdata/USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.mos")) + "Weather data reader" + annotation (Placement(transformation(extent={{-180,-10},{-160,10}}))); + IBPSA.BoundaryConditions.WeatherData.Bus weaBus "Weather data bus" + annotation (Placement(transformation(extent={{-140,-10},{-120,10}}), + iconTransformation(extent={{-152,-10},{-132,10}}))); + Modelica.Thermal.HeatTransfer.Sources.PrescribedTemperature TOut + "Exterior temperature boundary condition" + annotation (Placement(transformation(extent={{-80,-10},{-60,10}}))); +equation + connect(weaDat.weaBus, weaBus) annotation (Line( + points={{-160,0},{-130,0}}, + color={255,204,51}, + thickness=0.5)); + connect(TOut.T, weaBus.TDryBul) + annotation (Line(points={{-82,0},{-130,0}}, color={0,0,127})); + annotation (Diagram(coordinateSystem(preserveAspectRatio=false, extent={{-220, + -220},{220,220}}), graphics={ + Rectangle( + extent={{-200,60},{-20,-60}}, + fillColor={238,238,238}, + fillPattern=FillPattern.Solid, + pattern=LinePattern.None), + Rectangle( + extent={{-200,-80},{200,-200}}, + fillColor={238,238,238}, + fillPattern=FillPattern.Solid, + pattern=LinePattern.None), + Rectangle( + extent={{-200,200},{200,80}}, + fillColor={238,238,238}, + fillPattern=FillPattern.Solid, + pattern=LinePattern.None), + Rectangle( + extent={{0,60},{200,-60}}, + fillColor={238,238,238}, + fillPattern=FillPattern.Solid, + pattern=LinePattern.None), + Text( + extent={{57.25,40.25},{2.75,59.75}}, + textColor={0,0,127}, + fillColor={255,213,170}, + fillPattern=FillPattern.Solid, + textString="Building"), + Text( + extent={{-137,-99},{-203,-81}}, + textColor={0,0,127}, + fillColor={255,213,170}, + fillPattern=FillPattern.Solid, + textString="Heating"), + Text( + extent={{-102,39},{-198,61}}, + textColor={0,0,127}, + fillColor={255,213,170}, + fillPattern=FillPattern.Solid, + textString="Weather inputs"), + Text( + extent={{-61,179},{-199,201}}, + textColor={0,0,127}, + fillColor={255,213,170}, + fillPattern=FillPattern.Solid, + textString="Cooling and ventilation")}), + experiment(Tolerance=1E-6, StopTime=1e+06), + Documentation(revisions=" + +", info=" +

+This model is used as the starting point for the +IBPSA.Examples.Tutorial.SimpleHouse +tutorial. +It contains a weather data reader and a PrescribedTemperature component +that allows the user to connect thermal components to the dry bulb temperature. +It was based on from the Modelica crash course organised by KU Leuven +(https://github.com/open-ideas/__CrashCourse__). +

+"), + __Dymola_Commands(file= + "modelica://IBPSA/Resources/Scripts/Dymola/Examples/Tutorial/SimpleHouse/SimpleHouse0.mos" + "Simulate and plot")); +end SimpleHouse0; diff --git a/IBPSA/Examples/Tutorial/SimpleHouse/SimpleHouse1.mo b/IBPSA/Examples/Tutorial/SimpleHouse/SimpleHouse1.mo new file mode 100644 index 0000000000..fecad2d2a3 --- /dev/null +++ b/IBPSA/Examples/Tutorial/SimpleHouse/SimpleHouse1.mo @@ -0,0 +1,90 @@ +within IBPSA.Examples.Tutorial.SimpleHouse; +model SimpleHouse1 "Building wall model" + extends SimpleHouse0; + + Modelica.Thermal.HeatTransfer.Components.HeatCapacitor walCap( + C=AWall*dWall*cpWall*rhoWall, + T(fixed=true)) + "Thermal mass of wall" + annotation (Placement(transformation(extent={{-10,-10},{10,10}}, + rotation=270, + origin={170,0}))); + Modelica.Thermal.HeatTransfer.Components.ThermalResistor walRes( + R=dWall/AWall/kWall) "Thermal resistor for wall: 25 cm of rockwool" + annotation (Placement(transformation(extent={{60,-10},{80,10}}))); +equation + connect(walRes.port_b, walCap.port) annotation (Line(points={{80,0},{100,0},{100, + 1.77636e-15},{160,1.77636e-15}}, color={191,0,0})); + connect(TOut.port, walRes.port_a) + annotation (Line(points={{-60,0},{60,0}}, color={191,0,0})); + annotation (Diagram(coordinateSystem(preserveAspectRatio=false, extent={{-220, + -220},{220,220}})), + experiment(Tolerance=1e-6, StopTime=1e+06), + Documentation(revisions=" + +", info=" +

+A very simple building envelope model will be constructed manually using thermal resistors and heat capacitors. +The house consists of a wall represented by a single heat capacitor and a thermal resistor. +The boundary temperature are already included in + +IBPSA.Examples.Tutorial.SimpleHouse.SimpleHouse0. +The wall has a surface area of Awall=100 m2, +a thickness of dwall=25 cm, +a thermal conductivity of kwall=0.04 W/(m K), +a density of ρwall=2000 kg/m3, +and a specific heat capacity of cp,wall= 1000 J/(kg K) +

+

+These parameters are already declared in the equation section of + +IBPSA.Examples.Tutorial.SimpleHouse.SimpleHouse0. +You can use this way of declaring parameters in the remainder of this exercise, but this is not required. +

+

+The conductive thermal resistance value of a wall may be computed as R=d/(A*k). +The heat capacity value of a wall may be computed as C=A*d*cp +

+

Required models

+ +

Connection instructions

+

+Connect one side of the thermal resistor to the output of PrescribedTemperature +and the other side of the thermal resistor to the heat capacitor. +

+

Reference result

+

+If you correctly added the model of the heat capacitor, +connected it to the resistor and added the parameter values for C, +then you should be able to simulate the model. +To do this, press the Simulation Setup and set the model Stop time to 1e6 seconds. +You can now simulate the model by pressing the Simulate button. +

+

+You can plot individual variables values by clicking on their name in the variable browser on the left. +Now plot the wall capacitor temperature value T. +It should look like the figure below (1 Ms is around 12 days). +

+

+\"Wall +

+"), + __Dymola_Commands(file= + "modelica://IBPSA/Resources/Scripts/Dymola/Examples/Tutorial/SimpleHouse/SimpleHouse1.mos" + "Simulate and plot")); +end SimpleHouse1; diff --git a/IBPSA/Examples/Tutorial/SimpleHouse/SimpleHouse2.mo b/IBPSA/Examples/Tutorial/SimpleHouse/SimpleHouse2.mo new file mode 100644 index 0000000000..a35f20d80e --- /dev/null +++ b/IBPSA/Examples/Tutorial/SimpleHouse/SimpleHouse2.mo @@ -0,0 +1,79 @@ +within IBPSA.Examples.Tutorial.SimpleHouse; +model SimpleHouse2 "Building window model" + extends SimpleHouse1; + + parameter Modelica.Units.SI.Area AWin=2 "Window area"; + + Modelica.Blocks.Math.Gain gaiWin(k=AWin) + "Gain for solar irradiance through the window" + annotation (Placement(transformation(extent={{20,-50},{40,-30}}))); + Modelica.Thermal.HeatTransfer.Sources.PrescribedHeatFlow win + "Very simple window model" + annotation (Placement(transformation(extent={{60,-50},{80,-30}}))); +equation + connect(gaiWin.y, win.Q_flow) + annotation (Line(points={{41,-40},{60,-40}}, color={0,0,127})); + connect(gaiWin.u, weaBus.HDirNor) annotation (Line(points={{18,-40},{-130,-40}, + {-130,0}}, color={0,0,127}), Text( + string="%second", + index=1, + extent={{-6,3},{-6,3}}, + horizontalAlignment=TextAlignment.Right)); + connect(win.port, walCap.port) annotation (Line(points={{80,-40},{110,-40},{110, + 1.77636e-15},{160,1.77636e-15}}, color={191,0,0})); + annotation (Diagram(coordinateSystem(preserveAspectRatio=false, extent={{-220, + -220},{220,220}})), + experiment(Tolerance=1e-6, StopTime=1e+06), + Documentation(revisions=" + +", info=" +

+The window has a surface area of 2 m2. +In this simple model we will therefore assume that +two times the outdoor solar irradiance is injected as heat onto the inside of the wall. +

+

Required models

+ +

Connection instructions

+

+To be able to use the value of the outdoor solar irradiance +you will need to access the weather data reader. +To do this, make a connection to the weaBus. +In the dialog box select <New Variable> and here type HDirNor, +which is the direct solar irradiance on a surface of 1 m2, +perpendicular to the sun rays. +Set the gain factor k to 2, +in order to get the solar irradiance through the window of 2 m2. +

+

+Make a connection with the PrescribedHeatFlow as well. +This block makes the connection between the heat flow from the gain, represented as a real value, +and a heat port that is compatible with the connectors of the thermal capacitance and resistance. +

+

Reference result

+

+The result with and without the window model is plotted in the figure below. +

+

+\"Wall +

+"), + __Dymola_Commands(file= + "modelica://IBPSA/Resources/Scripts/Dymola/Examples/Tutorial/SimpleHouse/SimpleHouse2.mos" + "Simulate and plot")); +end SimpleHouse2; diff --git a/IBPSA/Examples/Tutorial/SimpleHouse/SimpleHouse3.mo b/IBPSA/Examples/Tutorial/SimpleHouse/SimpleHouse3.mo new file mode 100644 index 0000000000..59325b856b --- /dev/null +++ b/IBPSA/Examples/Tutorial/SimpleHouse/SimpleHouse3.mo @@ -0,0 +1,87 @@ +within IBPSA.Examples.Tutorial.SimpleHouse; +model SimpleHouse3 "Air model" + extends SimpleHouse2; + + parameter Modelica.Units.SI.Volume VZone=8*8*3 "Zone volume"; + parameter Modelica.Units.SI.MassFlowRate mAir_flow_nominal=1 + "Nominal mass flow rate for air loop"; + parameter Modelica.Units.SI.CoefficientOfHeatTransfer hWall=2 + "Convective heat transfer coefficient at the wall"; + + Modelica.Thermal.HeatTransfer.Components.ThermalResistor conRes(R=1/hWall/ + AWall) "Thermal resistance for convective heat transfer" annotation ( + Placement(transformation( + extent={{-10,-10},{10,10}}, + rotation=270, + origin={110,20}))); + IBPSA.Fluid.MixingVolumes.MixingVolume zon( + redeclare package Medium = MediumAir, + V=VZone, + energyDynamics=Modelica.Fluid.Types.Dynamics.FixedInitial, + m_flow_nominal=mAir_flow_nominal) "Very simple zone air model" + annotation (Placement(transformation(extent={{160,50},{180,30}}))); +equation + connect(zon.heatPort, conRes.port_a) + annotation (Line(points={{160,40},{110,40},{110,30}}, color={191,0,0})); + connect(conRes.port_b, walCap.port) annotation (Line(points={{110,10},{110,1.77636e-15}, + {160,1.77636e-15}}, color={191,0,0})); + annotation (Diagram(coordinateSystem(preserveAspectRatio=false, extent={{-220, + -220},{220,220}})), + experiment(Tolerance=1e-6, StopTime=1e+06), + Documentation(revisions=" + +", info=" +

+To increase the model detail we now add an air model assuming the zone is 8m x 8m x 3m in size. +The air will exchange heat with the wall. +This may be modelled using a thermal resistance representing +the convective heat resistance which is equal to Rconv=1/(h*A), +where A is the heat exchange surface area and h=2 W/(m2*K) is the convective heat transfer coefficient. +

+

Required models

+ +

Connection instructions

+

+The MixingVolume Medium parameter contains information about +the type of fluid and its properties that should be modelled by the MixingVolume. +Set its value to MediumAir, which is declared in the template, +by typing redeclare package Medium = MediumAir. +For the nominal mass flow rate you may assume a value of 1 kg/m3 for now. +You will have to change this value once you add a ventilation system to the model (see + +IBPSA.Examples.Tutorial.SimpleHouse.SimpleHouse6). +Finally, set the energyDynamics of the MixingVolume, +which can be found in the Dynamics tab of the model parameter window, to FixedInitial. +

+

+Make a connection with the PrescribedHeatFlow as well. +This block makes the connection between the heat flow from the gain, represented as a real value, +and a heat port that is compatible with the connectors of the thermal capacitance and resistance. +

+

Reference result

+

+The result with and without the air model is plotted in the figure below. +

+

+\"Wall +

+"), + __Dymola_Commands(file= + "modelica://IBPSA/Resources/Scripts/Dymola/Examples/Tutorial/SimpleHouse/SimpleHouse3.mos" + "Simulate and plot")); +end SimpleHouse3; diff --git a/IBPSA/Examples/Tutorial/SimpleHouse/SimpleHouse4.mo b/IBPSA/Examples/Tutorial/SimpleHouse/SimpleHouse4.mo new file mode 100644 index 0000000000..335d544c15 --- /dev/null +++ b/IBPSA/Examples/Tutorial/SimpleHouse/SimpleHouse4.mo @@ -0,0 +1,152 @@ +within IBPSA.Examples.Tutorial.SimpleHouse; +model SimpleHouse4 "Heating model" + extends SimpleHouse3; + + constant Boolean use_constantHeater=true + "To enable/disable the connection between the constant source and heater and circulation pump"; + + parameter Modelica.Units.SI.HeatFlowRate QHea_flow_nominal=3000 + "Nominal capacity of heating system"; + parameter Modelica.Units.SI.MassFlowRate mWat_flow_nominal=0.1 + "Nominal mass flow rate for water loop"; + + + IBPSA.Fluid.HeatExchangers.Radiators.RadiatorEN442_2 rad( + redeclare package Medium = MediumWater, + T_a_nominal=333.15, + T_b_nominal=313.15, + energyDynamics=Modelica.Fluid.Types.Dynamics.FixedInitial, + allowFlowReversal=false, + Q_flow_nominal=QHea_flow_nominal) "Radiator" + annotation (Placement(transformation(extent={{140,-140},{160,-120}}))); + + IBPSA.Fluid.HeatExchangers.HeaterCooler_u heaWat( + redeclare package Medium = MediumWater, + m_flow_nominal=mWat_flow_nominal, + energyDynamics=Modelica.Fluid.Types.Dynamics.SteadyState, + allowFlowReversal=false, + dp_nominal=5000, + Q_flow_nominal=QHea_flow_nominal) "Heater for water circuit" + annotation (Placement(transformation(extent={{60,-140},{80,-120}}))); + + Fluid.Movers.Preconfigured.FlowControlled_m_flow pum( + redeclare package Medium = MediumWater, + use_inputFilter=false, + m_flow_nominal=mWat_flow_nominal, + energyDynamics=Modelica.Fluid.Types.Dynamics.SteadyState, + allowFlowReversal=false) "Pump" + annotation (Placement(transformation(extent={{110,-190},{90,-170}}))); + + IBPSA.Fluid.Sources.Boundary_pT bouWat( + redeclare package Medium = MediumWater, + nPorts=1) + "Pressure bound for water circuit" + annotation (Placement(transformation( + extent={{-10,-10},{10,10}}, + origin={20,-180}))); + Modelica.Blocks.Sources.Constant conHea(k=1) + if use_constantHeater "Gain for heater" + annotation (Placement(transformation(extent={{80,-110},{60,-90}}))); + Modelica.Blocks.Sources.Constant conPum(k=mWat_flow_nominal) + if use_constantHeater "Gain for pump" + annotation (Placement(transformation(extent={{130,-160},{110,-140}}))); +equation + connect(heaWat.port_b,rad. port_a) annotation (Line(points={{80,-130},{140,-130}}, + color={0,127,255})); + connect(rad.port_b, pum.port_a) annotation (Line(points={{160,-130},{175,-130}, + {175,-180},{110,-180}}, color={0,127,255})); + connect(heaWat.port_a, pum.port_b) annotation (Line(points={{60,-130},{39.75,-130}, + {39.75,-180},{90,-180}}, color={0,127,255})); + connect(rad.heatPortCon, zon.heatPort) annotation (Line(points={{148,-122.8},{ + 148,40},{160,40}}, color={191,0,0})); + connect(rad.heatPortRad, walCap.port) annotation (Line(points={{152,-122.8},{152, + 1.77636e-15},{160,1.77636e-15}}, color={191,0,0})); + connect(conPum.y, pum.m_flow_in) annotation (Line(points={{109,-150},{100,-150}, + {100,-168}}, color={0,0,127})); + connect(conHea.y, heaWat.u) annotation (Line(points={{59,-100},{40,-100},{40,-124}, + {58,-124}}, color={0,0,127})); + connect(bouWat.ports[1], pum.port_b) + annotation (Line(points={{30,-180},{90,-180}}, color={0,127,255})); + annotation (Diagram(coordinateSystem(preserveAspectRatio=false, extent={{-220, + -220},{220,220}})), + experiment(Tolerance=1e-6, StopTime=1e+06), + Documentation(revisions=" + +", info=" +

+The wall temperature (and therefore the room temperature) is quite low. +In this step a heating system is added to resolve this. It consists of a radiator, a pump and a heater. +The radiator has a nominal power of 3 kW for an inlet and outlet temperature of the radiator of 60°C +and 40°C, and a room air and radiative temperature of 20°C. +The pump has a (nominal) mass flow rate of 0.1 kg/s. +Since the heating system uses water as a heat carrier fluid, +the media for the models in the heating circuit should be set to MediumWater. +

+

Required models

+ +

Connection instructions

+

+The radiator contains one port for convective heat transfer and one for radiative heat transfer. +Connect both in a reasonable way. Since the heating system uses water as a heat carrier fluid, +the media for the models should be set to MediumWater. +

+

+The Boundary_pT model needs to be used to set an absolute pressure somewhere in the system. +Otherwise the absolute pressure in the system is undefined. +Pressure difference modelling may be disregarded in the heating circuit +since the chosen pump sets a fixed mass flow rate regardless of the pressure drop. +

+

+Set the heater input to 1, meaning that it will produce 1 times its nominal power. +

+

Implementation

+

+The pump and the heater need a control input, which we set here to a constant +of 1. +However, in the next version of this model, we want to connect an actual controller to these models. +We can therefore introduce a Boolean constant (or a Boolean parameter +would also work), and use this to conditionally remove the Modelica block +that outputs the control signal. When Modelica removes such a block, then all +connections to it will also be removed. +

+

Reference result

+

+The result of the air temperature is plotted in the figure below. +The temperature rises very steeply since the wall is relatively well insulated (k=0.04 W/(m*K)) +and the heater is not disabled when it becomes too warm. +

+

+\"Air +

+"), + __Dymola_Commands(file= + "modelica://IBPSA/Resources/Scripts/Dymola/Examples/Tutorial/SimpleHouse/SimpleHouse4.mos" + "Simulate and plot")); +end SimpleHouse4; diff --git a/IBPSA/Examples/Tutorial/SimpleHouse/SimpleHouse5.mo b/IBPSA/Examples/Tutorial/SimpleHouse/SimpleHouse5.mo new file mode 100644 index 0000000000..108e59050b --- /dev/null +++ b/IBPSA/Examples/Tutorial/SimpleHouse/SimpleHouse5.mo @@ -0,0 +1,86 @@ +within IBPSA.Examples.Tutorial.SimpleHouse; +model SimpleHouse5 "Heating controller model" + extends SimpleHouse4(final use_constantHeater=false); + + Modelica.Blocks.Math.BooleanToReal booRea1(realTrue=mWat_flow_nominal) + "Boolean to integer" + annotation (Placement(transformation(extent={{0,-160},{20,-140}}))); + Modelica.Blocks.Math.BooleanToReal booRea "Boolean to real" + annotation (Placement(transformation(extent={{0,-120},{20,-100}}))); + Modelica.Blocks.Logical.Hysteresis hysRad(uLow=273.15 + 21, uHigh=273.15 + 23) + "Hysteresis controller for radiator" + annotation (Placement(transformation(extent={{-80,-120},{-60,-100}}))); + Modelica.Blocks.Logical.Not not1 + "Negation for enabling heating when temperature is low" + annotation (Placement(transformation(extent={{-40,-120},{-20,-100}}))); + Modelica.Thermal.HeatTransfer.Sensors.TemperatureSensor senTemZonAir + "Zone air temperature sensor" + annotation (Placement(transformation(extent={{90,160},{70,180}}))); +equation + connect(booRea1.u, not1.y) annotation (Line(points={{-2,-150},{-11.5,-150},{-11.5, + -110},{-19,-110}}, color={255,0,255})); + connect(not1.u,hysRad. y) annotation (Line(points={{-42,-110},{-59,-110}}, + color={255,0,255})); + connect(senTemZonAir.T,hysRad. u) annotation (Line(points={{69,170},{-210,170}, + {-210,-110},{-82,-110}}, color={0,0,127})); + connect(senTemZonAir.port, zon.heatPort) + annotation (Line(points={{90,170},{160,170},{160,40}}, color={191,0,0})); + connect(not1.y, booRea.u) + annotation (Line(points={{-19,-110},{-2,-110}}, color={255,0,255})); + connect(booRea.y, heaWat.u) annotation (Line(points={{21,-110},{40,-110},{40,-124}, + {58,-124}}, color={0,0,127})); + connect(booRea1.y, pum.m_flow_in) annotation (Line(points={{21,-150},{100,-150}, + {100,-168}}, color={0,0,127})); + annotation (Diagram(coordinateSystem(preserveAspectRatio=false, extent={{-220, + -220},{220,220}})), + experiment(Tolerance=1e-6, StopTime=1e+06), + Documentation(revisions=" + +", info=" +

+Since the zone becomes too warm, a controller is required that disables the heater when a setpoint is reached. +We will implement a hysteresis controller with a setpoint of 295.15 +/- 1K (21-23°C). +A temperature sensor will measure the zone air temperature. +

+

Required models

+ +

Connection instructions

+

+The heater modulation level should be set to 1 when the heater is on and to 0 otherwise. +Furthermore, the pump should only circulate water when the heater is on. +

+

Reference result

+

+The figure below shows the air temperature after the controller is added. +

+

+\"Air +

+"), + __Dymola_Commands(file= + "modelica://IBPSA/Resources/Scripts/Dymola/Examples/Tutorial/SimpleHouse/SimpleHouse5.mos" + "Simulate and plot")); +end SimpleHouse5; diff --git a/IBPSA/Examples/Tutorial/SimpleHouse/SimpleHouse6.mo b/IBPSA/Examples/Tutorial/SimpleHouse/SimpleHouse6.mo new file mode 100644 index 0000000000..aee5eb15c2 --- /dev/null +++ b/IBPSA/Examples/Tutorial/SimpleHouse/SimpleHouse6.mo @@ -0,0 +1,161 @@ +within IBPSA.Examples.Tutorial.SimpleHouse; +model SimpleHouse6 "Free cooling model" + extends SimpleHouse5( + zon(nPorts=2), + mAir_flow_nominal=0.1, + AWin=6); + + parameter Modelica.Units.SI.PressureDifference dpAir_nominal=200 + "Pressure drop at nominal mass flow rate for air loop"; + + IBPSA.Fluid.Actuators.Dampers.Exponential vavDam( + redeclare package Medium = MediumAir, + from_dp=true, + m_flow_nominal=mAir_flow_nominal, + dpDamper_nominal=dpAir_nominal) + "Damper" annotation (Placement(transformation(extent={{-10,10},{10, + -10}}, origin={110,130}))); + Fluid.Movers.Preconfigured.FlowControlled_dp fan( + redeclare package Medium = MediumAir, + show_T=true, + dp_nominal=dpAir_nominal, + use_inputFilter=false, + energyDynamics=Modelica.Fluid.Types.Dynamics.SteadyState, + m_flow_nominal=mAir_flow_nominal) + "Constant head fan" annotation (Placement(transformation( + extent={{-10,10},{10,-10}}, + origin={0,130}))); + + IBPSA.Fluid.HeatExchangers.ConstantEffectiveness hexRec( + redeclare package Medium1 = MediumAir, + redeclare package Medium2 = MediumAir, + dp1_nominal=10, + dp2_nominal=10, + m1_flow_nominal=mAir_flow_nominal, + m2_flow_nominal=mAir_flow_nominal, + eps=0.85) "Heat exchanger for heat recuperation" + annotation (Placement(transformation(extent={{-55,124},{-85,156}}))); + IBPSA.Fluid.Sources.Boundary_pT bouAir( + redeclare package Medium = MediumAir, + use_T_in=true, + nPorts=2) "Air boundary with constant temperature" + annotation (Placement(transformation( + extent={{-10,-10},{10,10}}, + origin={-110,140}))); + Modelica.Blocks.Logical.Hysteresis hysAir(uLow=273.15 + 23, uHigh=273.15 + 25) + "Hysteresis controller for damper" + annotation (Placement(transformation(extent={{-10,-10},{10,10}}, + rotation=270, + origin={50,110}))); + Modelica.Blocks.Math.BooleanToReal booRea2 "Boolean to real" + annotation (Placement(transformation(extent={{80,80},{100,100}}))); + Modelica.Blocks.Math.BooleanToReal booRea3(realTrue=dpAir_nominal) + "Boolean to real" + annotation (Placement(transformation(extent={{30,80},{10,100}}))); +equation + connect(hexRec.port_a1, zon.ports[1]) annotation (Line(points={{-55,149.6},{169, + 149.6},{169,50},{170,50}}, color={0,127,255})); + connect(bouAir.T_in, weaBus.TDryBul) annotation (Line(points={{-122,144},{-130, + 144},{-130,0}}, color={0,0,127})); + connect(vavDam.port_b, zon.ports[2]) annotation (Line(points={{120,130},{142,130}, + {142,50},{170,50}}, + color={0,127,255})); + connect(booRea2.y, vavDam.y) + annotation (Line(points={{101,90},{110,90},{110,118}}, color={0,0,127})); + connect(hysAir.y, booRea2.u) + annotation (Line(points={{50,99},{50,90},{78,90}}, color={255,0,255})); + connect(vavDam.port_a, fan.port_b) + annotation (Line(points={{100,130},{10,130}}, color={0,127,255})); + connect(bouAir.ports[1], hexRec.port_a2) annotation (Line(points={{-100,139},{ + -100,130.4},{-85,130.4}}, color={0,127,255})); + connect(fan.port_a, hexRec.port_b2) annotation (Line(points={{-10,130},{-32,130}, + {-32,130.4},{-55,130.4}}, color={0,127,255})); + connect(hexRec.port_b1, bouAir.ports[2]) annotation (Line(points={{-85,149.6}, + {-100,149.6},{-100,141}}, color={0,127,255})); + connect(booRea1.y, pum.m_flow_in) annotation (Line(points={{21,-150},{100, + -150},{100,-168}}, color={0,0,127})); + connect(hysAir.u, hysRad.u) annotation (Line(points={{50,122},{50,170},{-210, + 170},{-210,-110},{-82,-110}}, color={0,0,127})); + connect(booRea3.y, fan.dp_in) + annotation (Line(points={{9,90},{0,90},{0,118}}, color={0,0,127})); + connect(booRea3.u, hysAir.y) + annotation (Line(points={{32,90},{50,90},{50,99}}, color={255,0,255})); + annotation (Diagram(coordinateSystem(preserveAspectRatio=false, extent={{-220, + -220},{220,220}})), + experiment(Tolerance=1e-6, StopTime=1e+06), + Documentation(revisions=" + +", info=" +

+For this last exercise, we first increase the window size +from 2 m2 to 6 m2. +

+

+We will add a ventilation model that allows to perform free cooling +using outside air when solar irradiation heats up the room too much. +The system consists of a fan, a damper, a controller with an air temperature setpoint +between 23°C and 25°C, +and a heat recovery unit with a constant effectiveness of 85%. +The damper and fan have a nominal pressure drop/raise of 200 Pa. +The heat recovery unit has a nominal pressure drop of 10 Pa at both sides. +The nominal mass flow rate of the ventilation system is 0.1 kg/s. +

+

Required models

+ +

Connection instructions

+

+Connect the components such that they exchange mass (and therefore also energy) +with the MixingVolume representing the zone air. +Add a boundary_pT to draw air from the environment. +Enable its temperature input and connect it to the TDryBul variable in the weather data reader. +Also reconsider the nominal mass flow rate parameter value in the MixingVolume +given the flow rate information of the ventilation system. +Finally, make sure that the fan is only active when the damper is open. +

+

Reference result

+

+The figures below show the results. +

+

+\"Air +

+

+\"Ventilation +

+"), + __Dymola_Commands(file= + "modelica://IBPSA/Resources/Scripts/Dymola/Examples/Tutorial/SimpleHouse/SimpleHouse6.mos" + "Simulate and plot")); +end SimpleHouse6; diff --git a/IBPSA/Examples/Tutorial/SimpleHouse/package.mo b/IBPSA/Examples/Tutorial/SimpleHouse/package.mo new file mode 100644 index 0000000000..fbc13637ba --- /dev/null +++ b/IBPSA/Examples/Tutorial/SimpleHouse/package.mo @@ -0,0 +1,88 @@ +within IBPSA.Examples.Tutorial; +package SimpleHouse "Package with example for how to build a simple building envelope with a radiator heating system and ventilation system" +extends Modelica.Icons.ExamplesPackage; + + annotation (Documentation(info=" +

+This package contains examples with step-by-step instructions for how to build a system model +for a simple house with a heating system, ventilation, and weather boundary conditions. +It serves as a demonstration case of how the IBPSA library can be used. +

+

+The goal of this exercise is to become familiar with Modelica and the IBPSA library. +Since the IBPSA library components are typically used by combining several components graphically, +the use of equations falls outside of the scope of this exercise. +

+

+For this exercise you will create a model of a simple house, +consisting of a heating system, one building zone, and a ventilation model. +The exercise starts from a template file that should not produce any errors. +This file will be extended in several steps, adding complexity. +In between each step the user should be able to simulate the model, +i.e., no errors should be produced and simulation results may be compared. +

+

+The model has been created in the following stages: +

+
    +
  1. + +IBPSA.Examples.Tutorial.SimpleHouse.SimpleHouse0 +contains a weather data reader which connects the data of the dry bulb temperature +to a PrescribedTemperature component +and serves as a starting model to implement the entire SimpleHouse model. +
  2. +
  3. + +IBPSA.Examples.Tutorial.SimpleHouse.SimpleHouse1 +implements the building wall by adding a thermal capacity. +
  4. +
  5. + +IBPSA.Examples.Tutorial.SimpleHouse.SimpleHouse2 +adds a window to the building wall. +It is assumed that the total injected heat through the window equals the window surface area +multiplied by the direct horizontal solar irradiance. +
  6. +
  7. + +IBPSA.Examples.Tutorial.SimpleHouse.SimpleHouse3 +adds an air model which represents the room in the building. +
  8. +
  9. + +IBPSA.Examples.Tutorial.SimpleHouse.SimpleHouse4 +adds heating circuit consisting of a boiler, a radiator, +and an on/off circulation pump with a constant mass flow rate. +No controller is implemented yet, i.e. the pump and heater are always on. +
  10. +
  11. + +IBPSA.Examples.Tutorial.SimpleHouse.SimpleHouse5 +adds a hysteresis controller for the heating circuit that uses the room temperature as an input. +
  12. +
  13. + +IBPSA.Examples.Tutorial.SimpleHouse.SimpleHouse6 +adds a ventilation system consisting of a fan, a damper, a heat recovery unit, +and a hysteresis controller, that allows to perform free cooling using outside air. +
  14. +
+

+For each stage, firstly the model part is qualitatively explained. +Next, the names of the required Modelica models (from the Modelica Standard Library and/or IBPSA library) are listed. +Finally, we provide high-level instructions of how to set up the model. +If these instructions are not clear immediately, have a look at the model documentation and at the type of connectors the model has, +try out some things, make an educated guess, etc. +Finally, we provide reference results that allow you to check if your implementation is correct. +Depending on the parameter values that you choose, results may differ. +

+

+The graphical representation of the final model is given below. +

+

+\"Graphical +

+")); +end SimpleHouse; diff --git a/IBPSA/Examples/Tutorial/SimpleHouse/package.order b/IBPSA/Examples/Tutorial/SimpleHouse/package.order new file mode 100644 index 0000000000..e975e02c46 --- /dev/null +++ b/IBPSA/Examples/Tutorial/SimpleHouse/package.order @@ -0,0 +1,7 @@ +SimpleHouse0 +SimpleHouse1 +SimpleHouse2 +SimpleHouse3 +SimpleHouse4 +SimpleHouse5 +SimpleHouse6 diff --git a/IBPSA/Examples/Tutorial/package.mo b/IBPSA/Examples/Tutorial/package.mo new file mode 100644 index 0000000000..c949a59d8e --- /dev/null +++ b/IBPSA/Examples/Tutorial/package.mo @@ -0,0 +1,13 @@ +within IBPSA.Examples; +package Tutorial "Tutorial with step by step instructions for how to build system models" + extends Modelica.Icons.Information; + +annotation (preferredView="info", Documentation(info=" +

+This package contains examples of system models with step by step +instructions for how to build such models. +The examples are meant to instruct new users on how to build +large system models. +

+")); +end Tutorial; diff --git a/IBPSA/Examples/Tutorial/package.order b/IBPSA/Examples/Tutorial/package.order new file mode 100644 index 0000000000..6e0ff92568 --- /dev/null +++ b/IBPSA/Examples/Tutorial/package.order @@ -0,0 +1 @@ +SimpleHouse diff --git a/IBPSA/Examples/package.mo b/IBPSA/Examples/package.mo new file mode 100644 index 0000000000..e6c1857adb --- /dev/null +++ b/IBPSA/Examples/package.mo @@ -0,0 +1,11 @@ +within IBPSA; +package Examples "Collection of models that illustrate model use and test models" + extends Modelica.Icons.ExamplesPackage; +annotation (preferredView="info", Documentation(info=" +

+This package contains examples for the use of models that can be found in + +IBPSA. +

+")); +end Examples; diff --git a/IBPSA/Examples/package.order b/IBPSA/Examples/package.order new file mode 100644 index 0000000000..cb1be3b6b6 --- /dev/null +++ b/IBPSA/Examples/package.order @@ -0,0 +1 @@ +Tutorial diff --git a/IBPSA/Fluid/Examples/SimpleHouse.mo b/IBPSA/Fluid/Examples/SimpleHouse.mo index 13c57eb561..b4d8fd3ce0 100644 --- a/IBPSA/Fluid/Examples/SimpleHouse.mo +++ b/IBPSA/Fluid/Examples/SimpleHouse.mo @@ -340,7 +340,7 @@ First implementation.

This model contains a simple model of a house with a heating system, ventilation and weather boundary conditions. -It servers as a demonstration case of how the IBPSA library can be used. +It serves as a demonstration case of how the IBPSA library can be used.

"), __Dymola_Commands(file= diff --git a/IBPSA/Resources/Images/Examples/Tutorial/SimpleHouse/airModel.png b/IBPSA/Resources/Images/Examples/Tutorial/SimpleHouse/airModel.png new file mode 100644 index 0000000000..ddb74b9abe Binary files /dev/null and b/IBPSA/Resources/Images/Examples/Tutorial/SimpleHouse/airModel.png differ diff --git a/IBPSA/Resources/Images/Examples/Tutorial/SimpleHouse/heatingControllerModel.png b/IBPSA/Resources/Images/Examples/Tutorial/SimpleHouse/heatingControllerModel.png new file mode 100644 index 0000000000..5c8fd64cba Binary files /dev/null and b/IBPSA/Resources/Images/Examples/Tutorial/SimpleHouse/heatingControllerModel.png differ diff --git a/IBPSA/Resources/Images/Examples/Tutorial/SimpleHouse/result1.png b/IBPSA/Resources/Images/Examples/Tutorial/SimpleHouse/result1.png new file mode 100644 index 0000000000..58146cf033 Binary files /dev/null and b/IBPSA/Resources/Images/Examples/Tutorial/SimpleHouse/result1.png differ diff --git a/IBPSA/Resources/Images/Examples/Tutorial/SimpleHouse/result2.png b/IBPSA/Resources/Images/Examples/Tutorial/SimpleHouse/result2.png new file mode 100644 index 0000000000..c20f861922 Binary files /dev/null and b/IBPSA/Resources/Images/Examples/Tutorial/SimpleHouse/result2.png differ diff --git a/IBPSA/Resources/Images/Examples/Tutorial/SimpleHouse/result3.png b/IBPSA/Resources/Images/Examples/Tutorial/SimpleHouse/result3.png new file mode 100644 index 0000000000..43924e454c Binary files /dev/null and b/IBPSA/Resources/Images/Examples/Tutorial/SimpleHouse/result3.png differ diff --git a/IBPSA/Resources/Images/Examples/Tutorial/SimpleHouse/result4.png b/IBPSA/Resources/Images/Examples/Tutorial/SimpleHouse/result4.png new file mode 100644 index 0000000000..1db7d60619 Binary files /dev/null and b/IBPSA/Resources/Images/Examples/Tutorial/SimpleHouse/result4.png differ diff --git a/IBPSA/Resources/Images/Examples/Tutorial/SimpleHouse/result5.png b/IBPSA/Resources/Images/Examples/Tutorial/SimpleHouse/result5.png new file mode 100644 index 0000000000..081143cf46 Binary files /dev/null and b/IBPSA/Resources/Images/Examples/Tutorial/SimpleHouse/result5.png differ diff --git a/IBPSA/Resources/Images/Examples/Tutorial/SimpleHouse/result6.png b/IBPSA/Resources/Images/Examples/Tutorial/SimpleHouse/result6.png new file mode 100644 index 0000000000..5478794b62 Binary files /dev/null and b/IBPSA/Resources/Images/Examples/Tutorial/SimpleHouse/result6.png differ diff --git a/IBPSA/Resources/Images/Examples/Tutorial/SimpleHouse/result7.png b/IBPSA/Resources/Images/Examples/Tutorial/SimpleHouse/result7.png new file mode 100644 index 0000000000..48eb6a2cbc Binary files /dev/null and b/IBPSA/Resources/Images/Examples/Tutorial/SimpleHouse/result7.png differ diff --git a/IBPSA/Resources/Images/Examples/Tutorial/SimpleHouse/simpleHouse.png b/IBPSA/Resources/Images/Examples/Tutorial/SimpleHouse/simpleHouse.png new file mode 100644 index 0000000000..42f5c8821e Binary files /dev/null and b/IBPSA/Resources/Images/Examples/Tutorial/SimpleHouse/simpleHouse.png differ diff --git a/IBPSA/Resources/Images/Examples/Tutorial/SimpleHouse/simulate.png b/IBPSA/Resources/Images/Examples/Tutorial/SimpleHouse/simulate.png new file mode 100644 index 0000000000..bca44d4226 Binary files /dev/null and b/IBPSA/Resources/Images/Examples/Tutorial/SimpleHouse/simulate.png differ diff --git a/IBPSA/Resources/ReferenceResults/Dymola/IBPSA_Examples_Tutorial_SimpleHouse_SimpleHouse0.txt b/IBPSA/Resources/ReferenceResults/Dymola/IBPSA_Examples_Tutorial_SimpleHouse_SimpleHouse0.txt new file mode 100644 index 0000000000..edb3888914 --- /dev/null +++ b/IBPSA/Resources/ReferenceResults/Dymola/IBPSA_Examples_Tutorial_SimpleHouse_SimpleHouse0.txt @@ -0,0 +1,9 @@ +last-generated=2023-09-15 +statistics-simulation= +{ + "linear": " ", + "nonlinear": "1", + "numerical Jacobians": "0" +} +time=[0e+00, 1e+06] +TOut.T=[2.609500122070312e+02, 2.619280090332031e+02, 2.625499877929688e+02, 2.634280090332031e+02, 2.683388977050781e+02, 2.720243530273438e+02, 2.720499877929688e+02, 2.713381958007812e+02, 2.719623107910156e+02, 2.6925e+02, 2.701626892089844e+02, 2.723464965820312e+02, 2.733500061035156e+02, 2.748500061035156e+02, 2.725348815917969e+02, 2.727846984863281e+02, 2.745153503417969e+02, 2.731499938964844e+02, 2.731499938964844e+02, 2.7229443359375e+02, 2.698047180175781e+02, 2.689043273925781e+02, 2.703500061035156e+02, 2.703500061035156e+02, 2.703500061035156e+02, 2.703500061035156e+02, 2.703500061035156e+02, 2.703500061035156e+02, 2.698500061035156e+02, 2.706798400878906e+02, 2.716392211914062e+02, 2.7251513671875e+02, 2.704963989257812e+02, 2.680260009765625e+02, 2.676611022949219e+02, 2.660404052734375e+02, 2.6425e+02, 2.58110595703125e+02, 2.604417114257812e+02, 2.657166748046875e+02, 2.6940087890625e+02, 2.682166748046875e+02, 2.657166748046875e+02, 2.637611083984375e+02, 2.618667907714844e+02, 2.5925e+02, 2.581764831542969e+02, 2.604611206054688e+02, 2.616584777832031e+02, 2.608323364257812e+02, 2.561037292480469e+02, 2.546492767333984e+02, 2.542643737792969e+02, 2.530166625976562e+02, 2.509499969482422e+02, 2.541903991699219e+02, 2.587667236328125e+02, 2.602073364257812e+02, 2.569347839355469e+02, 2.549143829345703e+02, 2.536127471923828e+02, 2.520500030517578e+02, 2.519742736816406e+02, 2.514499969482422e+02, 2.582235412597656e+02, 2.619212036132812e+02, 2.638611145019531e+02, 2.631499938964844e+02, 2.642012023925781e+02, 2.644055480957031e+02, 2.645002136230469e+02, 2.648500061035156e+02, 2.653500061035156e+02, 2.700659484863281e+02, 2.745177612304688e+02, 2.744092712402344e+02, 2.731917419433594e+02, 2.732166748046875e+02, 2.720499877929688e+02, 2.728128356933594e+02, 2.71162841796875e+02, 2.720499877929688e+02, 2.747403564453125e+02, 2.748898315429688e+02, 2.714833374023438e+02, 2.680546264648438e+02, 2.682166748046875e+02, 2.695e+02, 2.701371154785156e+02, 2.691971130371094e+02, 2.709500122070312e+02, 2.748510131835938e+02, 2.769389038085938e+02, 2.755428771972656e+02, 2.76398193359375e+02, 2.743096923828125e+02, 2.759377136230469e+02, 2.759291076660156e+02, 2.744010620117188e+02, 2.759500122070312e+02, 2.764174499511719e+02] diff --git a/IBPSA/Resources/ReferenceResults/Dymola/IBPSA_Examples_Tutorial_SimpleHouse_SimpleHouse1.txt b/IBPSA/Resources/ReferenceResults/Dymola/IBPSA_Examples_Tutorial_SimpleHouse_SimpleHouse1.txt new file mode 100644 index 0000000000..f7f50b5866 --- /dev/null +++ b/IBPSA/Resources/ReferenceResults/Dymola/IBPSA_Examples_Tutorial_SimpleHouse_SimpleHouse1.txt @@ -0,0 +1,10 @@ +last-generated=2023-09-08 +statistics-simulation= +{ + "linear": " ", + "nonlinear": "1", + "number of continuous time states": "1", + "numerical Jacobians": "0" +} +time=[0e+00, 1e+06] +walCap.T=[2.931499938964844e+02, 2.930488891601562e+02, 2.929534912109375e+02, 2.928625793457031e+02, 2.927890625e+02, 2.927221069335938e+02, 2.926539916992188e+02, 2.925841979980469e+02, 2.925122985839844e+02, 2.924403991699219e+02, 2.923712768554688e+02, 2.923157653808594e+02, 2.9226025390625e+02, 2.922047119140625e+02, 2.921505126953125e+02, 2.920964660644531e+02, 2.920424194335938e+02, 2.919769897460938e+02, 2.919044799804688e+02, 2.918319702148438e+02, 2.917594604492188e+02, 2.916893310546875e+02, 2.916217041015625e+02, 2.915540466308594e+02, 2.914863586425781e+02, 2.914178771972656e+02, 2.91349365234375e+02, 2.912808837890625e+02, 2.912074890136719e+02, 2.911309814453125e+02, 2.91054443359375e+02, 2.909779357910156e+02, 2.909013977050781e+02, 2.908248596191406e+02, 2.907483520507812e+02, 2.906789855957031e+02, 2.906123962402344e+02, 2.905458068847656e+02, 2.904791870117188e+02, 2.9041259765625e+02, 2.903459777832031e+02, 2.902665405273438e+02, 2.901768493652344e+02, 2.90087158203125e+02, 2.899946594238281e+02, 2.898983154296875e+02, 2.89802001953125e+02, 2.89703369140625e+02, 2.895991516113281e+02, 2.894949340820312e+02, 2.893912353515625e+02, 2.892901611328125e+02, 2.891891174316406e+02, 2.890880432128906e+02, 2.889869689941406e+02, 2.888859252929688e+02, 2.887772521972656e+02, 2.8866162109375e+02, 2.885459899902344e+02, 2.884303283691406e+02, 2.88314697265625e+02, 2.881990661621094e+02, 2.880933837890625e+02, 2.87989013671875e+02, 2.878941650390625e+02, 2.878175659179688e+02, 2.877409362792969e+02, 2.876662292480469e+02, 2.875919799804688e+02, 2.875189208984375e+02, 2.874469909667969e+02, 2.873750305175781e+02, 2.87322509765625e+02, 2.872810363769531e+02, 2.872395629882812e+02, 2.8719775390625e+02, 2.871559143066406e+02, 2.8711181640625e+02, 2.87065673828125e+02, 2.8701953125e+02, 2.86973388671875e+02, 2.8692724609375e+02, 2.868709716796875e+02, 2.8681298828125e+02, 2.867549743652344e+02, 2.866969604492188e+02, 2.86641357421875e+02, 2.865965576171875e+02, 2.865517272949219e+02, 2.865069274902344e+02, 2.864621276855469e+02, 2.864214782714844e+02, 2.863848266601562e+02, 2.863481750488281e+02, 2.863114929199219e+02, 2.862760925292969e+02, 2.862434387207031e+02, 2.862107849121094e+02, 2.861781311035156e+02, 2.861456604003906e+02, 2.861146240234375e+02] diff --git a/IBPSA/Resources/ReferenceResults/Dymola/IBPSA_Examples_Tutorial_SimpleHouse_SimpleHouse2.txt b/IBPSA/Resources/ReferenceResults/Dymola/IBPSA_Examples_Tutorial_SimpleHouse_SimpleHouse2.txt new file mode 100644 index 0000000000..8f376300c9 --- /dev/null +++ b/IBPSA/Resources/ReferenceResults/Dymola/IBPSA_Examples_Tutorial_SimpleHouse_SimpleHouse2.txt @@ -0,0 +1,10 @@ +last-generated=2023-09-08 +statistics-simulation= +{ + "linear": " ", + "nonlinear": "1", + "number of continuous time states": "1", + "numerical Jacobians": "0" +} +time=[0e+00, 1e+06] +walCap.T=[2.931499938964844e+02, 2.930488891601562e+02, 2.92951171875e+02, 2.929077758789062e+02, 2.930664672851562e+02, 2.930569763183594e+02, 2.929950561523438e+02, 2.929273986816406e+02, 2.9286083984375e+02, 2.927947387695312e+02, 2.927286376953125e+02, 2.926658325195312e+02, 2.926102905273438e+02, 2.925547485351562e+02, 2.924992065429688e+02, 2.924436645507812e+02, 2.923881225585938e+02, 2.923204345703125e+02, 2.922474060058594e+02, 2.921743774414062e+02, 2.921013488769531e+02, 2.920283203125e+02, 2.919590759277344e+02, 2.918905639648438e+02, 2.918220825195312e+02, 2.917535705566406e+02, 2.916881408691406e+02, 2.9162451171875e+02, 2.915609130859375e+02, 2.91497314453125e+02, 2.914298400878906e+02, 2.913567810058594e+02, 2.9128369140625e+02, 2.912106323242188e+02, 2.911360778808594e+02, 2.910520324707031e+02, 2.909473266601562e+02, 2.908467712402344e+02, 2.909483642578125e+02, 2.911876220703125e+02, 2.913215637207031e+02, 2.912642822265625e+02, 2.911821594238281e+02, 2.910911865234375e+02, 2.909936218261719e+02, 2.908921813964844e+02, 2.908085327148438e+02, 2.909213256835938e+02, 2.908730163574219e+02, 2.907909545898438e+02, 2.906813049316406e+02, 2.905657348632812e+02, 2.904463195800781e+02, 2.90326904296875e+02, 2.902008972167969e+02, 2.90253662109375e+02, 2.904949340820312e+02, 2.9073388671875e+02, 2.9076318359375e+02, 2.906505737304688e+02, 2.905325927734375e+02, 2.904100036621094e+02, 2.902860107421875e+02, 2.902075805664062e+02, 2.903280944824219e+02, 2.9051171875e+02, 2.906920471191406e+02, 2.906356506347656e+02, 2.905503234863281e+02, 2.904665222167969e+02, 2.90384765625e+02, 2.903038330078125e+02, 2.902547912597656e+02, 2.902696228027344e+02, 2.903644714355469e+02, 2.903743896484375e+02, 2.903198852539062e+02, 2.902648620605469e+02, 2.902106628417969e+02, 2.901565856933594e+02, 2.901155700683594e+02, 2.901807250976562e+02, 2.904189147949219e+02, 2.906371154785156e+02, 2.906368408203125e+02, 2.905658569335938e+02, 2.904955444335938e+02, 2.904268493652344e+02, 2.903612060546875e+02, 2.902947387695312e+02, 2.902566833496094e+02, 2.903972473144531e+02, 2.905760498046875e+02, 2.90551513671875e+02, 2.905042419433594e+02, 2.904523620605469e+02, 2.904047546386719e+02, 2.903594665527344e+02, 2.903141784667969e+02, 2.902702331542969e+02, 2.902278442382812e+02] diff --git a/IBPSA/Resources/ReferenceResults/Dymola/IBPSA_Examples_Tutorial_SimpleHouse_SimpleHouse3.txt b/IBPSA/Resources/ReferenceResults/Dymola/IBPSA_Examples_Tutorial_SimpleHouse_SimpleHouse3.txt new file mode 100644 index 0000000000..067c1f0e8d --- /dev/null +++ b/IBPSA/Resources/ReferenceResults/Dymola/IBPSA_Examples_Tutorial_SimpleHouse_SimpleHouse3.txt @@ -0,0 +1,10 @@ +last-generated=2023-09-08 +statistics-simulation= +{ + "linear": " ", + "nonlinear": "1", + "number of continuous time states": "4", + "numerical Jacobians": "0" +} +time=[0e+00, 1e+06] +zon.T=[2.931499938964844e+02, 2.930606689453125e+02, 2.929643249511719e+02, 2.928974304199219e+02, 2.930238342285156e+02, 2.930650634765625e+02, 2.930123291015625e+02, 2.929456481933594e+02, 2.928767395019531e+02, 2.928078918457031e+02, 2.927404479980469e+02, 2.9267724609375e+02, 2.926165771484375e+02, 2.925605163574219e+02, 2.925022888183594e+02, 2.924439086914062e+02, 2.923875122070312e+02, 2.923274841308594e+02, 2.92265869140625e+02, 2.922026977539062e+02, 2.921306457519531e+02, 2.920592956542969e+02, 2.919894714355469e+02, 2.919207763671875e+02, 2.918522338867188e+02, 2.917841491699219e+02, 2.917159729003906e+02, 2.916467895507812e+02, 2.915788269042969e+02, 2.915138549804688e+02, 2.914527893066406e+02, 2.913910827636719e+02, 2.913223266601562e+02, 2.912518920898438e+02, 2.911763610839844e+02, 2.910963134765625e+02, 2.91012939453125e+02, 2.909146118164062e+02, 2.909188232421875e+02, 2.911439819335938e+02, 2.913373718261719e+02, 2.9132763671875e+02, 2.912524108886719e+02, 2.911689758300781e+02, 2.910796508789062e+02, 2.909833679199219e+02, 2.9088916015625e+02, 2.909557800292969e+02, 2.909430236816406e+02, 2.908749084472656e+02, 2.907784423828125e+02, 2.906665649414062e+02, 2.905516052246094e+02, 2.904307250976562e+02, 2.903084411621094e+02, 2.902685852050781e+02, 2.904729614257812e+02, 2.90720458984375e+02, 2.908230285644531e+02, 2.907205505371094e+02, 2.906036071777344e+02, 2.904841613769531e+02, 2.90362548828125e+02, 2.902437438964844e+02, 2.902868347167969e+02, 2.904608154296875e+02, 2.906579284667969e+02, 2.906626892089844e+02, 2.905770263671875e+02, 2.904942626953125e+02, 2.904112548828125e+02, 2.90329833984375e+02, 2.902554016113281e+02, 2.902565612792969e+02, 2.903314819335938e+02, 2.903802490234375e+02, 2.903304748535156e+02, 2.902759704589844e+02, 2.902184753417969e+02, 2.901612548828125e+02, 2.901092224121094e+02, 2.901262512207031e+02, 2.903362731933594e+02, 2.905704040527344e+02, 2.906482238769531e+02, 2.905876770019531e+02, 2.905180358886719e+02, 2.904518127441406e+02, 2.903863830566406e+02, 2.903204040527344e+02, 2.902714538574219e+02, 2.903493041992188e+02, 2.905325927734375e+02, 2.905527954101562e+02, 2.905055541992188e+02, 2.904557495117188e+02, 2.904060974121094e+02, 2.903577270507812e+02, 2.903117370605469e+02, 2.902666931152344e+02, 2.902240600585938e+02] diff --git a/IBPSA/Resources/ReferenceResults/Dymola/IBPSA_Examples_Tutorial_SimpleHouse_SimpleHouse4.txt b/IBPSA/Resources/ReferenceResults/Dymola/IBPSA_Examples_Tutorial_SimpleHouse_SimpleHouse4.txt new file mode 100644 index 0000000000..142a5fe719 --- /dev/null +++ b/IBPSA/Resources/ReferenceResults/Dymola/IBPSA_Examples_Tutorial_SimpleHouse_SimpleHouse4.txt @@ -0,0 +1,16 @@ +last-generated=2023-09-22 +statistics-initialization= +{ + "nonlinear": "5, 1", + "numerical Jacobians": "0" +} +statistics-simulation= +{ + "linear": "0, 0, 0, 0, 0", + "nonlinear": "1", + "number of continuous time states": "9", + "numerical Jacobians": "0" +} +time=[0e+00, 1e+06] +zon.T=[2.931499938964844e+02, 3.018660888671875e+02, 3.023771057128906e+02, 3.028826293945312e+02, 3.035923767089844e+02, 3.042319030761719e+02, 3.047737731933594e+02, 3.052908020019531e+02, 3.058059997558594e+02, 3.063184204101562e+02, 3.068250732421875e+02, 3.073344421386719e+02, 3.078466796875e+02, 3.083621520996094e+02, 3.088759460449219e+02, 3.09385009765625e+02, 3.098930053710938e+02, 3.104030151367188e+02, 3.109069213867188e+02, 3.114094543457031e+02, 3.1190380859375e+02, 3.123905334472656e+02, 3.128765563964844e+02, 3.1336376953125e+02, 3.138492126464844e+02, 3.143329772949219e+02, 3.148152770996094e+02, 3.152959594726562e+02, 3.157742309570312e+02, 3.162513427734375e+02, 3.167302856445312e+02, 3.172109985351562e+02, 3.176896362304688e+02, 3.181584777832031e+02, 3.186222534179688e+02, 3.190793762207031e+02, 3.195327758789062e+02, 3.199698791503906e+02, 3.204874877929688e+02, 3.212442321777344e+02, 3.219810485839844e+02, 3.224926147460938e+02, 3.229402160644531e+02, 3.233777465820312e+02, 3.238073120117188e+02, 3.242283325195312e+02, 3.246451416015625e+02, 3.252303466796875e+02, 3.257347106933594e+02, 3.261798095703125e+02, 3.265981140136719e+02, 3.269945068359375e+02, 3.273874816894531e+02, 3.277762756347656e+02, 3.28158935546875e+02, 3.286009216308594e+02, 3.293093872070312e+02, 3.300609130859375e+02, 3.306753845214844e+02, 3.310667724609375e+02, 3.314440307617188e+02, 3.318173217773438e+02, 3.321861267089844e+02, 3.325527038574219e+02, 3.33074951171875e+02, 3.337319030761719e+02, 3.34415771484375e+02, 3.349126892089844e+02, 3.353080139160156e+02, 3.35704833984375e+02, 3.361001892089844e+02, 3.364956359863281e+02, 3.368927307128906e+02, 3.373624572753906e+02, 3.378966674804688e+02, 3.384328002929688e+02, 3.388543701171875e+02, 3.392696228027344e+02, 3.396800537109375e+02, 3.400876770019531e+02, 3.404961853027344e+02, 3.409460144042969e+02, 3.416133422851562e+02, 3.423163146972656e+02, 3.428580932617188e+02, 3.432500305175781e+02, 3.436331176757812e+02, 3.440154113769531e+02, 3.444025573730469e+02, 3.447880554199219e+02, 3.4517919921875e+02, 3.456988525390625e+02, 3.4633203125e+02, 3.468067016601562e+02, 3.47203857421875e+02, 3.475979614257812e+02, 3.479879760742188e+02, 3.483829345703125e+02, 3.4878271484375e+02, 3.491936950683594e+02, 3.49584228515625e+02] +heaWat.u=[1e+00, 1e+00] diff --git a/IBPSA/Resources/ReferenceResults/Dymola/IBPSA_Examples_Tutorial_SimpleHouse_SimpleHouse5.txt b/IBPSA/Resources/ReferenceResults/Dymola/IBPSA_Examples_Tutorial_SimpleHouse_SimpleHouse5.txt new file mode 100644 index 0000000000..f5c54c97ce --- /dev/null +++ b/IBPSA/Resources/ReferenceResults/Dymola/IBPSA_Examples_Tutorial_SimpleHouse_SimpleHouse5.txt @@ -0,0 +1,16 @@ +last-generated=2023-09-22 +statistics-initialization= +{ + "nonlinear": "5, 1", + "numerical Jacobians": "0" +} +statistics-simulation= +{ + "linear": "0, 0, 0, 0, 0", + "nonlinear": "1, 1", + "number of continuous time states": "9", + "numerical Jacobians": "0" +} +time=[0e+00, 1e+06] +zon.T=[2.931499938964844e+02, 2.945089721679688e+02, 2.959105529785156e+02, 2.966436462402344e+02, 2.963066101074219e+02, 2.943134460449219e+02, 2.95515625e+02, 2.947714538574219e+02, 2.9495068359375e+02, 2.954649353027344e+02, 2.949838562011719e+02, 2.943348693847656e+02, 2.955626525878906e+02, 2.9434130859375e+02, 2.96463623046875e+02, 2.953839721679688e+02, 2.944508972167969e+02, 2.941694641113281e+02, 2.967953186035156e+02, 2.956407165527344e+02, 2.947539672851562e+02, 2.943432922363281e+02, 2.941552734375e+02, 2.967925109863281e+02, 2.954992065429688e+02, 2.946384582519531e+02, 2.942777099609375e+02, 2.945531921386719e+02, 2.965014343261719e+02, 2.95139892578125e+02, 2.944806213378906e+02, 2.942200012207031e+02, 2.952698364257812e+02, 2.963566589355469e+02, 2.950704345703125e+02, 2.944278259277344e+02, 2.941521606445312e+02, 2.964190063476562e+02, 2.948162536621094e+02, 2.942771911621094e+02, 2.94465087890625e+02, 2.944435119628906e+02, 2.943599853515625e+02, 2.942666015625e+02, 2.941668395996094e+02, 2.942503051757812e+02, 2.942369689941406e+02, 2.943135070800781e+02, 2.94178466796875e+02, 2.943949584960938e+02, 2.946888427734375e+02, 2.944988403320312e+02, 2.9420947265625e+02, 2.966934814453125e+02, 2.947084655761719e+02, 2.950435180664062e+02, 2.942231140136719e+02, 2.944133911132812e+02, 2.945167236328125e+02, 2.944044799804688e+02, 2.942770080566406e+02, 2.943168640136719e+02, 2.946298828125e+02, 2.9666796875e+02, 2.958675842285156e+02, 2.9432373046875e+02, 2.944895935058594e+02, 2.944911499023438e+02, 2.943951721191406e+02, 2.943002624511719e+02, 2.942052001953125e+02, 2.951673278808594e+02, 2.95863525390625e+02, 2.944528503417969e+02, 2.942922058105469e+02, 2.942911682128906e+02, 2.942301025390625e+02, 2.941652221679688e+02, 2.943312683105469e+02, 2.947212219238281e+02, 2.951982727050781e+02, 2.957117614746094e+02, 2.943904418945312e+02, 2.946015014648438e+02, 2.946730346679688e+02, 2.945985717773438e+02, 2.945146789550781e+02, 2.944310302734375e+02, 2.943536071777344e+02, 2.9427587890625e+02, 2.942057189941406e+02, 2.942647094726562e+02, 2.944362487792969e+02, 2.944551086425781e+02, 2.943983154296875e+02, 2.9433837890625e+02, 2.942754821777344e+02, 2.942191162109375e+02, 2.941687622070312e+02, 2.955406494140625e+02, 2.941532897949219e+02] +heaWat.u=[1e+00, 1e+00, 1e+00, 0e+00, 0e+00, 0e+00, 0e+00, 1e+00, 0e+00, 1e+00, 0e+00, 1e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 1e+00, 0e+00, 0e+00, 0e+00, 0e+00, 1e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 1e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 1e+00, 1e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 1e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00] diff --git a/IBPSA/Resources/ReferenceResults/Dymola/IBPSA_Examples_Tutorial_SimpleHouse_SimpleHouse6.txt b/IBPSA/Resources/ReferenceResults/Dymola/IBPSA_Examples_Tutorial_SimpleHouse_SimpleHouse6.txt new file mode 100644 index 0000000000..938baee659 --- /dev/null +++ b/IBPSA/Resources/ReferenceResults/Dymola/IBPSA_Examples_Tutorial_SimpleHouse_SimpleHouse6.txt @@ -0,0 +1,19 @@ +last-generated=2023-09-22 +statistics-initialization= +{ + "nonlinear": "5, 1, 1, 1", + "numerical Jacobians": "0" +} +statistics-simulation= +{ + "linear": "0, 0, 0, 0, 0", + "nonlinear": "1, 0, 1, 1, 1", + "number of continuous time states": "11", + "numerical Jacobians": "0" +} +time=[0e+00, 1e+06] +zon.T=[2.931499938964844e+02, 2.945089721679688e+02, 2.9591064453125e+02, 2.966475830078125e+02, 2.943829650878906e+02, 2.942815856933594e+02, 2.942722473144531e+02, 2.942023620605469e+02, 2.961566772460938e+02, 2.945024719238281e+02, 2.941602478027344e+02, 2.941692504882812e+02, 2.941706237792969e+02, 2.941706237792969e+02, 2.941705322265625e+02, 2.941653137207031e+02, 2.941563415527344e+02, 2.941509399414062e+02, 2.944056091308594e+02, 2.951830139160156e+02, 2.965977478027344e+02, 2.966069641113281e+02, 2.957481384277344e+02, 2.950252685546875e+02, 2.945764465332031e+02, 2.943215942382812e+02, 2.94180419921875e+02, 2.960561218261719e+02, 2.962270202636719e+02, 2.950879821777344e+02, 2.945108642578125e+02, 2.942588195800781e+02, 2.941806640625e+02, 2.967988891601562e+02, 2.956056823730469e+02, 2.946774291992188e+02, 2.942577514648438e+02, 2.965518188476562e+02, 2.942180786132812e+02, 2.950231323242188e+02, 2.957951049804688e+02, 2.958897399902344e+02, 2.958036499023438e+02, 2.957058715820312e+02, 2.956014709472656e+02, 2.954901428222656e+02, 2.953812255859375e+02, 2.95774658203125e+02, 2.959231262207031e+02, 2.958972473144531e+02, 2.958116455078125e+02, 2.956848754882812e+02, 2.955555419921875e+02, 2.954234924316406e+02, 2.952870178222656e+02, 2.953417663574219e+02, 2.961522521972656e+02, 2.970872802734375e+02, 2.976217346191406e+02, 2.975176391601562e+02, 2.973813781738281e+02, 2.972411193847656e+02, 2.970978088378906e+02, 2.969556884765625e+02, 2.972678833007812e+02, 2.979459533691406e+02, 2.965876770019531e+02, 2.9662646484375e+02, 2.964955444335938e+02, 2.96348388671875e+02, 2.961519775390625e+02, 2.980340576171875e+02, 2.97945556640625e+02, 2.980509948730469e+02, 2.969284973144531e+02, 2.971327514648438e+02, 2.969211120605469e+02, 2.968067932128906e+02, 2.965878601074219e+02, 2.964856262207031e+02, 2.962904663085938e+02, 2.978039855957031e+02, 2.971774597167969e+02, 2.978542175292969e+02, 2.979235534667969e+02, 2.975361633300781e+02, 2.973731079101562e+02, 2.97257568359375e+02, 2.971753845214844e+02, 2.969627380371094e+02, 2.969120483398438e+02, 2.973593139648438e+02, 2.980839538574219e+02, 2.980621032714844e+02, 2.980005798339844e+02, 2.977577819824219e+02, 2.976856079101562e+02, 2.976208190917969e+02, 2.974056701660156e+02, 2.974419250488281e+02, 2.973436279296875e+02] +heaWat.u=[1e+00, 1e+00, 1e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 1e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 1e+00, 1e+00, 1e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 1e+00, 0e+00, 0e+00, 0e+00, 0e+00, 1e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00] +vavDam.y=[0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 1e+00, 1e+00, 1e+00, 1e+00, 1e+00, 0e+00, 0e+00, 0e+00, 1e+00, 1e+00, 1e+00, 1e+00, 1e+00, 1e+00, 1e+00, 0e+00, 1e+00, 1e+00, 1e+00, 1e+00, 1e+00, 1e+00, 1e+00, 1e+00, 1e+00, 1e+00, 1e+00, 1e+00, 1e+00, 1e+00, 1e+00, 1e+00, 1e+00, 1e+00, 1e+00] +fan.sta_a.T=[2.931499938964844e+02, 2.945089721679688e+02, 2.9591064453125e+02, 2.966475830078125e+02, 2.943829650878906e+02, 2.942815856933594e+02, 2.942722473144531e+02, 2.942023620605469e+02, 2.961566772460938e+02, 2.945024719238281e+02, 2.941602478027344e+02, 2.941692504882812e+02, 2.941706237792969e+02, 2.941706237792969e+02, 2.941705322265625e+02, 2.941653137207031e+02, 2.941563415527344e+02, 2.941509399414062e+02, 2.944056091308594e+02, 2.951830139160156e+02, 2.965977478027344e+02, 2.966069641113281e+02, 2.957481384277344e+02, 2.950252685546875e+02, 2.945764465332031e+02, 2.943215942382812e+02, 2.94180419921875e+02, 2.960561218261719e+02, 2.962270202636719e+02, 2.950879821777344e+02, 2.945108642578125e+02, 2.942588195800781e+02, 2.941806640625e+02, 2.967988891601562e+02, 2.956056823730469e+02, 2.946774291992188e+02, 2.942577514648438e+02, 2.965518188476562e+02, 2.942180786132812e+02, 2.950231323242188e+02, 2.957951049804688e+02, 2.958897399902344e+02, 2.958036499023438e+02, 2.957058715820312e+02, 2.956014709472656e+02, 2.954901428222656e+02, 2.953812255859375e+02, 2.95774658203125e+02, 2.959231262207031e+02, 2.958972473144531e+02, 2.958116455078125e+02, 2.956848754882812e+02, 2.955555419921875e+02, 2.954234924316406e+02, 2.952870178222656e+02, 2.953417663574219e+02, 2.961522521972656e+02, 2.970872802734375e+02, 2.976217346191406e+02, 2.975176391601562e+02, 2.973813781738281e+02, 2.972411193847656e+02, 2.970978088378906e+02, 2.969556884765625e+02, 2.972678833007812e+02, 2.979459533691406e+02, 2.916786804199219e+02, 2.9160498046875e+02, 2.916513977050781e+02, 2.915569458007812e+02, 2.914042358398438e+02, 2.980340576171875e+02, 2.97945556640625e+02, 2.980509948730469e+02, 2.9356689453125e+02, 2.937242431640625e+02, 2.933616943359375e+02, 2.932682800292969e+02, 2.929071655273438e+02, 2.929347229003906e+02, 2.925213317871094e+02, 2.720499877929688e+02, 2.938119201660156e+02, 2.944095458984375e+02, 2.9395751953125e+02, 2.931139526367188e+02, 2.929996337890625e+02, 2.930939331054688e+02, 2.931196594238281e+02, 2.927979125976562e+02, 2.930177307128906e+02, 2.939830627441406e+02, 2.949122009277344e+02, 2.946842041015625e+02, 2.947602233886719e+02, 2.942405700683594e+02, 2.944234313964844e+02, 2.943670654296875e+02, 2.939549865722656e+02, 2.942181396484375e+02, 2.942047119140625e+02] +fan.sta_b.T=[2.609500122070312e+02, 2.619280090332031e+02, 2.625499877929688e+02, 2.634280090332031e+02, 2.683388977050781e+02, 2.720243530273438e+02, 2.720499877929688e+02, 2.713381958007812e+02, 2.719623107910156e+02, 2.6925e+02, 2.701626892089844e+02, 2.723464965820312e+02, 2.733500061035156e+02, 2.748500061035156e+02, 2.725348815917969e+02, 2.727846984863281e+02, 2.745153503417969e+02, 2.731499938964844e+02, 2.731499938964844e+02, 2.7229443359375e+02, 2.698047180175781e+02, 2.689043273925781e+02, 2.703500061035156e+02, 2.703500061035156e+02, 2.703500061035156e+02, 2.703500061035156e+02, 2.703500061035156e+02, 2.703500061035156e+02, 2.698500061035156e+02, 2.706798400878906e+02, 2.716392211914062e+02, 2.7251513671875e+02, 2.704963989257812e+02, 2.680260009765625e+02, 2.676611022949219e+02, 2.660404052734375e+02, 2.6425e+02, 2.58110595703125e+02, 2.604417114257812e+02, 2.657166748046875e+02, 2.6940087890625e+02, 2.682166748046875e+02, 2.657166748046875e+02, 2.637611083984375e+02, 2.618667907714844e+02, 2.5925e+02, 2.581764831542969e+02, 2.604611206054688e+02, 2.616584777832031e+02, 2.608323364257812e+02, 2.561037292480469e+02, 2.546492767333984e+02, 2.542643737792969e+02, 2.530166625976562e+02, 2.509499969482422e+02, 2.541903991699219e+02, 2.587667236328125e+02, 2.602073364257812e+02, 2.569347839355469e+02, 2.549143829345703e+02, 2.536127471923828e+02, 2.520500030517578e+02, 2.519742736816406e+02, 2.514499969482422e+02, 2.582235412597656e+02, 2.619212036132812e+02, 2.920182495117188e+02, 2.91944580078125e+02, 2.91990966796875e+02, 2.918965454101562e+02, 2.917438049316406e+02, 2.980340576171875e+02, 2.97945556640625e+02, 2.980509948730469e+02, 2.939064636230469e+02, 2.940638122558594e+02, 2.937012939453125e+02, 2.936078491210938e+02, 2.932467346191406e+02, 2.932742919921875e+02, 2.928609008789062e+02, 2.720499877929688e+02, 2.941514892578125e+02, 2.947491455078125e+02, 2.942970886230469e+02, 2.934535217285156e+02, 2.933392333984375e+02, 2.934335021972656e+02, 2.93459228515625e+02, 2.931374816894531e+02, 2.933572998046875e+02, 2.943226318359375e+02, 2.952517700195312e+02, 2.950237731933594e+02, 2.950998229980469e+02, 2.945801391601562e+02, 2.947630004882812e+02, 2.947066345214844e+02, 2.942945556640625e+02, 2.945577087402344e+02, 2.945442810058594e+02] diff --git a/IBPSA/Resources/Scripts/Dymola/Examples/Tutorial/SimpleHouse/SimpleHouse0.mos b/IBPSA/Resources/Scripts/Dymola/Examples/Tutorial/SimpleHouse/SimpleHouse0.mos new file mode 100644 index 0000000000..0296806fd5 --- /dev/null +++ b/IBPSA/Resources/Scripts/Dymola/Examples/Tutorial/SimpleHouse/SimpleHouse0.mos @@ -0,0 +1,2 @@ +simulateModel("IBPSA.Examples.Tutorial.SimpleHouse.SimpleHouse0", stopTime=1e+06, method="CVode", tolerance=1e-06, resultFile="SimpleHouse0"); +createPlot(id=1,position={0, 0, 792, 1247}, y={"TOut.T"}, range={0.0, 1e+06, 12.5, 20.5}, grid=true, colors={{28,108,200}}); \ No newline at end of file diff --git a/IBPSA/Resources/Scripts/Dymola/Examples/Tutorial/SimpleHouse/SimpleHouse1.mos b/IBPSA/Resources/Scripts/Dymola/Examples/Tutorial/SimpleHouse/SimpleHouse1.mos new file mode 100644 index 0000000000..4ad1c90598 --- /dev/null +++ b/IBPSA/Resources/Scripts/Dymola/Examples/Tutorial/SimpleHouse/SimpleHouse1.mos @@ -0,0 +1,2 @@ +simulateModel("IBPSA.Examples.Tutorial.SimpleHouse.SimpleHouse1", stopTime=1e+06, method="CVode", tolerance=1e-06, resultFile="SimpleHouse1"); +createPlot(id=1,position={0, 0, 792, 1247}, y={"walCap.T"}, range={0.0, 1e+06, 12.5, 20.5}, grid=true, colors={{28,108,200}}); \ No newline at end of file diff --git a/IBPSA/Resources/Scripts/Dymola/Examples/Tutorial/SimpleHouse/SimpleHouse2.mos b/IBPSA/Resources/Scripts/Dymola/Examples/Tutorial/SimpleHouse/SimpleHouse2.mos new file mode 100644 index 0000000000..8761414bb7 --- /dev/null +++ b/IBPSA/Resources/Scripts/Dymola/Examples/Tutorial/SimpleHouse/SimpleHouse2.mos @@ -0,0 +1,2 @@ +simulateModel("IBPSA.Examples.Tutorial.SimpleHouse.SimpleHouse2", stopTime=1e+06, method="CVode", tolerance=1e-06, resultFile="SimpleHouse2"); +createPlot(id=1,position={0, 0, 792, 1247}, y={"walCap.T"}, range={0.0, 1e+06, 16.5, 20.5}, grid=true, colors={{28,108,200}}); \ No newline at end of file diff --git a/IBPSA/Resources/Scripts/Dymola/Examples/Tutorial/SimpleHouse/SimpleHouse3.mos b/IBPSA/Resources/Scripts/Dymola/Examples/Tutorial/SimpleHouse/SimpleHouse3.mos new file mode 100644 index 0000000000..566d5a6dd2 --- /dev/null +++ b/IBPSA/Resources/Scripts/Dymola/Examples/Tutorial/SimpleHouse/SimpleHouse3.mos @@ -0,0 +1,2 @@ +simulateModel("IBPSA.Examples.Tutorial.SimpleHouse.SimpleHouse3", stopTime=1e+06, method="CVode", tolerance=1e-06, resultFile="SimpleHouse3"); +createPlot(id=1,position={0, 0, 792, 1247}, y={"zon.T"}, range={0.0, 1e+06, 16.5, 20.5}, grid=true, colors={{28,108,200}}); \ No newline at end of file diff --git a/IBPSA/Resources/Scripts/Dymola/Examples/Tutorial/SimpleHouse/SimpleHouse4.mos b/IBPSA/Resources/Scripts/Dymola/Examples/Tutorial/SimpleHouse/SimpleHouse4.mos new file mode 100644 index 0000000000..41d3e524e7 --- /dev/null +++ b/IBPSA/Resources/Scripts/Dymola/Examples/Tutorial/SimpleHouse/SimpleHouse4.mos @@ -0,0 +1,3 @@ +simulateModel("IBPSA.Examples.Tutorial.SimpleHouse.SimpleHouse4", stopTime=1e+06, method="CVode", tolerance=1e-06, resultFile="SimpleHouse4"); +createPlot(id=1,position={0, 0, 792, 1247}, y={"zon.T"}, range={0.0, 1e+06, 20, 80}, grid=true, colors={{28,108,200}}); +createPlot(id=1, position={0, 0, 792, 413}, y={"heaWat.u"}, range={0.0, 1e+06, -0.1, 1.1}, grid=true, subPlot=2, colors={{28,108,200}}); \ No newline at end of file diff --git a/IBPSA/Resources/Scripts/Dymola/Examples/Tutorial/SimpleHouse/SimpleHouse5.mos b/IBPSA/Resources/Scripts/Dymola/Examples/Tutorial/SimpleHouse/SimpleHouse5.mos new file mode 100644 index 0000000000..3beb683207 --- /dev/null +++ b/IBPSA/Resources/Scripts/Dymola/Examples/Tutorial/SimpleHouse/SimpleHouse5.mos @@ -0,0 +1,3 @@ +simulateModel("IBPSA.Examples.Tutorial.SimpleHouse.SimpleHouse5", stopTime=1e+06, method="CVode", tolerance=1e-06, resultFile="SimpleHouse5"); +createPlot(id=1,position={0, 0, 792, 1247}, y={"zon.T"}, range={0.0, 1e+06, 20, 24}, grid=true, colors={{28,108,200}}); +createPlot(id=1, position={0, 0, 792, 413}, y={"heaWat.u"}, range={0.0, 1e+06, -0.1, 1.1}, grid=true, subPlot=2, colors={{28,108,200}}); \ No newline at end of file diff --git a/IBPSA/Resources/Scripts/Dymola/Examples/Tutorial/SimpleHouse/SimpleHouse6.mos b/IBPSA/Resources/Scripts/Dymola/Examples/Tutorial/SimpleHouse/SimpleHouse6.mos new file mode 100644 index 0000000000..6f301bf5ae --- /dev/null +++ b/IBPSA/Resources/Scripts/Dymola/Examples/Tutorial/SimpleHouse/SimpleHouse6.mos @@ -0,0 +1,5 @@ +simulateModel("IBPSA.Examples.Tutorial.SimpleHouse.SimpleHouse6", stopTime=1e+06, method="CVode", tolerance=1e-06, resultFile="SimpleHouse6"); +createPlot(id=1,position={0, 0, 792, 1247}, y={"zon.T"}, range={0.0, 1e+06, 20, 26}, grid=true, colors={{28,108,200}}); +createPlot(id=1, position={0, 0, 792, 413}, y={"heaWat.u"}, range={0.0, 1e+06, -0.1, 1.1}, grid=true, subPlot=2, colors={{28,108,200}}); +createPlot(id=1, position={0, 0, 792, 413}, y={"vavDam.y"}, range={0.0, 1e+06, -0.1, 1.1}, grid=true, subPlot=3, colors={{28,108,200}}); +createPlot(id=2, position={818, 10, 662, 377}, y={"fan.sta_a.T", "fan.sta_b.T"}, range={0.0, 380.0, 18.0, 22.5}, grid=true, colors={{28,108,200}, {238,46,47}}); diff --git a/IBPSA/package.order b/IBPSA/package.order index 6db2633767..93b5597f59 100644 --- a/IBPSA/package.order +++ b/IBPSA/package.order @@ -8,5 +8,6 @@ Media ThermalZones Utilities Types +Examples Experimental Obsolete