SemilinearODEProblem(sys, op, tspan) builds a split ODE problem
du/dt = f1(u) + f2(u) from the semiquadratic form of the system
(calculate_semiquadratic_form()): by default the linear part A u is
the stiff part f1 and the quadratic and nonlinear parts form f2, as
ModelingToolkit's SemilinearODEProblem. The problem is an
ODEProblem too (with f = f1 + f2), so every ODE solver applies.
Usage
SemilinearODEFunction(
sys,
stiff_linear = TRUE,
stiff_quadratic = FALSE,
stiff_nonlinear = FALSE,
jac = FALSE,
...
)
SemilinearODEProblem(
sys,
op = list(),
tspan = NULL,
stiff_linear = TRUE,
stiff_quadratic = FALSE,
stiff_nonlinear = FALSE,
jac = FALSE,
...
)Arguments
- sys
A complete ODE
System.- stiff_linear, stiff_quadratic, stiff_nonlinear
Which parts go into the stiff function
f1.- jac
Generate the Jacobian of the full right-hand side.
- ...
Passed to
ODEProblem().- op
Operating point.
- tspan
Time span.