Skip to content

Commit

Permalink
Merge pull request #952 from ibpsa/issue951_cleanup
Browse files Browse the repository at this point in the history
Cleaned up code for #951
  • Loading branch information
mwetter authored Jun 14, 2018
2 parents ac6e5ff + c5e5cb7 commit e3102dd
Show file tree
Hide file tree
Showing 10 changed files with 47 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ carried out at the University of Liège.
<p>
Before to perform a test, the water city network is pushed inside
the approximately 39 meter long studied pipe during about 10 minutes
to be sure that it is at the same temperature.
to be sure that it is at the same temperature.
During this time period, valves V3 and V1 are opened, the boiler is off and
the valve V2 is closed.
</p>
<p>
Then, the valve V1 is closed and the valve V2 and V3 are opened.
The boiler is started to reach the setpoint hot water temperature.
Then, the valve V1 is closed and the valve V2 and V3 are opened.
The boiler is started to reach the setpoint hot water temperature.
When the temperature setpoint is achieved, data starts to be recorded,
the valve V1 is opened and the valve V2 is closed at the same time
to supply the studied pipe in hot water.
to supply the studied pipe in hot water.
After the outlet pipe temperature is stabilized, the boiler is shut off.
</p>
<p>
Expand All @@ -58,9 +58,9 @@ src=\"modelica://IBPSA/Resources/Images/Experimental/ULgTestBench.png\" border=\
to the initial temperature of the water (cooling before test)
</li>
<li>Heat transfer coefficient between the pipe and the ambient is assumed
at 5 W/m<sup>2</sup>K (from internal model) due to insulation.
at 5 W/m<sup>2</sup>K (from internal model) due to insulation.
The pipe is insulated by Tubolit 60/13 (13mm of thickness) whose
nominal thermal coefficient is inferior 0.04.
nominal thermal coefficient is inferior 0.04.
Notice the insulation is quite aged therefore
the nominal thermal coefficient could be higher
</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,11 @@ within IBPSA.Fluid.FixedResistances.Validation.PlugFlowPipes.Data;
package BaseClasses "BaseClasses for data records"
extends Modelica.Icons.BasesPackage;

