45zeroATCcells::zeroATCcells
60 if (
dict.readIfPresent(
"zeroATCZones", zeroATCZoneNames))
62 zeroATCZones_.resize(zeroATCZoneNames.size(), -1);
64 forAll(zeroATCZoneNames, zI)
66 const word& zoneName = zeroATCZoneNames[zI];
68 label zoneID = mesh.cellZones().findZoneID(zoneName);
72 <<
"cannot find cellZone "
74 <<
" for smoothing ATC"
77 zeroATCZones_[zI] = zoneID;
85autoPtr<zeroATCcells> zeroATCcells::New
93 dict.getOrDefault<word>(
"maskType",
"faceCells")
96 auto* ctorPtr = dictionaryConstructorTable(modelType);
105 *dictionaryConstructorTablePtr_
106 ) << exit(FatalIOError);
109 return autoPtr<zeroATCcells> (ctorPtr(
mesh,
dict));
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Mesh data needed to do the Finite Volume discretisation.
A class for handling words, derived from Foam::string.
Base class for selecting cells on which to zero the ATC term.
static autoPtr< zeroATCcells > New(const fvMesh &mesh, const dictionary &dict)
Return a reference to the selected turbulence model.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
List< word > wordList
List of word.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define defineRunTimeSelectionTable(baseType, argNames)
Define run-time selection table.