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 <kineticTheoryModel/conductivityModel.H>
00027
00028
00029
00030 Foam::autoPtr<Foam::conductivityModel> Foam::conductivityModel::New
00031 (
00032 const dictionary& dict
00033 )
00034 {
00035 word conductivityModelType(dict.lookup("conductivityModel"));
00036
00037 Info<< "Selecting conductivityModel "
00038 << conductivityModelType << endl;
00039
00040 dictionaryConstructorTable::iterator cstrIter =
00041 dictionaryConstructorTablePtr_->find(conductivityModelType);
00042
00043 if (cstrIter == dictionaryConstructorTablePtr_->end())
00044 {
00045 FatalError
00046 << "conductivityModel::New(const dictionary&) : " << endl
00047 << " unknown conductivityModelType type "
00048 << conductivityModelType
00049 << ", constructor not in hash table" << endl << endl
00050 << " Valid conductivityModelType types are :" << endl;
00051 Info<< dictionaryConstructorTablePtr_->sortedToc() << abort(FatalError);
00052 }
00053
00054 return autoPtr<conductivityModel>(cstrIter()(dict));
00055 }
00056
00057
00058