|
[Sponsors] |
May 19, 2009, 14:22 |
Relaxation
|
#1 |
Senior Member
|
Hi all,
I have a small question concerning relaxation. Is there any difference between the two formulations in terms of relative position of relax(): H1: fvVectorMatrix UEqn ( fvm::ddt(U) + fvm::div(phi, U) - fvm::laplacian(, U) ); UEqn.relax(); solve(UEqn == - fvc::grad(p) ); H2: H1: fvVectorMatrix UEqn ( fvm::ddt(U) + fvm::div(phi, U) - fvm::laplacian(, U) ); solve(UEqn == - fvc::grad(p) ); UEqn.relax(); Are H1 and H2 equivalent or different? António Martins |
|
May 20, 2009, 11:11 |
|
#2 |
New Member
Joseph Urich
Join Date: Mar 2009
Location: Pittsburgh, PA
Posts: 21
Rep Power: 17 |
Antonio,
Your second arrangement will have no effect. Using relax() with an OpenFoam matrix class enlarges the diagonal terms in the matrix, to increase diagonal dominance. So it must be applied before you call solve(). Once you call solve(), OpenFoam solves the matrix for U, therefore changes to the matrix after that will have no effect on U. I hope that helps, Joe Urich |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Relaxation and convergence | sammi | Phoenics | 0 | March 20, 2008 03:32 |
Relaxation Factors | Tim | Phoenics | 3 | June 30, 2004 02:03 |
relaxation parameter | rvndr | Main CFD Forum | 0 | May 5, 2004 12:34 |
Question on adjusting relaxation factor | CFD Rookie | Main CFD Forum | 3 | January 26, 2004 14:37 |
Relaxation factor | Moon | Siemens | 1 | June 13, 2003 11:13 |