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

atmospheric boundary condition

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 9, 2009, 04:43
Default atmospheric boundary condition
  #1
Member
 
Julien Schaguene
Join Date: Apr 2009
Location: France
Posts: 55
Rep Power: 17
Schag is on a distinguished road
Hi all,

quite new to openFOAM, I'm trying to simulate a flow through a channel with rasInterFoam.
My issue comes from the fact that the air flow above water surface quickly gets high velocity magnitudes, and I don't really understand why.

A quick review of my case:
a 140m channel with a vertical pile in the middle.
I have slip conditions on sides, velocity inlet for water with hydrostatic pressure at outlet.
For air, the top of my domain is totalPressure for pd and pressureInletOutletVelocity for U. I have zeroGradient conditions on pd and U for vertical air boundary conditions (above inlet and outlet of water).

Do you have any idea, advices?

Thanks a lot

Regards,

Julien
Schag is offline   Reply With Quote

Old   September 25, 2009, 15:49
Default
  #2
New Member
 
Martin Romagnoli
Join Date: Mar 2009
Location: Rosario, Santa Fe, Argentina
Posts: 22
Rep Power: 17
martinr is on a distinguished road
Hi Julien,

Have you found any explanation to the air velocity behaviour? I ask you because I have got the same problem and I am a bit lost.

Greetings
Martin
martinr is offline   Reply With Quote

Old   September 28, 2009, 05:33
Default
  #3
New Member
 
Paul Schiefer
Join Date: Sep 2009
Posts: 25
Rep Power: 17
pauls is on a distinguished road
Hello Martin and Julien,
I had similar problems. Searching this forum I found that all OpenFOAM solvers are unstable for this setup. The source of instability seems to be the density contrast between air and water. Any momentum transfer across the interface generates a huge velocity jump.
Discussions show that no solution is available in OpenFOAM, and no attempts are made to find one. We are still using commercial codes for FSI including a water-air interface. I don't know what they a doing differently, but obviously there is a solution.

Paul
pauls is offline   Reply With Quote

Old   September 28, 2009, 10:20
Default
  #4
New Member
 
Michael G.
Join Date: Sep 2009
Location: Germany, Nds.
Posts: 13
Rep Power: 17
myheroisalex is on a distinguished road
Hello together,

I was dealing with the same trouble and for my setup the following BCs did the best Job:
For U at the atmo:
type pressureDirectedInletOutletVelocity;
value uniform (0 0 0);
inletDirection uniform (0 0 -1);
For pressure at atmo:
type fixedValue;
value uniform 0;
alpha1/gamma:
type inletOutlet;
inletValue uniform 0;
value uniform 0;

Just my two cents, maybe that helps
myheroisalex is offline   Reply With Quote

Old   September 28, 2009, 11:02
Default
  #5
New Member
 
Paul Schiefer
Join Date: Sep 2009
Posts: 25
Rep Power: 17
pauls is on a distinguished road
Quote:
Just my two cents, maybe that helps
Thanks, but still the rasInterFoam solver speeds up the air above the interface to about 1000 times the velocity of the water below the interface, if the water surface develops waves.

Maybe you can upload a complete case directory, showing your successful run? Did you integrate for sufficiently long periods, or just a few seconds?

Paul
pauls is offline   Reply With Quote

Old   September 28, 2009, 13:22
Default
  #6
New Member
 
Michael G.
Join Date: Sep 2009
Location: Germany, Nds.
Posts: 13
Rep Power: 17
myheroisalex is on a distinguished road
Hi Paul,

I am dealing with a moving box ('ship') in another box('water/air-domain').
When I first set up a case for the (simple) situation that the ship does not move at all, i got somehow crazy velocities in the air domain (~10m/s after 1s time).
The BCs I posted above do not totally remove that problem, but I now have velocities about 0.03 m/s after 1s time.
My experience then is that every additional function you want to use let those strange velocities grow and grow (In my case mesh movement). Because the mesh movement didnt not work very good for me (again strange velocities, but now due to mesh motion) I didnt simulate more than 1s of time.
The solver I used was interDyMFoam on OpenFOAM-1.6.

I uploaded the p and U-dictionaries for you: http://uploaded.to/?id=n2smuro7x9xrsj43rd5vnyi8epq8kq5w
myheroisalex is offline   Reply With Quote

