Understanding how to use adaptive solver when dt is in the equations

dbox
Fri, 26 Jul 2024 15:40:03 +0000
General Usage

Hi,
I’m trying to solve a system of equations where some of the terms have explicit dependence on dt.
The way round this I am using is passing dt as a parameter:

params = Dict(:dt => dt)
params = NamedTuple(params)

bvp = BVProblem(f!, bc!, init, (0,1), params)
sol = solve(bvp, MIRK4(), dt=dt, adaptive=false)

How can I make use of adaptive solvers here? I don’t entirely understand the behind-the-scenes of this so may have an error of understanding! Is it possible at all?

3 posts - 3 participants