[FLASH-USERS] How can I add density property to the particle

Klaus Weide klaus at flash.uchicago.edu
Thu May 27 11:56:38 EDT 2021


On Thu, 27 May 2021, Tristan wrote:

> I am doing a simulation about the characteristic of the high mach 
> turbulence. I want to add some passive Lagrangian particles into the 
> simulation. But the default properties of particles include velocity and 
> position, not the density. I want to know the density of the trajectory 
> the particles draw. Maybe use the Runge-Kutta method.
> 
> I have reading the guide and add the two line to the ParticlesMain unit Config :
> 
> ```
> PARTICLEPROP dens REAL
> PARTICLEMAP TO dens FROM VARIABLE dens
> ```

You need something like this in addition:

  D particle_attribute_1 specification of which particle_attributes 
  D & to output. The same description is valid for particles_attributes_2...etc
  PARAMETER particle_attribute_1 STRING "dens"
  PARAMETER particle_attribute_2 STRING "temp"
  ...


Klaus



More information about the flash-users mailing list