CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Bugs

alpha or alpha1 in interFoam & interDyMFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By henry

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 8, 2009, 07:45
Default alpha or alpha1 in interFoam & interDyMFoam
  #1
New Member
 
T Somerville
Join Date: May 2009
Posts: 10
Rep Power: 17
wavytracy is on a distinguished road
From the damBreak tutorial of version 1.5, fvSchemes looks like:

gradSchemes
{
default Gauss linear;
grad(U) Gauss linear;
grad(gamma) Gauss linear;
}

divSchemes
{
div(rho*phi,U) Gauss limitedLinearV 1;
div(phi,gamma) Gauss vanLeer;
div(phirb,gamma) Gauss interfaceCompression;
}

Now, I was under the impresssion that gamma was replaced by alpha1 in version 1.6. Yet, here is the same excerpt from v1.6 damBreak tutorial, which contains alpha and alpha1:

gradSchemes
{
default Gauss linear;
grad(U) Gauss linear;
grad(alpha1) Gauss linear;
}

divSchemes
{
div(rho*phi,U) Gauss limitedLinearV 1;
div(phi,alpha) Gauss vanLeer;
div(phirb,alpha) Gauss interfaceCompression;
}

and it isn't even consistent - take a look at the same excerpt from interDyMFoam v1.6

gradSchemes
{
default Gauss linear;
grad(U) Gauss linear;
grad(alpha) Gauss linear;
}

divSchemes
{
div(rho*phi,U) Gauss upwind;
div(phi,alpha) Gauss vanLeer;
div(phirb,alpha) Gauss interfaceCompression;
}

So what is the difference between alpha and alpha1. Am I misunderstanding something, or is this a bug?

Cheers,
Tracy.
wavytracy is offline   Reply With Quote

Old   September 9, 2009, 03:54
Default
  #2
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 22
henry is on a distinguished road
alpha1 is the phase fraction of phase 1 in a multi-phase system, alpha in the control dictionaries refers to any phase. The reason for the "inconsistency" is to ensure that the discretisation schemes are the same for all phases.

H
nepomnyi likes this.
henry is offline   Reply With Quote

Old   September 9, 2009, 22:23
Default
  #3
New Member
 
T Somerville
Join Date: May 2009
Posts: 10
Rep Power: 17
wavytracy is on a distinguished road
Thank you.

But the "inconsistency" refers to the line
grad(alpha1) Gauss linear;
in the controlDict of the interFoam tutorial,

compared to the line
grad(alpha) Gauss linear;
in the controlDict of the interDyMFoam tutorial.

I'm assuming from your reply that they should both be grad(alpha)?
wavytracy is offline   Reply With Quote

Old   September 10, 2009, 03:51
Default
  #4
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 22
henry is on a distinguished road
Ahh OK, I missed that, it should be grad(alpha1) in both cases but as the scheme is set the same as the default it won't make any difference. I will correct this in 1.6.x.

Thanks

H
henry is offline   Reply With Quote

Reply

Tags
alpha, alpha1, gamma, interdymfoam, interfoam


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
Getting a concentration field around a bubble in InterFoam azman OpenFOAM Running, Solving & CFD 3 June 7, 2022 05:21
InterFoam stops after deltaT goes to 1e14 francesco_b OpenFOAM Running, Solving & CFD 9 July 25, 2020 07:36
Open Channel Flow using InterFoam type solver sxhdhi OpenFOAM Running, Solving & CFD 3 May 5, 2009 22:58
Alpha to be phased out Heiko Gerhauser Main CFD Forum 17 July 25, 2001 15:40
Determining alpha and beta for porous baffle Liaqat Khan Siemens 1 October 27, 2000 05:44


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