CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > Siemens > STAR-CCM+

User code, How can I get information from last time step

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 19, 2012, 13:02
Default User code, How can I get information from last time step
  #1
New Member
 
Can Huang
Join Date: Oct 2010
Posts: 8
Rep Power: 15
onlyacan is on a distinguished road
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.
onlyacan is offline   Reply With Quote

Old   July 24, 2012, 13:52
Default
  #2
Member
 
Ryan Coe
Join Date: Jun 2010
Location: Albuquerque, NM
Posts: 98
Rep Power: 15
ryancoe is on a distinguished road
Here's another current thread where we've been discussing this sort of thing: http://www.cfd-online.com/Forums/sta...-function.html
__________________
Ryan
ryancoe is offline   Reply With Quote

Reply

Tags
time delay, user code


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
High Courant Number @ icoFoam Artex85 OpenFOAM Running, Solving & CFD 11 February 16, 2017 13:40
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


All times are GMT -4. The time now is 01:54.