|
[Sponsors] |
How to pass variable value obtained in iteration n to iteration n+1 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 11, 2019, 05:56 |
How to pass variable value obtained in iteration n to iteration n+1
|
#1 |
Member
phd
Join Date: Oct 2013
Posts: 76
Rep Power: 12 |
Hello, guys
I am running a steady state simulation and have defined an additional variable X. If I need to use X obtained in n_th iteration/time-step for the simulation of the n+1_th iteration/time-step, how can I pass/inherit this value, X(n), to the next iteration? One way I can think of is to run the simulation for just one time step each time and use the correspondingly generated .res file to output the X(n). But clearly this will be extremely computational inefficient. I’m wondering if there is any way that we can pass/inherit the variables between iterations without stopping the simulation. Can User Fortran/Junction Box do that? Thank you very much! |
|
Tags |
additional variables |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[General] Pass variable from programmable filter to Plot Over Line Filter | Jack001 | ParaView | 0 | March 29, 2016 13:18 |
How to pass variable between macros | einandr | Fluent UDF and Scheme Programming | 1 | February 5, 2015 06:34 |
Best way to pass a scalar variable to a runtime selectionnable class? | Yann | OpenFOAM Programming & Development | 0 | October 22, 2014 08:53 |
Pass a variable from a class to a subequation in the main solver | lord_kossity | OpenFOAM Running, Solving & CFD | 0 | September 3, 2009 12:03 |
How to pass a variable from a define macro... | Padian | FLUENT | 2 | May 30, 2008 05:22 |