Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - Kevin

Pages: [1]
Support Forum / can ovito movie rendering be paralleled?
« on: September 23, 2018, 08:37:38 AM »
Hello Dr.Stukowski,

I was just wondering if ovito movie rendering could be accelerated with multiple cores?

I tried with single core vs. multiple cores, and it seems like the movie rendering speed does not increase with the increase of core number.


Support Forum / which gcc is used to compile ovito?
« on: September 16, 2018, 07:59:42 AM »
Hello Dr.Stukowski,

Is gcc 5.1 used to compile linux version of ovito? (That was the only update that you wrote on the update info page (

I am using gcc 4.8.5 in centOS 7.5, and "ovitos" is complaining as follows:
Code: [Select]
./ovitos: /software/centos7/lib64/ version `CXXABI_1.3.9' not found (required by ./ovitos)

It looks like gcc 4.8.5 does not have CXXABI_1.3.9, and I was wondering what gcc version I should be using to use ovitos. (But before the supercomputer server updated to centOS 7.5 from 6.9, it worked fine with 4.8.5.)


Support Forum / viewport
« on: April 17, 2018, 06:17:45 AM »
Hello Dr.Stukowski and OVITO users,

I am trying to output a movie in python scripting. I found there are three parameters I can adjust, but have struggled to really understand what the parameters actually do. Three parameters are as follows:
1. fov
2. camera_pos
3. camera_dir

Could anyone help me adjust the parameters so that I can mimic the 'Perspective' viewport as in GUI? (see attached image)

- Kyu

Support Forum / rendering quality
« on: March 11, 2018, 11:15:00 PM »
Hello OVITO users,

I am using 'TachyonRenderer' to output a movie from dump files. (TachyonRenderer is used because I am outputting movie on the remote cluster, so openGL doesn't work)

As you can see from the attached file, quality of the picture is low. This happens so because I am using very big simulation box (3200 angstrom in x direction). Is there a way to increase the definition of the movie?


Support Forum / how to import_file with specified dump files
« on: February 25, 2018, 07:32:53 AM »
Hello everyone,

Is there a way to import only the dump files that I want?

I know combining 'wildcard character' and 'multiple_frames' option would allow OVITO to import multiple frames as follows:
Code: [Select]
import_file("dump.200.*",  multiple_frames = True)
However, let's say one has dump files called dump.0000, dump.0001, dump.0002, dump.0003.
And one only wants OVITO to import all the frames only in dump.0000 and dump.0001, excluding dump.0002 and dump.0003.

If anyone has encountered a problem like this and figured out how to do so,
please share your solution.


Support Forum / How to calculate max and min of cluster's position
« on: February 13, 2018, 04:49:58 AM »
Hello everyone,

I figured out this problem after writing all the question and right before submitting it,
but I will just post this anyways with the working code in case someone finds helpful.

Following is the code that identifies a cluster of HCP atoms, extracts only the atoms in the cluster, and calculates maximum and minimum x-position of this cluster.

Essentially I was trying to find the stackingfault width of a dissociated dislocation.

Code: [Select]
from import *
from ovito.modifiers import *
import numpy

node = import_file("dump.200.*",
                   multiple_frames = True)
# Modifiers                                                                                                 
# Modifier 1: CNA                                                                                           

# Modifier 2: Select HCP (dislocation)                                                                     
                      (expression = 'StructureType==2'))
# Modifier 3: Cluster HCP                                                                                   
                       only_selected = True))
# Modifier 4: Select cluster 0, which doesn't belong to any cluster.                                                                           
                      (expression = 'Cluster==0'))
# Modifier 5: Delete cluster 0                                                                                       

#Each particle's Position.X in addition to cluster id                                                                   
#can be outputted to xyz format file as follows:                                                           
export_file(node, "1xyz", "xyz",
            columns = ["Cluster", "Position.X"])

# BUT, I wanted to have access to position data in this script level
# to calculate Min and Max values of Position.X
# All particle_properties that belong to 'deleted_particles' seem
# to get deleted
data = node.compute()
cluster = data.particle_properties['Cluster'].array #this is not necessary
pos = data.particle_properties['Position'].array
xpos = pos[:,0]
leading = max(xpos)
trailing= min(xpos)

PS. Just in case someone new to OVITO finds this post and is trying to understand better way of manipulating clustering feature, I found the following post helpful:
(Note that the post was written 2017 Feb, and note the version of OVITO by then.)

Support Forum / source, output attributes
« on: February 10, 2018, 06:45:37 AM »
Dear Dr.Stukowski,

I observed a weird behavior in both OVITO 2.9.0 and 3.0.0, so I report it here.

The following code reads in two files(dump.200.0000 and dump.200.0001).
Each timestep is incremented by 2500.
So, node.compute(3) should result in timestep 7500.

Since node.compute() should cache the most recent compute to the node.output field,
expected outputs for the last 3 lines of the codes are as follows:
0        => node.source.attributes['Timestep']   
7500  => node.output.attributes['Timestep']
7500  => theOutput.attributes['Timestep']

However, the outputs from 2.9.0 version are as follows:
7500  => (source should remain at the timestep 0)

*I was going to say 3.0.0 version also behaves weirdly as follwos,
*but I guess 3.0.0 version doesn't have output field anymore.
Also, the outputs from 3.0.0 version are as follows:
0    =>(I don't think the most recent compute is cached into output field)

Code: [Select]
from import *
from ovito import dataset
from ovito.modifiers import *
import numpy

node = import_file("dump.200.*",
                   multiple_frames = True)
# Modifiers                                                                     
# Modifier 1: CNA                                                               
# Modifier 2: Selection                                                         
                      (expression = 'StructureType==3'))


Support Forum / Accessing ovito source for histogram
« on: February 09, 2018, 08:23:10 PM »
Dear Dr.Stukowski,

I want to access how OVITO GUI works when it outputs histogram data.
Specifically, I want to figure out what the output format is. It is because the last floating number of histogram data in the following has one less decimal, and I couldn't mimic this behavior in my scripting version of histogram output. (I am trying to implement automated testing between data outputted from GUI and data from scripting.)

I was able to locate here:
but this file only specifies how histogram data is created.

Code: [Select]
# Position.X histogram (bin size: 2.01018)
1.09469 2
3.10487 1
5.11505 1
7.12524 0
9.13542 0
11.1456 1
13.1558 1
15.166 1

Thank you,

Support Forum / Box size in Ovito scripting
« on: February 08, 2018, 03:33:32 AM »
Dear Dr. Stukowski,

Attached is the image of 'Simulation cell' panel from ovito.
It seems like there is no function(?) to access Box sizes of simulation cell on scripting.
I could calculate this from "Cell geometry" but was wondering if there is a function to retrieve box size directly since it is offered in the OVITO GUI.


Support Forum / ovito on Linux
« on: February 02, 2018, 08:07:54 PM »
Ovito executable file on linux seems to be not a 'stand-alone' executable. So if I move 'ovitos' executable to '~/bin', ovitos wouldn't work.

I am currently using both 2.9.0 and 3.0.0 version, and am trying to find a way to run both versions of 'ovitos'.

I could add the ovito directory to $PATH environment, but then ovitos (2.9.0) and ovitos(3.0.0) will not be distinguished. Is there a way to distinguish two versions of ovitos with different name? (Would it be possible to change the name of 'ovitos' to 'ovitos3')

Support Forum / installing two versions of OVITO
« on: February 01, 2018, 03:07:21 PM »
Hello Dr. Stukowski,

Is it possible to install both OVITO 2.9.0 and 3.0.0 on mac?
I currently have 2.9.0 version on my mac, but I believe installing 3.0.0 would delete 2.9.0.
Would it be possible to keep both?


Support Forum / histogram over all frames
« on: January 30, 2018, 11:07:19 PM »
Hello Dr.Stukowski,

I wrote a python script that can run with 'ovitos' command. The script reads dump file with multiple frames, and selects all the atoms that are classified as BCC (structure type 3). Then histogram data (BCC atoms counts with respect to Position in Z direction) is outputted. This histogram data is appended to the same output file for all the frames.

However, this script becomes slow after several frames, and even much slower as more frame is processed.
It takes a few seconds to proceed from frame 0 to frame 10, but it takes an hour to proceed to frame 100.

Can you please help me with this issue? Original code and sample output file are attached.

Code: [Select]
# Settings                                                                                         

from import *
from ovito import dataset
from ovito.modifiers import *
import numpy

node = import_file("dump.*",
                   multiple_frames = True)
fout = open(outFilename, 'wb')

for frame in range (node.source.num_frames):

    dataset.anim.current_frame = frame

    # Modifier 1: CNA                                                                             

    # Modifier 2: Selection                                                                       
                          (expression = 'StructureType==3'))
    # Modifier 3: Histogram                                                                       
    hist_modifier = HistogramModifier(bin_count = number_bin,
                                      particle_property = wchProfile,
                                      only_selected = True,
                                      fix_xrange = True,
                                      xrange_start = 0,
                                      xrange_end = range_end)

    # Write                                                                                       
    header = ('timeframe = ' + str(dataset.anim.current_frame) + '\n' +
              'z\tcount(bcc atoms)\n')




Pages: [1]