CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

A solver to simulate a channel water flow with Saint-Venant equation

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By huahua

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 7, 2020, 12:32
Wink A solver to simulate a channel water flow with Saint-Venant equation
  #1
New Member
 
Join Date: Nov 2018
Posts: 2
Rep Power: 0
huahua is on a distinguished road
Hi everyone

I need to simulate a channel water flow in an inclined slope. Saint-Venant equations are mostly used to model surface flow. So I programmed a solver with Saint-Venant equation and Manning's equation.

The continuity equation was:
\frac{h}{t}+\frac{\partial u}{\partial x}+\frac{\partial v}{\partial y}+\frac{\partial w}{\partial y}=Qrain

The Manning–Strickler formula is used for relating velocity to friction slopes
u=\frac{h^{2/3}}{n_{man}} \sqrt{S_{x}}
v=\frac{h^{2/3}}{n_{man}} \sqrt{S_{y}}
w=\frac{h^{2/3}}{n_{man}} \sqrt{S_{z}}

Test case:
Rainfall continues for 30 min over a 183 m long parking lot (of Manning's
roughness 0.025) at an intensity of 1.4E-5 m/s, and then no rainfall for 30 min. The slope of the parking lot is 0.0016, just like the figure 1 shows.

The boundary of h(water depth) and U (velocity), are all set for zeroGradient.
I calculate the outflow rate at the end of the parking lot. Simulated water depth and outflow rate are increased for the first 30 min and then no change for the next 30 min, just like figure 2 shows.

However, compared with the analytical solution and other software's results, outflow rate are first increased and then reached steady status for the first 30 min rainfall time and then decreased for the next 30 min no rainfall time, just like figure 3 shows.

What could I do to change to adjust my results? the boundary condition for outflow? Or I should add the slope's elevation to the governing equation? Or the solver?

Can anyone please give me any advice?

Thank you very much for your attention!
Attached Images
File Type: png Domain.PNG (24.1 KB, 25 views)
File Type: png Water depth.PNG (41.8 KB, 24 views)
File Type: png Analytical.PNG (27.3 KB, 20 views)
saumavadey likes this.
huahua is offline   Reply With Quote

Old   August 16, 2021, 13:39
Default
  #2
New Member
 
Saumava Dey
Join Date: Sep 2020
Posts: 29
Rep Power: 6
saumavadey is on a distinguished road
Hello!

I am trying to develop a solver similar to yours for simulating overland and channel flow. I am having difficulty in developing the critical depth boundary condition at the channel outlet.

Have you been able to solve your problem?

I need tips for solving the issue.
saumavadey is offline   Reply With Quote

Old   April 5, 2022, 11:37
Default A few solutions
  #3
Member
 
Bas Nieuwboer
Join Date: Mar 2013
Posts: 34
Rep Power: 13
bjnieuwboer is on a distinguished road
Hi All,


I also used the saint-vernant equations in openfoam. I found 3 nice project which helped me out:


- avalanche, which solves the equations in the coordinate along the slope and adds a centrifugal force for when the slope changes (https://develop.openfoam.com/Community/avalanche). Note the wrong implementation of the gravity in the shear stress formulations. It should only include the part normal to the bed.

- shallowFoam, which is only suitable for low slope angles. It does include depth averaged turbulence, which the previous one lacked (https://github.com/mintgen/shallowFoam). Described in his dissertation: Mintgen, F.: Coupling of Shallow and Non-Shallow Flow Solvers - An Open Source Framework. 2018. PhD dissertation. Technical University of Munich.


- Paper by Y Ni, Z Cao, Q Liu called: "mathematical modeling of shallow water on steep slopes" (https://scholar.google.com/scholar?q...n+steep+slopes)
bjnieuwboer is offline   Reply With Quote

Reply

Tags
channel water flow


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Issues on the simulation of high-speed compressible flow within turbomachinery dowlee OpenFOAM Running, Solving & CFD 11 August 6, 2021 07:40
Will the results of steady state solver and transient solver be same? carye OpenFOAM Running, Solving & CFD 9 December 28, 2019 06:21
Open Channel Flow ElanMorin FLUENT 4 February 25, 2015 17:26
Using k-omega SST to simulate simple channel flow MaLa OpenFOAM Running, Solving & CFD 15 June 19, 2014 05:48
error message cuteapathy CFX 14 March 20, 2012 07:45


All times are GMT -4. The time now is 17:13.