CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

Injection of a fluid into a cavity

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   February 27, 2008, 07:30
Default Hi Christian, thank you for
  #21
Member
 
Francesco Boschetto
Join Date: Mar 2009
Location: Italy
Posts: 56
Rep Power: 9
francesco_b is on a distinguished road
Hi Christian,

thank you for your test, I'm cleaning my BC and soon I'll send you it through mail, I'm sorry but I'm not able to attach files in the forum.

I'm having other tests too, so please be patient and don't worry, I'll send you the mail ;)

Regards

Francesco
francesco_b is offline   Reply With Quote

Old   March 20, 2008, 15:31
Default Hi All, I'm trying to injec
  #22
New Member
 
Abel Vargas
Join Date: Mar 2009
Posts: 2
Rep Power: 0
aerovargas is on a distinguished road
Hi All,

I'm trying to inject air through a jet into an incomig flow using the VOF solver (interFoam). I filled my domain with gamma=1. How do I specify gamma=0 at the jet inlet,
aerovargas is offline   Reply With Quote

Old   March 21, 2008, 09:56
Default Hi, The boundary condition
  #23
Senior Member
 
Billy
Join Date: Mar 2009
Posts: 167
Rep Power: 9
billy is on a distinguished road
Hi,

The boundary condition should switch gradually between wall and permeable wall. I think if you just jump from a permeable wall to a non-permeable wall at gamma = 0.5 you will have numerical problems.

One way could be to multiply the flux out that wall by (1-gamma) but the correct adjustments have to be made to assure mass conservation.
billy is offline   Reply With Quote

Old   May 22, 2009, 06:42
Default
  #24
Member
 
Jitao Liu
Join Date: Mar 2009
Location: Jinan , China
Posts: 64
Rep Power: 9
awacs is on a distinguished road
Dear Francesco,

Good job. I am a new Foamer and very interested in this kind of boundary condition.
I tried to create "filter" from "outletInlet" under your guidance in :
Permeability filling of container outlet condition

but failed and got following errors:
In file included from filterFvPatchField.H:153,
from filterFvPatchFields.H:30,
from filterFvPatchFields.C:29:
/usr/include/bits/mathcalls.h: In member function ‘virtual void Foam::filterFvPatchField<Type>::updateCoeffs()’:
/usr/include/bits/mathcalls.h:265: error: too few arguments to function ‘double gamma(double)’
filterFvPatchField.C:135: error: at this point in file
filterFvPatchField.C:135: error: expected primary-expression before ‘>’ token

How did you implement this new boundary condition? Would you mind giving me some suggestions.

Thanks in advance.

Jitao Liu
awacs is offline   Reply With Quote

Old   May 22, 2009, 19:50
Default
  #25
Member
 
Nugroho Adi
Join Date: Mar 2009
Location: norway
Posts: 79
Rep Power: 9
mahaputra is on a distinguished road
Quote:
Originally Posted by caw View Post
Francesco,

i have a simple test case for you. Here is an image:

There is a circular inlet at the lower end of the cavity, there i fluid (gamma = 1) is injected into the cavity. The grey surface is called wall and behaves like a wall. The green surface is called outlet but defined as wall for now. The blue surface is called upper_outlet and acts as an outlet. So in the simulation the fluid level rises with advancing time against gravity.

For your case i would suggest to switch the upper_outlet to wall. Then use your new BC for the surface called outlet. Now, fluid two should be able to leave the domain while the injected fluid one is held back and rises in the same way as mentioned above.

The test case for interFoam is to large to post it here. If you want it, just drop me an email.

Would you please share your BC so a can perform some tests as well?

Thanks and regards
Christian
Dear Christian Winkler


just wondering

how yo managed to display the geometry on the post processing as a transparent image /walls (like you shown above) ?

you did by paraview? could you please tell us, step by step to display transparant walls?


thanks
mahaputra is offline   Reply With Quote

Old   May 24, 2009, 10:45
Default
  #26
caw
Member
 
Christian Winkler
Join Date: Mar 2009
Location: Mannheim, Germany
Posts: 63
Rep Power: 9
caw is on a distinguished road
Hi,

this is quite simple. I used paraview under windows.
1 run foamToVTK
2 load your wall data, load your field data
3 for your wall data set opacity to a value below 1.0
4 create a iso surface with value 0.5 for gamma for your field data

actually thats it....

best regards
Christian
caw is offline   Reply With Quote

Old   July 8, 2009, 04:14
Default
  #27
Member
 
Jitao Liu
Join Date: Mar 2009
Location: Jinan , China
Posts: 64
Rep Power: 9
awacs is on a distinguished road
Dear Francesco,

Thanks a lot for your filter BC. I have tested it for several weeks.

I want to know what's the difference between

if (gammap[id]<0.001) this->valueFraction()[id] = 0;
or
if (gammap[id]<0.5) this->valueFraction()[id] = 0;

or sth. like this.

Please do me a fever.

Moreover, is it necessary to use the filterU BC for velocity and filterP BC for pressure at the same time, or , just use one of them ?

Would you mind sending me a tutorial about how to use the filter BC ?

My e-mail address is:

liujitao@mail.sdu.edu.cn

Thanks and regards

Jitao
awacs is offline   Reply With Quote

Old   February 3, 2012, 12:20
Default
  #28
Senior Member
 
Andrea Ferrari
Join Date: Dec 2010
Posts: 296
Rep Power: 8
Andrea_85 is on a distinguished road
Dear Francesco,
I'm also interested is this kind of boundary condition. I'm working with multiphase flow and i'm facing many problem with outlet condition, maybe your BC could do the job i want. This thread is quite old, but can you share/send me the implementation of this boudary condition?.
my email is andrea.ferrari@unil.ch

Best Regards
andrea
Andrea_85 is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
lid driven cavity sudha Main CFD Forum 6 November 21, 2010 06:11
fluid pressure in cavity Nishan CFX 0 November 2, 2008 19:51
ANSYS problem in solving fluid fluid interaction Fayyaz CFX 0 July 24, 2006 09:03
Heat transfer for fluid-fluid interface lentil FLUENT 0 March 31, 2005 15:25
Help on cavity flow Pendy Main CFD Forum 17 July 17, 2001 23:34


All times are GMT -4. The time now is 01:15.