Closed mwetter closed 7 years ago
If Carnot
where to be moved to Annex60
, it should be called Carnot_y
.
All should comment whether this should be moved to the Annex60
library.
Is this related to https://github.com/iea-annex60/modelica-annex60/issues/223 ??
According to me, Annex60 could benefit of having the Buildings.Fluid.Chillers.Carnot
model. I've revised the model and I've listed my comments in https://github.com/lbl-srg/modelica-buildings/issues/471. Once these comments are adressed and if everybody agrees, the Carnot model can be added.
As discussed in lbl-srg/modelica-buildings/issues/471, I did the following changes: . Add a Carnot heat pump, and rename these models to Carnot_y (similarly than for the heater/cooler) to avoid a clash in names. . remove actualStream in computing the states that are used to compute the Carnot efficiency.
I also added the example from the building library and i've updated the reference result.
I've pushed the changes on issue353_addCarnot_y
@damienpicard
I will also integrate the Chiller.Carnot_TEva
, HeatPumps.Carnot_TCon
and HeatPumps.Carnot_y
.
I will also correct the COP computation so that the useful heat is the heat of the evaporator for the chiller, and the heat of the condenser for the heat pump.
To eliminate code duplication, I will refactor that Chiller.Carnot_y
so that it uses a base class that can also be shared by HeatPump.Carnot_y
, as is done for Chiller.Carnot_TEva
and HeatPumps.Carnot_TCon
.
The above models have been integrated and documented. The following still needs to be done:
@mwetter notice that Annex60.Fluid.Interfaces.FourPortHeatMassExchanger
is still not used in the Annex60
library, as the implementation of the the Carnot
model extends now PartialFourPortInterface
instead of FourPortHeatMassExchanger
.
Note from Corsica meeting: Michael to ensure that the model is used in a regression test in Annex60
, and then we keep it in the library for release 1.0.
The model
Annex60.Fluid.Interfaces.FourPortHeatMassExchanger
is not used anywhere in the library, and hence it is also not part of any regression test. I suggest to keep the model in the library as it is similar toTwoPortHeatMassExchanger
and libraries the are based onAnnex60
are using it, for example inBuildings.Fluid.Chillers.Carnot
.To avoid breaking the model, a regression test needs to be added.