mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: use FatalErrorInLookup macros (#1362)
This commit is contained in:
committed by
Andrew Heather
parent
1d86fc4f6b
commit
fb09f56aba
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2011-2015 OpenFOAM Foundation
|
| Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||||
@ -46,12 +46,12 @@ Foam::autoPtr<Foam::PDRDragModel> Foam::PDRDragModel::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown PDRDragModel type "
|
(
|
||||||
<< modelType << nl << nl
|
"PDRDragModel",
|
||||||
<< "Valid PDRDragModel types :" << endl
|
modelType,
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
*dictionaryConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<PDRDragModel>
|
return autoPtr<PDRDragModel>
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2011-2015 OpenFOAM Foundation
|
| Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||||
@ -45,12 +45,12 @@ Foam::autoPtr<Foam::XiEqModel> Foam::XiEqModel::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown XiEqModel type "
|
(
|
||||||
<< modelType << nl << nl
|
"XiEqModel",
|
||||||
<< "Valid XiEqModel types :" << endl
|
modelType,
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
*dictionaryConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<XiEqModel>(cstrIter()(propDict, thermo, turbulence, Su));
|
return autoPtr<XiEqModel>(cstrIter()(propDict, thermo, turbulence, Su));
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2011-2015 OpenFOAM Foundation
|
| Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||||
@ -45,12 +45,12 @@ Foam::autoPtr<Foam::XiGModel> Foam::XiGModel::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown XiGModel type "
|
(
|
||||||
<< modelType << nl << nl
|
"XiGModel",
|
||||||
<< "Valid XiGModel types :" << endl
|
modelType,
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
*dictionaryConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<XiGModel>(cstrIter()(propDict, thermo, turbulence, Su));
|
return autoPtr<XiGModel>(cstrIter()(propDict, thermo, turbulence, Su));
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2011-2015 OpenFOAM Foundation
|
| Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||||
@ -48,12 +48,12 @@ Foam::autoPtr<Foam::XiModel> Foam::XiModel::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown XiModel type "
|
(
|
||||||
<< modelType << nl << nl
|
"XiModel",
|
||||||
<< "Valid XiModel types :" << endl
|
modelType,
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
*dictionaryConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<XiModel>
|
return autoPtr<XiModel>
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2014-2015 OpenFOAM Foundation
|
| Copyright (C) 2014-2015 OpenFOAM Foundation
|
||||||
@ -47,12 +47,12 @@ Foam::autoPtr<Foam::mixtureViscosityModel> Foam::mixtureViscosityModel::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown mixtureViscosityModel type "
|
(
|
||||||
<< modelType << nl << nl
|
"mixtureViscosityModel",
|
||||||
<< "Valid mixtureViscosityModel types :" << endl
|
modelType,
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
*dictionaryConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<mixtureViscosityModel>
|
return autoPtr<mixtureViscosityModel>
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2014-2017 OpenFOAM Foundation
|
| Copyright (C) 2014-2017 OpenFOAM Foundation
|
||||||
@ -114,12 +114,12 @@ Foam::autoPtr<Foam::relativeVelocityModel> Foam::relativeVelocityModel::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown time scale model type "
|
(
|
||||||
<< modelType << nl << nl
|
"relative velocity",
|
||||||
<< "Valid time scale model types :" << endl
|
modelType,
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
*dictionaryConstructorTablePtr_
|
||||||
<< abort(FatalError);
|
) << abort(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2017 OpenCFD Ltd.
|
\\ / A nd | Copyright (C) 2017-2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -43,11 +43,13 @@ Foam::radiation::reflectionModel::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalIOErrorInFunction(dict)
|
FatalIOErrorInLookup
|
||||||
<< "Unknown reflectionModel type " << modelType << nl << nl
|
(
|
||||||
<< "Valid types :" << nl
|
dict,
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
"reflectionModel",
|
||||||
<< exit(FatalIOError);
|
modelType,
|
||||||
|
*dictionaryConstructorTablePtr_
|
||||||
|
) << exit(FatalIOError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<reflectionModel>(cstrIter()(dict, mesh));
|
return autoPtr<reflectionModel>(cstrIter()(dict, mesh));
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2017 OpenFOAM Foundation
|
| Copyright (C) 2017 OpenFOAM Foundation
|
||||||
@ -38,7 +38,7 @@ Foam::interfaceCompositionModel::New
|
|||||||
const phasePair& pair
|
const phasePair& pair
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
word interfaceCompositionModelType
|
const word modelType
|
||||||
(
|
(
|
||||||
dict.get<word>("type")
|
dict.get<word>("type")
|
||||||
+ "<"
|
+ "<"
|
||||||
@ -49,19 +49,18 @@ Foam::interfaceCompositionModel::New
|
|||||||
);
|
);
|
||||||
|
|
||||||
Info<< "Selecting interfaceCompositionModel for "
|
Info<< "Selecting interfaceCompositionModel for "
|
||||||
<< pair << ": " << interfaceCompositionModelType << endl;
|
<< pair << ": " << modelType << endl;
|
||||||
|
|
||||||
const auto cstrIter =
|
const auto cstrIter = dictionaryConstructorTablePtr_->cfind(modelType);
|
||||||
dictionaryConstructorTablePtr_->cfind(interfaceCompositionModelType);
|
|
||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown interfaceCompositionModelType type "
|
(
|
||||||
<< interfaceCompositionModelType << nl << nl
|
"interfaceCompositionModel",
|
||||||
<< "Valid interfaceCompositionModel types are : " << nl
|
modelType,
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
*dictionaryConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return cstrIter()(dict, pair);
|
return cstrIter()(dict, pair);
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2017 OpenCFD Ltd.
|
\\ / A nd | Copyright (C) 2017-2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -43,12 +43,12 @@ Foam::autoPtr<Foam::porousModel> Foam::porousModel::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown modelType type "
|
(
|
||||||
<< modelType << endl << endl
|
"porousModel",
|
||||||
<< "Valid porousModel types are : " << endl
|
modelType,
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
*dictionaryConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return cstrIter()(dict, mesh);
|
return cstrIter()(dict, mesh);
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2017 OpenCFD Ltd.
|
\\ / A nd | Copyright (C) 2017-2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -43,12 +43,12 @@ Foam::autoPtr<Foam::surfaceTensionModel> Foam::surfaceTensionModel::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalIOErrorInFunction(dict)
|
FatalErrorInLookup
|
||||||
<< "Unknown surfaceTensionModel type "
|
(
|
||||||
<< surfaceTensionModelType << endl << endl
|
"surfaceTensionModel",
|
||||||
<< "Valid modelType types are : " << endl
|
modelType,
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
*dictionaryConstructorTablePtr_
|
||||||
<< exit(FatalIOError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return cstrIter()(dict, pair, true);
|
return cstrIter()(dict, pair, true);
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2017 OpenCFD Ltd.
|
\\ / A nd | Copyright (C) 2017-2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -43,12 +43,12 @@ Foam::autoPtr<Foam::phaseModel> Foam::phaseModel::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown phaseModel type "
|
(
|
||||||
<< modelType << endl << endl
|
"phaseModel",
|
||||||
<< "Valid phaseModel types are : " << endl
|
modelType,
|
||||||
<< phaseSystemConstructorTablePtr_->sortedToc()
|
*phaseSystemConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return cstrIter()(fluid, phaseName);
|
return cstrIter()(fluid, phaseName);
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2017 OpenCFD Ltd.
|
\\ / A nd | Copyright (C) 2017-2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -32,7 +32,7 @@ Foam::autoPtr<Foam::multiphaseSystem> Foam::multiphaseSystem::New
|
|||||||
const fvMesh& mesh
|
const fvMesh& mesh
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
const word multiphaseSystemType
|
const word systemType
|
||||||
(
|
(
|
||||||
IOdictionary
|
IOdictionary
|
||||||
(
|
(
|
||||||
@ -48,19 +48,18 @@ Foam::autoPtr<Foam::multiphaseSystem> Foam::multiphaseSystem::New
|
|||||||
).get<word>("type")
|
).get<word>("type")
|
||||||
);
|
);
|
||||||
|
|
||||||
Info<< "Selecting multiphaseSystem " << multiphaseSystemType << endl;
|
Info<< "Selecting multiphaseSystem " << systemType << endl;
|
||||||
|
|
||||||
const auto cstrIter =
|
const auto cstrIter = dictionaryConstructorTablePtr_->cfind(systemType);
|
||||||
dictionaryConstructorTablePtr_->cfind(multiphaseSystemType);
|
|
||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown multiphaseSystemType type "
|
(
|
||||||
<< multiphaseSystemType << endl
|
"multiphaseSystem",
|
||||||
<< "Valid multiphaseSystem types are : " << endl
|
systemType,
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
*dictionaryConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<multiphaseSystem>(cstrIter()(mesh));
|
return autoPtr<multiphaseSystem>(cstrIter()(mesh));
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2016 OpenCFD Ltd.
|
\\ / A nd | Copyright (C) 2016-2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -35,7 +35,9 @@ Foam::temperaturePhaseChangeTwoPhaseMixture::New
|
|||||||
const fvMesh& mesh
|
const fvMesh& mesh
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
IOdictionary phaseChangePropertiesDict
|
const word modelType
|
||||||
|
(
|
||||||
|
IOdictionary
|
||||||
(
|
(
|
||||||
IOobject
|
IOobject
|
||||||
(
|
(
|
||||||
@ -44,13 +46,9 @@ Foam::temperaturePhaseChangeTwoPhaseMixture::New
|
|||||||
mesh,
|
mesh,
|
||||||
IOobject::MUST_READ,
|
IOobject::MUST_READ,
|
||||||
IOobject::NO_WRITE,
|
IOobject::NO_WRITE,
|
||||||
false
|
false // Do not register
|
||||||
)
|
)
|
||||||
);
|
).get<word>("phaseChangeTwoPhaseModel")
|
||||||
|
|
||||||
const word modelType
|
|
||||||
(
|
|
||||||
phaseChangePropertiesDict.get<word>("phaseChangeTwoPhaseModel")
|
|
||||||
);
|
);
|
||||||
|
|
||||||
Info<< "Selecting phaseChange model " << modelType << endl;
|
Info<< "Selecting phaseChange model " << modelType << endl;
|
||||||
@ -59,16 +57,19 @@ Foam::temperaturePhaseChangeTwoPhaseMixture::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown temperaturePhaseChangeTwoPhaseMixture type "
|
(
|
||||||
<< modelType << nl << nl
|
"temperaturePhaseChangeTwoPhaseMixture",
|
||||||
<< "Valid temperaturePhaseChangeTwoPhaseMixture types :" << endl
|
modelType,
|
||||||
<< componentsConstructorTablePtr_->sortedToc()
|
*componentsConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<temperaturePhaseChangeTwoPhaseMixture>
|
return
|
||||||
(cstrIter()(thermo, mesh));
|
autoPtr<temperaturePhaseChangeTwoPhaseMixture>
|
||||||
|
(
|
||||||
|
cstrIter()(thermo, mesh)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2011-2015 OpenFOAM Foundation
|
| Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||||
@ -37,7 +37,9 @@ Foam::phaseChangeTwoPhaseMixture::New
|
|||||||
const surfaceScalarField& phi
|
const surfaceScalarField& phi
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
IOdictionary transportPropertiesDict
|
const word modelType
|
||||||
|
(
|
||||||
|
IOdictionary
|
||||||
(
|
(
|
||||||
IOobject
|
IOobject
|
||||||
(
|
(
|
||||||
@ -46,13 +48,9 @@ Foam::phaseChangeTwoPhaseMixture::New
|
|||||||
U.db(),
|
U.db(),
|
||||||
IOobject::MUST_READ,
|
IOobject::MUST_READ,
|
||||||
IOobject::NO_WRITE,
|
IOobject::NO_WRITE,
|
||||||
false
|
false // Do not register
|
||||||
)
|
)
|
||||||
);
|
).get<word>("phaseChangeTwoPhaseMixture")
|
||||||
|
|
||||||
const word modelType
|
|
||||||
(
|
|
||||||
transportPropertiesDict.lookup("phaseChangeTwoPhaseMixture")
|
|
||||||
);
|
);
|
||||||
|
|
||||||
Info<< "Selecting phaseChange model " << modelType << endl;
|
Info<< "Selecting phaseChange model " << modelType << endl;
|
||||||
@ -61,12 +59,12 @@ Foam::phaseChangeTwoPhaseMixture::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown phaseChangeTwoPhaseMixture type "
|
(
|
||||||
<< modelType << nl << nl
|
"phaseChangeTwoPhaseMixture",
|
||||||
<< "Valid phaseChangeTwoPhaseMixture types :" << endl
|
modelType,
|
||||||
<< componentsConstructorTablePtr_->sortedToc()
|
*componentsConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<phaseChangeTwoPhaseMixture>(cstrIter()(U, phi));
|
return autoPtr<phaseChangeTwoPhaseMixture>(cstrIter()(U, phi));
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2011-2015 OpenFOAM Foundation
|
| Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||||
@ -47,12 +47,12 @@ Foam::autoPtr<Foam::dragModel> Foam::dragModel::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown dragModel type "
|
(
|
||||||
<< modelType << nl << nl
|
"dragModel",
|
||||||
<< "Valid dragModel types :" << endl
|
modelType,
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
*dictionaryConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return cstrIter()(interfaceDict, phase1, phase2);
|
return cstrIter()(interfaceDict, phase1, phase2);
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2011-2015 OpenFOAM Foundation
|
| Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||||
@ -39,7 +39,7 @@ Foam::autoPtr<Foam::heatTransferModel> Foam::heatTransferModel::New
|
|||||||
{
|
{
|
||||||
const word modelType
|
const word modelType
|
||||||
(
|
(
|
||||||
interfaceDict.lookup("heatTransferModel" + phase1.name())
|
interfaceDict.get<word>("heatTransferModel" + phase1.name())
|
||||||
);
|
);
|
||||||
|
|
||||||
Info<< "Selecting heatTransferModel for phase "
|
Info<< "Selecting heatTransferModel for phase "
|
||||||
@ -51,12 +51,12 @@ Foam::autoPtr<Foam::heatTransferModel> Foam::heatTransferModel::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown heatTransferModel type "
|
(
|
||||||
<< modelType << nl << nl
|
"heatTransferModel",
|
||||||
<< "Valid heatTransferModel types :" << endl
|
modelType,
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
*dictionaryConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return cstrIter()(interfaceDict, alpha1, phase1, phase2);
|
return cstrIter()(interfaceDict, alpha1, phase1, phase2);
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2011-2017 OpenFOAM Foundation
|
| Copyright (C) 2011-2017 OpenFOAM Foundation
|
||||||
@ -46,12 +46,12 @@ Foam::autoPtr<Foam::diameterModel> Foam::diameterModel::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown diameterModel type "
|
(
|
||||||
<< modelType << nl << nl
|
"diameterModel",
|
||||||
<< "Valid diameterModel types :" << endl
|
modelType,
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
*dictionaryConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return cstrIter()
|
return cstrIter()
|
||||||
|
|||||||
@ -2,8 +2,10 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2017-2019 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
| Copyright (C) 2017-2019 OpenFOAM Foundation
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -106,9 +108,13 @@ void Foam::functionObjects::sizeDistribution::initialise
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
FatalIOErrorInFunction(dict)
|
FatalIOErrorInLookup
|
||||||
<< "Unknown functionType. Valid types are:"
|
(
|
||||||
<< functionTypeNames_ << nl << exit(FatalIOError);
|
dict,
|
||||||
|
"functionType",
|
||||||
|
word::null,
|
||||||
|
functionTypeNames_
|
||||||
|
) << exit(FatalIOError);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -126,9 +132,13 @@ void Foam::functionObjects::sizeDistribution::initialise
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
FatalIOErrorInFunction(dict)
|
FatalIOErrorInLookup
|
||||||
<< "Unknown abszissaType. Valid types are:"
|
(
|
||||||
<< abszissaTypeNames_ << nl << exit(FatalIOError);
|
dict,
|
||||||
|
"abszissaType",
|
||||||
|
word::null,
|
||||||
|
abszissaTypeNames_
|
||||||
|
) << exit(FatalIOError);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -139,7 +149,7 @@ void Foam::functionObjects::sizeDistribution::initialise
|
|||||||
FatalIOErrorInFunction(dict)
|
FatalIOErrorInFunction(dict)
|
||||||
<< type() << " " << name() << ": "
|
<< type() << " " << name() << ": "
|
||||||
<< selectionModeTypeNames_[selectionModeType_]
|
<< selectionModeTypeNames_[selectionModeType_]
|
||||||
<< "(" << selectionModeTypeName_ << "):" << nl
|
<< '(' << selectionModeTypeName_ << "):" << nl
|
||||||
<< " Selection has no cells" << exit(FatalIOError);
|
<< " Selection has no cells" << exit(FatalIOError);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -147,7 +157,7 @@ void Foam::functionObjects::sizeDistribution::initialise
|
|||||||
|
|
||||||
Info<< type() << " " << name() << ":"
|
Info<< type() << " " << name() << ":"
|
||||||
<< selectionModeTypeNames_[selectionModeType_]
|
<< selectionModeTypeNames_[selectionModeType_]
|
||||||
<< "(" << selectionModeTypeName_ << "):" << nl
|
<< '(' << selectionModeTypeName_ << "):" << nl
|
||||||
<< " total cells = " << nCells_ << nl
|
<< " total cells = " << nCells_ << nl
|
||||||
<< " total volume = " << volume_
|
<< " total volume = " << volume_
|
||||||
<< nl << endl;
|
<< nl << endl;
|
||||||
@ -160,7 +170,7 @@ void Foam::functionObjects::sizeDistribution::setCellZoneCells()
|
|||||||
{
|
{
|
||||||
case rtCellZone:
|
case rtCellZone:
|
||||||
{
|
{
|
||||||
dict().lookup("cellZone") >> selectionModeTypeName_;
|
dict().readEntry("cellZone", selectionModeTypeName_);
|
||||||
|
|
||||||
label zoneId =
|
label zoneId =
|
||||||
mesh().cellZones().findZoneID(selectionModeTypeName_);
|
mesh().cellZones().findZoneID(selectionModeTypeName_);
|
||||||
@ -188,9 +198,13 @@ void Foam::functionObjects::sizeDistribution::setCellZoneCells()
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
FatalIOErrorInFunction(dict_)
|
FatalIOErrorInLookup
|
||||||
<< "Unknown selectionMode type. Valid selectionMode types are:"
|
(
|
||||||
<< selectionModeTypeNames_ << nl << exit(FatalIOError);
|
dict_,
|
||||||
|
"selectionMode",
|
||||||
|
word::null,
|
||||||
|
selectionModeTypeNames_
|
||||||
|
) << exit(FatalIOError);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2014-2015 OpenFOAM Foundation
|
| Copyright (C) 2014-2015 OpenFOAM Foundation
|
||||||
@ -46,12 +46,12 @@ Foam::aspectRatioModel::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown aspectRatioModel type "
|
(
|
||||||
<< modelType << nl << nl
|
"aspectRatioModel",
|
||||||
<< "Valid aspectRatioModel types :" << endl
|
modelType,
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
*dictionaryConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return cstrIter()(dict, pair);
|
return cstrIter()(dict, pair);
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2011-2015 OpenFOAM Foundation
|
| Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||||
@ -45,12 +45,12 @@ Foam::autoPtr<Foam::dragModel> Foam::dragModel::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown dragModel type "
|
(
|
||||||
<< modelType << nl << nl
|
"dragModel",
|
||||||
<< "Valid dragModel types :" << endl
|
modelType,
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
*dictionaryConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return cstrIter()(dict, pair, true);
|
return cstrIter()(dict, pair, true);
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2011-2015 OpenFOAM Foundation
|
| Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||||
@ -45,12 +45,12 @@ Foam::autoPtr<Foam::heatTransferModel> Foam::heatTransferModel::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown heatTransferModel type "
|
(
|
||||||
<< modelType << nl << nl
|
"heatTransferModel",
|
||||||
<< "Valid heatTransferModel types :" << endl
|
modelType,
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
*dictionaryConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return cstrIter()(dict, pair);
|
return cstrIter()(dict, pair);
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2014-2015 OpenFOAM Foundation
|
| Copyright (C) 2014-2015 OpenFOAM Foundation
|
||||||
@ -45,12 +45,12 @@ Foam::autoPtr<Foam::liftModel> Foam::liftModel::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown liftModel type "
|
(
|
||||||
<< modelType << nl << nl
|
"liftModel",
|
||||||
<< "Valid liftModel types :" << endl
|
modelType,
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
*dictionaryConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return cstrIter()(dict, pair);
|
return cstrIter()(dict, pair);
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2014-2015 OpenFOAM Foundation
|
| Copyright (C) 2014-2015 OpenFOAM Foundation
|
||||||
@ -46,12 +46,12 @@ Foam::swarmCorrection::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown swarmCorrection type "
|
(
|
||||||
<< modelType << nl << nl
|
"swarmCorrection",
|
||||||
<< "Valid swarmCorrection types :" << endl
|
modelType,
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
*dictionaryConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return cstrIter()(dict, pair);
|
return cstrIter()(dict, pair);
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2014-2015 OpenFOAM Foundation
|
| Copyright (C) 2014-2015 OpenFOAM Foundation
|
||||||
@ -46,12 +46,12 @@ Foam::turbulentDispersionModel::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown turbulentDispersionModel type "
|
(
|
||||||
<< modelType << nl << nl
|
"turbulentDispersionModel",
|
||||||
<< "Valid turbulentDispersionModel types :" << endl
|
modelType,
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
*dictionaryConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return cstrIter()(dict, pair);
|
return cstrIter()(dict, pair);
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2014-2015 OpenFOAM Foundation
|
| Copyright (C) 2014-2015 OpenFOAM Foundation
|
||||||
@ -45,12 +45,12 @@ Foam::autoPtr<Foam::virtualMassModel> Foam::virtualMassModel::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown virtualMassModel type "
|
(
|
||||||
<< modelType << nl << nl
|
"virtualMassModel",
|
||||||
<< "Valid virtualMassModel types :" << endl
|
modelType,
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
*dictionaryConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return cstrIter()(dict, pair, true);
|
return cstrIter()(dict, pair, true);
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2014-2015 OpenFOAM Foundation
|
| Copyright (C) 2014-2015 OpenFOAM Foundation
|
||||||
@ -45,12 +45,12 @@ Foam::autoPtr<Foam::wallLubricationModel> Foam::wallLubricationModel::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown wallLubricationModel type "
|
(
|
||||||
<< modelType << nl << nl
|
"wallLubricationModel",
|
||||||
<< "Valid wallLubricationModel types :" << endl
|
modelType,
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
*dictionaryConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return cstrIter()(dict, pair);
|
return cstrIter()(dict, pair);
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2011-2015 OpenFOAM Foundation
|
| Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||||
@ -43,12 +43,12 @@ Foam::kineticTheoryModels::conductivityModel::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown conductivityModel type "
|
(
|
||||||
<< modelType << nl << nl
|
"conductivityModel",
|
||||||
<< "Valid conductivityModel types :" << endl
|
modelType,
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
*dictionaryConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<conductivityModel>(cstrIter()(dict));
|
return autoPtr<conductivityModel>(cstrIter()(dict));
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2011-2015 OpenFOAM Foundation
|
| Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||||
@ -43,12 +43,12 @@ Foam::kineticTheoryModels::frictionalStressModel::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown frictionalStressModel type "
|
(
|
||||||
<< modelType << nl << nl
|
"frictionalStressModel",
|
||||||
<< "Valid frictionalStressModelType types :" << endl
|
modelType,
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
*dictionaryConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<frictionalStressModel>(cstrIter()(dict));
|
return autoPtr<frictionalStressModel>(cstrIter()(dict));
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2011-2015 OpenFOAM Foundation
|
| Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||||
@ -43,12 +43,12 @@ Foam::kineticTheoryModels::granularPressureModel::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown granularPressureModel type "
|
(
|
||||||
<< modelType << nl << nl
|
"granularPressureModel",
|
||||||
<< "Valid granularPressureModel types :" << nl
|
modelType,
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
*dictionaryConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<granularPressureModel>(cstrIter()(dict));
|
return autoPtr<granularPressureModel>(cstrIter()(dict));
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2011-2015 OpenFOAM Foundation
|
| Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||||
@ -43,12 +43,12 @@ Foam::kineticTheoryModels::radialModel::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown radialModel type "
|
(
|
||||||
<< modelType << nl << nl
|
"radialModel",
|
||||||
<< "Valid radialModel types :" << endl
|
modelType,
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
*dictionaryConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<radialModel>(cstrIter()(dict));
|
return autoPtr<radialModel>(cstrIter()(dict));
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2011-2015 OpenFOAM Foundation
|
| Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||||
@ -35,20 +35,20 @@ Foam::kineticTheoryModels::viscosityModel::New
|
|||||||
const dictionary& dict
|
const dictionary& dict
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
const word modelName(dict.get<word>("viscosityModel"));
|
const word modelType(dict.get<word>("viscosityModel"));
|
||||||
|
|
||||||
Info<< "Selecting viscosityModel " << modelName << endl;
|
Info<< "Selecting viscosityModel " << modelType << endl;
|
||||||
|
|
||||||
auto cstrIter = dictionaryConstructorTablePtr_->cfind(modelName);
|
auto cstrIter = dictionaryConstructorTablePtr_->cfind(modelType);
|
||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown viscosityModel type "
|
(
|
||||||
<< modelName << nl << nl
|
"viscosityModel",
|
||||||
<< "Valid viscosityModel types :" << nl
|
modelType,
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
*dictionaryConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<viscosityModel>(cstrIter()(dict));
|
return autoPtr<viscosityModel>(cstrIter()(dict));
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2014-2015 OpenFOAM Foundation
|
| Copyright (C) 2014-2015 OpenFOAM Foundation
|
||||||
@ -35,21 +35,21 @@ Foam::autoPtr<Foam::blendingMethod> Foam::blendingMethod::New
|
|||||||
const wordList& phaseNames
|
const wordList& phaseNames
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
const word methodName(dict.get<word>("type"));
|
const word modelType(dict.get<word>("type"));
|
||||||
|
|
||||||
Info<< "Selecting " << dict.dictName() << " blending method: "
|
Info<< "Selecting " << dict.dictName() << " blending method: "
|
||||||
<< methodName << endl;
|
<< modelType << endl;
|
||||||
|
|
||||||
auto cstrIter = dictionaryConstructorTablePtr_->cfind(methodName);
|
auto cstrIter = dictionaryConstructorTablePtr_->cfind(modelType);
|
||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown blendingMethod type "
|
(
|
||||||
<< methodName << nl << nl
|
"blendingMethod",
|
||||||
<< "Valid blendingMethod types :" << endl
|
modelType,
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
*dictionaryConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return cstrIter()(dict, phaseNames);
|
return cstrIter()(dict, phaseNames);
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2018 OpenCFD Ltd.
|
\\ / A nd | Copyright (C) 2018-2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2011-2015 OpenFOAM Foundation
|
| Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||||
@ -57,12 +57,13 @@ Foam::diameterModels::IATEsource::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalIOErrorInFunction(dict)
|
FatalIOErrorInLookup
|
||||||
<< "Unknown IATE source type "
|
(
|
||||||
<< type << nl << nl
|
dict,
|
||||||
<< "Valid IATE source types :" << nl
|
"IATEsource",
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
type,
|
||||||
<< exit(FatalIOError);
|
*dictionaryConstructorTablePtr_
|
||||||
|
) << exit(FatalIOError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<IATEsource>(cstrIter()(iate, dict));
|
return autoPtr<IATEsource>(cstrIter()(iate, dict));
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2011-2017 OpenFOAM Foundation
|
| Copyright (C) 2011-2017 OpenFOAM Foundation
|
||||||
@ -46,12 +46,12 @@ Foam::autoPtr<Foam::diameterModel> Foam::diameterModel::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown diameterModel type "
|
(
|
||||||
<< modelType << nl << nl
|
"diameterModel",
|
||||||
<< "Valid diameterModel types :" << endl
|
modelType,
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
*dictionaryConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return cstrIter()
|
return cstrIter()
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2012-2015 OpenFOAM Foundation
|
| Copyright (C) 2012-2015 OpenFOAM Foundation
|
||||||
@ -43,7 +43,7 @@ Foam::cellSizeAndAlignmentControl::cellSizeAndAlignmentControl
|
|||||||
(
|
(
|
||||||
const Time& runTime,
|
const Time& runTime,
|
||||||
const word& name,
|
const word& name,
|
||||||
const dictionary& controlFunctionDict,
|
const dictionary& dict,
|
||||||
const conformationSurfaces& geometryToConformTo,
|
const conformationSurfaces& geometryToConformTo,
|
||||||
const scalar& defaultCellSize
|
const scalar& defaultCellSize
|
||||||
)
|
)
|
||||||
@ -52,7 +52,7 @@ Foam::cellSizeAndAlignmentControl::cellSizeAndAlignmentControl
|
|||||||
defaultCellSize_(defaultCellSize),
|
defaultCellSize_(defaultCellSize),
|
||||||
forceInitialPointInsertion_
|
forceInitialPointInsertion_
|
||||||
(
|
(
|
||||||
controlFunctionDict.lookupOrDefault<Switch>
|
dict.lookupOrDefault<Switch>
|
||||||
(
|
(
|
||||||
"forceInitialPointInsertion",
|
"forceInitialPointInsertion",
|
||||||
Switch::OFF
|
Switch::OFF
|
||||||
@ -69,26 +69,26 @@ Foam::cellSizeAndAlignmentControl::New
|
|||||||
(
|
(
|
||||||
const Time& runTime,
|
const Time& runTime,
|
||||||
const word& name,
|
const word& name,
|
||||||
const dictionary& controlFunctionDict,
|
const dictionary& dict,
|
||||||
const conformationSurfaces& geometryToConformTo,
|
const conformationSurfaces& geometryToConformTo,
|
||||||
const scalar& defaultCellSize
|
const scalar& defaultCellSize
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
const word controlType(controlFunctionDict.get<word>("type"));
|
const word modelType(dict.get<word>("type"));
|
||||||
|
|
||||||
Info<< indent << "Selecting cellSizeAndAlignmentControl "
|
Info<< indent << "Selecting cellSizeAndAlignmentControl "
|
||||||
<< controlType << endl;
|
<< modelType << endl;
|
||||||
|
|
||||||
auto cstrIter = dictionaryConstructorTablePtr_->cfind(controlType);
|
auto cstrIter = dictionaryConstructorTablePtr_->cfind(modelType);
|
||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown cellSizeAndAlignmentControl type "
|
(
|
||||||
<< controlType << nl << nl
|
"cellSizeAndAlignmentControl",
|
||||||
<< "Valid cellSizeAndAlignmentControl types :" << endl
|
modelType,
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
*dictionaryConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<cellSizeAndAlignmentControl>
|
return autoPtr<cellSizeAndAlignmentControl>
|
||||||
@ -97,7 +97,7 @@ Foam::cellSizeAndAlignmentControl::New
|
|||||||
(
|
(
|
||||||
runTime,
|
runTime,
|
||||||
name,
|
name,
|
||||||
controlFunctionDict,
|
dict,
|
||||||
geometryToConformTo,
|
geometryToConformTo,
|
||||||
defaultCellSize
|
defaultCellSize
|
||||||
)
|
)
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2012-2017 OpenFOAM Foundation
|
| Copyright (C) 2012-2017 OpenFOAM Foundation
|
||||||
@ -123,37 +123,33 @@ Foam::cellSizeFunction::cellSizeFunction
|
|||||||
|
|
||||||
Foam::autoPtr<Foam::cellSizeFunction> Foam::cellSizeFunction::New
|
Foam::autoPtr<Foam::cellSizeFunction> Foam::cellSizeFunction::New
|
||||||
(
|
(
|
||||||
const dictionary& cellSizeFunctionDict,
|
const dictionary& dict,
|
||||||
const searchableSurface& surface,
|
const searchableSurface& surface,
|
||||||
const scalar& defaultCellSize,
|
const scalar& defaultCellSize,
|
||||||
const labelList regionIndices
|
const labelList regionIndices
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
const word functionName
|
const word modelType(dict.get<word>("cellSizeFunction"));
|
||||||
(
|
|
||||||
cellSizeFunctionDict.get<word>("cellSizeFunction")
|
|
||||||
);
|
|
||||||
|
|
||||||
Info<< indent << "Selecting cellSizeFunction "
|
Info<< indent << "Selecting cellSizeFunction " << modelType << endl;
|
||||||
<< functionName << endl;
|
|
||||||
|
|
||||||
auto cstrIter = dictionaryConstructorTablePtr_->cfind(functionName);
|
auto cstrIter = dictionaryConstructorTablePtr_->cfind(modelType);
|
||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown cellSizeFunction type "
|
(
|
||||||
<< functionName << nl << nl
|
"cellSizeFunction",
|
||||||
<< "Valid cellSizeFunction types :" << endl
|
modelType,
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
*dictionaryConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<cellSizeFunction>
|
return autoPtr<cellSizeFunction>
|
||||||
(
|
(
|
||||||
cstrIter()
|
cstrIter()
|
||||||
(
|
(
|
||||||
cellSizeFunctionDict,
|
dict,
|
||||||
surface,
|
surface,
|
||||||
defaultCellSize,
|
defaultCellSize,
|
||||||
regionIndices
|
regionIndices
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2012-2015 OpenFOAM Foundation
|
| Copyright (C) 2012-2015 OpenFOAM Foundation
|
||||||
@ -57,34 +57,30 @@ Foam::cellSizeCalculationType::cellSizeCalculationType
|
|||||||
|
|
||||||
Foam::autoPtr<Foam::cellSizeCalculationType> Foam::cellSizeCalculationType::New
|
Foam::autoPtr<Foam::cellSizeCalculationType> Foam::cellSizeCalculationType::New
|
||||||
(
|
(
|
||||||
const dictionary& cellSizeCalculationTypeDict,
|
const dictionary& dict,
|
||||||
const triSurfaceMesh& surface,
|
const triSurfaceMesh& surface,
|
||||||
const scalar& defaultCellSize
|
const scalar& defaultCellSize
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
const word calculationType
|
const word modelType(dict.get<word>("cellSizeCalculationType"));
|
||||||
(
|
|
||||||
cellSizeCalculationTypeDict.get<word>("cellSizeCalculationType")
|
|
||||||
);
|
|
||||||
|
|
||||||
Info<< indent << "Selecting cellSizeCalculationType "
|
Info<< indent << "Selecting cellSizeCalculationType " << modelType << endl;
|
||||||
<< calculationType << endl;
|
|
||||||
|
|
||||||
auto cstrIter = dictionaryConstructorTablePtr_->cfind(calculationType);
|
auto cstrIter = dictionaryConstructorTablePtr_->cfind(modelType);
|
||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown cellSizeCalculationType type "
|
(
|
||||||
<< calculationType << nl << nl
|
"cellSizeCalculationType",
|
||||||
<< "Valid cellSizeCalculationType types :" << endl
|
modelType,
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
*dictionaryConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<cellSizeCalculationType>
|
return autoPtr<cellSizeCalculationType>
|
||||||
(
|
(
|
||||||
cstrIter()(cellSizeCalculationTypeDict, surface, defaultCellSize)
|
cstrIter()(dict, surface, defaultCellSize)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2012-2017 OpenFOAM Foundation
|
| Copyright (C) 2012-2017 OpenFOAM Foundation
|
||||||
@ -62,34 +62,33 @@ Foam::surfaceCellSizeFunction::surfaceCellSizeFunction
|
|||||||
|
|
||||||
Foam::autoPtr<Foam::surfaceCellSizeFunction> Foam::surfaceCellSizeFunction::New
|
Foam::autoPtr<Foam::surfaceCellSizeFunction> Foam::surfaceCellSizeFunction::New
|
||||||
(
|
(
|
||||||
const dictionary& surfaceCellSizeFunctionDict,
|
const dictionary& dict,
|
||||||
const searchableSurface& surface,
|
const searchableSurface& surface,
|
||||||
const scalar& defaultCellSize
|
const scalar& defaultCellSize
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
const word functionName
|
const word modelType
|
||||||
(
|
(
|
||||||
surfaceCellSizeFunctionDict.get<word>("surfaceCellSizeFunction")
|
dict.get<word>("surfaceCellSizeFunction")
|
||||||
);
|
);
|
||||||
|
|
||||||
Info<< indent << "Selecting surfaceCellSizeFunction "
|
Info<< indent << "Selecting surfaceCellSizeFunction " << modelType << endl;
|
||||||
<< functionName << endl;
|
|
||||||
|
|
||||||
auto cstrIter = dictionaryConstructorTablePtr_->cfind(functionName);
|
auto cstrIter = dictionaryConstructorTablePtr_->cfind(modelType);
|
||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown surfaceCellSizeFunction type "
|
(
|
||||||
<< functionName << nl << nl
|
"surfaceCellSizeFunction",
|
||||||
<< "Valid surfaceCellSizeFunction types :" << endl
|
modelType,
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
*dictionaryConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<surfaceCellSizeFunction>
|
return autoPtr<surfaceCellSizeFunction>
|
||||||
(
|
(
|
||||||
cstrIter()(surfaceCellSizeFunctionDict, surface, defaultCellSize)
|
cstrIter()(dict, surface, defaultCellSize)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2012-2017 OpenFOAM Foundation
|
| Copyright (C) 2012-2017 OpenFOAM Foundation
|
||||||
@ -64,12 +64,12 @@ Foam::autoPtr<Foam::faceAreaWeightModel> Foam::faceAreaWeightModel::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown faceAreaWeightModel type "
|
(
|
||||||
<< modelType << nl << nl
|
"faceAreaWeightModel",
|
||||||
<< "Valid faceAreaWeightModel types :" << endl
|
modelType,
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
*dictionaryConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<faceAreaWeightModel>(cstrIter()(relaxationDict));
|
return autoPtr<faceAreaWeightModel>(cstrIter()(relaxationDict));
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2012-2017 OpenFOAM Foundation
|
| Copyright (C) 2012-2017 OpenFOAM Foundation
|
||||||
@ -79,21 +79,20 @@ Foam::autoPtr<Foam::initialPointsMethod> Foam::initialPointsMethod::New
|
|||||||
const autoPtr<backgroundMeshDecomposition>& decomposition
|
const autoPtr<backgroundMeshDecomposition>& decomposition
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
const word methodName(initialPointsDict.get<word>("initialPointsMethod"));
|
const word modelType(initialPointsDict.get<word>("initialPointsMethod"));
|
||||||
|
|
||||||
Info<< nl << "Selecting initialPointsMethod "
|
Info<< nl << "Selecting initialPointsMethod " << modelType << endl;
|
||||||
<< methodName << endl;
|
|
||||||
|
|
||||||
auto cstrIter = dictionaryConstructorTablePtr_->cfind(methodName);
|
auto cstrIter = dictionaryConstructorTablePtr_->cfind(modelType);
|
||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown initialPointsMethod type "
|
(
|
||||||
<< methodName << nl << nl
|
"initialPointsMethod",
|
||||||
<< "Valid initialPointsMethod types :" << endl
|
modelType,
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
*dictionaryConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2012-2017 OpenFOAM Foundation
|
| Copyright (C) 2012-2017 OpenFOAM Foundation
|
||||||
@ -68,12 +68,12 @@ Foam::autoPtr<Foam::relaxationModel> Foam::relaxationModel::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown relaxationModel type "
|
(
|
||||||
<< modelType << nl << nl
|
"relaxationModel",
|
||||||
<< "Valid relaxationModel types :" << endl
|
modelType,
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
*dictionaryConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<relaxationModel>(cstrIter()(relaxationDict, runTime));
|
return autoPtr<relaxationModel>(cstrIter()(relaxationDict, runTime));
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2013-2015 OpenFOAM Foundation
|
| Copyright (C) 2013-2015 OpenFOAM Foundation
|
||||||
@ -45,18 +45,18 @@ Foam::searchableSurfaceFeatures::New
|
|||||||
const dictionary& dict
|
const dictionary& dict
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
const word featuresType = surface.type() + "Features";
|
const word modelType(surface.type() + "Features");
|
||||||
|
|
||||||
auto cstrIter = dictConstructorTablePtr_->cfind(featuresType);
|
auto cstrIter = dictConstructorTablePtr_->cfind(modelType);
|
||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown searchableSurfaceFeatures type "
|
(
|
||||||
<< featuresType << nl << nl
|
"searchableSurfaceFeatures",
|
||||||
<< "Valid searchableSurfaceFeatures types :" << endl
|
modelType,
|
||||||
<< dictConstructorTablePtr_->sortedToc()
|
*dictConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<searchableSurfaceFeatures>(cstrIter()(surface, dict));
|
return autoPtr<searchableSurfaceFeatures>(cstrIter()(surface, dict));
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2012-2016 OpenFOAM Foundation
|
| Copyright (C) 2012-2016 OpenFOAM Foundation
|
||||||
@ -68,18 +68,18 @@ Foam::autoPtr<Foam::faceSelection> Foam::faceSelection::New
|
|||||||
const dictionary& dict
|
const dictionary& dict
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
const word sampleType(dict.get<word>("type"));
|
const word modelType(dict.get<word>("type"));
|
||||||
|
|
||||||
auto cstrIter = dictionaryConstructorTablePtr_->cfind(sampleType);
|
auto cstrIter = dictionaryConstructorTablePtr_->cfind(modelType);
|
||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown faceSelection type "
|
(
|
||||||
<< sampleType << nl << nl
|
"faceSelection",
|
||||||
<< "Valid faceSelection types :" << endl
|
modelType,
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
*dictionaryConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<faceSelection>(cstrIter()(name, mesh, dict));
|
return autoPtr<faceSelection>(cstrIter()(name, mesh, dict));
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2011-2015 OpenFOAM Foundation
|
| Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||||
@ -44,11 +44,12 @@ Foam::tabulatedWallFunctions::tabulatedWallFunction::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown tabulatedWallFunction type " << functionName
|
(
|
||||||
<< nl << nl << "Valid tabulatedWallFunction types are:" << nl
|
"tabulatedWallFunction",
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
functionName,
|
||||||
<< exit(FatalError);
|
*dictionaryConstructorTablePtr_
|
||||||
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<tabulatedWallFunction>(cstrIter()(dict, mesh));
|
return autoPtr<tabulatedWallFunction>(cstrIter()(dict, mesh));
|
||||||
|
|||||||
@ -68,17 +68,19 @@ Foam::surfaceFeaturesExtraction::method::New
|
|||||||
const dictionary& dict
|
const dictionary& dict
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
const word methodName(dict.get<word>("extractionMethod"));
|
const word modelType(dict.get<word>("extractionMethod"));
|
||||||
|
|
||||||
auto cstrIter = dictionaryConstructorTablePtr_->cfind(methodName);
|
auto cstrIter = dictionaryConstructorTablePtr_->cfind(modelType);
|
||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalIOErrorInFunction(dict)
|
FatalIOErrorInLookup
|
||||||
<< "Unknown extractionMethod " << methodName << nl << nl
|
(
|
||||||
<< "Valid extraction methods:" << nl
|
dict,
|
||||||
<< flatOutput(dictionaryConstructorTablePtr_->sortedToc())
|
"extractionMethod",
|
||||||
<< exit(FatalIOError);
|
modelType,
|
||||||
|
*dictionaryConstructorTablePtr_
|
||||||
|
) << exit(FatalIOError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<method>(cstrIter.val()(dict));
|
return autoPtr<method>(cstrIter.val()(dict));
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2014 OpenFOAM Foundation
|
| Copyright (C) 2014 OpenFOAM Foundation
|
||||||
@ -70,12 +70,12 @@ Foam::searchableSurfaceModifier::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown searchableSurfaceModifier type "
|
(
|
||||||
<< type << nl << nl
|
"searchableSurfaceModifier",
|
||||||
<< "Valid searchableSurfaceModifier types :" << endl
|
type,
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
*dictionaryConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<searchableSurfaceModifier>(cstrIter()(geometry, dict));
|
return autoPtr<searchableSurfaceModifier>(cstrIter()(geometry, dict));
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2011-2015 OpenFOAM Foundation
|
| Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||||
@ -42,12 +42,12 @@ Foam::autoPtr<Foam::ODESolver> Foam::ODESolver::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown ODESolver type "
|
(
|
||||||
<< solverType << nl << nl
|
"ODESolver",
|
||||||
<< "Valid ODESolver types :" << endl
|
solverType,
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
*dictionaryConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<ODESolver>(cstrIter()(odes, dict));
|
return autoPtr<ODESolver>(cstrIter()(odes, dict));
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2017 OpenCFD Ltd.
|
\\ / A nd | Copyright (C) 2017-2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2011-2016 OpenFOAM Foundation
|
| Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
@ -62,12 +62,13 @@ Foam::autoPtr<Foam::token::compound> Foam::token::compound::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalIOErrorInFunction(is)
|
FatalIOErrorInLookup
|
||||||
<< "Unknown compound type "
|
(
|
||||||
<< compoundType << nl << nl
|
is,
|
||||||
<< "Valid compound types:" << endl
|
"compound",
|
||||||
<< IstreamConstructorTablePtr_->sortedToc()
|
compoundType,
|
||||||
<< abort(FatalIOError);
|
*IstreamConstructorTablePtr_
|
||||||
|
) << abort(FatalIOError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<Foam::token::compound>(cstrIter()(is));
|
return autoPtr<Foam::token::compound>(cstrIter()(is));
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2017-2018 OpenCFD Ltd.
|
\\ / A nd | Copyright (C) 2017-2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2011-2016 OpenFOAM Foundation
|
| Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
@ -112,12 +112,12 @@ Foam::autoPtr<Foam::functionObject> Foam::functionObject::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown function type "
|
(
|
||||||
<< functionType << nl << nl
|
"function",
|
||||||
<< "Valid function types :" << nl
|
functionType,
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc() << endl
|
*dictionaryConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<functionObject>(cstrIter()(name, runTime, dict));
|
return autoPtr<functionObject>(cstrIter()(name, runTime, dict));
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield |2011 OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield |2011 OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2011-2016 OpenFOAM Foundation
|
| Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
@ -36,21 +36,18 @@ Foam::autoPtr<Foam::pointPatchField<Type>> Foam::pointPatchField<Type>::New
|
|||||||
const DimensionedField<Type, pointMesh>& iF
|
const DimensionedField<Type, pointMesh>& iF
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (debug)
|
DebugInFunction << "Constructing pointPatchField<Type>" << endl;
|
||||||
{
|
|
||||||
InfoInFunction << "Constructing pointPatchField<Type>" << endl;
|
|
||||||
}
|
|
||||||
|
|
||||||
auto cstrIter = pointPatchConstructorTablePtr_->cfind(patchFieldType);
|
auto cstrIter = pointPatchConstructorTablePtr_->cfind(patchFieldType);
|
||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown patchFieldType type "
|
(
|
||||||
<< patchFieldType << nl << nl
|
"patchFieldType",
|
||||||
<< "Valid patchField types :" << endl
|
patchFieldType,
|
||||||
<< pointPatchConstructorTablePtr_->sortedToc()
|
*pointPatchConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
autoPtr<pointPatchField<Type>> pfPtr(cstrIter()(p, iF));
|
autoPtr<pointPatchField<Type>> pfPtr(cstrIter()(p, iF));
|
||||||
@ -111,10 +108,7 @@ Foam::autoPtr<Foam::pointPatchField<Type>> Foam::pointPatchField<Type>::New
|
|||||||
const dictionary& dict
|
const dictionary& dict
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (debug)
|
DebugInFunction << "Constructing pointPatchField<Type>" << endl;
|
||||||
{
|
|
||||||
InfoInFunction << "Constructing pointPatchField<Type>" << endl;
|
|
||||||
}
|
|
||||||
|
|
||||||
const word patchFieldType(dict.get<word>("type"));
|
const word patchFieldType(dict.get<word>("type"));
|
||||||
|
|
||||||
@ -184,21 +178,18 @@ Foam::autoPtr<Foam::pointPatchField<Type>> Foam::pointPatchField<Type>::New
|
|||||||
const pointPatchFieldMapper& pfMapper
|
const pointPatchFieldMapper& pfMapper
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (debug)
|
DebugInFunction << "Constructing pointPatchField<Type>" << endl;
|
||||||
{
|
|
||||||
InfoInFunction << "Constructing pointPatchField<Type>" << endl;
|
|
||||||
}
|
|
||||||
|
|
||||||
auto cstrIter = patchMapperConstructorTablePtr_->cfind(ptf.type());
|
auto cstrIter = patchMapperConstructorTablePtr_->cfind(ptf.type());
|
||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown patchField type "
|
(
|
||||||
<< ptf.type() << nl << nl
|
"patchField",
|
||||||
<< "Valid patchField types :" << endl
|
ptf.type(),
|
||||||
<< patchMapperConstructorTablePtr_->sortedToc()
|
*patchMapperConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return cstrIter()(ptf, p, iF, pfMapper);
|
return cstrIter()(ptf, p, iF, pfMapper);
|
||||||
|
|||||||
@ -436,12 +436,12 @@ Foam::autoPtr<Foam::fileOperation> Foam::fileOperation::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown fileHandler type "
|
(
|
||||||
<< handlerType << nl << nl
|
"fileHandler",
|
||||||
<< "Valid fileHandler types :" << endl
|
handlerType,
|
||||||
<< wordConstructorTablePtr_->sortedToc()
|
*wordConstructorTablePtr_
|
||||||
<< abort(FatalError);
|
) << abort(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<fileOperation>(cstrIter()(verbose));
|
return autoPtr<fileOperation>(cstrIter()(verbose));
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2017-2018 OpenFOAM Foundation
|
| Copyright (C) 2017-2018 OpenFOAM Foundation
|
||||||
@ -58,21 +58,18 @@ Foam::fileOperations::fileOperationInitialise::New
|
|||||||
char**& argv
|
char**& argv
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (debug)
|
DebugInFunction << "Constructing fileOperationInitialise" << endl;
|
||||||
{
|
|
||||||
InfoInFunction << "Constructing fileOperationInitialise" << endl;
|
|
||||||
}
|
|
||||||
|
|
||||||
auto cstrIter = wordConstructorTablePtr_->cfind(type);
|
auto cstrIter = wordConstructorTablePtr_->cfind(type);
|
||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown fileOperationInitialise type "
|
(
|
||||||
<< type << nl << nl
|
"fileOperationInitialise",
|
||||||
<< "Valid fileOperationInitialise types are" << endl
|
type,
|
||||||
<< wordConstructorTablePtr_->sortedToc()
|
*wordConstructorTablePtr_
|
||||||
<< abort(FatalError);
|
) << abort(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<fileOperationInitialise>(cstrIter()(argc, argv));
|
return autoPtr<fileOperationInitialise>(cstrIter()(argc, argv));
|
||||||
|
|||||||
@ -222,12 +222,12 @@ Foam::autoPtr<Foam::graph::writer> Foam::graph::writer::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown graph format "
|
(
|
||||||
<< graphFormat << nl << nl
|
"graph",
|
||||||
<< "Valid graph formats :" << endl
|
graphFormat,
|
||||||
<< wordConstructorTablePtr_->sortedToc()
|
*wordConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<graph::writer>(cstrIter()());
|
return autoPtr<graph::writer>(cstrIter()());
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2011-2016 OpenFOAM Foundation
|
| Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
@ -45,12 +45,12 @@ Foam::autoPtr<Foam::tableReader<Type>> Foam::tableReader<Type>::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown reader type "
|
(
|
||||||
<< readerType << nl << nl
|
"reader",
|
||||||
<< "Valid reader types :" << nl
|
readerType,
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
*dictionaryConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<tableReader<Type>>(cstrIter()(spec));
|
return autoPtr<tableReader<Type>>(cstrIter()(spec));
|
||||||
|
|||||||
@ -54,23 +54,18 @@ Foam::autoPtr<Foam::interpolationWeights> Foam::interpolationWeights::New
|
|||||||
const scalarField& samples
|
const scalarField& samples
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (debug)
|
DebugInFunction << "Selecting interpolationWeights " << type << endl;
|
||||||
{
|
|
||||||
InfoInFunction
|
|
||||||
<< "Selecting interpolationWeights "
|
|
||||||
<< type << endl;
|
|
||||||
}
|
|
||||||
|
|
||||||
auto cstrIter = wordConstructorTablePtr_->cfind(type);
|
auto cstrIter = wordConstructorTablePtr_->cfind(type);
|
||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown interpolationWeights type "
|
(
|
||||||
<< type << nl << nl
|
"interpolationWeights",
|
||||||
<< "Valid interpolationWeights types :" << endl
|
type,
|
||||||
<< wordConstructorTablePtr_->sortedToc()
|
*wordConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<interpolationWeights>(cstrIter()(samples));
|
return autoPtr<interpolationWeights>(cstrIter()(samples));
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2011-2016 OpenFOAM Foundation
|
| Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
@ -49,12 +49,13 @@ Foam::LduMatrix<Type, DType, LUType>::preconditioner::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalIOErrorInFunction(preconditionerDict)
|
FatalIOErrorInLookup
|
||||||
<< "Unknown symmetric matrix preconditioner "
|
(
|
||||||
<< preconditionerName << endl << endl
|
preconditionerDict,
|
||||||
<< "Valid symmetric matrix preconditioners are :" << endl
|
"symmetric matrix preconditioner",
|
||||||
<< symMatrixConstructorTablePtr_->sortedToc()
|
preconditionerName,
|
||||||
<< exit(FatalIOError);
|
*symMatrixConstructorTablePtr_
|
||||||
|
) << exit(FatalIOError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<typename LduMatrix<Type, DType, LUType>::preconditioner>
|
return autoPtr<typename LduMatrix<Type, DType, LUType>::preconditioner>
|
||||||
@ -73,12 +74,13 @@ Foam::LduMatrix<Type, DType, LUType>::preconditioner::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalIOErrorInFunction(preconditionerDict)
|
FatalIOErrorInLookup
|
||||||
<< "Unknown asymmetric matrix preconditioner "
|
(
|
||||||
<< preconditionerName << endl << endl
|
preconditionerDict,
|
||||||
<< "Valid asymmetric matrix preconditioners are :" << endl
|
"asymmetric matrix preconditioner",
|
||||||
<< asymMatrixConstructorTablePtr_->sortedToc()
|
preconditionerName,
|
||||||
<< exit(FatalIOError);
|
*asymMatrixConstructorTablePtr_
|
||||||
|
) << exit(FatalIOError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<typename LduMatrix<Type, DType, LUType>::preconditioner>
|
return autoPtr<typename LduMatrix<Type, DType, LUType>::preconditioner>
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2011-2016 OpenFOAM Foundation
|
| Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
@ -46,12 +46,13 @@ Foam::LduMatrix<Type, DType, LUType>::smoother::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalIOErrorInFunction(smootherDict)
|
FatalIOErrorInLookup
|
||||||
<< "Unknown symmetric matrix smoother " << smootherName
|
(
|
||||||
<< endl << endl
|
smootherDict,
|
||||||
<< "Valid symmetric matrix smoothers are :" << endl
|
"symmetric matrix smoother",
|
||||||
<< symMatrixConstructorTablePtr_->sortedToc()
|
smootherName,
|
||||||
<< exit(FatalIOError);
|
*symMatrixConstructorTablePtr_
|
||||||
|
) << exit(FatalIOError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<typename LduMatrix<Type, DType, LUType>::smoother>
|
return autoPtr<typename LduMatrix<Type, DType, LUType>::smoother>
|
||||||
@ -69,12 +70,13 @@ Foam::LduMatrix<Type, DType, LUType>::smoother::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalIOErrorInFunction(smootherDict)
|
FatalIOErrorInLookup
|
||||||
<< "Unknown asymmetric matrix smoother " << smootherName
|
(
|
||||||
<< endl << endl
|
smootherDict,
|
||||||
<< "Valid asymmetric matrix smoothers are :" << endl
|
"asymmetric matrix smoother",
|
||||||
<< asymMatrixConstructorTablePtr_->sortedToc()
|
smootherName,
|
||||||
<< exit(FatalIOError);
|
*asymMatrixConstructorTablePtr_
|
||||||
|
) << exit(FatalIOError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<typename LduMatrix<Type, DType, LUType>::smoother>
|
return autoPtr<typename LduMatrix<Type, DType, LUType>::smoother>
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2011-2017 OpenFOAM Foundation
|
| Copyright (C) 2011-2017 OpenFOAM Foundation
|
||||||
@ -59,12 +59,13 @@ Foam::LduMatrix<Type, DType, LUType>::solver::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalIOErrorInFunction(solverDict)
|
FatalIOErrorInLookup
|
||||||
<< "Unknown symmetric matrix solver " << solverName
|
(
|
||||||
<< endl << endl
|
solverDict,
|
||||||
<< "Valid symmetric matrix solvers are :" << endl
|
"symmetric matrix solver",
|
||||||
<< symMatrixConstructorTablePtr_->sortedToc()
|
solverName,
|
||||||
<< exit(FatalIOError);
|
*symMatrixConstructorTablePtr_
|
||||||
|
) << exit(FatalIOError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<typename LduMatrix<Type, DType, LUType>::solver>
|
return autoPtr<typename LduMatrix<Type, DType, LUType>::solver>
|
||||||
@ -83,12 +84,13 @@ Foam::LduMatrix<Type, DType, LUType>::solver::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalIOErrorInFunction(solverDict)
|
FatalIOErrorInLookup
|
||||||
<< "Unknown asymmetric matrix solver " << solverName
|
(
|
||||||
<< endl << endl
|
solverDict,
|
||||||
<< "Valid asymmetric matrix solvers are :" << endl
|
"asymmetric matrix solver",
|
||||||
<< asymMatrixConstructorTablePtr_->sortedToc()
|
solverName,
|
||||||
<< exit(FatalIOError);
|
*asymMatrixConstructorTablePtr_
|
||||||
|
) << exit(FatalIOError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<typename LduMatrix<Type, DType, LUType>::solver>
|
return autoPtr<typename LduMatrix<Type, DType, LUType>::solver>
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2011-2016 OpenFOAM Foundation
|
| Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
@ -93,12 +93,13 @@ Foam::lduMatrix::preconditioner::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalIOErrorInFunction(controls)
|
FatalIOErrorInLookup
|
||||||
<< "Unknown symmetric matrix preconditioner "
|
(
|
||||||
<< name << nl << nl
|
controls,
|
||||||
<< "Valid symmetric matrix preconditioners :" << endl
|
"symmetric matrix preconditioner",
|
||||||
<< symMatrixConstructorTablePtr_->sortedToc()
|
name,
|
||||||
<< exit(FatalIOError);
|
*symMatrixConstructorTablePtr_
|
||||||
|
) << exit(FatalIOError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<lduMatrix::preconditioner>
|
return autoPtr<lduMatrix::preconditioner>
|
||||||
@ -116,12 +117,13 @@ Foam::lduMatrix::preconditioner::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalIOErrorInFunction(controls)
|
FatalIOErrorInLookup
|
||||||
<< "Unknown asymmetric matrix preconditioner "
|
(
|
||||||
<< name << nl << nl
|
controls,
|
||||||
<< "Valid asymmetric matrix preconditioners :" << endl
|
"asymmetric matrix preconditioner",
|
||||||
<< asymMatrixConstructorTablePtr_->sortedToc()
|
name,
|
||||||
<< exit(FatalIOError);
|
*asymMatrixConstructorTablePtr_
|
||||||
|
) << exit(FatalIOError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<lduMatrix::preconditioner>
|
return autoPtr<lduMatrix::preconditioner>
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2011-2016 OpenFOAM Foundation
|
| Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
@ -96,12 +96,13 @@ Foam::autoPtr<Foam::lduMatrix::smoother> Foam::lduMatrix::smoother::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalIOErrorInFunction(solverControls)
|
FatalIOErrorInLookup
|
||||||
<< "Unknown symmetric matrix smoother "
|
(
|
||||||
<< name << nl << nl
|
solverControls,
|
||||||
<< "Valid symmetric matrix smoothers are :" << endl
|
"symmetric matrix smoother",
|
||||||
<< symMatrixConstructorTablePtr_->sortedToc()
|
name,
|
||||||
<< exit(FatalIOError);
|
*symMatrixConstructorTablePtr_
|
||||||
|
) << exit(FatalIOError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<lduMatrix::smoother>
|
return autoPtr<lduMatrix::smoother>
|
||||||
@ -122,12 +123,13 @@ Foam::autoPtr<Foam::lduMatrix::smoother> Foam::lduMatrix::smoother::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalIOErrorInFunction(solverControls)
|
FatalIOErrorInLookup
|
||||||
<< "Unknown asymmetric matrix smoother "
|
(
|
||||||
<< name << nl << nl
|
solverControls,
|
||||||
<< "Valid asymmetric matrix smoothers are :" << endl
|
"asymmetric matrix smoother",
|
||||||
<< asymMatrixConstructorTablePtr_->sortedToc()
|
name,
|
||||||
<< exit(FatalIOError);
|
*asymMatrixConstructorTablePtr_
|
||||||
|
) << exit(FatalIOError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<lduMatrix::smoother>
|
return autoPtr<lduMatrix::smoother>
|
||||||
|
|||||||
@ -73,11 +73,13 @@ Foam::autoPtr<Foam::lduMatrix::solver> Foam::lduMatrix::solver::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalIOErrorInFunction(solverControls)
|
FatalIOErrorInLookup
|
||||||
<< "Unknown symmetric matrix solver " << name << nl << nl
|
(
|
||||||
<< "Valid symmetric matrix solvers are :" << endl
|
solverControls,
|
||||||
<< symMatrixConstructorTablePtr_->sortedToc()
|
"symmetric matrix solver",
|
||||||
<< exit(FatalIOError);
|
name,
|
||||||
|
*symMatrixConstructorTablePtr_
|
||||||
|
) << exit(FatalIOError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<lduMatrix::solver>
|
return autoPtr<lduMatrix::solver>
|
||||||
@ -99,11 +101,13 @@ Foam::autoPtr<Foam::lduMatrix::solver> Foam::lduMatrix::solver::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalIOErrorInFunction(solverControls)
|
FatalIOErrorInLookup
|
||||||
<< "Unknown asymmetric matrix solver " << name << nl << nl
|
(
|
||||||
<< "Valid asymmetric matrix solvers are :" << endl
|
solverControls,
|
||||||
<< asymMatrixConstructorTablePtr_->sortedToc()
|
"asymmetric matrix solver",
|
||||||
<< exit(FatalIOError);
|
name,
|
||||||
|
*asymMatrixConstructorTablePtr_
|
||||||
|
) << exit(FatalIOError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<lduMatrix::solver>
|
return autoPtr<lduMatrix::solver>
|
||||||
|
|||||||
@ -360,10 +360,7 @@ Foam::autoPtr<Foam::GAMGProcAgglomeration> Foam::GAMGProcAgglomeration::New
|
|||||||
const dictionary& controlDict
|
const dictionary& controlDict
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (debug)
|
DebugInFunction << "Constructing GAMGProcAgglomeration" << endl;
|
||||||
{
|
|
||||||
InfoInFunction << "Constructing GAMGProcAgglomeration" << endl;
|
|
||||||
}
|
|
||||||
|
|
||||||
auto cstrIter = GAMGAgglomerationConstructorTablePtr_->cfind(type);
|
auto cstrIter = GAMGAgglomerationConstructorTablePtr_->cfind(type);
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2011-2015 OpenFOAM Foundation
|
| Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||||
@ -41,12 +41,12 @@ Foam::autoPtr<Foam::GAMGInterfaceField> Foam::GAMGInterfaceField::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown GAMGInterfaceField type "
|
(
|
||||||
<< coupleType << nl
|
"GAMGInterfaceField",
|
||||||
<< "Valid GAMGInterfaceField types :"
|
coupleType,
|
||||||
<< lduInterfaceFieldConstructorTablePtr_->sortedToc()
|
*lduInterfaceFieldConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<GAMGInterfaceField>(cstrIter()(GAMGCp, fineInterface));
|
return autoPtr<GAMGInterfaceField>(cstrIter()(GAMGCp, fineInterface));
|
||||||
@ -66,12 +66,12 @@ Foam::autoPtr<Foam::GAMGInterfaceField> Foam::GAMGInterfaceField::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown GAMGInterfaceField type "
|
(
|
||||||
<< coupleType << nl
|
"GAMGInterfaceField",
|
||||||
<< "Valid GAMGInterfaceField types :"
|
coupleType,
|
||||||
<< lduInterfaceConstructorTablePtr_->sortedToc()
|
*lduInterfaceConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<GAMGInterfaceField>(cstrIter()(GAMGCp, doTransform, rank));
|
return autoPtr<GAMGInterfaceField>(cstrIter()(GAMGCp, doTransform, rank));
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2011-2015 OpenFOAM Foundation
|
| Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||||
@ -49,11 +49,12 @@ Foam::autoPtr<Foam::GAMGInterface> Foam::GAMGInterface::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown GAMGInterface type " << coupleType << ".\n"
|
(
|
||||||
<< "Valid GAMGInterface types :"
|
"GAMGInterface",
|
||||||
<< lduInterfaceConstructorTablePtr_->sortedToc()
|
coupleType,
|
||||||
<< exit(FatalError);
|
*lduInterfaceConstructorTablePtr_
|
||||||
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<GAMGInterface>
|
return autoPtr<GAMGInterface>
|
||||||
@ -84,11 +85,12 @@ Foam::autoPtr<Foam::GAMGInterface> Foam::GAMGInterface::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown GAMGInterface type " << coupleType << ".\n"
|
(
|
||||||
<< "Valid GAMGInterface types :"
|
"GAMGInterface",
|
||||||
<< IstreamConstructorTablePtr_->sortedToc()
|
coupleType,
|
||||||
<< exit(FatalError);
|
*IstreamConstructorTablePtr_
|
||||||
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<GAMGInterface>(cstrIter()(index, coarseInterfaces, is));
|
return autoPtr<GAMGInterface>(cstrIter()(index, coarseInterfaces, is));
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2011-2016 OpenFOAM Foundation
|
| Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
@ -35,21 +35,18 @@ Foam::autoPtr<Foam::facePointPatch> Foam::facePointPatch::New
|
|||||||
const pointBoundaryMesh& bm
|
const pointBoundaryMesh& bm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (debug)
|
DebugInFunction << "Constructing facePointPatch" << endl;
|
||||||
{
|
|
||||||
InfoInFunction << "Constructing facePointPatch" << endl;
|
|
||||||
}
|
|
||||||
|
|
||||||
auto cstrIter = polyPatchConstructorTablePtr_->cfind(patch.type());
|
auto cstrIter = polyPatchConstructorTablePtr_->cfind(patch.type());
|
||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown facePointPatch type "
|
(
|
||||||
<< patch.type() << nl << nl
|
"facePointPatch",
|
||||||
<< "Valid facePointPatch types :" << endl
|
patch.type(),
|
||||||
<< polyPatchConstructorTablePtr_->sortedToc()
|
*polyPatchConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<facePointPatch>(cstrIter()(patch, bm));
|
return autoPtr<facePointPatch>(cstrIter()(patch, bm));
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2011-2016 OpenFOAM Foundation
|
| Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
@ -40,21 +40,18 @@ Foam::autoPtr<Foam::polyPatch> Foam::polyPatch::New
|
|||||||
const polyBoundaryMesh& bm
|
const polyBoundaryMesh& bm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (debug)
|
DebugInFunction << "Constructing polyPatch" << endl;
|
||||||
{
|
|
||||||
InfoInFunction << "Constructing polyPatch" << endl;
|
|
||||||
}
|
|
||||||
|
|
||||||
auto cstrIter = wordConstructorTablePtr_->cfind(patchType);
|
auto cstrIter = wordConstructorTablePtr_->cfind(patchType);
|
||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown polyPatch type "
|
(
|
||||||
<< patchType << " for patch " << name << nl << nl
|
"polyPatch",
|
||||||
<< "Valid polyPatch types :" << endl
|
patchType,
|
||||||
<< wordConstructorTablePtr_->sortedToc()
|
*wordConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<polyPatch>
|
return autoPtr<polyPatch>
|
||||||
@ -80,10 +77,7 @@ Foam::autoPtr<Foam::polyPatch> Foam::polyPatch::New
|
|||||||
const polyBoundaryMesh& bm
|
const polyBoundaryMesh& bm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (debug)
|
DebugInFunction << "Constructing polyPatch" << endl;
|
||||||
{
|
|
||||||
InfoInFunction << "Constructing polyPatch" << endl;
|
|
||||||
}
|
|
||||||
|
|
||||||
word patchType(dict.get<word>("type"));
|
word patchType(dict.get<word>("type"));
|
||||||
dict.readIfPresent("geometricType", patchType);
|
dict.readIfPresent("geometricType", patchType);
|
||||||
@ -101,10 +95,7 @@ Foam::autoPtr<Foam::polyPatch> Foam::polyPatch::New
|
|||||||
const polyBoundaryMesh& bm
|
const polyBoundaryMesh& bm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (debug)
|
DebugInFunction << "Constructing polyPatch" << endl;
|
||||||
{
|
|
||||||
InfoInFunction << "Constructing polyPatch" << endl;
|
|
||||||
}
|
|
||||||
|
|
||||||
auto cstrIter = dictionaryConstructorTablePtr_->cfind(patchType);
|
auto cstrIter = dictionaryConstructorTablePtr_->cfind(patchType);
|
||||||
|
|
||||||
@ -117,12 +108,13 @@ Foam::autoPtr<Foam::polyPatch> Foam::polyPatch::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalIOErrorInFunction(dict)
|
FatalIOErrorInLookup
|
||||||
<< "Unknown polyPatch type "
|
(
|
||||||
<< patchType << " for patch " << name << nl << nl
|
dict,
|
||||||
<< "Valid polyPatch types :" << endl
|
"polyPatch",
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
patchType,
|
||||||
<< exit(FatalIOError);
|
*dictionaryConstructorTablePtr_
|
||||||
|
) << exit(FatalIOError);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2011-2016 OpenFOAM Foundation
|
| Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
@ -38,10 +38,7 @@ Foam::autoPtr<Foam::cellZone> Foam::cellZone::New
|
|||||||
const cellZoneMesh& zm
|
const cellZoneMesh& zm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (debug)
|
DebugInFunction << "Constructing cellZone " << name << endl;
|
||||||
{
|
|
||||||
InfoInFunction << "Constructing cellZone " << name << endl;
|
|
||||||
}
|
|
||||||
|
|
||||||
const word zoneType(dict.get<word>("type"));
|
const word zoneType(dict.get<word>("type"));
|
||||||
|
|
||||||
@ -49,12 +46,13 @@ Foam::autoPtr<Foam::cellZone> Foam::cellZone::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalIOErrorInFunction(dict)
|
FatalIOErrorInLookup
|
||||||
<< "Unknown cellZone type "
|
(
|
||||||
<< zoneType << nl << nl
|
dict,
|
||||||
<< "Valid cellZone types :" << nl
|
"cellZone",
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
zoneType,
|
||||||
<< exit(FatalIOError);
|
*dictionaryConstructorTablePtr_
|
||||||
|
) << exit(FatalIOError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<cellZone>(cstrIter()(name, dict, index, zm));
|
return autoPtr<cellZone>(cstrIter()(name, dict, index, zm));
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2011-2016 OpenFOAM Foundation
|
| Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
@ -38,10 +38,7 @@ Foam::autoPtr<Foam::faceZone> Foam::faceZone::New
|
|||||||
const faceZoneMesh& zm
|
const faceZoneMesh& zm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (debug)
|
DebugInFunction << "Constructing faceZone " << name << endl;
|
||||||
{
|
|
||||||
InfoInFunction << "Constructing faceZone " << name << endl;
|
|
||||||
}
|
|
||||||
|
|
||||||
const word zoneType(dict.get<word>("type"));
|
const word zoneType(dict.get<word>("type"));
|
||||||
|
|
||||||
@ -49,12 +46,13 @@ Foam::autoPtr<Foam::faceZone> Foam::faceZone::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalIOErrorInFunction(dict)
|
FatalIOErrorInLookup
|
||||||
<< "Unknown faceZone type "
|
(
|
||||||
<< zoneType << nl << nl
|
dict,
|
||||||
<< "Valid faceZone types :" << nl
|
"faceZone",
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
zoneType,
|
||||||
<< exit(FatalIOError);
|
*dictionaryConstructorTablePtr_
|
||||||
|
) << exit(FatalIOError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<faceZone>(cstrIter()(name, dict, index, zm));
|
return autoPtr<faceZone>(cstrIter()(name, dict, index, zm));
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2011-2016 OpenFOAM Foundation
|
| Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
@ -38,10 +38,7 @@ Foam::autoPtr<Foam::pointZone> Foam::pointZone::New
|
|||||||
const pointZoneMesh& zm
|
const pointZoneMesh& zm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (debug)
|
DebugInFunction << "Constructing pointZone " << name << endl;
|
||||||
{
|
|
||||||
InfoInFunction << "Constructing pointZone " << name << endl;
|
|
||||||
}
|
|
||||||
|
|
||||||
const word zoneType(dict.get<word>("type"));
|
const word zoneType(dict.get<word>("type"));
|
||||||
|
|
||||||
@ -49,12 +46,13 @@ Foam::autoPtr<Foam::pointZone> Foam::pointZone::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalIOErrorInFunction(dict)
|
FatalIOErrorInLookup
|
||||||
<< "Unknown pointZone type "
|
(
|
||||||
<< zoneType << nl << nl
|
dict,
|
||||||
<< "Valid pointZone types :" << nl
|
"pointZone",
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
zoneType,
|
||||||
<< exit(FatalIOError);
|
*dictionaryConstructorTablePtr_
|
||||||
|
) << exit(FatalIOError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<pointZone>(cstrIter()(name, dict, index, zm));
|
return autoPtr<pointZone>(cstrIter()(name, dict, index, zm));
|
||||||
|
|||||||
@ -54,7 +54,7 @@ Foam::autoPtr<Foam::Function1<Type>> Foam::Function1<Type>::New
|
|||||||
{
|
{
|
||||||
FatalIOErrorInFunction(dict)
|
FatalIOErrorInFunction(dict)
|
||||||
<< "Unknown Function1 type "
|
<< "Unknown Function1 type "
|
||||||
<< Function1Type << " for Function1 "
|
<< Function1Type << " for "
|
||||||
<< entryName << nl << nl
|
<< entryName << nl << nl
|
||||||
<< "Valid Function1 types :" << nl
|
<< "Valid Function1 types :" << nl
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc() << nl
|
<< dictionaryConstructorTablePtr_->sortedToc() << nl
|
||||||
@ -110,7 +110,7 @@ Foam::autoPtr<Foam::Function1<Type>> Foam::Function1<Type>::New
|
|||||||
{
|
{
|
||||||
FatalIOErrorInFunction(dict)
|
FatalIOErrorInFunction(dict)
|
||||||
<< "Unknown Function1 type "
|
<< "Unknown Function1 type "
|
||||||
<< Function1Type << " for Function1 "
|
<< Function1Type << " for "
|
||||||
<< entryName << nl << nl
|
<< entryName << nl << nl
|
||||||
<< "Valid Function1 types :" << nl
|
<< "Valid Function1 types :" << nl
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc() << nl
|
<< dictionaryConstructorTablePtr_->sortedToc() << nl
|
||||||
|
|||||||
@ -135,8 +135,6 @@ Foam::LESModel<BasicTurbulenceModel>::New
|
|||||||
const word& propertiesName
|
const word& propertiesName
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
// get model name, but do not register the dictionary
|
|
||||||
// otherwise it is registered in the database twice
|
|
||||||
const word modelType
|
const word modelType
|
||||||
(
|
(
|
||||||
IOdictionary
|
IOdictionary
|
||||||
@ -148,7 +146,7 @@ Foam::LESModel<BasicTurbulenceModel>::New
|
|||||||
U.db(),
|
U.db(),
|
||||||
IOobject::MUST_READ_IF_MODIFIED,
|
IOobject::MUST_READ_IF_MODIFIED,
|
||||||
IOobject::NO_WRITE,
|
IOobject::NO_WRITE,
|
||||||
false
|
false // Do not register
|
||||||
)
|
)
|
||||||
).subDict("LES").get<word>("LESModel")
|
).subDict("LES").get<word>("LESModel")
|
||||||
);
|
);
|
||||||
@ -159,12 +157,12 @@ Foam::LESModel<BasicTurbulenceModel>::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown LESModel type "
|
(
|
||||||
<< modelType << nl << nl
|
"LESModel",
|
||||||
<< "Valid LESModel types:" << endl
|
modelType,
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
*dictionaryConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<LESModel>
|
return autoPtr<LESModel>
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2011-2015 OpenFOAM Foundation
|
| Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||||
@ -80,12 +80,12 @@ Foam::autoPtr<Foam::LESdelta> Foam::LESdelta::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown LESdelta type "
|
(
|
||||||
<< deltaType << nl << nl
|
"LESdelta",
|
||||||
<< "Valid LESdelta types :" << endl
|
deltaType,
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
*dictionaryConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<LESdelta>(cstrIter()(name, turbulence, dict));
|
return autoPtr<LESdelta>(cstrIter()(name, turbulence, dict));
|
||||||
@ -119,13 +119,13 @@ Foam::autoPtr<Foam::LESdelta> Foam::LESdelta::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown LESdelta type "
|
(
|
||||||
<< deltaType << nl << nl
|
"LESdelta",
|
||||||
<< "Valid LESdelta types :" << endl
|
deltaType,
|
||||||
<< additionalConstructors.sortedToc()
|
additionalConstructors
|
||||||
<< " and "
|
)
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
<< " and " << dictionaryConstructorTablePtr_->sortedToc()
|
||||||
<< exit(FatalError);
|
<< exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2011-2015 OpenFOAM Foundation
|
| Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||||
@ -52,12 +52,12 @@ Foam::autoPtr<Foam::LESfilter> Foam::LESfilter::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown LESfilter type "
|
(
|
||||||
<< filterType << nl << nl
|
"LESfilter",
|
||||||
<< "Valid LESfilter types :" << endl
|
filterType,
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
*dictionaryConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<LESfilter>(cstrIter()(mesh, dict));
|
return autoPtr<LESfilter>(cstrIter()(mesh, dict));
|
||||||
|
|||||||
@ -125,8 +125,6 @@ Foam::RASModel<BasicTurbulenceModel>::New
|
|||||||
const word& propertiesName
|
const word& propertiesName
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
// get model name, but do not register the dictionary
|
|
||||||
// otherwise it is registered in the database twice
|
|
||||||
const word modelType
|
const word modelType
|
||||||
(
|
(
|
||||||
IOdictionary
|
IOdictionary
|
||||||
@ -138,7 +136,7 @@ Foam::RASModel<BasicTurbulenceModel>::New
|
|||||||
U.db(),
|
U.db(),
|
||||||
IOobject::MUST_READ_IF_MODIFIED,
|
IOobject::MUST_READ_IF_MODIFIED,
|
||||||
IOobject::NO_WRITE,
|
IOobject::NO_WRITE,
|
||||||
false
|
false // Do not register
|
||||||
)
|
)
|
||||||
).subDict("RAS").get<word>("RASModel")
|
).subDict("RAS").get<word>("RASModel")
|
||||||
);
|
);
|
||||||
@ -149,12 +147,12 @@ Foam::RASModel<BasicTurbulenceModel>::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown RASModel type "
|
(
|
||||||
<< modelType << nl << nl
|
"RASModel",
|
||||||
<< "Valid RASModel types:" << endl
|
modelType,
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
*dictionaryConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<RASModel>
|
return autoPtr<RASModel>
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2013-2017 OpenFOAM Foundation
|
| Copyright (C) 2013-2017 OpenFOAM Foundation
|
||||||
@ -87,8 +87,6 @@ Foam::TurbulenceModel<Alpha, Rho, BasicTurbulenceModel, TransportModel>::New
|
|||||||
const word& propertiesName
|
const word& propertiesName
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
// get model name, but do not register the dictionary
|
|
||||||
// otherwise it is registered in the database twice
|
|
||||||
const word modelType
|
const word modelType
|
||||||
(
|
(
|
||||||
IOdictionary
|
IOdictionary
|
||||||
@ -100,7 +98,7 @@ Foam::TurbulenceModel<Alpha, Rho, BasicTurbulenceModel, TransportModel>::New
|
|||||||
U.db(),
|
U.db(),
|
||||||
IOobject::MUST_READ_IF_MODIFIED,
|
IOobject::MUST_READ_IF_MODIFIED,
|
||||||
IOobject::NO_WRITE,
|
IOobject::NO_WRITE,
|
||||||
false
|
false // Do not register
|
||||||
)
|
)
|
||||||
).get<word>("simulationType")
|
).get<word>("simulationType")
|
||||||
);
|
);
|
||||||
@ -111,12 +109,12 @@ Foam::TurbulenceModel<Alpha, Rho, BasicTurbulenceModel, TransportModel>::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown simulationType "
|
(
|
||||||
<< modelType << nl << nl
|
"simulationType",
|
||||||
<< "Valid simulation types:" << nl
|
modelType,
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
*dictionaryConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<TurbulenceModel>
|
return autoPtr<TurbulenceModel>
|
||||||
|
|||||||
@ -101,14 +101,12 @@ Foam::laminarModel<BasicTurbulenceModel>::New
|
|||||||
U.db(),
|
U.db(),
|
||||||
IOobject::MUST_READ_IF_MODIFIED,
|
IOobject::MUST_READ_IF_MODIFIED,
|
||||||
IOobject::NO_WRITE,
|
IOobject::NO_WRITE,
|
||||||
false
|
false // Do not register
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
if (modelDict.found("laminar"))
|
if (modelDict.found("laminar"))
|
||||||
{
|
{
|
||||||
// get model name, but do not register the dictionary
|
|
||||||
// otherwise it is registered in the database twice
|
|
||||||
const word modelType
|
const word modelType
|
||||||
(
|
(
|
||||||
modelDict.subDict("laminar").get<word>("laminarModel")
|
modelDict.subDict("laminar").get<word>("laminarModel")
|
||||||
@ -120,12 +118,12 @@ Foam::laminarModel<BasicTurbulenceModel>::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown laminarModel type "
|
(
|
||||||
<< modelType << nl << nl
|
"laminarModel",
|
||||||
<< "Valid laminarModel types :" << endl
|
modelType,
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
*dictionaryConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<laminarModel>
|
return autoPtr<laminarModel>
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2011-2015 OpenFOAM Foundation
|
| Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||||
@ -48,12 +48,13 @@ Foam::autoPtr<Foam::reactionRateFlameArea> Foam::reactionRateFlameArea::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalIOErrorInFunction(dict)
|
FatalIOErrorInLookup
|
||||||
<< "Unknown reactionRateFlameArea type "
|
(
|
||||||
<< modelType << nl << nl
|
dict,
|
||||||
<< "Valid reaction rate flame area types :" << endl
|
"reactionRateFlameArea",
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
modelType,
|
||||||
<< exit(FatalIOError);
|
*dictionaryConstructorTablePtr_
|
||||||
|
) << exit(FatalIOError);
|
||||||
}
|
}
|
||||||
|
|
||||||
const word className = modelType.substr(0, modelType.find('<'));
|
const word className = modelType.substr(0, modelType.find('<'));
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2011-2017 OpenFOAM Foundation
|
| Copyright (C) 2011-2017 OpenFOAM Foundation
|
||||||
@ -46,7 +46,7 @@ Foam::autoPtr<Foam::dynamicFvMesh> Foam::dynamicFvMesh::New(const IOobject& io)
|
|||||||
io.db(),
|
io.db(),
|
||||||
IOobject::MUST_READ_IF_MODIFIED,
|
IOobject::MUST_READ_IF_MODIFIED,
|
||||||
IOobject::NO_WRITE,
|
IOobject::NO_WRITE,
|
||||||
false
|
false // Do not register
|
||||||
);
|
);
|
||||||
|
|
||||||
if (dictHeader.typeHeaderOk<IOdictionary>(true))
|
if (dictHeader.typeHeaderOk<IOdictionary>(true))
|
||||||
@ -75,12 +75,13 @@ Foam::autoPtr<Foam::dynamicFvMesh> Foam::dynamicFvMesh::New(const IOobject& io)
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalIOErrorInFunction(dict)
|
FatalIOErrorInLookup
|
||||||
<< "Unknown dynamicFvMesh type "
|
(
|
||||||
<< modelType << nl << nl
|
dict,
|
||||||
<< "Valid dynamicFvMesh types are :" << endl
|
"dynamicFvMesh",
|
||||||
<< IOobjectConstructorTablePtr_->sortedToc()
|
modelType,
|
||||||
<< exit(FatalIOError);
|
*IOobjectConstructorTablePtr_
|
||||||
|
) << exit(FatalIOError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<dynamicFvMesh>(cstrIter()(io));
|
return autoPtr<dynamicFvMesh>(cstrIter()(io));
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2011-2016 OpenFOAM Foundation
|
| Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
@ -51,12 +51,12 @@ Foam::autoPtr<Foam::cellLooper> Foam::cellLooper::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown cellLooper type "
|
(
|
||||||
<< type << nl << nl
|
"cellLooper",
|
||||||
<< "Valid cellLooper types :" << endl
|
type,
|
||||||
<< wordConstructorTablePtr_->sortedToc()
|
*wordConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<cellLooper>(cstrIter()(mesh));
|
return autoPtr<cellLooper>(cstrIter()(mesh));
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2016 OpenCFD Ltd.
|
\\ / A nd | Copyright (C) 2016-2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2012-2016 OpenFOAM Foundation
|
| Copyright (C) 2012-2016 OpenFOAM Foundation
|
||||||
@ -113,12 +113,12 @@ Foam::displacementMotionSolver::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown solver type "
|
(
|
||||||
<< solverTypeName << nl << nl
|
"solver",
|
||||||
<< "Valid solver types :" << endl
|
solverTypeName,
|
||||||
<< displacementConstructorTablePtr_->sortedToc()
|
*displacementConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<displacementMotionSolver>
|
return autoPtr<displacementMotionSolver>
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2011-2016 OpenFOAM Foundation
|
| Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
@ -43,12 +43,12 @@ Foam::autoPtr<Foam::solidBodyMotionFunction> Foam::solidBodyMotionFunction::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown solidBodyMotionFunction type "
|
(
|
||||||
<< motionType << nl << nl
|
"solidBodyMotionFunction",
|
||||||
<< "Valid solidBodyMotionFunction types :" << endl
|
motionType,
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
*dictionaryConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<solidBodyMotionFunction>(cstrIter()(SBMFCoeffs, runTime));
|
return autoPtr<solidBodyMotionFunction>(cstrIter()(SBMFCoeffs, runTime));
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2011-2017 OpenFOAM Foundation
|
| Copyright (C) 2011-2017 OpenFOAM Foundation
|
||||||
@ -134,12 +134,12 @@ Foam::autoPtr<Foam::motionSolver> Foam::motionSolver::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown solver type "
|
(
|
||||||
<< solverName << nl << nl
|
"solver",
|
||||||
<< "Valid solver types :" << nl
|
solverName,
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
*dictionaryConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<motionSolver>(cstrIter()(mesh, solverDict));
|
return autoPtr<motionSolver>(cstrIter()(mesh, solverDict));
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2011-2016 OpenFOAM Foundation
|
| Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
@ -38,23 +38,21 @@ Foam::autoPtr<Foam::polyMeshModifier> Foam::polyMeshModifier::New
|
|||||||
const polyTopoChanger& mme
|
const polyTopoChanger& mme
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (debug)
|
DebugInFunction << "Constructing polyMeshModifier" << endl;
|
||||||
{
|
|
||||||
InfoInFunction << "Constructing polyMeshModifier" << endl;
|
|
||||||
}
|
|
||||||
|
|
||||||
const word modifierType(dict.get<word>("type"));
|
const word modelType(dict.get<word>("type"));
|
||||||
|
|
||||||
auto cstrIter = dictionaryConstructorTablePtr_->cfind(modifierType);
|
auto cstrIter = dictionaryConstructorTablePtr_->cfind(modelType);
|
||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalIOErrorInFunction(dict)
|
FatalIOErrorInLookup
|
||||||
<< "Unknown polyMeshModifier type "
|
(
|
||||||
<< modifierType << nl << nl
|
dict,
|
||||||
<< "Valid polyMeshModifier types :" << endl
|
"polyMeshModifier",
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
modelType,
|
||||||
<< exit(FatalIOError);
|
*dictionaryConstructorTablePtr_
|
||||||
|
) << exit(FatalIOError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<polyMeshModifier>(cstrIter()(name, dict, index, mme));
|
return autoPtr<polyMeshModifier>(cstrIter()(name, dict, index, mme));
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2011-2015 OpenFOAM Foundation
|
| Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||||
@ -35,8 +35,6 @@ Foam::autoPtr<Foam::engineMesh> Foam::engineMesh::New
|
|||||||
const Foam::IOobject& io
|
const Foam::IOobject& io
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
// get model name, but do not register the dictionary
|
|
||||||
// otherwise it is registered in the database twice
|
|
||||||
const word modelType
|
const word modelType
|
||||||
(
|
(
|
||||||
IOdictionary
|
IOdictionary
|
||||||
@ -48,9 +46,9 @@ Foam::autoPtr<Foam::engineMesh> Foam::engineMesh::New
|
|||||||
io.db(),
|
io.db(),
|
||||||
IOobject::MUST_READ_IF_MODIFIED,
|
IOobject::MUST_READ_IF_MODIFIED,
|
||||||
IOobject::NO_WRITE,
|
IOobject::NO_WRITE,
|
||||||
false
|
false // Do not register
|
||||||
)
|
)
|
||||||
).lookup("engineMesh")
|
).get<word>("engineMesh")
|
||||||
);
|
);
|
||||||
|
|
||||||
Info<< "Selecting engineMesh " << modelType << endl;
|
Info<< "Selecting engineMesh " << modelType << endl;
|
||||||
@ -59,12 +57,12 @@ Foam::autoPtr<Foam::engineMesh> Foam::engineMesh::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown engineMesh type "
|
(
|
||||||
<< modelType << nl << nl
|
"engineMesh",
|
||||||
<< "Valid engineMesh types :" << endl
|
modelType,
|
||||||
<< IOobjectConstructorTablePtr_->sortedToc()
|
*IOobjectConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<engineMesh>(cstrIter()(io));
|
return autoPtr<engineMesh>(cstrIter()(io));
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2011-2017 OpenFOAM Foundation
|
| Copyright (C) 2011-2017 OpenFOAM Foundation
|
||||||
@ -55,12 +55,12 @@ Foam::autoPtr<Foam::engineTime> Foam::engineTime::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown engine type "
|
(
|
||||||
<< engineType << nl << nl
|
"engine",
|
||||||
<< "Valid engine types are :" << nl
|
engineType,
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
*dictionaryConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<engineTime>
|
return autoPtr<engineTime>
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2011-2016 OpenFOAM Foundation
|
| Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
@ -42,12 +42,12 @@ Foam::autoPtr<Foam::writer<Type>> Foam::writer<Type>::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown write type "
|
(
|
||||||
<< writeType << nl << nl
|
"writer",
|
||||||
<< "Valid write types :" << endl
|
writeType,
|
||||||
<< wordConstructorTablePtr_->sortedToc()
|
*wordConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<writer<Type>>(cstrIter()());
|
return autoPtr<writer<Type>>(cstrIter()());
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2016-2017 Wikki Ltd
|
| Copyright (C) 2016-2017 Wikki Ltd
|
||||||
@ -38,8 +38,7 @@ Foam::autoPtr<Foam::faPatch> Foam::faPatch::New
|
|||||||
const faBoundaryMesh& bm
|
const faBoundaryMesh& bm
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
DebugInFunction
|
DebugInFunction << "Constructing faPatch" << endl;
|
||||||
<< "constructing faPatch" << endl;
|
|
||||||
|
|
||||||
const word patchType(dict.get<word>("type"));
|
const word patchType(dict.get<word>("type"));
|
||||||
|
|
||||||
@ -47,11 +46,13 @@ Foam::autoPtr<Foam::faPatch> Foam::faPatch::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalIOErrorInFunction(dict)
|
FatalIOErrorInLookup
|
||||||
<< "Unknown faPatch type " << patchType << nl << nl
|
(
|
||||||
<< "Valid faPatch types are :" << nl
|
dict,
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
"faPatch",
|
||||||
<< exit(FatalIOError);
|
patchType,
|
||||||
|
*dictionaryConstructorTablePtr_
|
||||||
|
) << exit(FatalIOError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<faPatch>(cstrIter()(name, dict, index, bm));
|
return autoPtr<faPatch>(cstrIter()(name, dict, index, bm));
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2016-2017 Wikki Ltd
|
| Copyright (C) 2016-2017 Wikki Ltd
|
||||||
@ -36,19 +36,18 @@ Foam::tmp<Foam::faPatchField<Type>> Foam::faPatchField<Type>::New
|
|||||||
const DimensionedField<Type, areaMesh>& iF
|
const DimensionedField<Type, areaMesh>& iF
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
DebugInFunction
|
DebugInFunction << "Constructing faPatchField<Type>" << endl;
|
||||||
<< "constructing faPatchField<Type>"
|
|
||||||
<< endl;
|
|
||||||
|
|
||||||
auto cstrIter = patchConstructorTablePtr_->cfind(patchFieldType);
|
auto cstrIter = patchConstructorTablePtr_->cfind(patchFieldType);
|
||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown patchTypefield type " << patchFieldType << nl << nl
|
(
|
||||||
<< "Valid patchField types are :" << nl
|
"patchField",
|
||||||
<< patchConstructorTablePtr_->sortedToc()
|
patchFieldType,
|
||||||
<< exit(FatalError);
|
*patchConstructorTablePtr_
|
||||||
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
auto patchTypeCstrIter = patchConstructorTablePtr_->cfind(p.type());
|
auto patchTypeCstrIter = patchConstructorTablePtr_->cfind(p.type());
|
||||||
@ -68,8 +67,8 @@ Foam::tmp<Foam::faPatchField<Type>> Foam::faPatchField<Type>::New
|
|||||||
return cstrIter()(p, iF);
|
return cstrIter()(p, iF);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
tmp<faPatchField<Type>> tfap = cstrIter()(p, iF);
|
tmp<faPatchField<Type>> tfap = cstrIter()(p, iF);
|
||||||
|
|
||||||
// Check if constraint type override and store patchType if so
|
// Check if constraint type override and store patchType if so
|
||||||
@ -79,7 +78,6 @@ Foam::tmp<Foam::faPatchField<Type>> Foam::faPatchField<Type>::New
|
|||||||
}
|
}
|
||||||
return tfap;
|
return tfap;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
template<class Type>
|
template<class Type>
|
||||||
@ -102,9 +100,7 @@ Foam::tmp<Foam::faPatchField<Type>> Foam::faPatchField<Type>::New
|
|||||||
const dictionary& dict
|
const dictionary& dict
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
DebugInFunction
|
DebugInFunction << "Constructing faPatchField<Type>" << endl;
|
||||||
<< "constructing faPatchField<Type>"
|
|
||||||
<< endl;
|
|
||||||
|
|
||||||
const word patchFieldType(dict.get<word>("type"));
|
const word patchFieldType(dict.get<word>("type"));
|
||||||
|
|
||||||
@ -152,19 +148,18 @@ Foam::tmp<Foam::faPatchField<Type>> Foam::faPatchField<Type>::New
|
|||||||
const faPatchFieldMapper& pfMapper
|
const faPatchFieldMapper& pfMapper
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
DebugInFunction
|
DebugInFunction << "Constructing faPatchField<Type>" << endl;
|
||||||
<< "constructing faPatchField<Type>"
|
|
||||||
<< endl;
|
|
||||||
|
|
||||||
auto cstrIter = patchMapperConstructorTablePtr_->cfind(ptf.type());
|
auto cstrIter = patchMapperConstructorTablePtr_->cfind(ptf.type());
|
||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "unknown patchTypefield type " << ptf.type() << nl << nl
|
(
|
||||||
<< "Valid patchField types are :" << nl
|
"patchField",
|
||||||
<< patchMapperConstructorTablePtr_->sortedToc()
|
ptf.type(),
|
||||||
<< exit(FatalError);
|
*patchMapperConstructorTablePtr_
|
||||||
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
auto patchTypeCstrIter = patchMapperConstructorTablePtr_->cfind(p.type());
|
auto patchTypeCstrIter = patchMapperConstructorTablePtr_->cfind(p.type());
|
||||||
@ -173,11 +168,9 @@ Foam::tmp<Foam::faPatchField<Type>> Foam::faPatchField<Type>::New
|
|||||||
{
|
{
|
||||||
return patchTypeCstrIter()(ptf, p, iF, pfMapper);
|
return patchTypeCstrIter()(ptf, p, iF, pfMapper);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return cstrIter()(ptf, p, iF, pfMapper);
|
return cstrIter()(ptf, p, iF, pfMapper);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2016-2017 Wikki Ltd
|
| Copyright (C) 2016-2017 Wikki Ltd
|
||||||
@ -35,19 +35,18 @@ Foam::tmp<Foam::faePatchField<Type>> Foam::faePatchField<Type>::New
|
|||||||
const DimensionedField<Type, edgeMesh>& iF
|
const DimensionedField<Type, edgeMesh>& iF
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
DebugInFunction
|
DebugInFunction << "Constructing faePatchField" << endl;
|
||||||
<< "constructing faePatchField<Type>"
|
|
||||||
<< endl;
|
|
||||||
|
|
||||||
auto cstrIter = patchConstructorTablePtr_->cfind(patchFieldType);
|
auto cstrIter = patchConstructorTablePtr_->cfind(patchFieldType);
|
||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown patchTypefield type " << patchFieldType << nl << nl
|
(
|
||||||
<< "Valid patchField types are :" << nl
|
"patchField",
|
||||||
<< patchConstructorTablePtr_->sortedToc()
|
patchFieldType,
|
||||||
<< exit(FatalError);
|
*patchConstructorTablePtr_
|
||||||
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
auto patchTypeCstrIter = patchConstructorTablePtr_->cfind(p.type());
|
auto patchTypeCstrIter = patchConstructorTablePtr_->cfind(p.type());
|
||||||
@ -71,9 +70,7 @@ Foam::tmp<Foam::faePatchField<Type>> Foam::faePatchField<Type>::New
|
|||||||
const dictionary& dict
|
const dictionary& dict
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
DebugInFunction
|
DebugInFunction << "Constructing faePatchField" << endl;
|
||||||
<< "constructing faePatchField<Type>"
|
|
||||||
<< endl;
|
|
||||||
|
|
||||||
const word patchFieldType(dict.get<word>("type"));
|
const word patchFieldType(dict.get<word>("type"));
|
||||||
|
|
||||||
@ -121,19 +118,18 @@ Foam::tmp<Foam::faePatchField<Type>> Foam::faePatchField<Type>::New
|
|||||||
const faPatchFieldMapper& pfMapper
|
const faPatchFieldMapper& pfMapper
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
DebugInFunction
|
DebugInFunction << "Constructing faePatchField<Type>" << endl;
|
||||||
<< "constructing faePatchField<Type>"
|
|
||||||
<< endl;
|
|
||||||
|
|
||||||
auto cstrIter = patchMapperConstructorTablePtr_->cfind(ptf.type());
|
auto cstrIter = patchMapperConstructorTablePtr_->cfind(ptf.type());
|
||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "unknown patchTypefield type " << ptf.type() << endl << endl
|
(
|
||||||
<< "Valid patchField types are :" << endl
|
"patchField",
|
||||||
<< patchMapperConstructorTablePtr_->sortedToc()
|
ptf.type(),
|
||||||
<< exit(FatalError);
|
*patchMapperConstructorTablePtr_
|
||||||
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
auto patchTypeCstrIter = patchMapperConstructorTablePtr_->cfind(p.type());
|
auto patchTypeCstrIter = patchMapperConstructorTablePtr_->cfind(p.type());
|
||||||
@ -142,11 +138,9 @@ Foam::tmp<Foam::faePatchField<Type>> Foam::faePatchField<Type>::New
|
|||||||
{
|
{
|
||||||
return patchTypeCstrIter()(ptf, p, iF, pfMapper);
|
return patchTypeCstrIter()(ptf, p, iF, pfMapper);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return cstrIter()(ptf, p, iF, pfMapper);
|
return cstrIter()(ptf, p, iF, pfMapper);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2016-2017 Wikki Ltd
|
| Copyright (C) 2016-2017 Wikki Ltd
|
||||||
@ -61,11 +61,13 @@ Foam::fa::convectionScheme<Type>::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalIOErrorInFunction(schemeData)
|
FatalIOErrorInLookup
|
||||||
<< "Unknown convection scheme " << schemeName << nl << nl
|
(
|
||||||
<< "Valid convection schemes are :" << nl
|
schemeData,
|
||||||
<< IstreamConstructorTablePtr_->sortedToc()
|
"convection",
|
||||||
<< exit(FatalIOError);
|
schemeName,
|
||||||
|
*IstreamConstructorTablePtr_
|
||||||
|
) << exit(FatalIOError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return cstrIter()(mesh, faceFlux, schemeData);
|
return cstrIter()(mesh, faceFlux, schemeData);
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2017 Volkswagen AG
|
| Copyright (C) 2017 Volkswagen AG
|
||||||
@ -72,11 +72,13 @@ tmp<faD2dt2Scheme<Type>> faD2dt2Scheme<Type>::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalIOErrorInFunction(schemeData)
|
FatalIOErrorInLookup
|
||||||
<< "Unknown d2dt2 scheme " << schemeName << nl << nl
|
(
|
||||||
<< "Valid d2dt2 schemes are :" << endl
|
schemeData,
|
||||||
<< IstreamConstructorTablePtr_->sortedToc()
|
"d2dt2",
|
||||||
<< exit(FatalIOError);
|
schemeName,
|
||||||
|
*IstreamConstructorTablePtr_
|
||||||
|
) << exit(FatalIOError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return cstrIter()(mesh, schemeData);
|
return cstrIter()(mesh, schemeData);
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2016-2017 Wikki Ltd
|
| Copyright (C) 2016-2017 Wikki Ltd
|
||||||
@ -69,11 +69,13 @@ tmp<faDdtScheme<Type>> faDdtScheme<Type>::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalIOErrorInFunction(schemeData)
|
FatalIOErrorInLookup
|
||||||
<< "Unknown ddt scheme " << schemeName << nl << nl
|
(
|
||||||
<< "Valid ddt schemes are :" << nl
|
schemeData,
|
||||||
<< IstreamConstructorTablePtr_->sortedToc()
|
"ddt",
|
||||||
<< exit(FatalIOError);
|
schemeName,
|
||||||
|
*IstreamConstructorTablePtr_
|
||||||
|
) << exit(FatalIOError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return cstrIter()(mesh, schemeData);
|
return cstrIter()(mesh, schemeData);
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2016-2017 Wikki Ltd
|
| Copyright (C) 2016-2017 Wikki Ltd
|
||||||
@ -70,12 +70,13 @@ tmp<divScheme<Type>> divScheme<Type>::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalIOErrorInFunction(schemeData)
|
FatalIOErrorInLookup
|
||||||
<< "Unknown div scheme "
|
(
|
||||||
<< schemeName << nl << nl
|
schemeData,
|
||||||
<< "Valid div schemes are :" << nl
|
"div",
|
||||||
<< IstreamConstructorTablePtr_->sortedToc()
|
schemeName,
|
||||||
<< exit(FatalIOError);
|
*IstreamConstructorTablePtr_
|
||||||
|
) << exit(FatalIOError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return cstrIter()(mesh, schemeData);
|
return cstrIter()(mesh, schemeData);
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2016-2017 Wikki Ltd
|
| Copyright (C) 2016-2017 Wikki Ltd
|
||||||
@ -69,11 +69,13 @@ tmp<gradScheme<Type>> gradScheme<Type>::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalIOErrorInFunction(schemeData)
|
FatalIOErrorInLookup
|
||||||
<< "Unknown grad scheme " << schemeName << nl << nl
|
(
|
||||||
<< "Valid grad schemes are :" << nl
|
schemeData,
|
||||||
<< IstreamConstructorTablePtr_->sortedToc()
|
"grad",
|
||||||
<< exit(FatalIOError);
|
schemeName,
|
||||||
|
*IstreamConstructorTablePtr_
|
||||||
|
) << exit(FatalIOError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return cstrIter()(mesh, schemeData);
|
return cstrIter()(mesh, schemeData);
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2016-2017 Wikki Ltd
|
| Copyright (C) 2016-2017 Wikki Ltd
|
||||||
@ -70,11 +70,13 @@ tmp<laplacianScheme<Type>> laplacianScheme<Type>::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalIOErrorInFunction(schemeData)
|
FatalIOErrorInLookup
|
||||||
<< "Unknown laplacian scheme " << schemeName << nl << nl
|
(
|
||||||
<< "Valid laplacian schemes are :" << nl
|
schemeData,
|
||||||
<< IstreamConstructorTablePtr_->sortedToc()
|
"laplacian",
|
||||||
<< exit(FatalIOError);
|
schemeName,
|
||||||
|
*IstreamConstructorTablePtr_
|
||||||
|
) << exit(FatalIOError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return cstrIter()(mesh, schemeData);
|
return cstrIter()(mesh, schemeData);
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2016-2017 Wikki Ltd
|
| Copyright (C) 2016-2017 Wikki Ltd
|
||||||
@ -60,7 +60,7 @@ tmp<lnGradScheme<Type>> lnGradScheme<Type>::New
|
|||||||
if (schemeData.eof())
|
if (schemeData.eof())
|
||||||
{
|
{
|
||||||
FatalIOErrorInFunction(schemeData)
|
FatalIOErrorInFunction(schemeData)
|
||||||
<< "Discretisation scheme not specified" << nl << nl
|
<< "Grad scheme not specified" << nl << nl
|
||||||
<< "Valid schemes are :" << endl
|
<< "Valid schemes are :" << endl
|
||||||
<< MeshConstructorTablePtr_->sortedToc()
|
<< MeshConstructorTablePtr_->sortedToc()
|
||||||
<< exit(FatalIOError);
|
<< exit(FatalIOError);
|
||||||
@ -72,12 +72,13 @@ tmp<lnGradScheme<Type>> lnGradScheme<Type>::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalIOErrorInFunction(schemeData)
|
FatalIOErrorInLookup
|
||||||
<< "Unknown discretisation scheme "
|
(
|
||||||
<< schemeName << nl << nl
|
schemeData,
|
||||||
<< "Valid schemes are :" << nl
|
"grad",
|
||||||
<< MeshConstructorTablePtr_->sortedToc()
|
schemeName,
|
||||||
<< exit(FatalIOError);
|
*MeshConstructorTablePtr_
|
||||||
|
) << exit(FatalIOError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return cstrIter()(mesh, schemeData);
|
return cstrIter()(mesh, schemeData);
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2016-2017 Wikki Ltd
|
| Copyright (C) 2016-2017 Wikki Ltd
|
||||||
@ -64,12 +64,13 @@ Foam::edgeInterpolationScheme<Type>::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalIOErrorInFunction(schemeData)
|
FatalIOErrorInLookup
|
||||||
<< "Unknown discretisation scheme "
|
(
|
||||||
<< schemeName << nl << nl
|
schemeData,
|
||||||
<< "Valid schemes are :" << nl
|
"discretisation",
|
||||||
<< MeshConstructorTablePtr_->sortedToc()
|
schemeName,
|
||||||
<< exit(FatalIOError);
|
*MeshConstructorTablePtr_
|
||||||
|
) << exit(FatalIOError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return cstrIter()(mesh, schemeData);
|
return cstrIter()(mesh, schemeData);
|
||||||
@ -108,12 +109,13 @@ Foam::edgeInterpolationScheme<Type>::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalIOErrorInFunction(schemeData)
|
FatalIOErrorInLookup
|
||||||
<< "Unknown discretisation scheme "
|
(
|
||||||
<< schemeName << nl << nl
|
schemeData,
|
||||||
<< "Valid schemes are :" << endl
|
"discretisation",
|
||||||
<< MeshFluxConstructorTablePtr_->sortedToc()
|
schemeName,
|
||||||
<< exit(FatalIOError);
|
*MeshFluxConstructorTablePtr_
|
||||||
|
) << exit(FatalIOError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return cstrIter()(mesh, faceFlux, schemeData);
|
return cstrIter()(mesh, faceFlux, schemeData);
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2011-2015 OpenFOAM Foundation
|
| Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||||
@ -34,8 +34,6 @@ Foam::autoPtr<Foam::SRF::SRFModel> Foam::SRF::SRFModel::New
|
|||||||
const volVectorField& Urel
|
const volVectorField& Urel
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
// get model name, but do not register the dictionary
|
|
||||||
// otherwise it is registered in the database twice
|
|
||||||
const word modelType
|
const word modelType
|
||||||
(
|
(
|
||||||
IOdictionary
|
IOdictionary
|
||||||
@ -47,9 +45,9 @@ Foam::autoPtr<Foam::SRF::SRFModel> Foam::SRF::SRFModel::New
|
|||||||
Urel.db(),
|
Urel.db(),
|
||||||
IOobject::MUST_READ_IF_MODIFIED,
|
IOobject::MUST_READ_IF_MODIFIED,
|
||||||
IOobject::NO_WRITE,
|
IOobject::NO_WRITE,
|
||||||
false
|
false // Do not register
|
||||||
)
|
)
|
||||||
).lookup("SRFModel")
|
).get<word>("SRFModel")
|
||||||
);
|
);
|
||||||
|
|
||||||
Info<< "Selecting SRFModel " << modelType << endl;
|
Info<< "Selecting SRFModel " << modelType << endl;
|
||||||
@ -58,12 +56,12 @@ Foam::autoPtr<Foam::SRF::SRFModel> Foam::SRF::SRFModel::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown SRFModel type "
|
(
|
||||||
<< modelType << nl << nl
|
"SRFModel",
|
||||||
<< "Valid SRFModel types :" << nl
|
modelType,
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
*dictionaryConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<SRFModel>(cstrIter()(Urel));
|
return autoPtr<SRFModel>(cstrIter()(Urel));
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2011-2017 OpenFOAM Foundation
|
| Copyright (C) 2011-2017 OpenFOAM Foundation
|
||||||
@ -88,12 +88,12 @@ Foam::autoPtr<Foam::fv::option> Foam::fv::option::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown fvOption model type "
|
(
|
||||||
<< modelType << nl << nl
|
"fvOption",
|
||||||
<< "Valid fvOption types are:" << nl
|
modelType,
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
*dictionaryConstructorTablePtr_
|
||||||
<< exit(FatalError);
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<option>(cstrIter()(name, modelType, coeffs, mesh));
|
return autoPtr<option>(cstrIter()(name, modelType, coeffs, mesh));
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd |
|
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2012-2015 OpenFOAM Foundation
|
| Copyright (C) 2012-2015 OpenFOAM Foundation
|
||||||
@ -46,11 +46,12 @@ Foam::autoPtr<Foam::porosityModel> Foam::porosityModel::New
|
|||||||
|
|
||||||
if (!cstrIter.found())
|
if (!cstrIter.found())
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInLookup
|
||||||
<< "Unknown " << typeName << " type " << modelType << nl << nl
|
(
|
||||||
<< "Valid types are:" << nl
|
typeName,
|
||||||
<< meshConstructorTablePtr_->sortedToc()
|
modelType,
|
||||||
<< exit(FatalError);
|
*meshConstructorTablePtr_
|
||||||
|
) << exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<porosityModel>
|
return autoPtr<porosityModel>
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user