CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   file-reading questions (http://www.cfd-online.com/Forums/fluent/49716-file-reading-questions.html)

Ellen November 5, 2008 17:32

file-reading questions
 
Hi,

I've been trying to specify a temperature-dependent property to a material, and I was able to read a data file to Fluent using DEFINE_PROPERTY udf. But the case was running very very slowly. I think the reason maybe because Fluent needs to call this function (which contains file reading and interpolation) once for every cell and for every iteration.

so I'm thinking to use another udf to read in the data file, and store them into an array. Then the DEFINE_PROPERTY macro only needs to access these data and obtain the correct property value by interpolation. Is this feasible? and which macro should I use to write the first udf, DEFINE_EXECUTE_ON_LOADING?

any suggestions would be appreciated. thank you in advance.

Ellen


All times are GMT -4. The time now is 07:50.