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

Fix geostrophic balance for open box #13

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

w3168
Copy link
Collaborator

@w3168 w3168 commented Jun 2, 2024

This fixes issue #12 by not imposing zero velocity on the boundary. The flow spins up to a steady geostrophic state as I initially expected.

02 06 24_checkbcsfix_geostrophicspinup

The velocity components min/max at 10 days are
[-0.010000631499020347, -0.009999197635247136], [-6.696454717473091e-7, 5.16239883303038e-7], [-5.489538266305904e-9, 5.105960664779745e-9]

This fixes issue #12 by not imposing zero velocity on the boundary.
The flow spins up to a steady geostrophic state as I initially expected.
@w3168 w3168 linked an issue Jun 2, 2024 that may be closed by this pull request
@w3168 w3168 changed the title Fix geostrophic balance for open box #12 Fix geostrophic balance for open box Jun 2, 2024
w3168 added 2 commits June 3, 2024 16:17
After chatting with Stephan if specifying a bc id don't add the
boundary integral twice on outflows!

There is a slight subtletly with the previous else option fo specifying
uin. It only set a u value of zero in the momentum advection term. It doesnt
set u in the continuity equation. This might be useful as a stabilising
term (for instance in the overturning.py script with the open top) but
it is not obvious that it makes physical sense because if you specify a
stress bc then the velocity can be nonzero
Probably linked to firedrakeproject/firedrake#3288
where sparsity pattern has changed
Don't repeat all the same code from the runscript just to change
one bc.
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.

Spinning up to geostrophic balance with fully open boundary conditions
1 participant