newLaminarFlameSpeed.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 "laminarFlameSpeed.H"
00028
00029
00030
00031 Foam::autoPtr<Foam::laminarFlameSpeed> Foam::laminarFlameSpeed::New
00032 (
00033 const hhuCombustionThermo& ct
00034 )
00035 {
00036 IOdictionary laminarFlameSpeedDict
00037 (
00038 IOobject
00039 (
00040 "combustionProperties",
00041 ct.T().time().constant(),
00042 ct.T().db(),
00043 IOobject::MUST_READ,
00044 IOobject::NO_WRITE,
00045 false
00046 )
00047 );
00048
00049 word laminarFlameSpeedType
00050 (
00051 laminarFlameSpeedDict.lookup("laminarFlameSpeedCorrelation")
00052 );
00053
00054 Info<< "Selecting laminar flame speed correlation "
00055 << laminarFlameSpeedType << endl;
00056
00057 dictionaryConstructorTable::iterator cstrIter =
00058 dictionaryConstructorTablePtr_->find(laminarFlameSpeedType);
00059
00060 if (cstrIter == dictionaryConstructorTablePtr_->end())
00061 {
00062 FatalIOErrorIn
00063 (
00064 "laminarFlameSpeed::New(const hhuCombustionThermo&)",
00065 laminarFlameSpeedDict
00066 ) << "Unknown laminarFlameSpeed type "
00067 << laminarFlameSpeedType << endl << endl
00068 << "Valid laminarFlameSpeed types are :" << endl
00069 << dictionaryConstructorTablePtr_->toc()
00070 << exit(FatalIOError);
00071 }
00072
00073 return autoPtr<laminarFlameSpeed>(cstrIter()(laminarFlameSpeedDict, ct));
00074 }
00075
00076
00077
Copyright © 2000-2009 OpenCFD Ltd