3.7.8.4.11. Tecplot Layout SubfigureΒΆ
The "Tecplot" class of subfigure is used to set up Tecplot to open a
layout within each solution folder and attempt to export a figure. There are
advanced options that instruct Cape to edit the layout file. These values can
utilize the value of any trajectory key using sigils. For example, the
following ColorMap instruction sets the Mach 0.0 color to "darkpurple",
the maximum Mach number color to "darkorange", a sharp purple-to-green
border at Mach 1.0, and the freestream Mach number to "white".
"ColorMap": { "0.0": "darkpurple", "1.0": ["#b55fbf", "green"], "$mach": "white", "max(1.1,1.4*$mach)": "darkorange" }
Colors are interpreted by cape.color. The value for $mach is
determined from the case number and the current
cape.runmatrix.RunMatrix for the run configuration. If mach is
not a trajectory key of the current run matrix, this specification will fail.
The full list of options is shown below.
- S:
dictDictionary of settings for Tecplot subfigure
- Type: {
"Tecplot"} |strSubfigure type
- Header: {
""} |strHeading placed above subfigure (bold, italic)
- Position:
"t"|"c"| {"b"}Vertical alignment of subfigure
- Alignment:
"left"| {"center"}Horizontal alignment
- Width: {
0.5} |floatWidth of subfigure as a fraction of page text width
- FigWidth: {
1024} |intWidth of the image generated by Tecplot in pixels
- VarSet: {
{}} |dictDictionary of Tecplot variable values to set within layout file
- ContourLevels: {
[]} | [CL] |list(dict)List of min, max, and delta values for contours; used to change limits for different solutions
- ColorMaps: {
[]} | [CM] |list(dictList of color map dictionaries; used to change coloration for different solutions
The full set of options for the dictionaries used in ContourLevels is shown below.
- CL:
dictDictionary of ContourLevel settings for some conditions
- NContour:
intIndex of Tecplot color map to alter
- Constraints: {
None} |list(str)List of constraints to describe which cases these instructions should be applied to
- MinLevel:
float|strValue of lower limit of minimum of contour level or Python text to
eval()after substituting sigils- MaxLevel:
float|strValue of upper limit of minimum of contour level or Python text to
eval()after substituting sigils- Delta:
float|strValue of interval between contours or Python text to
eval()after substituting sigils
The full set of options for the dictionaries used in ColorMaps is shown below.
- CM:
dictDictionary of ColorMap settings for some conditions
- NContour:
intIndex of Tecplot color map to alter
- Constraints: {
None} |list(str)List of constraints to describe which cases these instructions should be applied to
- ColorMap:
dictDictionary of colors (or pair of colors if inserting a sharp color boundary) at specified values of the contour variable