hexagon logo

How to convert .ARC files to .VTK

Hello,
 
I would like to know how to convert some .ARC files created in 2013 DYTRAN to a format supported by PARAVIEW in order to postprocess some results.
 
I know there is a converter which can be called with the following sintaxis in CMD:
 
C:\MSC.Software\Dytran\201302\bin\exe\arc2vtk.exe [-ascii] [-vtk] [-nonauto] <archive-file.ARC>
 
But how should I execute it? Do i have to have all my .ARC files in the same location as the arc2vtk.exe?
 
Thanks in advance!
  • Hi Bhaven,
     
    You have to have all the .ARC files in one directory (any directory). But do not create that directory under the Dytran installation as it will clutter the installation directory. In fact, do not create any of your analysis directory under C:\MSC.Software. This directory should be only used for software installations.
     
    Suppose you have all your .ARC files in a directory named C:\test, you can create a CMD and move to this directory by typing and returning CD\test. The you can type the following to execute the conversion:
     
    C:\MSC.Software\Dytran\201302\bin\exe\arc2vtk.exe [-ascii] [-vtk] [-nonauto] <archive-file.ARC>
  • Hi Guys,
    I've found it easier to use the windows Open With... function on a filename_0.ARC file to point to a bat file that will run the converter.
     
    This bat file would point to the exe mentioned above and the %1 to add the file as argument automatically, eg:
     
    C:\MSC.Software\Dytran\201302\bin\exe\arc2vtk.exe %1
     
    Then this can be run on all filename_0.ARC files.
     
    Alternatively if you have python installed, the script attached can be run in a bat file that will find all *_0.ARC files and convert them as well as create a simple paraview script that processes all pvd files and runs the cellDataToPointData filter. If the ARC file has 'Euler' somewhere in its name I also process the FMATPLT isovolume filter afterwards.

    Attached Files (1)