Skip to content

Commit

Permalink
add default values to the data set
Browse files Browse the repository at this point in the history
  • Loading branch information
Huang committed Jan 15, 2025
1 parent 3ce6d26 commit b1d93c1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
within Buildings.Fluid.HeatExchangers.ThermalWheels.Data;
record ASHRAE = Buildings.Fluid.HeatExchangers.ThermalWheels.Data.Generic(
final haveVariableSpeed=true,
senHeatExchangeEffectiveness(
uSpe={0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1},
epsCor={0,0.40,0.71,0.83,0.90,0.93,0.96,0.97,0.98,0.99,1}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ partial model PartialWheel
Modelica.Media.Interfaces.PartialCondensingGases
"Air";

parameter Buildings.Fluid.HeatExchangers.ThermalWheels.Data.Generic per
parameter Buildings.Fluid.HeatExchangers.ThermalWheels.Data.Generic per(
final haveLatentHeatExchange=true)
"Record with performance data"
annotation (Placement(transformation(extent={{-150,-40},{-130,-20}})));
Buildings.Controls.OBC.CDL.Interfaces.RealOutput P(
Expand Down Expand Up @@ -65,13 +66,6 @@ protected
"Heat exchanger"
annotation (Placement(transformation(extent={{10,-10},{30,10}})));

initial equation
assert(per.haveLatentHeatExchange,
"In " + getInstanceName() + ": The performance data record
is wrong, the latent heat exchange flag must be true",
level=AssertionLevel.error)
"Check if the performance data record is correct";

equation
connect(senSupMasFlo.m_flow, effCal.mSup_flow) annotation (Line(points={{60,17},
{60,60},{-110,60},{-110,6},{-102,6}}, color={0,0,127}));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ partial model PartialWheel
replaceable package Medium =
Modelica.Media.Interfaces.PartialCondensingGases
"Air";
parameter Buildings.Fluid.HeatExchangers.ThermalWheels.Data.Generic per
parameter Buildings.Fluid.HeatExchangers.ThermalWheels.Data.Generic per(
final haveLatentHeatExchange=false)
"Record with performance data"
annotation (Placement(transformation(extent={{-130,-60},{-110,-40}})));

Expand Down Expand Up @@ -68,13 +69,6 @@ protected
"Calculate the effectiveness of heat exchanger"
annotation (Placement(transformation(extent={{-100,-10},{-80,10}})));

initial equation
assert(not per.haveLatentHeatExchange,
"In " + getInstanceName() + ": The performance data record
is wrong, the latent heat exchange flag must be false",
level=AssertionLevel.error)
"Check if the performance data record is correct";

equation
connect(senExhMasFlo.port_b, port_b2)
annotation (Line(points={{-90,-40},{-100,-40},{-100,-80},{-180,-80}},
Expand Down

0 comments on commit b1d93c1

Please sign in to comment.