|
[Sponsors] |
Access value in cell across an interior interface |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 12, 2016, 08:05 |
Access value in cell across an interior interface
|
#1 |
New Member
Join Date: Jun 2016
Posts: 7
Rep Power: 10 |
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. |
|
July 13, 2016, 05:38 |
|
#2 |
New Member
Join Date: Jun 2016
Posts: 7
Rep Power: 10 |
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. |
|
Tags |
interface, interior, mesh interface, udm |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to determine the direction of cell face vectors on processor patches | sebastian_vogl | OpenFOAM Programming & Development | 1 | October 11, 2016 14:17 |
Access cell face center / cell vertices | lichmaster | OpenFOAM Programming & Development | 7 | May 31, 2014 03:31 |
[General] 2 datas on one plot | Akuji | ParaView | 46 | December 1, 2013 15:06 |
Access cell value | skabilan | OpenFOAM Programming & Development | 2 | September 2, 2011 18:19 |
how to access to the face value of VOF of each cell | Wei Shao | Fluent UDF and Scheme Programming | 2 | November 5, 2009 11:16 |