How to distribute particles randomly at initial time
Dear All,
I would like to simulate a channel turbulent flow with particles by using DPMFoam, there should be constant 20000 particles in the field for each time step. My question is how to inject those 20000 particles into the field randomly at initial time, if I specify manualInjection in "kinematicCloudProperties" and use a "kinematicCloudPositions" file to specify the location of each particle, it would be troublesome. Is there any better solution? Please let me know is you are aware of this.. Thank you! |
Hi,
I know that the answer is a little bit late and maybe you already found other help. What I would try to do is to programm a small code that can create you the random positions in a X/Y/Z-Space. You can write them out of your programm as a .txt-File. That means you can use any programming language that you want (not necessarily C++). Have you already exeriances with programming? Simon |
Hello again,
i was writing a python-program for generating the random numbers and saving them in a file. I put it in this post. If you want you can just copy it, paste it in your python-editor and edit the parameters. Maybe there are better way to have the same result. So let me know if you found one. Code:
#!/usr/bin/env python3 Thank you Simon |
Sorry to answer myself always :D
can someone help me how to inject particles instead at a single timepoint in a specified timeframe? Maybe just upload the kinematicCloudProperties or what else I have to know for this. This would be very nice from you. Thank you Simon |
Latin Hypercube design
Quote:
|
All times are GMT -4. The time now is 08:45. |