A pre-processor for OpenFOAM