newBarotropicCompressibilityModel.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 "barotropicCompressibilityModel.H"
00028
00029
00030
00031 Foam::autoPtr<Foam::barotropicCompressibilityModel>
00032 Foam::barotropicCompressibilityModel::New
00033 (
00034 const dictionary& compressibilityProperties,
00035 const volScalarField& gamma,
00036 const word& psiName
00037 )
00038 {
00039 word bcModelTypeName
00040 (
00041 compressibilityProperties.lookup("barotropicCompressibilityModel")
00042 );
00043
00044 Info<< "Selecting compressibility model "
00045 << bcModelTypeName << endl;
00046
00047 dictionaryConstructorTable::iterator cstrIter =
00048 dictionaryConstructorTablePtr_->find(bcModelTypeName);
00049
00050 if (cstrIter == dictionaryConstructorTablePtr_->end())
00051 {
00052 FatalErrorIn
00053 (
00054 "barotropicCompressibilityModel::New(const volScalarField&)"
00055 ) << "Unknown barotropicCompressibilityModel type "
00056 << bcModelTypeName << endl << endl
00057 << "Valid barotropicCompressibilityModels are : " << endl
00058 << dictionaryConstructorTablePtr_->toc()
00059 << exit(FatalError);
00060 }
00061
00062 return autoPtr<barotropicCompressibilityModel>
00063 (
00064 cstrIter()(compressibilityProperties, gamma, psiName)
00065 );
00066 }
00067
00068
00069
Copyright © 2000-2009 OpenCFD Ltd