Injecting Particles via UDF in Parallel FLUENT
I know how to inject particles from a UDF in serial mode, but when I try to in parallel mode, the simulation gets stuck without any error messages. Some basic questions would be:
1) Should I inject from an RP_HOST or RP_NODE directive?
2) If the nodes are responsible for injecting, do I need to identify the node the injection will occur on ahead of time so only that node is instructed to inject?
Any help will be appreciated. I don't have much to go on since I'm not getting any error messages from FLUENT. I am running from a shared memory on a local machine. I've tried using hybrid and message passing methods for parallel DPM setup.
Can you guide me how particles are injcted serialy?
Are you using
The easiest way to inject particles is going to be using injection panel in FLUENT unless you have a special case where you need to use a UDF. In that case, using the DEFINE_DPM_INJECTION_INIT will be easiest, and FLUENT has documentation on that. You can also use other macros where particle or injection parameters are not passed by FLUENT when the macro is called. For example, DEFINE_EXECUTE_AT_END could be used, but then you need to define pointers particle *p and injection *I, and you also need to be able to tell FLUENT which injection you're referring to. There's a separate page where I was trying to figure this out:
That was for unsteady injection. I also found these threads helpful along the way:
It takes a while to build an understanding of this stuff since FLUENT doesn't really document it well. If you keep at it, and keep searching for threads on this forum, you should be able to get there. I'm no expert, but I'm starting to get a handle on it. Good Luck!
|All times are GMT -4. The time now is 12:18.|