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

What does the snGrad operator do?

Register Blogs Community New Posts Updated Threads Search

Like Tree7Likes
  • 2 Post By Verse
  • 5 Post By anishtain4

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 11, 2016, 09:59
Default What does the snGrad operator do?
  #1
New Member
 
Dominic
Join Date: May 2016
Posts: 27
Rep Power: 9
Verse is on a distinguished road
I noticed that fvc::grad(U) gives a 2nd order tensor with the derivative of U with respects to each of the 3 coordinates, but what exactly does snGrad do? It gives a vector with 3 components, and I don't quite know what those 3 components mean.

Thank you!
Luttappy and linyanx like this.
Verse is offline   Reply With Quote

Old   August 11, 2016, 12:09
Default
  #2
Senior Member
 
Mahdi Hosseinali
Join Date: Apr 2009
Location: NB, Canada
Posts: 273
Rep Power: 18
anishtain4 is on a distinguished road
Source code is your best friend when such questions come up.
snGrad calculates the surface normal gradient for you. Since the surface normal is only one direction, you will get one component for every component of velocity. However if you input a scalar field, you will get only a scalar. So the output really depends on the input.
anishtain4 is offline   Reply With Quote

Old   January 6, 2017, 06:23
Default
  #3
New Member
 
fluidflowsteel
Join Date: Jun 2016
Posts: 21
Rep Power: 9
fluidflowsteel is on a distinguished road
Hi ,

I have a variable p for which I want to calculate the gradient normal to the surface in both x and y directions. Can anyone help me ?

With regards
fluidflowsteel 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
Adding non-orthogonal corrector to snGrad in fixedValueBcs ssss OpenFOAM Programming & Development 2 October 10, 2018 00:53
Using the snGrad operation bahrmann OpenFOAM Programming & Development 5 October 1, 2015 04:30
Problem with snGrad() for heat flux. SKLee OpenFOAM Programming & Development 4 March 4, 2014 22:46
Trying to integrate using snGrad(). Need some help MechBoom OpenFOAM Programming & Development 3 November 19, 2013 17:01
advanced function with snGrad Ingenierias2003 OpenFOAM 0 July 21, 2011 09:29


All times are GMT -4. The time now is 09:04.