-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into issue1575_addPVModel
- Loading branch information
Showing
53 changed files
with
545 additions
and
11,199 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ env: | |
global: | ||
- [email protected] | ||
- OMC_VERSION=ubuntu-2004-omc:1.19.0_dev-551-g1772c4b-1 | ||
- DYMOLA_VERSION=travis_ubuntu-2004_dymola:2022x-x86_64_rev-2 | ||
- DYMOLA_VERSION=travis_ubuntu-2004_dymola:2023-x86_64 | ||
|
||
jobs: | ||
# Test matrix for regression tests. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
within IBPSA.Fluid.Movers.Validation; | ||
model NegativePressureOrFlow | ||
"A validation model that tests the mover behaviour when the pressure rise or flow is negative" | ||
extends Modelica.Icons.Example; | ||
|
||
package Medium = IBPSA.Media.Air; | ||
|
||
parameter Modelica.Units.SI.MassFlowRate m_flow_nominal=0.1 | ||
"Nominal mass flow rate"; | ||
parameter Modelica.Units.SI.PressureDifference dp_nominal=sou.p*0.1 | ||
"Nominal pressure difference"; | ||
|
||
IBPSA.Fluid.Movers.SpeedControlled_y fan( | ||
redeclare package Medium = Medium, | ||
per(pressure(V_flow={0,m_flow_nominal,2*m_flow_nominal}/1.2, | ||
dp={0.5*dp_nominal,0.25*dp_nominal,0})), | ||
energyDynamics=Modelica.Fluid.Types.Dynamics.FixedInitial) "Fan" | ||
annotation (Placement(transformation(extent={{-10,-10},{10,10}}))); | ||
IBPSA.Fluid.Sources.Boundary_pT sou( | ||
redeclare package Medium = Medium, | ||
use_p_in=false, | ||
p(displayUnit="Pa") = 101325, | ||
T=293.15, | ||
nPorts=1) "Source with constant pressure" | ||
annotation (Placement(transformation(extent={{-80,-10},{-60,10}}))); | ||
IBPSA.Fluid.Sources.Boundary_pT sin( | ||
redeclare package Medium = Medium, | ||
use_p_in=true, | ||
T=293.15, | ||
nPorts=1) "Sink with varying pressure" | ||
annotation (Placement(transformation(extent={{80,-10},{60,10}}))); | ||
Modelica.Blocks.Sources.Constant one(k=1) "Constant one" | ||
annotation (Placement(transformation(extent={{-40,20},{-20,40}}))); | ||
Modelica.Blocks.Sources.Ramp ram( | ||
height=-sou.p*0.5, | ||
duration=3600, | ||
offset=sou.p*1.25) "Ramp signal" | ||
annotation (Placement(transformation(extent={{40,20},{60,40}}))); | ||
equation | ||
connect(one.y, fan.y) | ||
annotation (Line(points={{-19,30},{0,30},{0,12}}, color={0,0,127})); | ||
|
||
connect(ram.y, sin.p_in) | ||
annotation (Line(points={{61,30},{88,30},{88,8},{82,8}}, color={0,0,127})); | ||
connect(fan.port_b, sin.ports[1]) | ||
annotation (Line(points={{10,0},{60,0}}, color={0,127,255})); | ||
connect(sou.ports[1], fan.port_a) | ||
annotation (Line(points={{-60,0},{-10,0}}, color={0,127,255})); | ||
annotation(__Dymola_Commands(file="modelica://IBPSA/Resources/Scripts/Dymola/Fluid/Movers/Validation/NegativePressureOrFlow.mos" | ||
"Simulate and plot"), | ||
experiment( | ||
StopTime=3600, | ||
Tolerance=1e-06), | ||
Documentation(info="<html> | ||
<p> | ||
Without the constraint that | ||
<i>W<sub>flo</sub> = V̇ Δp ≥ 0</i>, | ||
this validation model would produce negative computed mover power | ||
when the pressure rise or the flow rate is forced to be negative, | ||
as shown below. | ||
</p> | ||
<p align=\"center\"> | ||
<img alt=\"image\" src=\"modelica://IBPSA/Resources/Images/Fluid/Movers/Validation/NegativePressureOrFlow.png\"/> | ||
</p> | ||
</html>", revisions="<html> | ||
<ul> | ||
<li> | ||
June 6, 2022, by Hongxiang Fu:<br/> | ||
First implementation.<br/> | ||
This is for | ||
<a href=\"https://github.com/ibpsa/modelica-ibpsa/issues/1621\">IBPSA, #1621</a>. | ||
</li> | ||
</ul> | ||
</html>")); | ||
end NegativePressureOrFlow; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+11.6 KB
IBPSA/Resources/Images/Fluid/Movers/Validation/NegativePressureOrFlow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.