|
[Sponsors] |
How to calculate the gradient at a boundary patch |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 28, 2015, 04:14 |
How to calculate the gradient at a boundary patch
|
#1 |
New Member
Join Date: Oct 2014
Posts: 9
Rep Power: 11 |
It seems that grad() function can only calculate the gradient of the scalar at the cell center.
snGrad() is just for a normal gradient at boundary, which returns a scalar but not vector as grad() does. Is any function in OF can directly calculate the gradient of a scalar for a boundary patch? Thanks. xiaofish |
|
April 28, 2015, 06:23 |
|
#2 |
Senior Member
Yogesh Bapat
Join Date: Oct 2010
Posts: 102
Rep Power: 15 |
Hello,
I am not sure if you can get direct gradient instead of surface normal gradient at the boundary. But you can get gradient at the adjacent cell by taking cell ID of the adjacent cell. Regards, -Yogesh |
|
April 30, 2015, 11:53 |
|
#3 |
Senior Member
Hesam
Join Date: Feb 2015
Posts: 139
Rep Power: 11 |
Hello,
You can compute gradient of a scalar with paraView : filters --> alphabetical ---> compute derivatives |
|
Tags |
boundary, gradient at boundary |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Commercial meshers] Fluent3DMeshToFoam | simvun | OpenFOAM Meshing & Mesh Conversion | 50 | January 19, 2020 15:33 |
Near wall treatment in k-omega SST | Arnoldinho | OpenFOAM Running, Solving & CFD | 38 | March 8, 2017 13:48 |
createPatch Segmentation Fault (CORE DUMPED) | sam.ho | OpenFOAM Pre-Processing | 2 | April 21, 2014 02:01 |
[Commercial meshers] Fluent msh and cyclic boundary | cfdengineering | OpenFOAM Meshing & Mesh Conversion | 48 | January 25, 2013 03:28 |
Cyclic Boundary Condition | Luiz Eduardo Bittencourt Sampaio (Sampaio) | OpenFOAM Running, Solving & CFD | 36 | July 2, 2012 12:23 |