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

GradU at the faces

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools 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: 7
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,747
Rep Power: 20
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: 7
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,747
Rep Power: 20
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
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
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
Mapping cell faces to other cell faces doug OpenFOAM Meshing Format & General Technical 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 02:41.