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

Implicit solver for gamma volumefraction equation

Register Blogs Community New Posts Updated Threads Search

Like Tree8Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 8, 2009, 04:35
Default
  #21
Senior Member
 
isabel
Join Date: Apr 2009
Location: Spain
Posts: 171
Rep Power: 17
isabel is on a distinguished road
I only have advisors this week. I am at a OpenFOAM course, which finishes on Friday.

fv::gaussConvectionScheme<scalar>(mesh, phi, UDs).fvmDiv(phi, psi),

This line is to calculate div(phi, psi). The begining is only to specify to the program how to calculate it.

And the div(U) is repeated.
Pirlu likes this.
isabel is offline   Reply With Quote

Old   July 8, 2009, 05:36
Default
  #22
Senior Member
 
Sandy Lee
Join Date: Mar 2009
Posts: 213
Rep Power: 18
sandy is on a distinguished road
Wow, it is great. Thank you very much.

By the way, what a OF course are you studying? Do you have some documents or websites to share?

Sandy
sandy.lee37@gmail.com
sandy is offline   Reply With Quote

Old   November 5, 2009, 04:31
Default
  #23
Senior Member
 
J. Cai
Join Date: Apr 2009
Posts: 180
Rep Power: 17
chiven is on a distinguished road
Hi, everybody, I am trying to use the interPhaseChangeFoam in OpenFOAM-1.6, and just meet the same problem how to set MULES::implicit in the fvSolution file. Any suggestions are appreciated.

Best regards,
Chiven
chiven is offline   Reply With Quote

Old   November 5, 2009, 19:48
Default
  #24
Senior Member
 
Sandy Lee
Join Date: Mar 2009
Posts: 213
Rep Power: 18
sandy is on a distinguished road
Hi Chiven, is there the tutorial about InterPhaseChangeFoam in OF-1.6? I use the OF-1.5.

-------------------------------------
gamma MULESImplicit
{
maxIter 1000;
nLimiterIter 10;
maxUnboundedness 1;
CoCoeff 0.2;
solver PBiCG
{
preconditioner DILU;
tolerance 1e-10;
relTol 0;
};
};


sandy is offline   Reply With Quote

Old   November 5, 2009, 20:23
Default
  #25
Senior Member
 
J. Cai
Join Date: Apr 2009
Posts: 180
Rep Power: 17
chiven is on a distinguished road
Hi, Sandy, thanks for your reply.

I have justed used the similar setting like yours, but failed. At this time, I have NOT run the interPhaseChangeFoam successfully in OpenFOAM-1.6.

Code:
    alpha1
    {
        MULESImplicit
        {
        maxIter 1000;
        nLimiterIter 10;
        maxUnboundedness 1;
        CoCoeff 0.2;
            solver PBiCG
            {
            preconditioner DILU;
            tolerance 1e-10;
            relTol 0;
            }
        }
    }
Best regards,
Chiven



Quote:
Originally Posted by sandy View Post
Hi Chiven, is there the tutorial about InterPhaseChangeFoam in OF-1.6? I use the OF-1.5.

-------------------------------------
gamma MULESImplicit
{
maxIter 1000;
nLimiterIter 10;
maxUnboundedness 1;
CoCoeff 0.2;
solver PBiCG
{
preconditioner DILU;
tolerance 1e-10;
relTol 0;
};
};
chiven is offline   Reply With Quote

Old   March 29, 2010, 14:20
Default
  #26
Senior Member
 
Suresh kumar Kannan
Join Date: Mar 2009
Location: Luxembourg, Luxembourg, Luxembourg
Posts: 129
Rep Power: 17
kumar is on a distinguished road
Hello
I am planning to modify the interfoam solver of OF-1.6.x with the implcitMULES and use an LES simulation. I am studying the breakup of 2D liquid sheets. I have already run some simulations in which i see that the solution is very much dependent in the CFL number

I want to know th experience of other interFOAM users who have used an implicitMULES. Do you really find a difference in the solution of two explicitMULES and implicitMULES. And if yes what was the improvement. Is it advicable to give the implicitMULES a try. Will it allow me to use higher CFL numbers.

bye
with regards
K.Suresh kumar
kumar is offline   Reply With Quote

Old   April 8, 2010, 06:08
Default
  #27
Senior Member
 
Suresh kumar Kannan
Join Date: Mar 2009
Location: Luxembourg, Luxembourg, Luxembourg
Posts: 129
Rep Power: 17
kumar is on a distinguished road
Hello interFoam and interphasechange users,

