Add API method WriteGridFile to output grid file and delete API method set_OutputGrid