Skip to content

Commit 8f73ea2

Browse files
authored
Update documentation for phase separators (#58)
1 parent 78e3515 commit 8f73ea2

File tree

6 files changed

+26
-8
lines changed

6 files changed

+26
-8
lines changed

ThermofluidStream/Boundaries/PhaseSeparator.mo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ equation
8383
annotation (Icon(coordinateSystem(preserveAspectRatio=false)),
8484
Diagram(coordinateSystem(preserveAspectRatio=false)),
8585
Documentation(info="<html>
86-
<p>This Volume is the parent class for Accumulator and Receiver models that seperate the two phases and are able and output gas, liquid or two-phase medium, dependin on its liquid level and the height of the outlet. </p>
87-
<p>Since there is no formula to compute density_derp_h for this volume, a upper bound has to be set in the parameter density_derp_h_set. Alternativeley the derivative can be taken from the media model for all the media that implement the corresponding forumla by setting density_derp_h_from_media=true (default:false).</p>
86+
<p>This Volume is the parent class for Accumulator and Receiver models that seperate the two phases and are able and output gas, liquid or two-phase medium, depending on its liquid level and the height of the outlet. </p>
87+
<p>Since there is no formula to compute density_derp_h for this volume, an upper bound has to be set in the parameter density_derp_h_set. Alternativeley the derivative can be taken from the media model for all the media that implement the corresponding forumla by setting density_derp_h_from_media=true (default:false).</p>
8888
</html>"));
8989
end PhaseSeparator;

ThermofluidStream/Examples/Utilities/Accumulator.mo

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,13 @@ model Accumulator "Accumulator Model for vapor cycle applications"
108108
fillPattern=FillPattern.Solid)}),
109109
Diagram(coordinateSystem(preserveAspectRatio=false)),
110110
Documentation(info="<html>
111-
<p>This is the partial parent class for all unidirectional volumes with only one inlet and outlet. It is partial and is missing one equation for its volume or the medium pressure and one the volume work performed.</p>
112-
<p>Conceptually a Volume is a Sink and a Source. It therefore defines the Level of inertial pressure r in a closed loop and acts as a Loop breaker.</p>
111+
<p>Model of an accumulator for application in vapor-cycle systems.</p>
112+
<p><br>It inherits the basic balance equations from the volume model.</p>
113+
<p><br>The purpose of this model is to separate the phases and provide gaseous phase to the compressor. The gas is extracted through a pipe. The low and high end of the pipe can be set by the respective parameters. Depending on the liquid level of the accumulator, the outlet enthalpy is set:</p>
114+
<p><br>If the liquid level is higher than the upper end of the pipe, liquid is extracted.</p>
115+
<p>If the liquid level is lower then the lower end of the pipe, the actual enthalpy of the medium in the accumulator is extracted.</p>
116+
<p>If the liquid level is between the lower and the upper end of the pipe, the outlet enthalpy is weighted on the liquid level in the pipe.</p>
117+
<p>Known problems: full phaseSeparator is very stiff, therefore simulation might get slow then, especially at the moment when the separator fills up. Consider changing the timeconstant and check if the mass-flow dynamic is fast enough.</p>
118+
<p><br><img src=\"modelica://ThermofluidStream/Resources/Doku/accumulator.png\"/></p>
113119
</html>"));
114120
end Accumulator;

ThermofluidStream/Examples/Utilities/Receiver.mo

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,13 @@ model Receiver "Receiver Model for vapor cycle applications"
226226
fillPattern=FillPattern.Solid)}),
227227
Diagram(coordinateSystem(preserveAspectRatio=false)),
228228
Documentation(info="<html>
229-
<p>This is the partial parent class for all unidirectional volumes with only one inlet and outlet. It is partial and is missing one equation for its volume or the medium pressure and one the volume work performed.</p>
230-
<p>Conceptually a Volume is a Sink and a Source. It therefore defines the Level of inertial pressure r in a closed loop and acts as a Loop breaker.</p>
229+
<p>Model of a receiver for application in vapor-cycle systems.</p>
230+
<p><br>It inherits the basic balance equations from the volume model.</p>
231+
<p><br>The purpose of this model is to separate the phases and provide liquid phase to the expansion valve. The liquid is extracted through a pipe. The low and high end of the pipe can be set by the respective parameters. Depending on the liquid level of the receiver, the outlet enthalpy is set:</p>
232+
<p><br>If the liquid level is higher than the upper end of the pipe, liquid is extracted.</p>
233+
<p>If the liquid level is lower then the lower end of the pipe, the actual enthalpy of the medium in the receiver is extracted.</p>
234+
<p>If the liquid level is between the lower and the upper end of the pipe, the outlet enthalpy is weighted on the liquid level in the pipe.</p>
235+
<p>Known problems: full phaseSeparator is very stiff, therefore simulation might get slow then, especially at the moment when the separator fills up. Consider changing the timeconstant and check if the mass-flow dynamic is fast enough.</p>
236+
<p><br><img src=\"modelica://ThermofluidStream/Resources/Doku/receiver.png\"/></p>
231237
</html>"));
232238
end Receiver;

ThermofluidStream/Examples/Utilities/ReceiverUndirected.mo

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,13 @@ model ReceiverUndirected "Undirected Receiver Model for vapor cycle applications
226226
fillPattern=FillPattern.Solid)}),
227227
Diagram(coordinateSystem(preserveAspectRatio=false)),
228228
Documentation(info="<html>
229-
<p>This is the partial parent class for all unidirectional volumes with only one inlet and outlet. It is partial and is missing one equation for its volume or the medium pressure and one the volume work performed.</p>
230-
<p>Conceptually a Volume is a Sink and a Source. It therefore defines the Level of inertial pressure r in a closed loop and acts as a Loop breaker.</p>
229+
<p>Model of an undirected receiver for application in reversible heat pump systems.</p>
230+
<p><br>It inherits the basic balance equations from the volume model.</p>
231+
<p><br>The only difference to the directed <a href=\"ThermofluidStream.Examples.Utilities.Receiver\">Receiver</a> model is, that it has outlet pipes on <b>both</b> sides of the volume. Hence the liquid phase is extracted from the respective pipe, depending on the flow direction.</p>
232+
<p><br>The purpose of this model is to separate the phases and provide liquid phase to the expansion valve in both flow directions. The liquid is extracted through a pipe on each side of the receiver. The low and high end of the pipes can be set by the respective parameters. Depending on the liquid level of the receiver, the outlet enthalpy is set:</p>
233+
<p><br>If the liquid level is higher than the upper end of the pipe, liquid is extracted.</p>
234+
<p>If the liquid level is lower then the lower end of the pipe, the actual enthalpy of the medium in the receiver is extracted.</p>
235+
<p>If the liquid level is between the lower and the upper end of the pipe, the outlet enthalpy is weighted on the liquid level in the pipe.</p>
236+
<p>Known problems: full phaseSeparator is very stiff, therefore simulation might get slow then, especially at the moment when the separator fills up. Consider changing the timeconstant and check if the mass-flow dynamic is fast enough.</p>
231237
</html>"));
232238
end ReceiverUndirected;
13.9 KB
Loading
12.6 KB
Loading

0 commit comments

Comments
 (0)