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

TwoPhaseEulerFoam and Boundary conditions

Register Blogs Community New Posts Updated Threads Search

Like Tree9Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 2, 2009, 15:05
Default
  #41
Member
 
Raghavendra
Join Date: Mar 2009
Location: Goteborg, Sweden
Posts: 95
Rep Power: 17
raagh77 is on a distinguished road
Send a message via Yahoo to raagh77 Send a message via Skype™ to raagh77
@ Rachel,

As the simulation was not stable I tried using first order schemes for all variables and I changed the pressure tolerance to 1 e-04

Can I mail you the case setup files because I had some problems in attaching .rar files here in the forum

@ Alberto,

I am trying to simulate ladle-casting where Argon will be injected to the molten steel at the bottom.

As you said, the ratio of densities where too high I tried to increase the discrete phase density for stable simulation but I don't know how it will influence the flow physics..

Regards
Raghavendra
raagh77 is offline   Reply With Quote

Old   June 2, 2009, 17:44
Default
  #42
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
Hi,

increasing the tolerance on pressure is not going to help. It will make the code run a bit faster at the beginning, but you actually want to reduce that tolerance not to propagate errors.

About your application, I have to say I do not know much about the kind of system you are considering, however did you check if there are already works done using two-fluid models for that kind of application? My feeling is that it might not be the best approach. I saw casting simulations done mainly with VOF.

Best,
A.
santoo_cfd 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   June 2, 2009, 19:26
Default
  #43
Member
 
Raghavendra
Join Date: Mar 2009
Location: Goteborg, Sweden
Posts: 95
Rep Power: 17
raagh77 is on a distinguished road
Send a message via Yahoo to raagh77 Send a message via Skype™ to raagh77
Hi Alberto,

I have few results done in CFX to validate my steel-argon case and it is based on two-fluid approach
also few literature where where steel argon simulation is performed based on two fluid modeling approach.

Finally my task is to compare results what I obtained in CFX and OF.
raagh77 is offline   Reply With Quote

Old   June 2, 2009, 19:54
Default
  #44
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
Hi,

could you point me to those references? I'm interested in taking a look at them. Is the melted steel newtonian?

Btw, I'm also interested in the comparison, so if you want and can stay in touch with me about that, I would be very grateful :-)

Best,
A.
__________________
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   June 3, 2009, 04:27
Default
  #45
Member
 
Rachel Vogl
Join Date: Jun 2009
Posts: 48
Rep Power: 17
Rachel is on a distinguished road
Good Morning Raghavendra,

I guess one problem with your case is that alpha is -ve and going more than 1.
Using a limiting scheme divScheme might solve the problem (it bounds variables between 0 and 1) which I suspect is that case with alpha.

I will try to find more about such schemes or if you find more pl update
Rachel is offline   Reply With Quote

Old   June 3, 2009, 05:40
Default
  #46
Member
 
Raghavendra
Join Date: Mar 2009
Location: Goteborg, Sweden
Posts: 95
Rep Power: 17
raagh77 is on a distinguished road
Send a message via Yahoo to raagh77 Send a message via Skype™ to raagh77
Hi Alberto,

Literatures what I am refering ..
1. Turbulent Flow of Liquid Steel and Argon Bubbles in Slide-Gate Tundish Nozzles: Part I. Model Development and Validation
by HUA BAI and BRIAN G. THOMAS

2. Mathematical simulation of fluid flow in gas-stirred liquid systems
by Lifeng Zhang Taniguchi Laboratory, Department of Metallurgy, Graduate School of Engineering, Tohoku University, Aoba-ku, Sendai 980-8579, Japan

Please check your mail, I have attached these to literatures

yes, I am eager to discuss the comparision results with you for steel-argon


Regards
Raghavendra

raagh77 is offline   Reply With Quote

Old   June 3, 2009, 05:49
Default
  #47
Member
 
Raghavendra
Join Date: Mar 2009
Location: Goteborg, Sweden
Posts: 95
Rep Power: 17
raagh77 is on a distinguished road
Send a message via Yahoo to raagh77 Send a message via Skype™ to raagh77
Hi Rachel Vogl, Good morning

I used limiting scheme divScheme as you suggested but there was not much improvement (simulation still crashing for high density case and with free surface)

Also I increased nNonOrthogonalCorrectors to 8 as my mesh is not structured but still not much success


Regards
Raghavendra
raagh77 is offline   Reply With Quote

Old   June 3, 2009, 06:34
Default @ Alberto
  #48
Member
 
Raghavendra
Join Date: Mar 2009
Location: Goteborg, Sweden
Posts: 95
Rep Power: 17
raagh77 is on a distinguished road
Send a message via Yahoo to raagh77 Send a message via Skype™ to raagh77
I am modelling steel as Newtonian fluid
raagh77 is offline   Reply With Quote

Old   June 15, 2009, 11:29
Default is that because of unstructured grid?
  #49
