-
-
Notifications
You must be signed in to change notification settings - Fork 232
Description
Suppose that I want to solve the heat equation
This PDE in
using ModelingToolkit
ivs = @independent_variables t k
vars = @variables u(..)
Dt = Differential(t)
eqs = [Dt(u(t, k)) ~ -k^2 * u(t, k)]
ics = [u(0, k) ~ exp(-k^2)] # equivalent to a Gaussian in position space
domains = [t ∈ (0, Inf), k ∈ (-Inf, +Inf)]
@named heat = PDESystem(eqs, ics, domains, ivs, vars)
Then I want to discretize
it to ODE(s). For example to 1 ODE where
@ChrisRackauckas and discussion in #3737, #3738 and #3745 for context.