Skip to content

Reply To: Particlulate Flow


Dear Jan,

Thank you for your reply. You have been very helpful and I really appreciate it. I am aware of the variable (accExt) but how can I impose it to the particle manager at certain time step after initially setting it in the simulation?

For example: The particle density at time = 0 is 1 but after 10 seconds the particle will have a density of 0.8.

Code snippet:

T newDensity = 0.8;
particle.template setField<PHYSPROPERTIES,MASS>( newDensity*M_PI*radiusP*radiusP );
accExt[1] = -9.81 * (1. – 1. / newDensity);

Best regards,