CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Tecplot (https://www.cfd-online.com/Forums/tecplot/)
-   -   Tecplot convert to SZPLT single our double precision? (https://www.cfd-online.com/Forums/tecplot/255791-tecplot-convert-szplt-single-our-double-precision.html)

nikosb April 29, 2024 17:46

Tecplot convert to SZPLT single our double precision?
 
When using the tec360 -convert command option to convert a Tecplot ASCII file to SZPLT file, for example:

tec360 -convert tecplot.dat -o tecplot.szplt

, can one specify single or double precision for the final szplit file?

wsfowler May 6, 2024 17:06

When converting ASCII files using:
> tec360 -convert ascii.dat -o binary.szplt
-or-
> preplot ascii.dat binary.plt

The data type defined in the ASCII file will be honored. If the data type is not specified, single precision is assumed.

In the header of the ASCII file below you can see the "DT" line, which specifies the data type. You may need to add this line to your ASCII files to get the data type you want when converting to binary.

I hope this helps,
Scott

Code:

TITLE    = "Internally created data set"
VARIABLES = "X"
"Y"
"Z"
"Single"
"Double"
"LongInt"
"ShortInt"
"Byte"
"Bit"
ZONE T="Rectangular zone"
 STRANDID=0, SOLUTIONTIME=0
 I=10, J=10, K=10, ZONETYPE=Ordered
 DATAPACKING=BLOCK
 DT=(SINGLE SINGLE SINGLE SINGLE DOUBLE LONGINT SHORTINT BYTE BIT )
 0.000000000E+00 1.111111119E-01 2.222222239E-01 3.333333433E-01 4.444444478E-01
 5.555555820E-01 6.666666865E-01 7.777777910E-01 8.888888955E-01 1.000000000E+00
 0.000000000E+00 1.111111119E-01 2.222222239E-01 3.333333433E-01 4.444444478E-01



All times are GMT -4. The time now is 04:18.