Skip to content

Commit

Permalink
Reverted all Fluid package files to old commit before changes were pu…
Browse files Browse the repository at this point in the history
…shed
  • Loading branch information
karthikeyad-pnnl committed Oct 1, 2023
1 parent 8e427d6 commit 50f5a46
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 25 deletions.
13 changes: 4 additions & 9 deletions Buildings/Fluid/DXSystems/Cooling/AirSource/VariableSpeed.mo
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
within Buildings.Fluid.DXSystems.Cooling.AirSource;
model VariableSpeed "Variable speed DX cooling coil"
extends Buildings.Fluid.DXSystems.Cooling.BaseClasses.PartialDXCoolingCoil(
extends
Buildings.Fluid.DXSystems.Cooling.BaseClasses.PartialDXCoolingCoil(
dxCoi(
final variableSpeedCoil=true,
wetCoi(redeclare
Expand All @@ -26,13 +27,11 @@ model VariableSpeed "Variable speed DX cooling coil"
annotation (Placement(transformation(extent={{-120,70},{-100,90}}),
iconTransformation(extent={{-120,70},{-100,90}})));

Controls.OBC.CDL.Conversions.BooleanToReal booToRea
"Convert Boolean to Real number"
annotation (Placement(transformation(extent={{-42,84},{-30,96}})));
protected
Modelica.Blocks.Logical.Hysteresis deaBan(
final uLow=minSpeRat - speRatDeaBan/2,
final uHigh=minSpeRat + speRatDeaBan/2) "Speed ratio deadband"
final uHigh=minSpeRat + speRatDeaBan/2)
"Speed ratio deadband"
annotation (Placement(transformation(extent={{-64,64},{-52,76}})));

Modelica.Blocks.Math.BooleanToInteger onSwi(
Expand Down Expand Up @@ -63,10 +62,6 @@ equation
points={{-51.4,70},{-43.2,70}},
color={255,0,255},
smooth=Smooth.None));
connect(deaBan.y, booToRea.u) annotation (Line(points={{-51.4,70},{-48,70},{
-48,90},{-43.2,90}}, color={255,0,255}));
connect(booToRea.y, damPreInd.y) annotation (Line(points={{-28.8,90},{-22,90},
{-22,66},{-26,66},{-26,-14},{-78,-14},{-78,12}}, color={0,0,127}));
annotation (defaultComponentName="varSpeDXCoo", Documentation(info="<html>
<p>
This model can be used to simulate an air source DX cooling coil with continuously
Expand Down
3 changes: 0 additions & 3 deletions Buildings/Fluid/DXSystems/Heating/AirSource/SingleSpeed.mo
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ equation
color={255,0,255}));
connect(booToReaOn.y, defCap.uSpe) annotation (Line(points={{22,140},{44,140},
{44,100},{61,100}}, color={0,0,127}));
connect(booToReaOn.y, damPreInd.y) annotation (Line(points={{22,140},{28,140},
{28,126},{-78,126},{-78,12}}, color={0,0,
127}));
annotation (defaultComponentName="sinSpeDXHea", Documentation(info="<html>
<p>
This model can be used to simulate an air-source DX heating coil with single speed compressor.
Expand Down
4 changes: 0 additions & 4 deletions Buildings/Fluid/HeatExchangers/HeaterCooler_u.mo
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ model HeaterCooler_u "Heater or cooler with prescribed heat flow rate"
Modelica.Blocks.Interfaces.RealOutput Q_flow(unit="W")
"Heat added to the fluid"
annotation (Placement(transformation(extent={{100,50},{120,70}})));
Controls.OBC.CDL.Continuous.Sources.Constant con(k=1)
annotation (Placement(transformation(extent={{-78,22},{-58,42}})));
protected
Modelica.Thermal.HeatTransfer.Sources.PrescribedHeatFlow preHea(
final alpha=0)
Expand All @@ -37,8 +35,6 @@ equation
connect(gai.y, Q_flow) annotation (Line(
points={{-59,60},{-50,60},{-50,80},{80,80},{80,60},{110,60}},
color={0,0,127}));
connect(con.y, damPreInd.y) annotation (Line(points={{-56,32},{-50,32},{-50,
18},{-78,18},{-78,12}}, color={0,0,127}));
annotation (Icon(coordinateSystem(preserveAspectRatio=false, extent={{-100,
-100},{100,100}}), graphics={
Rectangle(
Expand Down
12 changes: 3 additions & 9 deletions Buildings/Fluid/Interfaces/TwoPortHeatMassExchanger.mo
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,6 @@ model TwoPortHeatMassExchanger
final dp_nominal=dp_nominal) "Flow resistance"
annotation (Placement(transformation(extent={{-60,-10},{-40,10}})));

Actuators.Dampers.PressureIndependent damPreInd(
redeclare package Medium = Medium,
m_flow_nominal=m_flow_nominal,
dpDamper_nominal=dp_nominal)
annotation (Placement(transformation(extent={{-88,-10},{-68,10}})));
protected
parameter Medium.ThermodynamicState sta_default=Medium.setState_pTX(
T=Medium.T_default, p=Medium.p_default, X=Medium.X_default);
Expand All @@ -93,13 +88,12 @@ equation
connect(vol.ports[2], port_b) annotation (Line(
points={{1,0},{100,0}},
color={0,127,255}));
connect(port_a, preDro.port_a) annotation (Line(
points={{-100,0},{-90,0},{-90,0},{-80,0},{-80,0},{-60,0}},
color={0,127,255}));
connect(preDro.port_b, vol.ports[1]) annotation (Line(
points={{-40,0},{1,0}},
color={0,127,255}));
connect(port_a, damPreInd.port_a)
annotation (Line(points={{-100,0},{-88,0}}, color={0,127,255}));
connect(damPreInd.port_b, preDro.port_a)
annotation (Line(points={{-68,0},{-60,0}}, color={0,127,255}));
annotation (
Documentation(info="<html>
<p>
Expand Down

0 comments on commit 50f5a46

Please sign in to comment.