Files
OpenFOAM-12/applications/solvers/basic/thermoFoam/checkRadiationModel.H
Will Bainbridge a432c3f6df src/finiteVolume/cfdTools: Removed unused code
Solver modules have replaced code that was previously shared between
solvers by means of #include-ing header files. Some of these headers are
now unused and have been removed. Others are only now used in a single
solver and have been moved into that solver.
2023-02-22 16:28:53 +00:00

36 lines
1.0 KiB
C++

if (!mesh.foundObject<IOdictionary>("radiationProperties"))
{
typeIOobject<IOdictionary> radiationProperties
(
"radiationProperties",
runTime.constant(),
mesh,
IOobject::MUST_READ,
IOobject::NO_WRITE,
false
);
if (radiationProperties.headerOk())
{
const word modelType
(
IOdictionary(radiationProperties).lookup("radiationModel")
);
if (modelType != "none")
{
FatalErrorInFunction
<< "Radiation model " << modelType
<< " selected but not enabled in fvModels" << nl
<< "To enable radiation add " << nl << nl
<< "radiation" << nl
<< "{" << nl
<< " type radiation;" << nl
<< " libs (\"libradiationModels.so\");" << nl
<< "}" << nl << nl
<< "to " << radiationProperties.relativePath()/"fvModels"
<< exit(FatalError);
}
}
}