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 #include "XiEqModel.H"
00027
00028
00029
00030 Foam::autoPtr<Foam::XiEqModel> Foam::XiEqModel::New
00031 (
00032 const dictionary& XiEqProperties,
00033 const hhuCombustionThermo& thermo,
00034 const compressible::RASModel& turbulence,
00035 const volScalarField& Su
00036 )
00037 {
00038 word XiEqModelTypeName = XiEqProperties.lookup("XiEqModel");
00039
00040 Info<< "Selecting flame-wrinkling model " << XiEqModelTypeName << endl;
00041
00042 dictionaryConstructorTable::iterator cstrIter =
00043 dictionaryConstructorTablePtr_->find(XiEqModelTypeName);
00044
00045 if (cstrIter == dictionaryConstructorTablePtr_->end())
00046 {
00047 FatalErrorIn
00048 (
00049 "XiEqModel::New"
00050 "("
00051 " const hhuCombustionThermo& thermo,"
00052 " const compressible::RASModel& turbulence,"
00053 " const volScalarField& Su"
00054 ")"
00055 ) << "Unknown XiEqModel type "
00056 << XiEqModelTypeName << endl << endl
00057 << "Valid XiEqModels are : " << endl
00058 << dictionaryConstructorTablePtr_->sortedToc()
00059 << exit(FatalError);
00060 }
00061
00062 return autoPtr<XiEqModel>
00063 (cstrIter()(XiEqProperties, thermo, turbulence, Su));
00064 }
00065
00066
00067