CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Is there a way to write the time step size, time a (https://www.cfd-online.com/Forums/fluent/32650-there-way-write-time-step-size-time.html)

may December 5, 2003 02:40

Is there a way to write the time step size, time a
 
Hi, I am doing an unsteady flow simulation with adaptive time step. Although we can monitor the time step size and time using "Statistic Monitors", the data are stored in the individual data file. To know the corresponding time step and time for each data file, we shall read every data file. Therefore I am wondering that is there a way to write the time step size and time associated with data file no. in one file, such as if we monitor the inlet flow rate at every time step, we can get the flow waveform? I do need your help. Thanks a lot!

ccc December 5, 2003 03:49

Re: Is there a way to write the time step size, ti
 
hi may,

you can inlude "%t" in the file name in the autosave panel and this string will be converted to physical time when saving.

good luck.

may December 5, 2003 04:22

Re: Is there a way to write the time step size, ti
 
Hi, Mr./Ms. Chen,

Thanks for your kindly suggestion! I will try it and let you know the results soon. Best Regards,

may December 5, 2003 07:25

"%t"seems only represent the time step no.
 
Dear Mr./Ms. Chen,

I have done it acoording to ur sugestion.However the data files still named as the time step no., not the true time. Can u give me some further suggestions? Thanks a lot!

ccc December 6, 2003 10:19

Re: "%t"seems only represent the time step no.
 
hi may,

You are right. I misunderstand your meanings. sorry for wrong suggestions.

An easy way to solve your problem is to record the timestep and the corresponding physical time in a seperated file. Then you can look up this file after computing and know the physcial time of each data file. N_TIME will give you the time step and CURRENT_TIME the physical time.

Good luck.


may December 8, 2003 05:09

thanks a lot
 
Dear Mr./Ms. Cheng,

Thanks for your kindly suggetion! I have compiled a UDF to do this kind of work. It works sucessfully.

Thanks a lot!

Best Regards

gmwsy November 22, 2009 11:52

Not %t, but %f !!!


All times are GMT -4. The time now is 05:08.