Ansys Learning Forum Forums Discuss Simulation LS Dyna Location of results when using python or cmd to call ls-run to calculate k files Reply To: Location of results when using python or cmd to call ls-run to calculate k files

Reno Genest
Ansys Employee

Hello,

By default, the results files (d3plot) and other output files (messag, d3hsp, etc.) are written in the working directory where the .k file is located. I think there is something wrong with your Python script.

I would do the process manually without the Python script first. Does it work?

Also, I would simplify your Python script to only run LS-DYNA. Are you able to get the results file in the working directory? Then, add complexities later.

At last, why do you use LS-RUN? Why not use LS-DYNA command lines directly in your Python script? What LS-RUN does is it takes inputs (number of cores, input file location, solver location, etc.) and creates the LS-DYNA command line and sends it to the computer. The command line created by LS-RUN is in the "Preview" field of LS-RUN:

 

You can run this command line directly in command prompt.

 

Let me know if this helps or not.

 

Reno.