|
[Sponsors] |
July 24, 2013, 12:27 |
Identifying cell in parallel UDF
|
#1 |
Member
Join Date: Jul 2013
Posts: 80
Rep Power: 13 |
I have an DEFINE_ON_DEMAND serial UDF which stores in a memory the cell index, like this:
begin_c_loop(c,t0) { if (/*certain condition*/) { C_UDMI(c0,t0,0)=c; } } end_c_loop(c,t0) The next step of my code is reopen the same case in PARALLEL Fluent and execute another UDF code which will store in another memory the pressure of the cell whose index has been previously stored, like the following: begin_c_loop(c,t0) { C_UDMI(c0,t0,1)=C_P((int)(C_UDMI(c0,t0,0)),t0); } end_c_loop The point is that my UDF works properly in serial process, but it doesn't work at all in parallel process. In conclusion, I need to create an UDF which will be able to retrieve an index of some cell which had been previously stored in a memory and work IN PARALLEL as well. Maybe I should do a loop of partitions, but I don't have actually any idea. Could someone give me some advices or hints in order to parallelize UDFs? Thanks in advance. Best regards. |
|
Tags |
fluent, parallel, parallel processing, parallelize udf, udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF Error with Parallel affter several step | trantoan2008 | Fluent UDF and Scheme Programming | 0 | January 7, 2013 08:33 |
UDF for linear temperature profile on horizontal parallel surfaces. | Chirag2302 | Fluent UDF and Scheme Programming | 0 | February 4, 2012 01:44 |
Help: how to realize UDF on parallel cluster? | Haoyin | FLUENT | 1 | August 6, 2007 14:53 |
UDF in parallel version. | yobee | FLUENT | 0 | August 17, 2004 05:12 |
UDF in parallel version of fluent | yobee | FLUENT | 2 | August 5, 2004 01:36 |