egrMixture.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 #ifndef egrMixture_H
00037 #define egrMixture_H
00038
00039 #include "basicMultiComponentMixture.H"
00040
00041
00042
00043 namespace Foam
00044 {
00045
00046
00047
00048
00049
00050 template<class ThermoType>
00051 class egrMixture
00052 :
00053 public basicMultiComponentMixture
00054 {
00055
00056
00057 static const int nSpecies_ = 3;
00058 static const char* specieNames_[3];
00059
00060 dimensionedScalar stoicRatio_;
00061
00062 ThermoType fuel_;
00063 ThermoType oxidant_;
00064 ThermoType products_;
00065
00066 mutable ThermoType mixture_;
00067
00068
00069 volScalarField& ft_;
00070
00071
00072 volScalarField& b_;
00073
00074
00075 volScalarField& egr_;
00076
00077
00078 egrMixture(const egrMixture<ThermoType>&);
00079
00080
00081 public:
00082
00083
00084 typedef ThermoType thermoType;
00085
00086
00087
00088
00089
00090 egrMixture(const dictionary&, const fvMesh&);
00091
00092
00093
00094 virtual ~egrMixture()
00095 {}
00096
00097
00098
00099
00100 const dimensionedScalar& stoicRatio() const
00101 {
00102 return stoicRatio_;
00103 }
00104
00105 const ThermoType& mixture
00106 (
00107 const scalar,
00108 const scalar,
00109 const scalar
00110 ) const;
00111
00112 const ThermoType& cellMixture(const label celli) const
00113 {
00114 return mixture(ft_[celli], b_[celli], egr_[celli]);
00115 }
00116
00117 const ThermoType& patchFaceMixture
00118 (
00119 const label patchi,
00120 const label facei
00121 ) const
00122 {
00123 return mixture
00124 (
00125 ft_.boundaryField()[patchi][facei],
00126 b_.boundaryField()[patchi][facei],
00127 egr_.boundaryField()[patchi][facei]
00128 );
00129 }
00130
00131 const ThermoType& cellReactants(const label celli) const
00132 {
00133 return mixture(ft_[celli], 1, egr_[celli]);
00134 }
00135
00136 const ThermoType& patchFaceReactants
00137 (
00138 const label patchi,
00139 const label facei
00140 ) const
00141 {
00142 return mixture
00143 (
00144 ft_.boundaryField()[patchi][facei],
00145 1,
00146 egr_.boundaryField()[patchi][facei]
00147 );
00148 }
00149
00150 const ThermoType& cellProducts(const label celli) const
00151 {
00152 return mixture(ft_[celli], 0, 0);
00153 }
00154
00155 const ThermoType& patchFaceProducts
00156 (
00157 const label patchi,
00158 const label facei
00159 ) const
00160 {
00161 return mixture
00162 (
00163 ft_.boundaryField()[patchi][facei],
00164 0,
00165 0
00166 );
00167 }
00168
00169
00170 void read(const dictionary&);
00171 };
00172
00173
00174
00175
00176 }
00177
00178
00179
00180 #ifdef NoRepository
00181 # include "egrMixture.C"
00182 #endif
00183
00184
00185
00186 #endif
00187
00188
Copyright © 2000-2009 OpenCFD Ltd