About coloring method by large and small particals separately at dump image comand

Dear,users.

I research to rotate granules with a mixier by LAMMPS.

I define the size and total number of particles by the following code.

"fix ins all pour 2000 2 165195 region insreg rate 1.0 vol 0.6 10 dens 2.0 2.0 diam poly 2 0.8 0.5 1.2 0.5 "

However,I do not know how to output the images that define the color for each particles diameter size by dump comand.
(I want to color large and small particles separately.)

What should be added to the following commands ?

“dump date all image 10000 image.*.jpg type type & axes yes 0.8 0.02 view 60 -30 zoom 1.5 & box no 0.0 axes no 0.0 0.0”

Or,should I use “dump_modify command”?

Thank you.

Koyanagi Mizuki

Dear,users.

I research to rotate granules with a mixier by LAMMPS.

I define the size and total number of particles by the following code.

"fix ins all pour 2000 2 165195 region insreg rate 1.0 vol 0.6 10 dens 2.0 2.0 diam poly 2 0.8 0.5 1.2 0.5 "

However,I do not know how to output the images that define the color for each particles diameter size by dump comand.
(I want to color large and small particles separately.)

What should be added to the following commands ?

"dump date all image 10000 image.*.jpg type type & axes yes 0.8 0.02 view 60 -30 zoom 1.5 & box no 0.0 axes no 0.0 0.0"

Or,should I use "dump_modify command"?

neither. please have a more careful look at the documentation for dump image.

if you look at the dump command, you should pay attention to the two
"type" parameters here:

dump date all image 10000 image.*.jpg type type ...

the first is the property deciding the color of the particle shown,
and the second is the property deciding the size.
so, if you want to color by size (i.e. diameter), you need to replace
the dirst "type" with "diameter".
you would only need to use dump_modify, if you want to change the
specific colors used to map the parameter to colors or the coloring
method.

axel.

Thank you for your reply.

I tyid to replace the first “type” with “diameter”, but I got an error message “Invalid color map min/max values”

I read documentaion for dump_modify command, but I cannot understand how to set coloring method.

Shoud I use “amap” keyword?

Please help mee$B!De(B

Koyanagie$B!!e(BMizuki

Thank you for your reply.

I tyid to replace the first "type" with "diameter", but I got an error message "Invalid color map min/max values"

I read documentaion for dump_modify command, but I cannot understand how to set coloring method.

Shoud I use "amap" keyword?

the documentation explains what to do. if you cannot figure it out for
your given example, try with something simpler first and check out
what each of the relevant commands are doing.

axel.