Skip to content

Commit

Permalink
Merge pull request #1797 from ibpsa/issue1796_documentation_PartialTw…
Browse files Browse the repository at this point in the history
…oPortInterface

Issue1796 documentation partial two port interface
  • Loading branch information
mwetter authored Sep 25, 2023
2 parents 2d4f7c5 + 42ddc2e commit c5f8684
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 8 deletions.
11 changes: 9 additions & 2 deletions IBPSA/Fluid/Interfaces/PartialEightPortInterface.mo
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
within IBPSA.Fluid.Interfaces;
partial model PartialEightPortInterface
"Partial model transporting fluid between eight ports without storing mass or energy"
"Partial model with eight ports and declaration of quantities that are used by many models"
extends IBPSA.Fluid.Interfaces.EightPort;
parameter Modelica.Units.SI.MassFlowRate m1_flow_nominal(min=0)
"Nominal mass flow rate" annotation (Dialog(group="Nominal condition"));
Expand Down Expand Up @@ -163,7 +163,8 @@ protected
preferredView="info",
Documentation(info="<html>
<p>
This component defines the interface for models that transport four fluid streams between eight ports.
This component defines the interface for models with eight fluid ports
and four fluid streams.
It is similar to <a href=\"modelica://IBPSA.Fluid.Interfaces.PartialTwoPortInterface\">IBPSA.Fluid.Interfaces.PartialTwoPortInterface</a>,
but it has eight ports instead of two. </p>
<p>
Expand All @@ -173,6 +174,12 @@ mass transfer and pressure drop equations.
</html>", revisions="<html>
<ul>
<li>
September 22, 2023, by Michael Wetter:<br/>
Improved documentation.<br/>
This is for
<a href=\"https://github.com/ibpsa/modelica-ibpsa/issues/1796\">IBPSA, #1796</a>.
</li>
<li>
February 3, 2022, by Michael Wetter:<br/>
If <code>allowFlowReversal==false</code>, removed <code>noEvent()</code> declaration
for <code>sta_a</code> and for <code>sta_b</code> because the variable is either
Expand Down
12 changes: 9 additions & 3 deletions IBPSA/Fluid/Interfaces/PartialFourPortInterface.mo
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
within IBPSA.Fluid.Interfaces;
partial model PartialFourPortInterface
"Partial model transporting fluid between two ports without storing mass or energy"
"Partial model with four ports and declaration of quantities that are used by many models"
extends IBPSA.Fluid.Interfaces.PartialFourPort;
parameter Modelica.Units.SI.MassFlowRate m1_flow_nominal(min=0)
"Nominal mass flow rate" annotation (Dialog(group="Nominal condition"));
Expand Down Expand Up @@ -90,8 +90,8 @@ protected
preferredView="info",
Documentation(info="<html>
<p>
This component defines the interface for models that
transport two fluid streams between four ports.
This component defines the interface for models with four fluid ports
and two fluid streams.
It is similar to
<a href=\"modelica://IBPSA.Fluid.Interfaces.PartialTwoPortInterface\">
IBPSA.Fluid.Interfaces.PartialTwoPortInterface</a>,
Expand All @@ -104,6 +104,12 @@ mass transfer and pressure drop equations.
</html>", revisions="<html>
<ul>
<li>
September 22, 2023, by Michael Wetter:<br/>
Improved documentation.<br/>
This is for
<a href=\"https://github.com/ibpsa/modelica-ibpsa/issues/1796\">IBPSA, #1796</a>.
</li>
<li>
February 3, 2022, by Michael Wetter:<br/>
If <code>allowFlowReversal==false</code>, removed <code>noEvent()</code> declaration
for <code>sta_a</code> and for <code>sta_b</code> because the variable is either
Expand Down
19 changes: 16 additions & 3 deletions IBPSA/Fluid/Interfaces/PartialTwoPortInterface.mo
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
within IBPSA.Fluid.Interfaces;
partial model PartialTwoPortInterface
"Partial model transporting fluid between two ports without storing mass or energy"
"Partial model with two ports and declaration of quantities that are used by many models"
extends IBPSA.Fluid.Interfaces.PartialTwoPort(
port_a(p(start=Medium.p_default)),
port_b(p(start=Medium.p_default)));
Expand Down Expand Up @@ -58,8 +58,8 @@ protected
preferredView="info",
Documentation(info="<html>
<p>
This component defines the interface for models that
transports a fluid between two ports. It is similar to
This component defines the interface for models with two fluid ports.
It is similar to
<a href=\"Modelica://Modelica.Fluid.Interfaces.PartialTwoPortTransport\">
Modelica.Fluid.Interfaces.PartialTwoPortTransport</a>, but it does not
include the species balance
Expand All @@ -71,6 +71,13 @@ include the species balance
Thus, it can be used as a base class for a heat <i>and</i> mass transfer component
</p>
<p>
The partial model extends
<a href=\"modelica://IBPSA.Fluid.Interfaces.PartialTwoPort\">
IBPSA.Fluid.Interfaces.PartialTwoPort</a>
and adds quantities that are used by many models such as
<code>m_flow_nominal</code>, <code>m_flow</code> and <code>dp</code>.
</p>
<p>
The model is used by other models in this package that add heat transfer,
mass transfer and pressure drop equations. See for example
<a href=\"modelica://IBPSA.Fluid.Interfaces.StaticTwoPortHeatMassExchanger\">
Expand All @@ -79,6 +86,12 @@ IBPSA.Fluid.Interfaces.StaticTwoPortHeatMassExchanger</a>.
</html>", revisions="<html>
<ul>
<li>
September 22, 2023, by Michael Wetter:<br/>
Improved documentation.<br/>
This is for
<a href=\"https://github.com/ibpsa/modelica-ibpsa/issues/1796\">IBPSA, #1796</a>.
</li>
<li>
February 2, 2022, by Hongxiang Fu:<br/>
If <code>allowFlowReversal==false</code>, replaced <code>actualStream()</code>
with <code>inStream()</code> for <code>sta_a</code> and
Expand Down

0 comments on commit c5f8684

Please sign in to comment.