-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #589 from RWTH-EBC/development
Development into master
- Loading branch information
Showing
1,538 changed files
with
119,825 additions
and
7,685 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1 +1 @@ | ||
TestAHU | ||
AHU |
126 changes: 126 additions & 0 deletions
126
AixLib/Airflow/FacadeVentilationUnit/BaseClasses/SetPower.mo
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,126 @@ | ||
within AixLib.Airflow.FacadeVentilationUnit.BaseClasses; | ||
model SetPower | ||
"This model defines a specific mass flow rate based on the input power | ||
share" | ||
|
||
extends Modelica.Fluid.Interfaces.PartialTwoPort; | ||
|
||
parameter Modelica.SIunits.MassFlowRate m_flow_nominal=0.05 | ||
"Nominal mass flow rate of fan"; | ||
parameter Medium.AbsolutePressure p_start=Medium.p_default | ||
"Start value of pressure"; | ||
parameter Integer noUnits=1 "Number of identical FVU units"; | ||
parameter Modelica.SIunits.PressureDifference dp_nominal=500 | ||
"Initial pressure difference"; | ||
parameter Medium.Temperature T_start=Medium.T_default | ||
"Start value of temperature"; | ||
|
||
Modelica.Blocks.Tables.CombiTable1D volumeFlow(table=[0,1; 0.1,25; 0.2,40; | ||
0.3,60; 0.4,90; 0.5,100; 0.6,140; 0.7,175; 0.8,200; 0.9,225; 1,260]) | ||
"Correlates the relative input signal and a volume flow rate" | ||
annotation (Placement(transformation( | ||
extent={{-10,-10},{10,10}}, | ||
rotation=90, | ||
origin={0,-56}))); | ||
Modelica.Blocks.Interfaces.RealInput powerShare( | ||
min=0, | ||
max=1, | ||
nominal=0.6) "Power share 0..1 for fan" annotation (Placement( | ||
transformation( | ||
origin={0,-100}, | ||
extent={{-20,-20},{20,20}}, | ||
rotation=90))); | ||
|
||
AixLib.Fluid.Movers.FlowControlled_m_flow fan( | ||
redeclare package Medium = Medium, | ||
addPowerToMedium=false, | ||
m_flow_nominal=m_flow_nominal, | ||
T_start=T_start, | ||
m_flow(start=m_flow_nominal), | ||
dp(start=dp_nominal), | ||
dp_nominal=dp_nominal, | ||
p_start=p_start, | ||
riseTime=120, | ||
nominalValuesDefineDefaultPressureCurve=true) | ||
"Mass-flow-controlled mover setting mass flow rate from table" | ||
annotation (Placement(transformation(extent= | ||
{{-10,10},{10,-10}}))); | ||
Modelica.Blocks.Math.Gain transforMassFlow(k=1.2/3600*noUnits, y(unit="kg/s")) | ||
"Used to transform the volume flow rate in m3/h into a mass flow rate in kg/s" | ||
annotation (Placement(transformation( | ||
extent={{-6,-6},{6,6}}, | ||
rotation=90, | ||
origin={0,-28}))); | ||
equation | ||
|
||
connect(port_a, fan.port_a) | ||
annotation (Line(points={{-100,0},{-56,0},{-10,0}}, color={0,127,255})); | ||
connect(fan.port_b, port_b) | ||
annotation (Line(points={{10,0},{56,0},{100,0}}, color={0,127,255})); | ||
connect(powerShare, volumeFlow.u[1]) annotation (Line(points={{0,-100},{0,-80}, | ||
{-6.66134e-016,-80},{-6.66134e-016,-68}}, color={0,0,127})); | ||
connect(transforMassFlow.u, volumeFlow.y[1]) annotation (Line(points={{-4.44089e-016, | ||
-35.2},{-4.44089e-016,-46},{8.88178e-016,-46},{8.88178e-016,-45}}, | ||
color={0,0,127})); | ||
connect(transforMassFlow.y, fan.m_flow_in) annotation (Line(points={{ | ||
4.44089e-016,-21.4},{4.44089e-016,-24},{0,-24},{0,-12}}, color={0,0, | ||
127})); | ||
annotation ( | ||
choicesAllMatching=true, | ||
Diagram(coordinateSystem(preserveAspectRatio=false, extent={{-100,-100},{ | ||
100,100}})), | ||
Icon(graphics={ | ||
Ellipse( | ||
extent={{-4,68},{4,0}}, | ||
lineColor={0,0,0}, | ||
fillColor={135,135,135}, | ||
fillPattern=FillPattern.Solid), | ||
Ellipse( | ||
extent={{-4,0},{4,-68}}, | ||
lineColor={0,0,0}, | ||
fillColor={135,135,135}, | ||
fillPattern=FillPattern.Solid), | ||
Ellipse( | ||
extent={{0,4},{30,-4}}, | ||
lineColor={0,0,0}, | ||
fillColor={135,135,135}, | ||
fillPattern=FillPattern.Solid), | ||
Ellipse( | ||
extent={{-30,4},{0,-4}}, | ||
lineColor={0,0,0}, | ||
fillColor={135,135,135}, | ||
fillPattern=FillPattern.Solid), | ||
Ellipse(extent={{-30,68},{30,-68}}, lineColor={0,0,0}), | ||
Line( | ||
points={{8,48},{58,48}}, | ||
color={170,213,255}, | ||
arrow={Arrow.None,Arrow.Filled}), | ||
Line( | ||
points={{0,0},{82,0}}, | ||
color={170,213,255}, | ||
arrow={Arrow.None,Arrow.Filled}), | ||
Line( | ||
points={{2,24},{72,24}}, | ||
color={170,213,255}, | ||
arrow={Arrow.None,Arrow.Filled}), | ||
Line( | ||
points={{2,-24},{72,-24}}, | ||
color={170,213,255}, | ||
arrow={Arrow.None,Arrow.Filled}), | ||
Line( | ||
points={{8,-48},{58,-48}}, | ||
color={170,213,255}, | ||
arrow={Arrow.None,Arrow.Filled})}), | ||
Documentation(info="<html> | ||
<p>This model sets the mass flow rate of the air flow through a facade | ||
ventilation unit based on the input value, which is the power share set | ||
point of the fan.</p> | ||
</html>", revisions="<html> | ||
<ul> | ||
<li> | ||
July, 2017 by Marc Baranski and Roozbeh Sangi:<br/> | ||
First implementation. | ||
</li> | ||
</ul> | ||
</html>")); | ||
end SetPower; |
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,4 @@ | ||
within AixLib.Airflow.FacadeVentilationUnit; | ||
package BaseClasses | ||
extends Modelica.Icons.BasesPackage; | ||
end BaseClasses; |
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 @@ | ||
SetPower |
54 changes: 54 additions & 0 deletions
54
AixLib/Airflow/FacadeVentilationUnit/DataBase/FVUBaseRecord.mo
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,54 @@ | ||
within AixLib.Airflow.FacadeVentilationUnit.DataBase; | ||
record FVUBaseRecord | ||
"Base record for the facade ventilation unit model" | ||
extends Modelica.Icons.Record; | ||
|
||
parameter Integer noUnits=1 "Number of identical FVUs"; | ||
parameter Modelica.SIunits.ThermalConductance UA_heater=120 | ||
"Thermal conductance of heater at nominal flow, used to compute heat | ||
capacity"; | ||
parameter Modelica.SIunits.ThermalConductance UA_cooler=65 | ||
"Thermal conductance of cooler at nominal flow, used to compute heat | ||
capacity"; | ||
parameter Modelica.SIunits.MassFlowRate m1_flow_nominal_heater=0.1 | ||
"Nominal mass flow rate on water side of heater"; | ||
parameter Modelica.SIunits.MassFlowRate m2_flow_nominal_heater=0.1 | ||
"Nominal mass flow rate on air side of heater"; | ||
parameter Modelica.SIunits.MassFlowRate m1_flow_nominal_cooler=0.1 | ||
"Nominal mass flow rate on water side of cooler"; | ||
parameter Modelica.SIunits.MassFlowRate m2_flow_nominal_cooler=0.05 | ||
"Nominal mass flow rate on air side of cooler"; | ||
parameter Modelica.SIunits.MassFlowRate m_flow_nominal_damper=0.1 | ||
"Nominal mass flow rate of damper"; | ||
parameter Modelica.SIunits.Pressure dp1_nominal_heater=1000 | ||
"Nominal pressure loss on water side of heater"; | ||
parameter Modelica.SIunits.Pressure dp2_nominal_heater=100 | ||
"Nominal pressure loss on air side of heater"; | ||
parameter Modelica.SIunits.Pressure dp1_nominal_cooler=1000 | ||
"Nominal pressure loss on water side of cooler"; | ||
parameter Modelica.SIunits.Pressure dp2_nominal_cooler=100 | ||
"Nominal pressure loss on air side of cooler"; | ||
parameter Modelica.SIunits.Pressure p_default=101300 | ||
"Default static pressure at outlet"; | ||
parameter Modelica.SIunits.Pressure dp_nominal_damper=500 | ||
"Nominal pressure loss in dampers"; | ||
parameter Modelica.SIunits.Time damperRiseTimeLong = 90 "Rising time of the | ||
slowly moving dampers"; | ||
parameter Modelica.SIunits.Time damperRiseTimeShort = 20 "Rising time of the | ||
slowly moving dampers"; | ||
|
||
annotation (Documentation(info="<html> | ||
<p><b><span style=\"color: #008000;\">Overview</span></b> </p> | ||
<p>This is the base definition of the paramter record that can be used for the | ||
<a href=\"AixLib.Airflow.FacadeVentilationUnit.FacadeVentilationUnit\"> | ||
AixLib.Airflow.FacadeVentilationUnit.FacadeVentilationUnit</a>.</p> | ||
</html>", revisions="<html> | ||
<ul> | ||
<li> | ||
July, 2017 by Marc Baranski and Roozbeh Sangi:<br/> | ||
First implementation. | ||
</li> | ||
</ul> | ||
</html>")); | ||
|
||
end FVUBaseRecord; |
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,16 @@ | ||
within AixLib.Airflow.FacadeVentilationUnit; | ||
package DataBase "Contains parameter records of the facade ventilation unit" | ||
extends Modelica.Icons.Package; | ||
|
||
annotation (Icon(graphics={ | ||
Rectangle( | ||
lineColor={128,128,128}, | ||
extent={{-100,-100},{100,100}}, | ||
radius=25.0), | ||
Rectangle(extent={{-68,68},{-8,26}}, lineColor={0,0,0}), | ||
Rectangle(extent={{-68,26},{-8,-20}}, lineColor={0,0,0}), | ||
Rectangle(extent={{-68,-20},{-8,-62}}, lineColor={0,0,0}), | ||
Rectangle(extent={{-6,68},{52,26}}, lineColor={0,0,0}), | ||
Rectangle(extent={{-6,26},{52,-20}}, lineColor={0,0,0}), | ||
Rectangle(extent={{-6,-20},{52,-62}}, lineColor={0,0,0})})); | ||
end DataBase; |
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 @@ | ||
FVUBaseRecord |
Oops, something went wrong.