Please enable JavaScript to view this site.

Knowledge Base

Navigation: Scripting Language > System

tecplotread

We've made some changes. Use 'Ctrl-F5' to clear your browser cache.
Scroll Prev Top Next More

Imports data from Tecplot formatted file (text).

 

Supported Product: DEVICE

 

Syntax

Description

? tecplotread('filename.dat');

List all zones ( domains) in the data file.

? tecplotread('filename.dat','zonename');

List all of the data fields associated with the zone.

out = tecplotread('filename.dat','zonename','dataname');

Retrieve the data as an array

 

Example

Special field “FETriangle” represents the triangulation and X and Y coordinates of mesh are treated as node data. Names and units depend on original data source but we must convert units to SI (m). We can use Lumerical script command matlabsave(‘myfile.mat’,t,x,y); to export data in .mat format, and view in Matlab with triplot(t,x,y);

> ?tecplotread('test_tecplot.dat');

Si

 

> ?tecplotread('test_tecplot.dat','Si');

FETriangle, X [um], Y [um], DopingConcentration(NetActive) [cm^-3], Boron         [cm^-3], Phosphorus [cm^-3], BoronActiveConcentration(BActive)         [cm^-3], PhosphorusActiveConcentration(PActive) [cm^-3]

 

>t = tecplotread('test_tecplot.dat','Si','FETriangle');

>x = 1e-6*tecplotread('test_tecplot.dat','Si','X [um]'); # convert to SI from um to m

>y = 1e-6*tecplotread('test_tecplot.dat','Si','Y [um]'); 

 

# Convert to SI units

>NA_name = 'BoronActiveConcentration(BActive) [cm^-3]';

>ND_name = 'PhosphorusActiveConcentration(PActive) [cm^-3]'; 

 

>NA = 1e6*tecplotread('test_tecplot.dat','Si',NA_name); # (cm^-3 --> m^-3)

>ND = 1e6*tecplotread('test_tecplot.dat','Si',ND_name); 

 

Below is an example of how to use the tecplotread command to build an unstructured dataset, then use “addimportdope” and “importdataset” to attach that to the import doping object:

?tecplotread('data_doping.dat','Silicon_1/state_0');

 

tet = tecplotread('data_doping.dat','Silicon_1/state_0','FETetrahedron');

x = tecplotread('data_doping.dat','Silicon_1/state_0','X [um]')*1e-6;

y = tecplotread('data_doping.dat','Silicon_1/state_0','Y [um]')*1e-6;

z = tecplotread('data_doping.dat','Silicon_1/state_0','Z [um]')*1e-6;

NA = tecplotread('data_doping.dat','Silicon_1/state_0','AcceptorConcentration [cm^-3]');

ND = tecplotread('data_doping.dat','Silicon_1/state_0','DonorConcentration [cm^-3]');

N = NA-ND;

 

doping = unstructureddataset('doping',y,z,-x,tet);

doping.addparameter('v',0);

doping.addattribute('NA',NA);

doping.addattribute('ND',ND);

doping.addattribute('N',N);

 

dopingNA = unstructureddataset('NA',y,z,-x,tet);

dopingNA.addparameter('v',0);

dopingNA.addattribute('N',NA*1e6);

addimportdope;

importdataset(dopingNA);

set('name','acceptors');

set('dopant type','p');

 

dopingND = unstructureddataset('ND',y,z,-x,tet);

dopingND.addparameter('v',0);

dopingND.addattribute('N',ND*1e6);

addimportdope;

importdataset(dopingND);

set('name','donors');

set('dopant type','n');

 

See Also

system, matlabload, h5read

Copyright Lumerical Inc. | Privacy | Site Map