Old   September 28, 2009, 14:01
Default
  #7
New Member
 
Paul Schiefer
Join Date: Sep 2009
Posts: 25
Rep Power: 17
pauls is on a distinguished road
Quote:
I was dealing with the same trouble and for my setup the following BCs did the best Job:
Do you agree, that "the best Job" is not satisfying for any practical purposes? For the records, this problem is far from being solved.
Running a simulation for 1 second may be a step in the right direction, but obviously better stability is needed. Can anyone suggest ideas about what exactly causes this error and where to go for a solution?

Paul
pauls is offline   Reply With Quote

Old   September 28, 2009, 14:22
Default
  #8
New Member
 
Michael G.
Join Date: Sep 2009
Location: Germany, Nds.
Posts: 13
Rep Power: 17
myheroisalex is on a distinguished road
Quote:
Originally Posted by pauls View Post
Do you agree, that "the best Job" is not satisfying for any practical purposes?
From my point of view: yes. But there are a lot of much more experienced people here and somewhere I saw some setups and/or result-screenshots of wave generation, so it has to be possible in any way.
My experience with Ansys CFX, as an commercial solver, is that it is able to build a free surface model without unwanted velocities in the air domain.
myheroisalex is offline   Reply With Quote

Old   September 28, 2009, 16:46
Default
  #9
New Member
 
James Criner
Join Date: Mar 2009
Posts: 7
Rep Power: 17
jcriner is on a distinguished road
As a starting point, you may wish to try the following:

1. Have a look at U on your atmospheric patch (not the vol mesh, actually load the patch in Paraview). See if there is "checkerboarding" (regions of Uinlet and other regions where U = most likely zero).

2. If the answer to 1. is yes, and your inlet velocity is nominally parallel to your atmosphere patch, then have a look at what pressureInletOutletVelocity / pressureDirectedInletOutletVelocity are actually doing in the code based on flux phi, refValue, valueFraction, tangentialVelocity, and inletDirection. You may find that your inlet velocity is tangent to your atmosphere patch and when the flux is numerically out it sets zero gradient, and when the flux is numerically in it is setting the tangential velocity to some value (0???) inconsistent with your inlet U. If so, that certainly isn't helping things although it may not solve all of your problems.

James
jcriner is offline   Reply With Quote

Old   September 29, 2009, 06:32
Default
  #10
New Member
 
bigred's Avatar
 
Matthew Philpott
Join Date: Aug 2009
Location: Belgium
Posts: 24
Rep Power: 17
bigred is on a distinguished road
I'm not sure if this helps or is applicable, but I just skimmed through the funkySetFields utility, that may help out. http://openfoamwiki.net/index.php/Co...funkySetFields
see section 3.2.2
__________________
CAELinux 2009 + OF1.5
Ubuntu 9.04 x64 (jaunty jackalope) + OF1.6
bigred is offline   Reply With Quote

Old   September 29, 2009, 07:37
Default
  #11
New Member
 
Paul Schiefer
Join Date: Sep 2009
Posts: 25
Rep Power: 17
pauls is on a distinguished road
bigred, funkySetFields has nothing to do with the problem.
FunkySetFields is used for the initial conditions.
Velocities explode during the integration independent of initial conditions.

Paul
pauls is offline   Reply With Quote

Old   May 8, 2014, 08:02
Default help
  #12
New Member
 
Baek, Donghae
Join Date: Jan 2013
Location: Seoul
Posts: 24
Rep Power: 13
wes1204 is on a distinguished road
I also got same problem.

I am simulating curved open channel to capture secondary current at apex of curve.

actually air velocity structure is out of my concern.

but problem is that high velocity of air above free surface make large turbulent stress near by free surface and it affect to secondary flow of water.

this high velocity of air is physically not correct in my view.

anybody who solved the problem please give advise
wes1204 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
inlet velocity boundary condition murali CFX 5 August 3, 2012 09:56
spanwiperiodic boundary condition for LES Sungho Yoon CFX 5 July 8, 2008 07:21
Axis Boundary Condition..what is it? CFDtoy FLUENT 6 February 13, 2007 06:51
How to set boundary condition in Fluent for the fo Peiyong FLUENT 1 November 10, 2006 12:44
Help Urgent about changing boundary condition Anjum Naveed FLUENT 7 August 14, 2006 13:25


All times are GMT -4. The time now is 20:52.