Skip to content

Commit

Permalink
Merge branch 'issue1576_heatPumpModelIntegration' of https://github.c…
Browse files Browse the repository at this point in the history
…om/ibpsa/modelica-ibpsa into issue1576_heatPumpModelIntegration
  • Loading branch information
FWuellhorst committed Jan 16, 2024
2 parents 585cc1a + cafa91c commit 857475a
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,26 @@ partial model PartialModularRefrigerantCycle
transformation(extent={{-18,84},{18,116}}), iconTransformation(extent={{-16,84},
{18,114}})));
Modelica.Blocks.Interfaces.RealOutput QCon_flow(
final unit="W", displayUnit="kW")
final unit="W")
"Heat flow rate from the refrigerant to the condenser medium"
annotation (Placement(transformation(extent={{100,-10},{120,10}})));
Modelica.Blocks.Interfaces.RealOutput QEva_flow(
final unit="W", displayUnit="kW")
final unit="W")
"Heat flow rate from the evaporator medium to the refrigerant"
annotation (Placement(transformation(extent={{-100,-10},{-120,10}})));
Modelica.Blocks.Logical.Switch swiQEva(
u1(final unit="W", displayUnit="kW"),
u3(final unit="W", displayUnit="kW"),
y(final unit="W", displayUnit="kW")) if use_rev
u1(final unit="W"),
u3(final unit="W"),
y(final unit="W")) if use_rev
"Routing block that picks the component acting as evaporator"
annotation (Placement(transformation(extent={{-60,-10},{-80,10}})));
Modelica.Blocks.Logical.Switch swiQCon(
y(final unit="W", displayUnit="kW"),
u1(final unit="W", displayUnit="kW"),
u3(final unit="W", displayUnit="kW")) if use_rev
y(final unit="W"),
u1(final unit="W"),
u3(final unit="W")) if use_rev
"Routing block that picks the component acting as condenser"
annotation (Placement(transformation(extent={{60,-10},{80,10}})));
Modelica.Blocks.Interfaces.RealOutput PEle(final unit="W", displayUnit="kW")
Modelica.Blocks.Interfaces.RealOutput PEle(final unit="W")
"Routing block that picks the component for electric power consumption"
annotation (Placement(
transformation(
Expand All @@ -38,9 +38,9 @@ partial model PartialModularRefrigerantCycle
origin={0.5,-110.5})));

Modelica.Blocks.Logical.Switch swiPEle(
u1(final unit="W", displayUnit="kW"),
u3(final unit="W", displayUnit="kW"),
y(final unit="W", displayUnit="kW")) if use_rev
u1(final unit="W"),
u3(final unit="W"),
y(final unit="W")) if use_rev
"Whether to use cooling or heating power output" annotation (Placement(
transformation(
extent={{-10,-10},{10,10}},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,17 +278,17 @@ partial model PartialReversibleRefrigerantMachine
transformation(extent={{-172,4},{-140,36}}), iconTransformation(extent={{-122,10},
{-102,30}})));

Modelica.Blocks.Interfaces.RealInput TEvaAmb(final unit="K", final
displayUnit="degC") if use_evaCap and not use_busConOnl
Modelica.Blocks.Interfaces.RealInput TEvaAmb(final unit="K", displayUnit="degC")
if use_evaCap and not use_busConOnl
"Ambient temperature on the evaporator side" annotation (Placement(
transformation(
extent={{10,-10},{-10,10}},
rotation=180,
origin={-150,-130}),iconTransformation(extent={{10,-10},{-10,10}},
origin={-112,-90},
rotation=180)));
Modelica.Blocks.Interfaces.RealInput TConAmb(final unit="K", final
displayUnit="degC") if use_conCap and not use_busConOnl
Modelica.Blocks.Interfaces.RealInput TConAmb(final unit="K", displayUnit="degC")
if use_conCap and not use_busConOnl
"Ambient temperature on the condenser side" annotation (Placement(
transformation(
extent={{-10,10},{10,-10}},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ partial model PartialRefrigerantCycle
parameter Modelica.Units.SI.SpecificHeatCapacity cpEva
"Evaporator medium specific heat capacity"
annotation (Dialog(tab="Advanced", group="Medium properties"));
Modelica.Blocks.Interfaces.RealOutput PEle(final unit="W", displayUnit=
"kW") "Electrical Power consumed by the device" annotation (Placement(
Modelica.Blocks.Interfaces.RealOutput PEle(final unit="W")
"Electrical Power consumed by the device" annotation (Placement(
transformation(
extent={{-10,-10},{10,10}},
rotation=270,
origin={0,-130})));
Modelica.Blocks.Interfaces.RealOutput QCon_flow(final unit="W", final
displayUnit="kW") "Heat flow rate through condenser" annotation (
Modelica.Blocks.Interfaces.RealOutput QCon_flow(final unit="W")
"Heat flow rate through condenser" annotation (
Placement(transformation(
extent={{-10,-10},{10,10}},
rotation=270,
Expand All @@ -61,8 +61,8 @@ partial model PartialRefrigerantCycle
extent={{-15,-14},{15,14}},
rotation=0,
origin={1,120})));
Modelica.Blocks.Interfaces.RealOutput QEva_flow(final unit="W", final
displayUnit="kW") "Heat flow rate through evaporator" annotation (
Modelica.Blocks.Interfaces.RealOutput QEva_flow(final unit="W")
"Heat flow rate through evaporator" annotation (
Placement(transformation(
extent={{-10,-10},{10,10}},
rotation=270,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ partial model PartialTableData2D
final smoothness=smoothness,
final u1(unit="K", displayUnit="degC"),
final u2(unit="K", displayUnit="degC"),
final y(unit="W", displayUnit="kW"),
final y(unit="W"),
final extrapolation=extrapolation) "Electrical power consumption table" annotation (
Placement(transformation(
extent={{-10,-10},{10,10}},
Expand All @@ -33,7 +33,7 @@ partial model PartialTableData2D
final smoothness=smoothness,
final u1(unit="K", displayUnit="degC"),
final u2(unit="K", displayUnit="degC"),
final y(unit="W", displayUnit="kW"),
final y(unit="W"),
final extrapolation=extrapolation) "Table for useful heat flow rate"
annotation (Placement(transformation(
extent={{-10,-10},{10,10}}, rotation=-90,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ partial model PartialValidation
Modelica.Blocks.Interfaces.RealOutput TEvaOutMea(unit="K", displayUnit="degC")
"Measured evaporator outlet"
annotation (Placement(transformation(extent={{100,0},{120,20}})));
Modelica.Blocks.Interfaces.RealOutput PEleMea(unit="W", displayUnit="kW")
Modelica.Blocks.Interfaces.RealOutput PEleMea(unit="W")
"Measured electrical power consumption"
annotation (Placement(transformation(extent={{100,-78},{120,-58}})));
Modelica.Blocks.Interfaces.RealOutput PEleSim(unit="W", displayUnit="kW")
Modelica.Blocks.Interfaces.RealOutput PEleSim(unit="W")
"Simulated electrical power consumption"
annotation (Placement(transformation(extent={{100,-102},{120,-82}})));
Modelica.Blocks.Interfaces.RealOutput TConOutSim(unit="K", displayUnit="degC")
Expand Down

0 comments on commit 857475a

Please sign in to comment.