mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Creation of OpenFOAM-dev repository 15/04/2008
This commit is contained in:
@ -0,0 +1,48 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user