OOF2: The Manual


Contour Line (PlainContourDisplay) — Draw contour lines for the given output data.




  • Base class: DisplayMethod
  • Parameters:

    Time at which to plot Type: A floating point number, or the earliest or latest time.
    Quantity to be plotted Type: An Output object whose value is a real number.
    Plot at displaced or original position? Type: An Output object whose value is a position in the xy plane.
    level of lowest contour, or 'automatic' Type: An integer, a real number, or the string 'automatic'.
    level of highest contour, or 'automatic' Type: An integer, a real number, or the string 'automatic'.
    number of levels or list of levels (in []) Type: An integer, or a list of numbers.
    number of internal subdivisions per element Type: Integer.
    line width Type: An integer in the range [0, 10].
    line color Type: An object of the Color class.


PlainContourDisplay draws a contour plot of a ScalarOutput quantity on a Mesh with lines at specified contour values.

what is the value to be plotted. [32]

where determines whether the plot is drawn on the original undistorted mesh, at the actual displaced elements, or at enhanced displaced positions.

min and max specify the range of the data to be plotted. One or both of them may be set to automatic, in which case they are determined by the actual limits of the data.

levels determines the number of contour lines to be drawn. It can be either an integer, in which case the specified number of lines will be evenly spaced between min and max, or it may be a Python list of real numbers specifying the contour values, e.g,[0.0, 0.1, 0.2].

The OOF2 contour plotting routines divide each element into a number of small triangles (bins), and linearly interpolate the plotted quantity within the bins. nbins is the number of bins along the edge of a Mesh element. A small value of nbins will lead to a faster but cruder plot.nbins must be at least 1.

[32] I don't know. Third base!