Skip to content

Commit

Permalink
Improve doc
Browse files Browse the repository at this point in the history
  • Loading branch information
henry2004y committed Oct 23, 2023
1 parent 97eda71 commit 64e4dae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/vtk.jl
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ end
convertTECtoVTU(head, data, connectivity, filename="out")
Convert unstructured Tecplot data to VTK. Note that if using voxel type data in VTK, the
connectivity sequence is different from Tecplot. Note that the 3D connectivity sequence in
Tecplot is the same with the `hexahedron` type in VTK, but different with the `voxel` type.
connectivity sequence is different from Tecplot: the 3D connectivity sequence in Tecplot is
the same as the `hexahedron` type in VTK, but different with the `voxel` type.
The 2D connectivity sequence is the same as the `quad` type, but different with the `pixel`
type. For example, in 3D the index conversion is:
```
Expand All @@ -98,7 +98,7 @@ end
function convertTECtoVTU(head, data, connectivity, filename="out")
nVar = length(head.variables)
points = @view data[1:head.nDim,:]
cells = Vector{MeshCell{VTKCellType,Array{Int32,1}}}(undef,head.nCell)
cells = Vector{MeshCell{VTKCellType,Array{Int32,1}}}(undef, head.nCell)

if head.nDim == 3
@inbounds for i = 1:head.nCell
Expand Down Expand Up @@ -136,7 +136,7 @@ function convertTECtoVTU(head, data, connectivity, filename="out")

# Add meta data from Tecplot AUXDATA
for i in eachindex(head.auxdata)
vtkfile[head.auxdataname[i],VTKFieldData()] = head.auxdata[i]
vtkfile[head.auxdataname[i], VTKFieldData()] = head.auxdata[i]
end

outfiles = vtk_save(vtkfile)
Expand Down

0 comments on commit 64e4dae

Please sign in to comment.