Compilation error in UDF for gas-solid fluidized bed
Hi all,
I am simulating a 2D gas-solid fluidized bed using eulerian/eulerian plus granular flow theory. I have two user-defined memory variables (C_UDMI(0) and C_UDMI(1)) and want to calculate C_UDMI(1) for each cell in my domain using C_UDMI(0) of adjacent cells. I need to loop over all faces of a cell and find out if the solid mass flux is going into the cell or outside of it. If going into, then I will use the value of C_UDMI(0) of the adjacent cell to find out the C_UDMI(1) value. For this purpose I have written the following UDF: Code:
DEFINE_ON_DEMAND(on_demand_calc) c_face_loop(c, par_t, n) I would appreciate if you could check the issue and advice if I am going the right way or I have errors in the way of accessing data in my UDF. Thanks Amir |
|
All times are GMT -4. The time now is 19:48. |