calculix / ccx2paraview

CalculiX to Paraview converter (frd to vtk/vtu). Makes possible to view and postprocess CalculiX analysis results in Paraview. Generates Mises and Principal components for stress and strain tensors.
GNU General Public License v3.0
91 stars 18 forks source link

Incorrect file endings in .pvd file #32

Open DavidVonRueden opened 11 months ago

DavidVonRueden commented 11 months ago

Hello, First of all, thank you for this tool! I ran into an issue using the conversion from .frd to vtu. The conversion to to .vtu works just fine resulting in files like: shell.01.vtu shell.02.vtu .... The created .pvd file then contains

        <DataSet file="shell.01vtu" timestep="0.002"/>
        <DataSet file="shell.02vtu" timestep="0.004"/>

Due to the missing dot, the correct .vtu files can't be opened. I could resolve this issue by changing the following section: https://github.com/calculix/ccx2paraview/blob/43287b53bbbb029b56f2d4b02dc489eebe7bd8f8/ccx2paraview.py#L959-L963

f.write('\t\t<DataSet file="{}.vtu" timestep="{}"/>\n'\ 
         .format(os.path.basename(file_name), inc))

Can you confirm this behaviour on your side?