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

    Load and visualize a xyz trajectory frame by frame

    SAMSON
    2
    13
    1721
    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.
    • L
      Luis last edited by

      Great. Thanks @DmitriyMarin

      1 Reply Last reply Reply Quote 0
      • L
        Luis last edited by

        Hello,

        SAMSON (last version) is crashing when I tried to load a multi-frame xyz file. I haven't tried to visualize trajectories in xyz format for a while, so I don't know if something has changed in the last versions. Could someone please tell me if this is no longer supported. Has the format changed maybe?

        Thanks in advance.

        Luis

        DmitriyMarin 1 Reply Last reply Reply Quote 0
        • DmitriyMarin
          DmitriyMarin @Luis last edited by

          Hi @Luis ,

          This is still supported and will be supported. Would it be possible for you to share with us the XYZ file that causes the issue (you can send it to contact@samson-connect.net) so that we can check what might be the problem?

          Please note that there are several flavors of XYZ format that vary slightly. While we try to support as many of them as possible, the main format follows the following format:

          NUMBER_OF_ATOMS
          COMMENT_LINE
          ELEMENT_TYPE POS_X POS_Y POS_Z
          

          For example:

          3
           STEP:           1
           H      0.967485      6.687080      5.821420
           H      2.507099      7.320300      6.535832
           H      2.819131      8.163311      3.557150
          3
           STEP:         2
           H      0.987382      6.755653      5.887846
           H      2.528730      7.288068      6.545012
           H      2.899837      8.187620      3.675997
          
          

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

          1 Reply Last reply Reply Quote 0
          • L
            Luis last edited by

            Hi @DmitriyMarin ,

            Thanks for the quick reply. I used the example from your answer, and it crashed the application as shown in the image below

            Screenshot_2024-08-16_09-59-12.png

            1 Reply Last reply Reply Quote 0
            • DmitriyMarin
              DmitriyMarin last edited by

              That's strange since it should work. We received your crash report and will check what might be the issue.
              Are you able to open other file formats?

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

              1 Reply Last reply Reply Quote 0
              • L
                Luis last edited by

                I am able to open XYZ files with a single frame. LAMMPS data and trajectory files are also loaded without problem. As a workaround I can transform the XYZ trajectory files to LAMMPS data and lammpstrj to visualize them (the bonds are not generated automatically), but it requires to use external tools (or scripting something).

                1 Reply Last reply Reply Quote 0
                • DmitriyMarin
                  DmitriyMarin last edited by

                  Thanks for checking! We will try to see what might be an issue here. I will let you know once it is resolved.

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

                  1 Reply Last reply Reply Quote 0
                  • DmitriyMarin
                    DmitriyMarin last edited by

                    Dear @Luis ,

                    We fixed the issue with the XYZ importer for loading trajectories. The module should be updated automatically once you restart SAMSON. Could you please try and check if it works for you now?

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

                    1 Reply Last reply Reply Quote 0
                    • L
                      Luis last edited by

                      Dear @DmitriyMarin ,

                      Thank you very much. It works!

                      With kind regards,

                      Luis

                      DmitriyMarin 1 Reply Last reply Reply Quote 0
                      • DmitriyMarin
                        DmitriyMarin @Luis last edited by

                        Dear @Luis ,

                        Great! Thanks for checking and for reporting the issue in the first place!

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

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