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

why UEqn.H of buoyantSimpleFoam has no gravity term?

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   January 14, 2013, 15:50
Default why UEqn.H of buoyantSimpleFoam has no gravity term?
  #1
Member
 
yijin Mao
Join Date: May 2010
Location: Columbia, MO
Posts: 62
Rep Power: 16
alundilong is on a distinguished road
This might be silly question, but it confused me a lot..
these snippet code comes from buoyantSimpleFoam of OpenFOAM-2.1.1
3 tmp<fvVectorMatrix> UEqn
4 (
5 fvm::div(phi, U)
6 + turbulence->divDevRhoReff(U)
7 );
8
9 UEqn().relax();
10
11 if (simple.momentumPredictor())
12 {
13 solve
14 (
15 UEqn()
16 ==
17 fvc::reconstruct
18 (
19 (
20 - ghf*fvc::snGrad(rho)
21 - fvc::snGrad(p_rgh)
22 )*mesh.magSf()
23 )
24 );
25 }
shouldn't be this?
3 tmp<fvVectorMatrix> UEqn
4 (
5 fvm::div(phi, U)
6 + turbulence->divDevRhoReff(U)
7 );
8
9 UEqn().relax();
10
11 if (simple.momentumPredictor())
12 {
13 solve
14 (
15 UEqn()
16 ==
17 fvc::reconstruct
18 (
19 (
20 - ghf*fvc::snGrad(rho)
21 - fvc::snGrad(p_rgh)
22 )*mesh.magSf()
23 )
24 + rho*g
25 );
25 }
alundilong is offline   Reply With Quote

 


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
mass source term in buoyantSimpleFoam OMN OpenFOAM 1 April 30, 2014 06:49
Gravity source term in PisoFoam DanM OpenFOAM Running, Solving & CFD 4 May 24, 2013 11:30
Gravity source term in PisoFoam DanM Main CFD Forum 0 November 28, 2012 12:59
Laplacian term missing in simpleFoam - UEqn.H Balakrshnan Ramakrishnan OpenFOAM 2 April 5, 2011 10:58
ATTENTION! Reliability problems in CFX 5.7 Joseph CFX 14 April 20, 2010 15:45


All times are GMT -4. The time now is 22:51.