Skip to content

Commit

Permalink
Fix unit issue
Browse files Browse the repository at this point in the history
  • Loading branch information
fabian.wuellhorst committed Nov 8, 2023
1 parent 29f70fe commit 9b916ae
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ partial model PartialChillerCycle
IBPSA.Fluid.HeatPumps.ModularReversible.RefrigerantCycle.BaseClasses.PartialRefrigerantCycle;

HeatPumps.ModularReversible.RefrigerantCycle.BaseClasses.CalculateCoefficientOfPerformance
calEER(PEleMin=PEle_nominal*0.01) "Calculate the EER"
calEER(PEleMin=PEle_nominal*0.01) if calEff
"Calculate the EER"
annotation (Placement(transformation(extent={{-80,-60},{-100,-80}})));
equation
connect(iceFacCal.iceFac, sigBus.iceFacChiMea) annotation (Line(points={{-79,
Expand All @@ -15,8 +16,8 @@ equation
index=1,
extent={{6,3},{6,3}},
horizontalAlignment=TextAlignment.Left));
connect(calEER.COP, sigBus.EER) annotation (Line(points={{-101,-70},{-102,-70},
{-102,104},{1,104}}, color={0,0,127}), Text(
connect(calEER.COP, sigBus.EER) annotation (Line(points={{-101,-70},{-102,-70},{
-102,104},{1,104}}, color={0,0,127}), Text(
string="%second",
index=1,
extent={{6,3},{6,3}},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,13 @@ model TableData2D
mCon_flow_nominal=datTab.mCon_flow_nominal*scaFac,
final PEle_nominal=Modelica.Blocks.Tables.Internal.getTable2DValueNoDer2(
tabIdePEle,
TEva_nominal - 273.15,
TCon_nominal - 273.15) * scaFac,
TCon_nominal,
TEva_nominal) * scaFac,
QUseNoSca_flow_nominal=
Modelica.Blocks.Tables.Internal.getTable2DValueNoDer2(
tabIdeQUse_flow,
TCon_nominal - 273.15,
TEva_nominal - 273.15),
calEER(PEleMin=10));
TCon_nominal,
TEva_nominal));
extends
IBPSA.Fluid.HeatPumps.ModularReversible.RefrigerantCycle.BaseClasses.PartialTableData2D(
final use_TConOutForTab=datTab.use_TConOutForTab,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ partial model PartialHeatPumpCycle
Modelica.Blocks.Math.Feedback feeHeaFloEva
"Calculates evaporator heat flow with total energy balance" annotation (
Placement(transformation(extent={{-80,-20},{-60,0}}, rotation=0)));
CalculateCoefficientOfPerformance calCOP(PEleMin=PEle_nominal*0.01)
CalculateCoefficientOfPerformance calCOP(PEleMin=PEle_nominal*0.01) if calEff
"Calculate the COP"
annotation (Placement(transformation(extent={{-80,-60},{-100,-80}})));
equation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ partial model PartialRefrigerantCycle
annotation (Dialog(group="Nominal Design"));
parameter String datSou=""
"Indicate where the data is coming from";

parameter Boolean calEff=true
"=false to disable efficiency calculation, may speed up the simulation"
annotation(Dialog(tab="Advanced"));
replaceable IBPSA.Fluid.HeatPumps.ModularReversible.RefrigerantCycle.Frosting.NoFrosting iceFacCal
constrainedby
IBPSA.Fluid.HeatPumps.ModularReversible.RefrigerantCycle.Frosting.BaseClasses.PartialIcingFactor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ model TableData2D "Performance data based on condenser outlet and evaporator inl
mCon_flow_nominal=datTab.mCon_flow_nominal*scaFac,
final PEle_nominal=Modelica.Blocks.Tables.Internal.getTable2DValueNoDer2(
tabIdePEle,
TCon_nominal - 273.15,
TEva_nominal - 273.15) * scaFac,
TCon_nominal,
TEva_nominal) * scaFac,
QUseNoSca_flow_nominal=
Modelica.Blocks.Tables.Internal.getTable2DValueNoDer2(
tabIdeQUse_flow,
TCon_nominal - 273.15,
TEva_nominal - 273.15));
TCon_nominal,
TEva_nominal));
extends
IBPSA.Fluid.HeatPumps.ModularReversible.RefrigerantCycle.BaseClasses.PartialTableData2D(
final use_TConOutForTab=datTab.use_TConOutForTab,
Expand Down

0 comments on commit 9b916ae

Please sign in to comment.