Hi, in the user_user.f profile, the line SUBROUTINE DRAG_USR(IJK, M_NP, lDgA, EPg, Mug, ROg, VREL, DPM, ROs, lUg, lVg, lWg) shows the input variables for the function. I wonder what is the physical meaning of IJK and how I can use this variable to change the value of EPg in different cell? thank you very much!
Please be more explicit about what you are trying to achieve.
IJK
is a cell index. The solver loops over all valid cells, and calls your drag_usr
function once for each cell (TFM) or particle (DES), and it is the job of this function to compute the drag force for this cell/particle. This function should not be modifying data in other cells.
Sorry for the confusing! I want to call the information (maybe the last time step) from the neibor cells to calculate the drag force for this cell, how can i change the IJK index to call the infor? thank you~