Extract Vector Quantities from 3D structure

Tecplot's automation language

Python scripts were supported in the alpha version for Legacy 360 (2013). Python inquiries in 2017 should be directed to the PyTecplot Forum.

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

fahadbhopal
Newbie
Posts: 6
Joined: Tue Jan 22, 2013 10:49 am
Location: Islamabad,Pakistan

Extract Vector Quantities from 3D structure

Postby fahadbhopal » Tue Jan 22, 2013 11:45 pm

we want to extract electric field components at different points(Ex,Ey,Ez) from 3d structure. we can extract the data in loop, diffrent x y z directions. For example x=1 y =0 z=0 , x=2 y=0 z=0 ......, These values are Collective electric field, if we want individual electric Field component, how can we extract it using Techplot.


#!MC 900
$!READDATASET ='"./n3_des.plt" + "./n3_des.tdr"
DATASETREADER = 'SWB-Loader"

$!LOOP
$VARSET |NUM| = (|LOOP| -1 )

$!ADDONCOMMAND
ADDONID = 'Sentaurus Workbench Add-on'
COMMAND = 'EXTRACT_DATA_POINT ElectricField |NUM| 0 0'

$!ENDLOOP



fahad[/code]

fahadbhopal
Newbie
Posts: 6
Joined: Tue Jan 22, 2013 10:49 am
Location: Islamabad,Pakistan

Re: Extract Vector Quantities from 3D structure

Postby fahadbhopal » Wed Mar 27, 2013 10:38 pm

it is done through following code.

#!MC 1120
# Created by Tecplot 360 build 11.2-0-566
$!VarSet |MFBD| = '/home/fahad/diode'
$!DROPDIALOG SLICES
$!EXTRACTFROMPOLYLINE
EXTRACTTHROUGHVOLUME = YES
EXTRACTLINEPOINTSONLY = YES
INCLUDEDISTANCEVAR = NO
NUMPTS = 20
EXTRACTTOFILE = YES
FNAME = '/home/fahad/diode/usrdefvars.dat'
RAWDATA
9702
-10 -10 -21
-9 -10 -21
-8 -10 -21
-7 -10 -21
-6 -10 -21
-5 -10 -21
-4 -10 -21
-3 -10 -21
-2 -10 -21
. ..
.
.
.

$!PICK SETMOUSEMODE
MOUSEMODE = SELECT
$!DROPDIALOG SLICES
$!RemoveVar |MFBD|


Return to “Tecplot Macro Language”

Who is online

Users browsing this forum: No registered users and 0 guests