|
[Sponsors] |
July 25, 2022, 09:03 |
Get velocity values of adjacent cells
|
#1 |
New Member
Telangana
Join Date: Jul 2022
Posts: 8
Rep Power: 4 |
I would like to find the velocity values of neighboring cells, to find the derivative of velocity with respect to the radial direction.
I have an idea of finding the data of neighboring cells using the Thread pointer. But does not have an idea how to code it. Please share if u have any ideas. Thanks in advance............ |
|
July 27, 2022, 05:21 |
|
#2 |
Senior Member
|
The UDF manual (or whatever its name is today) has examples of various loopings.
However, you don't need that because the gradient is among the available variables, then you can simply project that along your preferred direction |
|
July 28, 2022, 05:59 |
|
#3 | |
New Member
Telangana
Join Date: Jul 2022
Posts: 8
Rep Power: 4 |
Quote:
After using the gradient I got an error MPI Application rank 0 exited before MPI finalize() with status 2 What needs to be done next ..................... |
||
July 28, 2022, 06:26 |
|
#4 | |
Senior Member
|
Quote:
I suggest you to first make some experiments with examples you can find in the manual, and then adapt them to your needs. However, some C coding capability is needed to proficiently use UDFs. |
||
Tags |
cfd fluent, pointers, udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] SnappyHexMesh running killed! | Mark JIN | OpenFOAM Meshing & Mesh Conversion | 7 | June 14, 2022 02:37 |
SimpleFoam & Theater | jipai | OpenFOAM Running, Solving & CFD | 3 | June 18, 2019 11:11 |
cellZone not taking all the cells inside | rahulksoni | OpenFOAM Running, Solving & CFD | 6 | January 25, 2019 01:11 |
[blockMesh] Create internal faces as patch in blockMesh | m.delta68 | OpenFOAM Meshing & Mesh Conversion | 14 | July 12, 2018 15:43 |
Large contrasting values across adjacent cells | sturgeon | OpenFOAM Running, Solving & CFD | 8 | June 27, 2017 12:33 |