CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent Multiphase

Particle Injection File

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 10, 2021, 10:30
Default Particle Injection File
  #1
New Member
 
Abi
Join Date: Nov 2020
Posts: 11
Rep Power: 6
Abeer is on a distinguished road
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.!
Abeer is offline   Reply With Quote

Old   March 12, 2021, 12:06
Default
  #2
Member
 
Yasser Selima
Join Date: Mar 2009
Location: Canada
Posts: 51
Rep Power: 19
Yasser is on a distinguished road
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
Yasser is offline   Reply With Quote

Old   March 12, 2021, 13:10
Default
  #3
New Member
 
Abi
Join Date: Nov 2020
Posts: 11
Rep Power: 6
Abeer is on a distinguished road
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?
Abeer is offline   Reply With Quote

Old   March 12, 2021, 15:06
Default
  #4
Member
 
Yasser Selima
Join Date: Mar 2009
Location: Canada
Posts: 51
Rep Power: 19
Yasser is on a distinguished road
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 ...
Yasser is offline   Reply With Quote

Old   March 14, 2021, 07:05
Default
  #5
New Member
 
Abi
Join Date: Nov 2020
Posts: 11
Rep Power: 6
Abeer is on a distinguished road
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
Abeer is offline   Reply With Quote

Old   March 14, 2021, 09:48
Default
  #6
Member
 
Yasser Selima
Join Date: Mar 2009
Location: Canada
Posts: 51
Rep Power: 19
Yasser is on a distinguished road
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
Yasser is offline   Reply With Quote

Old   March 14, 2021, 13:48
Default
  #7
New Member
 
Abi
Join Date: Nov 2020
Posts: 11
Rep Power: 6
Abeer is on a distinguished road
Thank you very much for your answer , I will try it and hopefully it will work!
Abeer is offline   Reply With Quote

Old   March 23, 2021, 10:52
Default
  #8
New Member
 
Abi
Join Date: Nov 2020
Posts: 11
Rep Power: 6
Abeer is on a distinguished road
Quote:
Originally Posted by Yasser View Post
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
hello, I tried to use DPM Post processing, the problem after writing a file in the animation playback screen, it was difficult to visualize the motion of the particle, due to the high length to diameter ratio of the pipe (L=1m, D=0.003m). so in the MPM panel I could display injection, it is looking very fine, and I could visualize the location and motion of particle during the simulation. Could you please suggest me a way how to save animation in MPM?

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
Attached Images
File Type: jpg CFDPost11.jpg (69.5 KB, 13 views)
Abeer is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 13:11.