|
[Sponsors] |
User code, How can I get information from last time step |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 19, 2012, 14:02 |
User code, How can I get information from last time step
|
#1 |
New Member
Can Huang
Join Date: Oct 2010
Posts: 8
Rep Power: 16 |
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. |
|
July 24, 2012, 14:52 |
|
#2 |
Member
Ryan Coe
Join Date: Jun 2010
Location: Albuquerque, NM
Posts: 98
Rep Power: 16 |
Here's another current thread where we've been discussing this sort of thing: http://www.cfd-online.com/Forums/sta...-function.html
__________________
Ryan |
|
Tags |
time delay, user code |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
High Courant Number @ icoFoam | Artex85 | OpenFOAM Running, Solving & CFD | 11 | February 16, 2017 14:40 |
Time step, Number of time step, Maxximum Iterations per time step | sandisk | FLUENT | 0 | July 18, 2011 03:57 |
directMapped problem | panda60 | OpenFOAM Bugs | 4 | July 8, 2010 11:23 |
Time step in transient simulation | shib | FLUENT | 0 | June 17, 2010 14:07 |
Navier-Stokes time step size | Martin | Main CFD Forum | 2 | June 6, 2008 04:38 |