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
Fix overdetermined initialization in Element1D and ConvectiveElement1D
In MTK v11, the syntax `dT(t) = dT` with a constant value creates an
initial_condition, which adds an initialization equation. For algebraic
variables like `dT` and `Q_flow` that are constrained by equations
(e.g., `dT ~ port_a.T - port_b.T`), this creates an overdetermined
initialization system.
The fix changes from initial conditions to guesses:
- Old: `dT(t) = dT, [guess = 0.0]` (dT arg as initial condition)
- New: `dT(t), [guess = dT_guess]` (dT_guess arg as guess only)
This follows the MTK v11 semantics where algebraic/observed variables
should only have guesses, not initial conditions.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
0 commit comments