CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   CFX (http://www.cfd-online.com/Forums/cfx/)
-   -   stopping mass flow of droplets in the midst of a simulation (http://www.cfd-online.com/Forums/cfx/77389-stopping-mass-flow-droplets-midst-simulation.html)

alastormoody11 June 22, 2010 05:27

stopping mass flow of droplets in the midst of a simulation
 
Hi,

I am modeling a spray injection and the injection lasts only for 20ms and the injected particles take 0.14s to traverse the flow domain, to make the simulation realistic as well as to reduce the computational cost(I will be tracking 5million particles instead of 1 lakh particles) I guess I would have to write a user subroutine for this since there is no readymade function for this sort of thing, if anyone has faced a similar sort of problem can they share their code or suggest any other method of achieving this sort of mass flow.

ghorrocks June 22, 2010 19:58

? What are you talking about? This is exactly the sort of thing the particle tracking model is in CFX for. And if you have more particles than the particle tracking can handle then CFX also has eularian approaches.

Also note that particle tracking models do not model every particle. The modelled particles represent a population of particles, so you just need enough particles to describe the population. It is unlikely you will need 5 million particles to get adequate resolution of the population.

Either way there should be no need for you to write your own stuff.

alastormoody11 June 23, 2010 09:39

Respected Sir,

The problem is that at t=0s the particle injection starts and it ends at t=20milliseconds, however the particles that are injected during this interval at least 0.14s to traverse the control volume, now if I stop the particle injection at t=20ms I track only 100000 particles however if the particles are continually injected I have to track 5000000 particles which I think will overwhelm the system I am working on. Also I realised that 100 particles per time step was too high a number so have diminished the number of particles emitted per time step to 10. However it would be more realistic, and compuationally helpful if I could stop the particles from flowing in at t=20ms I hope that I have made the problem clear and await your reply.

Regards,

Ashish

alastormoody11 June 23, 2010 09:44

Also checked out CEL functions for the above purpose they have a step function but I dont think it can be used as it is since it gives some odd values at zero.

ghorrocks June 23, 2010 18:36

You don't seem to understand how particle tracking works. It works by injecting a representative sample of particles and tracking them. Each modelled particle represents a large number of particles, not one single particle. This means to model 5M particles you probably only need 2k modelled particles (that's just a guess, you need to do a sensitivity study to work out the true required number) - and each modelled particle represents 500 true particles and therefore has momentum coupling of the full 500 particles.

You can give particles a maximum life so they disappear at a given time or particle lifetime.

As for injection times, yes that is easily done by step functions, if statements or interpolation functions. I have no idea what you mean by "odd values at zero", it works just fine.


All times are GMT -4. The time now is 04:45.