CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Access value in cell across an interior interface

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 12, 2016, 08:05
Default Access value in cell across an interior interface
  #1
New Member
 
Join Date: Jun 2016
Posts: 7
Rep Power: 8
iteration is on a distinguished road
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 is offline   Reply With Quote

Old   July 13, 2016, 05:38
Default
  #2
New Member
 
Join Date: Jun 2016
Posts: 7
Rep Power: 8
iteration is on a distinguished road
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.
iteration is offline   Reply With Quote

Reply

Tags
interface, interior, mesh interface, udm

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 22:07.