Loading large VTK files

Continuing the discussion from Define an arbitrary line:

This is a separate topic from the original discussion, so I split it into a new one.

100M+ elements is fairly for serial processing. Are your data files stored as binary or ASCII? Loading a binary file will be much faster. Can you run the ParaView server in parallel? Then you can use a parallel file format to load the data faster.

Thanks Cory for your prompt response.

How does the BINARY file mode work?

the first 3 lines are written in the VTK file in ASCII and the remainder file in BINARY mode or the whole lot of the VTK file is in BINARY.

BTW can you you please suggest the best OPEN statement for the BINARY file?

Many thanks


The first three lines are ASCII. Please see the VTK file format guide for details on binary VTK files.

Do you mean which function to use for opening a file for writing in binary mode, like fopen(fileName, 'wb')?