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

Identifying cell in parallel UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 24, 2013, 12:27
Default Identifying cell in parallel UDF
  #1
Member
 
Join Date: Jul 2013
Posts: 80
Rep Power: 13
upeksa is on a distinguished road
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.
upeksa is offline   Reply With Quote

Reply

Tags
fluent, parallel, parallel processing, parallelize udf, udf


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
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


All times are GMT -4. The time now is 01:20.