|
[Sponsors] |
August 11, 2016, 09:59 |
What does the snGrad operator do?
|
#1 |
New Member
Dominic
Join Date: May 2016
Posts: 27
Rep Power: 9 |
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! |
|
August 11, 2016, 12:09 |
|
#2 |
Senior Member
Mahdi Hosseinali
Join Date: Apr 2009
Location: NB, Canada
Posts: 273
Rep Power: 18 |
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. |
|
January 6, 2017, 06:23 |
|
#3 |
New Member
fluidflowsteel
Join Date: Jun 2016
Posts: 21
Rep Power: 9 |
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 |
|
|
|
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 |