andy5powell
Structural
- Feb 11, 2013
- 10
Hello everybody,
I am creating a python script to run ANSYS Mechanical files for numerous load cases. So far I have managed to set the python script up to create a input journal within ANSYS which creates and changes certain loads and geometries associated with that load case. At present all of my variables are defined by Parameters and read through the python file from ANSYS.
Part of that study looks at varying the preload in a bolt, obtaining an average stress from a path, then applying a force and obtaining the average stress again. The difference between average stresses will be used as part of a study. I know I can create a CSV file to extract the results that I require, however what I am stuck on is how to use python (or ANSYS commands) to vary the initial preload in the study and then apply a load after this. Unfortunately I cannot define bolt preload using the parameters or specify a load to be applied after this.
Can anyone point me in the direction of the coding or method to use to alter the preload on the bolt and then apply a load on the load step after this.
Thanks
I am creating a python script to run ANSYS Mechanical files for numerous load cases. So far I have managed to set the python script up to create a input journal within ANSYS which creates and changes certain loads and geometries associated with that load case. At present all of my variables are defined by Parameters and read through the python file from ANSYS.
Part of that study looks at varying the preload in a bolt, obtaining an average stress from a path, then applying a force and obtaining the average stress again. The difference between average stresses will be used as part of a study. I know I can create a CSV file to extract the results that I require, however what I am stuck on is how to use python (or ANSYS commands) to vary the initial preload in the study and then apply a load after this. Unfortunately I cannot define bolt preload using the parameters or specify a load to be applied after this.
Can anyone point me in the direction of the coding or method to use to alter the preload on the bolt and then apply a load on the load step after this.
Thanks