Removed "<modelType>Type type" tautology in selection error messages

This commit is contained in:
Will Bainbridge
2023-11-28 16:25:27 +00:00
parent 01d0af39be
commit f6f55caf02
40 changed files with 117 additions and 121 deletions

View File

@ -46,7 +46,7 @@ Foam::aspectRatioModel::New
if (cstrIter == dictionaryConstructorTablePtr_->end()) if (cstrIter == dictionaryConstructorTablePtr_->end())
{ {
FatalErrorInFunction FatalErrorInFunction
<< "Unknown aspectRatioModelType type " << "Unknown aspectRatioModel type "
<< aspectRatioModelType << endl << endl << aspectRatioModelType << endl << endl
<< "Valid aspectRatioModel types are : " << endl << "Valid aspectRatioModel types are : " << endl
<< dictionaryConstructorTablePtr_->sortedToc() << dictionaryConstructorTablePtr_->sortedToc()

View File

@ -48,7 +48,7 @@ Foam::diffusiveMassTransferModel::New
if (cstrIter == dictionaryConstructorTablePtr_->end()) if (cstrIter == dictionaryConstructorTablePtr_->end())
{ {
FatalErrorInFunction FatalErrorInFunction
<< "Unknown diffusiveMassTransferModelType type " << "Unknown diffusiveMassTransferModel type "
<< diffusiveMassTransferModelType << endl << endl << diffusiveMassTransferModelType << endl << endl
<< "Valid diffusiveMassTransferModel types are : " << endl << "Valid diffusiveMassTransferModel types are : " << endl
<< dictionaryConstructorTablePtr_->sortedToc() << dictionaryConstructorTablePtr_->sortedToc()

View File

@ -50,7 +50,7 @@ Foam::autoPtr<Foam::dragModel> Foam::dragModel::New
if (cstrIter == dictionaryConstructorTablePtr_->end()) if (cstrIter == dictionaryConstructorTablePtr_->end())
{ {
FatalErrorInFunction FatalErrorInFunction
<< "Unknown dragModelType type " << "Unknown dragModel type "
<< dragModelType << endl << endl << dragModelType << endl << endl
<< "Valid dragModel types are : " << endl << "Valid dragModel types are : " << endl
<< dictionaryConstructorTablePtr_->sortedToc() << dictionaryConstructorTablePtr_->sortedToc()

View File

@ -50,7 +50,7 @@ Foam::autoPtr<Foam::heatTransferModel> Foam::heatTransferModel::New
if (cstrIter == dictionaryConstructorTablePtr_->end()) if (cstrIter == dictionaryConstructorTablePtr_->end())
{ {
FatalErrorInFunction FatalErrorInFunction
<< "Unknown heatTransferModelType type " << "Unknown heatTransferModel type "
<< heatTransferModelType << endl << endl << heatTransferModelType << endl << endl
<< "Valid heatTransferModel types are : " << endl << "Valid heatTransferModel types are : " << endl
<< dictionaryConstructorTablePtr_->sortedToc() << dictionaryConstructorTablePtr_->sortedToc()

View File

@ -52,7 +52,7 @@ Foam::interfaceCompositionModel::New
if (cstrIter == dictionaryConstructorTablePtr_->end()) if (cstrIter == dictionaryConstructorTablePtr_->end())
{ {
FatalErrorInFunction FatalErrorInFunction
<< "Unknown interfaceCompositionModelType type " << "Unknown interfaceCompositionModel type "
<< interfaceCompositionModelType << endl << endl << interfaceCompositionModelType << endl << endl
<< "Valid interfaceCompositionModel types are : " << endl << "Valid interfaceCompositionModel types are : " << endl
<< dictionaryConstructorTablePtr_->sortedToc() << dictionaryConstructorTablePtr_->sortedToc()

View File

@ -52,7 +52,7 @@ Foam::interfaceSurfaceTensionModel::New
if (cstrIter == dictionaryConstructorTablePtr_->end()) if (cstrIter == dictionaryConstructorTablePtr_->end())
{ {
FatalErrorInFunction FatalErrorInFunction
<< "Unknown interfaceSurfaceTensionModelType type " << "Unknown interfaceSurfaceTensionModel type "
<< interfaceSurfaceTensionModelType << endl << endl << interfaceSurfaceTensionModelType << endl << endl
<< "Valid interfaceSurfaceTensionModel types are : " << endl << "Valid interfaceSurfaceTensionModel types are : " << endl
<< dictionaryConstructorTablePtr_->sortedToc() << dictionaryConstructorTablePtr_->sortedToc()

View File

@ -49,7 +49,7 @@ Foam::autoPtr<Foam::liftModel> Foam::liftModel::New
if (cstrIter == dictionaryConstructorTablePtr_->end()) if (cstrIter == dictionaryConstructorTablePtr_->end())
{ {
FatalErrorInFunction FatalErrorInFunction
<< "Unknown liftModelType type " << "Unknown liftModel type "
<< liftModelType << endl << endl << liftModelType << endl << endl
<< "Valid liftModel types are : " << endl << "Valid liftModel types are : " << endl
<< dictionaryConstructorTablePtr_->sortedToc() << dictionaryConstructorTablePtr_->sortedToc()

View File

@ -47,7 +47,7 @@ Foam::autoPtr<Foam::phaseTransferModel> Foam::phaseTransferModel::New
if (cstrIter == dictionaryConstructorTablePtr_->end()) if (cstrIter == dictionaryConstructorTablePtr_->end())
{ {
FatalErrorInFunction FatalErrorInFunction
<< "Unknown phaseTransferModelType type " << "Unknown phaseTransferModel type "
<< phaseTransferModelType << endl << endl << phaseTransferModelType << endl << endl
<< "Valid phaseTransferModel types are : " << endl << "Valid phaseTransferModel types are : " << endl
<< dictionaryConstructorTablePtr_->sortedToc() << dictionaryConstructorTablePtr_->sortedToc()

View File

@ -46,7 +46,7 @@ Foam::swarmCorrection::New
if (cstrIter == dictionaryConstructorTablePtr_->end()) if (cstrIter == dictionaryConstructorTablePtr_->end())
{ {
FatalErrorInFunction FatalErrorInFunction
<< "Unknown swarmCorrectionType type " << "Unknown swarmCorrection type "
<< swarmCorrectionType << endl << endl << swarmCorrectionType << endl << endl
<< "Valid swarmCorrection types are : " << endl << "Valid swarmCorrection types are : " << endl
<< dictionaryConstructorTablePtr_->sortedToc() << dictionaryConstructorTablePtr_->sortedToc()

View File

@ -52,7 +52,7 @@ Foam::turbulentDispersionModel::New
if (cstrIter == dictionaryConstructorTablePtr_->end()) if (cstrIter == dictionaryConstructorTablePtr_->end())
{ {
FatalErrorInFunction FatalErrorInFunction
<< "Unknown turbulentDispersionModelType type " << "Unknown turbulentDispersionModel type "
<< turbulentDispersionModelType << endl << endl << turbulentDispersionModelType << endl << endl
<< "Valid turbulentDispersionModel types are : " << endl << "Valid turbulentDispersionModel types are : " << endl
<< dictionaryConstructorTablePtr_->sortedToc() << dictionaryConstructorTablePtr_->sortedToc()

View File

@ -49,7 +49,7 @@ Foam::autoPtr<Foam::virtualMassModel> Foam::virtualMassModel::New
if (cstrIter == dictionaryConstructorTablePtr_->end()) if (cstrIter == dictionaryConstructorTablePtr_->end())
{ {
FatalErrorInFunction FatalErrorInFunction
<< "Unknown virtualMassModelType type " << "Unknown virtualMassModel type "
<< virtualMassModelType << endl << endl << virtualMassModelType << endl << endl
<< "Valid virtualMassModel types are : " << endl << "Valid virtualMassModel types are : " << endl
<< dictionaryConstructorTablePtr_->sortedToc() << dictionaryConstructorTablePtr_->sortedToc()

View File

@ -44,7 +44,7 @@ Foam::autoPtr<Foam::wallDampingModel> Foam::wallDampingModel::New
if (cstrIter == dictionaryConstructorTablePtr_->end()) if (cstrIter == dictionaryConstructorTablePtr_->end())
{ {
FatalErrorInFunction FatalErrorInFunction
<< "Unknown wallDampingModelType type " << "Unknown wallDampingModel type "
<< wallDampingModelType << endl << endl << wallDampingModelType << endl << endl
<< "Valid wallDampingModel types are : " << endl << "Valid wallDampingModel types are : " << endl
<< dictionaryConstructorTablePtr_->sortedToc() << dictionaryConstructorTablePtr_->sortedToc()

View File

@ -51,7 +51,7 @@ Foam::autoPtr<Foam::wallLubricationModel> Foam::wallLubricationModel::New
if (cstrIter == dictionaryConstructorTablePtr_->end()) if (cstrIter == dictionaryConstructorTablePtr_->end())
{ {
FatalErrorInFunction FatalErrorInFunction
<< "Unknown wallLubricationModelType type " << "Unknown wallLubricationModel type "
<< wallLubricationModelType << endl << endl << wallLubricationModelType << endl << endl
<< "Valid wallLubricationModel types are : " << endl << "Valid wallLubricationModel types are : " << endl
<< dictionaryConstructorTablePtr_->sortedToc() << dictionaryConstructorTablePtr_->sortedToc()

View File

@ -43,13 +43,12 @@ Foam::kineticTheoryModels::conductivityModel::New
if (cstrIter == dictionaryConstructorTablePtr_->end()) if (cstrIter == dictionaryConstructorTablePtr_->end())
{ {
FatalError FatalErrorInFunction
<< "conductivityModel::New(const dictionary&) : " << endl << "Unknown granularConductivityModel type "
<< " unknown granularConductivityModel type " << conductivityModelType << endl << endl
<< conductivityModelType << "Valid granularConductivityModel types are :" << endl
<< ", constructor not in hash table" << endl << endl << dictionaryConstructorTablePtr_->sortedToc()
<< " Valid granularConductivityModel types are :" << endl; << exit(FatalError);
Info<< dictionaryConstructorTablePtr_->sortedToc() << abort(FatalError);
} }
return autoPtr<conductivityModel>(cstrIter()(dict)); return autoPtr<conductivityModel>(cstrIter()(dict));

View File

@ -43,14 +43,12 @@ Foam::kineticTheoryModels::frictionalStressModel::New
if (cstrIter == dictionaryConstructorTablePtr_->end()) if (cstrIter == dictionaryConstructorTablePtr_->end())
{ {
FatalError FatalErrorInFunction
<< "frictionalStressModel::New(const dictionary&) : " << endl << "Unknown frictionalStressModel type "
<< " unknown frictionalStressModelType type " << frictionalStressModelType << endl << endl
<< frictionalStressModelType << "Valid frictionalStressModel types are :" << endl
<< ", constructor not in hash table" << endl << endl << dictionaryConstructorTablePtr_->sortedToc()
<< " Valid frictionalStressModelType types are :" << endl; << exit(FatalError);
Info<< dictionaryConstructorTablePtr_->sortedToc()
<< abort(FatalError);
} }
return autoPtr<frictionalStressModel>(cstrIter()(dict)); return autoPtr<frictionalStressModel>(cstrIter()(dict));

View File

@ -43,14 +43,12 @@ Foam::kineticTheoryModels::granularPressureModel::New
if (cstrIter == dictionaryConstructorTablePtr_->end()) if (cstrIter == dictionaryConstructorTablePtr_->end())
{ {
FatalError FatalErrorInFunction
<< "granularPressureModel::New(const dictionary&) : " << endl << "Unknown granularPressureModel type "
<< " unknown granularPressureModelType type " << granularPressureModelType << endl << endl
<< granularPressureModelType << "Valid granularPressureModel types are :" << endl
<< ", constructor not in hash table" << endl << endl << dictionaryConstructorTablePtr_->sortedToc()
<< " Valid granularPressureModelType types are :" << endl; << exit(FatalError);
Info<< dictionaryConstructorTablePtr_->sortedToc()
<< abort(FatalError);
} }
return autoPtr<granularPressureModel>(cstrIter()(dict)); return autoPtr<granularPressureModel>(cstrIter()(dict));

View File

@ -43,14 +43,12 @@ Foam::kineticTheoryModels::radialModel::New
if (cstrIter == dictionaryConstructorTablePtr_->end()) if (cstrIter == dictionaryConstructorTablePtr_->end())
{ {
FatalError FatalErrorInFunction
<< "radialModel::New(const dictionary&) : " << endl << "Unknown radialModel type "
<< " unknown radialModelType type " << radialModelType << endl << endl
<< radialModelType << "Valid radialModel types are :" << endl
<< ", constructor not in hash table" << endl << endl << dictionaryConstructorTablePtr_->sortedToc()
<< " Valid radialModelType types are :" << endl; << exit(FatalError);
Info<< dictionaryConstructorTablePtr_->sortedToc()
<< abort(FatalError);
} }
return autoPtr<radialModel>(cstrIter()(dict)); return autoPtr<radialModel>(cstrIter()(dict));

View File

@ -43,13 +43,12 @@ Foam::kineticTheoryModels::viscosityModel::New
if (cstrIter == dictionaryConstructorTablePtr_->end()) if (cstrIter == dictionaryConstructorTablePtr_->end())
{ {
FatalError FatalErrorInFunction
<< "viscosityModel::New(const dictionary&) : " << endl << "Unknown granularViscosityModel type "
<< " unknown granularViscosityModel type " << viscosityModelType << endl << endl
<< viscosityModelType << "Valid granularViscosityModel types are :" << endl
<< ", constructor not in hash table" << endl << endl << dictionaryConstructorTablePtr_->sortedToc()
<< " Valid granularViscosityModel types are :" << endl; << exit(FatalError);
Info<< dictionaryConstructorTablePtr_->sortedToc() << abort(FatalError);
} }
return autoPtr<viscosityModel>(cstrIter()(dict)); return autoPtr<viscosityModel>(cstrIter()(dict));

View File

@ -45,7 +45,7 @@ Foam::autoPtr<Foam::blendingMethod> Foam::blendingMethod::New
if (cstrIter == dictionaryConstructorTablePtr_->end()) if (cstrIter == dictionaryConstructorTablePtr_->end())
{ {
FatalErrorInFunction FatalErrorInFunction
<< "Unknown blendingMethodType type " << "Unknown blendingMethod type "
<< blendingMethodType << endl << endl << blendingMethodType << endl << endl
<< "Valid blendingMethod types are : " << endl << "Valid blendingMethod types are : " << endl
<< dictionaryConstructorTablePtr_->sortedToc() << dictionaryConstructorTablePtr_->sortedToc()

View File

@ -49,7 +49,7 @@ Foam::autoPtr<Foam::diameterModel> Foam::diameterModel::New
if (cstrIter == dictionaryConstructorTablePtr_->end()) if (cstrIter == dictionaryConstructorTablePtr_->end())
{ {
FatalErrorInFunction FatalErrorInFunction
<< "Unknown diameterModelType type " << "Unknown diameterModel type "
<< diameterModelType << endl << endl << diameterModelType << endl << endl
<< "Valid diameterModel types are : " << endl << "Valid diameterModel types are : " << endl
<< dictionaryConstructorTablePtr_->sortedToc() << dictionaryConstructorTablePtr_->sortedToc()

View File

@ -47,7 +47,7 @@ Foam::autoPtr<Foam::phaseModel> Foam::phaseModel::New
if (cstrIter == phaseSystemConstructorTablePtr_->end()) if (cstrIter == phaseSystemConstructorTablePtr_->end())
{ {
FatalErrorInFunction FatalErrorInFunction
<< "Unknown phaseModelType type " << "Unknown phaseModel type "
<< phaseModelType << endl << endl << phaseModelType << endl << endl
<< "Valid phaseModel types are : " << endl << "Valid phaseModel types are : " << endl
<< phaseSystemConstructorTablePtr_->sortedToc() << phaseSystemConstructorTablePtr_->sortedToc()

View File

@ -57,7 +57,7 @@ Foam::autoPtr<Foam::phaseSystem> Foam::phaseSystem::New
if (cstrIter == dictionaryConstructorTablePtr_->end()) if (cstrIter == dictionaryConstructorTablePtr_->end())
{ {
FatalErrorInFunction FatalErrorInFunction
<< "Unknown phaseSystemType type " << "Unknown phaseSystem type "
<< phaseSystemType << endl << endl << phaseSystemType << endl << endl
<< "Valid phaseSystem types are : " << endl << "Valid phaseSystem types are : " << endl
<< dictionaryConstructorTablePtr_->sortedToc() << dictionaryConstructorTablePtr_->sortedToc()

View File

@ -63,7 +63,7 @@ Foam::diameterModels::shapeModel::New
if (cstrIter == dictionaryConstructorTablePtr_->end()) if (cstrIter == dictionaryConstructorTablePtr_->end())
{ {
FatalErrorInFunction FatalErrorInFunction
<< "Unknown shapeModelType type " << "Unknown shapeModel type "
<< shapeModelType << endl << endl << shapeModelType << endl << endl
<< "Valid shapeModel types are : " << endl << "Valid shapeModel types are : " << endl
<< dictionaryConstructorTablePtr_->sortedToc() << dictionaryConstructorTablePtr_->sortedToc()

View File

@ -44,7 +44,7 @@ Foam::wallBoilingModels::departureDiameterModel::New
if (cstrIter == dictionaryConstructorTablePtr_->end()) if (cstrIter == dictionaryConstructorTablePtr_->end())
{ {
FatalErrorInFunction FatalErrorInFunction
<< "Unknown departureDiameterModelType type " << "Unknown departureDiameterModel type "
<< departureDiameterModelType << endl << endl << departureDiameterModelType << endl << endl
<< "Valid departureDiameterModel types are : " << endl << "Valid departureDiameterModel types are : " << endl
<< dictionaryConstructorTablePtr_->sortedToc() << dictionaryConstructorTablePtr_->sortedToc()

View File

@ -44,7 +44,7 @@ Foam::wallBoilingModels::departureFrequencyModel::New
if (cstrIter == dictionaryConstructorTablePtr_->end()) if (cstrIter == dictionaryConstructorTablePtr_->end())
{ {
FatalErrorInFunction FatalErrorInFunction
<< "Unknown departureFrequencyModelType type " << "Unknown departureFrequencyModel type "
<< departureFrequencyModelType << endl << endl << departureFrequencyModelType << endl << endl
<< "Valid departureFrequencyModel types are : " << endl << "Valid departureFrequencyModel types are : " << endl
<< dictionaryConstructorTablePtr_->sortedToc() << dictionaryConstructorTablePtr_->sortedToc()

View File

@ -44,7 +44,7 @@ Foam::wallBoilingModels::nucleationSiteModel::New
if (cstrIter == dictionaryConstructorTablePtr_->end()) if (cstrIter == dictionaryConstructorTablePtr_->end())
{ {
FatalErrorInFunction FatalErrorInFunction
<< "Unknown nucleationSiteModelType type " << "Unknown nucleationSiteModel type "
<< nucleationSiteModelType << endl << endl << nucleationSiteModelType << endl << endl
<< "Valid nucleationSiteModel types are : " << endl << "Valid nucleationSiteModel types are : " << endl
<< dictionaryConstructorTablePtr_->sortedToc() << dictionaryConstructorTablePtr_->sortedToc()

View File

@ -44,7 +44,7 @@ Foam::wallBoilingModels::partitioningModel::New
if (cstrIter == dictionaryConstructorTablePtr_->end()) if (cstrIter == dictionaryConstructorTablePtr_->end())
{ {
FatalErrorInFunction FatalErrorInFunction
<< "Unknown partitioningModelType type " << "Unknown partitioningModel type "
<< partitioningModelType << endl << endl << partitioningModelType << endl << endl
<< "Valid partitioningModel types are : " << endl << "Valid partitioningModel types are : " << endl
<< dictionaryConstructorTablePtr_->sortedToc() << dictionaryConstructorTablePtr_->sortedToc()

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2015-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2015-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -66,7 +66,7 @@ Foam::autoPtr<Foam::patchDistMethod> Foam::patchDistMethod::New
if (cstrIter == dictionaryConstructorTablePtr_->end()) if (cstrIter == dictionaryConstructorTablePtr_->end())
{ {
FatalErrorInFunction FatalErrorInFunction
<< "Unknown patchDistMethodType type " << "Unknown patchDistMethod type "
<< patchDistMethodType << endl << endl << patchDistMethodType << endl << endl
<< "Valid patchDistMethod types are : " << endl << "Valid patchDistMethod types are : " << endl
<< dictionaryConstructorTablePtr_->sortedToc() << dictionaryConstructorTablePtr_->sortedToc()

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -35,7 +35,7 @@ Foam::CollisionModel<CloudType>::New
CloudType& owner CloudType& owner
) )
{ {
word modelType(dict.lookup("collisionModel")); const word modelType(dict.lookup("collisionModel"));
Info<< "Selecting collision model " << modelType << endl; Info<< "Selecting collision model " << modelType << endl;
@ -45,10 +45,11 @@ Foam::CollisionModel<CloudType>::New
if (cstrIter == dictionaryConstructorTablePtr_->end()) if (cstrIter == dictionaryConstructorTablePtr_->end())
{ {
FatalErrorInFunction FatalErrorInFunction
<< "Unknown collision model type " << modelType << "Unknown collision model type "
<< ", constructor not in hash table" << nl << nl << modelType << nl << nl
<< " Valid collision model types are:" << nl << "Valid collision model types are:" << nl
<< dictionaryConstructorTablePtr_->sortedToc() << exit(FatalError); << dictionaryConstructorTablePtr_->sortedToc()
<< exit(FatalError);
} }
return autoPtr<CollisionModel<CloudType>>(cstrIter()(dict, owner)); return autoPtr<CollisionModel<CloudType>>(cstrIter()(dict, owner));

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -35,21 +35,21 @@ Foam::PairModel<CloudType>::New
CloudType& owner CloudType& owner
) )
{ {
word PairModelType(dict.lookup("pairModel")); const word pairModelType(dict.lookup("pairModel"));
Info<< "Selecting pair model " << PairModelType << endl; Info<< "Selecting pair model " << pairModelType << endl;
typename dictionaryConstructorTable::iterator cstrIter = typename dictionaryConstructorTable::iterator cstrIter =
dictionaryConstructorTablePtr_->find(PairModelType); dictionaryConstructorTablePtr_->find(pairModelType);
if (cstrIter == dictionaryConstructorTablePtr_->end()) if (cstrIter == dictionaryConstructorTablePtr_->end())
{ {
FatalErrorInFunction FatalErrorInFunction
<< "Unknown pair model type " << "Unknown pair model type "
<< PairModelType << pairModelType << nl << nl
<< ", constructor not in hash table" << nl << nl << "Valid pair model types are:" << nl
<< " Valid pair model types are:" << nl << dictionaryConstructorTablePtr_->sortedToc()
<< dictionaryConstructorTablePtr_->sortedToc() << exit(FatalError); << exit(FatalError);
} }
return autoPtr<PairModel<CloudType>>(cstrIter()(dict, owner)); return autoPtr<PairModel<CloudType>>(cstrIter()(dict, owner));

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -35,20 +35,21 @@ Foam::WallModel<CloudType>::New
CloudType& owner CloudType& owner
) )
{ {
word WallModelType(dict.lookup("wallModel")); const word wallModelType(dict.lookup("wallModel"));
Info<< "Selecting wall model " << WallModelType << endl; Info<< "Selecting wall model " << wallModelType << endl;
typename dictionaryConstructorTable::iterator cstrIter = typename dictionaryConstructorTable::iterator cstrIter =
dictionaryConstructorTablePtr_->find(WallModelType); dictionaryConstructorTablePtr_->find(wallModelType);
if (cstrIter == dictionaryConstructorTablePtr_->end()) if (cstrIter == dictionaryConstructorTablePtr_->end())
{ {
FatalErrorInFunction FatalErrorInFunction
<< "Unknown wall model type type " << WallModelType << "Unknown wall model type "
<< ", constructor not in hash table" << nl << nl << wallModelType << nl << nl
<< " Valid wall model types are:" << nl << "Valid wall model types are:" << nl
<< dictionaryConstructorTablePtr_->sortedToc() << exit(FatalError); << dictionaryConstructorTablePtr_->sortedToc()
<< exit(FatalError);
} }
return autoPtr<WallModel<CloudType>>(cstrIter()(dict, owner)); return autoPtr<WallModel<CloudType>>(cstrIter()(dict, owner));

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -48,7 +48,8 @@ Foam::InjectionModel<CloudType>::New
<< "Unknown injection model type " << "Unknown injection model type "
<< modelType << nl << nl << modelType << nl << nl
<< "Valid injection model types are:" << nl << "Valid injection model types are:" << nl
<< dictionaryConstructorTablePtr_->sortedToc() << exit(FatalError); << dictionaryConstructorTablePtr_->sortedToc()
<< exit(FatalError);
} }
return autoPtr<InjectionModel<CloudType>>(cstrIter()(dict, owner)); return autoPtr<InjectionModel<CloudType>>(cstrIter()(dict, owner));

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -38,6 +38,7 @@ Foam::ParticleForce<CloudType>::New
) )
{ {
word forceType = name; word forceType = name;
typename dictionaryConstructorTable::iterator cstrIter = typename dictionaryConstructorTable::iterator cstrIter =
dictionaryConstructorTablePtr_->find(forceType); dictionaryConstructorTablePtr_->find(forceType);
@ -53,9 +54,8 @@ Foam::ParticleForce<CloudType>::New
{ {
FatalErrorInFunction FatalErrorInFunction
<< "Unknown particle force type " << "Unknown particle force type "
<< forceType << forceType << nl << nl
<< ", constructor not in hash table" << nl << nl << "Valid particle force types are:" << nl
<< " Valid particle force types are:" << nl
<< dictionaryConstructorTablePtr_->sortedToc() << dictionaryConstructorTablePtr_->sortedToc()
<< exit(FatalError); << exit(FatalError);
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -35,7 +35,7 @@ Foam::StochasticCollisionModel<CloudType>::New
CloudType& owner CloudType& owner
) )
{ {
word modelType(dict.lookup("stochasticCollisionModel")); const word modelType(dict.lookup("stochasticCollisionModel"));
Info<< "Selecting stochastic collision model " << modelType << endl; Info<< "Selecting stochastic collision model " << modelType << endl;
@ -45,10 +45,11 @@ Foam::StochasticCollisionModel<CloudType>::New
if (cstrIter == dictionaryConstructorTablePtr_->end()) if (cstrIter == dictionaryConstructorTablePtr_->end())
{ {
FatalErrorInFunction FatalErrorInFunction
<< "Unknown model type type " << "Unknown stochastic collision model type "
<< modelType << ", constructor not in hash table" << nl << nl << modelType << nl << nl
<< " Valid model types are:" << nl << "Valid model types are:" << nl
<< dictionaryConstructorTablePtr_->sortedToc() << exit(FatalError); << dictionaryConstructorTablePtr_->sortedToc()
<< exit(FatalError);
} }
return autoPtr<StochasticCollisionModel<CloudType>> return autoPtr<StochasticCollisionModel<CloudType>>

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -35,21 +35,21 @@ Foam::AtomisationModel<CloudType>::New
CloudType& owner CloudType& owner
) )
{ {
word AtomisationModelType(dict.lookup("atomisationModel")); const word atomisationModelType(dict.lookup("atomisationModel"));
Info<< "Selecting AtomisationModel " << AtomisationModelType << endl; Info<< "Selecting atomisation model " << atomisationModelType << endl;
typename dictionaryConstructorTable::iterator cstrIter = typename dictionaryConstructorTable::iterator cstrIter =
dictionaryConstructorTablePtr_->find(AtomisationModelType); dictionaryConstructorTablePtr_->find(atomisationModelType);
if (cstrIter == dictionaryConstructorTablePtr_->end()) if (cstrIter == dictionaryConstructorTablePtr_->end())
{ {
FatalErrorInFunction FatalErrorInFunction
<< "Unknown AtomisationModelType type " << "Unknown atomisation model type "
<< AtomisationModelType << atomisationModelType << nl << nl
<< ", constructor not in hash table" << nl << nl << "Valid atomisation model types are:" << nl
<< " Valid AtomisationModel types are:" << nl << dictionaryConstructorTablePtr_->sortedToc()
<< dictionaryConstructorTablePtr_->sortedToc() << exit(FatalError); << exit(FatalError);
} }
return autoPtr<AtomisationModel<CloudType>>(cstrIter()(dict, owner)); return autoPtr<AtomisationModel<CloudType>>(cstrIter()(dict, owner));

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -35,21 +35,21 @@ Foam::BreakupModel<CloudType>::New
CloudType& owner CloudType& owner
) )
{ {
word BreakupModelType(dict.lookup("breakupModel")); const word breakupModelType(dict.lookup("breakupModel"));
Info<< "Selecting BreakupModel " << BreakupModelType << endl; Info<< "Selecting breakup model " << breakupModelType << endl;
typename dictionaryConstructorTable::iterator cstrIter = typename dictionaryConstructorTable::iterator cstrIter =
dictionaryConstructorTablePtr_->find(BreakupModelType); dictionaryConstructorTablePtr_->find(breakupModelType);
if (cstrIter == dictionaryConstructorTablePtr_->end()) if (cstrIter == dictionaryConstructorTablePtr_->end())
{ {
FatalErrorInFunction FatalErrorInFunction
<< "Unknown BreakupModelType type " << "Unknown breakup model type "
<< BreakupModelType << breakupModelType << nl << nl
<< ", constructor not in hash table" << nl << nl << "Valid breakup model types are:" << nl
<< " Valid BreakupModel types are:" << nl << dictionaryConstructorTablePtr_->sortedToc()
<< dictionaryConstructorTablePtr_->sortedToc() << exit(FatalError); << exit(FatalError);
} }
return autoPtr<BreakupModel<CloudType>>(cstrIter()(dict, owner)); return autoPtr<BreakupModel<CloudType>>(cstrIter()(dict, owner));

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2016-2020 OpenFOAM Foundation \\ / A nd | Copyright (C) 2016-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -43,7 +43,7 @@ Foam::autoPtr<Foam::RBD::rigidBodySolver> Foam::RBD::rigidBodySolver::New
if (cstrIter == dictionaryConstructorTablePtr_->end()) if (cstrIter == dictionaryConstructorTablePtr_->end())
{ {
FatalErrorInFunction FatalErrorInFunction
<< "Unknown rigidBodySolverType type " << "Unknown rigidBodySolver type "
<< rigidBodySolverType << endl << endl << rigidBodySolverType << endl << endl
<< "Valid rigidBodySolver types are : " << endl << "Valid rigidBodySolver types are : " << endl
<< dictionaryConstructorTablePtr_->sortedToc() << dictionaryConstructorTablePtr_->sortedToc()

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2015-2020 OpenFOAM Foundation \\ / A nd | Copyright (C) 2015-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -43,7 +43,7 @@ Foam::autoPtr<Foam::sixDoFSolver> Foam::sixDoFSolver::New
if (cstrIter == dictionaryConstructorTablePtr_->end()) if (cstrIter == dictionaryConstructorTablePtr_->end())
{ {
FatalErrorInFunction FatalErrorInFunction
<< "Unknown sixDoFSolverType type " << "Unknown sixDoFSolver type "
<< sixDoFSolverType << endl << endl << sixDoFSolverType << endl << endl
<< "Valid sixDoFSolver types are : " << endl << "Valid sixDoFSolver types are : " << endl
<< dictionaryConstructorTablePtr_->sortedToc() << dictionaryConstructorTablePtr_->sortedToc()

View File

@ -46,7 +46,7 @@ Foam::autoPtr<Foam::contactAngleModel> Foam::contactAngleModel::New
if (cstrIter == dictionaryConstructorTablePtr_->end()) if (cstrIter == dictionaryConstructorTablePtr_->end())
{ {
FatalErrorInFunction FatalErrorInFunction
<< "Unknown contactAngleModelType type " << "Unknown contactAngleModel type "
<< contactAngleModelType << endl << endl << contactAngleModelType << endl << endl
<< "Valid contactAngleModel types are : " << endl << "Valid contactAngleModel types are : " << endl
<< dictionaryConstructorTablePtr_->sortedToc() << dictionaryConstructorTablePtr_->sortedToc()

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2017-2020 OpenFOAM Foundation \\ / A nd | Copyright (C) 2017-2023 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -49,7 +49,7 @@ Foam::autoPtr<Foam::surfaceTensionModel> Foam::surfaceTensionModel::New
if (cstrIter == dictionaryConstructorTablePtr_->end()) if (cstrIter == dictionaryConstructorTablePtr_->end())
{ {
FatalErrorInFunction FatalErrorInFunction
<< "Unknown surfaceTensionModelType type " << "Unknown surfaceTensionModel type "
<< surfaceTensionModelType << endl << endl << surfaceTensionModelType << endl << endl
<< "Valid surfaceTensionModel types are : " << endl << "Valid surfaceTensionModel types are : " << endl
<< dictionaryConstructorTablePtr_->sortedToc() << dictionaryConstructorTablePtr_->sortedToc()