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