|
Contents | Previous | Next | Subchapters |
| Syntax |
tpput3D(expression, variable, zone, plane, planeNumber) |
| See Also | tpget3D , tpput , tpvarname , tpzonename |
clear
tpopen([OM_INSTALL,"\example\tecplot\astrojet.lpk"])
tpput3D( fill(250d0,40,9), tpvarnum("/dset"), 1, "I", 30)
O-Matrix will open the astrojet.lpk sample file from the distribution
and change all values in I plane 30, for variable /dset
to 250. The updated plot will appear as.
The tpput3D function can also be used to create
new volume data in Tecplot. The following example creates
a new data set with variables X, Y, and R with IMax = 5,
JMax = 6, and KMax = 10.
clear
tpopen
tpdataset({"X","Y","R"}, 5, 6, 10)
X = fillrows(seq(6)', 5)
Y = fillcols(seq(5), 6)
for k = 1 to 10 begin
tpput3D(X, 1, 1, "K", k)
tpput3D(Y, 2, 1, "K", k)
R = rand(5,6)
tpput3D(R+k, 3, 1, "K", k)
end
At this point you can interactively select a plot type
and desired attributes, or if you continue the example
by entering,
tpplottype("CARTESIAN3D")
tpmacrostring("$!FIELDLAYERS SHOWCONTOUR = YES")
tpmacrostring("$!FIELDLAYERS SHOWMESH = NO")
You will get the following result
See the tpget3D
function for additional examples
of transferring data to and from 3D ordered data sets.