|
[Sponsors] |
How to control the time step and iteration for summation? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 23, 2010, 10:05 |
How to control the time step and iteration for summation?
|
#1 |
New Member
Josh zhao
Join Date: Jan 2010
Posts: 4
Rep Power: 16 |
Hi,
I need to sum a variable per each time step while not sum per each iteration. the UDF is like the following: if (N_TIME==1) { sum=C_UDMI(c,t,0); N=0; } else if (N_TIME==N) { sum+=C_UDMI(c,t,0); } ... N=N_TIME+1; It does not working. What's wrong? Thanks in advance |
|
February 23, 2010, 10:19 |
|
#2 |
New Member
Josh zhao
Join Date: Jan 2010
Posts: 4
Rep Power: 16 |
I mean, the UDF did not do the summation.
|
|
February 23, 2010, 11:02 |
|
#3 |
Member
Amol Ramteke
Join Date: May 2009
Location: Kolkata
Posts: 30
Rep Power: 17 |
Compile and hook it.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
udf - iteration number within one time step?! | Mira | FLUENT | 1 | January 23, 2008 04:16 |
Convergence moving mesh | lr103476 | OpenFOAM Running, Solving & CFD | 30 | November 19, 2007 15:09 |
HELP TIME STEP!! | merry | FLUENT | 2 | March 25, 2004 15:38 |
the max iteration numbers in one time step | yangqing | FLUENT | 4 | February 1, 2002 11:24 |
unsteady calcs in FLUENT | Sanjay Padhiar | Main CFD Forum | 1 | March 31, 1999 13:32 |