Skip to content

Commit

Permalink
corrected validation
Browse files Browse the repository at this point in the history
  • Loading branch information
JayHuLBL committed Nov 20, 2024
1 parent f97437e commit 81e42f6
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ equation
Documentation(info="<html>
<p>
This model validates
<a href=\"modelica://Buildings.Fluid.DXSystems.Heating.AirSource.Validation.BaseClasses.PLRToPulse\">
Buildings.Fluid.DXSystems.Heating.AirSource.Validation.BaseClasses.PLRToPulse</a>
<a href=\"modelica://Buildings.Fluid.Humidifiers.BaseClasses.PLRToPulse\">
Buildings.Fluid.Humidifiers.BaseClasses.PLRToPulse</a>
by providing it a time-varying input signal for the part-load ratio, and then
comparing the enabled time results against required calculated values.
</p>
Expand All @@ -58,6 +58,6 @@ First implementation.
</li>
</ul>
</html>"),
__Dymola_Commands(file="modelica://Buildings/Resources/Scripts/Dymola/Fluid/DXSystems/Heating/AirSource/Validation/BaseClasses/Validation/PLRToPulse.mos"
__Dymola_Commands(file="modelica://Buildings/Resources/Scripts/Dymola/Fluid/Humidifiers/BaseClasses/Validation/PLRToPulse.mos"
"Simulate and plot"));
end PLRToPulse;
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
last-generated=2024-11-20
statistics-simulation=
{
"linear": " ",
"nonlinear": " ",
"numerical Jacobians": "0"
}
time=[0e+00, 7.2e+03]
plrToPul.uPLR=[0e+00, 1.600000075995922e-02, 3.200000151991844e-02, 4.800000041723251e-02, 6.400000303983688e-02, 7.999999821186066e-02, 9.600000083446503e-02, 1.120000034570694e-01, 1.280000060796738e-01, 1.439999938011169e-01, 1.599999964237213e-01, 1.759999990463257e-01, 1.920000016689301e-01, 2.080000042915344e-01, 2.240000069141388e-01, 2.39999994635582e-01, 2.560000121593475e-01, 2.720000147819519e-01, 2.879999876022339e-01, 3.039999902248383e-01, 3.199999928474426e-01, 3.35999995470047e-01, 3.519999980926514e-01, 3.680000007152557e-01, 3.840000033378601e-01, 4.000000059604645e-01, 4.160000085830688e-01, 4.320000112056733e-01, 4.480000138282776e-01, 4.639999866485596e-01, 4.799999892711639e-01, 4.959999918937683e-01, 5.120000243186951e-01, 5.279999971389771e-01, 5.440000295639038e-01, 5.600000023841858e-01, 5.759999752044678e-01, 5.920000076293945e-01, 6.079999804496765e-01, 6.240000128746033e-01, 6.399999856948853e-01, 6.56000018119812e-01, 6.71999990940094e-01, 6.880000233650208e-01, 7.039999961853027e-01, 7.200000286102295e-01, 7.360000014305115e-01, 7.519999742507935e-01, 7.680000066757202e-01, 7.839999794960022e-01, 8.00000011920929e-01, 8.159999847412109e-01, 8.320000171661377e-01, 8.479999899864197e-01, 8.640000224113465e-01, 8.799999952316285e-01, 8.960000276565553e-01, 9.120000004768372e-01, 9.279999732971191e-01, 9.440000057220459e-01, 9.599999785423279e-01, 9.760000109672546e-01, 9.919999837875366e-01, 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, 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]
plrToPul.yEna=[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, 1e+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, 1e+00, 1e+00, 1e+00, 1e+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, 1e+00, 1e+00, 1e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 1e+00, 1e+00, 1e+00, 1e+00, 1e+00, 1e+00, 1e+00, 1e+00, 1e+00, 1e+00, 0e+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, 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]
gaiTim.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, 1.8e+02, 1.8e+02, 1.8e+02, 1.8e+02, 1.8e+02, 1.8e+02, 1.8e+02, 1.8e+02, 1.8e+02, 1.8e+02, 1.8e+02, 1.8e+02, 1.8e+02, 3.6e+02, 3.6e+02, 3.6e+02, 3.6e+02, 3.6e+02, 3.6e+02, 3.6e+02, 3.6e+02, 3.6e+02, 3.6e+02, 3.6e+02, 3.6e+02, 5.4e+02, 5.4e+02, 5.4e+02, 5.4e+02, 5.4e+02, 5.4e+02, 5.4e+02, 5.4e+02, 5.4e+02, 5.4e+02, 5.4e+02, 5.4e+02, 5.4e+02, 7.2e+02, 7.2e+02, 7.2e+02, 7.2e+02, 7.2e+02, 7.2e+02, 7.2e+02, 7.2e+02, 7.2e+02, 7.2e+02, 7.2e+02, 7.2e+02, 9e+02, 9e+02, 9e+02, 9e+02, 9e+02, 9e+02, 9e+02, 9e+02, 9e+02, 9e+02, 9e+02, 9e+02, 9e+02, 9e+02, 9e+02, 9e+02, 9e+02, 9e+02, 9e+02, 9e+02, 9e+02, 9e+02, 9e+02, 9e+02, 9e+02, 9e+02, 9e+02, 9e+02, 9e+02, 9e+02, 9e+02, 9e+02, 9e+02, 9e+02, 9e+02, 9e+02, 9e+02, 9e+02]
timEna.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, 3.6e+01, 1.080000000000001e+02, 1.8e+02, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 7.2e+01, 1.440000000000002e+02, 2.160000000000002e+02, 2.88e+02, 3.6e+02, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 3.6e+01, 1.08e+02, 1.8e+02, 2.52e+02, 3.24e+02, 3.96e+02, 4.68e+02, 5.4e+02, 0e+00, 0e+00, 0e+00, 0e+00, 0e+00, 7.2e+01, 1.44e+02, 2.16e+02, 2.880000000000005e+02, 3.600000000000005e+02, 4.320000000000005e+02, 5.04e+02, 5.76e+02, 6.48e+02, 7.2e+02, 0e+00, 0e+00, 3.6e+01, 1.08e+02, 1.8e+02, 2.52e+02, 3.24e+02, 3.96e+02, 4.68e+02, 5.4e+02, 6.12e+02, 6.84e+02, 7.56e+02, 8.28e+02, 9e+02, 7.2e+01, 1.44e+02, 2.16e+02, 2.88e+02, 3.6e+02, 4.32e+02, 5.04e+02, 5.76e+02, 6.48e+02, 7.2e+02, 7.92e+02, 8.64e+02, 3.6e+01, 1.08e+02, 1.8e+02, 2.52e+02, 3.24e+02, 3.96e+02, 4.68e+02, 5.4e+02, 6.12e+02, 6.84e+02, 7.56e+02, 8.28e+02, 9e+02]
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// Script generated by Dymola Wed Mar 22 20:15:01 2023
// Plot commands
simulateModel("Buildings.Fluid.Humidifiers.BaseClasses.Validation.PLRToPulse", stopTime=7200, tolerance=1e-06, resultFile="PLRToPulse");

createPlot(id=1, position={0, 0, 851, 828}, y={"plrToPul.uPLR"}, range={0.0, 7200.0, -0.2, 1.2}, grid=true, colors={{28,108,200}});
createPlot(id=1, position={0, 0, 851, 272}, y={"plrToPul.yEna"}, range={0.0, 7200.0, -0.2, 1.2}, grid=true, subPlot=2, colors={{28,108,200}});
createPlot(id=1, position={0, 0, 851, 273}, y={"gaiTim.y", "timEna.y"}, range={0.0, 7200.0, -200.0, 1000.0}, grid=true, subPlot=3, colors={{28,108,200}, {238,46,47}});
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
compareVars :=
{
"plrToPul.uPLR",
"plrToPul.yEna",
"gaiTim.y",
"timEna.y"
};

0 comments on commit 81e42f6

Please sign in to comment.