|
[Sponsors] |
March 10, 2021, 10:30 |
Particle Injection File
|
#1 |
New Member
Abi
Join Date: Nov 2020
Posts: 11
Rep Power: 6 |
Hello everyone,
I am trying to simulate the motion of solid particles in a cylinder filled with air in ANSYS FLUENT. but it was difficult to insert the particles in different size (1 mm &1 cm) into the domain. I want them to be already present in the domain at t=0 with random initial distribution. I want to perform particle tracking in the Lagrangian frame after different intervals of time. I have inserted the particle using injection file, but for uniform particle diameter and distribution. It is possible to add 200 particles in different diameter with a random initial distribution and radial initial velocity in the domain without having to inject them. Thanks in advance.! |
|
March 12, 2021, 12:06 |
|
#2 |
Member
Yasser Selima
Join Date: Mar 2009
Location: Canada
Posts: 51
Rep Power: 19 |
You can use DEFINE_DPM_INJECTION_INIT macro where you can determine the initial location, diameter and velocity of the partiles.
Search GitHub for a C## function that generate random numbers and you can use it for generating random locations and diameters |
|
March 12, 2021, 13:10 |
|
#3 |
New Member
Abi
Join Date: Nov 2020
Posts: 11
Rep Power: 6 |
Thank you for your replay! I solved it. I create additional MATLAB injection file and I set a random position of the particle, I made the animation in Fluent, but it is difficult to recognize size of the particle, it is possible to animate different diameter size ? or should I use another model like MPM to perform different size of particle?
|
|
March 12, 2021, 15:06 |
|
#4 |
Member
Yasser Selima
Join Date: Mar 2009
Location: Canada
Posts: 51
Rep Power: 19 |
If you use the macro mentioned above, you will be able to loop over the particles at time 0 and set the diameter for each one. Look in the UDF manual, there is an example provided. You need to go beyond the example by adding your random function to generate a random number within the limits ...
|
|
March 14, 2021, 07:05 |
|
#5 |
New Member
Abi
Join Date: Nov 2020
Posts: 11
Rep Power: 6 |
Thank you very much for your answer. I create injection file in MPM model. It is looking good. After I create and display the particle, as next I should define the animation sequence, which should be opened from the Solution Animation dialog box, and this allows me to define what each sequence displays. So, the problem now I could not fine the animation sequence in the calculation activities dialog box as seen in below images. Also the animation dialog box doesn’t show me any sequence animation command.
I wonder if I have to add another command or any procedure to make the sequence animation dialog box available. Could you help me to fix this problem? Thank you in advance. Image1.jpg Image2.jpg Image3.jpg |
|
March 14, 2021, 09:48 |
|
#6 |
Member
Yasser Selima
Join Date: Mar 2009
Location: Canada
Posts: 51
Rep Power: 19 |
You need to create the frame or view you want to animate. Go to results graphics and create contours, pathlines, vectors ... whatever you create, will be available for animation
|
|
March 14, 2021, 13:48 |
|
#7 |
New Member
Abi
Join Date: Nov 2020
Posts: 11
Rep Power: 6 |
Thank you very much for your answer , I will try it and hopefully it will work!
|
|
March 23, 2021, 10:52 |
|
#8 | |
New Member
Abi
Join Date: Nov 2020
Posts: 11
Rep Power: 6 |
Quote:
Other problem I faced in MPM, after I have created the periodicity in fluent, use the TUI command: define>b-c>m-z>m-p….., I am not able to add the MPM model, using define>mod>add, because TUI still defined with Boundary condition. It is possible to switch off from periodic BC to add MPM model? Thanks, in advance! Best regards |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to calculate mass flow rate on patches and summation of that during the run? | immortality | OpenFOAM Post-Processing | 104 | February 16, 2021 09:46 |
OpenFoam "Permission denied" and "command not found" problems. | iyidaniel@yahoo.co.uk | OpenFOAM Running, Solving & CFD | 11 | January 2, 2018 07:47 |
[foam-extend.org] problem when installing foam-extend-1.6 | Thomas pan | OpenFOAM Installation | 7 | September 9, 2015 22:53 |
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch | gschaider | OpenFOAM Installation | 225 | August 25, 2015 20:43 |
Version 15 on Mac OS X | gschaider | OpenFOAM Installation | 113 | December 2, 2009 11:23 |