| 1 |
<!DOCTYPE html> |
| 2 |
<html> |
| 3 |
<head> |
| 4 |
<meta http-equiv="Content-type" content="text/html;charset=UTF-8"> |
| 5 |
|
| 6 |
<link rel="stylesheet" type="text/css" href="../ch5m3d.css" /> |
| 7 |
|
| 8 |
<title>CH5M3D</title> |
| 9 |
</head> |
| 10 |
|
| 11 |
<body > |
| 12 |
|
| 13 |
|
| 14 |
<p class="QCHeader"> |
| 15 |
CH<sub>5</sub>M<sub>3D</sub> |
| 16 |
</p> |
| 17 |
<ul id="Toolbar"> |
| 18 |
|
| 19 |
<li><a href="../index.html">CH5M3D Home</a><ul> |
| 20 |
</ul></li> |
| 21 |
|
| 22 |
<li>Documentation<ul> |
| 23 |
<li><a href="introduction.html">Introduction</a></li> |
| 24 |
<li><a href="installation.html">Installation</a></li> |
| 25 |
<li><a href="browser.html">Web Browsers</a></li> |
| 26 |
<li><a href="view.html">User Interface</a></li> |
| 27 |
<li><a href="keyboard.html">Keyboard/Mouse</a></li> |
| 28 |
<li><a href="drawing.html">Drawing</a></li> |
| 29 |
<li><a href="fileformat.html">File Format</a></li> |
| 30 |
<li><a href="../documentation.pdf">PDF Manual</a></li> |
| 31 |
</ul></li> |
| 32 |
<li>Variations<ul> |
| 33 |
<li><a href="description.html">Description</a></li> |
| 34 |
<li><a href="../variations/serverView.html">Pre-Load</a></li> |
| 35 |
<li><a href="../variations/chooser.html">Chooser</a></li> |
| 36 |
<li><a href="../variations/gallery.html">Gallery</a></li> |
| 37 |
<li><a href="../variations/viewer300.html">Viewer (only)</a></li> |
| 38 |
<li><a href="../variations/viewer2x.html">View 2 Windows</a></li> |
| 39 |
<li><a href="../variations/two.html">Two Windows</a></li> |
| 40 |
<li><a href="../variations/api.html">Javascript</a></li> |
| 41 |
<li><a href="../qchem/qchem.php">Quantum Interface</a></li> |
| 42 |
</ul></li> |
| 43 |
<li>Information<ul> |
| 44 |
<li><a href="about.html">About</a></li> |
| 45 |
<li><a href="http://sourceforge.net/projects/ch5m3d/">Project Homepage</a></li> |
| 46 |
<li><a href="apidoc.html">Library API Info</a></li> |
| 47 |
<li><a href="https://www.gnu.org/licenses/gpl.html">GNU License</a></li> |
| 48 |
</ul></li> |
| 49 |
|
| 50 |
</ul> |
| 51 |
|
| 52 |
|
| 53 |
<h1>File Format for Molecules</h1> |
| 54 |
<p class="indent"> |
| 55 |
Currently, the only format supported by this program for reading molecular coordinates is the .xyz format. |
| 56 |
These files can be created using the <a href="http://openbabel.org/">Open Babel</a> program. Sample files |
| 57 |
in this format are available in the <a href="../molecules">molecules</a> directory. |
| 58 |
</p> |
| 59 |
|
| 60 |
<h3>Example</h3> |
| 61 |
<p class="indent"> |
| 62 |
On the default page is a |
| 63 |
<input type='button' value="Show coordinates" /> |
| 64 |
button that displays coordinates for the current molecule in the information box at the bottom of the |
| 65 |
screen. An example of the output produced for the methane molecule is: |
| 66 |
</p> |
| 67 |
|
| 68 |
<PRE><CODE> |
| 69 |
5 |
| 70 |
CH4 (16.04 g/mol) in xyz format: From CH5M3D |
| 71 |
C 0.0000 0.0000 0.0000 |
| 72 |
H 0.8740 0.6180 0.0000 |
| 73 |
H -0.8740 0.6180 0.0000 |
| 74 |
H 0.0000 -0.6180 0.8740 |
| 75 |
H 0.0000 -0.6180 -0.8740 |
| 76 |
</CODE></PRE> |
| 77 |
|
| 78 |
<p class="indent"> |
| 79 |
The first line contains the number of atoms in the molecule. |
| 80 |
</p> |
| 81 |
|
| 82 |
<p class="indent"> |
| 83 |
The second line is a comment. This line must be present, but can be blank or contain any text. |
| 84 |
</p> |
| 85 |
|
| 86 |
<p class="indent"> |
| 87 |
The remaining lines contain the elemental symbol (1-3 characters) and x, y, z cartesian coordinates. All of these |
| 88 |
values are separated by one or more spaces. |
| 89 |
</p> |
| 90 |
|
| 91 |
<p class="indent"> |
| 92 |
This program attempts to be flexible in reading these files, and does not require data to be present in specific |
| 93 |
columns. The one restriction that is enforced is that files must be named with the extension ".xyz". |
| 94 |
</p> |
| 95 |
|
| 96 |
<div class="Footer" id="Footer"> |
| 97 |
The chem3d.js library copyright © 2013 by Clarke Earley<br /> |
| 98 |
and is distributed under the terms of the |
| 99 |
<a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>. |
| 100 |
</div> |
| 101 |
|
| 102 |
</body> |
| 103 |
</html> |