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

GradU at the faces

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By hjasak

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 11, 2005, 16:21
Default Hi All, Does OpenFoam have an
  #1
Member
 
diablo80@web.de
Join Date: Mar 2009
Posts: 93
Rep Power: 17
sampaio is on a distinguished road
Hi All,
Does OpenFoam have an explicit scheme to calculate the Grad(U) at cell faces, like simply taking the difference between the two values at adjacent center points and dividing by the distance?

Thanks
Luiz
sampaio is offline   Reply With Quote

Old   May 11, 2005, 16:27
Default Try snGrad: OpenFOAM-1.1/sr
  #2
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33
hjasak will become famous soon enough
Try snGrad:

OpenFOAM-1.1/src/OpenFOAM/lnInclude/snGradScheme.H

Enjoy,

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   May 11, 2005, 16:40
Default Thanks Hrvoje, But I wanted t
  #3
Member
 
diablo80@web.de
Join Date: Mar 2009
Posts: 93
Rep Power: 17
sampaio is on a distinguished road
Thanks Hrvoje,
But I wanted the full gradient, i.e. the tensor, not the surface normal.

Probably I will have to implement one based on snGrad, right?

Thanks a lot,
Luiz
sampaio is offline   Reply With Quote

Old   May 11, 2005, 16:43
Default The difference between the two
  #4
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33
hjasak will become famous soon enough
The difference between the two values around the face gives you just the surface normal gradient.

For the full gradient, interpolate the cell centre gradient and if you're really keen, rip out the surface normal component and replace it with the face snGrad.

Hrv
sharonyue likes this.
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak 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
Can't connect faces Magic FLUENT 2 December 5, 2008 08:18
[Technical] Mapping cell faces to other cell faces doug OpenFOAM Meshing & Mesh Conversion 5 March 30, 2007 03:43
UNREFERENCED FACES Animesh FLUENT 2 June 15, 2005 05:39
GradU in Post sch CFX 5 September 4, 2003 17:56
shadow faces! Andrew Flintoff FLUENT 3 July 2, 2002 17:11


All times are GMT -4. The time now is 22:11.