NeuralOperators.jl
NeuralOperators.jl copied to clipboard
Benchmarks
- [ ] Solve Burgers' equation by finite element method FEniCS.jl
- [ ] Solve Burgers' equation by Neural Fourier Operators
For the second task, please refer to the example. The dataset for the example is exactly the same with the one that @zongyi-li used in his repo.
Should this be documented? Or just give an example code or benchmark report?
Let's see what we get first.
FEniCS.jl seems to be not maintained for a long time. I cannot even install the package.
Try this instead… https://github.com/quinnj/There.jl
Well, I meant this: https://github.com/Ferrite-FEM/Ferrite.jl
I built a new environment for FEniCS.jl and it works! Too many deps are not up-to-date.
Maybe I need to discuss with you directly.
Does solving a finite element method need a analytic solution?
That's OK, I'll take care of the whole task.
If there is anything I can help, just let me know.
I did some search. I found that Burgers' equation need to rewrite into the weak form to code it and you may want to take a look at this. There are three common types of boundary conditions for Burgers' equation: Dirichlet, Neumann and Robin’s. The example that FNO use is Dirichlet.
As for coding the weak form, you can reference the Poisson equation tutorial here.
For installation of FEniCS.jl, I create a conda environment following the scripts here and direct PyCall.jl to the python path of the conda environment by scripts. It also need a new project environment for Julia, otherwise many packages will conflict with FEniCS.jl.
Maybe we can reference this.
Keep going, we will have better solution.
I am late to the discussion, but it would be nice to solve the time dependent version of the Burgers equation as well, in addition to the stationary one they solve in the paper. What do you think?