|
[Sponsors] |
November 13, 2013, 05:52 |
Injection Particles coordinate
|
#1 |
Member
anonymous
Join Date: Feb 2011
Posts: 50
Rep Power: 15 |
Hi,
I am using Define Injections.. in order to set particles in my simulation. I have 360 particles and of course its unreasonable to set each particle (x coordinate y coordinate ) manually. Is there away to insert the particles location through a file? Does someone has an example of a file like that??? Thank you |
|
November 13, 2013, 07:58 |
|
#2 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26 |
Do this with an injection file.
In your case it will have 360 lines. Each line is like this: (( -0.25779 -2.7189e 0.221755735 17.2234848 14.53586671 0.1235 2e-5 295.398 1e-20 )) xpos, ypos, zpos, xvel, yvel, zvel, diameter, temperature, flow rate You still have to supply the 360 lines, but you can write a small program to do this, for example in matlab. |
|
November 14, 2013, 04:06 |
|
#3 |
Member
anonymous
Join Date: Feb 2011
Posts: 50
Rep Power: 15 |
Thank you for your respond. However, I tried to save that line into a file *.inj
and when I tried to read it through injection I got this error message: Error: ASSQ: invalid argument [2]: improper list Error Object: -2.7189 |
|
November 14, 2013, 07:23 |
|
#4 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26 |
"-2.7189e" should be " -2.7189" (my typo, sorry)
|
|
November 14, 2013, 08:43 |
|
#5 |
Member
anonymous
Join Date: Feb 2011
Posts: 50
Rep Power: 15 |
I know, and I already fixed it. My model is 2D so I also changed the file to this line and it still doesn't work:
((-0.25779 -2.7189 17.2234848 14.53586671 2e-5 295.398 1e-20 )) Thank you, |
|
November 14, 2013, 09:32 |
|
#6 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26 |
Hmm, can't help you further, the example works for me, sorry...
|
|
November 14, 2013, 14:22 |
|
#7 |
Member
Rexxar
Join Date: May 2012
Location: Bethlehem, PA
Posts: 36
Rep Power: 13 |
I have a matlab code which is good for writing the file for injecting particles in a rectangular cross section. If you are interested, I can send you the file.
__________________
Best, Rexxar |
|
November 15, 2013, 05:33 |
|
#8 |
Member
anonymous
Join Date: Feb 2011
Posts: 50
Rep Power: 15 |
||
November 20, 2013, 02:53 |
|
#9 |
Member
anonymous
Join Date: Feb 2011
Posts: 50
Rep Power: 15 |
Hi,
Thank you, I generated the file, it looks very good, but I get the same error: Error: CAR: invalid argument [1]: wrong type [not a pair] Error Object: id Importing the following injections: Error: CAR: invalid argument [1]: wrong type [not a pair] Error Object: id |
|
November 20, 2013, 05:48 |
|
#10 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26 |
Do you get the same problem if you put in the positions manually?
|
|
November 24, 2013, 03:46 |
ingection particle
|
#11 |
New Member
mit.R
Join Date: Nov 2013
Location: iran
Posts: 2
Rep Power: 0 |
Hi All
I have a source that generat several defferent particles and finaly as smok plumn spread in ambient. I don’t have informations about X&Y position or velociy for first & last point of particles, just I can supposedly determinate name, diameter & flow rate of particles. I am going to modeling particles generated frome welding process by fluent and showing particle concentration contour , do I should used DPM Concentration for this case ? But I don’t know why befor injections and display -->particle tracks-->particle variables -->parricle residence time --> error softward And when discrete phase model-->DPM Concentration -->display--> it is show nothing Other question: in near the source creat temprature about 3000-10000 K , but far frome the source gragually is decrease temprature defferent between smok plumn and ambient. Do is flow unsteady & compressibility? Or it is negligible with some assumptions for Simplifying Plz , advice me, tanx Last edited by mit.R; November 24, 2013 at 04:01. Reason: ERROR IN SENT |
|
November 26, 2013, 07:32 |
|
#12 |
Member
anonymous
Join Date: Feb 2011
Posts: 50
Rep Power: 15 |
no, I don't. It works when I do it manually, but its hard to put 360 particles
|
|
May 8, 2014, 06:39 |
|
#13 |
New Member
Join Date: Mar 2014
Posts: 4
Rep Power: 12 |
Noa, have you finally solved it? because I have a simillar error and I dont know why, my error is:
Error: CAR: invalid argument [1]: wrong type [not a pair] Error Object: 1 And my injections are like this: ((0.000000e+000 1.187500e-002 0.000000e+000 8.600000e-004 0.000000e+000 0.000000e+000 9.5000000e-003 2.981500e+002 1.401388e-002) 1) |
|
July 7, 2014, 13:40 |
|
#14 |
Member
anonymous
Join Date: Feb 2011
Posts: 50
Rep Power: 15 |
Did someone solve it?
|
|
July 10, 2014, 05:30 |
|
#15 |
New Member
Join Date: Mar 2014
Posts: 4
Rep Power: 12 |
||
July 11, 2014, 03:07 |
|
#16 |
Member
anonymous
Join Date: Feb 2011
Posts: 50
Rep Power: 15 |
right, but still it didn't work. Did u do it lately?
Can u send your files again? Thank you |
|
July 11, 2014, 03:45 |
|
#17 |
New Member
Join Date: Mar 2014
Posts: 4
Rep Power: 12 |
I dont remeber it very good, but I think it was not a problem with the file, the problem was the path you use to read it, the correct way is:
Models, discrete phase, injections, create, and in injection type you have to select file, then between OK and cancel (down part) you select file again and select your injection file. With this it worked to me |
|
July 11, 2014, 07:16 |
|
#18 |
Member
anonymous
Join Date: Feb 2011
Posts: 50
Rep Power: 15 |
||
July 21, 2016, 00:24 |
|
#19 |
New Member
Nuha
Join Date: Apr 2016
Posts: 8
Rep Power: 10 |
Dear Rexxar
Could you please mail me file injection code that you have , at this email id : amnaamanat73@gmail.com Thank you in advance |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Injection of specific number of particles in DPM | DH | FLUENT | 12 | March 16, 2016 21:04 |
trying to simulate two-phase jet flow with particles in surface injection | ajkratos | FLUENT | 5 | March 3, 2015 21:33 |
injection problem | Mark New | FLUENT | 0 | August 4, 2013 01:30 |
loop over all injection streams in order to get the particles specifications | alighaffari | Fluent UDF and Scheme Programming | 0 | August 28, 2012 01:42 |
injection particles | zenith | FLUENT | 0 | April 3, 2007 00:56 |