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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 24, 2008, 06: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

Old   September 24, 2008, 06:47
Default The "definition" of grad in Op
  #2
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 22
henry is on a distinguished road
The "definition" of grad in OpenFOAM is not a definition but simply the result of the grad vector operator operating from the left of the field as it is written, i.e. it is entirely consistent with the definition of the vector multiply operator.

H
C. Okubo likes this.
henry is offline   Reply With Quote

Old   July 16, 2009, 19:54
Default Definition of skew symmetric part
  #3
Member
 
Sven Winkler
Join Date: May 2009
Posts: 70
Rep Power: 17
sven is on a distinguished road
@cfdmarkus

Where in OpenFOAM (e.g. in which file) can I find the above mentioned skew symmetric part W_ij=0.5(grad(U) - grad(U).T())??
sven is offline   Reply With Quote

Reply


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 12:27
Admission to grad school Mohit Main CFD Forum 0 October 13, 2008 03:28
Best Grad School ramboy Main CFD Forum 4 October 6, 2008 15:35
Zero-Grad Pressure Shazlan Siemens 3 March 15, 2005 04:48
Grad and lift coefficient jano FLUENT 1 June 15, 2000 19:54


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