dafoam_plot3d2tecplot.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 """
3 This script converts a Plot3D file to a Tecplot file
4 
5 Usage: python dafoam_plot3d2tecplot.py plot3d_file_input.xyz tecplot_file_output.dat
6 """
7 
8 import sys
9 from pygeo import *
10 
11 inputFileName = sys.argv[1]
12 outputFileName = sys.argv[2]
13 
14 print("Converting %s to %s...." % (inputFileName, outputFileName))
15 
16 DVGeo = DVGeometry(inputFileName)
17 DVGeo.writeTecplot(outputFileName)
18 
19 print("Converting %s to %s.... Done!" % (inputFileName, outputFileName))