|
[Sponsors] |
October 13, 2009, 02:03 |
simpleFoam source code
|
#1 |
Senior Member
Prapanch Nair
Join Date: Mar 2009
Location: Bangalore, India
Posts: 105
Rep Power: 17 |
Hi,
In simpleFoam source code, what do the following lines (in Ueqn.H) mean? Ueqn().relax(); eqnResidual = solve ( Ueqn() == -fvc::grd(p) ).initial Residual() I understand the part Ueqn()== -fvc::grad(p), please someone explain the rest. Thank you |
|
October 14, 2009, 03:03 |
|
#2 |
Senior Member
Markus Rehm
Join Date: Mar 2009
Location: Erlangen (Germany)
Posts: 184
Rep Power: 17 |
Hello,
Ueqn().relax(); this is for under-relaxing the momentum equation. Correct me if I am wrong, but I think, the two lines with "initialResidual" are for stopping the whole solution process once the residuals of all equations are low enough. Regards, Markus. |
|
October 14, 2009, 03:33 |
|
#3 |
Member
Jean-Peer Lorenz
Join Date: Mar 2009
Location: Rostock, Germany
Posts: 33
Rep Power: 17 |
Hi,
not exactly. The code Code:
eqnResidual = solve( .. ).initial Residual() The check, whether the convergence criterion is satisfied is done later (see file convergenceCheck.H). HTH, Jean-Peer. |
|
Tags |
residual, simplefoam, source, ueqn |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Version 15 on Mac OS X | gschaider | OpenFOAM Installation | 113 | December 2, 2009 10:23 |
[Gmsh] Compiling gmshFoam with OpenFOAM-1.5 | BlGene | OpenFOAM Meshing & Mesh Conversion | 10 | August 6, 2009 04:26 |
Fast Polygon Triangulation with source code. | Liang, Wu | Main CFD Forum | 0 | November 2, 2005 19:42 |
Pre & Post-Processor source code !! | C. Beghein | Main CFD Forum | 1 | January 30, 2002 08:35 |
Design Integration with CFD? | John C. Chien | Main CFD Forum | 19 | May 17, 2001 15:56 |