Skip to content

Commit

Permalink
updated reference
Browse files Browse the repository at this point in the history
  • Loading branch information
JayHuLBL committed Nov 21, 2024
1 parent b82f20e commit b410be9
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ block PerformanceCurveModifier

parameter Buildings.Fluid.Humidifiers.Data.DXDehumidifier.Generic per
"Data record"
annotation (Placement(transformation(extent={{22,64},{42,84}})));
annotation (Placement(transformation(extent={{20,60},{40,80}})));

Modelica.Blocks.Interfaces.RealInput T
"Temperature"
Expand Down
17 changes: 7 additions & 10 deletions Buildings/Fluid/Humidifiers/DXDehumidifier.mo
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ model DXDehumidifier "DX dehumidifier"
annotation (choicesAllMatching=true,
Placement(transformation(extent={{60,80},{80,100}})));

parameter Modelica.Units.SI.VolumeFlowRate VWat_flow_nominal(
parameter Modelica.Units.SI.MassFlowRate mWat_flow_nominal(
final min=0)
"Rated water removal rate"
"Rated water removal mass flow rate"
annotation (Dialog(group="Nominal condition"));

parameter Modelica.Units.SI.MassFlowRate mAir_flow_nominal
Expand Down Expand Up @@ -72,7 +72,7 @@ model DXDehumidifier "DX dehumidifier"
final m_flow_nominal=mAir_flow_nominal,
final dp_nominal=dp_nominal,
final energyDynamics=Modelica.Fluid.Types.Dynamics.FixedInitial,
final mWat_flow_nominal=-VWat_flow_nominal*rhoWat)
final mWat_flow_nominal=-mWat_flow_nominal)
"Baseclass for conditioning fluid medium"
annotation (Placement(transformation(extent={{60,-10},{80,10}})));

Expand All @@ -99,13 +99,13 @@ model DXDehumidifier "DX dehumidifier"
"Inlet air relative humidity"
annotation (Placement(transformation(extent={{0,-10},{20,10}})));

Buildings.Controls.OBC.CDL.Reals.MultiplyByParameter eneFac(
final k=eneFac_nominal/(1000*1000*3600))
Buildings.Controls.OBC.CDL.Reals.MultiplyByParameter eneFac(final k=
eneFac_nominal/(1000*3600))
"Multiply energy factor modifier by nominal energy factor"
annotation (Placement(transformation(extent={{0,-110},{20,-90}})));

Buildings.Controls.OBC.CDL.Reals.MultiplyByParameter watRemRat(
final k=VWat_flow_nominal)
Buildings.Controls.OBC.CDL.Reals.MultiplyByParameter watRemRat(final k=
mWat_flow_nominal)
"Calculate water removal rate by multiplying water removal modifier by nominal removal rate"
annotation (Placement(transformation(extent={{0,-70},{20,-50}})));

Expand All @@ -121,9 +121,6 @@ protected
constant Modelica.Units.SI.SpecificEnthalpy h_fg= Buildings.Utilities.Psychrometrics.Constants.h_fg
"Latent heat of water vapor";

constant Modelica.Units.SI.Density rhoWat=1000
"Water density";

equation
connect(preHeaFlo.port, heaFloSen.port_a)
annotation (Line(points={{10,60},{20,60}},color={191,0,0}));
Expand Down
2 changes: 1 addition & 1 deletion Buildings/Fluid/Humidifiers/Validation/DXDehumidifier.mo
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ model DXDehumidifier "Validation model for DX dehumidifier"

Buildings.Fluid.Humidifiers.DXDehumidifier dxDeh(
redeclare package Medium = Medium,
final VWat_flow_nominal=5.805556e-7,
mWat_flow_nominal=5.805556e-5,
final addPowerToMedium=true,
final mAir_flow_nominal=m_flow_nominal,
final dp_nominal=100,
Expand Down
Loading

0 comments on commit b410be9

Please sign in to comment.