|
[Sponsors] |
why UEqn.H of buoyantSimpleFoam has no gravity term? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 14, 2013, 15:50 |
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 |
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 } |
|
|
|
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 |