Skip to content

Commit

Permalink
fix hysteresis values to avoid difference in simulation when comparin…
Browse files Browse the repository at this point in the history
…g dymola to OM
  • Loading branch information
FWuellhorst committed Jul 15, 2024
1 parent bf663bb commit 2cbf89b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ partial model PartialReversibleRefrigerantMachine
parameter Boolean linearized=false
"= true, use linear relation between m_flow and dp for any flow rate"
annotation (Dialog(tab="Advanced", group="Flow resistance"));
parameter Real ySet_small=0.01
parameter Real ySet_small(min=0.002)=0.01
"Threshold for relative speed for the device to be considered on"
annotation (Dialog(tab="Advanced", group="Diagnostics"));
parameter Boolean calEff=true
Expand Down Expand Up @@ -315,7 +315,7 @@ partial model PartialReversibleRefrigerantMachine
rotation=0)));

Modelica.Blocks.Logical.Hysteresis hys(
final uLow=Modelica.Constants.eps,
final uLow=0.001,
final uHigh=ySet_small,
final pre_y_start=false) "Use default ySet value" annotation (Placement(
transformation(extent={{10,10},{-10,-10}}, rotation=180,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
within IBPSA.Fluid.HeatPumps.ModularReversible.Examples.BaseClasses;
within IBPSA.Fluid.HeatPumps.ModularReversible.Examples.BaseClasses;
model OneRoomRadiatorHeatPumpControl
"Helper model for the control of the system"
parameter Boolean witCoo=true
Expand Down Expand Up @@ -77,7 +77,7 @@ model OneRoomRadiatorHeatPumpControl
origin={90,-10})));
Modelica.Blocks.Logical.Hysteresis hysSecCoo(
final uLow=TRadMinSup,
final uHigh=TRadMinSup + 1,
final uHigh=TRadMinSup + 4,
final pre_y_start=false)
if witCoo
"Hysteresis for avoiding temperatures below 15 °C when cooling"
Expand Down

0 comments on commit 2cbf89b

Please sign in to comment.