calculix : data out file --> csv

Tweet do2csv.py
>python do2csv.py infile outfile

Input (calculix data out)
output(CSV Format)
 displacements (vx,vy,vz) for set NUALL and time  0.1000000E+00
    22  2.4148E-02 -3.7286E-01  5.6866E-07


 displacements (vx,vy,vz) for set NUALL and time  0.2000000E+00
    22  4.6709E-02 -7.4586E-01  1.1268E-06
 displacements (vx,vy,vz) for set NUALL and time  0.3000000E+00
    22  6.7682E-02 -1.1190E+00  1.6903E-06
 displacements (vx,vy,vz) for set NUALL and time  0.4000000E+00
    22  8.7065E-02 -1.4923E+00  2.2536E-06
 displacements (vx,vy,vz) for set NUALL and time  0.5000000E+00
    22  1.0486E-01 -1.8657E+00  2.8170E-06
 displacements (vx,vy,vz) for set NUALL and time  0.6000000E+00
    22  1.2106E-01 -2.2393E+00  3.3804E-06
 displacements (vx,vy,vz) for set NUALL and time  0.7000000E+00
    22  1.3755E-01 -2.6827E+00  3.9431E-06
 displacements (vx,vy,vz) for set NUALL and time  0.8000000E+00
    22  1.5560E-01 -3.3028E+00  4.4960E-06
 displacements (vx,vy,vz) for set NUALL and time  0.9000000E+00
    22  1.7632E-01 -4.5788E+00  5.0618E-06
 displacements (vx,vy,vz) for set NUALL and time  0.1000000E+01
    22  5.3672E-02 -1.0092E+01  5.5810E-06
Name,Time,Node,ux,uy,uz,uAll,

NUALL,0.1000000E+00,22,0.024148,-0.37286,5.6866e-07,0.373641,
                                                                                            (0.373641=sqrt(ux^2+uy^2+uz^2)

NUALL,0.2000000E+00,22,0.046709,-0.74586,1.1268e-06,0.747321,
NUALL,0.3000000E+00,22,0.067682,-1.119,1.6903e-06,1.12104,
NUALL,0.4000000E+00,22,0.087065,-1.4923,2.2536e-06,1.49484,
NUALL,0.5000000E+00,22,0.10486,-1.8657,2.817e-06,1.86864,
NUALL,0.6000000E+00,22,0.12106,-2.2393,3.3804e-06,2.24257,
NUALL,0.7000000E+00,22,0.13755,-2.6827,3.9431e-06,2.68622,
NUALL,0.8000000E+00,22,0.1556,-3.3028,4.496e-06,3.30646,
NUALL,0.9000000E+00,22,0.17632,-4.5788,5.0618e-06,4.58219,
NUALL,0.1000000E+01,22,0.053672,-10.092,5.581e-06,10.0921,

Return

inserted by FC2 system