db7fac3f24
git-svn-id: https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Core/OpenFOAM-1.5-dev@1731 e4e07f05-0c2f-0410-a05a-b8ba57e0c909
48 lines
771 B
C
48 lines
771 B
C
IOdictionary conversionProperties
|
|
(
|
|
IOobject
|
|
(
|
|
"conversionProperties",
|
|
runTime.constant(),
|
|
mesh,
|
|
IOobject::MUST_READ,
|
|
IOobject::NO_WRITE
|
|
)
|
|
);
|
|
|
|
|
|
scalar startTime
|
|
(
|
|
readScalar(conversionProperties.lookup("startTime"))
|
|
);
|
|
|
|
word vComp
|
|
(
|
|
conversionProperties.lookup("vector")
|
|
);
|
|
|
|
word format
|
|
(
|
|
conversionProperties.lookup("format")
|
|
);
|
|
|
|
if ( (format != "ascii") && (format != "ieeei4r8") )
|
|
{
|
|
FatalError << "format type: " << format << " unknown."
|
|
<< " Valid options are: ascii ieeei4r8"
|
|
<< abort(FatalError);
|
|
|
|
}
|
|
word cells
|
|
(
|
|
conversionProperties.lookup("cells")
|
|
);
|
|
|
|
if
|
|
(
|
|
(cells != "hex")
|
|
)
|
|
{
|
|
FatalError << "cells type: " << cells << " unknown."
|
|
<< abort(FatalError);
|
|
}
|