FreeFOAM The Cross-Platform CFD Toolkit
writeGradP.H
Go to the documentation of this file.
1  if (runTime.outputTime())
2  {
3  OFstream gradPFile
4  (
5  runTime.path()/runTime.timeName()/"uniform"/"gradP.raw"
6  );
7 
8  if(gradPFile.good())
9  {
10  gradPFile << gradP << endl;
11  }
12  else
13  {
15  << "Cannot open file "
16  << runTime.path()/runTime.timeName()/"uniform"/"gradP.raw"
17  << exit(FatalError);
18  };
19  };
20 
21 // ************************ vim: set sw=4 sts=4 et: ************************ //