diff --git a/IBPSA/Fluid/Chillers/ModularReversible/BaseClasses/RefrigerantCycle.mo b/IBPSA/Fluid/Chillers/ModularReversible/BaseClasses/RefrigerantCycle.mo index 220d9886ac..984d1d5a71 100644 --- a/IBPSA/Fluid/Chillers/ModularReversible/BaseClasses/RefrigerantCycle.mo +++ b/IBPSA/Fluid/Chillers/ModularReversible/BaseClasses/RefrigerantCycle.mo @@ -1,20 +1,19 @@ within IBPSA.Fluid.Chillers.ModularReversible.BaseClasses; model RefrigerantCycle "Refrigerant cycle model of a chiller" - extends - IBPSA.Fluid.HeatPumps.ModularReversible.BaseClasses.PartialModularRefrigerantCycle; + extends IBPSA.Fluid.HeatPumps.ModularReversible.BaseClasses.PartialModularRefrigerantCycle; replaceable model RefrigerantCycleChillerCooling = - IBPSA.Fluid.Chillers.ModularReversible.RefrigerantCycle.BaseClasses.NoCooling - ( useInChi=true) + IBPSA.Fluid.Chillers.ModularReversible.RefrigerantCycle.BaseClasses.NoCooling( + useInChi=true) constrainedby - IBPSA.Fluid.Chillers.ModularReversible.RefrigerantCycle.BaseClasses.PartialChillerCycle + IBPSA.Fluid.Chillers.ModularReversible.RefrigerantCycle.BaseClasses.PartialChillerCycle "Replaceable model for refrigerant cycle of a chiller in main operation mode" annotation (choicesAllMatching=true); replaceable model RefrigerantCycleChillerHeating = - IBPSA.Fluid.HeatPumps.ModularReversible.RefrigerantCycle.BaseClasses.NoHeating - ( useInHeaPum=true) + IBPSA.Fluid.HeatPumps.ModularReversible.RefrigerantCycle.BaseClasses.NoHeating( + useInHeaPum=true) constrainedby - IBPSA.Fluid.HeatPumps.ModularReversible.RefrigerantCycle.BaseClasses.PartialHeatPumpCycle + IBPSA.Fluid.HeatPumps.ModularReversible.RefrigerantCycle.BaseClasses.PartialHeatPumpCycle "Replaceable model for refrigerant cycle of a chiller in reversed operation mode" annotation (Dialog(enable=use_rev),choicesAllMatching=true); diff --git a/IBPSA/Fluid/HeatPumps/ModularReversible/BaseClasses/PartialReversibleRefrigerantMachine.mo b/IBPSA/Fluid/HeatPumps/ModularReversible/BaseClasses/PartialReversibleRefrigerantMachine.mo index d1dd5b311f..5382cf2023 100644 --- a/IBPSA/Fluid/HeatPumps/ModularReversible/BaseClasses/PartialReversibleRefrigerantMachine.mo +++ b/IBPSA/Fluid/HeatPumps/ModularReversible/BaseClasses/PartialReversibleRefrigerantMachine.mo @@ -347,8 +347,7 @@ partial model PartialReversibleRefrigerantMachine rotation=0, origin={-98,12}))); Modelica.Blocks.Interfaces.RealOutput QCon_flow(final quantity="HeatFlowRate", - final unit="W") - "Actual heating heat flow rate added to fluid 1" + final unit="W") "Actual heating heat flow rate added to fluid 1" annotation (Placement(transformation(extent={{140,120},{160,140}}), iconTransformation(extent={{100,80},{120,100}}))); Modelica.Blocks.Interfaces.RealOutput P(final quantity="Power", final unit="W") @@ -356,8 +355,7 @@ partial model PartialReversibleRefrigerantMachine annotation (Placement(transformation(extent={{140,-10},{160,10}}), iconTransformation(extent={{100,-10},{120,10}}))); Modelica.Blocks.Interfaces.RealOutput QEva_flow(final quantity="HeatFlowRate", - final unit="W") - "Actual cooling heat flow rate removed from fluid 2" + final unit="W") "Actual cooling heat flow rate removed from fluid 2" annotation (Placement(transformation(extent={{140,-140},{160,-120}}), iconTransformation(extent={{100,-100},{120,-80}}))); Modelica.Blocks.Interfaces.RealOutput EER(unit="1") if use_EER diff --git a/IBPSA/Fluid/HeatPumps/ModularReversible/BaseClasses/RefrigerantCycle.mo b/IBPSA/Fluid/HeatPumps/ModularReversible/BaseClasses/RefrigerantCycle.mo index e968d0a8ec..b1c24ea8bd 100644 --- a/IBPSA/Fluid/HeatPumps/ModularReversible/BaseClasses/RefrigerantCycle.mo +++ b/IBPSA/Fluid/HeatPumps/ModularReversible/BaseClasses/RefrigerantCycle.mo @@ -1,21 +1,20 @@ within IBPSA.Fluid.HeatPumps.ModularReversible.BaseClasses; model RefrigerantCycle "Refrigerant cycle model of a heat pump" - extends - IBPSA.Fluid.HeatPumps.ModularReversible.BaseClasses.PartialModularRefrigerantCycle; + extends IBPSA.Fluid.HeatPumps.ModularReversible.BaseClasses.PartialModularRefrigerantCycle; replaceable model RefrigerantCycleHeatPumpHeating = - IBPSA.Fluid.HeatPumps.ModularReversible.RefrigerantCycle.BaseClasses.NoHeating - ( useInHeaPum=true) - constrainedby - IBPSA.Fluid.HeatPumps.ModularReversible.RefrigerantCycle.BaseClasses.PartialHeatPumpCycle + IBPSA.Fluid.HeatPumps.ModularReversible.RefrigerantCycle.BaseClasses.NoHeating( + useInHeaPum=true) + constrainedby + IBPSA.Fluid.HeatPumps.ModularReversible.RefrigerantCycle.BaseClasses.PartialHeatPumpCycle "Replaceable model for refrigerant cycle of a heat pump in main operation mode" annotation (choicesAllMatching=true); replaceable model RefrigerantCycleHeatPumpCooling = - IBPSA.Fluid.Chillers.ModularReversible.RefrigerantCycle.BaseClasses.NoCooling - ( useInChi=true) + IBPSA.Fluid.Chillers.ModularReversible.RefrigerantCycle.BaseClasses.NoCooling( + useInChi=true) constrainedby - IBPSA.Fluid.Chillers.ModularReversible.RefrigerantCycle.BaseClasses.PartialChillerCycle + IBPSA.Fluid.Chillers.ModularReversible.RefrigerantCycle.BaseClasses.PartialChillerCycle "Replaceable model for refrigerant cycle of a heat pump in reversed operation mode" annotation (Dialog(enable=use_rev),choicesAllMatching=true); @@ -25,12 +24,14 @@ model RefrigerantCycle RefrigerantCycleHeatPumpCooling refCycHeaPumCoo if use_rev "Refrigerant cycle instance for cooling" annotation (Placement(transformation(extent={{-60,40},{-19,80}}, rotation=0))); + protected IBPSA.Utilities.IO.Strings.StringPassThrough strPasThr "String pass through to enable conditional string data"; IBPSA.Utilities.IO.Strings.Constant conStrSou( final k=refCycHeaPumHea.datSou) "Constant String data source"; + initial algorithm assert( strPasThr.y == refCycHeaPumHea.datSou, @@ -38,6 +39,7 @@ initial algorithm Heating data source is " + refCycHeaPumHea.datSou + ", cooling data source is " + strPasThr.y + ". Only continue if this is intended.", AssertionLevel.warning); + equation if use_rev then connect(refCycHeaPumCoo.datSouOut, strPasThr.u);