|
[Sponsors] |
July 2, 2009, 11:59 |
Difference between codes and representations
|
#1 |
Senior Member
|
Hi Foamers,
I have a small question concerning relaxation. Is there any difference, when writting the code, between the following forms of relaxation, when solving the Navier stokes equation for laminar flow of newtonian fluids. Form 1 fvVector UEqn ( fvm::ddt(U) + fvm::div(phi,U) - fvm::laplacian(nu,U) ); UEqn.relax(); solve (UEqn == -fvc:: grad(p)); Form 2 fvVector UEqn() ( fvm::ddt(U) + fvm::div(phi,U) - fvm::laplacian(nu,U) ); UEqn().relax(); solve (UEqn() == -fvc:: grad(p)); Is there any significant difference between the two formulations. Thanks, Titio |
|
|
|