Injection Particles coordinate
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 |
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. |
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 |
"-2.7189e" should be " -2.7189" (my typo, sorry)
|
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, |
Hmm, can't help you further, the example works for me, sorry...
|
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.
|
|
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 |
Do you get the same problem if you put in the positions manually?
|
ingection particle
Quote:
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 |
no, I don't. It works when I do it manually, but its hard to put 360 particles
|
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) |
Did someone solve it?
|
Quote:
I sent you a private message long time ago |
right, but still it didn't work. Did u do it lately?
Can u send your files again? Thank you:confused: |
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 :) |
|
Dear Rexxar
Could you please mail me file injection code that you have , at this email id : amnaamanat73@gmail.com Thank you in advance |
All times are GMT -4. The time now is 08:40. |