|July 19, 2012, 13:02||
User code, How can I get information from last time step
Join Date: Oct 2010
Posts: 5Rep Power: 6
I do some User Code in starccm+, f() is a function I want to calculate. its variables(arguments)are all from last time step and include itself. say, f(time step n) = f(var1_n-1, var2_n-1, var3_n-1….f_n-1). n-1 mean these variables are form n-1 time step.
How can I get the some value from last time step and then use them in calculation of the current time step? I tried it, but at every time step, when the user code is executed, the variables in it will be re-initialized, no information from last time step is kept in the memory. anybody have idea? Thanks very much.
|time delay, user code|
|Thread||Thread Starter||Forum||Replies||Last Post|
|High Courant Number @ icoFoam||Artex85||OpenFOAM Running, Solving & CFD||9||January 3, 2012 09:06|
|Time step, Number of time step, Maxximum Iterations per time step||sandisk||FLUENT||0||July 18, 2011 02:57|
|directMapped problem||panda60||OpenFOAM Bugs||4||July 8, 2010 10:23|
|Time step in transient simulation||shib||FLUENT||0||June 17, 2010 13:07|
|Navier-Stokes time step size||Martin||Main CFD Forum||2||June 6, 2008 03:38|