architecture-building-systems / CityEnergyAnalyst

The City Energy Analyst (CEA)
https://www.cityenergyanalyst.com/
MIT License
196 stars 66 forks source link

water source VCC activation #3131

Closed MatNif closed 2 years ago

MatNif commented 2 years ago

Describe the bug In the cooling resource activation script of the optimisation algorithm (cea/optimization/slave/cooling_resource_activation.py), the water source vapour compression chillers are not always activated to their fullest potential:

The general layout assumed by the scripts is the following:

Screen Shot 2022-04-04 at 11 40 18 AM Screen Shot 2022-04-04 at 11 45 29 AM

If the temperature of the water body allows it, the VCC is bypassed and the water is used for free cooling. And if the cooling demand is larger than the capacity of the cooling components the thermal storage is discharged, otherwise it is charged.

However, this second condition uses min(Q_wb;C_VCC) to determine if the cooling energy provided is sufficient. This leads to an underutilisation of free cooling from the water body in case Q_wb > C_VCC and T_wb < T_DC - 2K. And it also leads to a underutilisation of the VCC in case C_VCC > Q_wb and T_wb > T_DC - 2K.

Expected behaviour I would suggest changing the conditions so that these two cases are handled adequately.

MatNif commented 2 years ago

Here is a more detailed description of what I would suggest as a solution:

Screen Shot 2022-04-18 at 3 22 50 PM

Screen Shot 2022-04-14 at 5 30 27 PM

It is important to note that the thermal efficiency is strictly speaking dependent on the VCC and its operating point.

image

Assuming that all the heat from the VCC is absorbed by the cold water cycle (water body) and none of it is dissipated in the air, the following holds true under the 2. law of thermodynamics:

image

Therefore,

image

Since the real COP is hard to determine and the current model to calculate it seems faulty, I would suggest using an approximation of it for now. The real value of the thermal efficiency has to lie somewhere between 0 and Carnot efficiency:

image

Assuming it to be close to Carnot efficiency will lead to an overestimation of the energy that can be withdrawn from the water body, however, seeing how rarely this case will probable appear, it might still be a good first approximation.