-
Notifications
You must be signed in to change notification settings - Fork 32
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
Separate 2D Navier-Stokes stochastic forcing & budgets examples #108
Conversation
This PR closes #90. |
@@ -53,26 +53,27 @@ forcing_wavenumber = 14.0 # the central forcing wavenumber for a spectrum tha | |||
forcing_bandwidth = 1.5 # the width of the forcing spectrum | |||
ε = 0.001 # energy input rate by the forcing | |||
|
|||
gr = TwoDGrid(nx, Lx) | |||
gr = TwoDGrid(n, L) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this necessary? I noticed the betadecay example doesn't explicitly define the grid, so is there a reason the betaforced example does?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because wave numbers are needed to construct the forcing spectrum below. I know it’s not neat but I can’t think of a better way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I see. The decay example pulls the grid from the initialized problem, but the forced example needs the grid in order to initialize the problem with that spectrum. Thanks!
separates 2D Navier-Stokes forced-dissipative example into
(i) an example that plots a movie of the vorticity field + evolution of energy/entstrophy time series
(ii) an example that plots the terms of the energy and enstrophy budgets
adds some comments/clarifications in examples
@BrodiePearson could you have a quick look at this PR?
As soon as the Documentation is built, you should be able to see a preview of how the docs should look like after merging at
https://fourierflows.github.io/GeophysicalFlowsDocumentation/previews/PR108/