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.

Voir aussi

Info about PDB and XYZ

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

  • Description du format de fichier XYZ: Wikipedia et Open Babel.

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

  • De nombreuses molécules peuvent être téléchargées sur le site du site RCSB (aller sur “Télécharger”).

  • 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.

Voir aussi

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.

Indication

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

Le panneau avec les options d’importation PDB.

Camera & Lamp

Une caméra et/ou une source de lumière sont placées dans le monde 3D. Les deux sont placés de telle sorte que toute la structure atomique puisse être bien vue par la caméra avec suffisamment de lumière provenant de la source lumineuse.

Object to Origin (PDB)

La structure atomique est placée à l’origine (0.0, 0.0, 0.0) du monde 3D.

Object to Origin (XYZ)

Soit dans seulement la première image, soit dans toutes les images, la structure atomique est mise à l’origine (0.0, 0.0, 0.0) du monde 3D.

Boules/Atomes

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

Le panneau avec les options d’importation XYZ.

Scaling Factors

Les rayons des atomes ainsi que les distances entre les atomes peuvent être redimensionnés par un simple facteur.

Type

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

Sticks/Bonds (seulement PDB)

Use Sticks

Use sticks or not.

Type

En général, les options Sector et Radius déterminent respectivement la précision et la dimension des sticks. L’option Smooth signifie toujours qu’un opérateur Smooth est appliqué sur les sticks. L’option Color signifie que le stick est divisé en deux parties, montrant les couleurs des deux atomes respectifs qu’il relie.

Instancing Vertices

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

Les modificateurs skin et subdivision sont utilisés pour construire les sticks. Cela donne un joli réseau de sticks, qui peuvent être utilisés pour montrer, par exemple seulement les liaisons de la structure (supprimez les atomes avant!). Les options SubDivV et SubDivR sont des paramètres de l’opérateur de subdivision. Si l’option Smooth est activée, le profil carré initial des sticks passe à un profil plus circulaire. Notez que si cette option est choisie, il n’y a qu’un seul objet représentant tous les sticks.

Normal

Des cylindres normaux sont utilisés. Pour chaque liaison, un cylindre individuel est utilisé. Si l’option One Object est activée, environ No sticks n’est joint en un seul objet maillé. Cela rend l’affichage des sticks très rapide. Cependant, les sticks individuels n’existent plus.

Frames (uniquement XYZ)

Load All Frames

Charger uniquement la première ou toutes les images.

Skip Frames

Sauter et ne charger que chaque n-ième image. Très utile pour les données volumineuses où il peut être suffisant de n’afficher que chaque 4ème image.

Frames/Key

Afficher un nombre spécifique d’images par clé. De nombreuses images dans une clé mènent à une présentation plus fluide.

Important

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

Panneau Atomic Blender Utilities

Le panneau Atomic Blender Utilities vous facilite la vie lors de la manipulation des atomes de structures importées.

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

Le panneau 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
Type

Avec ce sélecteur, le type de rayon peut être choisi. Soit on utilise des rayons Predefined, Atomic ou Van der Waals. Les valeurs par défaut des rayons prédéfinis sont les rayons 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.

Shape

Choisir la forme dans le premier sélecteur.

Material

Choisir l’un des matériaux dans le deuxième sélecteur. Les matériaux ne sont que des exemples, d’autres améliorations peuvent être apportées dans l’onglet Matériaux des Propriétés.

Special

Ici, vous pouvez choisir un objet avec une forme spéciale, un matériau, etc. Ces objets sont assez agréables pour représenter des défauts dans des structures atomiques. Lorsque vous choisissez un objet aussi spécial, vous ne pouvez plus choisir séparément la forme et le matériau comme ci-dessus. Dans les onglets Objets et Matériaux des Propriétés, d’autres modifications peuvent être effectuées.

Replace

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.

Default

Si vous souhaitez avoir les valeurs par défaut (sphères NURBS et couleurs et tailles d’élément spécifiques) des atomes sélectionnés, appuyez sur le bouton 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.

Indication

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 Make Instances Real. With this you produce real independent objects! In the Outliner delete the remaining instancing vertices structures, named like « Carbon », « Hydrogen », etc.

Exemples

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

Différentes présentations d’une seule et même molécule.

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

Partie d’une molécule d’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.