-
-
September 20, 2024 at 2:29 amz5489721Subscriber
I am calculating the particle reaction rate and using C_UDMI to get a contour plot of it. but I am just making C_UDMI equal to reaction rate *rr. Is it correct? or do I need to loop like this: if yes, which define macro do I need to use, or can I loop it inside DEFINE_PR_RATE? why am I using um? because in udf I am calculating *rr in kg/s, but in contour plot unit is different kmol/m3 s
thread_loop_c (t,domain)
{
begin_c_loop (c,t)
{
C_UDMI(c,t,0) = *rr;
}
end_c_loop (c,t)
} -
September 20, 2024 at 10:14 amRobForum Moderator
You also need to be careful as you need to account for multiple parcels in a cell.Â
-
September 23, 2024 at 1:51 amz5489721Subscriber
Can you explain more? I didn't get it. Do I need to use a loop and inside loop I need to consider the following C_UDMI(c, t, 0) += *rr?
-
September 23, 2024 at 10:13 amRobForum Moderator
You may have many particles in a cell. Do you want the sum of all reaction rates, the average or something else? As the particle reaction rate is tracked on the particles which then interact with the cells, what does the UDM do?Â
-
- You must be logged in to reply to this topic.
-
446
-
199
-
194
-
166
-
162
© 2024 Copyright ANSYS, Inc. All rights reserved.