CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Grid Motion in Parallel (https://www.cfd-online.com/Forums/fluent/226246-grid-motion-parallel.html)

buckngnr11 April 21, 2020 19:32

Grid Motion in Parallel
 
2 Attachment(s)
Hi, I'm having a small issue with my dynamic mesh UDF. I am running in parallel and end up doing some calculations to figure out how much to displace each wall vertex on my mesh. It seems to work fine except when I hit update dynamic mesh and run 1 iteration, it performs the grid motion twice. I also display a message for how much volume total I am displacing. When I hit update dynamic mesh, the message displays twice. The first tie it shows the correct volume to move the mesh. The second message shows exactly double the first volume. As shown, I use a += statement to loop through all the cells to get this value. This tells me that the entire thing is running twice for some reason. I'm running on 28 processors. The calculations across the processors works great, but again, it's like the function runs twice when I hit update dynamic mesh. Any ideas why this might happen? Could this be something to do with how node 0 communicates with the host? Maybe it's running my entire UDF twice?


All times are GMT -4. The time now is 14:18.