The PLAXIS Calculation Manager is a Python tool that allows for running multiple PLAXIS 2D and/or PLAXIS 3D calculations automatically.
In the PLAXIS CONNECT Edition V22.00, the Calculation Manager returns an error when trying to save the projects after the calculation finishes. An example of this error is illustrated below:
This is now solved in PLAXIS 2D CONNECT Edition V22 Update 1 and PLAXIS 3D CONNECT Edition V22 Update 1 (released May 2022).
For older versions, as a temporary workaround, it is also possible to manually use Python scripting to replicate the functionality of the Calculation Manager. Here, a simple solution is provided for PLAXIS 2D. The same approach as a workaround can be used for PLAXIS 3D.
import subprocess # list with projects to be calculated projects_to_run = [r'C:\Projects\Project_1.p2dx', r'C:\Projects\Project_2.p2dx', r'C:\Projects\Project_3.p2dx'] # setting constants plx_input_path = r"C:\Program Files\Bentley\Geotechnical\PLAXIS 2D CONNECT Edition V22\Plaxis2DXInput.exe" plx_input_port = 10000 plx_input_pass = r'YOUR_PASSWORD' # launch PLAXIS application with port and password plx_2D_i = subprocess.Popen([plx_input_path, "--AppServerPort={}".format(plx_input_port), "--Password={}".format(plx_input_pass)]) # boilerplate for PLAXIS remote scripting server from plxscripting.easy import * s_i, g_i = new_server('localhost', plx_input_port, password=plx_input_pass) # for-loop that will run all projects from the list for project in projects_to_run: print('Running: {}'.format(project)) s_i.open(project) g_i.calculate(True) g_i.save() s_i.close() plx_2D_i.terminate()
To run the Python script:
Note that if you are interested in running the script directly without closing the PLAXIS application (step 7), you can comment out the lines #40 - #42 and #56 in the code (add a # in front of them) to skip the launching and closing of the PLAXIS application (using the subprocess module).
Alternatively, one can follow the information shared in the article Practical use of the commands runner: using a batch file to run commands.