Skip to content

Commit

Permalink
Various small cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dhblum committed Oct 16, 2023
1 parent 819ae29 commit db4e9b3
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ model BottomingCycle "Organic Rankine cycle as a bottoming"
min=0,
final quantity="Power",
final unit="W") "Power output of the expander"
annotation (Placement(transformation(extent={{100,40},
annotation (Placement(transformation(extent={{100,40},
{120,60}}), iconTransformation(extent={{100,50},{120,70}})));
Modelica.Blocks.Interfaces.RealOutput etaThe(
min=0,
Expand Down
6 changes: 3 additions & 3 deletions Buildings/Fluid/CHPs/OrganicRankine/BaseClasses/Equations.mo
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,18 @@ model Equations "Core equations of a Rankine cycle"
final Modelica.Units.SI.SpecificEnergy dhExp =
(hExpOut_i - hExpInl) * etaExp
"Enthalpy differential at the expander (negative)";
final Modelica.Units.SI.SpecificEnergy dhCon = - dhEva - dhExp
final Modelica.Units.SI.SpecificEnergy dhCon = -dhEva - dhExp
"Enthalpy differential at the condenser (negative)";

Modelica.Blocks.Interfaces.RealOutput etaThe(
min=0,
final unit="1")=-dhExp/dhEva "Thermal efficiency"
final unit="1") = -dhExp/dhEva "Thermal efficiency"
annotation (Placement(
transformation(extent={{100,30},{120,50}}), iconTransformation(extent={{100,30},
{120,50}})));
Modelica.Blocks.Interfaces.RealOutput rConEva(
max=0,
final unit="1")=dhCon/dhEva
final unit="1") = dhCon/dhEva
"Ratio of heat flow of condenser to evaporator (<0)"
annotation (Placement(
transformation(extent={{100,-50},{120,-30}}), iconTransformation(extent={{100,-50},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ model EvaporatorLimited
final dp_nominal=dp_nominal) "Evaporator"
annotation (Placement(transformation(extent={{-10,-10},{10,10}})));

Modelica.Blocks.Interfaces.RealOutput Q_flow(unit="W")
Modelica.Blocks.Interfaces.RealOutput Q_flow(
final quantity="Power",
final unit="W")
"Heat added to the fluid"
annotation (Placement(transformation(extent={{100,-70},{120,-50}}),
iconTransformation(extent={{100,-70},{120,-50}})));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ model HeaterCooler_Q
redeclare final Buildings.Fluid.MixingVolumes.MixingVolume vol(
final prescribedHeatFlowRate=true));

Modelica.Blocks.Interfaces.RealInput Q_flow(unit="W")
Modelica.Blocks.Interfaces.RealInput Q_flow(
final quantity="Power",
final unit="W")
"Heat added to the fluid"
annotation (Placement(transformation(extent={{-140,40},{-100,80}})));
protected
Expand Down
9 changes: 5 additions & 4 deletions Buildings/Fluid/CHPs/OrganicRankine/BottomingCycle.mo
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,20 @@ model BottomingCycle
min=0,
final quantity="Power",
final unit="W") "Power output of the expander"
annotation (Placement(transformation(extent={{100,20},
annotation (Placement(transformation(extent={{100,20},
{120,40}}), iconTransformation(extent={{100,20},{120,40}})));
Modelica.Blocks.Interfaces.RealOutput etaThe(min=0, final unit="1")
"Thermal efficiency"
"Thermal efficiency"
annotation (Placement(
transformation(extent={{100,-10},{120,10}}), iconTransformation(extent={{100,-40},
{120,-20}})));
Modelica.Blocks.Interfaces.RealOutput QCon_flow(final quantity="Power",
final unit="W") "Heat rejected through condensation"
final unit="W") "Heat rejected through condensation"
annotation (Placement(transformation(extent={{100,-100},{120,-80}}),
iconTransformation(extent={{100,-110},{120,-90}})));
Modelica.Blocks.Interfaces.RealOutput QEva_flow(final quantity="Power",
final unit="W") "Heat added through evaporation" annotation (Placement(
final unit="W") "Heat added through evaporation"
annotation (Placement(
transformation(extent={{100,82},{120,102}}), iconTransformation(extent={
{100,90},{120,110}})));
equation
Expand Down

0 comments on commit db4e9b3

Please sign in to comment.