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

TwoPhaseEulerFoam Documentation

Register Blogs Community New Posts Updated Threads Search

Like Tree8Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 5, 2009, 05:01
Default
  #21
Member
 
Shane
Join Date: Oct 2009
Posts: 52
Rep Power: 17
sircorp is on a distinguished road
Thanks Dr. Alberto

(I am new to CFD and hence please bear with me if I ask some very stupid/silly question(s). Thanks for help in references. All three references are of "DIRECT" help for my project. Katerina Mousa gave some insight into role of bubbles in bubble-liquid CFD. She addressed nicely.)

1) Your feedback on variable density is highly appreciated. I am working on Molten Salt + Gaseous systems. Yes molten salt density will be a function of temperature and system will have a temeprature gradient( around 200 degree from top to bottom.) I should have experimental data ready in one years(once our prototype system is ready).

2) Regarding mass transfer equations, I am trying to take one step at a time(being new to CFD). I believe it will be highly complex to develop mass transfer equations. Three to Four variables will be there
i) Density(variable density along the height of the chamber)
ii) Solubility of gases in the system will be temeprature dependent. Also it will not be linear.
iii) To keep the puping load low, high heat transfer, bubble size is important. I need to work below turbulent velocity. Gas velocity will be pretty low and molten system will flow under gravity from bottom to top and vice versa. Temperature gradient will be a continuous feature of the system.
iv) It is assumed system is not stirred.

v) Freezing of system is of paramount importance to use Latent Heat. However, to include Latent Heat, that will be be distant away for me.

Thanks

sircorp.
sircorp is offline   Reply With Quote

Old   November 5, 2009, 12:14
Default
  #22
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
Very happy to be of some help!

Quote:
Originally Posted by sircorp View Post
2) Regarding mass transfer equations, I am trying to take one step at a time(being new to CFD). I believe it will be highly complex to develop mass transfer equations. Three to Four variables will be there
Yes. My point was simpler. If you plan to include mass transfer in the future, my suggestion is to think to the solution algorithm so to include the necessary terms already. It does not matter what will be the exact final formulation or if you won't use them (set them to zero), but you will save a lot of time in development and testing later.

Best,
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   November 5, 2009, 17:41
Default
  #23
Member
 
Shane
Join Date: Oct 2009
Posts: 52
Rep Power: 17
sircorp is on a distinguished road
Quote:
Originally Posted by alberto View Post
Hi,

interesting problem! In practice to do that with OpenFOAM the main steps are:
  • Include heat transfer, which is relatively easy. The fact that thermodynamic properties depend on temperature is not a problem. If you start from twoPhaseEulerFoam, you have to change the solution algorithm to account for variable density however, since the code assumes constant density.
  • Include the mass transfer (you said you want to neglect it, but you might need to include it in the end). This leads to change the solution algorithm of the whole multiphase set of equations, since you have to add a source term to the phase continuity equation and to the momentum equation.
  • Account for solidification
The first two changes are well documented in the literature. You might want to take a look at papers about simulation of nuclear reactors using Eulerian multiphase model for an idea of the kind of numerics used in such a kind of applications (See recent papers from Jeong and Park on Nuclear Engineering and Design, for example "A semi-implicit numerical scheme for transient two-phase flows on unstructured grids"). You can find also some useful information in the literature on chemical reactors, but the details of the implementation are hard to find, since most of the works were done using commercial codes.
Finally, two good references for robust Eulerian multiphase code implementations are:
  • Vasquez, S. A., Ivanov, V. A. (2000), A phase coupled method for solving multiphase problems in unstructured meshes. In: Proceedings of ASME FEDSM'00: ASME 2000 Fluids Engineering Division Summer Meeting, Boston.
Both the references suggest algorithms that are not straightforward to implement in OpenFOAM right now (coupled solver required).

Please, let me know if you need further information.

P.S. Thank you for your comment on my presentation!

Thanks Dr. Alberto

I am going through the recommonded study. I am new to CFD and may ask very basic questions time to time.

I did answer this email earlier but it seems it ended in separate forum.

Sircorp
sircorp is offline   Reply With Quote

Old   November 5, 2009, 17:50
Default
  #24
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
Quote:
Originally Posted by sircorp View Post
Thanks Dr. Alberto

