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?
September 23, 2022 at 5:48 pm
Subscriber
Â
Thank you for your help, Imtiaz.
The issue is solved by these steps:
1. In the cfile, the path for saving the keyword is removed sice if you give a path, the same file will get overwritten; if you don't define a path, k file will be created locally in individual folders.
2. The section and material cards are moved to the main file. The thickness parameter can be defined directly in *SECTION using *PARAMETER, no need to define this in cfile.
Â
3. In cfile, there's only *part card for cube. The lines with "$" in cfile are removed since ls-opt was adding extra line if there is "$' in cfile and that caused issues in LSPP in writing correct *PART card.
Â