File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change
1
+ # StochasticStir.jl
2
+
3
+ Repository for the implementation of the stochastic stirring forcing and jet drag following
4
+ [ Barnes and Hartmann, 2011] ( https://journals.ametsoc.org/view/journals/atsc/68/12/jas-d-11-039.1.xml?tab_body=fulltext-display#bib14 )
5
+ and [ Vallis et al. 2004] ( https://journals.ametsoc.org/view/journals/atsc/61/3/1520-0469_2004_061_0264_amasdm_2.0.co_2.xml ) .
6
+
7
+ See also https://github.com/SpeedyWeather/SpeedyWeather.jl/issues/394
8
+
9
+ To be used like
10
+
11
+ ``` julia
12
+ using SpeedyWeather
13
+ using StochasticStirr
14
+
15
+ # model components
16
+ spectral_grid = SpectralGrid (trunc= 42 ,nlev= 1 )
17
+ forcing = StochasticStirring (spectral_grid,latitude= 45 )
18
+ drag = JetDrag (spectral,time_scale= Day (6 ))
19
+ initial_conditions = StartFromRest ()
20
+
21
+ # construct the model and initialize
22
+ model = BarotropicModel (;spectral_grid,initial_conditions,forcing,drag)
23
+ simulation = initialize! (model)
24
+
25
+ # now run
26
+ run! (simulation)
27
+ ```
You can’t perform that action at this time.
0 commit comments