Skip to content

routine to generate balanced initial fields for SWE - #759

Open
jshipton wants to merge 2 commits into
mainfrom
balanced_sw_init
Open

routine to generate balanced initial fields for SWE#759
jshipton wants to merge 2 commits into
mainfrom
balanced_sw_init

Conversation

@jshipton

@jshipton jshipton commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Routine to initialise shallow water flows from a given vorticity field such that the initial flow is non divergent and has div(u_t)=0. The steps are:

  1. Compute the streamfunction from the vorticity.
  2. Compute the velocity from the streamfunction.
  3. Solve a mixed Poisson equation for (v, depth) where v=u_t and the right hand side comes from the vector invariant form of the velocity equation and setting div(v)=0.
  4. Adjust the depth to have the correct mean.

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.

1 participant