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 "InflowBoundaryModel.H"
00027
00028
00029
00030 template<class CloudType>
00031 Foam::autoPtr<Foam::InflowBoundaryModel<CloudType> >
00032 Foam::InflowBoundaryModel<CloudType>::New
00033 (
00034 const dictionary& dict,
00035 CloudType& owner
00036 )
00037 {
00038 word InflowBoundaryModelType(dict.lookup("InflowBoundaryModel"));
00039
00040 Info<< "Selecting InflowBoundaryModel " << InflowBoundaryModelType << endl;
00041
00042 typename dictionaryConstructorTable::iterator cstrIter =
00043 dictionaryConstructorTablePtr_->find(InflowBoundaryModelType);
00044
00045 if (cstrIter == dictionaryConstructorTablePtr_->end())
00046 {
00047 FatalErrorIn
00048 (
00049 "InflowBoundaryModel<CloudType>::New"
00050 "(const dictionary&, CloudType&)"
00051 ) << "Unknown InflowBoundaryModelType type "
00052 << InflowBoundaryModelType
00053 << ", constructor not in hash table" << nl << nl
00054 << " Valid InflowBoundaryModel types are:" << nl
00055 << dictionaryConstructorTablePtr_->sortedToc() << exit(FatalError);
00056 }
00057
00058 return autoPtr<InflowBoundaryModel<CloudType> >(cstrIter()(dict, owner));
00059 }
00060
00061
00062