You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+29-3Lines changed: 29 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ Please feel free to raise an [issue](https://github.com/milankl/ShallowWaters.jl
17
17
18
18
Requires: Julia 1.2
19
19
20
-
###How to use
20
+
## How to use
21
21
22
22
`RunModel` initialises the model, preallocates memory and starts the time integration. You find the options and default parameters in `src/DefaultParameters.jl` (or by typing `?Parameter`).
23
23
```julia
@@ -50,7 +50,33 @@ julia> Prog = RunModel(P);
50
50
```
51
51
The number formats can be different (aka mixed-precision) for different parts of the model. `Tprog` is the number type for the prognostic variables, `Tcomm` is used for communication of boundary values.
52
52
53
-
### (Some) Features
53
+
## Double-gyre example
54
+
55
+
You can for example run a double gyre simulation like this
56
+
```julia
57
+
julia>using ShallowWaters
58
+
julia> P =RunModel(Ndays=100,nx=100,L_ratio=1,bc="nonperiodic",wind_forcing_x="double_gyre",topography="seamount");
59
+
Starting ShallowWaters on Sat, 15 Aug 202011:59:21 without output.
`P.u` and `P.v` are the u,v velocity components on the Arakawa C-grid. To add them, we need to interpolate them with `Ix,Iy` (which are exported by `ShallowWaters.jl` too), then chopping off the edges to get two arrays of the same size.
0 commit comments