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
* update docs, filenames, and README
* cleanup Project.toml for testing. Should make things faster
* Apply suggestions from code review
Co-authored-by: Patrick Ersing <[email protected]>
---------
Co-authored-by: Patrick Ersing <[email protected]>
**TrixiBottomTopography.jl** is a supplementary package to the numerical solvers [Trixi.jl](https://github.com/trixi-framework/Trixi.jl) and[TrixiShallowWater.jl](https://github.com/trixi-framework/TrixiShallowWater.jl), which enables use of real world geographical data for the bottom topography function of the shallow water equations.
9
+
**TrixiBottomTopography.jl** is a supplementary package to the numerical solver[TrixiShallowWater.jl](https://github.com/trixi-framework/TrixiShallowWater.jl), which enables use of real world geographical data for the bottom topography function of the shallow water equations.
10
10
11
11
The shallow water equations in one dimension
12
12
```math
@@ -59,17 +59,18 @@ be installed in addition to TrixiBottomTopography
59
59
julia>using Pkg; Pkg.add("GLMakie")
60
60
```
61
61
62
-
To use TrixiBottomTopography.jl together with the numerical solver framework [Trixi.jl](https://github.com/trixi-framework/Trixi.jl),
63
-
you need both Trixi.jl and a relevant time integration sub-package of
62
+
To use TrixiBottomTopography.jl together with the numerical solver framework [TrixiShallowWater.jl](https://github.com/trixi-framework/TrixiShallowWater.jl),
63
+
you additionally need both [Trixi.jl](https://github.com/trixi-framework/Trixi.jl)
TrixiBottomTopography.jl can also be used together with
71
-
[TrixiShallowWater.jl](https://github.com/trixi-framework/TrixiShallowWater.jl), a solver suite specifically designed for shallow water flow applications.
72
-
An example that combines TrixiBottomTopography.jl with wet/dry transitions and
71
+
Two examples that combine TrixiBottomTopography.jl together with TrixiShallowWater.jl
72
+
are available in the `examples` folder.
73
+
An additional example that combines TrixiBottomTopography.jl with wet/dry transitions and
73
74
shock capturing to model a tsunami runup is available as a
In this section, a one dimensional example is presented which uses the functionalities of
19
-
TrixiBottomTopography.jl with [Trixi.jl](https://github.com/trixi-framework/Trixi.jl)
20
+
TrixiBottomTopography.jl with [TrixiShallowWater.jl](https://github.com/trixi-framework/TrixiShallowWater.jl)
20
21
to simulate a dam break problem.
21
22
22
-
The underlying example file can be found [here](https://github.com/trixi-framework/TrixiBottomTopography.jl/blob/main/examples/trixi_dam_break_1D.jl).
23
+
The underlying example file can be found [here](https://github.com/trixi-framework/TrixiBottomTopography.jl/blob/main/examples/trixishallowwater_dam_break_1D.jl).
23
24
24
25
First, all the necessary packages must be included at the beginning of the file.
Now that the B-spline interpolation function is determined, the one dimensional shallow water equations implemented in Trixi.jl can be defined by calling:
63
+
Now that the B-spline interpolation function is determined, the one dimensional shallow water equations implemented in TrixiShallowWater.jl can be defined by calling:
62
64
63
65
```@example trixi1d
64
66
# Defining one dimensional shallow water equations
as well as the [TrixiShallowWater documentation](https://trixi-framework.github.io/TrixiShallowWater.jl/stable/).
109
112
110
113
The following code snippet sets up the discontinuous Galerkin spectral element method (DGSEM).
111
114
In this solver type, we can specify which flux functions for the surface and volume fluxes
@@ -223,7 +226,7 @@ nothing #hide
223
226
224
227
## Two dimensional dam break
225
228
226
-
The underlying example file can be found [here](https://github.com/trixi-framework/TrixiBottomTopography.jl/blob/main/examples/trixi_dam_break_2D.jl).
229
+
The underlying example file can be found [here](https://github.com/trixi-framework/TrixiBottomTopography.jl/blob/main/examples/trixishallowwater_dam_break_2D.jl).
227
230
228
231
The two dimensional example is similar to the one dimensional case.
Then the two dimensional shallow water equations are defined, where the gravitational constant has been chosen to be `3.0` and the initial water height `55.0`. Afterwards, the initial condition is defined. Similar to the one dimensional case, in the center of the domain, a circular part with a diameter of `100.0` is chosen where the initial water height is chosen to be `10.0` units higher.
256
+
Then the two dimensional shallow water equations are defined, where the gravitational acceleration
257
+
has been chosen to be `9.81` and the initial water height `55.0`.
258
+
Afterwards, the initial condition is defined. Similar to the one dimensional case,
259
+
in the center of the domain, a circular part with a diameter of `100.0` is chosen
260
+
where the initial water height is chosen to be `10.0` units higher.
0 commit comments