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

Laminar vertical flow with interFoam

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 8, 2014, 10:28
Default Laminar vertical flow with interFoam
  #1
Member
 
Join Date: Aug 2011
Posts: 89
Rep Power: 14
idefix is on a distinguished road
Hello together,

I thought it would be easy to calculate but itīs not working.
I have a vertical cylinder with the lenght x = 20 mm. At x = 10 mm there is a channel entering the cylinder. The channel has an angle of 40° to a horizontal line. I am just calculating a 2d plane of the cylinder and y-direction is in the vertical direction (parallel to the gravity).
I want to calculate the following case:
The liquid is flowing through the channel and enters the cylinder. The cylinder is filled with air at 1 bar. I expected that the flow goes vertical down. It only goes vertically down when I use setFields and initialise the liquid flow.
But one strange thing happens. At the exit of the cylinder a "liquid-mountain" is created. It seems like the liquid canīt leave the domain. I tried a lot of different boundary conditions but I canīt solve the problem.
I use
Here is what I use:

alpha1:
INLETchannel
{
type fixedValue;
value uniform 1;
}
OUTLET
{
type inletOutlet;
inletValue uniform 0;
value uniform 0;
}
INLET-AIR-Cylinder
{
type fixedValue;
value uniform 0;
}
wall
{
type zeroGradient;
}
defaultFaces
{
type empty;
}

For U:
INLETchannel
{
type fixedValue;
value uniform (1 2 0);
}
OUTLET
{
type inletOutlet;
inletValue uniform (0 0 0);
value uniform (0 0 0);
}
INLET-AIR-Cylinder
{
type pressureInletOutletVelocity;
value uniform (0 0 0);
}
wall
{
type fixedValue;
value uniform (0 0 0);
}
defaultFaces
{
type empty;
}

For p_rgh:
INLETchannel
{
type zeroGradient;
}
OUTLET
{
type fixedValue;
value uniform 100000;
}
INLET-AIR-Cylinder
{
type totalPressure;
p0 $internalField;
U U;
phi phi;
rho rho;
psi none;
gamma 1;
value uniform 100000;
}
wall
{
type fixedFluxPressure;
adjoint no;
}
defaultFaces
{
type empty;
}

Thanks a lot for your help
idefix is offline   Reply With Quote

Old   February 9, 2014, 06:39
Default
  #2
Senior Member
 
adambarfi's Avatar
 
Mostafa Mahmoudi
Join Date: Jan 2012
Posts: 322
Rep Power: 15
adambarfi is on a distinguished road
Send a message via Yahoo to adambarfi Send a message via Skype™ to adambarfi
hi

I think the conditions you have specified for outlet have some problems and it resists against the fluid to come out, try the following BCs:
-for velocity at outlet: zeroGradient
-for p_rgh at outlet: fixedFluxPressure or buoyantPressure
adambarfi is offline   Reply With Quote

Old   February 9, 2014, 08:34
Default
  #3
Member
 
Join Date: Aug 2011
Posts: 89
Rep Power: 14
idefix is on a distinguished road
Hi,

thanks for your fast reply.
I am trying it at the moment. I will inform you if everything works.
But could you just explain me, why this boundary conditions are better than the others? I donīt understand in which way the first boundary conditions prevent the flow from going out.

Thanks a lot
idefix is offline   Reply With Quote

Old   February 9, 2014, 10:40
Default
  #4
Senior Member
 
adambarfi's Avatar
 
Mostafa Mahmoudi
Join Date: Jan 2012
Posts: 322
Rep Power: 15
adambarfi is on a distinguished road
Send a message via Yahoo to adambarfi Send a message via Skype™ to adambarfi
when you are using inletOutlet condition with inlet value of zero it means that on that boundary, the velocity gradient and magnitude are zero, so the fluid will stay there as near a wall.
for pressure condition the buoyantPressure sets fixedGradient pressure based on the atmospheric pressure gradient, it means that the pressure at outlet don't apply any force to the fluid, AFAIK.
fixedFluxPressure is for any boundary at which the flux is fixed, e.g. wall and inlets but not usually outlets, I'm not sure .
adambarfi is offline   Reply With Quote

Old   February 19, 2014, 02:38
Default
  #5
Member
 
Join Date: Aug 2011
Posts: 89
Rep Power: 14
idefix is on a distinguished road
Hello,

the simulation is working fine now. Thanks
But still I am not very familiar with the boundary conditions.
I used buoyantPressure for the outlet as boundary condition for the pressure.
Am I right that this boundary condition calculated the gradient between the pressure in the last cell before the patch and the atmospheric pressure?
If yes, which atmospheric pressure is used? Is it 1.013 bar or 1 bar?

My second question is concerning the pressureInletOutletVelocity, which I understood in the following way:
I have for an outflow zeroGradient and for an inflow the velocity is calculated from the pressure at the patch (the last cell before the patch)?

Thanks a lot for your help
idefix is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Review: Reversed flow CRT FLUENT 1 May 7, 2018 05:36
Laminar Isothermal Flow in a duct HectorRedal Main CFD Forum 29 June 2, 2012 07:04
Optimize for laminar flow, assume it valid for turbulent flow? Chander CFX 15 November 6, 2011 05:06
Optimize for laminar flow, assume it valid for turbulent flow? Chander Main CFD Forum 2 October 24, 2011 07:43
laminar and turbulent flow in one simulation msna FLUENT 0 January 27, 2007 17:35


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