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/solvers/surfaceTracking/bubbleInterTrackFoam/include/createPath.H

29 lines
674 B
C

OFstream* pathFilePtr = NULL;
if(Pstream::master())
{
mkDir
(
args.rootPath()
/args.globalCaseName()
/"path"
/runTime.timeName()
);
pathFilePtr =
new OFstream
(
args.rootPath()
/args.globalCaseName()
/"path"
/runTime.timeName()
/"path"
);
*pathFilePtr << "Time" << tab;
*pathFilePtr << "Xb" << tab << "Yb" << tab << "Zb" << tab
<< "Ub" << tab << "ab" << endl;
}
OFstream& pathFile = *pathFilePtr;