|
[Sponsors] |
May 15, 2020, 13:48 |
Parallel UDF Issue
|
#1 |
Member
j
Join Date: Apr 2020
Posts: 34
Rep Power: 0 |
I'm having an issue I haven't found a solution to. I'm doing dynamic meshing, and have a UDF to calculate values at every wall node. Part of this code requires summing some scalar quantities stored in the faces that border each node. This works, but I noticed when I plotted contours of the N_UDMI, their are weird lines that cut through the contour with small contour values. Turns out these are the thread partions in parallel mode. If I run in serial, these disappear. I do need to run in parallel mode. What's happening is I set N_UDMI(v,0) and it's only summing the faces bordring that node that lie inside that partition of the mesh. So roughly half of the faces are summed, then the rest are summed separately on another processor and the N_UDMI is at that node is overwritten. Is there an easy way to sum these N_UDMI values that are at shared nodes across different processors?
|
|
May 15, 2020, 13:51 |
|
#2 |
Member
j
Join Date: Apr 2020
Posts: 34
Rep Power: 0 |
Alternatively, is there a way to repartition in the GUI onto one processor just to run my UDF? Then for my calculations I can repartition to multiple processors?
|
|
May 15, 2020, 15:30 |
N_udm
|
#3 |
Senior Member
|
If the UDF is not required to be executed while the case is running, then you can load case in serial mode and run UDF. Manual partitioning is also available under Parallel > Partition.
As far as values in UDM are concerned, that depends on type of loop you are using. Usually, nodes cannot overwrite values at the address that belong to other nodes, but as stated above, that depends on type of loop.
__________________
Regards, Vinerm PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Issue with UDF in parallel processing | MC1 | FLUENT | 5 | August 29, 2017 03:17 |
udf parallel | toghay | FLUENT | 2 | July 13, 2015 23:13 |
UDF parallel error: chip-exec: function not found????? | shankara.2 | Fluent UDF and Scheme Programming | 1 | January 16, 2012 22:14 |
Dynamic Mesh- Parallel UDF | DE HEART | Fluent UDF and Scheme Programming | 14 | August 11, 2010 01:29 |
udf compile in parallel system | tahereh | FLUENT | 1 | December 9, 2008 09:48 |