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

How to simualte steadystate multiphase (incompressible) flow?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By rakesh927

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 30, 2016, 02:54
Smile How to simualte steadystate multiphase (incompressible) flow?
  #1
New Member
 
rakesh927's Avatar
 
rakesh
Join Date: Jul 2015
Location: Nagpur, India
Posts: 16
Rep Power: 10
rakesh927 is on a distinguished road
Hi friends,

I would like to simulate a steadystate flow of water in a tub (open to atmosphere and filled with stones to some depth), in which water enters through an inlet pipe and leaves through an outlet pipe.
I could simulate this case using interFoam solver (two phases, air and water) which is transient. It takes lot of time for the solver before the water level reaches the outlet height.

I want to solve this in steady state. Kindly help me out in selecting the solver.

Thanks

Rakesh
rakesh927 is offline   Reply With Quote

Old   September 30, 2016, 03:11
Default
  #2
Senior Member
 
floquation's Avatar
 
Kevin van As
Join Date: Sep 2014
Location: TU Delft, The Netherlands
Posts: 252
Rep Power: 20
floquation will become famous soon enough
Quote:
Originally Posted by rakesh927 View Post
It takes lot of time for the solver before the water level reaches the outlet height.
Quick suggestion:
Can't you use "setFieldsDict" to set an initial water height in your system, such that you do not need to wait as long?
floquation is offline   Reply With Quote

Old   September 30, 2016, 03:25
Default
  #3
New Member
 
rakesh927's Avatar
 
rakesh
Join Date: Jul 2015
Location: Nagpur, India
Posts: 16
Rep Power: 10
rakesh927 is on a distinguished road
Thank you Kevin,

I almost forgot this option :P. One more question: after I get near steady U field of water phase, is it possible to use this for adding into scalar transportFoam?

Thank you.
rakesh927 is offline   Reply With Quote

Old   September 30, 2016, 03:56
Default
  #4
Member
 
Brian Willis
Join Date: Mar 2011
Location: Cape Town, South Africa
Posts: 58
Rep Power: 15
Dipsomaniac is on a distinguished road
Quote:
Originally Posted by rakesh927 View Post
Thank you Kevin,

I almost forgot this option :P. One more question: after I get near steady U field of water phase, is it possible to use this for adding into scalar transportFoam?

Thank you.
Hi Rakesh

Have a look at the following tutorial by Tobias Holzmann using interFoam with a scalar transport equation added as function in the controlDict file.

http://www.holzmann-cfd.de/index.php...oscillator-vof

Cheers,
Brian
Dipsomaniac is offline   Reply With Quote

Old   September 30, 2016, 05:09
Default
  #5
New Member
 
rakesh927's Avatar
 
rakesh
Join Date: Jul 2015
Location: Nagpur, India
Posts: 16
Rep Power: 10
rakesh927 is on a distinguished road
Thanks Brian Going through the content, very useful.
Dipsomaniac likes this.
rakesh927 is offline   Reply With Quote

Old   October 5, 2016, 01:12
Default
  #6
New Member
 
rakesh927's Avatar
 
rakesh
Join Date: Jul 2015
Location: Nagpur, India
Posts: 16
Rep Power: 10
rakesh927 is on a distinguished road
Quote:
Originally Posted by floquation View Post
Quick suggestion:
Can't you use "setFieldsDict" to set an initial water height in your system, such that you do not need to wait as long?
Hi friends,

But my question about solving multiphase flows in steady-state remains unanswered. The case I was talking about, contains a tub filled with stones, water enters from inlet and leaves through outlet, tub is exposed to atmosphere and contains air [water is exposed to atmosphere]. Eventually I would like to simulate the transport of multiple chemicals and their interaction / decay reactions.
As suggested by Kevin, I can set the initial water levels for quickly attaining the near steady state flow conditions, but for solving the transport of chemicals I have to run the interFoam for each time step [which is computationally intensive].
Is there a way to extract velocity field of water from interFoam and plug that into transportFoam?

Thanks

PS: I am relatively new to OpenFoam, I may sound little immature in posing my questions.
rakesh927 is offline   Reply With Quote

Old   October 5, 2016, 04:04
Default
  #7
Member
 
Brian Willis
Join Date: Mar 2011
Location: Cape Town, South Africa
Posts: 58
Rep Power: 15
Dipsomaniac is on a distinguished road
The scalarTransportFoam solver only solves a passive scalar transport equation and uses the initial velocity field supplied at start, without recalculating it, hence if you take a steady state velocity field from your multiphase simulation, you could use that as the initial velocity field in the scalarTransportFoam solver. Difficulties come with respect to transport of the scalar across the interface, as the scalarTransportFoam assumes it a single phase system.

For extracting just the velocity of the water phase, you could do that in paraview by using the alpha values as a switch, e.g. U*(1-alpha)(alpha),would either give you just the velocity field of the liquid or gas depending on your setup,or program it as a function directly into your control dict as a user defined function.

Last edited by Dipsomaniac; October 5, 2016 at 04:08. Reason: adding some additional comments.
Dipsomaniac is offline   Reply With Quote

Old   December 7, 2016, 05:36
Default
  #8
New Member
 
rakesh927's Avatar
 
rakesh
Join Date: Jul 2015
Location: Nagpur, India
Posts: 16
Rep Power: 10
rakesh927 is on a distinguished road
Hi Brian,

I have done something similar to what you have suggested, created a new velocity field V in which values are filled from U field as it is for alpha values >= 0.5 [where alpha=1 for water and =0 for air] and assigned values 0 for alpha<0.5. So that V field contains velocity values for water phase only and rest zeros.
This approach seems to work, however, if diffusion is significant, the pollutants transport into the space where zero velocities are assigned [technically where alpha<0.5, or air phase] which is not satisfactory.

Hope you understand me.

Kindly help me out. Thanks
rakesh927 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
Issues on the simulation of high-speed compressible flow within turbomachinery dowlee OpenFOAM Running, Solving & CFD 11 August 6, 2021 06:40
Fluent v15 multiphase flow b.c. failure Non-channel flow mickjazz Fluent Multiphase 1 September 22, 2014 06:41
Multiphase Flow BC-Mass Flow inlet not available? yimingchen.ok@gmail.com Siemens 1 July 18, 2014 06:08
Multiphase flow for flow around ship gundul CFX 5 September 2, 2008 16:06
Can 'shock waves' occur in viscous fluid flows? diaw Main CFD Forum 104 February 16, 2006 05:44


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