|
[Sponsors] |
April 10, 2017, 08:20 |
parse error- residence time
|
#1 |
Member
yun
Join Date: Jul 2015
Posts: 37
Rep Power: 11 |
i need to calculate particle residence time in each cell and found out a code in the forum. but i cant interpret it because it gives parse error. i also checked parse error solutions mentioned here (file name, same folder issue etc.) but couldnt solve it also. i have some other UDFs as this one and they work fine.
my questions are: 1- can you please give me an idea about parse error? 2- is this code sutiable for particle residence time calculations? (if it is possbile to compile or interpret) DEFINE_DPM_SCALAR_UPDATE(dose, c, t, initialize, p) { if (initialize) { P_USER_REAL(p,0) = 0; /* this variable will hold the cell residence time, we initialize it here */ } else { P_USER_REAL(p,0) = P_TIME(p)-P_TIME0(p) ; /* store the cell residence time into the variable */ } } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
courant number increases to rather large values | 6863523 | OpenFOAM Running, Solving & CFD | 22 | July 6, 2023 00:48 |
Floating point exception error | lpz_michele | OpenFOAM Running, Solving & CFD | 53 | October 19, 2015 03:50 |
simpleFoam error - "Floating point exception" | mbcx4jc2 | OpenFOAM Running, Solving & CFD | 12 | August 4, 2015 03:20 |
Micro Scale Pore, icoFoam | gooya_kabir | OpenFOAM Running, Solving & CFD | 2 | November 2, 2013 14:58 |
plot over time | fferroni | OpenFOAM Post-Processing | 7 | June 8, 2012 08:56 |