Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

PeriodicTable.C File Reference

#include <string.h>
#include <ctype.h>

Go to the source code of this file.

Functions

const char * get_pte_label (const int idx)
float get_pte_mass (const int idx)
float get_pte_vdw_radius (const int idx)
int get_pte_idx (const char *label)
int get_pte_idx_from_string (const char *label)

Variables

const char * pte_label []
const int nr_pte_entries = sizeof(pte_label) / sizeof(char *)
const double pte_mass []
const float pte_vdw_radius []


Function Documentation

int get_pte_idx const char *    label
 

Definition at line 133 of file PeriodicTable.C.

References nr_pte_entries, NULL, and pte_label.

int get_pte_idx_from_string const char *    label
 

Definition at line 158 of file PeriodicTable.C.

References nr_pte_entries, NULL, and pte_label.

const char* get_pte_label const int    idx
 

Definition at line 95 of file PeriodicTable.C.

References nr_pte_entries, and pte_label.

float get_pte_mass const int    idx
 

Definition at line 102 of file PeriodicTable.C.

References nr_pte_entries, and pte_mass.

float get_pte_vdw_radius const int    idx
 

Definition at line 109 of file PeriodicTable.C.

References nr_pte_entries, and pte_vdw_radius.


Variable Documentation

const int nr_pte_entries = sizeof(pte_label) / sizeof(char *) [static]
 

Definition at line 36 of file PeriodicTable.C.

Referenced by get_pte_idx, get_pte_idx_from_string, get_pte_label, get_pte_mass, and get_pte_vdw_radius.

const char* pte_label[] [static]
 

Initial value:

 { 
    "X",  "H",  "He", "Li", "Be", "B",  "C",  "N",  "O",  "F",  "Ne",
    "Na", "Mg", "Al", "Si", "P" , "S",  "Cl", "Ar", "K",  "Ca", "Sc",
    "Ti", "V",  "Cr", "Mn", "Fe", "Co", "Ni", "Cu", "Zn", "Ga", "Ge", 
    "As", "Se", "Br", "Kr", "Rb", "Sr", "Y",  "Zr", "Nb", "Mo", "Tc",
    "Ru", "Rh", "Pd", "Ag", "Cd", "In", "Sn", "Sb", "Te", "I",  "Xe",
    "Cs", "Ba", "La", "Ce", "Pr", "Nd", "Pm", "Sm", "Eu", "Gd", "Tb",
    "Dy", "Ho", "Er", "Tm", "Yb", "Lu", "Hf", "Ta", "W",  "Re", "Os",
    "Ir", "Pt", "Au", "Hg", "Tl", "Pb", "Bi", "Po", "At", "Rn", "Fr",
    "Ra", "Ac", "Th", "Pa", "U",  "Np", "Pu", "Am", "Cm", "Bk", "Cf",
    "Es", "Fm", "Md", "No", "Lr", "Rf", "Db", "Sg", "Bh", "Hs", "Mt",
    "Ds", "Rg"
}

Definition at line 23 of file PeriodicTable.C.

Referenced by get_pte_idx, get_pte_idx_from_string, and get_pte_label.

const double pte_mass[] [static]
 

Initial value:

 { 
     0.00000, 1.00794, 4.00260, 6.941, 9.012182, 10.811,  
     12.0107, 14.0067, 15.9994, 18.9984032, 20.1797, 
     22.989770, 24.3050, 26.981538, 28.0855, 30.973761,
     32.065, 35.453, 39.948, 39.0983, 40.078, 44.955910,
     47.867, 50.9415, 51.9961, 54.938049, 55.845, 58.9332,
     58.6934, 63.546, 65.409, 69.723, 72.64, 74.92160, 
     78.96, 79.904, 83.798, 85.4678, 87.62, 88.90585, 
     91.224, 92.90638, 95.94, 98.0, 101.07, 102.90550,
     106.42, 107.8682, 112.411, 114.818, 118.710, 121.760, 
     127.60, 126.90447, 131.293, 132.90545, 137.327, 
     138.9055, 140.116, 140.90765, 144.24, 145.0, 150.36,
     151.964, 157.25, 158.92534, 162.500, 164.93032, 
     167.259, 168.93421, 173.04, 174.967, 178.49, 180.9479,
     183.84, 186.207, 190.23, 192.217, 195.078, 196.96655, 
     200.59, 204.3833, 207.2, 208.98038, 209.0, 210.0, 222.0, 
     223.0, 226.0, 227.0, 232.0381, 231.03588, 238.02891,
     237.0, 244.0, 243.0, 247.0, 247.0, 251.0, 252.0, 257.0,
     258.0, 259.0, 262.0, 261.0, 262.0, 266.0, 264.0, 269.0,
     268.0, 271.0, 272.0
}

Definition at line 39 of file PeriodicTable.C.

Referenced by get_pte_mass.

const float pte_vdw_radius[] [static]
 

Initial value:

 {
     1.50f, 1.20f, 1.40f, 1.82f, 2.00f, 2.00f,
     1.70f, 1.55f, 1.52f, 1.47f, 1.54f,
     1.36f, 1.18f, 2.00f, 2.10f, 1.80f,
     1.80f, 2.27f, 1.88f, 1.76f, 1.37f, 2.00f,
     2.00f, 2.00f, 2.00f, 2.00f, 2.00f, 2.00f,
     1.63f, 1.40f, 1.39f, 1.07f, 2.00f, 1.85f,
     1.90f, 1.85f, 2.02f, 2.00f, 2.00f, 2.00f,
     2.00f, 2.00f, 2.00f, 2.00f, 2.00f, 2.00f,
     1.63f, 1.72f, 1.58f, 1.93f, 2.17f, 2.00f,
     2.06f, 1.98f, 2.16f, 2.10f, 2.00f,
     2.00f, 2.00f, 2.00f, 2.00f, 2.00f, 2.00f,
     2.00f, 2.00f, 2.00f, 2.00f, 2.00f,
     2.00f, 2.00f, 2.00f, 2.00f, 2.00f, 2.00f,
     2.00f, 2.00f, 2.00f, 2.00f, 1.72f, 1.66f,
     1.55f, 1.96f, 2.02f, 2.00f, 2.00f, 2.00f, 2.00f,
     2.00f, 2.00f, 2.00f, 2.00f, 2.00f, 1.86f,
     2.00f, 2.00f, 2.00f, 2.00f, 2.00f, 2.00f, 2.00f, 2.00f,
     2.00f, 2.00f, 2.00f, 2.00f, 2.00f, 2.00f, 2.00f, 2.00f,
     2.00f, 2.00f, 2.00f
}

Definition at line 71 of file PeriodicTable.C.

Referenced by get_pte_vdw_radius.


Generated on Fri Nov 8 02:46:07 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002