Hi,
I have created a water level in "flow conditions" with the following Python command:
g_i.gotoflow()g_i.waterlevel((-1,-6),(9,-6),(9,0),(19,0))
This worked out fine. Now I can't find the right command to make this waterlevel global. I did this in GUI in Plaxis and this command appeared in the command line:
_setglobalwaterlevel UserWaterLevel_1 InitialPhase
I have tried many different Python commands, but can't find the the command with the right syntax in Python. Can you please help me solving this?
Do you have any advice in general when solving this kind of problem?
When writing Python commands to Plaxis I usually use the command line (+echo and info), the scripting examples on Plaxis Soilvision and this forum to write commands in Python. Can you recommend any other tool when writing Python commands in Plaxis?
best regards,
Dina Hansen
Dear Dina,
To answer first to your question the command to use is:
g_i.setglobalwaterlevel(g_i.UserWaterLevel_1, g_i.InitialPhase)
This can be found in our Scripting reference under Help menu, shown here: Scripting reference and how to use it - PLAXIS | SOILVISION Wiki - PLAXIS | SOILVISION - Bentley Communities
This article can also be a first step: Identify Python commands from Plaxis command line - PLAXIS | SOILVISION Wiki - PLAXIS | SOILVISION - Bentley Communities
Note that the water level you defined has a vertical component which will create what we call a z-shaped phreatic line. This is to be avoided especially when using Phreatic as a pore pressure calculation type as it will develop inaccurate pore pressures on each side.
I would advise you to follow the SIG about PLAXIS CONNECT Edition: Excavation Dewatering and Common Pitfalls which is found in our Learning with PLAXIS - on-demand - PLAXIS | SOILVISION Wiki - PLAXIS | SOILVISION - Bentley Communities to give you some more insight.