CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   Access value in cell across an interior interface (https://www.cfd-online.com/Forums/fluent-udf/174424-access-value-cell-across-interior-interface.html)

iteration July 12, 2016 07:05

Access value in cell across an interior interface
 
Hi all.
Which macros could I use to store the value of an UDM in a cell opposite to an interior interface in another UDM in the actual cell?
Usage of F_C0() and F_C1() doesn't seem to work at the interface. I also can post my UDF attempt, if required. Thank you.

iteration July 13, 2016 04:38

By now, I've solved the problem by looping over all cells in the neighbor cell zone and looking for the min. distance between the cell centroids (in the neighbor cell zone) and the actual cell centroid.
I do so for each cell at the interface in the actual cell zone and store the neighbor cell_t in a UDM, but only in the first iteration.

The nested loops look a little bit tricky, buf if anyone is interested, I'll try to post a generalized code. And please let me know, if someone else knows a more elegant solution.


All times are GMT -4. The time now is 08:49.