GeinDFT
Home › Opening a structure

Opening a structure

The file formats the program reads, the three ways to open one, and what happens when a file has no three-dimensional coordinates.

Three ways in

RouteHow
File > OpenOr Ctrl+O. The format is detected from the content of the file, not from its extension, so a mis-named file still opens.
Drag and dropDrop one or more files onto the viewer. Each becomes a structure in the project tree.
Paste a SMILES stringType or paste into the box at the top of the project panel and press Enter. See Building from SMILES.

Formats that can be read

FormatNotes
XYZIncluding extended XYZ and multi-structure trajectory files.
MOL and SDFV2000 and V3000. Bond orders, charges, isotopes and the wedge and hash bonds that carry stereochemistry are all read.
PDB and mmCIFIncluding the option to drop crystallographic waters.
MOL2With its atom types and partial charges.
CIFA crystal structure, expanded by its symmetry operations. See Crystal analysis.
SMILESAs a .smi file or pasted into the window.
CubeA volumetric field with the geometry it was computed for.
External QM inputInput files written for other quantum chemistry programs, including Z-matrix geometries.
GeinDFT job and result filesA .gin job file carries a geometry and its settings; a finished .out reopens with its orbitals and surfaces.

Files with no three-dimensional coordinates

A two-dimensional drawing, the usual output of a sketching program, has every atom in one plane and often no hydrogens at all. Such a file is not a geometry, and a calculation run on it is meaningless. GeinDFT recognises the case and builds a real structure instead of refusing or, worse, proceeding.

  1. Missing hydrogens are added according to each atom valence, formal charge and bond orders.
  2. Three-dimensional coordinates are generated, keeping any stereochemistry the drawing carried in its wedge and hash bonds.
  3. The result is relaxed with the force field so bond lengths and angles are sensible.
A two-dimensional drawing as it arrives: flat, and with no hydrogens.
A two-dimensional drawing as it arrives: flat, and with no hydrogens.
The same file after building. The structure is three-dimensional, the hydrogens are present, and the atom count in the project tree has risen accordingly.
The same file after building. The structure is three-dimensional, the hydrogens are present, and the atom count in the project tree has risen accordingly.
The conversion is reported in a short note above the viewer, with an Undo link if you wanted the file exactly as it was. Nothing is done silently.

Structures that are already three-dimensional

A planar molecule that already carries its hydrogens, benzene for example, is left exactly as it was read. The test is not flatness alone: a structure is rebuilt only when it is flat and missing hydrogens, or when an atom has an impossible number of neighbours, or when bond lengths are far from any chemically reasonable value.

What the program reports back

The bar above the viewer gives the molecular formula, the number of atoms, the charge and multiplicity that will be used, and the number of disconnected fragments. The fragment count is worth a glance: a structure that should be one molecule but reports two usually has a broken bond in the file.