Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dumux-repositories
dumux
Commits
b8f91247
Commit
b8f91247
authored
1 year ago
by
Dennis Gläser
Committed by
Mathis Kelm
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
[examples][shallowwater][intro] minor language issues
parent
a83ae7e0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!3664
Cleanup/shallow water example
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/shallowwaterfriction/doc/_intro.md
+19
-19
19 additions, 19 deletions
examples/shallowwaterfriction/doc/_intro.md
with
19 additions
and
19 deletions
examples/shallowwaterfriction/doc/_intro.md
+
19
−
19
View file @
b8f91247
...
...
@@ -26,18 +26,18 @@ The model domain is given by a rough channel with a slope of 0.001.
The domain is 500 meters long and 5 meters wide.
The bottom altitude is 10 m at the inflow and hence 9.5 m at the outflow.
Bottom friction is considered by applying
Manning's law ($
`n`
$ = 0.025).
[
Manning's law
](
#mannings-law
)
(
$`n`$
= 0.025).
### Boundary conditions
At the lateral sides a no-flow boundary condition is applied. Also no friction is
At the lateral sides a no-flow boundary condition is applied. Also
,
no friction is
considered there and therefore a no slip boundary
condition is applied. These are the default boundary condition for the shallow
water model. At the left border a discharge boundary condition
condition is applied. These are the default boundary condition
s
for the shallow
water model. At the left border
,
a discharge boundary condition
is applied as inflow boundary condition with $
`q = -1.0 m^2 s^{-1}`
$.
At the right border a fixed water depth boundary condition
At the right border
,
a fixed water depth boundary condition
is applied for the outflow. Normal flow is assumed, therefore the water
depth at the right border is calculated using the equation
of Gauckler, Manning and Strickler.
of
[
Gauckler, Manning and Strickler
](
#analytical-solution
)
.
### Initial conditions
The initial water depth is set to 1 m, which is slightly higher than the normal flow
...
...
@@ -46,9 +46,9 @@ water level during the simulation until the normal flow condition is reached in
the entire model domain. The initial velocity is set to zero.
## Model description
As mentioned above, this example
s
uses the shallow water equations (SWEs) to solve the problem.
These are a depth
averaged simplification of the Navier-Stokes equations. To calculate the
bottom friction Manning's law is used. An alternative is Nikuradse's law, which is also implemented
As mentioned above, this example uses the shallow water equations (SWEs) to solve the problem.
These are a depth
-
averaged simplification of the Navier-Stokes equations. To calculate the
bottom friction
,
Manning's law is used. An alternative is Nikuradse's law, which is also implemented
in DuMu
<sup>
x
</sup>
.
### Shallow water model
...
...
@@ -60,16 +60,16 @@ The shallow water equations are given as:
\frac{\partial \mathbf{G}}{\partial y} - \mathbf{S_b} - \mathbf{S_f} = 0
```
where $
`\mathbf{U}`
$, $
`\mathbf{F}`
$ and $
`\mathbf{G}`
$ defined as
where $
`\mathbf{U}`
$, $
`\mathbf{F}`
$ and $
`\mathbf{G}`
$
are
defined as
```
math
\mathbf{U} = \begin{bmatrix} h \\ uh \\ vh \end{bmatrix},
\mathbf{F} = \begin{bmatrix} hu \\ hu^2 + \frac{1}{2} gh^2 \\ huv \end{bmatrix},
\mathbf{G} = \begin{bmatrix} hv \\ huv \\ hv^2 + \frac{1}{2} gh^2 \end{bmatrix}
\mathbf{G} = \begin{bmatrix} hv \\ huv \\ hv^2 + \frac{1}{2} gh^2 \end{bmatrix}
,
```
$
`h`
$ the water depth, $
`u`
$
the velocity in x-direction
and $
`v`
$ the velocit
y
in y-direction,
$
`g`
$ is the
constant of gravity
.
$
`h`
$
is
the water depth, $
`u`
$ and $
`v`
$
are
the velocit
ies
in
x- and
y-direction,
respectively,
and
$
`g`
$ is the
gravitational acceleration
.
The source terms for the bed slope $
`\mathbf{S_b}`
$ and friction
$
`\mathbf{S_f}`
$ are given as
...
...
@@ -77,10 +77,10 @@ $`\mathbf{S_f}`$ are given as
```
math
\mathbf{S_b} = \begin{bmatrix} 0 \\ -gh \frac{\partial z}{\partial x}
\\ -gh \frac{\partial z}{\partial y}\end{bmatrix},
\mathbf{S_f} = \begin{bmatrix} 0 \\ghS_{fx} \\ghS_{fy}\end{bmatrix}
.
\mathbf{S_f} = \begin{bmatrix} 0 \\ghS_{fx} \\ghS_{fy}\end{bmatrix}
,
```
with the bed
S
urface $
`z`
$. $
`S_{fx}`
$ and $
`S_{fy}`
$ are the bed shear stess
with the bed
s
urface $
`z`
$. $
`S_{fx}`
$ and $
`S_{fy}`
$ are the bed shear stess
components in x- and y-direction, which are calculated by Manning's law.
### Mannings law
...
...
@@ -100,13 +100,13 @@ Since normal flow conditions are assumed, the analytic solution is calculated us
of Gauckler, Manning and Strickler:
```
math
v_m = n^{-1} R_{hy}^{2/3} I_s^{1/2}
v_m = n^{-1} R_{hy}^{2/3} I_s^{1/2}
,
```
W
here the mean velocity $
`v_m`
$ is given as
w
here the mean velocity $
`v_m`
$ is given as
```
math
v_m = \frac{q}{h}
v_m = \frac{q}{h}
,
```
$
`I_s`
$ is the bed slope and $
`q`
$ the unity inflow discharge.
...
...
@@ -117,7 +117,7 @@ Hence, the water depth $`h`$ can be calculated by
h = \left(\frac{n q}{\sqrt{I_s}} \right)^{3/5}
```
### Discreti
s
ation
### Discreti
z
ation
For this example, a cell-centered finite volume method (cctpfa) is applied to solve the SWEs
in combination with a fully-implicit time discretization. For cases where no sharp fronts or
traveling waves occur it is possible to apply time steps larger than CFL number = 1 to reduce
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment