NeuralPDE.jl icon indicating copy to clipboard operation
NeuralPDE.jl copied to clipboard

Add more interfaces to the result of a PINN

Open killah-t-cell opened this issue 3 years ago • 5 comments

Say I defined and solved a PDE with NeuralPDE and I have the result. I want to do things with that result beyond plotting it in a space. It would be great to have an interface that would let me access the solution of each variable in space.

Sort of like DiffEq.jl has sol.t[8] interface, it would be awesome if I could do res.y[3] to access the values of my solution.

killah-t-cell avatar Jul 29 '21 11:07 killah-t-cell

Only it is a continuous solution, not discrete, sort of like res.y(x) where x in domain_x

KirillZubov avatar Jul 29 '21 12:07 KirillZubov

but yeah, I agree, it will be cool to have some solution wrapper that can make base manipulation to a solution. something like:

sol.y(0.1)
sol.approx(dx)
plot(sol)
sol.res

KirillZubov avatar Jul 29 '21 12:07 KirillZubov

Good point. Exactly. It would also make 3D + time plotting easier.

killah-t-cell avatar Jul 29 '21 12:07 killah-t-cell

And I'm not sure this is the right level to be thinking about the solution. I think there needs to be a common interface around all consumers of the PDESystem interface for how to then represent and plot the PDE results. That said, since the results take many different forms, that's pretty hard.

ChrisRackauckas avatar Jul 31 '21 10:07 ChrisRackauckas

https://github.com/SciML/SciMLBase.jl/issues/112 created an issue in SciML Base and paraphrased you.

killah-t-cell avatar Oct 22 '21 05:10 killah-t-cell