CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   UDFs: writing in a text file (https://www.cfd-online.com/Forums/fluent/36827-udfs-writing-text-file.html)

Teresa June 2, 2005 07:33

UDFs: writing in a text file
 
Hi!Im making my final thesis project with Fluent. Now I'm with UDFs and I've a question: I would like to write at the end of every time-step the value of some variables that i ve created in a text file (data.txt), how can i do? I know the function fprintf, but i don't how to use well. Thank you Teresa

pUl| June 2, 2005 12:15

Re: UDFs: writing in a text file
 
Refer Solution 1175 in the Online Technical Support (OTS) at http://clarify.fluent.com/eSupport

Saad June 3, 2005 12:20

Re: UDFs: writing in a text file
 
Try using ''execute commands ... '' option in FLUENT. Through this you can execute a macro after every n iterations OR after every n time steps. The macro is a collection of commands. It may work.

Saad


All times are GMT -4. The time now is 11:15.