Geometry Analysis Program, Lecture notes of Geometry

A computer program that takes atomic symbols and Cartesian coordinates to determine interatomic distances and bond angles. The program reads in Cartesian coordinates from an ASCII file and calculates all possible interatomic distances and bond angles. It also defines unit vectors pointing in the direction between atoms and calculates out-of-plane and torsional angles. The program finds the center of mass of the molecule, shifts the atomic coordinates to the new center-of-mass reference frame, and calculates the elements of the moment of inertia tensor. Finally, it diagonalizes the moment of inertia tensor to obtain the principal moments of inertial and determines the molecular type.

Typology: Lecture notes

2021/2022

Uploaded on 05/11/2023

ekaraj
ekaraj 🇺🇸

4.6

(31)

264 documents

1 / 3

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Geometry Analysis Program
C. David Sherrill
School of Chemistry and Biochemistry
Georgia Institute of Technology
Last Revised on 5 June 2001
Goals: Write a computer program to take a set of atomic symbols and Cartesian coordinates
for a collection of atoms and determine all possible interatomic distances and bond angles. Assume
the coordinates are provided in Angstroms.
Procedure:
1. Read in Cartesian coordinates from an ASCII file in the so-called XYZ format. The first line
of this file is just an integer telling how many atoms there are in the file. Each subsequent
row icontains an atomic symbol (e.g., C, N, O) and a set of coordinates (xi,yi,zi) for atom
i.
2. Calculate all possible interatomic distances
Rij =q(xixj)2+ (yiyj)2+ (zizj)2.(1)
3. Calculate all possible bond angles between atoms i,j, and k:
R2
ik =R2
ij +R2
jk 2Rij Rjk cosφijk ,(2)
cosφijk = ˆrji ·ˆrjk ,(3)
where
~rij = (xjxi)ˆ
i+ (yjyi)ˆ
j+ (zjzi)ˆ
k(4)
For additional challenge, try the following: Define unit vectors ˆeij pointing in the direction
between atoms iand j, as
ˆeij =~rij /Rij .(5)
1. Calculate all possible out-of-plane angles,
sinθijkl =ˆelj ׈elk
sinθjlk
·ˆeli (6)
1
pf3

Partial preview of the text

Download Geometry Analysis Program and more Lecture notes Geometry in PDF only on Docsity!

Geometry Analysis Program

C. David Sherrill School of Chemistry and Biochemistry Georgia Institute of Technology

Last Revised on 5 June 2001

Goals: Write a computer program to take a set of atomic symbols and Cartesian coordinates for a collection of atoms and determine all possible interatomic distances and bond angles. Assume the coordinates are provided in Angstroms.

Procedure:

  1. Read in Cartesian coordinates from an ASCII file in the so-called XYZ format. The first line of this file is just an integer telling how many atoms there are in the file. Each subsequent row i contains an atomic symbol (e.g., C, N, O) and a set of coordinates (xi, yi, zi) for atom i.
  2. Calculate all possible interatomic distances

Rij =

√ (xi − xj )^2 + (yi − yj )^2 + (zi − zj )^2. (1)

  1. Calculate all possible bond angles between atoms i, j, and k:

R^2 ik = R^2 ij + R^2 jk − 2 Rij Rjkcosφijk, (2) cosφijk = rˆji · rˆjk, (3)

where ~rij = (xj − xi)ˆi + (yj − yi)ˆj + (zj − zi)ˆk (4)

For additional challenge, try the following: Define unit vectors ˆeij pointing in the direction between atoms i and j, as ˆeij = ~rij /Rij. (5)

  1. Calculate all possible out-of-plane angles,

sinθijkl =

ˆelj × ˆelk sinθjlk

· ˆeli (6)

  1. Calculate all possible torsional angles,

cosτijkl =

(ˆeij × eˆjk) · (ˆejk × ˆekl) sinφijksinφjkl

  1. Find the center of mass of the molecule.

Xc.m. =

∑ ∑^ i^ mixi i mi

Yc.m. =

∑ ∑^ i^ miyi i mi

Zc.m. =

∑ ∑^ i^ mizi i mi

  1. Shift the atomic coordinates to the new center-of-mass reference frame.
  2. Calculate the elements of the moment of inertia tensor

Iαα =

∑ i

mi

( β^2 i + γ i^2

) , (11)

Iαβ = −

∑ i

miαiβi, (12)

where α, β, γ are Cartesian coordinates in the new center-of-mass frame.

  1. Diagonalize the moment of inertia tensor to obtain the principal moments of inertial. You can find a matrix diagonalizer in the PSI libraries on in the BLAS libraries.

Ia ≤ Ib ≤ Ic. (13)

  1. Determine the molecular type

(a) diatomic (b) linear (c) asymmetric top (d) symmetric top (oblate or prolate) (e) spherical top