VMD-L Mailing List
From: Olaf Lenz (olenz_at_icp.uni-stuttgart.de)
Date: Thu Feb 13 2014 - 02:18:39 CST
- Next message: Arham Amouie: "Re: AW: Simplest file format that includes atom color?"
- Previous message: Norman Geist: "AW: Simplest file format that includes atom color?"
- In reply to: Arham Amouie: "Simplest file format that includes atom color?"
- Next in thread: Arham Amouie: "Re: Simplest file format that includes atom color?"
- Reply: Arham Amouie: "Re: Simplest file format that includes atom color?"
- Maybe reply: Arham Amouie: "Re: Simplest file format that includes atom color?"
- Reply: Arham Amouie: "Re: Simplest file format that includes atom color?"
- Maybe reply: Olaf Lenz: "Re: Simplest file format that includes atom color?"
- Maybe reply: Axel Kohlmeyer: "Re: Simplest file format that includes atom color?"
- Maybe reply: Olaf Lenz: "Re: Simplest file format that includes atom color?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Hi!
As Norman already wrote, it is hard to guess what you really want. I assume
that you want to be able to choose the color of each atom individually.
In VMD, the color of an atom is determined by the "Coloring Method", that
you can choose in the dialog "Graphics -> Representations...". By default,
it uses the "Name" coloring method, which determines the color of the atom
by the first letters of the atom name and colors it accordings to the
element (an atom with the name "C" is a carbon, so it is colored cyan, "H"
is white, ...)
Alternatively, you can color the atoms based on some property of the atom,
e.g. the mass, the charge, beta, and the color scale. To be able to use
that, you will have to set these properties somehow, and this is indeed
something that you should do via the file format.
For cases like yours, I have created the VTF file format, which can be
visualized by VMD:
https://github.com/olenz/vtfplugin/wiki/VTF-format
When you already generate XYZ-files, then transforming them to VTF-files is
simple. In a VTF file, you can modify any of the properties of the atoms.
Olaf
2014-02-12 20:28 GMT+01:00 Arham Amouie <erham65t_at_yahoo.com>:
> Hello
>
> I've written a MD code for EAM potentials. The typical number of atoms is
> of the order of 1 million. This code saves the positions in xyz files and I
> use VMD for visualization. Now, I'm going to change the output, so that
> each atom can have its particular color. I used csv format of ParaView for
> this reason, but ParaView doesn't work fast for me. What is the easiest
> solution in VMD?
>
> Thanks in advance
> Arham Amouei
>
-- Dr. rer. nat. Olaf Lenz Institut für Computerphysik, Allmandring 3, D-70569 Stuttgart Phone: +49-711-685-63607
- Next message: Arham Amouie: "Re: AW: Simplest file format that includes atom color?"
- Previous message: Norman Geist: "AW: Simplest file format that includes atom color?"
- In reply to: Arham Amouie: "Simplest file format that includes atom color?"
- Next in thread: Arham Amouie: "Re: Simplest file format that includes atom color?"
- Reply: Arham Amouie: "Re: Simplest file format that includes atom color?"
- Maybe reply: Arham Amouie: "Re: Simplest file format that includes atom color?"
- Reply: Arham Amouie: "Re: Simplest file format that includes atom color?"
- Maybe reply: Olaf Lenz: "Re: Simplest file format that includes atom color?"
- Maybe reply: Axel Kohlmeyer: "Re: Simplest file format that includes atom color?"
- Maybe reply: Olaf Lenz: "Re: Simplest file format that includes atom color?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]