hexagon logo

Scripting for automatic preform generation based on die designs!

Hello community! 
 
I am not strong at scripting!
 
I am trying to optimize my forging preform models using scripting, may I know what would be the best modelling software which we can use to communicate between modelling software and Simufact Forming module? 
 
Is there a process in Simufact itself which will help us to modify preforms based on strain constraints?
 
Thanks,
Vignesh.
Parents
  • In the Simufact Forming Python Terminal (v2024.2), a reference documentation is linked with all the available classes. Additionally a tutorial chapter is linked too. However currently we don't have any example regarding result extraction. As a starting point for you, following script would print out the list of the total displacement values for all nodes for the component "UpperSheet" in the last available result increment.
     
    ################################
    proj=current_project()
    proc=proj.all_processes[-1]
    rslts=proc.results[-1]
    msh=rslts.mesh("UpperSheet")
    disp=msh.node_results("TOTDISP")
    for i in disp:
       print(i)
    ###############################
Reply
  • In the Simufact Forming Python Terminal (v2024.2), a reference documentation is linked with all the available classes. Additionally a tutorial chapter is linked too. However currently we don't have any example regarding result extraction. As a starting point for you, following script would print out the list of the total displacement values for all nodes for the component "UpperSheet" in the last available result increment.
     
    ################################
    proj=current_project()
    proc=proj.all_processes[-1]
    rslts=proc.results[-1]
    msh=rslts.mesh("UpperSheet")
    disp=msh.node_results("TOTDISP")
    for i in disp:
       print(i)
    ###############################
Children
No Data