|
[Sponsors] |
September 4, 2013, 03:01 |
time steps count
|
#1 |
Member
|
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 |
|
September 4, 2013, 07:27 |
|
#3 | |
Senior Member
duri
Join Date: May 2010
Posts: 245
Rep Power: 16 |
Quote:
|
||
September 4, 2013, 07:43 |
|
#4 |
Member
|
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 |
|
September 4, 2013, 08:00 |
|
#5 | |
Senior Member
duri
Join Date: May 2010
Posts: 245
Rep Power: 16 |
Quote:
DEFINE_CG_MOTION(....) { static int time_counter=0; time_counter++; if(time_counter > required_timestep) { ..... } } |
||
September 4, 2013, 08:12 |
|
#6 |
Member
|
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Multiple floating objects | CKH | OpenFOAM Running, Solving & CFD | 14 | February 20, 2019 09:08 |
AMI interDyMFoam for mixer nu problem | danny123 | OpenFOAM Programming & Development | 8 | September 6, 2013 02:34 |
mixerVesselAMI2D's mass is not balancing | sharonyue | OpenFOAM Running, Solving & CFD | 6 | June 10, 2013 09:34 |
same geometry,structured and unstructured mesh,different behaviour. | sharonyue | OpenFOAM Running, Solving & CFD | 13 | January 2, 2013 22:40 |
calculation diverge after continue to run | zhajingjing | OpenFOAM | 0 | April 28, 2010 04:35 |