I implemented the implicit::MULES in interFoam in OF-1.6.x . Thanks to Niels and pbohorquez.and ran it with the LES model on some preliminary test cases. I can already see that the results are much better than the explicit::MULES case.
So i have decided to further look into the implicit::MULES solver. I already read the posts in this discussion. That gave me a good idea about the form of the equation that is being solved in the two cases.

But I would like to know more about the discretization of the transport equation when i am using an implicit::MULES, because i really dont get anything about the parameters that i specify in the fvSolution

gamma PBiCG
{
MULESImplicit
{
maxIter 1000;
nLimiterIter 10;
maxUnboundedness 1;
CoCoeff 0.2;
}
preconditioner DILU;
tolerance 1e-06;
relTol 0;
};

so it would be very useful to me if anybody gives some explanation about the discretization in the case of MULES implicit.

with regards
K.Suresh kumar
kumar is offline   Reply With Quote

Old   July 14, 2010, 13:25
Default
  #28
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25
nimasam is on a distinguished road
hi friend
the correct form of alpha fvSolution is like below :
alpha1 MULESImplicit
{
maxIter 1000;
nLimiterIter 10;
maxUnboundedness 1;
CoCoeff 0.2;
solver PBiCG;
preconditioner DILU;
tolerance 1e-06;
relTol 0;
};
nimasam is offline   Reply With Quote

Old   June 17, 2011, 17:18
Default
  #29
Member
 
Kai
Join Date: May 2010
Location: Shanghai
Posts: 61
Blog Entries: 1
Rep Power: 16
kaifu is on a distinguished road
Quote:
Originally Posted by sandy View Post
==================================

Hi, it seems that you lost the compressible term: div(gamma*(1-gamma)*phi). I guess the gamma equation should be as follows:

d(rho*gamma)/dt + div(phi*gamma) + div(gamma*(1-gamma)*phi) - Sp*gamma - Su = 0
Hi Sandy,

In order to strictly restrict alpha in [0,0.52], I am now considering to use MULES in case of bubbly flow. I have a question here since in Weller's scheme, there is a compression term (eqn 4.13, Rusche). And it is said "The arti ficial term is only active in the thin interface region because of the multiplication term gamma(1-gamma)". It is true in case of liquid-vapor with clear interface which only exists somewhere. However in bubbly flow, the interface could be everywhere. I dont know if it is appropriate to use this scheme in my case. Thanks.

// Kai
kaifu is offline   Reply With Quote

Old   June 27, 2011, 21:11
Default
  #30
Senior Member
 
Sandy Lee
Join Date: Mar 2009
Posts: 213
Rep Power: 18
sandy is on a distinguished road
You can try them, respectively. I guess, there are not differences in results but in the performance of convergence ...
sandy is offline   Reply With Quote

Old   July 14, 2011, 05:08
Default
  #31
Senior Member
 
Pablo
Join Date: Mar 2009
Posts: 102
Rep Power: 17
pablodecastillo is on a distinguished road
Hello Suresh,

What are the steps to update interfoam from mules::explicit to mules::implicit??

Advanced thanks,

Pablo
pablodecastillo is offline   Reply With Quote

Old   July 14, 2011, 06:01
Default
  #32
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
akidess will become famous soon enough
Pablo, simply replace the call to MULES::explicitSolve in alphaEqn.H to MULES::implicitSolve and recompile. You will need some extra entries in the fvSolution file as shown in a post earlier in this thread, and that's it.
akidess is offline   Reply With Quote

Old   July 14, 2011, 13:47
Default
  #33
Senior Member
 
Pablo
Join Date: Mar 2009
Posts: 102
Rep Power: 17
pablodecastillo is on a distinguished road
Thanks Anton,

It is working, i copied from interphase tutorial;

alpha1
{
maxUnboundedness 1e-5;
CoCoeff 2;
maxIter 5;
nLimiterIter 2;

solver PBiCG;
preconditioner DILU;
tolerance 1e-12;
relTol 0.1;
};

but what mean cocoeff,maxiter and nlimiter??
pablodecastillo is offline   Reply With Quote

Old   March 27, 2012, 23:11
Default report
  #34
Senior Member
 
Ehsan
Join Date: Mar 2009
Posts: 112
Rep Power: 17
ehsan is on a distinguished road
Hello all

Could any one share this file with me:
OpenCFD, OpenCFD Technical report no. TR/HGW/02 (unpublished); 2005

Regards
ehsan is offline   Reply With Quote

Old   June 25, 2012, 22:41
Default
  #35
New Member
 
NieYongguang
Join Date: Sep 2010
Posts: 27
Rep Power: 16
nygbook is on a distinguished road
Quote:
Originally Posted by sandy View Post
==================================

