This user-contributed add-on is unsupported. Please use forums for questions and comments.
(Please let jim know if you have an add-on you'd like to share or link to.)
The extendtimemcr add-on simplifies the macro interface when dealing with transient data. Tecplot's native macro language requires that the user know the solution times of their data. This add-on allows the user to query the number of solution times in the data set and advance the time step using a simple loop.
Written by: Scott Fowler
Compatible with: Tecplot 360 2006 R2
This add-on is included in Tecplot 360 2008 and Tecplot Focus 2008
Macro Language: Here is an example:
#
# Get the number of time steps into the macro variable VVV
#
$!ADDONCOMMAND ADDONID='Extend Time MCR'
COMMAND='QUERY.NUMTIMESTEPS VVV'
#
# Set the solution time at time step nnn. The acceptible value range
# for nnn is: 1 - NumTimeSteps
#
$!ADDONCOMMAND ADDONID='Extend Time MCR'
COMMAND='SET.CURTIMESTEP nnn'
#
# Get the solution time at time step nnn into the macro variable VVV.
# The acceptible value range for nnn is: 1 - NumTimeSteps
#
COMMAND='QUERY.TIMEATSTEP nnn VVV'
More samples:
$!ADDONCOMMAND ADDONID='Extend Time MCR'
COMMAND='QUERY.NUMTIMESTEPS NUMTIMESTEPS'
$!LOOP |NUMTIMESTEPS|
$!ADDONCOMMAND ADDONID='Extend Time MCR'
COMMAND='SET.CURTIMESTEP |LOOP|'
$!ADDONCOMMAND ADDONID='Extend Time MCR'
COMMAND='QUERY.TIMEATSTEP |LOOP| CURTIME'
$!PAUSE "Current time is: |CURTIME|"
$!ENDLOOP
Known Limitations:
This add-on uses a different algorithm for sorting the solution
times than Tecplot does. Tecplot combines
time steps that are sufficiently close together, so the
number of time steps reported by this add-on may differ from
the number of time steps reported by Tecplot.
Please use the forums for questions and comments.
Instructions:
Download the add-on (or compile the source) and save it in $TEC360HOME/bin
Edit your tecplot.add file and append this line:
$!LoadAddOn "extendtimemcr"
Source: extendtimemcr.zip
Building is pretty straight forward, but it does use the adkutil library distributed with Tecplot, so be sure to link with that library!
Linux users: if you send me the compiled version, I'll post it here.