Skip to content

Commit 807f0d8

Browse files
authored
made reame more verbose and added info to docstring
1 parent 5fe37f4 commit 807f0d8

File tree

2 files changed

+29
-3
lines changed

2 files changed

+29
-3
lines changed

data/README.md

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1-
This directory collects some experimental data used in common benchmark problems in dispersive wave modeling. Each set of data has a corresponding function, which returns the data as Julia objects.
1+
# Experimental Data
22

3-
# Dingemans.csv
3+
This directory contains experimental datasets used in common benchmark problems in dispersive wave modeling. Each dataset has a corresponding function that returns the data as Julia objects for easy integration with DispersiveShallowWater.jl simulations.
44

5+
## Available Datasets
6+
7+
### Dingemans Experiment Data (`Dingemans.csv`)
8+
9+
The Dingemans experiment is a classic benchmark for validating dispersive shallow water models. It features waves propagating over a trapezoidal bathymetry profile, providing experimental data for wave transformation over varying bottom topography.
510

611
The data are taken from the experiments of Maarten Dingemans:
712

@@ -25,4 +30,22 @@ The data are taken from the experiments of Maarten Dingemans:
2530
}
2631
```
2732

28-
The positions x1 to x6 are (3.04, 9.44, 20.04, 26.04, 30.44, 37.04) respectively. See `data_dingemans`.
33+
34+
#### Data Format
35+
36+
The CSV file contains time series data with the first column being time values and subsequent columns representing wave height measurements at different spatial locations (six wave gauges).
37+
38+
#### Usage
39+
40+
In order to access the data, execute:
41+
42+
```julia
43+
t_values, x_values, experimental_data = data_dingemans()
44+
```
45+
46+
The function returns:
47+
- `t_values`: Time values at which measurements were recorded
48+
- `x_values`: Spatial coordinates of the six wave gauges (3.04, 9.44, 20.04, 26.04, 30.44, 37.04)
49+
- `experimental_data`: Matrix of wave heights at each gauge location (columns) over time (rows)
50+
51+
For more details about this experiment and its use in validation, see the [Dingemans Experiment](https://numericalmathematics.github.io/DispersiveShallowWater.jl/stable/dingemans/) section in the documentation.

src/experimental_data.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ and experimental data, which is a matrix of wave heights at each gauge location
1010
- Dingemans (1997):
1111
Water Wave Propagation Over Uneven Bottoms (In 2 Parts).
1212
[DOI: 10.1142/1241](https://doi.org/10.1142/1241)
13+
14+
See also: [Dingemans Experiment](https://numericalmathemat.ics.github.io/DispersiveShallowWater.jl/stable/dingemans/)
15+
in the documentation for more details about this experiment and its use in validation.
1316
"""
1417
function data_dingemans()
1518
path_dingemans = joinpath(data_dir(), "Dingemans.csv")

0 commit comments

Comments
 (0)