CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   need TUI or UDF post processing command help. (https://www.cfd-online.com/Forums/fluent/178395-need-tui-udf-post-processing-command-help.html)

Ash Kot October 6, 2016 19:38

need TUI or UDF post processing command help.
 
my UDF is based on flow time in transient flow analysis, after 300 time step it generates new velocity value and inlet, outlet pressure value.

also on 300th time step, data is autosaved in .dat and .cas files.

is it possible to write UDF or TUI commands set, to create .xy plot files using fluent inbuilt post processing plots option. at 300th time step.

pakk October 7, 2016 03:44

Yes, with a journal file for example. Look for that in the Fluent manual.

sina_sls August 22, 2022 03:36

Quote:

Originally Posted by pakk (Post 620626)
Yes, with a journal file for example. Look for that in the Fluent manual.

Hi,

I want to use text command in UDF to be done every iteration . is it possible ? if yes how can i do it ?

Regards,

HHOS September 6, 2022 15:12

Hi,


I always avoid UDFs whenever possible. You can do that with a journal file. You can call a journal every X iterations or timesteps by creating a command in the calculation activities tab. Something like:


/file/read-journal magic_journal.jou ()


In the magic_journal.jou file you will include the commands to save the pictures you want (of course instead of calling the journal you can just write them all in the execute commands box). It is important to include the iteration or the timestep in the naming of the pictures, otherwise it will always overwrite it.


You can do that by including the string %i for iterations or %t for the timestep in the file name you are giving to the picture. More information here.


Regards

sina_sls September 7, 2022 01:41

Quote:

Originally Posted by HHOS (Post 835427)
Hi,


I always avoid UDFs whenever possible. You can do that with a journal file. You can call a journal every X iterations or timesteps by creating a command in the calculation activities tab. Something like:


/file/read-journal magic_journal.jou ()


In the magic_journal.jou file you will include the commands to save the pictures you want (of course instead of calling the journal you can just write them all in the execute commands box). It is important to include the iteration or the timestep in the naming of the pictures, otherwise it will always overwrite it.


You can do that by including the string %i for iterations or %t for the timestep in the file name you are giving to the picture. More information here.


Regards

Thank you for your response and guidance

Regards,


All times are GMT -4. The time now is 23:00.