IrreversibleReaction.H
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037 #ifndef IrreversibleReaction_H
00038 #define IrreversibleReaction_H
00039
00040 #include "Reaction.H"
00041
00042
00043
00044 namespace Foam
00045 {
00046
00047
00048
00049
00050
00051 template<class ReactionThermo, class ReactionRate>
00052 class IrreversibleReaction
00053 :
00054 public Reaction<ReactionThermo>
00055 {
00056
00057
00058 ReactionRate k_;
00059
00060
00061
00062
00063
00064 void operator=
00065 (
00066 const IrreversibleReaction<ReactionThermo, ReactionRate>&
00067 );
00068
00069
00070 public:
00071
00072
00073 TypeName("irreversible");
00074
00075
00076
00077
00078
00079 IrreversibleReaction
00080 (
00081 const Reaction<ReactionThermo>& reaction,
00082 const ReactionRate& reactionRate
00083 );
00084
00085
00086 IrreversibleReaction
00087 (
00088 const IrreversibleReaction<ReactionThermo, ReactionRate>&,
00089 const speciesTable& species
00090 );
00091
00092
00093 IrreversibleReaction
00094 (
00095 const speciesTable& species,
00096 const HashPtrTable<ReactionThermo>& thermoDatabase,
00097 Istream& is
00098 );
00099
00100
00101 virtual autoPtr<Reaction<ReactionThermo> > clone() const
00102 {
00103 return autoPtr<Reaction<ReactionThermo> >
00104 (
00105 new IrreversibleReaction<ReactionThermo, ReactionRate>(*this)
00106 );
00107 }
00108
00109
00110 virtual autoPtr<Reaction<ReactionThermo> > clone
00111 (
00112 const speciesTable& species
00113 ) const
00114 {
00115 return autoPtr<Reaction<ReactionThermo> >
00116 (
00117 new IrreversibleReaction<ReactionThermo, ReactionRate>
00118 (
00119 *this,
00120 species
00121 )
00122 );
00123 }
00124
00125
00126
00127
00128 virtual ~IrreversibleReaction()
00129 {}
00130
00131
00132
00133
00134
00135
00136
00137 virtual scalar kf
00138 (
00139 const scalar T,
00140 const scalar p,
00141 const scalarField& c
00142 ) const;
00143
00144
00145
00146 virtual void write(Ostream&) const;
00147 };
00148
00149
00150
00151
00152 }
00153
00154
00155
00156 #ifdef NoRepository
00157 # include "IrreversibleReaction.C"
00158 #endif
00159
00160
00161
00162 #endif
00163
00164
Copyright © 2000-2009 OpenCFD Ltd