Dear Support Team,
For example, I have five phases of embankment staged construction with Plastic calculations:
After successful calculation I would like to calculate the same phase sequence (the same five stages), but with Consolidation type of calculation (or another activated structures). An alternative solution, like this:
Maybe, it is not very difficult for five phases, but it can be an issue to set the same 15–20 phases manually.
Could you please inform me whether it is possible to copy phase sequence?It is interesting to copy activated geometry and phase settings. Maybe we have possibilities of regenerate, set, groupfiltered and apply options for optimisation.
Great thanks in advance.
And to give you an example with Python scripting, the code I shared can be made as a script to run easily from Expert menu.
Before the main Python code, you can add the following boilerplate and the script will run for any user:
from plxscripting.easy import *s_i, g_i = new_server()
# add rest of code here
This file can be saved as a Python script, e.g. add_consolidation_phases.py and placed in (default location):C:\Program Files\Bentley\Geotechnical\PLAXIS 2D CONNECT Edition V20\pytools\input
Then, in Input go to Expert > Run Python tool > add_consolidation_phases
Dear Stefanos,
Thank you for the clarifying information.Python scirpting is the next step for me =)
For now I try to use only command reference.I suppose, there are not so many users in our country who use command line in PLAXIS (all the more Python). On the other hand I realise that it is powerful instrument for optimisation and automatisation of routine process. In this case PLAXIS has a great advantage in comparasing to other competitors. That's why I try to provide this information to our clients.
Wow, it looks like a magic for me. Thank you very much for an example and for your help.
P. S. Great thanks for your article about Swept meshing option. It has clarified the meaning of the option.
I've got the same question and I simply want to create a new phase sequence.
can I directly create a file as follows:
for parent in g_i.phases[:]:
newphase = g_i.phase(parent)
thanks a lot!
Dear Yusha,
Yes, you can. Be careful with using the proper object names as Python does not accept typos: g_i.Phases , is the correct object name of the phases group.
The code that I added has some if-statements to check for a calculation type, but if you remove those, you end up with the code you suggest, too.
Note that the best is to try your code directly in a simple project. If you have problems with that, please submit a service request.
Then, one of our support engineers can help you in detail: https://apps.bentley.com/srmanager/ProductSupport