45 int main(
int argc,
char *argv[])
49 "Translate OpenFOAM data to Fluent format" 51 argList::noParallel();
52 timeSelector::addOptions(
false);
66 runTime.setTime(timeDirs[timeI], timeI);
70 if (
mesh.readUpdate())
79 OFstream fluentDataFile
88 <<
"(0 \"FOAM to Fluent data File\")" <<
endl <<
endl;
91 label nFaces =
mesh.nFaces();
95 nFaces +=
mesh.boundary()[patchi].size();
99 <<
"(33 (" <<
mesh.nCells() <<
" " << nFaces <<
" " 102 IOdictionary foamDataToFluentDict
106 "foamDataToFluentDict",
109 IOobjectOption::MUST_READ,
110 IOobjectOption::NO_WRITE,
111 IOobjectOption::NO_REGISTER
120 readFieldsAndWriteFluent<volScalarField>
122 foamDataToFluentDict,
128 readFieldsAndWriteFluent<volVectorField>
130 foamDataToFluentDict,
Ostream & endl(Ostream &os)
Add newline and flush stream.
#define forAll(list, i)
Loop across all elements in list.
bool mkDir(const fileName &pathName, mode_t mode=0777)
Make a directory and return an error if it could not be created.
messageStream Info
Information stream (stdout output on master, null elsewhere)
List< instant > instantList
List of instants.
Foam::argList args(argc, argv)