Hi, it seems that you lost the compressible term: div(gamma*(1-gamma)*phi). I guess the gamma equation should be as follows:

d(rho*gamma)/dt + div(phi*gamma) + div(gamma*(1-gamma)*phi) - Sp*gamma - Su = 0

In MULESTemplates.C,
phiPsi = phiGamma = phi*gamma + gamma*(1-gamma)*phi

is it right? If that, in gammaEqu.H, why Su = divU*gamma + vDotcAlphal ? It look like that the term divU*gamma was repeatedly solved ??

I knew, to the gamma transport equation,
Source term = vDotvAlphal * gamma + (1 - gamma) * vDotcAlphal = (vDotvAlphal - vDotcAlphal) * gamma + vDotcAlphal.
So, Sp = (vDotvAlphal - vDotcAlphal) * gamma , and it will be solved implicitly.
Su = vDotcAlphal, and it is an explicit term in this equation.

but again, why Su also includes the term divU*gamma in gammaEqu.H ? If the MULES::implicitSolver was chose, this term should be deleted, right?
hello, Sandy. I have some question about the source item in interPhaseChangeFoam. In this Solver, vDotcAlphal = vDotvAlphal * gamma + (1 - gamma) * vDotcAlphal = (m+ + m-)*(1/rho1 - alpha(1/rho1 -1/rho2)). I doesn't understand why it is (1/rho1 - alpha(1/rho1 - 1/rho2). I think it should be source = (m+ + m-)/rho1.
So, can you give me some suggestion?
nygbook is offline   Reply With Quote

Old   June 25, 2012, 23:16
Default
  #36
Senior Member
 
Sandy Lee
Join Date: Mar 2009
Posts: 213
Rep Power: 18
sandy is on a distinguished road
Hi, why you not read some papers by Dr. Lu Naixian and deduce those equations?
sandy is offline   Reply With Quote

Old   March 27, 2014, 13:02
Default
  #37
Member
 
Emeline Noel
Join Date: Dec 2013
Location: Paris
Posts: 31
Rep Power: 12
zarox is on a distinguished road
Hi,

I think, it is not as trivial as you suggest in a not very friendly way. In addition, it is link to a query often ask in this forum and As far as I have searched I did not find an answer.

If someone have any interrest on this, in can give some suggestion.

Bye
zarox is offline   Reply With Quote

Old   November 7, 2014, 18:20
Default
  #38
New Member
 
Cong Gu
Join Date: Jun 2013
Posts: 10
Rep Power: 13
gucong is on a distinguished road
Quote:
Originally Posted by nygbook View Post
hello, Sandy. I have some question about the source item in interPhaseChangeFoam. In this Solver, vDotcAlphal = vDotvAlphal * gamma + (1 - gamma) * vDotcAlphal = (m+ + m-)*(1/rho1 - alpha(1/rho1 -1/rho2)). I doesn't understand why it is (1/rho1 - alpha(1/rho1 - 1/rho2). I think it should be source = (m+ + m-)/rho1.
So, can you give me some suggestion?
Hi,

I'm also confused. Have you been successful in finding why the volumetric source is formulated with this coefficient? It is the same as rho_mixture / (rho_1 * rho_2).
gucong is offline   Reply With Quote

Old   July 11, 2015, 05:59
Default
  #39
Senior Member
 
Przemek
Join Date: Jun 2011
Posts: 249
Rep Power: 16
gaza is on a distinguished road
Quote:
hello, Sandy. I have some question about the source item in interPhaseChangeFoam. In this Solver, vDotcAlphal = vDotvAlphal * gamma + (1 - gamma) * vDotcAlphal = (m+ + m-)*(1/rho1 - alpha(1/rho1 -1/rho2)). I doesn't understand why it is (1/rho1 - alpha(1/rho1 - 1/rho2). I think it should be source = (m+ + m-)/rho1.
Hi nygbook
You can find an answer in Jibran Heider master thesis in chapter 2.1

http://www.cimne.com/cvdata/cntr2/sp...branHaider.pdf
liliang likes this.
__________________
best regards
pblasiak
gaza 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
Euler Equation Implicit Upwind Schemes felixrieper OpenFOAM Running, Solving & CFD 1 February 9, 2014 01:58
FEM pressure poisson equation (Implicit) cfd-beginner Main CFD Forum 0 August 9, 2005 14:32
Compressive term in gamma equation Ali (Ali) OpenFOAM Running, Solving & CFD 0 February 17, 2005 18:19
Implicit equation solving Dr B.M. Smith (Smith) OpenFOAM Running, Solving & CFD 2 December 10, 2004 06:36
implicit solver john Siemens 1 November 11, 2003 09:55


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