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

discrepancy in fvc::grad(U)

Register Blogs Community New Posts Updated Threads Search

Like Tree12Likes
  • 5 Post By backscatter
  • 1 Post By anon_q
  • 1 Post By anon_q
  • 1 Post By Tobermory
  • 1 Post By Tobermory
  • 3 Post By Voulet

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   August 3, 2019, 19:26
Default discrepancy in fvc::grad(U)
  #1
Member
 
Anonymous
Join Date: Aug 2016
Posts: 75
Rep Power: 9
backscatter is on a distinguished road
HI all,

Recently I noticed that in openfoam, gradient of a vector is computed as the outer product of the gradient operator and the vector. Page 25 (bottom) of the programmer's guide defines the gradient of velocity field as:
Code:
\nabla_{i}a_{j}
which is transpose of what we exactly mean by grad(U) as:
Code:
\nabla_{j}a_{i}
I checked the computed values of gradient of velocity field near the wall (where wall normal component is expected to be dominant) and I can confirm that it outputs the transpose of what we actually want.
To my surprise, I have seen people use the grad(U) without taking its transpose in openfoam that would actually give the correct tensor.
Has anybody encountered this issue before?
OpenFOAM Version: 2.4.0
C. Okubo, Voulet, HPE and 2 others like this.
backscatter 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
how can I do dot product of U and fvc::grad(U) where U is an volVectorFiled ? mechy OpenFOAM 3 February 24, 2023 11:17
Acoustic Power Discrepancy Time4Tea FLUENT 0 August 21, 2018 09:46
implicit - (fvc::grad(U) & fvc::grad(muEff)) Kareem Abdelshafy OpenFOAM Programming & Development 1 August 20, 2016 20:57
strange behaviour of fvc::grad(U) and NonlinearKEShih turbmod - analitical comparison ancsa OpenFOAM Verification & Validation 1 January 20, 2015 11:00
FLUENT Version Mis-Match Discrepancy asd Main CFD Forum 0 April 19, 2007 04:58


All times are GMT -4. The time now is 21:38.