S5.Tecplot.TPHeaderZone#

class S5.Tecplot.TPHeaderZone(zonestr='Zone T = " ", I = 1, J = 1, K = 1, F = POINT')[source]#

Bases: object

Class for Tecplot zone details in the file header, inc the while line while init and details will be populated by regex as object attributes.

>>> TPHeaderZone('Zone T = "", I = 1, J = 1, K = 1, F = POINT')

This line is also the default input if no string is inputed and the attributed can be changed later.

zonetitle#

The Zone title.

zonetype#

The ZONETYPE parameter.

ni#

Number of datapoints in the I direction.

nj#

Number of datapoints in the J direction.

nk#

Number of datapoints in the K direction.

F#

Tecplot data packing format (POINT)

__init__(zonestr='Zone T = " ", I = 1, J = 1, K = 1, F = POINT')[source]#

Methods

__init__([zonestr])

to_string()

Return the zone line as a str for writing to .dat.

to_string() str[source]#

Return the zone line as a str for writing to .dat.

Returns:

Str complied from the obj attributes as the zone line in the header.