Go to the documentation of this file.
59 dictionary fvSourceSubDict =
allOptions.subDict(
"fvSource");
61 word gradPName = fvSourceSubDict.toc()[0];
62 scalar gradPValue = fvSourceSubDict.subDict(gradPName).getScalar(
"value");
64 fvSourceSubDict.subDict(gradPName).readEntry<scalarList>(
"direction", direction);
66 vector directionVec = {direction[0], direction[1], direction[2]};
70 fvSource[idxI] = gradPValue * directionVec;
73 fvSource.correctBoundaryConditions();
const dictionary & allOptions
forAll(pseudoP.boundaryField(), patchI)
const DAOption & daOption_
DAOption object.
DAOption daOption(mesh, pyOptions_)
volScalarField & fvSource
const dictionary & getAllOptions() const
return a reference of allOptions_ dictionary
defineTypeNameAndDebug(DAFvSource, 0)
addToRunTimeSelectionTable(DAFvSource, DAFvSourceActuatorDisk, dictionary)
DAModel daModel(mesh, daOption)
DAIndex daIndex(mesh, daOption, daModel)