Download Tecplot - home page

Transcript
Chapter 25. Data Operations
#!MC 900
## The first three equations are applied to all zones
$!ALTERDATA
EQUATION = "V4 = SQRT(V4) / 460.0"
$!ALTERDATA
EQUATION = "V4 = (V4*V5 + V4*V6)/2"
$!ALTERDATA
EQUATION = "V5 = SIN(V4/V3) * EXP(-0.53*V2/V1)"
## Creating New Variable, Operate on all zones
$!ALTERDATA [1,|NUMZONES|]
EQUATION = "{CRITT} = 0.5396E-3 * V4**2"
## Operate on Zone 5 only
$!ALTERDATA [5]
EQUATION = "V1 = V1 / 2"
$!ALTERDATA [5]
EQUATION = "V2 = V2 / 2"
## Operate On Zones 6,7,8,9, and 23 Only
$!ALTERDATA [6-9,23]
EQUATION = "V1 = V1 * 4.3"
$!ALTERDATA [6-9,23]
EQUATION = "V2 = V2 * 4.3"
## Operate On All Zones, But Limit Index Ranges
## To Every Fifth Point in the I- or J-Direction
$!ALTERDATA
IRange = 1,0,5
JRange = 1,0,5
EQUATION = "V5 = EXP(V3(i-2)+V5(i+4))"
##
##
25.2. Transforming 2-D Polar Coordinates to Rectangular
All 2-D Tecplot plots use a rectangular coordinate system with axes X and Y. Some 2-D data
may be represented in polar coordinate form, in which each point is represented by the radius r
and by an angle θ (in radians). Such a data set will initially display as a rectangle in Tecplot.
Use the Transform Polar to Rectangular dialog to transform data sets in polar coordinates to a
rectangular coordinate system which Tecplot can use. When you use this dialog, Tecplot
assumes the current X-variable represents the radius r, and the current Y-variable represents the
angle θ. These variables are listed in the upper portion of the dialog.
To transform your data in polar coordinates to rectangular coordinates:
1.
442
From the Data menu, choose Alter, then choose Polar to Rectangular. The Transform Polar
to Rectangular dialog appears as shown in Figure 25-3.