|
[Sponsors] | |||||
How to calculate the gradient at a boundary patch |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|
|
#1 |
|
New Member
Join Date: Oct 2014
Posts: 9
Rep Power: 13 ![]() |
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 |
|
|
|
|
|
|
|
|
#2 |
|
Senior Member
Yogesh Bapat
Join Date: Oct 2010
Posts: 102
Rep Power: 17 ![]() |
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 |
|
|
|
|
|
|
|
|
#3 |
|
Senior Member
Hesam
Join Date: Feb 2015
Posts: 139
Rep Power: 12 ![]() |
Hello,
You can compute gradient of a scalar with paraView : filters --> alphabetical ---> compute derivatives |
|
|
|
|
|
![]() |
| Tags |
| boundary, gradient at boundary |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Commercial meshers] Fluent msh and cyclic boundary | cfdengineering | OpenFOAM Meshing & Mesh Conversion | 49 | November 29, 2024 22:16 |
| [Commercial meshers] Fluent3DMeshToFoam | simvun | OpenFOAM Meshing & Mesh Conversion | 50 | January 19, 2020 16:33 |
| Near wall treatment in k-omega SST | Arnoldinho | OpenFOAM Running, Solving & CFD | 38 | March 8, 2017 14:48 |
| createPatch Segmentation Fault (CORE DUMPED) | sam.ho | OpenFOAM Pre-Processing | 2 | April 21, 2014 03:01 |
| Cyclic Boundary Condition | Luiz Eduardo Bittencourt Sampaio (Sampaio) | OpenFOAM Running, Solving & CFD | 36 | July 2, 2012 13:23 |