FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

makeReactionThermo.H

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) 2009-2010 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
00013     the Free Software Foundation, either version 3 of the License, or
00014     (at your 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, see <http://www.gnu.org/licenses/>.
00023 
00024 InClass
00025     Foam::hReactionThermo
00026 
00027 Description
00028 
00029 \*---------------------------------------------------------------------------*/
00030 
00031 #ifndef makeReactionThermo_H
00032 #define makeReactionThermo_H
00033 
00034 #include <OpenFOAM/addToRunTimeSelectionTable.H>
00035 #include <basicThermophysicalModels/basicRhoThermo.H>
00036 
00037 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00038 
00039 #define makeReactionThermo(CThermo,MixtureThermo,Mixture,Transport,Thermo,EqnOfState) \
00040                                                                               \
00041 typedef MixtureThermo                                                         \
00042     <Mixture<Transport<specieThermo<Thermo<EqnOfState> > > > >                \
00043     MixtureThermo##Mixture##Transport##Thermo##EqnOfState;                    \
00044                                                                               \
00045 defineTemplateTypeNameAndDebugWithName                                        \
00046 (                                                                             \
00047     MixtureThermo##Mixture##Transport##Thermo##EqnOfState,                    \
00048     #MixtureThermo                                                            \
00049         "<"#Mixture"<"#Transport"<specieThermo<"#Thermo"<"#EqnOfState">>>>>", \
00050     0                                                                         \
00051 );                                                                            \
00052                                                                               \
00053 addToRunTimeSelectionTable                                                    \
00054 (                                                                             \
00055     basicRhoThermo,                                                           \
00056     MixtureThermo##Mixture##Transport##Thermo##EqnOfState,                    \
00057     fvMesh                                                                    \
00058 );                                                                            \
00059                                                                               \
00060 addToRunTimeSelectionTable                                                    \
00061 (                                                                             \
00062     CThermo,                                                                  \
00063     MixtureThermo##Mixture##Transport##Thermo##EqnOfState,                    \
00064     fvMesh                                                                    \
00065 )
00066 
00067 
00068 #define makeReactionMixtureThermo(CThermo,MixtureThermo,Mixture,ThermoPhys)   \
00069                                                                               \
00070 typedef MixtureThermo<Mixture<ThermoPhys> >                                   \
00071     MixtureThermo##Mixture##ThermoPhys;                                       \
00072                                                                               \
00073 defineTemplateTypeNameAndDebugWithName                                        \
00074 (                                                                             \
00075     MixtureThermo##Mixture##ThermoPhys,                                       \
00076     #MixtureThermo"<"#Mixture"<"#ThermoPhys">>",                              \
00077     0                                                                         \
00078 );                                                                            \
00079                                                                               \
00080 addToRunTimeSelectionTable                                                    \
00081 (                                                                             \
00082     basicRhoThermo,                                                           \
00083     MixtureThermo##Mixture##ThermoPhys,                                       \
00084     fvMesh                                                                    \
00085 );                                                                            \
00086                                                                               \
00087 addToRunTimeSelectionTable                                                    \
00088 (                                                                             \
00089     CThermo,                                                                  \
00090     MixtureThermo##Mixture##ThermoPhys,                                       \
00091     fvMesh                                                                    \
00092 );
00093 
00094 
00095 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00096 
00097 #endif
00098 
00099 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines