Tecplotsv Ug
Tecplotsv Ug
Tecplotsv Ug
Synopsys, Inc.
700 E. Middlefield Road
Mountain View, CA 94043
www.synopsys.com
INTEGRATE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
INTEGRATE_CURVE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
ORTHOSLICE. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
SET_CONTOUR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
SET_PREFERENCE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
SLICEMODE. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
UPDATE_DATA. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Glossary 49
This user guide describes the Sentaurus Workbench add-on to Tecplot1. Tecplot is a dedicated
software for scientific visualization that Synopsys has extended to accommodate the special
requirements of the Synopsys simulation environment. This user guide only covers the use of
the add-on. Tecplot has its own set of documentation. If you cannot find information in this user
guide, consult the Tecplot 360™ User’s Manual and Tecplot 360™ Scripting Guide. It is
recommended that you go to http://www.tecplot.com for more information about Tecplot.
Audience
This user guide is intended for users of the Tecplot SV software package.
Related Publications
For additional information about Tecplot SV, see:
■ The documentation installed with the Tecplot SV software and available through the
Tecplot SV Help menu.
■ The TCAD Sentaurus release notes, available on SolvNet (see Accessing SolvNet on
page ix).
■ Documentation available through SolvNet at https://solvnet.synopsys.com/DocsOnWeb.
Typographic Conventions
Convention Explanation
Bold text Identifies a selectable icon, button, menu, or tab. It also indicates the name of a field or an
option.
Courier font Identifies text that is displayed on the screen or that the user must type. It identifies the
names of files, directories, paths, parameters, keywords, and variables.
Italicized text Used for emphasis, the titles of books and journals, and non-English words. It also
identifies components of an equation or a formula, a placeholder, or an identifier.
Key+Key Indicates keyboard actions, for example, Ctrl+I (press the I key while pressing the Control
key).
Menu > Command Indicates a menu command, for example, File > New (from the File menu, select New).
Customer Support
Customer support is available through SolvNet online customer support and through
contacting the Synopsys support center.
Accessing SolvNet
SolvNet includes an electronic knowledge base of technical articles and answers to frequently
asked questions about Synopsys tools. SolvNet also gives you access to a wide range of
Synopsys online services, which include downloading software, viewing documentation, and
entering a call to the Synopsys support center.
To access SolvNet:
1. Go to the SolvNet Web page at https://solvnet.synopsys.com.
2. If prompted, enter your user name and password. (If you do not have a Synopsys user name
and password, follow the instructions to register with SolvNet.)
If you need help using SolvNet, click Help on the SolvNet menu bar.
Frame
Sidebar
Status Line
and it is a program that launches the actual Tecplot executable. Most of the original Tecplot
command-line options pass to Tecplot by tecplot_sv. In addition to those, tecplot_sv has
its own command-line options (see Appendix A on page 45).
NOTE Tecplot can run in batch mode (-b option), which is especially useful
when used within tool flows. In this context, the use of macro files and
style files is also of interest. Refer to the Tecplot documentation for
more information about the macro language and batch processing.
File Loader
To load files in various formats:
■ File > Load, or click the Load button on the Synopsys sidebar, or specify the files in the
tecplot_sv command line (see Appendix A on page 45).
The loader tries to identify the file types and ignores any files that are not in one of the
recognized formats. The loader recognizes the following file formats:
■ TDR (this is the standard TCAD Sentaurus format)
■ TDF
■ TIF
■ IVL
■ PLX
The loader detects matching grid and data files automatically even if they are not specified in
the correct order. Data files are ignored if they do not match any of the loaded grid files.
For more information about the TDR format, refer to the Sentaurus Data Explorer User Guide.
Mapping Coordinates
Some file types contain a transformation matrix and a translation vector that define a mapping
from the local coordinates specified in the file to a global coordinate system. By default, the
loader does not apply this transformation, so that, for example, a 2D grid is displayed in 2D
frame mode with its local x-coordinates and y-coordinates. The tecplot_sv launcher
provides a pair of options, -s:lc and -s:gc, which allows the user to switch between local
and global coordinate modes. These options can be specified any number of times to switch
between the two modes.
Mapping Datasets
While loading a data file, the loader creates a Tecplot variable for each dataset. For vector
datasets, the loader creates an additional variable called Abs(var-name) and initializes it
with the magnitude of the vector field. The variables corresponding to the vector field
components are still available in Tecplot, but they are not displayed in the list of variables on
the Synopsys sidebar.
The sidebar is the main tool area containing buttons, shortcuts, and convenient functionality for
users. The sidebar layout changes depending on the plot type of the current frame. Users who
are familiar with the native Tecplot version may also want to use the native Tecplot sidebar.
Update Data Updates the variables in the active frame from the data file.
Redraw Redraws the active frame. The equivalent keyboard shortcut is Ctrl+R.
Last View Returns to a previous view. The previous 16 views of each plot type for each
frame are maintained in a view stack. By clicking Last View, users can recover
one of their previous 16 views. The equivalent keyboard shortcut is Ctrl+L.
Arrange Toggles between side-by-side layout and stack layout, and rearranges the frames
on the page.
Zoom Zooms into or away from the plot. To zoom, drag the magnifying glass pointer
and draw a box around the region that is to fit in the frame. The selected region
will be resized to fit into the frame.
Data Probe Enables probing to examine variable values, or zone and cell information, for any
point in the dataset.
Rotate Enables one of the six available 3D rotation modes (spherical, roller-ball, twist, x,
y, and z). Use the keys indicated in the status line to switch between the rotation
modes.
Insert Text Enables or disables the text insert mode for adding text to plots.
Draw Lines Enables or disables the line drawing mode for adding lines and arrows to plots.
Draw Rectangle Enables or disables the rectangle drawing mode for adding rectangular boxes to
plots.
Draw Ellipse Enables or disables the ellipse drawing mode for adding circles and ellipses to
plots.
Select Tool Enables or disables the select tool for selecting objects inside the plot.
Adjuster Tool Enables or disables the adjuster tool for selecting and adjusting objects inside the
plot.
Contour Range Displays and sets the minimum and maximum values for the contour range,
which determines the valid interval for the calculation of contour levels.
Contour Mode Selects the Lin (linear), Log (logarithmic), or Ash (Asinh) contour mode. The
default is according to the definitions in the DATEX file.
The contour mode is only used for computing the contour level distribution. It
does not affect the interpolation of data between nodes of the grid (which is
always linear).
Range Reset Selects between various options regarding the calculation of the contour range.
List Mode Selects between displaying the regions or materials in the list box.
Region list Selects a set of regions that becomes the active set for subsequent operations. The
list can display either regions or properties. The list allows multiple selections
using the Shift and Ctrl keys.
Contour Fill and Displays the contour fill and the contour lines of the selected regions.
Lines
Contours Off Hides the contour fill and the contour lines of the selected regions.
X Cut Generates an orthogonal x-cut. To finish the cut, click at the required cut position.
Y Cut Generates an orthogonal y-cut. To finish the cut, click at the required cut position.
Z Cut Generates an orthogonal z-cut. To finish the cut, click at the required cut position.
Sidebar in XY Mode
The XY part of the sidebar (see Figure 2 on page 5) contains the items listed in Table 3.
Variable list Assigns the selected variables to the current y-axis and displays temporary
curves.
Axis Mode Switches between linear and logarithmic modes of the current x-axis or y-axis.
Range Lock Locks or unlocks the range of the current x-axis or y-axis.
List Mode Selects between displaying the regions or materials in the list box.
Cutting Tools
Tecplot SV provides the following tools for generating 1D and 2D cuts:
■ The orthogonal slicer, which generates 1D and 2D cuts that are perpendicular to one of the
coordinate axes. This feature is accessed from the menu Slicer > Orthogonal Cut, or from
the corresponding buttons on the sidebar.
■ The interactive slicer, which is used to drag a 2D slice plane through a 3D volume. This
feature is accessed from the menu Slicer > Interactive Slicer, or from the corresponding
button on the sidebar.
■ The cut along boundary tool, which generates 1D cuts along boundaries of 2D regions. This
feature is accessed from the menu Slicer > Cut Along Boundary, or from the
corresponding button on the sidebar.
■ The cut along streamtrace tool, which generates 1D cuts along streamtraces. This feature
is accessed from the menu Slicer > Cut Along Streamtrace.
■ The tools to extract data on arbitrary points or along polylines. These features are accessed
from the menu Data > Extract.
The Sentaurus Workbench add-on to Tecplot can communicate directly with Sentaurus Process
or Sentaurus Interconnect. The communication is based on sockets and, therefore, works also
for processes that run on different machines and architectures. In its simplest form, the
interface to either tool transforms Tecplot SV into a visualization back-end for that tool. In its
more advanced use, Tecplot SV also acts as a user interface. A process of Sentaurus Process or
Sentaurus Interconnect is always associated with one Tecplot SV frame. Several processes of
either tool can be attached to a single Tecplot SV process, displaying their data in separate
frames.
Measure...
Figure 4 Measure button (left) and output dialog box showing total measured distance
(right)
4. Use either the Esc key or the middle mouse button to close the entered path.
The dialog box in Figure 4 (right) is displayed, which indicates the total measured distance
along the entered path.
5. Click OK to finish or Cancel to write the dataset values along the entered path to a file.
This file can be loaded into Inspect.
By default, the measuring tool is disabled after a measurement has been made, that is, the
standard Selector tool is reactivated. This behavior can be changed by a global preference
setting, so that the measuring tool remains active after a measurement (see Preferences on
page 19).
This chapter presents the various utilities and the options available
from the Preferences dialog box.
Updating Data
The Sentaurus Workbench add-on to Tecplot allows for manual or automatic updating of data
on grids that are already loaded into a frame. This functionality is available from the Synopsys
menu bar (see Figure 5).
Quick Data Update Rereads the most recently loaded data file.
Update Data Displays a file selection dialog box to update from a user-specified
data file.
Auto Update Displays a dialog box that allows users to select a time interval (in
seconds) at which the most recently loaded data file is reread
automatically.
The dialog box shown in Figure 6 is used to create and edit custom contour levels.
1 4
2 5
3 6
The following items are key parts of the Custom Contour Levels dialog box:
1. Variables list
Displays the names of the variables having custom contour levels.
2. Input field for variables.
3. Buttons related to variables:
Add: The name in the input field is added as a new custom contouring variable.
Change: The name of the selected variable is changed to the name specified in the input
field.
Dup: Duplicates the selected variable with its custom contour levels. The name of the
copied variable is changed to name.x, where x is a number starting at 1.
Remove: Deletes the selected variable.
4. Values list
Displays the custom contour levels of the selected variables. If more than one variable is
selected, only the values that are common to all selected variables are displayed.
5. Input field for contour levels.
6. Buttons related to contour levels:
Add: A new contour level is added for the selected variable.
Change: The selected contour level is given the value of the input field.
Remove: Deletes the selected contour levels.
Preferences
Many options for customizing Tecplot SV can be set in the Preferences dialog box (Edit >
Preferences) (see Figure 7). These options are saved to the file tecswb.pref in the home
directory of the user. They are restored from this file when Tecplot SV is started.
GUI Preferences
The available options are:
List Display
NOTE To find out which auxiliary data is available, select from the menu Data
> Data Set Info, then click the Aux Data tab.
Examples
1. Assuming that the auxiliary data Tdr.Dataset.Quantity is available:
Name template: Quantity: {Tdr.Dataset.Quantity}
Curve name: Quantity: eQuasiFermiPotential
Load Preferences
General Options
Create Variables
Vector components Selects whether variables are created for each component of a
vector dataset.
Vector norm Selects whether a variable is created and initialized with the vector
norm for a vector dataset.
Complex components Selects whether variables are created for the real and imaginary
parts of a complex dataset.
Complex norm Selects whether a variable is created and initialized with the
complex norm for a complex dataset.
Other Options
Layout Preferences
Frame Preferences
New Frames
Frame Linking
Other Options
Plot Preferences
Initial Display
Other Options
Initial Display
Other Options
Initial Display
Other Options
Slice Preferences
Orthogonal Slicer
Dynamic 2D Slicer
Miscellaneous Preferences
This chapter presents the macro language and the macro commands
that can be used in Tecplot.
Example
Tecplot provides a powerful macro language, which is described in the Tecplot 360™ Scripting
Guide.
The following example demonstrates how multiple data files are loaded consecutively to
generate a sequence of pictures for a movie:
#!MC 900
$!INTERFACE AUTOREDRAWISACTIVE = NO
$!VARSET |FIRSTFRAME| = 1
$!LOOP 20
$!VARSET |NUM| = (|Loop|-1)
$!VARSET |FNAME| = "data_|NUM%04d|.dat"
$!FRAMECONTROL DELETETOP
$!DRAWGRAPHICS FALSE
$!READDATASET '"./mesh.grd" "./|FNAME|"'
DATASETREADER = 'SWB-Loader'
$!READSTYLESHEET "./movie.sty"
INCLUDEPLOTSTYLE = YES
INCLUDETEXT = NO
INCLUDEGEOM = NO
INCLUDESTREAMPOSITIONS = NO
INCLUDECONTOURLEVELS = YES
MERGE = NO
INCLUDEFRAMESIZEANDPOSITION = YES
$!DRAWGRAPHICS TRUE
$!REDRAWALL
$!IF |FIRSTFRAME| == 1
$!EXPORTSETUP
EXPORTFORMAT = AVI
EXPORTFNAME = './movie.avi'
IMAGEWIDTH = 800
$!EXPORTSTART
$!VARSET |FIRSTFRAME| = 0
$!ENDIF
$!IF |FIRSTFRAME| == 0
$!EXPORTNEXTFRAME
$!ENDIF
$!ENDLOOP
$!EXPORTFINISH
A macro such as the one shown here is best generated by using File > Macro > Record. After
the main steps have been recorded, the generated macro file can be edited and complemented
with programming constructs. After a macro file has been created, the macro file can be either
executed from within the Tecplot GUI or specified in the command line:
tecplot_sv -p test.mcr
EXPORT_INSPECT
Exports xy curves for loading with Inspect.
Syntax
EXPORT_INSPECT <file-basename>
Arguments
file-basename Base name of the output file. Tecplot creates a separate file for
each region and appends the region and material names to the base
name.
EXTRACT_CONTOUR_TO_FILE
Extracts the isoline for a specified value of a variable and writes the resulting polygon to a file.
Syntax
EXTRACT_CONTOUR_TO_FILE <variable-name> <isovalue> <filename>
Arguments
EXTRACT_DATA_POINT
Extracts the value of a variable at a specified point. The result is printed and stored in the macro
variable EXTRACTED_DATA_VALUE.
Syntax
EXTRACT_DATA_POINT <variable-name> <x> <y> <z> [snap]
Arguments
GET_COLOR
Finds or creates the specified color and writes its index into the specified macro variable.
Syntax
GET_COLOR <color-specification> <macro-variable>
Arguments
GET_VARNUM_BY_TDR_NAME
Obtains the variable number associated with the specified name of the TDR dataset and assigns
it to a Tecplot macro variable.
Syntax
GET_VARNUM_BY_TDR_NAME <dataset-name> <macro-variable>
Arguments
GET_VARNUM_BY_TDR_QUANTITY
Obtains the variable number associated with the specified TDR quantity name and assigns it to
a Tecplot macro variable.
Syntax
GET_VARNUM_BY_TDR_QUANTITY <dataset-quantity> <macro-variable>
Arguments
GET_ZONENUM_BY_TDR_REGION_NAME
Obtains the zone number associated with the specified TDR region name and assigns it to a
Tecplot macro variable.
Syntax
GET_ZONENUM_BY_TDR_REGION_NAME <region-name> <macro-variable>
Arguments
INTEGRATE
Calculates the integral of a variable over a specified set of zones. The results are printed. The
total integral is also stored in the macro variable INTEGRAL.
Syntax
INTEGRATE <variable-name> [<zone-set>] [NAME = <user-string>]
Arguments
INTEGRATE_CURVE
Calculates the integral of an X-Y mapping f(x) over a specified range of the independent
variable. The results are printed. The total integral is also stored in the macro variable
INTEGRAL.
Syntax
INTEGRATE_CURVE <integration-variable> <independent-variable>
[ZONES = <zone-set>]
[RANGE_MIN = <range-min>]
[RANGE_MAX = <range-max>]
[NAME = <user-string>]
Arguments
range-min Optional lower limit of the independent variable. The default value
is -1E300.
range-max Optional upper limit of the independent variable. The default value
is +1E300.
user-string Optional string that is appended to the DOE output.
ORTHOSLICE
Creates an orthogonal slice at a specific location in one or several frames.
Syntax
ORTHOSLICE <normal-direction> <location> <frame-names>
Arguments
SET_CONTOUR
Sets the contour options.
Syntax
SET_CONTOUR VAR_NUM=<variable-number> | VAR_NAME=<variable-name>
RANGE_MIN=<lower-limit>
RANGE_MAX=<upper-limit>
NUM_LEVELS=<number-of-levels>
SCALE=<lin | log | asinh>
Arguments
SET_PREFERENCE
Sets a preference option.
Syntax
SET_PREFERENCE <name> <value>
Arguments
name Name of the preference option. Valid names can be found in the
preferences file tecswb.pref, which is stored in the home
directory of the user.
value Value of the preference option.
SLICEMODE
Specifies whether the orthogonal slicer merges zones or keeps the zone structure of the original
grid.
Syntax
SLICEMODE MergedZones | SeparateZones
UPDATE_DATA
Updates Tecplot internal data by reading from the specified file.
Syntax
UPDATE_DATA <file-name>
Arguments
Command Line
tecplot_sv [-v] [-h] [-s:...] [tecplot-options] list-of-files
General Options
-h Prints help information.
-v Prints program version information.
Launcher Options
-batch Runs in batch mode (same as Tecplot option -b).
-s:addon_version <x.y.z> Specifies the version of the add-on that should be loaded.
-s:archoslib <path> Specifies the path to the add-on library.
-s:env <NAME=value> Sets the specified environment variable before launching
Tecplot.
-s:home <dirname> Specifies the Tecplot home directory, overriding the value of
$TECHOME. This is a replacement for the Tecplot command-
line option -h.
-s:ipc Enables interprocess communication (IPC), which is required
if Tecplot accepts connection requests from Sentaurus Process.
-s:no_addons Does not load the Synopsys TCAD add-ons by default.
Usually, the add-ons are loaded automatically using
-loadaddon options in the Tecplot command line.
Loader Options
-s:append Appends file to the previous frame.
-s:f <Inspect cmd file> Runs the specified Inspect command file.
-s:fast_scan Disables expensive grid file–matching or data file–matching
tests.
-s:g <geometry index or Selects only the specified geometries from the TDR file.
name>
Tecplot Options
Any option that is not identified as a tecplot_sv option is transferred to Tecplot. Refer to the
Tecplot 360™ User’s Manual for an explanation of all Tecplot options.
Environment Variables
TEC_GRID_DEBUGGING If set, this causes an additional variable named VertexIndex to
be created and initialized with the global vertex number. This is
useful for debugging purposes. To look up a vertex index, use
the Data Probe tool or switch on the Tecplot data-labeling
feature:
1. Plot > Label Points and Cells.
2. Select the Show Node Labels option.
3. Select the Show Variable Value option, choosing the
variable VertexIndex for labeling.
TP_CLIENT_WAIT_TIMEOUT Sets the time (in seconds) that a client waits for Tecplot to start
up and establish a connection. The default value is 40.
TP_CLIENT_CONNECT_TIMEOUT Sets the time (in seconds) that a client waits when trying to
connect to a running Tecplot server.
D
dataset versus variable
‘Dataset’ in TDR format corresponds to a ‘variable’ in Tecplot. In Tecplot language, the
‘dataset’ is the top-level data structure that contains the complete information on the grid
with its associated data.
R
region versus zone
‘Region’ in Synopsys language corresponds in most cases to a ‘zone’ in Tecplot language.
Tecplot can display each zone with its individual graphic styles. The TDR loader maps
parts to zones.