visit-dav / visit

VisIt - Visualization and Data Analysis for Mesh-based Scientific Data
https://visit.llnl.gov
BSD 3-Clause "New" or "Revised" License
434 stars 112 forks source link

Impossible to load tecplot plt file #17358

Closed VoyageG closed 2 years ago

VoyageG commented 2 years ago

training_DR_350_solution.zip Hello, When i tried to load this file, visit can't read it. Here is the message : VisIt could not read from the file "XXXX\training_DR_315_solution.plt".

The generated error message was:

There was an error opening XXXX\training_DR_315_solution.plt. It may be an invalid file. VisIt tried using the following file format readers to open the file: Tecplot

Tecplot can read it.

I tried on windows 10 and mac os monterey.

Best

markcmiller86 commented 2 years ago

@VoyageG can you mention which version of VisIt you were using?

markcmiller86 commented 2 years ago

@VoyageG when I run with -debug 5 and examine A.mdserver.5.vlog, I see this...

GetMetaDataRPCExecutor::Update - file=./training_DR_350_solution.plt, timeState=0, forceReadAllCyclesAndTimes=0, forcedFileType=, treatAllDBsAsTimeVarying = 0, createMeshQualityExpressions = 1, createTimeDerivativeExpressions = 1, createVectorMagnitudeExpressions = 1
MDServerConnection::GetDatabase: Need to get a new database. file=./training_DR_350_solution.plt, timeState=0, forceReadAllCyclesAndTimes=0, forcedFileType=, treatAllDBsAsTimeVarying = 0
avtDatabaseFactory: trying extension-matched format Tecplot_1.0
Trying to open the file with the Tecplot file format, strict mode is on
avtTecplotBinaryFileFormat::MatchFormat: Tecplot version: 102
Asked TecplotBinary to activate timestep, but it did not define how to do that.
TitlesAndVariables
{
fileType = 0
title = "training_DR_350"
varNames = X, Y, Z, x_velocity, y_velocity, z_velocity, ke, pressure, length, viscosity, walldistsol, cellmk, 
}

TecplotFile::Read: Process record: 299
TecplotFile::Read: zone = 
zoneName = xcentre
parentZone = -1
strandID = -1
solutionTime = 0
zoneColor = -1
zoneType = FEQUADRILATERAL
dataPacking = 0
varLocation = 0
centering = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
rawLocalFaceNeighbors = 1
numUserDefinedNeighborConnections = 0
numPts=0
numFaces=0
numFaceNodes=0
numBoundaryFaces=0
numBoundaryConnections=0
numElements=0
iCellDim=0
jCellDim=1
kCellDim=1

name="^A^A^A^A^A^Ap^AB^V", valueFormat=0, value=""

TecplotFile::Read: Process record: 299
TecplotFile::Read: zone = 
zoneName = ycentre
parentZone = -1
strandID = -1
solutionTime = 0
zoneColor = -1
zoneType = FEQUADRILATERAL
dataPacking = 0
varLocation = 0
centering = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
rawLocalFaceNeighbors = 1
numUserDefinedNeighborConnections = 0
numPts=0
numFaces=0
numFaceNodes=0
numBoundaryFaces=0
numBoundaryConnections=0
numElements=0
iCellDim=0
jCellDim=1
kCellDim=1

name="^A^A^A^A^A^Aj^A§^S", valueFormat=0, value=""

TecplotFile::Read: Process record: 299
TecplotFile::Read: zone = 
zoneName = zcentre
parentZone = -1
strandID = -1
solutionTime = 0
zoneColor = -1
zoneType = FEQUADRILATERAL
dataPacking = 0
varLocation = 0
centering = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
rawLocalFaceNeighbors = 1
numUserDefinedNeighborConnections = 0
numPts=0
numFaces=0
numFaceNodes=0
numBoundaryFaces=0
numBoundaryConnections=0
numElements=0
iCellDim=0
jCellDim=1
kCellDim=1

name="^A^A^A^A^A^AÀ^A
<9f>", valueFormat=0, value=""

TecplotFile::Read: Process record: 299
TecplotFile::Read: zone = 
zoneName = bat1
parentZone = -1
strandID = -1
solutionTime = 0
zoneColor = -1
zoneType = FETRIANGLE
dataPacking = 0
varLocation = 0
centering = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
rawLocalFaceNeighbors = 1
numUserDefinedNeighborConnections = 0
numPts=0
numFaces=0
numFaceNodes=0
numBoundaryFaces=0
numBoundaryConnections=0
numElements=0
iCellDim=0
jCellDim=1
kCellDim=1

name="^A^A^A^A^A^A", valueFormat=1885, value="F"

TecplotFile::Read: Process record: 0
TecplotFile::Read: recordType=0
Exception: (InvalidFilesException) src/databases/Tecplot/avtTecplotBinaryFileFormat.C, line 384: There was an error opening ./training_DR_350_solution.plt. It may be an invalid file.

The lines with funky characters such as name="^A^A^A^A^A^A", valueFormat=1885, value="F" suggest some kind of data corruption issue.

What can you tell us about this Tecplot file? How might it be different from Tecplot files we run in our tests? Is it maybe using unicode characters?

VoyageG commented 2 years ago

Hello @markcmiller86 Thank you for your answer. I used Visit 3.2.2. This tecplot file is "home made" from another program. Unfortunately i don't have source code of this program. Let me know how i can help you.

markcmiller86 commented 2 years ago

If by "home made", you mean the file may not be produced in a "standard" way...do you have any evidence to indicate other tecplot tools read it properly?

OTOH, maybe by "home made", you simply mean that you're using some off-the-shelf program that is not part of the suite of software hosted on tecplot.com but is otherwise known to produce valid/good tecplot files.

Do you know if it uses unicode characters?