CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   Face loop in a Parallel UDF (http://www.cfd-online.com/Forums/fluent/44639-face-loop-parallel-udf.html)

Dario May 8, 2007 04:09

Face loop in a Parallel UDF
 
Hello Everybody, I need to mark every face (as a number) in a face loop to assign a function, but in a parallel computing the faces series is different... Do you have any suggest? Thank you very much

Dario

John Young May 8, 2007 06:34

Re: Face loop in a Parallel UDF
 
Hi Dario, I've had the same problem with vertex (node) loops. For vertices there's no way around the problem as far as I know, but for faces you should be able to allocate user-defined memory and put a unique number ID into memory for each face. Do this once, save the case file, and next time you read the case the ID should be saved. John

Dario May 10, 2007 07:10

Re: Face loop in a Parallel UDF
 
Hello John, thank you for your answer, but when I use a parallel udf I can't identify the face position and so I could define an unique number ID for every face, but however I couldn't know the position... Alex

John Young May 10, 2007 08:19

Re: Face loop in a Parallel UDF
 
How about if you open the case first in the serial solver, run through the face loop and save the face id to udm, save the case then open it up in the parallel solver, run through the face loop again and read the contents of the udm? I haven't tried it, but thought it might work. Cheers, John

dario May 10, 2007 08:34

Re: Face loop in a Parallel UDF
 
thank you again John, I agree with you about this possible solution, but unfortunately I can't open my case in the serial solver, because I need a very high quantity of memory... Alex


All times are GMT -4. The time now is 17:22.