I am a complete novice at MFIX, so I hope this isn’t too trivial. My aim is to initialize a set of particles in a fluid bed with a linear temperature gradient using a UDF. For now, I’m just creating regions that have particles initialized to different temperatures as such, naturally this is not feasible the finer I want the gradient to be:
This uses a file particle_input.dat to specify initial conditions on a per-particle basis, which is otherwise not possible in MFiX. You can use a script to generate this file. Note that inn the example, particle temperature is not used, but if you turn on energy equations and set line 29 to T then you can specify initial particle temperature.