engcas.blogg.se

Tecplot show border
Tecplot show border







tecplot show border

setter def contour_type ( self, value ): self.

tecplot show border

In this example, we enable both flooding and contour lines:: > from nstant import ContourType > contour = plot.fieldmap(0).contour > ntour_type = ContourType.Overlay """ return self. `ContourType.PrimaryValue` Filled color by the value at the primary corner of the cells. `ContourType.AverageCell` Filled color by the average value within cells. `ContourType.Overlay` Lines overlayed on flood. Possible values are: `ContourType.Flood` (default) Filled color between the contour levels. SHOW ) def contour_type ( self ): """`ContourType`: `ContourType` to plot. Example usage:: > contour = plot.fieldmap(0).contour > contour.show = True """ return self.

tecplot show border

CONTOUR ) def show ( self ): """`bool`: Enable drawing the contours. figure:: /_static/images/fieldmap_contour.png :width: 300px :figwidth: 300px """ def _init_ ( self, fieldmap ): super (). frame = tp.active_frame() dataset = frame.dataset for v in : dataset.add_variable(v) zone = dataset.add_ordered_zone('Zone', (30,30,30)) xx = np.linspace(0,30,30) for v,arr in zip(,np.meshgrid(xx,xx,xx)): zone.values(v) = arr.ravel() execute_equation(' ') # Enable 3D field plot and turn on contouring # with boundary faces ot_type = PlotType.Cartesian3D plot = ot() srf = plot.fieldmap(0).surfaces srf.surfaces_to_plot = SurfacesToPlot.BoundaryFaces plot.show_contour = True # get the contour group associated with the # newly created zone contour = plot.fieldmap(dataset.zone('Zone')).contour # assign flooding to the first contour group contour.flood_contour_group = ntour(0) contour.flood_contour_group.variable = dataset.variable('P') contour.flood_contour_lormap_name = 'Sequential - Yellow/Green/Blue' contour.flood_contour_ = False # save image to PNG file tp.export.save_png('fieldmap_contour.png', 600, supersample=3). # Add variables P,Q,R to the dataset and give # values to the data. code-block:: python import numpy as np import tecplot as tp from nstant import * from import execute_equation # Get the active frame, setup a grid (30x30x30) # where each dimension ranges from 0 to 30. In this example, we flood by the first contour group (index: 0).

tecplot show border

Three different contour groups may be used though there are eight total groups that can be configured in a single plot. This object controls which contour groups are associated with flooding, line placement and line coloring. SubStyle ): """Style control for flooding and contour lines.









Tecplot show border