Skip to content

Commit

Permalink
Change examples' boundaries to avoid warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Jun Jiang <[email protected]>
  • Loading branch information
Jun-Jiang-92 committed Jul 15, 2024
1 parent ab40d1a commit f170771
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,23 @@ model VentilationFlowRateSashOpening
parameter Modelica.Units.SI.Height locHeight(min=0)=4
"Middle local height of the ventilation zone";
Modelica.Blocks.Sources.Ramp TRoomSet(
height=15,
duration=120,
offset=15,
startTime=50) "Set room temperature in °C"
height=10,
duration=100,
offset=20,
startTime=10) "Set room temperature in °C"
annotation (Placement(transformation(extent={{-100,80},{-80,100}})));
Modelica.Blocks.Math.UnitConversions.From_degC from_degC "Convert degC to K"
annotation (Placement(transformation(extent={{-60,80},{-40,100}})));
Modelica.Blocks.Sources.Ramp TAmbSet(
height=-40,
duration=160,
offset=40,
height=-10,
duration=100,
offset=10,
startTime=10) "Set ambient temperature in °C"
annotation (Placement(transformation(extent={{-100,50},{-80,70}})));
Modelica.Blocks.Math.UnitConversions.From_degC from_degC1 "Convert degC to K"
annotation (Placement(transformation(extent={{-60,50},{-40,70}})));
Modelica.Blocks.Sources.TimeTable winSpe10Set(table=[0,0; 20,0; 30,5; 40,0; 50,
10; 60,0; 70,20; 80,0; 100,0; 110,20; 120,0; 130,10; 140,0; 150,5; 160,0;
180,0]) "Set wind speed at the height of 10 m"
Modelica.Blocks.Sources.TimeTable winSpe10Set(table=[0,2; 30,2; 50,5; 70,5; 90,
2; 120,2]) "Set wind speed at the height of 10 m"
annotation (Placement(transformation(extent={{-100,20},{-80,40}})));
Modelica.Blocks.Sources.Sine winDirSet(amplitude=2*Modelica.Constants.pi, f=0.05)
"Set wind direction"
Expand Down Expand Up @@ -143,8 +142,8 @@ model VentilationFlowRateSashOpening
annotation (Placement(transformation(extent={{120,80},{100,100}})));
Modelica.Blocks.Sources.Ramp dpSet(
height=20,
duration=160,
offset=-10,
duration=100,
offset=0,
startTime=10) "Set pressure difference"
annotation (Placement(transformation(extent={{-100,-100},{-80,-80}})));
AixLib.Airflow.WindowVentilation.EmpiricalExpressions.Maas maas(
Expand Down Expand Up @@ -286,7 +285,7 @@ equation
<p>This example checks the models that simulate the window ventilation flow rate with the sash opening. For the sash opening type, all models are set to the bottom-hung opening.</p>
<p>The result shows that the estimated volume flow can be quite different when using different models.</p>
</html>"), experiment(
StopTime=180,
StopTime=120,
Interval=0.1,
__Dymola_Algorithm="Dassl"),
Diagram(coordinateSystem(extent={{-100,-140},{120,100}})),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,23 @@ model VentilationFlowRateSimpleOpening
parameter Modelica.Units.SI.Height locHeight(min=0)=4
"Middle local height of the ventilation zone";
Modelica.Blocks.Sources.Ramp TRoomSet(
height=15,
duration=120,
offset=15,
startTime=50) "Set room temperature in °C"
height=10,
duration=100,
offset=20,
startTime=10) "Set room temperature in °C"
annotation (Placement(transformation(extent={{-100,80},{-80,100}})));
Modelica.Blocks.Math.UnitConversions.From_degC from_degC "Convert degC to K"
annotation (Placement(transformation(extent={{-60,80},{-40,100}})));
Modelica.Blocks.Sources.Ramp TAmbSet(
height=-40,
duration=160,
offset=40,
height=-10,
duration=100,
offset=10,
startTime=10) "Set ambient temperature in °C"
annotation (Placement(transformation(extent={{-100,50},{-80,70}})));
Modelica.Blocks.Math.UnitConversions.From_degC from_degC1 "Convert degC to K"
annotation (Placement(transformation(extent={{-60,50},{-40,70}})));
Modelica.Blocks.Sources.TimeTable winSpe10Set(table=[0,0; 20,0; 30,5; 40,0; 50,
10; 60,0; 70,20; 80,0; 100,0; 110,20; 120,0; 130,10; 140,0; 150,5; 160,0;
180,0]) "Set wind speed at the height of 10 m"
Modelica.Blocks.Sources.TimeTable winSpe10Set(table=[0,2; 30,2; 50,5; 70,5; 90,
2; 120,2]) "Set wind speed at the height of 10 m"
annotation (Placement(transformation(extent={{-100,20},{-80,40}})));
Modelica.Blocks.Sources.Sine winDirSet(amplitude=2*Modelica.Constants.pi, f=0.05)
"Set wind direction"
Expand Down Expand Up @@ -206,7 +205,7 @@ equation
<p>This example checks the models that simulate the window ventilation flow rate with the simple opening.</p>
<p>The result shows that the estimated volume flow can be quite different when using different models.</p>
</html>"), experiment(
StopTime=180,
StopTime=120,
Interval=0.1,
__Dymola_Algorithm="Dassl"),
__Dymola_Commands(file=
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
simulateModel("AixLib.Airflow.WindowVentilation.Examples.VentilationFlowRateSashOpening", startTime=0, stopTime=180, outputInterval=0.1, method="dassl", tolerance=1e-6, resultFile="VentilationFlowRateSashOpening");
simulateModel("AixLib.Airflow.WindowVentilation.Examples.VentilationFlowRateSashOpening", startTime=0, stopTime=120, outputInterval=0.1, method="dassl", tolerance=1e-6, resultFile="VentilationFlowRateSashOpening");
createPlot(
id=1,
position={10, 24, 600, 400},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
simulateModel("AixLib.Airflow.WindowVentilation.Examples.VentilationFlowRateSimpleOpening", startTime=0, stopTime=180, outputInterval=0.1, method="dassl", tolerance=1e-6, resultFile="VentilationFlowRateSimpleOpening");
simulateModel("AixLib.Airflow.WindowVentilation.Examples.VentilationFlowRateSimpleOpening", startTime=0, stopTime=120, outputInterval=0.1, method="dassl", tolerance=1e-6, resultFile="VentilationFlowRateSimpleOpening");
createPlot(
id=1,
position={10, 24, 600, 400},
Expand Down

0 comments on commit f170771

Please sign in to comment.