Member
 
Raghavendra
Join Date: Mar 2009
Location: Goteborg, Sweden
Posts: 95
Rep Power: 17
raagh77 is on a distinguished road
Send a message via Yahoo to raagh77 Send a message via Skype™ to raagh77
Hi Alberto and Rachel,

I tried injecting Steel-Argon with my earlier becker 3D case (rectangular bubblecolumn which I used to validate water-air case) and with some modification with pressure scheme the simulation was quite stable and also results seems to be quite good..

But with the same case setup (I mean with 0, constant and system) I tried with the cylindrical bubble column of unstructured grid (around 0.5 million cells) simulation is stable without turbulence being on.

When I switch on the turbulence simulation crashes after few iterations
this time because of the divergence in timestep continuity error.
the residual for timestep continuity error keeps on increasing as soon as I switch on turbulence and it explodes after few iterations.

Is that because of unstructured grid ? I tried increasing non-orthogonal correctors to 8 but the change what I noticed is the simulation crashes after performing few more iterations..
also I tried with non-orthogonal correctors 20 and the simulation runs for few more iterations and crashes again

and again the reason for instability is that timestep continuity error residual.

Regards
Raghavendra
raagh77 is offline   Reply With Quote

Old   June 16, 2009, 03:15
Default
  #50
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
Hi,

no, it's not the unstructured grid. If the grid is so bad to lead to instabilities you would notice it also in the laminar case.

We talked some time ago about stability problems with the turbulence model in twoPhaseEulerFoam. The problem is probably the same. Btw, are you using that turbulence model with the air-steel system?

P.S. What changes did you do to the pressure scheme, if you can share?

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   June 16, 2009, 04:41
Default
  #51
Member
 
Raghavendra
Join Date: Mar 2009
Location: Goteborg, Sweden
Posts: 95
Rep Power: 17
raagh77 is on a distinguished road
Send a message via Yahoo to raagh77 Send a message via Skype™ to raagh77
Hi Alberto,

yes for the rectangular bubble column I used turbulence for steel-air also
but for the cylindrical case it is creating problem..

I changed the solver schemes for pressure

p PCG
{
preconditioner DIC;
tolerance 1e-10;
relTol 0;
};

and used first order (upwind) schemes for
k, epsilon and
limited alpha between 0 to 1 by Gauss limitedLinear01 1

these are the only changes I made and it worked fine for Steel-air in rectangular bubble column

..
Regards
Raghavendra
raagh77 is offline   Reply With Quote

Old   June 17, 2009, 11:20
Default
  #52
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
Hi,

thanks for your reply.

I have some doubt that with that difference in the fluid properties you can use the turbulence model based on the mixture. It sounds quite a strong assumption!

This said, if you suspect that the difference is actually given by the mesh, and not by the BC's or the numerics, you can still generate an hexhedral mesh for a cylinder. The typical configuration used in bubble columns is to split the section (circle) in a central square and four sides, and mesh them with hex cells. Axially you should not have any problem if the geometry is a simple cylinder without lateral inlets.

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   June 18, 2009, 04:18
Default
  #53
Member
 
Raghavendra
Join Date: Mar 2009
Location: Goteborg, Sweden
Posts: 95
Rep Power: 17
raagh77 is on a distinguished road
Send a message via Yahoo to raagh77 Send a message via Skype™ to raagh77
Hello Alberto,

Yes you are right. I could have started with structured grids but I already had simulation running in CFX with this unstructured grids (of 0.5 Million cells) so I though to doing with the same mesh in OF also..

Now I have to try with structured grids..

Is it advisible to change pressure scheme from piso to simpleTransient in twoPhaseEulerFoam?

Regards
Raghavendra
raagh77 is offline   Reply With Quote

Old   June 18, 2009, 12:50
Default
  #54
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
Hi,

in my experience "multphase" and "non-hex grids" are not a good match. It takes a bit more time to generate a good hex grid, but with the same number of cells the result is typically a lot better, and the convergence too.

You can change the scheme from PISO to an unsteady SIMPLE, of course. This would allow you to under-relax inside each time step, and if you want to do something more refined, to check for residuals convergence and adapt the time step as a consequence. It has been on my to-do list for a long time (and it's not done yet, because I'm busy with other stuff) :-(

Best,
sharonyue 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   June 18, 2009, 16:36
Default
  #55
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
It is always interesting to see someone without anything better to do than spamming. User reported.

Update: Thanks for the cleanup to the CFD-Online people! :-)

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; June 19, 2009 at 13:54.
alberto is offline   Reply With Quote

Old   June 20, 2009, 16:06
Default
  #56
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
Hi Raghavendra,

an additional hint: check the values of k, epsilon and the turbulent viscosity ratio (nutb/nub) where you have no liquid. I quickly took a look at those, and noticed the turbulent viscosity becomes large there.
It might be worth to limit the turbulent viscosity ratio (and as a consequence k) to some upper value.

