Atomic Blender (PDB/XYZ)

The Atomic Blender (PDB/XYZ) add-on imports atomic structures (molecules, crystals, clusters, particles, surfaces, etc.), which are described in PDB (.pdb) and XYZ files (.xyz) (Import PDB/XYZ). The add-on reads the coordinates of all atoms in the PDB/XYZ file and represents the atoms as balls in the Blender world. Also the sticks, which are described in PDB files only, can be shown if the sticks are listed in the PDB file. For the import, many options can be chosen, which allow representing the atoms and sticks in different ways. With help of several tools in the Atomic Blender Utilities panel, the atomic structures can be modified after the import. Note that the coordinates of selected atomic structures in the Blender 3D world can also be exported into PDB/XYZ files.

Atomic Blender (PDB/XYZ) is interesting for scientists, who want to visualize their atomic structures described in PDB or XYZ files with Blender. Thanks to Blender, fancy graphics of molecules, crystal structures, surfaces, nanoparticles, clusters and complex atomic arrangements can be obtained. Such graphics meet the standards of top-level journals, which have a high impact factor. See Examples at the end of this page.

Ver también

Info about PDB and XYZ

  • Description of the PDB file format: Wikipedia and RCSB.

  • Descripción del formato del archivo: Wikipedia y Open Babel.

  • Some notes about PDB and XYZ files can also be found on one of the developer’s site and remarks.

  • Muchas moléculas también pueden ser descargadas desde el sitio RCSB (ve a “Download”).

  • A list of software that deals with PDB in different ways can be found on the RCSB site. There also is Vesta, ASE and all the quantum chemical calculators used in research, which can create or even calculate atomic structures and store them in PDB/XYZ files.

Ver también

Forum

  • Please, use the Blender Artists forum for comments and questions.

  • There also is the possibility to ask questions on Stack Exchange. However, note that some of the developers (like Blendphys) don’t have enough credits, which are needed to give answers on Stack Exchange.

Consejo

Defects in an Atomic Structure

If you want to show defects like vacancies in an atomic structure, use an “X” for the element name in the PDB or XYZ file. A defect is shown in the form of a cube.

Import PDB/XYZ

../../_images/addons_import-export_mesh-atomic_import-PDB.png

El panel con las opciones para la importación del PDB.

Camera & Lamp

Una cámara y/o una fuente de luz son ubicadas en el mundo 3D. Ambas son ubicadas de tal forma que toda la estructura atómica puede ser bien vista por la cámara, con suficiente iluminación desde la fuente de luz.

Object to Origin (PDB)

La estructura atómica es ubicada en el origen del mundo 3D (0.0, 0.0, 0.0)

Object to Origin (XYZ)

Ya sea sólo en el primer frame o en todos los frames, la estructura atómica es puesta en el origen del mundo 3D (0.0, 0.0, 0.0).

Balls/Atoms

Type Of

Choose either NURBS, Mesh or Metaballs for the atoms. For option Mesh the Azimuth and Zenith values can be chosen. Metaballs can lead to some fancy effects: for instance, if enough large, their shapes melt together showing some kind of surface effect.

../../_images/addons_import-export_mesh-atomic_import-XYZ.png

El panel con las opciones para la importación del XYZ.

Scaling Factors

Los radios de los átomos, así también como la distancia entre ellos, pueden ser escalados por un factor simple.

Tipo

The type of atom radius (atomic, van der Waals or as specified in the custom data file [predefined]) can be chosen.

Sticks/Bonds (only PDB)

Use Sticks

Use sticks or not.

Tipo

En general, las opciones Sector y Radius determinan la precisión y la dimensión del enlace, respectivamente. La opción Smooth siempre significa que un operador Smooth es aplicado a los enlaces. La opción Color significa que el enlace está dividido en dos partes, mostrando los colores de los dos átomos respectivos que éste conecta.

Instanciar Vértices

The sticks of one element are put into one instancing vertices structure and the sticks appear as cylinders. The instancing vertices structure makes the displaying and loading of many sticks relatively fast (Separate Atoms for more info). Options Unit is the length of a unit (a small cylinder): several of such units are put together forming actually the stick (cylinder). The longer the unit length is the less is the number of such units and thus the faster is the displaying. However, if the unit length is too long the stick becomes eventually longer than the bond length, which the stick will actually represent. This then creates some overlapping effects. Option Bonds displays apart from single also double, triple, etc. bonds whereas option Distance is the corresponding bond distance measured in stick diameter.

Skin

Los modificadores skin y subdivision son utilizados para construir los enlaces. Esto da una buena red de enlaces, que pueden ser usados para mostrar, por ejemplo, sólo los vínculos de la estructura (¡borrar los átomos antes!) Las opciones SubDivV y SubDivR son parámetros del operador subdivision. Si la opción Smooth está activada, el perfil cuadrangular inicial de los enlaces cambia a uno más circular. Notar que si esta opción es elegida, solo habrá un objeto representando a todos los enlaces.

Normal

Son usados cilindros normales. Por cada vínculo es utilizado un cilindro individual. Si está activada la opción One Object, alrededor de No enlaces son unidos en un objeto malla. Esto hace que visualizar los enlaces sea muy rápido. Sin embargo, los enlaces individuales ya no existen más.

Frames (only XYZ)

Load All Frames

Carga sólo el primero o todos los frames.

Skip Frames

Saltea y carga sólo cada n-ésimo frame. Esto es bastante útil para datos grandes donde podría ser suficiente mostrar sólo cada 4 frames.

Frames/Key

Muestra un número específico de frames por clave. Muchos frames en una clave conducen a una presentación más fluida.

Importante

The number of atoms in a frame has to be the same for all frames!

