CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   SU2 (https://www.cfd-online.com/Forums/su2/)
-   -   Unable to get flow output files in parallel run (https://www.cfd-online.com/Forums/su2/186974-unable-get-flow-output-files-parallel-run.html)

quarkz April 25, 2017 23:33

Unable to get flow output files in parallel run
 
Hi,

When I run SU2 in parallel, I am not able to get the flow_xxx.vtk files. I was able to obtain restart_flow_ and surface_flow_ files. However, in single cpu run, I was able to get flow_xxx.vtk files.

I tried:

mpirun -n 4 SU2_CFD cylinder2d.cfg

and

parallel_computation.py -n 4 -f cylinder2d.cfg

but both didn't work.

Other than that, the run was successful. Anyone has some ideas?

Sprotte April 26, 2017 06:56

You have to run SU2_SOL to get the Paraview files, in a parallel run they cannot be created during runtime.

Kind regards, Ole

quarkz April 27, 2017 22:28

I realised that if I complete my parallel computation, at the end, it will write the flow files:
Writing Paraview ASCII file (surface grid).
Reading and storing the solution from restart_flow_00019.dat.
Writing the volume solution for time step 19.
Merging connectivities in the Master node.
Merging volumetric quadrilateral grid connectivity.
Merging surface line grid connectivity.
Merging solution in the Master node.
Writing Paraview ASCII file (volume grid).
Writing Paraview ASCII file (surface grid).

But if I stopped half way, then it doesn't. I tried to use SU2_SOL but I got the error:

------------------------- Solution Postprocessing -----------------------
SU2 flow file solution_flow_00000.dat not found
application called MPI_Abort(MPI_COMM_WORLD, 1) - process 0
[unset]: write_line error; fd=-1 buf=:cmd=abort exitcode=1
:
system msg for write_line failure : Bad file descriptor

So how can I get the flow output if I have to abort the run half-way?

Thanks!

talbring April 28, 2017 16:37

Either change the SOLUTION_FLOW_FILENAME to be the same as RESTART_FLOW_FILENAME or rename the restart_flow_*.dat files to solution_flow_*.dat before running SU2_SOL.

quarkz May 11, 2017 22:51

Ok got it working. Thanks talbring.

I also realised that if I'm using:

parallel_computation.py -n 4 -f cylinder2d.cfg

It will work too but the run must reached its end time, since the writing of the flow files is only after that.

If the job ended abruptly, I'll have to use SU2_SOL as described.


All times are GMT -4. The time now is 10:23.