To output the OpenFoam file, use:
Files->Export->Write calculation file
The data will be saved as a collection of files named: points, faces, boundary, neighbour
Only the conditions of the current interval will be printed in the output file (see GiD help to get more information of this point) .