Assume I have obtained an InterpolatingFunction
, say, as the result of solving of a differential equation, say, this one:
sol = First[
NDSolve[{D[u[t, x, y],
t] == 0.075 (D[u[t, x, y], x, x] + D[u[t, x, y], y, y]) -
u[t, x, y] (2 D[u[t, x, y], x] - D[u[t, x, y], y]),
u[0, x, y] == Exp[-(x^2 + y^2)], u[t, -4, y] == u[t, 4, y],
u[t, x, -4] == u[t, x, 4]}, u, {t, 0, 2}, {x, -4, 4}, {y, -4, 4}]]
(it is simply an example taken from a tutorial, just to have something to discuss).
I would like to store this function in the notebook, such that I can get this interpolating function upon reopening of the notebook without solving this equation once more.
Indeed, a real-world equation may be much more complex and may require much more time, than this one. A further work with the solution without resolving the equation would be of advantage.
Any ideas?
DumpSave
the symbol,Get
where needed? $\endgroup$