Home | Forum Index | Log in | Register | Profile
 
Forum
  Search  
  Knowledge Base  
  Watched Topics  
  Memberlist  
  Usergroups  
  RSS feed  
  Digests  
  FAQ  
  Tecplot Data Format       (TecIO Library)
  Add-ons  
User
 Log in 
 Register 
 Profile 

 
 

Tecplot Add-on: Step by timestep

This user-contributed add-on is unsupported. Please use forums for questions and comments.

(Please e-mail support@tecplot.com 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:
  1. Download the add-on (or compile the source) and save it in $TEC360HOME/bin
  2. Edit your tecplot.add file and append this line:
    $!LoadAddOn "extendtimemcr"
  3. Start Tecplot
Files: (right-click and save)
  • Windows DLL (pre-compiled): extendtimemcr.dll
  • 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.
If you haven't already, take a minute to REGISTER for the Tecplot Talk forum. click here to register
The complete archives of the original Tecplot Talk email discussion group are available online. click here to view the archives
Most Recent Posts
How to load only last zone...
Problems showing triangulated ...
group of figures...
Re: Animating xy maps with all...
Re: Animating xy maps with all...


Powered by phpBB © 2001, 2005 phpBB Group
 
CONTOURS online newsletter   
   ©2006-2007 Tecplot, Inc. All rights reserved.  Privacy Policy turndown