glotzsimapi::atom Struct Reference
[Simulation API]

Defines atom types with real names. More...

#include <type.h>

List of all members.

Public Types

enum  {
  H = 1, He = 2, Li = 4, Be = 8,
  B = 16, C = 32, N = 64, O = 128,
  F = 256, Ne = 512, K = 1024, Ca = 2048,
  Sc = 4096, Ti = 8192, V = 16384, Cr = 32768,
  Mn = 65536, Fe = 131072, Co = 262144, Ni = 524288,
  Cu = 1048576, Zn = 2097152, Ga = 4194304, Ge = 8388608,
  As = 16777216, Se = 33554432
}


Detailed Description

Defines atom types with real names.

Author:
Aaron Keys
Note:
Max is currently 26 types, although this can easily be extended to 32 by adding to the enum. If more than 32 types must be defined, we should replace the enum with a series of bitsets. We forgo this for now.
The type enum gives one bit for each type A-Z. Using a bit-wise system allows us to store all type information in an int which can be manipulated easily to get unique combinations of types. For example, we can use the bitwise "or" operator to designate interactions between H and He as a new type (H|He) = 001 | 010 = 011 = 3.

Member Enumeration Documentation

anonymous enum

Enumerator:
H 
He 
Li 
Be 
B 
C 
N 
O 
F 
Ne 
K 
Ca 
Sc 
Ti 
V 
Cr 
Mn 
Fe 
Co 
Ni 
Cu 
Zn 
Ga 
Ge 
As 
Se 


The documentation for this struct was generated from the following file:
Generated on Tue Feb 24 20:54:58 2009 by  doxygen 1.5.3