Go to the documentation of this file.00001 Info<< "\nReading gravitationalProperties" << endl;
00002
00003 IOdictionary gravitationalProperties
00004 (
00005 IOobject
00006 (
00007 "gravitationalProperties",
00008 runTime.constant(),
00009 mesh,
00010 IOobject::MUST_READ,
00011 IOobject::NO_WRITE
00012 )
00013 );
00014
00015 const dimensionedVector g(gravitationalProperties.lookup("g"));
00016 const Switch rotating(gravitationalProperties.lookup("rotating"));
00017 const dimensionedVector Omega =
00018 rotating ? gravitationalProperties.lookup("Omega")
00019 : dimensionedVector("Omega", -dimTime, vector(0,0,0));
00020 const dimensionedScalar magg = mag(g);
00021 const dimensionedVector gHat = g/magg;