OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

atomicWeights.C

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------------*\
00002   =========                 |
00003   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
00004    \\    /   O peration     |
00005     \\  /    A nd           | Copyright (C) 1991-2009 OpenCFD Ltd.
00006      \\/     M anipulation  |
00007 -------------------------------------------------------------------------------
00008 License
00009     This file is part of OpenFOAM.
00010 
00011     OpenFOAM is free software; you can redistribute it and/or modify it
00012     under the terms of the GNU General Public License as published by the
00013     Free Software Foundation; either version 2 of the License, or (at your
00014     option) any later version.
00015 
00016     OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
00017     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00018     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00019     for more details.
00020 
00021     You should have received a copy of the GNU General Public License
00022     along with OpenFOAM; if not, write to the Free Software Foundation,
00023     Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
00024 
00025 \*---------------------------------------------------------------------------*/
00026 
00027 #include "atomicWeights.H"
00028 
00029 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
00030 
00031 const Foam::atomicWeightTable::atomicWeight
00032 Foam::atomicWeightTable::atomicWeights[atomicWeightTable::nElements] = 
00033 {
00034     {"E",    0},
00035     {"H",    1.00797},
00036     {"He",   4.00260},
00037     {"Li",   6.93900},
00038     {"Be",   9.01220},
00039     {"B",   10.81100},
00040     {"C",   12.01115},
00041     {"N",   14.00670},
00042     {"O",   15.99940},
00043     {"F",   18.99840},
00044     {"Ne",  20.18300},
00045     {"Na",  22.98980},
00046     {"Mg",  24.31200},
00047     {"Al",  26.98150},
00048     {"Si",  28.08600},
00049     {"P",   30.97380},
00050     {"S",   32.06400},
00051     {"Cl",  35.45300},
00052     {"Ar",  39.94800},
00053     {"K",   39.10200},
00054     {"Ca",  40.08000},
00055     {"Sc",  44.95600},
00056     {"Ti",  47.90000},
00057     {"V",   50.94200},
00058     {"Cr",  51.99600},
00059     {"Mn",  54.93800},
00060     {"Fe",  55.84700},
00061     {"Co",  58.93320},
00062     {"Ni",  58.71000},
00063     {"Cu",  63.54000},
00064     {"Zn",  65.37000},
00065     {"Ga",  69.72000},
00066     {"Ge",  72.59000},
00067     {"As",  74.92160},
00068     {"Se",  78.96000},
00069     {"Br",  79.90090},
00070     {"Kr",  83.80000},
00071     {"Rb",  85.47000},
00072     {"Sr",  87.62000},
00073     {"Y",   88.90500},
00074     {"Zr",  91.22000},
00075     {"Nb",  92.90600},
00076     {"Mo",  95.94000},
00077     {"Tc",  99.00000},
00078     {"Ru", 101.07000},
00079     {"Rh", 102.90500},
00080     {"Pd", 106.40000},
00081     {"Ag", 107.87000},
00082     {"Cd", 112.40000},
00083     {"In", 114.82000},
00084     {"Sn", 118.69000},
00085     {"Sb", 121.75000},
00086     {"Te", 127.60000},
00087     {"I",  126.90440},
00088     {"Xe", 131.30000},
00089     {"Cs", 132.90500},
00090     {"Ba", 137.34000},
00091     {"La", 138.91000},
00092     {"Ce", 140.12000},
00093     {"Pr", 140.90700},
00094     {"Nd", 144.24000},
00095     {"Pm", 145.00000},
00096     {"Sm", 150.35000},
00097     {"Eu", 151.96000},
00098     {"Gd", 157.25000},
00099     {"Tb", 158.92400},
00100     {"Dy", 162.50000},
00101     {"Ho", 164.93000},
00102     {"Er", 167.26000},
00103     {"Tm", 168.93400},
00104     {"Yb", 173.04000},
00105     {"Lu", 174.99700},
00106     {"Hf", 178.49000},
00107     {"Ta", 180.94800},
00108     {"W",  183.85000},
00109     {"Re", 186.20000},
00110     {"Os", 190.20000},
00111     {"Ir", 192.20000},
00112     {"Pt", 195.09000},
00113     {"Au", 196.96700},
00114     {"Hg", 200.59000},
00115     {"Tl", 204.37000},
00116     {"Pb", 207.19000},
00117     {"Bi", 208.98000},
00118     {"Po", 210.00000},
00119     {"At", 210.00000},
00120     {"Rn", 222.00000},
00121     {"Fr", 223.00000},
00122     {"Ra", 226.00000},
00123     {"Ac", 227.00000},
00124     {"Th", 232.03800},
00125     {"Pa", 231.00000},
00126     {"U",  238.03000},
00127     {"Np", 237.00000},
00128     {"Pu", 242.00000},
00129     {"Am", 243.00000},
00130     {"Cm", 247.00000},
00131     {"Bk", 249.00000},
00132     {"Cf", 251.00000},
00133     {"Es", 254.00000},
00134     {"Fm", 253.00000},
00135     {"D",    2.01410},
00136     {"e",    5.45e-4}
00137 };
00138 
00139 
00140 // * * * * * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * //
00141 
00142 Foam::atomicWeightTable::atomicWeightTable()
00143 {
00144     for (int i=0; i<nElements; i++)
00145     {
00146         insert(word(atomicWeights[i].name), atomicWeights[i].weight);
00147     }
00148 }
00149 
00150 
00151 // * * * * * * * * * * * * * * * * Global data  * * * * * * * * * * * * * * //
00152 
00153 Foam::atomicWeightTable Foam::atomicWeights;
00154 
00155 
00156 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd