Post Processing Commands: Difference between revisions

From Flooxs
Jump to navigation Jump to search
Line 54: Line 54:
== BLT based plot window control commands ==
== BLT based plot window control commands ==


The [[BLTWindow | BLT window]] offers control over the plot look and can allow you to save plots. The following commands are implemented as scripts, and use the tcl based pipes for passing information. [#TCLReturn TCL return] commands can be used to extract data which can be added to a plot surface. Multiple BLT windows can be opened at any one time.
The [[BLTWindow | BLT window]] offers control over the plot look and can allow you to save plots. The following [[BLTInterface | BLT interface commands]] are implemented as scripts, and use the tcl based pipes for passing information. TCL Return commands can be used to extract data which can be added to a plot surface. Multiple BLT windows can be opened at any one time.


; [Post/BLTplot.html#CreateGraphWindow CreateGraphWindow]
; CreateGraphWindow
: Create a new plotting surface and return the file handle. The file handle is required as a parameter to the other [Post/BLTplot.html BLT window] commands.
: Create a new plotting surface and return the file handle. The file handle is required as a parameter to the other [Post/BLTplot.html BLT window] commands.
; [Post/BLTplot.html#CreateLine CreateLine]
; CreateLine
: Add a new line to an existing plot.
: Add a new line to an existing plot.
; [Post/BLTplot.html#CreateSingleLine CreateSingleLine]
; CreateSingleLine
: Add a single data set to an existing plot.
: Add a single data set to an existing plot.
; [Post/BLTplot.html#ClearGraph ClearGraph]
; ClearGraph
: Clear a graph window of all data, and reset the window.
: Clear a graph window of all data, and reset the window.
; [Post/BLTplot.html#AddtoLine AddtoLine]
; AddtoLine
: Add one or more data points to an existing line in the plot window.
: Add one or more data points to an existing line in the plot window.
; [Post/BLTplot.html#CreateBound CreateBound]
; CreateBound
: Add an outline to the graph. This can be then filled in with color in the plot window. Normal lines are not completed, and do not have fill properties.
: Add an outline to the graph. This can be then filled in with color in the plot window. Normal lines are not completed, and do not have fill properties.
; [Post/BLTplot.html#FlipY FlipY]
; FlipY
: This allows the orientation of the y axis to be altered.
: This allows the orientation of the y axis to be altered.
; [Post/BLTplot.html#setlimits SetLimits]
; SetLimits
: This allows the minimum and maximum value on a particular axis to be set.
: This allows the minimum and maximum value on a particular axis to be set.
; [Post/BLTplot.html#setaxistype SetAxisType]
; SetAxisType
: Set an axis to either log or linear scale.
: Set an axis to either log or linear scale.
; [Post/examples.html#BltPlot Examples]
; [[BLTInterface | BltPlot Examples]]
:
:



Revision as of 13:29, 15 June 2009

Post Processing Commands

These commands allow data analysis and viewing in a simple way. It is not the point of these graphics to provide publication ready quality. It is often useful to dump data into a different program for annotation and preparation of final graphics. However, the graphics included do allow simple capabilities that are quite useful for analysis during the simulation.

Almost all of these commands work on a single data set. The data set can be named directly on those commands that require it. New data sets can be created with the select command using arbitrary expressions. The coordinate set contains 1-3 spatial coordinates and the selected variable as the final coordinate. In three-dimensional simulation, four dimensions are available and the data needs to be sliced to be displayed.

sel, select

This command allows a variable to be chosen as the z coordinate for the plot command to follow.

Select Examples

There are three main sets of commands.

TCL Returns

The first set is used to provide data back to tcl. These commands find/interpolate data and allow the information to be manipulated as tcl variables.

Take a list of x, y data and compute the best fit using linear regression to the line.

Extract a material boundary.

Take Pearson distribution parameters and build a profile from them.

Take a list of data and fit an exponential decay to the data.

Take a list of data and fit an Arrhenius expression.

Take a list of data and fit a Pearson distribution function.

Extract grid information in a format appropriate for plotting.

The interface command returns the location of the specified interface along a given line.

The interpolate command interpolates the selected plot variable and returns the position.

This command prints the material interfaces and integrated plot variable as a function of depth.

Manipulate materials, including getting a list of currently available materials.

This prints the information along a specified line.

Take a named doping profile and fit a Pearson distribution function.

Extract a data slice along a line.

Take a list of data and fit a standard normal distribution function.

Extract vector information for a velocity field. This returns a list of small arrows for plotting purposes.

Show these in action with sample returns

BLT based plot window control commands

The BLT window offers control over the plot look and can allow you to save plots. The following BLT interface commands are implemented as scripts, and use the tcl based pipes for passing information. TCL Return commands can be used to extract data which can be added to a plot surface. Multiple BLT windows can be opened at any one time.

CreateGraphWindow
Create a new plotting surface and return the file handle. The file handle is required as a parameter to the other [Post/BLTplot.html BLT window] commands.
CreateLine
Add a new line to an existing plot.
CreateSingleLine
Add a single data set to an existing plot.
ClearGraph
Clear a graph window of all data, and reset the window.
AddtoLine
Add one or more data points to an existing line in the plot window.
CreateBound
Add an outline to the graph. This can be then filled in with color in the plot window. Normal lines are not completed, and do not have fill properties.
FlipY
This allows the orientation of the y axis to be altered.
SetLimits
This allows the minimum and maximum value on a particular axis to be set.
SetAxisType
Set an axis to either log or linear scale.
BltPlot Examples

Plot commands

All of the following commands plot onto an blt window. The controls on the blt window are the same for all commands. This affords backward compatability to all of the old funcitonality (in most cases!).

This command allows the user to plot an isoconcentration line of the selected variable. It is usually used with the plot.2d statement.

This command allows the user to plot the selected variable in one dimensional cross sections through device.

This command allows the user to plot the outline and/or grid lines in the two dimensional mesh. It is very useful for setting up the display for the contours.

[Post/examples.html Examples ]