CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Bugs

Grad evaluation

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By henry

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   September 24, 2008, 05:25
Default Hi I believe that the gradi
  #1
Member
 
Markus Weinmann
Join Date: Mar 2009
Location: Stuttgart, Germany
Posts: 77
Rep Power: 17
cfdmarkus is on a distinguished road
Hi

I believe that the gradient of a vector field grad() is not computed consistent with the common definition.
The definition of grad() in OF follows equation 2.3 in the programmers guide. The correct definition of the velocity gradient tensor is V_ij=grad(U)=du_i/dx_j. OF defines the gradient as V_ij=du_j/dx_i, which is the transpose of the correct definition.

The wrong definition of grad(U) result for example in a wrong definition of the skew symmetric part in OF: W_ij=0.5(grad(U) - grad(U).T())=0.5(du_j/dx_i - du_i/dx_j) which should actually be W_ij=0.5(du_i/dx_j - du_j/dx_i).

Is there any reason why OF uses a different definition of grad(). Does this mean that the user alwasy needs to use grad().T() in OF to get the correct definition of the gradient?

I am somewhat confused about this issue.
Markus
cfdmarkus 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Generalized Neumann BC q f nc grad f%3dg maddhi OpenFOAM Running, Solving & CFD 4 July 7, 2009 11:27
Admission to grad school Mohit Main CFD Forum 0 October 13, 2008 02:28
Best Grad School ramboy Main CFD Forum 4 October 6, 2008 14:35
Zero-Grad Pressure Shazlan Siemens 3 March 15, 2005 03:48
Grad and lift coefficient jano FLUENT 1 June 15, 2000 18:54


All times are GMT -4. The time now is 15:52.