Variables | |
| mode = sys.argv[1] | |
| inputFileName = sys.argv[2] | |
| outputFileName = sys.argv[3] | |
| scaleX = float(sys.argv[4]) | |
| scaleY = float(sys.argv[5]) | |
| scaleZ = float(sys.argv[6]) | |
| ffd = pyBlock("plot3d", fileName=inputFileName, FFD=True) | |
| vals = ffd.vols[ivol].coef | |
| dX = float(sys.argv[4]) | |
| dY = float(sys.argv[5]) | |
| dZ = float(sys.argv[6]) | |
| axis = str(sys.argv[4]) | |
| deg = float(sys.argv[5]) | |
| float | theta = deg * np.pi / 180.0 | 
| yRef = vals[i, j, k, 1] | |
| zRef = vals[i, j, k, 2] | |
| xRef = vals[i, j, k, 0] | |
This script transforms the coordinates in a plot3D file. We support three modes: scale, translate, or rotate Usage: python dafoam_plot3dscale.py scale plot3d_file_input.xyz plot3d_file_output.xyz 2 2 2 This will scale the x, y, and z coordinates by a factor of 2 python dafoam_plot3dscale.py translate plot3d_file_input.xyz plot3d_file_output.xyz 1 2 3 This will translate the x, y, and z coordinates by 1, 2, and 3 python dafoam_plot3dscale.py rotate plot3d_file_input.xyz plot3d_file_output.xyz x 10 This will rotate the x, y, and z coordinates with respect to the x axis by 10 degree
| mode = sys.argv[1] | 
Definition at line 21 of file dafoam_plot3dtransform.py.
Referenced by DASolvers.calcPrimalResidualStatistics(), DASolver.calcPrimalResidualStatistics(), main(), and DASimpleFoam.vec2Fields().
| inputFileName = sys.argv[2] | 
Definition at line 23 of file dafoam_plot3dtransform.py.
| outputFileName = sys.argv[3] | 
Definition at line 24 of file dafoam_plot3dtransform.py.
| scaleX = float(sys.argv[4]) | 
Definition at line 27 of file dafoam_plot3dtransform.py.
| scaleY = float(sys.argv[5]) | 
Definition at line 28 of file dafoam_plot3dtransform.py.
| scaleZ = float(sys.argv[6]) | 
Definition at line 29 of file dafoam_plot3dtransform.py.
| ffd = pyBlock("plot3d", fileName=inputFileName, FFD=True) | 
Definition at line 36 of file dafoam_plot3dtransform.py.
| vals = ffd.vols[ivol].coef | 
Definition at line 39 of file dafoam_plot3dtransform.py.
Referenced by DAJacCon.addBoundaryFaceConnections(), DAJacCon.allocateJacobianConnections(), DAJacCon.combineStateBndCon(), DAColoring.getMatNonZeros(), DAIndex.getMatNonZeros(), DAColoring.parallelD2Coloring(), DAIndex.printMatChars(), DAJacCon.setupdRdWCon(), DAJacCon.setupJacobianConnections(), DAJacCon.setupStateBoundaryConID(), and DAColoring.validateColoring().
| dX = float(sys.argv[4]) | 
Definition at line 50 of file dafoam_plot3dtransform.py.
| dY = float(sys.argv[5]) | 
Definition at line 51 of file dafoam_plot3dtransform.py.
| dZ = float(sys.argv[6]) | 
Definition at line 52 of file dafoam_plot3dtransform.py.
| axis = str(sys.argv[4]) | 
Definition at line 67 of file dafoam_plot3dtransform.py.
Referenced by main().
| deg = float(sys.argv[5]) | 
Definition at line 68 of file dafoam_plot3dtransform.py.
| float theta = deg * np.pi / 180.0 | 
Definition at line 74 of file dafoam_plot3dtransform.py.
Referenced by main().
Definition at line 82 of file dafoam_plot3dtransform.py.
Definition at line 83 of file dafoam_plot3dtransform.py.
Definition at line 87 of file dafoam_plot3dtransform.py.