C_STORAGE_R and SV_UDSI_M1
In UDF Manual 15.0 example 2.7.4.3 there is a line to retrieve the value of a scalar at previous time step:
Code:
phi_old = C_STORAGE_R(c,t,SV_UDSI_M1(i)); Code:
phi_old = C_UDSI_M1(c,t,i); |
exactly my question
Hi,
I am wondering exactly the same. Did you found out if both options are equivalent? Thanks Franz Quote:
|
In the end I didn't use any previous time step macro. Instead I preferred to store variables in user defined memories (C_UDMI), an alternative way to compare with previous time step(s).
|
In mem.h, the following line is found:
Code:
#define C_UDSI_M1(c,t,i)C_STORAGE_R(c,t,SV_UDSI_M1(i)) Code:
phi_old = C_UDSI_M1(c,t,i); Code:
phi_old = C_STORAGE_R(c,t,SV_UDSI_M1(i)); |
Quote:
phi_old = C_T_M1(c, t) Thanks |
All times are GMT -4. The time now is 03:59. |