Fredrik Bagge Carlson
Fredrik Bagge Carlson
```julia using ModelingToolkit using ModelingToolkit: t_nounits as t, D_nounits as D using OrdinaryDiffEq using JuliaSimCompiler function inner(; a = 0, name) @parameters a = a @variables x(t) = 0 ODESystem([D(x)...
I've found it hard to use if statements to control how equations involving arrays behave. This pattern is very common in modelica multibody models, but in MTK I frequently have...
I was experimenting with a replacement for the `SampledData` component from MTKstdlib that leverages array variables. The idea is to call ```julia f ~ interpolate(int_type, int_data, int_time, t) ``` where...
The linearization workflow below took ```julia julia> @time batch_ss(model, :u, :y, ops); 0.108045 seconds (731.06 k allocations: 60.930 MiB, 0.00% compilation time) ``` on MTKv8 while on master it takes...
depends on - #2748 - new release of DiffEqCallbacks TODO - bump compat to new release of DiffEqCallbacks
When two clocked partitions execute on the same time instant, their respective order of execution matters. Consider the simple test case in #2744, where an operator that changes clock base...
The model below throws a ```julia julia> @mtkbuild model = MyMultirateModel() 7-element Vector{Any}: ud2(t) ud1(t) Sample(Clock(t, 0.3))(y(t)) yd1(t) Sample(ModelingToolkit.InferredDiscrete())(r(t)) Sample(Clock(t, 1.1))(y(t)) yd2(t) ERROR: ClockInferenceException: Clocks are not consistent in connected...