annotation (Documentation(info="<html>
<p>
This package contains base classes that are used to construct the models in
<a href=\"modelica://IBPSA.Fluid.FixedResistances.Validation.PlugFlowPipes.Data\">
IBPSA.Fluid.FixedResistances.Validation.PlugFlowPipes.Data</a>.
</p>
</html>"));
end BaseClasses;
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,6 @@ record PipeDataULg160104_2 "Experimental data from ULg's pipe test bench from 4
21.2; 10145.1,0.2494,22.2,22.3,21.3,21.2; 10152.7,0.2494,22.1,22.3,21.2,
21.2; 10161.2,0.2494,22.1,22.3,21.2,21.1; 10169,0.2494,22.1,22.2,21.2,
21.1; 10176.5,0.2494,22.1,22.2,21.2,21.1]);
// TODO adapt this value
annotation (Documentation(revisions="<html>
<ul>
<li>
Expand Down
12 changes: 5 additions & 7 deletions IBPSA/Fluid/FixedResistances/Validation/PlugFlowPipes/MSLAIT.mo
Original file line number Diff line number Diff line change
Expand Up @@ -438,9 +438,10 @@ equation
220,200}})),
experiment(
StopTime=603900,
Tolerance=1e-006,
__Dymola_Algorithm="Dassl"),
__Dymola_experimentSetupOutput(events=false),
Tolerance=1e-006),
__Dymola_Commands(file=
"Resources/Scripts/Dymola/Fluid/FixedResistances/Validation/PlugFlowPipes/MSLAIT.mos"
"Simulate and plot"),
Documentation(info="<html>
<p>
The example contains
Expand Down Expand Up @@ -514,8 +515,5 @@ influence of allowFlowReversal and the presence of explicit volumes in the pipe.
</li>
<li>January 26, 2016 by Carles Ribas:<br/>First implementation. </li>
</ul>
</html>"),
__Dymola_Commands(file=
"Resources/Scripts/Dymola/Fluid/FixedResistances/Validation/PlugFlowPipes/MSLAIT.mos"
"Simulate and plot"));
</html>"));
end MSLAIT;
Original file line number Diff line number Diff line change
Expand Up @@ -431,9 +431,10 @@ equation
annotation (
Diagram(coordinateSystem(preserveAspectRatio=false, extent={{-160,-160},{
220,200}})),
experiment(StopTime=603900, Tolerance=1e-006,
__Dymola_Algorithm="Dassl"),
__Dymola_experimentSetupOutput(events=false),
experiment(StopTime=603900, Tolerance=1e-006),
__Dymola_Commands(file=
"Resources/Scripts/Dymola/Fluid/FixedResistances/Validation/PlugFlowPipes/MSLAIT2Nodes.mos"
"Simulate and plot"),
Documentation(info="<html>
<p>The example contains
<a href=\"modelica://IBPSA.Fluid.FixedResistances.Validation.PlugFlowPipes.Data.PipeDataAIT151218\">
Expand Down Expand Up @@ -504,8 +505,5 @@ influence of allowFlowReversal and the presence of explicit volumes in the pipe.
</li>
<li>January 26, 2016 by Carles Ribas:<br/>First implementation. </li>
</ul>
</html>"),
__Dymola_Commands(file=
"Resources/Scripts/Dymola/Fluid/FixedResistances/Validation/PlugFlowPipes/MSLAIT2Nodes.mos"
"Simulate and plot"));
</html>"));
end MSLAIT2Nodes;
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,11 @@ equation
experiment(
StopTime=603900,
Interval=900,
Tolerance=1e-006,
__Dymola_Algorithm="Dassl"),
Tolerance=1e-006),
__Dymola_Commands(file=
"Resources/Scripts/Dymola/Fluid/FixedResistances/Validation/PlugFlowPipes/PlugFlowAIT.mos"
"Simulate and plot"),
Diagram(coordinateSystem(extent={{-120,-160},{160,160}})),
Documentation(info="<html>
<p>
The example contains
Expand Down Expand Up @@ -408,9 +411,5 @@ influence of allowFlowReversal and the presence of explicit volumes in the pipe.
</li>
<li>January 26, 2016 by Carles Ribas:<br/>First implementation. </li>
</ul>
</html>"),
__Dymola_Commands(file=
"Resources/Scripts/Dymola/Fluid/FixedResistances/Validation/PlugFlowPipes/PlugFlowAIT.mos"
"Simulate and plot"),
Diagram(coordinateSystem(extent={{-120,-160},{160,160}})));
</html>"));
end PlugFlowAIT;
15 changes: 15 additions & 0 deletions IBPSA/Fluid/MassExchangers/Validation/package.mo
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,19 @@ within IBPSA.Fluid.MassExchangers;
package Validation "Validation examples"
extends Modelica.Icons.ExamplesPackage;

annotation (Documentation(info="<html>
<p>
This package contains validation models for the classes in
<a href=\"modelica://IBPSA.Fluid.MassExchangers\">
IBPSA.Fluid.MassExchangers</a>.
</p>
<p>
Note that most validation models contain simple input data
which may not be realistic, but for which the correct
output can be obtained through an analytic solution.
The examples plot various outputs, which have been verified against these
solutions. These model outputs are stored as reference data and
used for continuous validation whenever models in the library change.
</p>
</html>"));
end Validation;
2 changes: 2 additions & 0 deletions IBPSA/Fluid/MassExchangers/package.mo
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ package MassExchangers "Package with mass exchanger models"
extends Modelica.Icons.VariantsPackage;

annotation (preferredView="info", Documentation(info="<html>
<p>
This package contains models for mass exchangers.
For heat exchanger models without humidity transfer, see the package
<a href=\"modelica://IBPSA.Fluid.HeatExchangers\">
IBPSA.Fluid.HeatExchangers</a>.
</p>
</html>"));
end MassExchangers;
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
within IBPSA.Fluid.MixingVolumes.Validation;
model CoupledVolumesWater
"Validation model for two coupled volumes with water"
import IBPSA;
extends Modelica.Icons.Example;

replaceable package Medium = IBPSA.Media.Water
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,7 @@ equation
"Simulate and plot"),
experiment(
StopTime=21600,
Tolerance=1e-06,
__Dymola_Algorithm="Cvode"),
Tolerance=1e-06),
Documentation(info="<html>
<p>
Example for tank model that has three outlets, each with a valve.
Expand Down

0 comments on commit e3102dd

Please sign in to comment.