[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 590: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 646: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 1068: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3843)
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 1068: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3843)
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 1068: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3843)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5133: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3843)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5133: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3843)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5133: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3843)
Two plots animated simultaneously? - Tecplot Talk

Two plots animated simultaneously?

Moderators: davetaflin, salter, steve, jprenaud, straton, Chris Idso

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1107: count(): Parameter must be an array or an object that implements Countable
gittenlucky
Newbie
Posts: 9
Joined: Mon Nov 16, 2009 8:47 am
Location: Maine
Contact:

Two plots animated simultaneously?

Postby gittenlucky » Mon May 10, 2010 9:49 am


Chris Idso
Jedi Master
Posts: 249
Joined: Mon Jan 15, 2007 10:07 am
Location: Bellevue, WA
Contact:

Re: Two plots animated simultaneously?

Postby Chris Idso » Tue May 11, 2010 6:48 am

Hello,

Yes. You can place each plot in its own frame, so you would have two frames in your Tecplot window, then you can animate them simultaneously with a macro. Below is a macro that animates multiple Tecplot frames at the same time. It might need to be modified a little so that it will work in your case:

$!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|
Chris


Christopher Idso

Tech Support Lead
Tecplot, Inc

gittenlucky
Newbie
Posts: 9
Joined: Mon Nov 16, 2009 8:47 am
Location: Maine
Contact:

Re: Two plots animated simultaneously?

Postby gittenlucky » Tue May 11, 2010 10:01 am

That worked great. Thank you very much.

bkl
Newbie
Posts: 2
Joined: Tue Jan 09, 2007 7:47 am
Location:
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1107: count(): Parameter must be an array or an object that implements Countable

Re: Two plots animated simultaneously?

Postby bkl » Wed Jun 30, 2010 1:17 am

Hello

I just tried the macro, but the resolution of the movie is small. How to increase it? Thanks in advance

sgildea
Newbie
Posts: 8
Joined: Tue Nov 25, 2008 2:53 pm
Location: Boston, MA
Contact:

Re: Two plots animated simultaneously?

Postby sgildea » Tue Aug 21, 2012 3:13 pm

Hello,

Is there a way to use the Animate menu to do this? I have two groups of frames (each group consists of two frames, one with 2D data, the other with a sketch on top) that I have successfully animated individually, but but when I animate to file, even if I select "All Frames" in the "Region" dropdown menu, only one of the videos will play. I tried the macro given here, but it did not work for me - it even crashed Tecplot once - and I don't understand all the commands because I could not find some of them in the manual. Also, when the macro does not crash Tecplot, it creates an avi file that I can't read.

Also, when I removed the sketches from each group (leaving just one frame in each group), the macro produced a video I could view, but it did not animate anything. It just showed data from the first zone the entire time.

Is there any hope of animating the two frames (each frame takes data from the same zones) at the same time and recording the movie this way?

I would appreciate any responses. Right now I will resign myself to printing the time-step to screen, and then manually matching things up in my media player.

I am using Tecplot 360 2011 Release 2, Build 13.3.0.21255 (Oct 27 2011)
for MS-WINDOWS (64-Bit)

Thank you,

Steve

User avatar
salter
Moderator
Posts: 188
Joined: Thu Dec 21, 2006 10:57 am
Location: NASA Langley Research Center
Contact:

Re: Two plots animated simultaneously?

Postby salter » Wed Aug 22, 2012 5:46 am

Steve,

Unfortunately the types of animation you are considering require a bit more work than what is available in the animation menu. You have to still use the macro Chris Idso provided. I've done this quite frequently with as many as 9 different frames. It is usually best to name your frames if you do this so that the active frame can be determined directly.

Good Luck,
Steve...

Aerospace Research Engineer
Aerothermodynamics Branch
NASA Langley Research Center

sgildea
Newbie
Posts: 8
Joined: Tue Nov 25, 2008 2:53 pm
Location: Boston, MA
Contact:

Re: Two plots animated simultaneously?

Postby sgildea » Wed Aug 22, 2012 7:18 am

Thanks for the reply. Does anyone have a version of the macro with comments that might provide more intuition for how to adapt it to my specific application? Also, the resolution of the images I have been able to make with this method are very low, as another poster pointed out.

I don't know why, but this macro does not work for me. Even the simple part where you specify an output file gives me an error unless I select a preexisting .avi file (I have not tried it for the raster metafile format).

For instance, if |framemode|>=2, does that mean it is not an (XY) or (2D) plot, and if |framemode|==1, does that mean it is a 2D plot? The manual I looked at did not list numerical values for these plots. What is the |framemodel| value for a sketch?

Also, what does

"$!ACTIVEFIELDZONES = [|lpa|]" accomplish? I'm sure it is important but I haven't put it all together in my head yet.

If anyone has guidance to offer, it would help tremendously.

Thanks,

Steve

User avatar
salter
Moderator
Posts: 188
Joined: Thu Dec 21, 2006 10:57 am
Location: NASA Langley Research Center
Contact:

Re: Two plots animated simultaneously?

Postby salter » Fri Aug 24, 2012 10:19 am

Steve...



Aerospace Research Engineer

Aerothermodynamics Branch

NASA Langley Research Center

mconnelly
Moderator
Posts: 8
Joined: Fri Mar 31, 2006 2:58 pm
Location: richland, wa
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1107: count(): Parameter must be an array or an object that implements Countable

Re: Two plots animated simultaneously?

Postby mconnelly » Mon Aug 27, 2012 12:32 pm

I have written a shareware add-on that may work for you if the data is not transient.

here is the webpage for the add-on

http://webpages.charter.net/tecgeo/AZD/index.html

please contact me outside of TecplotTalk, if you think this may work for you

tecgeo@charter.net

Mike


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1107: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1107: count(): Parameter must be an array or an object that implements Countable

Return to “Animation”

Who is online

Users browsing this forum: No registered users and 3 guests