TecPlot 360 is currently available. One may use the TecPlot environment by loading the appropriate module:
...
Here is a simple example of using Tecplot in batch mode. This example creates an exported JPEG of a cylinder. Use "qsub tecplot.sh" to submit to SGE.
Code Block | ||||
---|---|---|---|---|
|
#!/bin/bash |
...
# ------------------------------------- |
...
#$ -N TecPlot- |
...
#$ -j y # combine stderr & stdout into stdout
...
test # Job Name #$ -j y # combine stderr & stdout into stdout #$ -o $JOB_NAME.o$JOB_ |
...
ID # Name of the output file (eg. myMPI.oJobID) |
...
#$ -q UI # Queue
#$ -cwd # Start job in submission directory
...
#$ -q UI # Queue #$ -cwd # Start job in submission directory # ------------------------------------- |
...
# Note the -b -mesa (b = batch, -mesa to turn of GL rendering) |
...
tec360 -b -mesa cylinder.mcr |
Here is the corresponding TecPlot macro file that is referenced in the above job script:
Code Block | ||||
---|---|---|---|---|
|
#!MC 1400 |
...
# Created by Tecplot 360 build 14.0.2.35002 |
...
$!CREATECIRCULARZONE IMAX = 10 JMAX = 25 KMAX = 10 X = 0 Y = 3 Z1 = 0 Z2 = 1 RADIUS = 1 XVAR = 1 YVAR = 2 ZVAR = 3 |
...
$!FIELDLAYERS USETRANSLUCENCY = NO |
...
$!FIELDLAYERS SHOWSHADE = NO |
...
$!FIELDLAYERS SHOWEDGE = NO |
...
$!ALTERDATA EQUATION = '{q} = sin(x*y+z*x)' |
...
$!FIELDMAP [1] |
...
SURFACES{SURFACESTOPLOT = EXPOSEDCELLFACES} |
...
$!FIELDLAYERS SHOWCONTOUR = YES |
...
$!GLOBALCONTOUR |
...
1 VAR = 4 |
...
$!CONTOURLEVELS RESETTONICE CONTOURGROUP = 1 APPROXNUMVALUES = 15 |
...
$!THREEDVIEW PSIANGLE = 122.217 THETAANGLE = -146.263 ALPHAANGLE = 15.9724 VIEWERPOSITION { X = 8.080027914835405 Y = 15.09840323951778 Z = -8.667848498664521 } |
...
$!VIEW PUSH |
...
$!EXPORTSETUP EXPORTFORMAT = JPEG IMAGEWIDTH = 900 USESUPERSAMPLEANTIALIASING = YES EXPORTFNAME = 'cylinder.jpeg' |
...
$!EXPORT EXPORTREGION = CURRENTFRAME |