This function emulated the the Carnot model (AixLib.Fluid.Chillers.BaseClasses.Carnot). See this description for more info on assumptions etc.
function CarnotFunction extends PartialBaseFct; parameter Modelica.Units.SI.Power Pel_nominal = 2000 "Constant nominal electric power"; parameter Real etaCarnot_nominal(unit = "1") = 0.5 "Carnot effectiveness (=COP/COP_Carnot) used if use_eta_Carnot_nominal = true" annotation( Dialog(group = "Efficiency", enable = use_eta_Carnot_nominal)); parameter Real a[:] = {1} "Coefficients for efficiency curve (need p(a=a, yPL=1)=1)" annotation( Dialog(group = "Efficiency")); end CarnotFunction;