cory.quammen
(Cory Quammen (Kitware))
May 28, 2019, 2:23pm
1
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.
I have made significant progress in developing a .vtk format for a basic geophysical package I have developed.
A typical model can have around 100M+ elements, which takes approximately 40 minutes to read into PARAVIEW.
Can you please tell me if there is a way to save the database so I do not have to read it in and spend 40-60 minutes, each time I would like to read the results?
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
Nick
cory.quammen
(Cory Quammen (Kitware))
May 31, 2019, 12:47pm
4
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')
?