Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvements in TwoDNavierStokes #174

Merged
merged 11 commits into from
Dec 30, 2020
Merged

Conversation

navidcy
Copy link
Member

@navidcy navidcy commented Dec 25, 2020

This PR:

  • uses unicode symbols for vorticity and stream-function
  • enriches the docstrings and uses @docs refs in the Docs/TwoDNavierStokes module page
  • streamlines hyper/hypo viscosity sign convection (code + docs); closes Convention for the hypoviscosity order: should it be positive or negative #115
  • removes boilerplate diagnostic, e.g., combines energy_dissipation and energy_drag and also the corresponding diagnostics for enstrophy

This PR introduces breaking changed and should come with the minor release.

@navidcy navidcy changed the title Enhance TwoDNavierStokes [WIP] Improvements in TwoDNavierStokes Dec 25, 2020
@navidcy
Copy link
Member Author

navidcy commented Dec 26, 2020

@glwagner, if we somehow combine the drag and dissipation diagnostics (as discussed in #115) then this PR is ready for review. Any thoughts?

@navidcy navidcy changed the title [WIP] Improvements in TwoDNavierStokes Improvements in TwoDNavierStokes Dec 28, 2020
@navidcy
Copy link
Member Author

navidcy commented Dec 28, 2020

Ready for review! 🎉

@navidcy
Copy link
Member Author

navidcy commented Dec 28, 2020

@glwagner, if we somehow combine the drag and dissipation diagnostics (as discussed in #115) then this PR is ready for review. Any thoughts?

28a4a76 dealt with this ;)

end

function test_twodnavierstokes_energyenstrophy(dev::Device=CPU())
nx, Lx = 128, 2π
ny, Ly = 128, 3π
ny, Ly = 126, 3π
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had not noticed there was a test using an anisotropic domain and grid spacing, particularly since all of the examples use nx=ny and dx=dy. Are anisotropic grids supported across all the modules?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, your compression of the dissipation function looks good to me!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had not noticed there was a test using an anisotropic domain and grid spacing, particularly since all of the examples use nx=ny and dx=dy. Are anisotropic grids supported across all the modules?

Yes!

@navidcy navidcy merged commit 66969ed into master Dec 30, 2020
@navidcy navidcy deleted the ncc/better-twodnavierstokes branch December 30, 2020 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Convention for the hypoviscosity order: should it be positive or negative
3 participants