You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I use h(t), [connect = Stream], h(t) is ignored during the connect() --> equations process
Expected behavior
The stream variable should not be ignored.
Minimal Reproducible Example 👇
Without MRE, we would only be able to help you to a limited extent, and attention to the issue would be limited. to know more about MRE refer to wikipedia and stackoverflow.
using ModelingToolkit, OrdinaryDiffEq
using ModelingToolkit: t_nounits as t
Not using connect=Stream produces 6 equations as expected:
Error & Stacktrace ⚠️
1: source₊outlet₊h(t) ~ source₊h_source
2: source₊outlet₊p(t) ~ source₊p_source
3: source₊outlet₊ṁ(t) ~ source₊ṁ_source
4: source₊outlet₊h(t) ~ sink₊inlet₊h(t)
5: 0 ~ source₊outlet₊ṁ(t) + sink₊inlet₊ṁ(t)
6: source₊outlet₊p(t) ~ sink₊inlet₊p(t)
┌ Warning: outlet contains 1 flow variables, yet 2 regular (non-flow, non-stream, non-input, non-output) variables. This could lead to imbalanced model that are difficult to debug. Consider marking some of the regular variables as input/output variables.
└ @ ModelingToolkit C:\Users\matth.julia\packages\ModelingToolkit\aau6A\src\systems\connectors.jl:54
┌ Warning: inlet contains 1 flow variables, yet 2 regular (non-flow, non-stream, non-input, non-output) variables. This could lead to imbalanced model that are difficult to debug. Consider marking some of the regular variables as input/output variables.
└ @ ModelingToolkit C:\Users\matth.julia\packages\ModelingToolkit\aau6A\src\systems\connectors.jl:54
Using connect=Stream does not produce the 6th equation:
Environment (please complete the following information):
Output of using Pkg; Pkg.status()
Project ThermoFluid v0.1.0
Status `C:\Software projects on GitHub\Julia my own\ThermoFluid\Project.toml`
[6e4b80f9] BenchmarkTools v1.6.0
⌃ [7c7805af] Clapeyron v0.6.10
[e084ae63] CoolProp v0.2.0
⌃ [961ee093] ModelingToolkit v9.72.0
[16a59e39] ModelingToolkitStandardLibrary v2.19.1
⌃ [1dea7af3] OrdinaryDiffEq v6.93.0
⌃ [91a5bcdd] Plots v1.40.12
[fd094767] Suppressor v0.2.8
Info Packages marked with ⌃ have new versions available and may be upgradable.
Output of using Pkg; Pkg.status(; mode = PKGMODE_MANIFEST)
Describe the bug 🐞
If I use
h(t), [connect = Stream]
, h(t) is ignored during the connect() --> equations processExpected behavior
The stream variable should not be ignored.
Minimal Reproducible Example 👇
Without MRE, we would only be able to help you to a limited extent, and attention to the issue would be limited. to know more about MRE refer to wikipedia and stackoverflow.
Not using connect=Stream produces 6 equations as expected:
Error & Stacktrace⚠️
1: source₊outlet₊h(t) ~ source₊h_source
2: source₊outlet₊p(t) ~ source₊p_source
3: source₊outlet₊ṁ(t) ~ source₊ṁ_source
4: source₊outlet₊h(t) ~ sink₊inlet₊h(t)
5: 0 ~ source₊outlet₊ṁ(t) + sink₊inlet₊ṁ(t)
6: source₊outlet₊p(t) ~ sink₊inlet₊p(t)
┌ Warning: outlet contains 1 flow variables, yet 2 regular (non-flow, non-stream, non-input, non-output) variables. This could lead to imbalanced model that are difficult to debug. Consider marking some of the regular variables as input/output variables.
└ @ ModelingToolkit C:\Users\matth.julia\packages\ModelingToolkit\aau6A\src\systems\connectors.jl:54
┌ Warning: inlet contains 1 flow variables, yet 2 regular (non-flow, non-stream, non-input, non-output) variables. This could lead to imbalanced model that are difficult to debug. Consider marking some of the regular variables as input/output variables.
└ @ ModelingToolkit C:\Users\matth.julia\packages\ModelingToolkit\aau6A\src\systems\connectors.jl:54
Using connect=Stream does not produce the 6th equation:
1: source₊outlet₊h(t) ~ source₊h_source
2: source₊outlet₊p(t) ~ source₊p_source
3: source₊outlet₊ṁ(t) ~ source₊ṁ_source
4: 0 ~ source₊outlet₊ṁ(t) + sink₊inlet₊ṁ(t)
5: source₊outlet₊p(t) ~ sink₊inlet₊p(t)
Environment (please complete the following information):
using Pkg; Pkg.status()
using Pkg; Pkg.status(; mode = PKGMODE_MANIFEST)
versioninfo()
The text was updated successfully, but these errors were encountered: