Identifying cell in parallel UDF
I have an DEFINE_ON_DEMAND serial UDF which stores in a memory the cell index, like this:
if (/*certain condition*/)
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:
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.
|All times are GMT -4. The time now is 10:02.|