CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   Read txt file and import values to source term. (https://www.cfd-online.com/Forums/fluent-udf/73863-read-txt-file-import-values-source-term.html)

ksgr July 21, 2016 17:20

Hello Micael!
I don't know what was the problem. I was able to find the solution when I started writing the code bit by bit and checking whether that code would compile in fluent. I reached a stage where whole code could compile with the proper messages of file read and closed. Thank you.

Now I have one doubt, currently DEFINE_ON_DEMAND, for which I have to manually assign the values read in from the file to arrays. Is there a macro which does this automatically as soon as the loading of the library is over?


All times are GMT -4. The time now is 12:51.