CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Specifying phase on both sides of a Boundary Condition? (https://www.cfd-online.com/Forums/openfoam-solving/69930-specifying-phase-both-sides-boundary-condition.html)

rassilon November 9, 2009 18:21

Specifying phase on both sides of a Boundary Condition?
 
1 Attachment(s)
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

navier-stokes November 10, 2009 03:32

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

rassilon November 10, 2009 20:29

Quote:

Originally Posted by navier-stokes (Post 235683)
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 November 11, 2009 00:41

Hi Markus,

I have got it working properly now.

Thanks for your help.


R


All times are GMT -4. The time now is 19:48.