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

Specifying phase on both sides of a Boundary Condition?

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

Reply
 
LinkBack Thread Tools Display Modes
Old   November 9, 2009, 19:21
Default Specifying phase on both sides of a Boundary Condition?
  #1
Member
 
Join Date: Mar 2009
Location: Sydney, New South Wales, Australia
Posts: 42
Rep Power: 8
rassilon is on a distinguished road
Hi Folks,

I am running a simple two phase problem using interFoam (see attached, much simplified, diagram).

Phase 0 is water and Phase 1 is air, and on the left side I have placed an inletOutlet BC to allow movement of fluid in and out of the model.

However, on the 'external' side of the BC, Foam seems to default to Phase 1, and under certain circumstances, the model draws air in through the BC.

I really need the default external phase to be Phase 0, i.e. water, but I am unsure how to set this up? Where in the various dictionaries can I control what phase lies on the external side of the inletOutlet BC? Can this be done?

Any help would be greatly appreciated,

Many thanks,


R
Attached Images
File Type: png Boundary_Condition.png (9.2 KB, 19 views)
rassilon is offline   Reply With Quote

Old   November 10, 2009, 04:32
Default
  #2
New Member
 
Markus
Join Date: Sep 2009
Posts: 11
Rep Power: 7
navier-stokes is on a distinguished road
Hi!
In 0/alpha1.orig set the BC for the approriate patch to "type fixedValue;" and set "value 0;"
Be sure to copy 0/alpha1.orig to 0/alpha1 before starting the solver 'cause 0/alpha1 will be overwritten.

Regards

Markus
navier-stokes is offline   Reply With Quote

Old   November 10, 2009, 21:29
Default
  #3
Member
 
Join Date: Mar 2009
Location: Sydney, New South Wales, Australia
Posts: 42
Rep Power: 8
rassilon is on a distinguished road
Quote:
Originally Posted by navier-stokes View Post
Hi!
In 0/alpha1.orig set the BC for the approriate patch to "type fixedValue;" and set "value 0;"
Be sure to copy 0/alpha1.orig to 0/alpha1 before starting the solver 'cause 0/alpha1 will be overwritten.

Regards

Markus

Hi Markus,

Thanks for taking the time to reply.

I have tried your suggestion, but my model is still drawing air in through the boundary condition. My 0/alpha1 file now looks like this:

Quote:
Inlet-reservoir
{
type fixedValue;
value uniform 0;
}
Before I changed it, it looked like this:


Quote:
Inlet-reservoir
{
type inletOutlet;
inletValue uniform 0;
value uniform 0;
}
However, both of these configurations are still allowing air to be drawn back in through the boundary condition. The device I am modelling requires fluid, the same a phase0 to be drawn back in.

Is there anything else that I need to alter to make this happen?

Cheers,


R
rassilon is offline   Reply With Quote

Old   November 11, 2009, 01:41
Default
  #4
Member
 
Join Date: Mar 2009
Location: Sydney, New South Wales, Australia
Posts: 42
Rep Power: 8
rassilon is on a distinguished road
Hi Markus,

I have got it working properly now.

Thanks for your help.


R
rassilon 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
inlet velocity boundary condition murali CFX 5 August 3, 2012 08:56
How to create a new boundary condition ? awacs OpenFOAM Programming & Development 5 May 30, 2009 03:00
Calculated gradient boundary condition similar to gammaContactAngle adona058 OpenFOAM Running, Solving & CFD 0 September 26, 2007 15:23
Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 2 July 15, 2005 04:15
Pressure Boundary Condition Matt Umbel Main CFD Forum 0 January 11, 2002 11:06


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