From c0839b7f7b86bbdfcdf4fc9ccb3764c505d8561c Mon Sep 17 00:00:00 2001 From: Filip Jorissen Date: Sat, 6 Apr 2019 22:27:34 +0200 Subject: [PATCH] added mos scripts for #1109 --- .../BaseClasses/Examples/HADryCoil.mos | 7 +++ .../DryCoilEffectivenessNTUMassFlow.mos | 37 ++++++++++++++ .../DryCoilEffectivenessNTUPControl.mos | 48 +++++++++++++++++++ 3 files changed, 92 insertions(+) create mode 100755 IBPSA/Resources/Scripts/Dymola/Fluid/HeatExchangers/BaseClasses/Examples/HADryCoil.mos create mode 100755 IBPSA/Resources/Scripts/Dymola/Fluid/HeatExchangers/Examples/DryCoilEffectivenessNTUMassFlow.mos create mode 100755 IBPSA/Resources/Scripts/Dymola/Fluid/HeatExchangers/Examples/DryCoilEffectivenessNTUPControl.mos diff --git a/IBPSA/Resources/Scripts/Dymola/Fluid/HeatExchangers/BaseClasses/Examples/HADryCoil.mos b/IBPSA/Resources/Scripts/Dymola/Fluid/HeatExchangers/BaseClasses/Examples/HADryCoil.mos new file mode 100755 index 0000000000..fd270678b6 --- /dev/null +++ b/IBPSA/Resources/Scripts/Dymola/Fluid/HeatExchangers/BaseClasses/Examples/HADryCoil.mos @@ -0,0 +1,7 @@ +simulateModel("IBPSA.Fluid.HeatExchangers.BaseClasses.Examples.HADryCoil", stopTime=80, tolerance=1E-6, method="dassl", resultFile="HADryCoil"); +createPlot(id=1, position={15, 10, 430, 786}, y={"TWat.y", "TAir.y"}, range={0.0, 0.001, 270.0, 340.0}, grid=true, colors={{28,108,200}, {238,46,47}}); +createPlot(id=1, position={15, 10, 430, 260}, y={"mWat_flow.y"}, range={0.0, 0.001, -0.02, 0.12000000000000001}, grid=true, subPlot=2, colors={{28,108,200}}); +createPlot(id=1, position={15, 10, 430, 259}, y={"mAir_flow.y"}, range={0.0, 0.001, -0.5, 3.0}, grid=true, subPlot=3, colors={{28,108,200}}); +createPlot(id=2, position={462, 14, 363, 777}, y={"hADryCoi.hA_1", "hADryCoi.hA_2"}, range={0.0, 0.001, 0.0, 44000.0}, grid=true, colors={{28,108,200}, {238,46,47}}); +createPlot(id=3, position={842, 16, 361, 773}, y={"hADryCoiAir.hA_1", "hADryCoiAir.hA_2"}, range={0.0, 0.001, 0.0, 32000.0}, grid=true, colors={{28,108,200}, {238,46,47}}); +createPlot(id=4, position={1222, 16, 383, 768}, y={"hADryCoiWat.hA_1", "hADryCoiWat.hA_2"}, range={0.0, 0.001, 0.0, 44000.0}, grid=true, colors={{28,108,200}, {238,46,47}}); diff --git a/IBPSA/Resources/Scripts/Dymola/Fluid/HeatExchangers/Examples/DryCoilEffectivenessNTUMassFlow.mos b/IBPSA/Resources/Scripts/Dymola/Fluid/HeatExchangers/Examples/DryCoilEffectivenessNTUMassFlow.mos new file mode 100755 index 0000000000..3eaf266e6a --- /dev/null +++ b/IBPSA/Resources/Scripts/Dymola/Fluid/HeatExchangers/Examples/DryCoilEffectivenessNTUMassFlow.mos @@ -0,0 +1,37 @@ +simulateModel("IBPSA.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUMassFlow", method="dassl", tolerance=1e-6, stopTime=3600, resultFile="DryCoilEffectivenessNTUMassFlow"); +createPlot(id = 1, + position = {15, 10, 400, 237}, + y = {"hex.m1_flow", "hex.m2_flow"}, + range = {0, 1, 0.15, -0.15}, + autoscale = true, + autoerase = true, + autoreplot = true, + grid = true, + color = true, + filename = "DryCoilEffectivenessNTUMassFlow.mat", + subPlot = 2, + leftTitleType = 1, + bottomTitleType = 1); +createPlot(id = 2, + position = {427, 12, 400, 479}, + y = {"hex.QMax_flow", "hex.Q1_flow", "hex.Q2_flow"}, + range = {0, 1, 4000.0, -3000.0}, + autoscale = true, + autoerase = true, + autoreplot = true, + grid = true, + color = true, + leftTitleType = 1, + bottomTitleType = 1); +createPlot(id = 2, + position = {427, 12, 400, 236}, + y = {"hex.hA.hA_1", "hex.hA.hA_2"}, + range = {0, 1, 400.0, 0}, + autoscale = true, + autoerase = true, + autoreplot = true, + grid = true, + color = true, + subPlot = 2, + leftTitleType = 1, + bottomTitleType = 1); diff --git a/IBPSA/Resources/Scripts/Dymola/Fluid/HeatExchangers/Examples/DryCoilEffectivenessNTUPControl.mos b/IBPSA/Resources/Scripts/Dymola/Fluid/HeatExchangers/Examples/DryCoilEffectivenessNTUPControl.mos new file mode 100755 index 0000000000..0512b55ec7 --- /dev/null +++ b/IBPSA/Resources/Scripts/Dymola/Fluid/HeatExchangers/Examples/DryCoilEffectivenessNTUPControl.mos @@ -0,0 +1,48 @@ +simulateModel("IBPSA.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUPControl", stopTime=3600, method="dassl", tolerance=1e-6, resultFile="DryCoilEffectivenessNTUPControl"); +createPlot(id = 4, + position = {550, 0, 400, 342}, + y = {"P.u_s", "P.u_m"}, + range = {0, 4000.0, 20.0, -20.0}, + autoscale = true, + autoerase = true, + autoreplot = true, + grid = true, + color = true, + filename = "DryCoilEffectivenessNTUPControl.mat", + leftTitleType = 1, + bottomTitleType = 1); +createPlot(id = 6, + position = {14, -1, 530, 586}, + y = {"hex.sta_a1.T", "hex.sta_b1.T", "hex.sta_a2.T", "hex.sta_b2.T"}, + range = {0, 4000.0, 70.0, 10.0}, + autoscale = true, + autoerase = true, + autoreplot = true, + grid = true, + color = true, + leftTitleType = 1, + bottomTitleType = 1); +createPlot(id = 6, + position = {14, -1, 530, 154}, + y = {"hex.Q1_flow", "hex.Q2_flow"}, + range = {0, 4000.0, 200000.0, -200000.0}, + autoscale = true, + autoerase = true, + autoreplot = true, + grid = true, + color = true, + subPlot = 3, + leftTitleType = 1, + bottomTitleType = 1); +createPlot(id = 6, + position = {14, -1, 530, 177}, + y = {"hex.m1_flow", "hex.m2_flow"}, + range = {0, 4000.0, 15.0, 0}, + autoscale = true, + autoerase = true, + autoreplot = true, + grid = true, + color = true, + subPlot = 2, + leftTitleType = 1, + bottomTitleType = 1);