To open an OpenFOAM file in ParaView, one needs to create a foo.foam file in the main directory and open this file.
foo.foam
To create the file, just use touch or create the file using any text editor.
touch