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/applications/utilities/postProcessing/dataConversion/foamToGMV/readConversionProperties.H
2013-07-18 10:15:54 +02:00

48 lines
767 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);
}