I am going through the recommonded study. I am new to CFD and may ask very basic questions time to time.
Great! Feel free to ask any question.

Best,
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   November 6, 2009, 03:57
Default TwoPhaseEulerFoam Documentation
  #25
Member
 
Shane
Join Date: Oct 2009
Posts: 52
Rep Power: 17
sircorp is on a distinguished road
Thanks Alberto

The article by Jeong and Park , "A semi-implicit numerical scheme for transient two-phase flows on unstructured grids" has helped me enormously. I have started going through the other cited references.

As per project, I MUST use Fluent and TRNSYS together to model the system.


sircorp
sircorp is offline   Reply With Quote

Old   November 6, 2009, 10:18
Default
  #26
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
Quote:
Originally Posted by sircorp View Post
As per project, I MUST use Fluent and TRNSYS together to model the system.
I think it is actually an advantage for you to use FLUENT, since you are starting now with CFD, and also because their multi-phase models are robust and much more developed than what is currently in OF. So, you won't have to worry about too many details of the numerical implementation for now.

Best,
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   November 19, 2009, 04:57
Default
  #27
New Member
 
xiang chai
Join Date: Aug 2009
Posts: 13
Rep Power: 17
chai is on a distinguished road
hello Alberto
I am interested in the solution algorithme in twoPhaseEulerFoam. but it really confuses me.

In the Ueqn.H, the l.h.s of the momentum equation for phase A is

(scalar(1) + Cvm*rhob*beta/rhoa)*
(
fvm::ddt(Ua)
+ fvm::div(phia, Ua, "div(phia,Ua)")
- fvm::Sp(fvc::div(phia), Ua)
)
- fvm::laplacian(nuEffa, Ua)
+ fvc::div(Rca)
+ fvm::div(phiRa, Ua, "div(phia,Ua)")
- fvm::Sp(fvc::div(phiRa), Ua)
+ (fvc::grad(alpha)/(fvc::average(alpha) + scalar(0.001)) & Rca)


what's meaning of this term " (scalar(1) + Cvm*rhob*beta/rhoa) "?
After reading the Ph.D thesis of Henrik Rusche, I still can’t find any term which is similar to “(scalar(1)+Cvm*rhob*alpha/rhob)”.

I am new to two-fluid method, please bear with me if this question is silly.

Thank you.

Chai
chai is offline   Reply With Quote

Old   November 20, 2009, 08:58
Default Bugs in twoPhaseEulerFoam
  #28
New Member
 
Nicoleta Scurtu
Join Date: Nov 2009
Posts: 3
Rep Power: 17
nscurtu is on a distinguished road
Hi,

by reading the Master thesis of Juho Peltola I understand why the twoPhaseEulerFoam with using the kinetic theory for granular flows gives unphysical results.

It seems that Juho introduces some modifications of the code.

My question is in what way the modified twoPhaseEulerFoam is accessible for OpenFoam users.

Best,
Nicoleta
nscurtu is offline   Reply With Quote

Old   November 20, 2009, 10:26
Default
  #29
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
Quote:
Originally Posted by chai View Post
what's meaning of this term " (scalar(1) + Cvm*rhob*beta/rhoa) "?
It is simply a way to rewrite the equation. If you set Cvm = 0, you get the momentum equation without virtual mass effect, while if you have Cvm != 0, you include the virtual mass effect.

Best,
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   November 20, 2009, 23:57
Default
  #30
Member
 
Shane
Join Date: Oct 2009
Posts: 52
Rep Power: 17
sircorp is on a distinguished road
For those who are for a Learning Phase, an exceptionally good reading is "Dynamic Simulation of dispersed gas-liquid two-phase flow using discrete bubble model". by Delnoij and Lammers et al.

(I am also new to CFD and is trying to raise my head above water). Thanks to Alberto's help I am able to make some ground.
sircorp is offline   Reply With Quote

Old   November 21, 2009, 00:31
Default
  #31
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
Quote:
Originally Posted by sircorp View Post
For those who are for a Learning Phase, an exceptionally good reading is "Dynamic Simulation of dispersed gas-liquid two-phase flow using discrete bubble model". by Delnoij and Lammers et al.