Best,
Alberto
__________________
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   June 20, 2009, 18:18
Default
  #57
Member
 
Raghavendra
Join Date: Mar 2009
Location: Goteborg, Sweden
Posts: 95
Rep Power: 17
raagh77 is on a distinguished road
Send a message via Yahoo to raagh77 Send a message via Skype™ to raagh77
Hi Alberto,

Thanks for your support

I will look into that..

Have a nice weekend



Regards
-
Raghavendra
raagh77 is offline   Reply With Quote

Old   June 20, 2009, 18:40
Default
  #58
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
You're welcome.

I actually coded the limiter in quite a rough manner, and I also added some submodels for gas-liquid flows (bubble pressure term, bubble induced turbulence, some drag correlation for contaminated water).

The turbulent viscosity limiter indeed plays an important role in my test case, which is Pfleger et al. bubble column. I represented it in 2D, with 45 cm of water in a 0.2m x 0.55m domain. If you look at the zone without liquid, the turbulent viscosity tends to become extremely high. Limiting the turbulent viscosity ratio to 10^5 there (value taken by FLUENT) stabilized the solution significantly.

Coding the limiter is very easy. Before correcting the effective viscosity in kEpsilon.H, simply add these lines:

Code:
scalar maxNutb = max(nutb).value();
Info << "Maximum turbulent viscosity of continuous phase = " << maxNutb << endl;

if (RASturbulence && (maxNutb/nub.value() > maxTurbulentViscosityRatio) && limitNuRatio)
{
   Info << "Warning: Limiting total viscosity ratio to " << 
           maxTurbulentViscosityRatio << endl;
   nutb.min(maxTurbulentViscosityRatio*nub);
   k = max(sqrt(nutb*epsilon/Cmu),dimensionedScalar("zero", k.dimensions(), 1.0e-8)) ;  
}
where
  • "RASturbulence" is a switch called simply "turbulence" in twoPhaseEulerFoam
  • maxTurbulentViscosityRation is a scalar I added to the RASproperties dictionary and I read in createFields.H
  • limitNuRatio is a switch to turn the limiter on or off at will, which I added to the RASproperties dictionary
There is probably a better way to do this. It was just a few minutes thought

Best,
sharonyue, shadowfax and sxpsxp007 like 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   June 23, 2009, 05:14
Default
  #59
Member
 
Raghavendra
Join Date: Mar 2009
Location: Goteborg, Sweden
Posts: 95
Rep Power: 17
raagh77 is on a distinguished road
Send a message via Yahoo to raagh77 Send a message via Skype™ to raagh77
Hi Alberto,

limiting nutb/nub seems to be interesting even I will try that in my Pfleger bubble column case for air-water.

Coming back to Steel-argon case yesterday I tried with structured mesh and simulation seems to be quite stable though it is really slow (for one second it took 4 hours with 70K cells..! I am limiting Co to 0.75 so the timestep is in the order of 0.1milliseconds)

I was really surprised unstructured grid (1.2Mcells) failing for a stable simulation. The same grid in CFX took less than 2 days to complete the simulation (200 seconds of simulation)

Anyways, going back to strucutred grid helped me a lot in my case.

I will try with limiting nutb/nub for 2D bubble column water-air case and
I will keep updating about this here

Regards
Raghavendra
raagh77 is offline   Reply With Quote

Old   June 23, 2009, 17:13
Default
  #60
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
Hi,

Quote:
Originally Posted by raagh77 View Post
Hi Alberto,
limiting nutb/nub seems to be interesting even I will try that in my Pfleger bubble column case for air-water.
OK. It should keep in general, not only in the air-water system however. Where there is no continuous phase, the turbulence quantities are definetly too big.

Quote:
Coming back to Steel-argon case yesterday I tried with structured mesh and simulation seems to be quite stable though it is really slow (for one second it took 4 hours with 70K cells..! I am limiting Co to 0.75 so the timestep is in the order of 0.1milliseconds)
A time step of 10^-4 is OK for this kind of simulations. The long time is probably due to the high number of iterations on the pressure equation. This seems to be significantly reduced using GAMG (but it might affect stability a bit).

Best,
Alberto
__________________
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
Burgerbs equation non constant Boundary Conditions Initial Conditions arkangel OpenFOAM Running, Solving & CFD 1 October 2, 2008 15:48
Boundary conditions for turbulent boundary layer Thomas FLUENT 1 June 17, 2008 06:14
boundary conditions for boundary layer flow A. Al-zoubi CFX 0 November 3, 2007 08:11
TwoPhaseEulerFoam and InletOutlet boundary condition hemph OpenFOAM Running, Solving & CFD 10 January 29, 2007 10:47
Integral boundary conditions turbulent intensitylength boundary conditions olesen OpenFOAM Running, Solving & CFD 0 July 27, 2006 08:18


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