|
[Sponsors] |
September 10, 2013, 10:03 |
interFoam's UEqn.
|
#1 |
Senior Member
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 849
Rep Power: 18 |
Hi guys,
In thies UEqn we have: Code:
solve ( UEqn == fvc::reconstruct ( ( fvc::interpolate(interface.sigmaK())*fvc::snGrad(alpha1) - ghf*fvc::snGrad(rho) - fvc::snGrad(p_rgh) ) * mesh.magSf() ) ); Code:
solve ( UEqn == interface.sigmaK()*fvc::grad(alpha1) - ghf*fvc::grad(rho) - fvc::grad(p_rgh) ); |
|
September 10, 2013, 13:34 |
|
#2 | |
Member
Eysteinn Helgason
Join Date: Sep 2009
Location: Gothenburg, Sweden
Posts: 53
Rep Power: 17 |
Quote:
is the surface normal gradient that is defined on the face of the cell. (Which explains why interface.sigmaK is interpolated from the cell center to the face before performing the multiplication.) fvc::reconstruct reconstructs the cell centered values from the face values. Hope this helps /Eysteinn |
||
September 12, 2013, 23:10 |
|
#3 | |
Senior Member
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 849
Rep Power: 18 |
Quote:
I tried to revise it into this: Code:
if (pimple.momentumPredictor()) { solve ( UEqn == interface.sigmaK()*fvc::grad(alpha1) - gh*fvc::grad(rho) - fvc::grad(p_rgh) ); } |
||
September 13, 2013, 07:11 |
|
#4 |
Member
Eysteinn Helgason
Join Date: Sep 2009
Location: Gothenburg, Sweden
Posts: 53
Rep Power: 17 |
I have not used this solver, but my (wild) guess is that this is used to resolve some
convergence problems with the momentum equation. When you ran the cavity case was the momentumPredictor set to yes under pimple in the system/fvSolution? /Eysteinn |
|
September 15, 2013, 21:17 |
|
#5 |
Senior Member
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 849
Rep Power: 18 |
Sorry, I did not, so the log is absolutely the same. While I tried to set it to yes, but the result is almost the same. not differ much.
|
|
July 9, 2016, 06:43 |
|
#6 |
Member
Hao Chen
Join Date: Aug 2014
Posts: 66
Rep Power: 0 |
Hi
I am also curious about it. Anybody has a comment on this issue? |
|
July 11, 2016, 03:36 |
|
#7 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
Using cell centered values is not consistent and can lead to problems. I think you can find details in S. S. Deshpande, L. Anumolu, and M. F. Trujillo, Computational Science & Discovery 5, 014016+ (2012), ISSN 1749-4699, URL http://dx.doi.org/10.1088/1749-4699/5/1/014016. (which anyone working with interFoam should read).
__________________
*On twitter @akidTwit *Spend as much time formulating your questions as you expect people to spend on their answer. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
A question about UEqn sonicFoam | lfgmarc | OpenFOAM Programming & Development | 6 | February 1, 2015 17:49 |
About UEqn in icoFoam. | sharonyue | OpenFOAM Programming & Development | 11 | July 3, 2013 00:44 |
Difference between UEqn in sonicFoam & Theory | sasanghomi | OpenFOAM Programming & Development | 9 | June 27, 2013 05:12 |
Adding an explicit source term in the UEqn() | Anne Lincke | OpenFOAM Running, Solving & CFD | 0 | June 25, 2013 13:19 |
Source term problem in UEqn of simpleFoam | fisch | OpenFOAM Programming & Development | 1 | June 17, 2011 11:57 |