Panel Atomic Blender Utilities

El panel Atomic Blender Utilities hace tu vida más fácil durante la manipulación de átomos de estructuras importadas.

../../_images/addons_import-export_mesh-atomic_utilities-panel.png

El panel Atomic Blender Utilities.

Custom Data File

A separate custom data file containing all types of radii and colors of the atoms can be loaded. Such an option is useful when it is desired to use predefined values for radii and colors. An example can be downloaded from here: Custom data file.

The custom data file is an ASCII file, which can be duplicated and modified by the user. The radius and/or color of the atoms can be permanently changed as follows: Open the ASCII file with a standard text editor, search the name of the atom and change the radius (Radius used). Do the same with the RGB values for the color. The value RGBA(1.0, 1.0, 1.0, 1.0) corresponds to white and RGBA(0.0, 0.0, 0.0, 1.0) is black. Note that the last value of a color tuple is the alpha value of the color.

Inside Blender, the data file needs to be loaded first. The colors and radii are changed after executing Apply. Note that only selected atoms are changed.

Measure Distances

This is to measure the distance of two objects in Object Mode but also in Edit Mode. The unit is Ångström.

Change Atom Size

Type of Radii
Tipo

Con este selector pueden ser elegidos los tipos de radios. Cualquiera de ellos utiliza radios Predefined, Atomic o Van der Waals. Los valores por defecto para los radios Predefined radii son los radios Atomic.

Charge

For option Ionic radii, the charge state can be chosen and the radii of selected objects are instantaneously changed. Select one type of atom (e.g. only all hydrogen ones) and then apply the charge state. Changes only apply if a charge state of an atom is available.

Radii in pm

All radii of a specific type of atom can be manipulated. Type in the name of the atom (e.g. “Hydrogen”) and choose the radius in picometer.

Radii by Scale

This modifies the radii of all atoms with one scaling factor. Type in the scaling factor and increase or decrease the size of the radii by using the Bigger or Smaller button, respectively.

Change Stick Size

The diameter of the sticks are changed. The buttons Bigger and Smaller allow increasing or decreasing the diameter, respectively. The scale factor determines, how strong the change of diameter will be. By using the Outliner, one can apply these operators on only a selection of sticks (e.g. only the sticks of the hydrogen atoms). Note that changes only apply if the sticks are individual objects, e.g. single cylinders or if the sticks are described in instancing vertices structures.

Change Atom Shape

It is possible to change the shape (sphere, cube, icosphere, etc.) and material of the atoms. First, select your atoms in the 3D Viewport or the Outliner.

Forma

Elige la forma en el primer selector.

Material

Elige uno de los materiales en el segundo selector. Los materiales son sólo ejemplos, pueden ser realizados más refinamientos en la pestaña Materials de Properties.

Special

Aquí puedes elegir un objeto con una forma especial, material especial, etc. Tales objetos son bastante buenos para representar defectos en estructuras atómicas. Cuando eliges dicho objeto especial, no puedes elegir más, de forma separada, la forma y el material como lo hacías antes. Pueden ser realizados más cambios en las pestañas Objetcs y Materials de Properties.

Reemplazar

After all, push the Replace button. The shape and/or material of all selected atoms are then changed. This option works for objects and instancing vertices object structures.

Predefinido

Si quieres tener valores por defecto (esferas NUBRS, y colores y tamaños de elementos específicos) de los átomos seleccionados, aprieta el botón Default.

Separate Atoms

When structures are imported via the PDB or XYZ importer, the atoms are put into a so-called instancing vertices structure, somewhat into “groups” of elements (e.g. all hydrogen atoms form one instancing vertices structure). In the Edit Mode of Blender, single atoms can be deleted or displaced by modifying the position of the vertices. However, they are always a part of the structure and are not independent objects. Sometimes one would like to mark a single atom or replace an atom by something different: for instance, imagine you have a NaCl cube where you would like to replace an atom by an atomic defect in form of a ball with a different color.

To separate single atoms, one needs to select the atom (vertices) first in the Edit Mode. In the Atomic Blender Utilities panel, the Object selector and the Separate button appear at the bottom. If the selector remains on Unchanged the type of object (NURBS, mesh, meta) and its properties will not be changed upon separation. If desired also an other type of object can be chosen, which then replaces the standard type of object.

After having chosen the type of object, use button Separate Atoms to separate the selected atoms: the atoms are then single, new objects, which can be manipulated in any way. They appear in the Outliner and carry the suffix _sep.

Consejo

Converting All Atoms of an Instancing Vertices Structure to Real Independent Objects

Do the following: Select the whole atomic structure with the mouse then use Hacer Reales a las Instancias. With this you produce real independent objects! In the Outliner delete the remaining instancing vertices structures, named like «Carbon», «Hydrogen», etc.

Ejemplos

../../_images/addons_import-export_mesh-atomic_molecule-representations.jpeg

Diferentes presentaciones de una y varias moléculas.

../../_images/addons_import-export_mesh-atomic_DNA.jpeg

Parte de una molécula de ADN.

../../_images/addons_import-export_mesh-atomic_JPCC-2014.jpg

Functionalized [5]helicene molecules on the NaCl(001) surface (Clemens Barth et al. – Link to publication).

../../_images/addons_import-export_mesh-atomic_ESE-2017.jpeg

Solar cell structure to underline the properties of silicon nanocrystals deposited by pulsed spray system (Mickael Lozac’h et al. – Link to publication).

The following movie was created by Sébastien Coget (responsible researcher: Frank Palmino) at the Femto-ST institute in Besançon (France). The movie demonstrates that with Blender, professional movies can be done for research. It was rendered with Cycles.