|
[Sponsors] |
October 12, 2011, 10:38 |
Writing equations
|
#1 |
Member
Join Date: Jun 2011
Posts: 42
Rep Power: 15 |
I have a question regarding how the Navier-Stokes is formulated in icoFoam.C file.
fvVectorMatrix UEqn ( fvm::ddt(U) + fvm::div(phi, U) - fvm::laplacian(nu, U) ); solve(UEqn == -fvc::grad(p)); Above, all density terms are simplified except the one included in phi (phi = rho x U). How is this possible? Shouldn't it be something like below: fvm::ddt(rho, U) + fvm::div(phi, U) - fvm::laplacian(mu, U) == - fvc::grad(p) |
|
October 12, 2011, 12:34 |
|
#2 |
Senior Member
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 437
Rep Power: 22 |
In icoFoam, since density is uniform and constant, it is pulled out of the equation. Even "phi" is actually volume flux.
__________________
~~~ Follow me on twitter @DavidGaden Last edited by marupio; October 12, 2011 at 12:34. Reason: Even "rho" is... changed to Even "phi" is |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Guide: Writing Equations in LaTeX on the CFD Online Forums | pete | Site Help, Feedback & Discussions | 27 | May 19, 2022 04:19 |
CFD governing equations | m.gos | Main CFD Forum | 0 | April 30, 2011 15:21 |
solving only turbulence equations | afroz_javed | OpenFOAM | 1 | January 20, 2011 06:25 |
Question about UDS equations | tstorm | Fluent UDF and Scheme Programming | 1 | January 11, 2010 14:04 |
Linearized Euler Equations a problem with grad | ivan_cozza | OpenFOAM Running, Solving & CFD | 0 | October 8, 2008 15:21 |