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.
|All times are GMT -4. The time now is 02:37.|