Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default value for from_dp switch in PartialGenericPipeFlow (Modelica.Fluid) #3546

Open
R-M-F opened this issue May 4, 2020 · 0 comments
Open
Assignees
Labels
L: Fluid Issue addresses Modelica.Fluid (excl. Dissipation)

Comments

@R-M-F
Copy link

R-M-F commented May 4, 2020

The default value for the switch from_dp in PartialGenericPipeFlow, which determines calculation direction for pressure drop, or respectively mass flow calculation, is
from_dp = momentumDynamics >= Types.Dynamics.SteadyStateInitial
In case of
momentumDynamics == Types.Dynamics.SteadyStateInitial
the calculation direction m_flow = f(dp) is chosen, although in all other cases with dynamic momentum balance the direction dp = f(m_flow) is used. This causes additional nonlinear systems (simulation and initialization) as it can be observed in the tester Modelica.Fluid.Examples.BranchingDynamicPipes.
These nonlinear systems in the tester disappear and simulation speed increases if from_dp = False is set manually.
By modifying the default value
from_dp = momentumDynamics > Types.Dynamics.SteadyStateInitial
the calculation direction would be consistent with the other cases with dynamic momentum balance and the more efficient calculation setup is activated without any changes by the user.

@beutlich beutlich added the L: Fluid Issue addresses Modelica.Fluid (excl. Dissipation) label May 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L: Fluid Issue addresses Modelica.Fluid (excl. Dissipation)
Projects
None yet
Development

No branches or pull requests

3 participants