Main Page | Class Hierarchy | Class List | File List

SurfaceConcentration.h

Go to the documentation of this file.
00001 
00005 /* Copyright (C) 2004 - 2006, Kai Ludwig, Bernd Speiser */
00006 /* This file is part of PhysicalQuantities.
00007 
00008 PhysicalQuantities is free software; you can redistribute it and/or
00009 modify it under the terms of the GNU General Public License
00010 as published by the Free Software Foundation; either version 2
00011 of the License, or (at your option) any later version.
00012 
00013 PhysicalQuantities is distributed in the hope that it will be useful,
00014 but WITHOUT ANY WARRANTY; without even the implied warranty of
00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016 GNU General Public License for more details.
00017   
00018 You should have received a copy of the GNU General Public License
00019 along with this program; if not, write to the Free Software
00020 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
00021 02111-1307, USA.
00022 */
00023 
00024 #ifndef _SurfaceConcentration_h
00025 #define _SurfaceConcentration_h
00026 
00027 #include "Quantity/Variable.h"
00028 #include "Quantity/Constant.h"
00029 #include "Quantity/QuantityCluster.h"
00030 
00031 #include "PhysicalQuantities/AmountOfSubstance.h"
00032 #include "PhysicalQuantities/Volume.h"
00033 
00034 namespace quantity {
00035   namespace surfaceConcentration {
00036 
00037 /* SurfaceConcentration dimension */
00038 typedef BSUtilities::Rational<-2> LE;
00039 typedef BSUtilities::Rational<0> M; 
00040 typedef BSUtilities::Rational<0> TI;
00041 typedef BSUtilities::Rational<0> E;
00042 typedef BSUtilities::Rational<0> TE;
00043 typedef BSUtilities::Rational<1> A;
00044 typedef BSUtilities::Rational<0> LU;
00045 
00046 typedef dimension::Dimension<LE, M, TI, E, TE, A, LU> Dimension;
00047 
00049 class Unit;
00050 
00051 /* MolePerLitre and prefixed variants */
00052 
00053 typedef LOKI_TYPELIST_2(amountOfSubstance::Mole, 
00054                    amountOfSubstance::MilliMole) AmountOfSubstanceList;
00055 
00056 typedef unit::ComposeElement<Unit, 
00057   AmountOfSubstanceList, BSUtilities::Rational<1> > 
00058                                                AmountOfSubstanceElement;
00059 
00060 typedef LOKI_TYPELIST_2(length::Metre, length::CentiMetre) LengthList;
00061 
00062 typedef unit::ComposeElement<Unit, LengthList, 
00063                               BSUtilities::Rational<-2> > LengthElement;
00064 
00065 typedef unit::ComposeBase<Unit, 
00066   LOKI_TYPELIST_2(AmountOfSubstanceElement, LengthElement)> 
00067                                        SurfaceConcentrationComposedUnit;
00068 
00069 typedef unit::Composed<SurfaceConcentrationComposedUnit, 
00070   LOKI_TYPELIST_2(amountOfSubstance::Mole, length::Metre)> 
00071                                                      MolePerSquareMetre;
00072 
00073 typedef unit::Composed<SurfaceConcentrationComposedUnit, 
00074   LOKI_TYPELIST_2(amountOfSubstance::Mole, length::CentiMetre)> 
00075                                                 MolePerSquareCentiMetre;
00076 
00077 
00078 typedef unit::Composed<SurfaceConcentrationComposedUnit,
00079   LOKI_TYPELIST_2(amountOfSubstance::MilliMole, length::Metre)> 
00080                                                 MilliMolePerSquareMetre;
00081 
00082 typedef unit::Composed<SurfaceConcentrationComposedUnit,
00083   LOKI_TYPELIST_2(amountOfSubstance::MilliMole, 
00084                      length::CentiMetre)> MilliMolePerSquareCentiMetre;
00085 
00087 typedef LOKI_TYPELIST_4(MolePerSquareMetre, MolePerSquareCentiMetre, 
00088            MilliMolePerSquareMetre, MilliMolePerSquareCentiMetre) Units;
00089 
00090 /* SurfaceConcentration quantity */
00091 
00092 typedef Quantity<Dimension, Unit, Units, MolePerSquareMetre> Quantity;
00093 
00094   }
00095 
00096 typedef Variable<surfaceConcentration::Quantity> SurfaceConcentration;
00097 typedef Constant<surfaceConcentration::Quantity> 
00098                                            SurfaceConcentrationConstant;
00099 
00100 typedef QuantityVector<Variable, surfaceConcentration::Quantity> 
00101                                              SurfaceConcentrationVector;
00102 
00103 }
00104 
00105 #endif /* _SurfaceConcentration_h */

Generated on Mon Feb 12 18:48:50 2007 for PhysicalQuantities by doxygen 1.3.6