Gradients and divergences in fenicsx

Additional to @dokken’s comment, this is an area of active research and you should be careful about how you measure the divergence of the velocity approximation.

@jpdean has a small collection of papers here

Consider the posts regarding solenoidal approximations:

Somewhat related regarding pressure robust approximations and their impact on the divergence free constraint of the approximation

And of course I’ll advertise mine and coworkers’ works and results with divergence free fields:
https://agupubs.onlinelibrary.wiley.com/doi/10.1029/2020GC009349
https://agupubs.onlinelibrary.wiley.com/doi/full/10.1029/2021GC009922

2 Likes