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

Separate 2D Navier-Stokes stochastic forcing & budgets examples #108

Merged
merged 9 commits into from
Sep 13, 2020

Conversation

navidcy
Copy link
Member

@navidcy navidcy commented Sep 11, 2020

  • 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/

@navidcy navidcy changed the title Tweak 2D Navier-Stockes stochastic forcing + budgets example Tweak 2D Navier-Stokes stochastic forcing + budgets example Sep 11, 2020
@navidcy navidcy changed the title Tweak 2D Navier-Stokes stochastic forcing + budgets example [WIP] Separate 2D Navier-Stokes stochastic forcing & budgets examples Sep 11, 2020
@navidcy navidcy changed the title [WIP] Separate 2D Navier-Stokes stochastic forcing & budgets examples Separate 2D Navier-Stokes stochastic forcing & budgets examples Sep 11, 2020
@navidcy
Copy link
Member Author

navidcy commented Sep 11, 2020

This PR closes #90.

@navidcy navidcy linked an issue Sep 11, 2020 that may be closed by this pull request
@@ -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)
Copy link
Collaborator

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?

Copy link
Member Author

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.

Copy link
Collaborator

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!

@navidcy navidcy merged commit 20db7c6 into master Sep 13, 2020
@navidcy navidcy deleted the tweak2DNSstochasticforcingexample branch September 14, 2020 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Animate the TwoDNavierStokes forced-dissipative example
2 participants