-
Notifications
You must be signed in to change notification settings - Fork 2
Cooling tower first model #472
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
base: main
Are you sure you want to change the base?
Changes from 2 commits
fecbf88
09c362f
8f0cb64
f3d9107
2cf625c
dec12b1
8db44a3
1f5ac4a
8289c87
b396da0
b9a9f12
b2b137f
f7abffa
c047767
78a0e7b
05bf4a6
3e1bd9d
f150e11
59c7886
16790e5
ada350a
716c2f2
64e7e62
87697c5
5d870a1
e251278
9bf1165
b8f1889
54c1b01
b6e7cc4
0c1907c
852091b
7b377c0
7aee51c
b64a2b0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -100,10 +100,10 @@ model CoolingTower3 | |
| equation | ||
| // Definition | ||
| Q_cold = Air_inlet.Q_in; | ||
| Q_hot = Water_outlet.Q_out; | ||
| Q_hot = Water_inlet.Q_in; | ||
|
|
||
| T_hot_in = hot_side_cooling.T_in; | ||
| T_hot_out = hot_side_cooling.T_out; | ||
| T_hot_in = Water_inlet.T_in; //hot_side_cooling | ||
| T_hot_out = Water_outlet.T_out; | ||
| P_in = Air_inlet.P_in; | ||
| P_out = Air_outlet.P_out; | ||
| T_cold_in = Air_inlet.T_in; | ||
|
|
@@ -130,8 +130,8 @@ equation | |
| Air_outlet.Q_out * (1 - Air_outlet.Xi_out[1]) = - Air_inlet.Q_in *(1 - Air_inlet.Xi_in[1]); | ||
|
|
||
| Water_outlet.P_out = Water_inlet.P_in; | ||
| Water_outlet.T_out = Water_inlet.T_in; | ||
| Water_outlet.Q_out = Water_inlet.Q_in - Q_makeup; | ||
| //Water_outlet.T_out = Water_inlet.T_in; | ||
| Water_outlet.Q_out = Q_hot - Q_makeup; | ||
|
||
|
|
||
| i1 = MoistAir.h_pTX(P_in, T1, {MoistAir.massFraction_pTphi(P_in, T1, 1)}) - ((i_initial + 0.1 * (i_final - i_initial))); //First integral section | ||
| i2 = MoistAir.h_pTX(P_in, T2, {MoistAir.massFraction_pTphi(P_in, T2, 1)}) - ((i_initial + 0.4 * (i_final - i_initial))); | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,7 @@ model CoolingTower_reverse | |
|
|
||
| // Boundary Conditions | ||
| // Hot Water Inlet | ||
| input Real waterInletTemp(start=45) "deg_C"; | ||
| input Real waterInletTemp(start=35) "deg_C"; | ||
| input Units.VolumeFlowRate waterFlow(start=39) "m3/s"; | ||
| input Real waterInletPress(start=1) "bar"; | ||
|
|
||
|
|
@@ -32,7 +32,7 @@ model CoolingTower_reverse | |
| output Real Q_cold(start=52552.133) "m3/s"; | ||
|
|
||
| output Real airOutletPress(start=1) "bar"; | ||
| output Real AirOutletTemp(start=35) "deg_C"; | ||
| input Real AirOutletTemp(start=35) "deg_C"; //output | ||
|
||
|
|
||
| // Output | ||
| output Units.Fraction cold_sink_relative_humidity(start=1) "1"; | ||
|
|
@@ -107,7 +107,7 @@ equation | |
|
|
||
| // Observable for Calibration | ||
| WaterOutletTemp_sensor.T_degC = WaterOutletTemp; | ||
| AirOutletTemp_sensor.T_degC = AirOutletTemp; | ||
| AirOutletTemp_sensor.T_degC = AirOutletTemp-10*time; | ||
|
||
|
|
||
| connect(CoolingTower.C_hot_in, waterInletPress_sensor.C_out) annotation (Line(points={{-1.5,-18},{-14,-18},{-14,-20},{-16,-20}}, | ||
| color={28,108,200})); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So now the heat exchange is between the water source and water sink, so the component
hot_side_coolingshould be replace by anIsoPHFlowModel(at the moment it is anIsoPFlowModel)