Speed Up Python Script in PLAXIS 3D

Hi,

I am working on a python script for the random field analysis in PLAXIS 3D. I have one nested loop to read the random field parameters from a spreadsheet and assign them to desired spatial locations, however, it takes a couple of hours to finish one simulation. The most time-consuming code is: g_i.setmaterial(desired soil volume, materials), please note that I have millions of soil volumes to assign. I am wondering if the multiprocessing or multi-threads will help my problem, and is there another way to speed up the python script in PLAXIS.

Thanks!

Parents
  • Dear Kunyu,

    Great to hear that you are using the PLAXIS Python scripting facilities to automate such a large scale analysis. I have to admit "millions of soil volumes" is beyond anything I have heard or seen before.

    Can you please specify which version of PLAXIS you are using?

    Have you measured the time the command takes? 

    Can you send us an example of the command that is run in the PLAXIS command line (or the Python command)?

    I can imagine that the higher the number of materials you have the more time will be spent on validating each material. Note that PLAXIS runs many validation checks on each material to make sure it is ready to go for calculations. 

Reply
  • Dear Kunyu,

    Great to hear that you are using the PLAXIS Python scripting facilities to automate such a large scale analysis. I have to admit "millions of soil volumes" is beyond anything I have heard or seen before.

    Can you please specify which version of PLAXIS you are using?

    Have you measured the time the command takes? 

    Can you send us an example of the command that is run in the PLAXIS command line (or the Python command)?

    I can imagine that the higher the number of materials you have the more time will be spent on validating each material. Note that PLAXIS runs many validation checks on each material to make sure it is ready to go for calculations. 

Children
No Data