

The next few lines read in the information about the finite element grid. ?"Data in zone " + zonename + ": " + tecplotread(filename,zonename) ?"Available zones: " + tecplotread(filename) The following two lines in the script reads in the names of the zones and the data available in the zones of the tecplot file. The first part of the tecplot_import_diode.lsf file reads the data from the example_diode_tecplot.dat file. Names and units depend on original data source but we must convert units to SI (m). The following example shows how the tecplotread command can be used to import data from these files into CHARGE. Special field “FETriangle” represents the triangulation and X and Y coordinates of mesh are treated as node data. Out = tecplotread('filename.dat','zonename','dataname') List all of the data fields associated with the zone. ? tecplotread('filename.dat','zonename') List all zones ( domains) in the data file. In order to do this, you need to use restart2data tool (lammps->tools),Īnd then atom2plt script.Imports data from Tecplot formatted file (text). In addition to that you may visualise your particles using tecplot. So at the end you might have picture like the following one: Then specify properties of your slices, then go Data->Extract->Current Slices… In Zone styles panel you may define which slices are visible and which ones are not. I usually use slices for visualisation, in order to have slice Click “Slices” on the left panel, Then on the same panel click on “Vector” and choose columns “VX”, “VY”, “VZ”. In the left panel choose “Contour” (pick up D column, it is density). In order to open “velprof.tec” in tecplot go File->Load DataFile -> TecPlot data loader. Replace you ave/spatial withįix_ave_spatial.h, fix_ave_spatial.cpp, build and run LAMMPS. Requires information about bins in every direction. It is difficult to do in post processing script because tecplot I modified this fix a little bit so if the file has extension “tec”, fix writes in the tecplot data format. In order to simplify your life and avoid modifying output file by hands,

This fix writes data in lammps own data format which can not be read by tecplot by default. Fix profile all ave/spatial 50 2 100 x center 0.5 y center 0.5 z center 0.5 vx vy vz density/number units box file velprof.tec
