|
[Sponsors] |
Plotting two frame animation with changing zones |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 7, 2015, 07:58 |
Plotting two frame animation with changing zones
|
#1 |
Member
beyonder
Join Date: May 2015
Posts: 67
Rep Power: 11 |
Below is a macro that animates multiple Tecplot frames at the same time. This code is taken from http://http://www.tecplottalk.com/fo...pic.php?t=1043.
I want to change the color of line in each frame. Can anyone suggest how to modify this code. $!VarSet |MFBD| = 'C:\TECPLOT75' $!VarSet |lpa| = 1 $!VarSet |NZm1| = |NUMZONES| $!VarSet |NZm1| -= 1 $!Varset |MOVIE| = "avi" $!Varset |ANIMSETUP| = "AVI" $!PROMPTFORTEXTSTRING |ANIMTYPE| INSTRUCTIONS = "Please enter the animation file type: 1 for AVI, 2 for Raster Metafile" $!IF |ANIMTYPE| == 2 $!VARSET |MOVIE| = "rm" $!VARSET |ANIMSETUP| = "RASTERMETAFILE" $!ENDIF #Get the name of the output movie $!PROMPTFORFILENAME |fname| DIALOGTITLE="Specify output movie file." DEFAULTFNAME = "*.|MOVIE|" $!LOOP |NUMFRAMES| $!if |framemode| >= 2 $!ACTIVEFIELDZONES = [ |lpa| ] $!Endif $!if |framemode| == 1 $!XYMAP ASSIGN { ZONE = |lpa| } $!Endif $!FRAMECONTROL PUSHTOP $!ENDLOOP $!REDRAWALL $!Delay 1 $!EXPORTSETUP EXPORTFORMAT = |ANIMSETUP| $!EXPORTSETUP BITDUMPREGION = ALLFRAMES $!EXPORTSETUP EXPORTFNAME = '|fname|' $!EXPORT APPEND = NO $!Loop |NZm1| $!VARSET |lpa| += 1 $!LOOP |NUMFRAMES| $!if |framemode| >= 2 $!ACTIVEFIELDZONES = [ |lpa| ] $!Endif $!if |framemode| == 1 $!XYMAP ASSIGN { ZONE = |lpa| } $!Endif $!FRAMECONTROL PUSHTOP $!ENDLOOP $!REDRAWALL $!Delay 1 $!EXPORT APPEND = YES $!ENDLOOP $!RemoveVar |MFBD| $!RemoveVar |lpa| $!RemoveVar |NZm1| $!RemoveVar |fname| |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
loading issue libraries:libsimpleFunctionObjects.so libsimpleSwakFunctionObjects.so | immortality | OpenFOAM Pre-Processing | 15 | April 7, 2024 13:35 |
[OpenFOAM] Prevent Resolution changing when saving animation? | munkifisht | ParaView | 0 | May 19, 2015 08:24 |
Convert DFT of pressure in rotating frame to stationary frame | CFD-123 | FLUENT | 0 | February 12, 2015 18:51 |
[PyFoam] Problems with the new PyFoam release | zfaraday | OpenFOAM Community Contributions | 13 | December 9, 2014 19:58 |
[PyFoam] having problems with pyfoam Installation | vitorspadetoventurin | OpenFOAM Community Contributions | 3 | December 2, 2014 08:18 |