SaveXYZ - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


QuantumChemistry

  

SaveXYZ

  

 save molecular geometry from a Maple list to an XYZ file

  

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

SaveXYZ(molecule)
SaveXYZ(file,molecule)

Parameters

file

-

string; string of the filename for saving the molecular geometry in XYZ format

molecule

-

list of lists; each list has 4 elements, the string of an atom's symbol and atom's x, y, and z coordinates

Description

• 

The SaveXYZ(file,molecule) command saves the molecule's geometry to an XYZ file.

• 

The SaveXYZ(molecule) command opens a file dialogue for selecting the directory and entering the filename file.

• 

The molecule is a Maple list of lists.  Each list has 4 elements, the string of an atom's symbol and atom's x, y, and z coordinates.

• 

The format of molecule is the standard format for molecular geometries in the QuantumChemistry package.

• 

Note: The XYZ format for a molecule with n number of atoms is as follows:
   
n
comment line
A1  X1  Y1  Z1
A2  X2  Y2  Z2
...   
An  Xn  Yn  Zn

where A__i, X__i, Y__i, Z__i   are the chemical symbol of the atom i and its corresponding Cartesian coordinates, respectively. Note the units are generally in Angstrom or Bohr.

Examples

withQuantumChemistry:

moleculeH,0.,0.,0.,F,0.,0.,0.95

moleculeH,0.,0.,0.,F,0.,0.,0.95000000

(1)

SaveXYZhf.txt,molecule

molecule  ReadXYZhf.txt;

moleculeH,0.,0.,0.,F,0.,0.,0.95000000

(2)

See Also

PlotMolecule
MolecularData
ReadXYZ