checkRadiationModel.H
Go to the documentation of this file.
1 if (!mesh.foundObject<IOdictionary>("radiationProperties"))
2 {
3  IOobject radiationProperties
4  (
5  "radiationProperties",
6  runTime.constant(),
7  mesh,
8  IOobject::MUST_READ,
9  IOobject::NO_WRITE,
10  false
11  );
12 
13  if (radiationProperties.typeHeaderOk<IOdictionary>(false))
14  {
15  const word modelType
16  (
17  IOdictionary(radiationProperties).lookup("radiationModel")
18  );
19 
20  if (modelType != "none")
21  {
23  << "Radiation model " << modelType
24  << " selected but not enabled in fvModels" << nl
25  << "To enable radiation add " << nl << nl
26  << "radiation" << nl
27  << "{" << nl
28  << " type radiation;" << nl
29  << " libs (\"libradiationModels.so\");" << nl
30  << "}" << nl << nl
31  << "to " << radiationProperties.localPath()/"fvModels"
32  << exit(FatalError);
33  }
34  }
35 }
errorManipArg< error, int > exit(error &err, const int errNo=1)
Definition: errorManip.H:124
error FatalError
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Definition: error.H:323
engineTime & runTime
stressControl lookup("compactNormalStress") >> compactNormalStress
dynamicFvMesh & mesh
static const char nl
Definition: Ostream.H:260