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/createForces.H

27 lines
601 B
C
Raw Normal View History

OFstream* forcesFilePtr = NULL;
if(Pstream::master())
{
mkDir
(
args.rootPath()
/args.globalCaseName()
/"forces"
/runTime.timeName()
);
forcesFilePtr =
new OFstream
(
args.rootPath()
/args.globalCaseName()
/"forces"
/runTime.timeName()
/"dragAndLift"
);
*forcesFilePtr << "Time" << tab << "drag" << tab << "lift" << endl;
}
OFstream& forcesFile = *forcesFilePtr;