|
[Sponsors] |
May 28, 2020, 15:06 |
UDF coming cells
|
#1 |
New Member
Alexander Sidorov
Join Date: May 2020
Posts: 1
Rep Power: 0 |
Dear Fluent experts, good afternoon!
Please, tell me which way to dig, or maybe someone has encountered this and can tell. The story is this. I supplement the solver by calculating some of the quantities I need, one of the terms of which is this thing: ux*dSigma/dx=ux*((sigma(c-1)-sigma(c+1))/2deltax) s-1 - cell "lower" on the axis, s + 1 - cell "higher" on the axis. - by itself conditionally. I plan to replace the derivative of the quantity with its finite-difference analogue. However, here's the misfortune, how to find the nearest cells? As for the delta x, I understood roughly - if I know the number of the adjacent cell, I can find the coordinates of the centers of the cells and find the distance between them through C_CENTROID (x, c, t), it will suit me. I tried to export the centers of the cells with their numbers, and realized that the cell with the number +1 could be in any direction. So you need to understand how to find the numbers of all adjacent cells. Hope to help! Thanks in advance |
|
May 30, 2020, 07:27 |
Clarity
|
#2 | |
Senior Member
|
The description you provided is not very clear, such as, the statement,
Quote:
__________________
Regards, Vinerm PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] snappyHexMesh sticking point | natty_king | OpenFOAM Meshing & Mesh Conversion | 11 | February 20, 2024 09:12 |
[snappyHexMesh] snappyHexMesh Segmentation Fault | avd28 | OpenFOAM Meshing & Mesh Conversion | 11 | May 11, 2015 20:32 |
Setting pressure value for specific cells, UDF | Amir | FLUENT | 2 | September 1, 2005 18:59 |
UDF: neighbour cells, upwind cells | Dmitriy Makarov | FLUENT | 0 | February 18, 2001 13:53 |
UDF for looping over nodes in cells. | Malcolm Wallace | FLUENT | 3 | July 3, 2000 09:22 |