I am using gridin, read vtk file, in read_vtk to verify the line 1.2.3.4 in 
the vtk file, the first line must be # vtk DataFile Version 3.0, because of 
the update of the vtk version, I am now using the new version 5.1 to read 
and write, I can only write the old version # vtk DataFile Version 4.2, 4.2 
and 3.0 are in the same format, when I manually change 4.2 to 3.0, dealii 
still reports an error, # vtk DataFile Version 3.0 is not recognized.

On Wednesday, November 13, 2024 at 10:49:41 PM UTC+8 Wolfgang Bangerth 
wrote:

> On 11/12/24 21:31, 王艺康 wrote:
> > 
> > I would like to inquire if dealii can only input vtk3.0
>
> Hi,
> Is your question whether VTK is the only possible input format for meshes, 
> or 
> whether 3.0 is the only supported version for reading VTK?
>
> The answer to the first question is of course no. Take a look at the 
> GridIn 
> class to see which formats are supported. For the second question, you can 
> link against the VTK library and I believe that then you can read whatever 
> version the VTK library supports (but I'm not entirely sure about that).
>
> Best
> W.
>
> -- 
> ------------------------------------------------------------------------
> Wolfgang Bangerth email: bang...@colostate.edu
> www: http://www.math.colostate.edu/~bangerth/
>
>
>

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/dealii/da48036c-8524-47a1-a053-3124cce7ab4bn%40googlegroups.com.

Attachment: 1.vtk
Description: Binary data

Reply via email to