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

Hanif zargarnezhad h.zargarnejad at gmail.com
Thu May 27 11:43:55 EDT 2021


Hello,

For all particle properties, you can define the variables in the Config
file as you did and initialize them easily in flash.par. Since you said the
variables are -1, that means you've defined them but you did not give them
any values neither initial value nor dependent value based on an equation.
If you are using an equation in the mentioned root, please make sure you
put this directory in the Config file to be able to call that. The easiest
approach is checking the file inside your object folder, if it's there so
your new subroutine (pt_advanceRK.f90) is overwritten correctly but you
need to check your variables.

regards,

Hanif Zargarnezhad

Fluid Mixing at Extreme conditions Laboratory

Doherty Bldg 110A

Texas A&M Dept. of Mechanical  Engineering

Graduate Research Assistant

On Thu, May 27, 2021 at 10:20 AM Tristan <juwj at mail2.sysu.edu.cn> wrote:

> Hello, everyone:
> 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
> ```
>
> I can get the particles output file, it includes the density property, but
> all the values are  -1. I guess the density is initialized but not updated
> each step.
>
> Do I need to change the  pt_advanceRK.F90 in the
> ParticlesMain/passive/RungeKutta directory? If someone have done the same
> thing. Please give me some advice.
> Thanks!
> Best wishes!
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20210527/da018f61/attachment.htm>


More information about the flash-users mailing list