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

Simulation the flow of river by OpenFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 14, 2010, 00:34
Default Simulation the flow of river by OpenFoam
  #1
New Member
 
Wind
Join Date: Nov 2010
Posts: 10
Rep Power: 15
fuji is on a distinguished road
Dear all

I want to simulate the 3D steady state flow in river (about 2km) based on about 1000 field -surveyed point defining the bathymetry.
The boundary inlet is the water level.
Could you help me to do it.

Thank you very much.
Fuji
fuji is offline   Reply With Quote

Old   December 14, 2010, 02:38
Default
  #2
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 21
Bernhard is on a distinguished road
What information do you want to obtain using the simulation?
Bernhard is offline   Reply With Quote

Old   December 14, 2010, 03:29
Default
  #3
Cyp
Senior Member
 
Cyprien
Join Date: Feb 2010
Location: Stanford University
Posts: 299
Rep Power: 18
Cyp is on a distinguished road
There is a Shallow water solver called shallowWaterFoam (you can find it in the incompressible directory). I never try it but I think it is a good start to your problem.

Shallow water equations are the classical way to simulate flow in the case where the horizontal length scale is much greater than the vertical length scale. The shallow water equations are derived from depth-integrating the Navier-Stokes equations. In these equations, the water level is a variable of the system.

Regards,
Cyp
Cyp is offline   Reply With Quote

Old   December 15, 2010, 01:24
Default
  #4
New Member
 
Wind
Join Date: Nov 2010
Posts: 10
Rep Power: 15
fuji is on a distinguished road
Thanks for reply me
Boundary: how do i input the data for it (special temporal variation of water elevation boundary)
In blockmesh file how to input all of blocks

blocks
(
hex (0 1 5 4 16 17 21 20) (50 4 1) simpleGrading (1 1 1)
hex (2 3 7 6 18 19 23 22) (50 4 1) simpleGrading (1 1 1)
hex (4 5 9 8 20 21 25 24) (50 8 1) simpleGrading (1 1 1)
hex (5 6 10 9 21 22 26 25) (20 8 1) simpleGrading (1 1 1)
hex (6 7 11 10 22 23 27 26) (50 8 1) simpleGrading (1 1 1)
hex (8 9 13 12 24 25 29 28) (50 8 1) simpleGrading (1 1 1)
hex (9 10 14 13 25 26 30 29) (20 8 1) simpleGrading (1 1 1)
hex (10 11 15 14 26 27 31 30) (50 8 1) simpleGrading (1 1 1)
);

edges
(
);

patches
(
patch inlet
(
(0 16 20 4)
(4 20 24 8)
)
patch outlet
(
(3 19 23 7)
(7 23 27 11)
)
patch lowerWall
(
(0 1 17 16)
(1 5 21 17)
(5 6 22 21)
(2 6 22 18)
(2 3 19 18)
)
patch atmosphere
(
(12 13 29 28)
(13 14 30 29)
(14 15 31 30)
(8 24 28 12)
(11 27 31 15)
)

because i have 1000 field -surveyed point defining the bathymetry along 2km river.
all pacth

.....
About shallowWaterFoam i think it has not solved my problem because
I want to simulate the 3D steady state flow in river (about 2km) based on about 1000 field -surveyed point defining the bathymetry. and than i will simulate the secdiment transport in the river. So i must use 3D full.

Give me advice please!
Thank you very much.
Best regards

Fuji
fuji is offline   Reply With Quote

Old   December 15, 2010, 02:23
Default
  #5
Member
 
Nico T
Join Date: Aug 2010
Location: Leipzig, Germany
Posts: 39
Rep Power: 15
deniggo is on a distinguished road
Hello Fuji,
I'm working on a same problem, river flow over theoretical as well as measured bedforms. I found a way to create a mesh by using Matlab->Blender->SnappyHexMesh. Maybe it's not the easiest way, but it works and the results a good.
I use Matlab with a stl-file add-on and create stl files for every boundary wall (bedform, inlet, outlet, top, sidewalls). These stl files I merge in Blender and check the face orientation (all should show outside). Afterwards, I use snappyHexMesh to create a mesh.

I'm not sure if OF can handle sediment transport?!

Btw, which method did you use to measure 1000 survey points?

Nico
deniggo is offline   Reply With Quote

Old   December 19, 2010, 22:43
Default
  #6
New Member
 
Wind
Join Date: Nov 2010
Posts: 10
Rep Power: 15
fuji is on a distinguished road
Thank you very much Nico


it is an excellent idea but I do not know how to use matlap.
Is there other way to enter the input data (e.g. temporal variation of water elevation boundary) ?

If I now study matlap, how long can I use matlap?

please help me!

Thank you very much
Best regards
Fuji
fuji is offline   Reply With Quote

Old   December 20, 2010, 03:17
Default
  #7
Member
 
Nico T
Join Date: Aug 2010
Location: Leipzig, Germany
Posts: 39
Rep Power: 15
deniggo is on a distinguished road
Hi Fuji,
I think at first you need a mesh of your domain, including your bedform, and all other walls... inlet, outlet. Afterwards you can define a temporal water elevation bc at the inlet. I use groovyBC (http://openfoamwiki.net/index.php/Contrib_groovyBC) for this in interFoam (2-phase flow). But, I think there are many other possibilities.

For creation of your bedform, I'm sure you can also use some import functions of CAD-Software. That would make more sense, if you want to use real measured data. But I didn't try it up to now, so that would be interesting for me as well.

Hope that helps,

Nico
deniggo is offline   Reply With Quote

Old   December 21, 2010, 23:15
Default
  #8
Member
 
Robert Ong
Join Date: Aug 2010
Posts: 86
Rep Power: 15
rob3rt 0ng is on a distinguished road
Hi All,

Do you know where can I find the proper description of what shallowWaterFoam does and that sort of thing?

And is it possible to incorporate this with irradiance (attenuating of irradiance with respect to the water depth)?

Kind Regards,
Robert
rob3rt 0ng is offline   Reply With Quote

Old   December 22, 2010, 01:17
Default
  #9
New Member
 
Wind
Join Date: Nov 2010
Posts: 10
Rep Power: 15
fuji is on a distinguished road
Thanks a lot Nico,
I will try to use groovyBC.
Could you send me some picture about your method?


Best Regards
Fuji
fuji is offline   Reply With Quote

Reply


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
Help with slug flow simulation. Kes FLUENT 3 November 9, 2019 21:39
Channel flow setup in Large-eddy simulation Weihua Main CFD Forum 6 November 17, 2015 09:33
Different flow pattern between OpenFOAM and CFX AirS OpenFOAM 0 January 12, 2010 07:08
OpenFoam on compressible flow and electromagnetic flow together ? universez OpenFOAM Running, Solving & CFD 0 January 3, 2010 13:08
calculate volume flow from a 2D simulation SimonH. OpenFOAM 0 October 27, 2009 04:39


All times are GMT -4. The time now is 23:21.