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

Online diagnostics for vertical velocity #11

Closed
roxyboy opened this issue Feb 18, 2021 · 1 comment
Closed

Online diagnostics for vertical velocity #11

roxyboy opened this issue Feb 18, 2021 · 1 comment

Comments

@roxyboy
Copy link

roxyboy commented Feb 18, 2021

For a layered system, we can get the vertical velocity from the governing equation of layer thickness, which is then related to the stream function. I think it may be nice if we could output this as an on-line diagnostic.

Screenshot 2021-02-18 at 12 12 31

@roxyboy roxyboy changed the title Online diagnosis of vertical velocity Online diagnostics for vertical velocity Feb 18, 2021
@bderembl
Copy link
Owner

bderembl commented Mar 3, 2021

now done offline in https://github.com/bderembl/qgutils

for future reference, it is also possible to diagnose w from the buoyancy tendency as shown below with p0 and p1 two outputs that are one time step apart (with a very small dtout)

b0 = qg.p2b(p0,dh,1/Ro)
b1 = qg.p2b(p1,dh,1/Ro)

dbdt = (b1-b0)/dtout

p0_b = qg.interp_on_b(p0,dh)
ugradb = qg.jacobian(p0_b,b0, Delta)

DbDt = dbdt + ugradb

w_diag = -DbDt*Fr[:-1,..]**2

@bderembl bderembl closed this as completed Mar 3, 2021
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

No branches or pull requests

2 participants