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

Forcing and drag for the ShallowWaterModel #376

Merged
merged 4 commits into from
Sep 6, 2023
Merged

Forcing and drag for the ShallowWaterModel #376

merged 4 commits into from
Sep 6, 2023

Conversation

milankl
Copy link
Member

@milankl milankl commented Sep 6, 2023

fixes #151

  1. Adds a forcing term of the form
$$\mathbf{F} = (F_u(\theta),0)$$

which only depends on latitude $\theta$ and mimics a jet stream in mid-latitudes that sits above the shallow water layer.

image

(6h after starting from rest, the perturbations are from orography)

  1. Adds a quadratic drag term of the form
$$\mathbf{D} = -\tfrac{c_D}{H}\vert \mathbf{u} \vert \mathbf{u}$$

with a drag coefficient $c_D$ and the shallow water layer thickness $H$.

@milankl milankl added forcing 🏋️ Forcing of the momentum equations dynamics 〰️ Affects the dynamical core labels Sep 6, 2023
@milankl
Copy link
Member Author

milankl commented Sep 6, 2023

After 5 days

image

After 10 days

image

After 50 days

image

And vorticity after 50 days

image

@milankl
Copy link
Member Author

milankl commented Sep 6, 2023

With $c_D = 10^{-5}$ the wind speeds are with 150m/s regularly somewhat too strong (delibrately testing at low T31 resolution)

image

@milankl
Copy link
Member Author

milankl commented Sep 6, 2023

For $c_D = 2\cdot 10^{-5}$ this decreases to about 125m/s

image

@milankl
Copy link
Member Author

milankl commented Sep 6, 2023

Or similar for a longer forcing time scale (=weaker) forcing, which also makes the northern jet weaker and less stable

image

@milankl
Copy link
Member Author

milankl commented Sep 6, 2023

Last commit makes the forcing weaker by 50% looks good (T85)

image

image

@milankl
Copy link
Member Author

milankl commented Sep 6, 2023

@ningliu-iga with this PR we can use the ShallowWaterModel for very long integrations, the forcing provides an energy input into the system, the drag removes it. Running it for O(years) seems like we're getting a stable climatology with turblence plus a bunch of Rossy waves that travel along the jet streams on both hemispheres. Shown is day 100 to day 200.
We can probably adjust how turbulent vs how wavy it's supposed to be by adjusting forcing/drag/layer thickness somewhat.

out.mp4

@maximilian-gelbrecht I think we talked about a climatology in the ShallowWaterModel before, this PR addresses this.

@milankl
Copy link
Member Author

milankl commented Sep 6, 2023

Run with

spectral_grid = SpectralGrid(trunc=85,nlev=1)
quadratic_drag = SpeedyWeather.QuadraticDrag(spectral_grid,c_D=1e-5)
jet_stream_forcing = SpeedyWeather.JetStreamForcing(spectral_grid)
model = ShallowWaterModel(;spectral_grid,drag=quadratic_drag,forcing=jet_stream_forcing,initial_conditions=StartFromRest())
simulation = initialize!(model)
run!(simulation,n_days=100,output=true)

@milankl milankl merged commit 84bc4eb into main Sep 6, 2023
3 checks passed
@milankl milankl mentioned this pull request Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dynamics 〰️ Affects the dynamical core forcing 🏋️ Forcing of the momentum equations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Forcing and climatology in the shallow water system
1 participant