37 const dictionary&
dict 41 if (
mesh.nSolutionD() == 2)
43 Info<<
"Selecting " << typeName <<
": " << viewFactorHottel::typeName
44 <<
" for 2D cases" <<
nl <<
endl;
45 return autoPtr<viewFactorModel>(
new viewFactorHottel(
mesh,
dict));
51 const word modelType(
dict.get<word>(
"viewFactorModel"));
53 Info<<
"Selecting " << typeName <<
": " << modelType <<
endl;
55 auto* ctorPtr = meshConstructorTable(modelType);
64 *meshConstructorTablePtr_
68 return autoPtr<viewFactorModel>(ctorPtr(
mesh,
dict));
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a)
Ostream & endl(Ostream &os)
Add newline and flush stream.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
static autoPtr< viewFactorModel > New(const fvMesh &mesh, const dictionary &dict)
Selector.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...