time steps count
Hi everybody
im writing UDF using DEFINE_CG_MOTION I have to make at the end of calculation low pass filter of the results and i want to include the filter in the aforementioned UDF. In these case i need to know when is the end of calculation. So the question is is there possibility to get time step count to include it in UDF |
check this link
|
Quote:
|
Tnx for answer but i need the final count of time steps to include it in UDF
like IF count = ..... then do the low pass filter so i need to know the number of final count to use it in UDF |
Quote:
DEFINE_CG_MOTION(....) { static int time_counter=0; time_counter++; if(time_counter > required_timestep) { ..... } } |
When i start my calculation i insert "Number of Time Steps" in Fluent.
In my case 300000. So i need after time step 300 000 to start filter or If count=300000 do.... But this is private case and i want to make UDF for any case when i dont know "Number of Time Steps" is there a way to obtain this number from Fluent |
All times are GMT -4. The time now is 23:03. |