<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://communities.bentley.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Set global waterlevel with Python</title><link>https://communities.bentley.com/products/geotech-analysis/f/forum/208313/set-global-waterlevel-with-python</link><description>Hi, 
 I have created a water level in &amp;quot;flow conditions&amp;quot; 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&amp;#39;t find the right command to make this waterlevel global. I did this</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Set global waterlevel with Python</title><link>https://communities.bentley.com/thread/630480?ContentTypeID=1</link><pubDate>Fri, 22 Jan 2021 08:38:59 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:b6510c03-4b8f-4261-968e-334e147355fa</guid><dc:creator>Stefanos Papavasileiou</dc:creator><description>&lt;p&gt;Dear Dina,&lt;/p&gt;
&lt;p&gt;To answer first to your question the command to use is:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;g_i.setglobalwaterlevel(g_i.UserWaterLevel_1, g_i.InitialPhase)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;This can be found in our Scripting reference under Help menu, shown here:&amp;nbsp;&lt;a href="/products/geotech-analysis/w/plaxis-soilvision-wiki/45447/scripting-reference-and-how-to-use-it"&gt;Scripting reference and how to use it - PLAXIS | SOILVISION Wiki - PLAXIS | SOILVISION - Bentley Communities&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This article can also be a first step:&amp;nbsp;&lt;a href="/products/geotech-analysis/w/plaxis-soilvision-wiki/45454/identify-python-commands-from-plaxis-command-line"&gt;Identify Python commands from Plaxis command line - PLAXIS | SOILVISION Wiki - PLAXIS | SOILVISION - Bentley Communities&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;I would advise you to follow the SIG about &lt;a href="https://learn.bentley.com/app/VideoPlayer/LinkToIndividualCourse?LearningPathID=113626&amp;amp;CourseId=129954&amp;amp;MediaID=5019074" rel="noopener noreferrer" target="_blank"&gt;PLAXIS CONNECT Edition: Excavation Dewatering and Common Pitfalls&lt;/a&gt;&amp;nbsp;which is found in our&amp;nbsp;&lt;a href="/products/geotech-analysis/w/plaxis-soilvision-wiki/47958/learning-with-plaxis---on-demand"&gt;Learning with PLAXIS - on-demand - PLAXIS | SOILVISION Wiki - PLAXIS | SOILVISION - Bentley Communities&lt;/a&gt;&amp;nbsp;to give you some more insight.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>