CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (http://www.cfd-online.com/Forums/fluent-udf/)
-   -   F_STORAGE_R(f,t,SV_DPMS_ACCRETION) (http://www.cfd-online.com/Forums/fluent-udf/114281-f_storage_r-f-t-sv_dpms_accretion.html)

Alimohamadi_nasr March 8, 2013 06:16

F_STORAGE_R(f,t,SV_DPMS_ACCRETION)
 
Hi Dear all;

I use DEFINE_DPM_EROSION and I need to reset F_STORAGE_R(f,t,SV_DPMS_ACCRETION) += mdot/area; after some specific time step.

As you know, if I do this inside the "DEFINE_DPM_EROSION", i will loose one time step data.

is it possible to reset it, outside of the "DEFINE_DPM_EROSION" from another macro or not?

I should bring the data in each specific time step to DIFINE_GRID_MOTION and then substitute previous data with new one.

Thanks

Alimohamadi_nasr March 10, 2013 06:37

before this, I tried to reset "F_STORAGE_R(f,t,SV_DPMS_ACCRETION)" at DEFINE_DPM_EROSION, but after some studying I found that it is impoosible, or in this way it causes that I loose one time step data. However, after resetting this array at DEFINE_GRID_MOTION my problem have been solved.


All times are GMT -4. The time now is 19:41.