Coloring atoms by velocity from LAMMPS data
-
Hi Everyone,
There is this example in the documentation that will read in velocity data from a LAMMPS dump file and color atoms based on a normalized velocity. It's great as it, but I wanted images with discrete colors. Also, I needed to add a scaling factor to bump up the coloring coordinate.
You can see an example here: https://youtu.be/B2bGnjffSR8
I've got plans to expand this to color by temperature or kinetic energy. You can get this version here:
https://github.com/mooreth/misc/blob/main/color_atoms_along_path_by_vel2.py
-
Hi Everyone,
There is this example in the documentation that will read in velocity data from a LAMMPS dump file and color atoms based on a normalized velocity. It's great as it, but I wanted images with discrete colors. Also, I needed to add a scaling factor to bump up the coloring coordinate.
You can see an example here: https://youtu.be/B2bGnjffSR8
I've got plans to expand this to color by temperature or kinetic energy. You can get this version here:
https://github.com/mooreth/misc/blob/main/color_atoms_along_path_by_vel2.py
Thanks for sharing, Tom!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login