00001
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef _Mass_cc
00026 #define _Mass_cc
00027
00028 #include "Quantity/Variable.h"
00029
00030 #include "PhysicalQuantities/Mass.h"
00031
00032 namespace Quantities {
00033 namespace MassUnits {
00034
00035
00036
00037
00038 template<> const double Grams::StandardRatio = 0.001;
00039 template<> const std::string Grams::Basename = "gram";
00040 template<> const std::string Grams::Basesymbol = "g";
00041 template<> const bool Grams::SI = true;
00042 template<> const bool Grams::Exact = true;
00043
00044
00045
00046 template<> const double ElectronMass::StandardRatio = 9.10939e-31;
00047 template<> const std::string ElectronMass::Namestring = "electron mass";
00048 template<> const std::string ElectronMass::Symbolstring = "m_e";
00049 template<> const bool ElectronMass::SI = false;
00050 template<> const bool ElectronMass::Exact = false;
00051
00052
00053
00054 template<> const double Dalton::StandardRatio = 1.660540e-27;
00055 template<> const std::string Dalton::Namestring = "dalton";
00056 template<> const std::string Dalton::Symbolstring = "Da";
00057 template<> const bool Dalton::SI = false;
00058 template<> const bool Dalton::Exact = false;
00059
00060
00061
00062 template<> const double U::StandardRatio = 1.660540e-27;
00063 template<> const std::string U::Namestring = "u";
00064 template<> const std::string U::Symbolstring = "u";
00065 template<> const bool U::SI = false;
00066 template<> const bool U::Exact = false;
00067
00068
00069
00070 template<> const double Gamma::StandardRatio = 1.0e-9;
00071 template<> const std::string Gamma::Namestring = "gamma";
00072 template<> const std::string Gamma::Symbolstring = "gamma";
00073 template<> const bool Gamma::SI = false;
00074 template<> const bool Gamma::Exact = true;
00075
00076
00077
00078 template<> const double Tonnes::StandardRatio = 1000.;
00079 template<> const std::string Tonnes::Basename = "Tonne";
00080 template<> const std::string Tonnes::Basesymbol = "t";
00081 template<> const bool Tonnes::SI = false;
00082 template<> const bool Tonnes::Exact = true;
00083
00084
00085
00086 template<> const double Pound::StandardRatio = 0.45359237;
00087 template<> const std::string Pound::Namestring = "pound";
00088 template<> const std::string Pound::Symbolstring = "lb";
00089 template<> const bool Pound::SI = false;
00090 template<> const bool Pound::Exact = true;
00091
00092
00093
00094 template<> const double Ounce::StandardRatio = 0.0283495;
00095 template<> const std::string Ounce::Namestring = "ounce";
00096 template<> const std::string Ounce::Symbolstring = "oz";
00097 template<> const bool Ounce::SI = false;
00098 template<> const bool Ounce::Exact = false;
00099
00100
00101
00102 template<> const double TroyOunce::StandardRatio = 0.0311035;
00103 template<> const std::string TroyOunce::Namestring = "troy ounce";
00104 template<> const std::string TroyOunce::Symbolstring = "oz (troy)";
00105 template<> const bool TroyOunce::SI = false;
00106 template<> const bool TroyOunce::Exact = false;
00107
00108
00109
00110 template<> const double Grain::StandardRatio = 6.479891e-5;
00111 template<> const std::string Grain::Namestring = "grain";
00112 template<> const std::string Grain::Symbolstring = "gr";
00113 template<> const bool Grain::SI = false;
00114 template<> const bool Grain::Exact = true;
00115
00116 }
00117
00118 const std::string Name<MassQuantities>::String = "mass";
00119 const std::string Symbol<MassQuantities>::String = "m";
00120
00121 }
00122
00123 #endif