(I am also new to CFD and is trying to raise my head above water). Thanks to Alberto's help I am able to make some ground.
Thanks Shane, but you are doing the work of learning. I just suggested some reading

For Nicoleta, if you are interested in a partial description of the numerical methodology used in bubbleFoam/twoPhaseEulerFoam, and in particular on the phase intensive formulation of the momentum equation, you can read the following paper:

  • P. J. Oliveira, R. I. Issa, Numerical aspects of an algorithm for the Eulerian simulation, of two-phase flows, International Journal of Numerical Methods in Fluids, 2003; 43:1177–1198 (DOI: 10.1002/fld.508)

The details of the implementation in OpenFOAM(r) are described in an internal report of OpenCFD(r) and are summed up in Henrik Rusche PhD thesis, where you can also find the reference to the internal report I am referring to.

The basic ideas behind the solution algorithm are the following
  • do not include the pressure gradient in the momentum predictor, which is not solved (only a Jacobi iteration is done to find a guess of the velocity before solving for the pressure equation based on the mixture)
  • move the gravity and the explicit part of the drag term to the pressure equation (this approach is known in the literature as semi-implicit coupling)
  • solve the pressure equation to enforce mass conservation for the mixture
  • do not correct the velocity field directly, instead correct the flux
  • obtain the velocity correction from a reconstruction of the flux correction
The last two steps are the key point, if you want to have a stable solution when sharp interfaces with large density gradients are present.

Side note: all this was explained in one contribution to the documentation project

Best,
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   November 21, 2009, 21:29
Default
  #32
Member
 
Shane
Join Date: Oct 2009
Posts: 52
Rep Power: 17
sircorp is on a distinguished road
Confusion:

1) As per my reading over the last few months I was made to believe that in gas-liquid fluidized bed, smaller the bubble particle size, more the heat transfer between gas and liquid(keeping velocity, density and other parameters same).

2) Also with the increase of the pressure(I mean in pressurised fluidized bed), the bubble size of gas decreases with the increase of the pressure and limits to maximum 6 MPa above which no change oserved in heat transfer coefficient between gas and liquid.

3) The effect of Viscosity is not clear to me at all. BIG CONFUSION. According to Xukun Luo et al in "High presure three phase fluidization system declares other way i.e. Heat Transfer decreases with increase of Viscosity".(A similar claim made by Xukun Luo et al on page 2433 penultimate paragraph
sircorp is offline   Reply With Quote

Old   April 19, 2010, 21:57
Default Gas Liquid Heat Transfer
  #33
Member
 
Shane
Join Date: Oct 2009
Posts: 52
Rep Power: 17
sircorp is on a distinguished road
Does some one can guide me to find Heat Transfer Equations of Bubbling Gas through a Liquid Column.

Sircorp
sircorp is offline   Reply With Quote

Old   October 29, 2010, 07:20
Default
  #34
Edy
Member
 
Join Date: Sep 2010
Posts: 35
Rep Power: 16
Edy is on a distinguished road
Hi Sefan Radl,

I am actually quite confused about the implementation of the pressure in twoPhaseEulerFoam which is different than what Rusche explains in his thesis.

If "p" in the solver represents the modified pressure, why then gravity still appears (as a term transfered from the UEqn.H to the pEqn.H)?

I hope that you found the answer to this question after this long time and that you'll be able to help me.

Thanks in advance!
Best,

Edy
Edy is offline   Reply With Quote

Old   November 1, 2010, 00:36
Default
  #35
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
bubbleFoam / twoPhaseEulerFoam do not solve for the modified pressure, but for the actual pressure. You can easily obtain the pressure equation used in the code dividing each continuity equation by the corresponding phase material density and summing them up.

Further information here: http://openfoamwiki.net/index.php/Bu...ssure_equation

Best,
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.

Last edited by alberto; November 1, 2010 at 00:38. Reason: Added link
alberto is offline   Reply With Quote

Old   November 1, 2010, 08:55
Default
  #36
Edy
Member
 
Join Date: Sep 2010
Posts: 35
Rep Power: 16
Edy is on a distinguished road
Hi Alberto,

Thanks a lot for your answer and link. I just started using OF and there are still many things that are unclear to me...

Your link was quite useful and now I understand, i think, the role of the pressure equation. However i still have few questions :

1) Tell me if I am wrong but the terms to be transfered to the pressure equation are the one in which appears a gradient term, cause letting gradient terms in the RHS of the momentum equation would cause numerical calculation problems such as oscillations and loss of continuity. Am i right? Then I understand why the pressure gradient and the turbulent dispersion force (in which appears grad(alpha)) are transfered, but why the gravity g too??

