How to use fourier gradient method for fourth order derivative?

In PINO example, the following line of code is used to solve first and second order derivative
f_du, f_ddu = fourier_derivatives(u, [2.0, 2.0])

What changes should I make to solve fourth order derivative?

Hi @gaijinliugangmei

I would not recommend using the derivative method described in the PINO paper (described as the “exact” method in the Darcy example) for anything above second order due to the computational cost. It is very expensive and not scalable.

For higher-order I would suggest trying a finite difference approach or the fourier derivative approach which will be very cheap to compute. Finite difference will probably be the easiest to implement quickly. From our independent study in our Darcy problem, all achieved about the same convergence.