Skip to content
0
  • Recent
  • Tags
  • Popular
  • SAMSON Connect
  • Get SAMSON
  • Recent
  • Tags
  • Popular
  • SAMSON Connect
  • Get SAMSON
Collapse
SAMSON Forum
  1. Home
  2. Connect
  3. Share Python scripts
  4. Coloring atoms by velocity from LAMMPS data

Coloring atoms by velocity from LAMMPS data

Scheduled Pinned Locked Moved Share Python scripts
2 Posts 2 Posters 1.6k Views 1 Watching
  • 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
    T
    Tom 1
    wrote on last edited by
    #1

    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

    DmitriyMarinD 1 Reply Last reply
    1
    • T Tom 1

      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

      DmitriyMarinD
      DmitriyMarinD
      DmitriyMarin
      wrote on last edited by
      #2

      Thanks for sharing, Tom!

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

      1 Reply Last reply
      0

      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
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Login or register to search.
      • First post
        Last post