This repository has been archived on 2023-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
foam-extend4.1-coherent-io/tutorials/incompressible/simpleFoam/ERCOFTAC_ConicalDiffuser/addSwirlAndRotation/readRotation.H
2012-04-15 13:43:52 -04:00

36 lines
802 B
C
Executable file

Info << "\nReading swirlAndRotationProperties dictionary\n" << endl;
IOdictionary swirlAndRotationProperties
(
IOobject
(
"swirlAndRotationProperties",
runTime.constant(),
mesh,
IOobject::MUST_READ,
IOobject::NO_WRITE
)
);
Switch modifyBoundaries
(
swirlAndRotationProperties.lookup("modifyBoundaries")
);
Switch modifyInterior
(
swirlAndRotationProperties.lookup("modifyInterior")
);
dimensionedVector omega
(
swirlAndRotationProperties.lookup("omega")
);
dimensionedVector center
(
swirlAndRotationProperties.lookup("center")
);
wordList rotPatches(swirlAndRotationProperties.lookup("rotatingPatches"));