jax-cfd
jax-cfd copied to clipboard
Fixed Taylor Green decay coefficient and added an example
The scale for the Taylor Green example should be $\exp(-(k_x^2 +k_y^2) \nu t )$, otherwise the factor coming out from $\partial_t \mathbf{u}$ cannot be canceled with $\nu\Delta \mathbf{u}$. An example notebook computing the error with analytical solution is added as well.
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
View this failed invocation of the CLA check for more information.
For the most up to date status, view the checks section at the bottom of the pull request.
@shoyer