Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dymola model #62

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions pnnl/dymola/AdaptiveControl/Air_System/Backup/package.order
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Airflow_Network_baseline_withnoHeaLoo
Airflow_Network_baseline0
3 changes: 3 additions & 0 deletions pnnl/dymola/AdaptiveControl/Air_System/bak/package.bak-mo
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
within AdaptiveControl.Air_System;
package bak
end bak;
1 change: 1 addition & 0 deletions pnnl/dymola/AdaptiveControl/Air_System/bak/package.order
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Airflow_Network_baseline0
5 changes: 5 additions & 0 deletions pnnl/dymola/AdaptiveControl/Air_System/package.order
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Airflow_Network_baseline0
Airflow_Network_baseline1
Airflow_Network_baseline0_Ove
Airflow_Network_baseline1_Ove
Backup
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Airflow_Network
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Airflow_Network
6 changes: 6 additions & 0 deletions pnnl/dymola/AdaptiveControl/Archive/bakup/package.order
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Airflow_Network
Airflow_Network_baseline1_new
Airflow_Network_baseline0
Airflow_Network_baseline0_winter_try
Airflow_Network_baseline0_summer_old
Airflow_Network_baseline1_winter_old
7 changes: 7 additions & 0 deletions pnnl/dymola/AdaptiveControl/Archive/package.order
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Baseline1
Baseline0
bakup
Airflow_Network_baseline0_summer
Airflow_Network_baseline0_mild
Airflow_Network_baseline1_summer
Airflow_Network_baseline1_mild
3 changes: 3 additions & 0 deletions pnnl/dymola/AdaptiveControl/CoSimulation/package.order
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
LatentHeatGain
Building_wrap
Top_level
1,550 changes: 1,550 additions & 0 deletions pnnl/dymola/AdaptiveControl/ConvertFromAdaptiveControl_.mos

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
AHU
AHU_DX
AHU_preheat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
AHU
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Air_Handling_Unit
Air_Handling_Unit_DX_Coil
Air_Handling_Unit_No_Heat
Air_Handling_Unit_withHX
Air_Handling_Unit_with_pre_Heat
Air_Handling_Unit_with_pre_Heat_Advanced
Air_Handling_Unit_advanced
Air_Handling_Unit_annual
Air_Handling_Unit_advanced_annual
Example
FDD
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Cooling_coil_control
Heating_coil_control
LimPID
Cooling_coil_control_annual
Heating_coil_control_annual
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Heating_Coil
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Cooling_Coil
Cooling_Coil_with_Control
Cooling_Coil_3way_with_Control
Heating_Coil
Heating_Coil_with_Control
Heating_Coil_3Way_with_Control
DX_Coil
DX_Coil_with_Control
FDD
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Cooling_Coil_2Way
Cooling_Coil_3Way
Heating_Coil_2Way
Heating_Coil_3Way
DX_Coil
Reheat_Coil_2Way
Controller
Example
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Pressure_based_SF_control
Pressure_based_RF_control
Fan_Occ_Control
Pressure_based_SF_control_annual
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Constant_Speed_Fan
Variable_Speed_Fan
Variable_Speed_Fan_with_Control
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Constant_Speed_Fan
Variable_Speed_Fan_Power_Curve
Variable_Speed_Fan_Efficiency_Curve
Controller
Example
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
within AdaptiveControl.PNNL_Buildings.Air_Side_System.Air_Handling_Unit.BaseClasses.MixingBox.Controller;
model MixingBox_control_Enthalpy1
parameter Real ti "ti for PI controller";
parameter Real k "k for PI controller";
parameter Real D_min "The minimum damp position";
parameter Real D_max "The maximum damp position";
Buildings.Controls.Continuous.LimPID conPID(controllerType=Modelica.Blocks.Types.SimpleController.PI,
k=k,
Ti=ti,
yMin=D_min,
yMax=D_max,
reverseAction=false) annotation (Placement(transformation(extent={{-40,10},
{-20,30}})));
Modelica.Blocks.Interfaces.RealInput u_m
"Connector of measurement input signal" annotation (Placement(transformation(extent={{-140,
-80},{-100,-40}})));
Modelica.Blocks.Interfaces.RealOutput y "Connector of actuator output signal" annotation (Placement(transformation(extent={{100,-10},{120,10}})));
Modelica.Blocks.Interfaces.RealInput u_s "Connector of setpoint input signal"
annotation (Placement(transformation(extent={{-140,-20},{-100,20}})));
Modelica.Blocks.Interfaces.RealInput TOutDoo
"Connector of setpoint input signal"
annotation (Placement(transformation(extent={{-140,60},{-100,100}})));
Modelica.Blocks.Sources.RealExpression realExpression(y=if (Enthalpy_IP.y <
28) then 1 else 0)
annotation (Placement(transformation(extent={{-36,50},{-16,70}})));
Modelica.Blocks.Interfaces.RealInput RHOutDoo
"Connector of setpoint input signal"
annotation (Placement(transformation(extent={{-140,20},{-100,60}})));
Buildings.Utilities.Psychrometrics.X_pTphi x_pTphi
annotation (Placement(transformation(extent={{-64,52},{-50,66}})));
Modelica.Blocks.Sources.Constant const(k=101325)
annotation (Placement(transformation(extent={{-86,86},{-76,96}})));
Modelica.Blocks.Sources.RealExpression Enthalpy_IP(y=((TOutDoo - 273.15)/5*9
+ 32)*0.24 + (((TOutDoo - 273.15)/5*9 + 32)*0.444 + 1061)*x_pTphi.X[1])
annotation (Placement(transformation(extent={{-82,12},{-62,32}})));
Modelica.Blocks.Math.Gain gain(k=0.01)
annotation (Placement(transformation(extent={{-92,34},{-80,46}})));
Modelica.Blocks.Interfaces.BooleanInput OveWri "Overwrite command"
annotation (Placement(transformation(
extent={{-20,-20},{20,20}},
rotation=-90,
origin={40,120})));
Modelica.Blocks.Interfaces.RealInput OverWri_y "Overwrite command"
annotation (Placement(transformation(
extent={{-20,-20},{20,20}},
rotation=-90,
origin={-40,120})));
Modelica.Blocks.Sources.RealExpression realExpression1(y=if OveWri then
OverWri_y else smoothMax.y)
annotation (Placement(transformation(extent={{0,-50},{20,-30}})));
Modelica.Blocks.Interfaces.RealInput ifOcc
"Connector of measurement input signal"
annotation (Placement(transformation(extent={{-140,-120},{-100,-80}})));
Modelica.Blocks.Math.Product product
annotation (Placement(transformation(extent={{40,-60},{60,-40}})));
Modelica.Blocks.Interfaces.RealOutput EcoSig "Value of Real output"
annotation (Placement(transformation(extent={{100,50},{120,70}})));
Modelica.Blocks.Math.Product product1
annotation (Placement(transformation(extent={{0,20},{20,40}})));
Buildings.Utilities.Math.SmoothMax smoothMax(deltaX=0.05)
annotation (Placement(transformation(extent={{42,0},{62,20}})));
Modelica.Blocks.Sources.RealExpression realExpression2(y=D_min)
annotation (Placement(transformation(extent={{0,-6},{20,14}})));
equation
connect(conPID.u_m, u_m) annotation (Line(
points={{-30,8},{-30,-20},{-80,-20},{-80,-60},{-120,-60}},
color={0,0,127},
pattern=LinePattern.Dash));
connect(conPID.u_s, u_s) annotation (Line(points={{-42,20},{-42,20},{-56,20},
{-56,0},{-56,0},{-120,0}},
color={0,0,127},
pattern=LinePattern.Dash));
connect(TOutDoo, x_pTphi.T) annotation (Line(
points={{-120,80},{-80,80},{-80,59},{-65.4,59}},
color={0,0,127},
pattern=LinePattern.Dash));
connect(const.y, x_pTphi.p_in) annotation (Line(
points={{-75.5,91},{-72,91},{-72,63.2},{-65.4,63.2}},
color={0,0,127},
pattern=LinePattern.Dash));
connect(RHOutDoo, gain.u) annotation (Line(
points={{-120,40},{-93.2,40}},
color={0,0,127},
pattern=LinePattern.Dash));
connect(gain.y, x_pTphi.phi) annotation (Line(
points={{-79.4,40},{-76,40},{-76,54.8},{-65.4,54.8}},
color={0,0,127},
pattern=LinePattern.Dash));
connect(product.u2, ifOcc) annotation (Line(
points={{38,-56},{20,-56},{0,-56},{0,-100},{-120,-100}},
color={0,0,127},
pattern=LinePattern.Dash));
connect(realExpression1.y, product.u1) annotation (Line(
points={{21,-40},{30,-40},{30,-44},{38,-44}},
color={0,0,127},
pattern=LinePattern.Dash));
connect(product.y, y) annotation (Line(
points={{61,-50},{86,-50},{86,0},{110,0}},
color={0,0,127},
pattern=LinePattern.Dash));
connect(realExpression.y, EcoSig) annotation (Line(
points={{-15,60},{110,60}},
color={0,0,127},
pattern=LinePattern.Dash));
connect(conPID.y, product1.u2) annotation (Line(
points={{-19,20},{-12,20},{-12,24},{-2,24}},
color={0,0,127},
pattern=LinePattern.Dash));
connect(product1.u1, EcoSig) annotation (Line(
points={{-2,36},{-12,36},{-12,60},{110,60}},
color={0,0,127},
pattern=LinePattern.Dash));
connect(product1.y, smoothMax.u1) annotation (Line(
points={{21,30},{28,30},{28,16},{40,16}},
color={0,0,127},
pattern=LinePattern.Dash));
connect(realExpression2.y, smoothMax.u2) annotation (Line(
points={{21,4},{40,4}},
color={0,0,127},
pattern=LinePattern.Dash));
annotation (Diagram(coordinateSystem(preserveAspectRatio=false, extent={{-100,
-100},{100,100}})), Icon(coordinateSystem(preserveAspectRatio=false, extent={{-100,-100},{100,100}}), graphics={
Rectangle(
extent={{-100,100},{100,-100}},
lineColor={0,0,127},
fillColor={255,255,255},
fillPattern=FillPattern.Solid),
Text(
extent={{-72,72},{70,-64}},
lineColor={0,0,127},
fillColor={255,255,255},
fillPattern=FillPattern.Solid,
textString="C"), Text(
extent={{-155,141},{145,101}},
lineColor={0,0,255},
fillPattern=FillPattern.HorizontalCylinder,
fillColor={0,127,255},
textString="%name")}));
end MixingBox_control_Enthalpy1;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
MixingBox_control
MixingBox_control_Enthalpy_bak
MixingBox_control_Enthalpy
MixingBox_control_annual
MixingBox_control_Enthalpy_annual
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
MixingBox
MixingBox_with_Control
MixingBox_with_Control_HX
MixingBox_with_Control_Preheater
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
MixingBox
MixingBox_with_heat_recovery
MixingBox_with_preheat
Controller
Example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Thermal_SenHea
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Fan
MixingBox
Coil
Thermal_Zone
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
AHU
BaseClasses
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Single_Max_Control
Dual_Max_Control
Co2_Demand_Control_Ventilation
Reset_request1
Reset_request2
Trim_response_T
Reset_request2_Pressure
Trim_response_P
Single_Max_Control_PID
Dual_Max_Control_PID
Dual_Max_Stage
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Damper
Single_Max
Dual_Max
Co2_Demand_Control_Ventilation
Trim_response
Reset_request1
Reset_request2
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Damper
Control
Example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Network_single_max
Network_dual_max
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
VAV_terminal_PI_SingleMax
VAV_terminal_PI_DualMax
VAV_terminal_PI_SingleMax_annual
VAV_terminal_PI_DualMax_annual
BaseClasses
Example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Air_Handling_Unit
Terminal
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
PowerLaw
PowerLawFixedM
WindPressureLowRise
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
DoorDiscretized
ErrorControl
PowerLawResistance
TwoWayFlowElement
TwoWayFlowElementBuoyancy
ZonalFlow
powerLaw
powerLawFixedM
windPressureLowRise
Examples
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
CO2TransportStep
ChimneyShaftNoVolume
ChimneyShaftWithVolume
ClosedDoors
NaturalVentilation
OneEffectiveAirLeakageArea
OneOpenDoor
OneRoom
Orifice
ReverseBuoyancy
ReverseBuoyancy3Zones
ZonalFlow
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
densitySelection
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ThreeRoomsContam
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
UsersGuide
DoorDiscretizedOpen
DoorDiscretizedOperable
EffectiveAirLeakageArea
MediumColumn
MediumColumnDynamic
Orifice
ZonalFlow_ACS
ZonalFlow_m_flow
Types
Examples
Validation
BaseClasses
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Multizone
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
BaseIcon
BaseIconLow
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BlackBody
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
BlackBody
Examples
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
AltitudeAngle
Declination
IncidenceAngle
SolarAzimuth
SolarHourAngle
WallSolarAzimuth
ZenithAngle
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
AltitudeAngle
Declination
IncidenceAngle
SolarAzimuth
SolarHourAngle
WallSolarAzimuth
ZenithAngle
Examples
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
IncidenceAngle
ZenithAngle
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
IncidenceAngle
ZenithAngle
Examples
BaseClasses
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
BrighteningCoeffcient
DiffuseIsotropic
RelativeAirMass
SkyBrightness
SkyClearness
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
BrighteningCoefficient
DiffuseIsotropic
DiffusePerez
DirectTiltedSurface
PartialSolarIrradiation
RelativeAirMass
SkyBrightness
SkyClearness
Examples
Loading