How to use Paraview to visualize the spins ?

366 views
Skip to first unread message

Nakamura

unread,
Apr 22, 2022, 5:37:49 AM4/22/22
to Vampire Users
Hello, Vampire users. I tried to  convert the computed data files using  vdc --vtk and visualize the spin moments using Paraview, but when I open the generated .vtu files, there are no spins being represented in Paraview window. As I'm new to Paraview, did I miss something here in viewing data using Paraview ?

gabo...@gmail.com

unread,
Apr 23, 2022, 12:05:12 PM4/23/22
to Vampire Users
See if the following helps.

The attached .data and .meta files were obtained from running "vampire-serial" with "config:atoms" and "config:atoms-output-rate = 100" in an "input" file and "material[1]:initial-spin-direction=0,0,1" in a .mat file.

username@computername:~/Desktop/test$ ls -l
total 340
-rw-r--r-- 1 username username 144429 Apr 23 09:26 atoms-coords.data
-rw-r--r-- 1 username username    515 Apr 23 09:26 atoms-coords.meta
-rw-r--r-- 1 username username 188609 Apr 23 09:26 spins-00000000.data
-rw-r--r-- 1 username username    511 Apr 23 09:26 spins-00000000.meta
username@computername:~/Desktop/test$ /home/username/vampire/util/vdc/vdc --povray
|------------------------------------------------------------|
|              Vampire Data Converter for v5+                |
|------------------------------------------------------------|
Processing snapshot 00000000
username@computername:~/Desktop/test$ povray spins
...

The above created the attached "spins.png", where the arrows can be seen pointing up in the z direction.

username@computername:~/Desktop/test$ /home/username/vampire/util/vdc/vdc --vtk
|------------------------------------------------------------|
|              Vampire Data Converter for v5+                |
|------------------------------------------------------------|
Processing snapshot 00000000
username@computername:~/Desktop/test$ paraview spins-00000000.vtu

In Paraview:

1. Clicked Apply button
2. Clicked Glyph button
3. Selected spin for Orientation Array
4. Selected spin for Scale Array
5. Clicked Apply button
6. Clicked "Set view direction to +Y" button

In spins-vtk.pdf attached, arrows can be seen in Paraview pointing up in the z direction.

Kind Regards,
Gavin
VAMPIRE user
spins-00000000.meta
atoms-coords.data
spins.png
atoms-coords.meta
spins-vtk.pdf
spins-00000000.data

Nakamura

unread,
Apr 23, 2022, 11:58:43 PM4/23/22
to Vampire Users
Thanks, Gavin, you have been very helpful. Now I'm able to view the spins in Paraview without problem.

bipul.kum...@gmail.com

unread,
Aug 2, 2022, 7:11:26 AM8/2/22
to Vampire Users
Dear Dr. Nakamura,
                          I was trying to generate the vtk files using the command util/vdc/vdc -- vtk but it is generating only .inc files. It's not generating .vtk files. Can you suggest a solution to this, please ?
Regards,
Bipul

gabo...@gmail.com

unread,
Aug 2, 2022, 8:32:48 AM8/2/22
to Vampire Users
Are you able to get the .vtu files when you run the rocksalt workshop example?

username@computername:~/Desktop$ mkdir rocksalt
username@computername:~/Desktop$ cd rocksalt/
username@computername:~/Desktop/rocksalt$ wget https://raw.githubusercontent.com/richard-evans/vampire-workshop/master/input-files/1_intro/1d_visualisation/input
...
username@computername:~/Desktop/rocksalt$ wget https://raw.githubusercontent.com/richard-evans/vampire-workshop/master/input-files/1_intro/1d_visualisation/rocksalt.mat
...
username@computername:~/Desktop/rocksalt$ ls -l
total 8
-rw-rw-r-- 1 username username 1401 Aug  2 06:06 input
-rw-rw-r-- 1 username username 1290 Aug  2 06:06 rocksalt.mat
username@computername:~/Desktop/rocksalt$ ~/vampire/vampire-serial
                                                _          
                                               (_)        
                    __   ____ _ _ __ ___  _ __  _ _ __ ___
                    \ \ / / _` | '_ ` _ \| '_ \| | '__/ _ \
                     \ V / (_| | | | | | | |_) | | | |  __/
                      \_/ \__,_|_| |_| |_| .__/|_|_|  \___|
                                         | |              
                                         |_|              

                      Version 6.0.0 May 15 2022 09:35:26

             Git commit: 4c9651daecc86c3e6b6df0c8055fcd9e89fd900c

  Licensed under the GNU Public License(v2). See licence file for details.

  Lead Developer: Richard F L Evans <richar...@york.ac.uk>

  Contributors: Sarah Jenkins, Andrea Meo, Andrew Naden, Matthew Ellis,
                Oscar Arbelaez, Sam Morris, Rory Pond, Weijia Fan,
                Phanwadee Chureemart, Pawel Sobieszczyk, Joe Barker,
                Thomas Ostler, Andreas Biternas, Roy W Chantrell,
                Wu Hong-Ye, Razvan Ababei, Sam Westmoreland,
                Daniel Meilak
 
                Compiled with:  GNU C++ Compiler
                Compiler Flags:

  Vampire includes a copy of the qhull library from C.B. Barber and The
  Geometry Center and may be obtained via http from www.qhull.org.

================================================================================
Tue Aug  2 06:08:04 2022
================================================================================
Initialising system variables
Creating system
Generating neighbour list..........done!
Copying system data to optimised data structures.
Using generic/normalised form of exchange interaction with 48 total interactions.
Number of atoms generated: 33408
Starting Simulation with Program Time-Series...
Simulation run time [s]: 427.576
Monte Carlo statistics:
    Total moves: 367488000
    49.9469% Accepted
    50.0531% Rejected
Simulation ended gracefully.
username@computername:~/Desktop/rocksalt$ ls *.data *.meta
atoms-coords.data  spins-00000000.data  spins-00000001.data
atoms-coords.meta  spins-00000000.meta  spins-00000001.meta
username@computername:~/Desktop/rocksalt$ ~/vampire/util/vdc/vdc --vtk

|------------------------------------------------------------|
|              Vampire Data Converter for v5+                |
|------------------------------------------------------------|
Processing snapshot 00000000
Processing snapshot 00000001
username@computername:~/Desktop/rocksalt$ ls *.vtu
spins-00000000.vtu  spins-00000001.vtu

Kind Regards,
Gavin
VAMPIRE user

Reply all
Reply to author
Forward
0 new messages