Skip to content

Commit

Permalink
Merge pull request #4461 from HansOlsson/MinPorts (#4469)
Browse files Browse the repository at this point in the history
MassFlowSource_T and MassFlowSource_h only work if there are at least one port

Co-authored-by: Esther-Devakirubai <[email protected]>
  • Loading branch information
arunkumar-narasimhan and Esther-Devakirubai authored Sep 26, 2024
1 parent 67fcd1d commit 4f119bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Modelica/Fluid/Sources.mo
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ with exception of boundary pressure, do not have an effect.
model MassFlowSource_T
"Ideal flow source that produces a prescribed mass flow with prescribed temperature, mass fraction and trace substances"
import Modelica.Media.Interfaces.Choices.IndependentVariables;
extends Sources.BaseClasses.PartialFlowSource;
extends Sources.BaseClasses.PartialFlowSource(nPorts(min=1));
parameter Boolean use_m_flow_in = false
"Get the mass flow rate from the input connector"
annotation(Evaluate=true, HideResult=true, choices(checkBox=true));
Expand Down Expand Up @@ -562,7 +562,7 @@ with exception of boundary flow rate, do not have an effect.
model MassFlowSource_h
"Ideal flow source that produces a prescribed mass flow with prescribed specific enthalpy, mass fraction and trace substances"
import Modelica.Media.Interfaces.Choices.IndependentVariables;
extends Sources.BaseClasses.PartialFlowSource;
extends Sources.BaseClasses.PartialFlowSource(nPorts(min=1));
parameter Boolean use_m_flow_in = false
"Get the mass flow rate from the input connector"
annotation(Evaluate=true, HideResult=true, choices(checkBox=true));
Expand Down

0 comments on commit 4f119bb

Please sign in to comment.