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