SAMSON Forum
    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • SAMSON Connect
    • Get SAMSON

    Coloring atoms by velocity from LAMMPS data

    Share Python scripts
    2
    2
    163
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      Tom 1 last edited by

      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

      DmitriyMarin 1 Reply Last reply Reply Quote 1
      • DmitriyMarin
        DmitriyMarin @Tom 1 last edited by

        Thanks for sharing, Tom!

        Dmitriy,
        The SAMSON Team, https://s-c.io

        1 Reply Last reply Reply Quote 0
        • First post
          Last post