CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Difference between codes and representations

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   July 2, 2009, 11:59
Default Difference between codes and representations
  #1
Senior Member
 
Antonio Martins
Join Date: Mar 2009
Location: Porto, Porto, Portugal
Posts: 112
Rep Power: 17
titio is on a distinguished road
Send a message via MSN to titio Send a message via Skype™ to titio
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
titio is offline   Reply With Quote

 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 00:06.