[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 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)
Tecplot Talk • Array equivalent in loop
Page 1 of 1

Array equivalent in loop

Posted: Tue Apr 29, 2008 12:54 am
by chinu
My data set has multiple variables which I would like to contour plot one by one, and export as an image. I couldn't find the equivalent of an array in the tecplot scripting guide. Can someone shed light please?

What I have is:

$!VarSet |CONTVARS| = '"X" "Y" "Z" "axial-velocity" "radial-velocity" "tangential-velocity"'

which I pass on to READDATASET. I want contours of axial, radial and tangential velocities. What I want is something like

$! LOOP [[ over velocity components ]]
$! VarSet |VARCNT| = 3 + |LOOP|
$!GLOBALCONTOUR 1 VAR = |VARCNT|
$!EXPORTSETUP EXPORTFNAME = 'export.bmp'
$!EXPORT
EXPORTREGION = ALLFRAMES
$!ENDLOOP

I need a valid replacement for the term within [[...]] in the loop statement line.

Re: Array equivalent in loop

Posted: Mon May 12, 2008 3:03 pm
by jim