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. Script examples to create sheets and boxes of atoms

Script examples to create sheets and boxes of atoms

Scheduled Pinned Locked Moved Share Python scripts
2 Posts 2 Posters 1.1k 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

    I'm posting these in-case they are helpful to anyone else. They were helpful to me in learning more about writing scripts inPython for SAMSON. The first script create_lonsdaleite_XY.py takes a set of atom coordinates (called the moiety_list) to create a structural group. It then replicates that group over and over while adding them to the structural model to make a sheet. create_lonsdaleite_XY.py

    The second creates a 3D box by adding atoms to the structural model directly. It is the more elegant solution and was given to me by Dmitriy.

    create_lonsdaleite_XYZ_atoms.py

    Hope these are helpful to anyone, and I hopefully more to follow!

    Tom

    1 Reply Last reply
    1
    • DmitriyMarinD
      DmitriyMarinD
      DmitriyMarin
      wrote on last edited by
      #2

      Thanks 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