Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

From the tutorial

Using MethodOfLines.jl (https://github.com/SciML/MethodOfLines.jl/) to symbolically define the PDE system and use the finite difference method (FDM) to solve the following PDE:

∂u∂t=∂2u∂x2+∂2u∂y2\frac{\partial u}{\partial t} = \frac{\partial^2 u}{\partial x^2} + \frac{\partial^2 u}{\partial y^2}

Setup variables and differential operators

Build problem: 98.661403 seconds (137.83 M allocations: 7.288 GiB, 2.23% gc time, 99.28% compilation time: 30% of which was recompilation)
Solve problem: 8.685917 seconds (10.72 M allocations: 546.803 MiB, 1.02% gc time, 98.34% compilation time: 1% of which was recompilation)
retcode: Stalled Interpolation: Dict{Symbolics.Num, Interpolations.GriddedInterpolation{Float64, 2, Matrix{Float64}, Interpolations.Gridded{Interpolations.Linear{Interpolations.Throw{Interpolations.OnGrid}}}, Tuple{Vector{Float64}, Vector{Float64}}}} ivs: 2-element Vector{SymbolicUtils.BasicSymbolicImpl.var"typeof(BasicSymbolicImpl)"{SymbolicUtils.SymReal}}: x ydomain:(-0.05:0.1:1.05, -0.05:0.1:1.05) u: Dict{Symbolics.Num, Matrix{Float64}} with 1 entry: u(x, y) => [0.0 0.0 … 0.0 0.0; 0.0 0.00817746 … 0.0659091 0.05; … ; 0.0 0.065…

Extract data

Plot{Plots.GRBackend() n=1}

This notebook was generated using Literate.jl.