2) Since twoPhaseEulerFoam considers the actual pressure, the BC at the wall should not be zeroGradient, right? I think I'd better use buoyantPressure, but then I have an issue concerning the density to use. The wall is ,in my case, heated and void fraction can be relatively high, so taking the liquid density does not appear as the best solution to me. Perhaps to take a kind of mixture density would be more appropriate. I do not really know how this BC patch works...

I would be very grateful if you could provide some insight into these two issues.
Thanks a lot!

Best regards,

/Edouard
Edy is offline   Reply With Quote

Old   November 1, 2010, 09:20
Default
  #37
Edy
Member
 
Join Date: Sep 2010
Posts: 35
Rep Power: 16
Edy is on a distinguished road
Hi again!

Still concerning my first question, I noticed in bubbleFoam and twoPhaseEulerFoam that the drag term (not the turbulent drag also called turbulent dispersion) is transfered to the pressure equation, though it does not contain any gradient... Why is this term transfered and not the lift for example, or any other interfacial force?

Thank you very much for your help!
Best,

/Edouard
Edy is offline   Reply With Quote

Old   November 1, 2010, 13:26
Default
  #38
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
Quote:
Originally Posted by Edy View Post
The pressure equation. However i still have few questions :

1) Tell me if I am wrong but the terms to be transfered to the pressure equation are the one in which appears a gradient term, cause letting gradient terms in the RHS of the momentum equation would cause numerical calculation problems such as oscillations and loss of continuity. Am i right? Then I understand why the pressure gradient and the turbulent dispersion force (in which appears grad(alpha)) are transfered, but why the gravity g too??
The gravity term, as well as the explicit part of the drag term are "transferred to the pressure equation" since they are included in the interpolation formula to stabilize the numerical procedure when there are sharp changes in the volume fraction. Some Author called this "improved Rhie-Chow interpolation".

Quote:
2) Since twoPhaseEulerFoam considers the actual pressure, the BC at the wall should not be zeroGradient, right? I think I'd better use buoyantPressure, but then I have an issue concerning the density to use. The wall is ,in my case, heated and void fraction can be relatively high, so taking the liquid density does not appear as the best solution to me. Perhaps to take a kind of mixture density would be more appropriate. I do not really know how this BC patch works...
The buoyantPressure BC is exactly a zeroGradient BC if p is not p_rgh. You might want to take a look at the code.

Best,
SHUBHAM9595 likes this.
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   November 2, 2010, 13:31
Default
  #39
Edy
Member
 
Join Date: Sep 2010
Posts: 35
Rep Power: 16
Edy is on a distinguished road
Hi Alberto,

Thanks again for taking some time and answer my questions!

Ok, so transferring the explicit part of the drag term to the pEqn will stabilize the procedure. I am trying to understant all that because I am modeling a two phase Eulerian model for nucleate subcooled boiling. And therefore I have additional terms in my momentum equations due to phase change. But I dont know if they should be kept there or transfered to the pEqn... How to guess that transferring some terms will stabilize the procedure?

Do you have any advice?

Anyway, thanks a lot, your previous posts have been quite helpful.

Best,

/Edouard
Edy is offline   Reply With Quote

Old   November 2, 2010, 13:39
Default
  #40
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
What is the form of these terms? Do they change quickly with the phase fraction?

Best,
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto 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
TwoPhaseEulerFoam sara OpenFOAM Running, Solving & CFD 2 November 6, 2008 20:26
Bug in twoPhaseEulerFoam alberto OpenFOAM Bugs 2 May 20, 2008 22:25
TwoPhaseEulerFoam Bug alondono OpenFOAM Bugs 1 February 19, 2008 21:01
Bug in twoPhaseEulerFoam wallfunctions alberto OpenFOAM Bugs 1 February 9, 2007 15:15
TwoPhaseEulerFoam newbee OpenFOAM 0 March 27, 2006 09:41


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