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

37 lines
802 B
C
Raw Normal View History

2012-04-15 17:43:52 +00:00
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"));