TrixiBottomTopography.jl
is a supplementary package to the numerical solver Trixi.jl, which enables to use real world geographical data for the bottom topography function of the shallow water equations.
The shallow water equations in one dimension
and two dimensions
require a (piecewise) differentiable function
Geographical data is almost always given as scattered data points on a coordinate system with the corresponding elevation. So to incorporate geographical data into the shallow water equations, we need to define a function that remodels the topography from the data.
TrixiBottomTopography.jl
does this by B-spline interpolation of the underlying data.
This package contains the following three main functionalities:
- Converting geographical data given in form of
.xyz
files from the DGM data set provided by Geobasis NRW to make it readable forTrixiBottomTopography.jl
- Setting up a B-spline interpolation structure in one and two dimensions which contains all the relevant information to define a B-spline interpolation function with additional specifications
- Using the B-spline structure to set up a B-spline interpolation function
A detailed description of the functionalities can be found in the documentation to this package.
If you have not yet installed Julia, please follow the instructions for your operating system. TrixiBottomTopography works with Julia v1.7.
As TrixiBottomTopography is not a registered Julia package, you have to download it locally
git clone https://github.com/trixi-framework/TrixiBottomTopography.jl.git
and run it from within the cloned directory
julia --project=@.
to make use of the implemented functionalities.
To see a first example of TrixiBottomTopography.jl
a default example has been implemented. First, load the package
julia> using TrixiBottomTopography
Then call the T
rixiB
ottomT
opograpy default example
julia> TBT_default_example()
If the implementation was successful, the following window appears:
Further examples can be found in the examples folder of this repository.
TrixiBottomTopography.jl
was developed by Maximilian Dominique Bertrand (University of Cologne, Germany) with the help of Andrew Winters (Linköping University, Sweden) and Michael Schlottke-Lakemper (RWTH Aachen University, Germany).
TrixiBottomTopography.jl
is published under the MIT license (see License). We
are pleased to accept contributions from everyone, preferably in the form of
a PR.