problem while looping over cells in LES
ok, here's my problem.
i'm tryin to compute new variables over the entire domain at each time step in an LES simulation. I created an UDF with DEFINE_ADJUST that checks for time steps before applying operations. The idea is to compute mean value of some variables by updating a sum at each time step, i.e.:
Vmean = (sumV(t-1)+ V(t))/N
where N is number of time steps. Problems arise while looping on cells begin_c_loop. instead of updating the sum on each cell it takes all previous cells in the loop and add the values, creating a divergent sum.
does anyone has an idea how to compute a basic operation on EACH cell in an independant way ?
thx for help
|All times are GMT -4. The time now is 02:05.|