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: dict

Dictionary of settings for Tecplot subfigure

Type: {"Tecplot"} | str

Subfigure type

Header: {""} | str

Heading placed above subfigure (bold, italic)

Position: "t" | "c" | {"b"}

Vertical alignment of subfigure

Alignment: "left" | {"center"}

Horizontal alignment

Width: {0.5} | float

Width of subfigure as a fraction of page text width

FigWidth: {1024} | int

Width of the image generated by Tecplot in pixels

VarSet: {{}} | dict

Dictionary 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 (dict

List 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: dict

Dictionary of ContourLevel settings for some conditions

NContour: int

Index 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 | str

Value of lower limit of minimum of contour level or Python text to eval() after substituting sigils

MaxLevel: float | str

Value of upper limit of minimum of contour level or Python text to eval() after substituting sigils

Delta:float | str

Value 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: dict

Dictionary of ColorMap settings for some conditions

NContour: int

Index of Tecplot color map to alter

Constraints: {None} | list (str)

List of constraints to describe which cases these instructions should be applied to

ColorMap: dict

Dictionary of colors (or pair of colors if inserting a sharp color boundary) at specified values of the contour variable