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