Ansys Learning Forum Forums Discuss Simulation General Mechanical How to use script to run the cfile for creating k file? Reply To: How to use script to run the cfile for creating k file?

igandiko
Ansys Employee

Your setup is not correct. In stage1, you select cfile. ls-opt will replace parameters and copy this cfile as LsPrepostOpt.inp. LSPP will run LsPrepostOpt.inp and generate ls-dyna k file. Lets say this k file is model.k. 

Double click on the small box between Stage1 and LS-Dyna and define file transfer operation to copy model.k file from Stage1 directories to LS-Dyna directories as DynaOpt.inp. Just enter "model.k" as "source" and "DynaOpt.inp" as "destination". 

In LS-Dyna stage, don't select any input file. DynaOpt.inp will directly come from LSPP stage and your ls-dyna job script will have i= DynaOpt.inp to run this file.