hexagon logo

Example script to run a folder of geometries.

Hello all,

I'm trying to run a folder with multiple different geometries generated in .stl format. I would like to run all of them using same dies. Is there an example script for this kind of problem. Also how does the preform/workpiece positioning takes place if i run multiple geometries. 

Thanks,

Vignesh. 

Parents
  • Hi Vignesh,

    we don't have a ready-to-use example script for such problem, but I believe this can be achieved quite easy.

    Basically you just need a template process first, you can do this manually or via scripting (I assumed you are fine with this) and then do following things for all your preform/workpiece geometries in a loop:

    1) Import the geometry

    2) Replace the geometry in the template process (or create a process copy and do all the things there)

    3) Positioning if necessary

    4) Create mesh for the new geometry

    5) All other necessary adjustments

    6) Run the simulation

    Currently, following positioning methods are available via scripting: translation, rotation (by value or transformation matrix) and bounding box alignment. You can find corresponding commands in our python document in class project -> component.

    I hope this helps. Please try from your side and let us know if you have further questions or problems.

    Regards,

    Qi

Reply
  • Hi Vignesh,

    we don't have a ready-to-use example script for such problem, but I believe this can be achieved quite easy.

    Basically you just need a template process first, you can do this manually or via scripting (I assumed you are fine with this) and then do following things for all your preform/workpiece geometries in a loop:

    1) Import the geometry

    2) Replace the geometry in the template process (or create a process copy and do all the things there)

    3) Positioning if necessary

    4) Create mesh for the new geometry

    5) All other necessary adjustments

    6) Run the simulation

    Currently, following positioning methods are available via scripting: translation, rotation (by value or transformation matrix) and bounding box alignment. You can find corresponding commands in our python document in class project -> component.

    I hope this helps. Please try from your side and let us know if you have further questions or problems.

    Regards,

    Qi

Children
  • Hi,
    to add one aspect regarding the positioning: In Simufact Forming for FE simulations, there are the positioning substages. See the forming control. It is a recommended approach to positioning all dies at the button dead center (thus the end of the stroke) and to place the workpiece well above all dies (including above the press driven dies). Now choose a stroke of 0 in the forming control and enable the substages "1) position workpiece to stationary dies" and "2) position dies attached to the press". 

    With this the positioning and the stroke calculation are done during the simulation in the solver.

    Regards,

    Christian