<?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/"><channel><title>Ferney Morales's Activities</title><link>https://communities.bentley.com/members/36b79c3a_2d00_181d_2d00_4934_2d00_b46b_2d00_3d7099bd4825</link><description>Ferney Morales's recent activity</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>Python: Looping through structural elements painfully slow</title><link>https://communities.bentley.com/products/geotech-analysis/f/forum/240863/python-looping-through-structural-elements-painfully-slow</link><pubDate>Wed, 25 Jan 2023 09:02:20 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:9a168e7d-580a-443e-818a-6204ecd39d43</guid><dc:creator>Ferney Morales</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have a simulation with 635 piles (embedded beams), which has 26 calculated Phases, I want to create a 4D array to save all the results for later postprocessing&lt;/p&gt;
&lt;p&gt;The structure of the array is as follows:&lt;/p&gt;
&lt;p&gt;1D: Number of evaluated points along each piles&lt;/p&gt;
&lt;p&gt;2D: Each pile&lt;/p&gt;
&lt;p&gt;3D: Phase ID&lt;/p&gt;
&lt;p&gt;4D: each result variable i.e. (X,Y,Z,N,Q12,Q13,M1,M2,M3,ux,uy,uz)&lt;/p&gt;
&lt;p&gt;I created a script with a double loop (one loops through each Phase, and the internal loop goes through all the piles). It starts running quite fast, but after a while it becomes way too slow. I mean, several hours (more than 20) and still only halfway. Is there a way to make it run faster?&lt;/p&gt;
&lt;p&gt;I think it has something to do with memory management, because I stopped in after some phases and restart the output program and it started again faster, but once again after a while it becomes really slow. I think each time I call the &amp;quot;getresults&amp;quot; command it stores the beam in memory but never release it... I must point out that the overall memory of the PC never gets full occupied (output only uses 3GB/32GB) and the processor use is lower than 30% (none of the&amp;nbsp;8 cores gets clogged with the process)&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It seems to me that it&amp;#39;s faster to select all beams and create the output table with the values and copy them in excel, but it would also take a lot of time to do it for all phases and it can&amp;#39;t be unattended, which is the point of these automatization tasks. I hope someone can give me some guide&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="python"&gt;import numpy as np
Results_Pile=np.empty([200,635,29,12]) # [num_segments-per-pile,num_piles,num_phases,num_variables]
for phase_id in range(1,27): 
    Piles = g_o.EmbeddedBeams
    pile_id = 0
    for Pile in Piles:
        A=[float(x) for x in(g_o.getresults(Piles[pile_id],g_o.Phases[phase_id], g_o.ResultTypes.EmbeddedBeam.X,&amp;quot;node&amp;quot;)).echo()[1:-1].split(&amp;quot;,&amp;quot;)]
        Results_Pile[0:len(A),pile_id,phase_id-6,0] = [float(x) for x in(g_o.getresults(Piles[pile_id],g_o.Phases[phase_id], g_o.ResultTypes.EmbeddedBeam.X,&amp;quot;node&amp;quot;)).echo()[1:-1].split(&amp;quot;,&amp;quot;)]
        Results_Pile[0:len(A),pile_id,phase_id-6,1] = [float(x) for x in(g_o.getresults(Piles[pile_id],g_o.Phases[phase_id], g_o.ResultTypes.EmbeddedBeam.Y,&amp;quot;node&amp;quot;)).echo()[1:-1].split(&amp;quot;,&amp;quot;)]
        Results_Pile[0:len(A),pile_id,phase_id-6,2] = [float(x) for x in(g_o.getresults(Piles[pile_id],g_o.Phases[phase_id], g_o.ResultTypes.EmbeddedBeam.Z,&amp;quot;node&amp;quot;)).echo()[1:-1].split(&amp;quot;,&amp;quot;)]
        Results_Pile[0:len(A),pile_id,phase_id-6,3] = [float(x) for x in(g_o.getresults(Piles[pile_id],g_o.Phases[phase_id], g_o.ResultTypes.EmbeddedBeam.N,&amp;quot;node&amp;quot;)).echo()[1:-1].split(&amp;quot;,&amp;quot;)]
        Results_Pile[0:len(A),pile_id,phase_id-6,4] = [float(x) for x in(g_o.getresults(Piles[pile_id],g_o.Phases[phase_id], g_o.ResultTypes.EmbeddedBeam.Q12,&amp;quot;node&amp;quot;)).echo()[1:-1].split(&amp;quot;,&amp;quot;)]
        Results_Pile[0:len(A),pile_id,phase_id-6,5] = [float(x) for x in(g_o.getresults(Piles[pile_id],g_o.Phases[phase_id], g_o.ResultTypes.EmbeddedBeam.Q13,&amp;quot;node&amp;quot;)).echo()[1:-1].split(&amp;quot;,&amp;quot;)]
        Results_Pile[0:len(A),pile_id,phase_id-6,6] = [float(x) for x in(g_o.getresults(Piles[pile_id],g_o.Phases[phase_id], g_o.ResultTypes.EmbeddedBeam.M1,&amp;quot;node&amp;quot;)).echo()[1:-1].split(&amp;quot;,&amp;quot;)]
        Results_Pile[0:len(A),pile_id,phase_id-6,7] = [float(x) for x in(g_o.getresults(Piles[pile_id],g_o.Phases[phase_id], g_o.ResultTypes.EmbeddedBeam.M2,&amp;quot;node&amp;quot;)).echo()[1:-1].split(&amp;quot;,&amp;quot;)]
        Results_Pile[0:len(A),pile_id,phase_id-6,8] = [float(x) for x in(g_o.getresults(Piles[pile_id],g_o.Phases[phase_id], g_o.ResultTypes.EmbeddedBeam.M3,&amp;quot;node&amp;quot;)).echo()[1:-1].split(&amp;quot;,&amp;quot;)]
        Results_Pile[0:len(A),pile_id,phase_id-6,9] = [float(x) for x in(g_o.getresults(Piles[pile_id],g_o.Phases[phase_id], g_o.ResultTypes.EmbeddedBeam.Ux,&amp;quot;node&amp;quot;)).echo()[1:-1].split(&amp;quot;,&amp;quot;)]
        Results_Pile[0:len(A),pile_id,phase_id-6,10] = [float(x) for x in(g_o.getresults(Piles[pile_id],g_o.Phases[phase_id], g_o.ResultTypes.EmbeddedBeam.Uy,&amp;quot;node&amp;quot;)).echo()[1:-1].split(&amp;quot;,&amp;quot;)]
        Results_Pile[0:len(A),pile_id,phase_id-6,11] = [float(x) for x in(g_o.getresults(Piles[pile_id],g_o.Phases[phase_id], g_o.ResultTypes.EmbeddedBeam.Uz,&amp;quot;node&amp;quot;)).echo()[1:-1].split(&amp;quot;,&amp;quot;)]
        
        pile_id += 1&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Design Approach Implementation - EC7 A3</title><link>https://communities.bentley.com/products/geotech-analysis/f/forum/241840/design-approach-implementation---ec7-a3</link><pubDate>Fri, 17 Feb 2023 13:39:40 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:b270da4a-4f22-4302-9fc7-675d4468128a</guid><dc:creator>Mohamad Raad</dc:creator><description>&lt;p&gt;Hello, I would appreciate you answering the following inquiry: When running a slope stability model on PLAXIS 2D while implementing manually partial safety factors, in my case the ones stated for Approach 3 of EC7, I&amp;#39;m having trouble deciding the basis on which each Construction Phase is considered passing or not. For instance, according to A3 in EC7, when using the right reduction factors for soil and structures&amp;#39; strengths, the Phase is considered verified in case the Safety Factor is above 1.00.&lt;/p&gt;
&lt;p&gt;For comparison, other slope stability software that are based on LEM, the SF is calculated based on Bishop&amp;#39;s method.&lt;/p&gt;
&lt;p&gt;Therefore in the case of PLAXIS&amp;#39;s FEM, what is the factor that can be representative of the SF which should be compared to 1.00? Is it the Mstage of each construction phase (where in that case, a phase is considered verified if it finishes the calculation properly)? Or are we obliged to add a Safety type phase for each Phase to extract the Msafety of each one based on c-phi reduction?&lt;/p&gt;
&lt;p&gt;Your help is much appreciated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Let me Help You</title><link>https://communities.bentley.com/achievements/687f4b6d-e18a-4e55-836c-49926ca2c9d9</link><pubDate>Mon, 13 Mar 2023 03:10:37 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:efb30d82-f791-47b4-9ca9-58bbc4fe21ce</guid><dc:creator /><description>Answer a question that is verified as helpful or correct.</description></item><item><title>Ask A Question I</title><link>https://communities.bentley.com/achievements/460ac7df-7ccc-4c42-a204-9e05eef3be09</link><pubDate>Wed, 25 Jan 2023 07:37:26 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:b4b7bc64-8004-48c2-a528-ba14e1103530</guid><dc:creator /><description>Ask a question in a forum.</description></item><item><title>how do multiple phases with partial SumMstage solve the general unbalance?</title><link>https://communities.bentley.com/products/geotech-analysis/f/forum/234968/how-do-multiple-phases-with-partial-summstage-solve-the-general-unbalance</link><pubDate>Fri, 02 Sep 2022 06:02:33 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:3b13c2ee-982d-463e-b502-aa12f8114cb4</guid><dc:creator>Ferney Morales</dc:creator><description>&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m working on a prototype model for a R&amp;amp;D project, and my idea is to create multiple phases, for which each one just a small amount of the total unbalance is solved each time, that way I can look at the intermediate results and take action upon.&lt;/p&gt;
&lt;p&gt;here &lt;a href="https://blog.virtuosity.com/how-to-speed-up-calculation-time-with-plaxis"&gt;https://blog.virtuosity.com/how-to-speed-up-calculation-time-with-plaxis&lt;/a&gt; is said: &amp;quot; SumMstage: &lt;span class="hs_cos_wrapper hs_cos_wrapper_meta_field hs_cos_wrapper_type_rich_text" id="hs_cos_wrapper_post_body"&gt;This translates the proportion of the initially applied load (at the beginning of the phase), referred to as the external forces which have been balanced by the development of soil stresses that are considered being the internal forces.&lt;/span&gt;&amp;quot; &lt;/p&gt;
&lt;p&gt;If I understand correctly, this means that if you have an unbalance at the beginning of a stage SumMStage will solve that proportion of that unbalance. If so, that means that if I assign a MSumStage=0.1 for Phase_1, at the end of its calculation 90% of the initial unbalance remains. Now, if in Phase_2 I have again SumMStage=0.1, would it mean that it will now solve 10% of the 90% left from Phase_1? and if we repeat the same over several phases would we get something like?:&lt;/p&gt;
&lt;table width="427"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width="77"&gt;&lt;/td&gt;
&lt;td width="134"&gt;Total unbalance at beggining of phase [%]&lt;/td&gt;
&lt;td width="134"&gt;SumMStage&lt;/td&gt;
&lt;td width="82"&gt;Percentage of total unbalance solved on current phase&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Phase_1&lt;/td&gt;
&lt;td&gt;100&lt;/td&gt;
&lt;td&gt;0.1&lt;/td&gt;
&lt;td&gt;10&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Phase_2&lt;/td&gt;
&lt;td&gt;90.0&lt;/td&gt;
&lt;td&gt;0.1&lt;/td&gt;
&lt;td&gt;9.0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Phase_3&lt;/td&gt;
&lt;td&gt;81.0&lt;/td&gt;
&lt;td&gt;0.1&lt;/td&gt;
&lt;td&gt;8.1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Phase_4&lt;/td&gt;
&lt;td&gt;72.9&lt;/td&gt;
&lt;td&gt;0.1&lt;/td&gt;
&lt;td&gt;7.3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Phase_5&lt;/td&gt;
&lt;td&gt;65.6&lt;/td&gt;
&lt;td&gt;0.1&lt;/td&gt;
&lt;td&gt;6.6&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Phase_6&lt;/td&gt;
&lt;td&gt;59.0&lt;/td&gt;
&lt;td&gt;0.1&lt;/td&gt;
&lt;td&gt;5.9&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Phase_7&lt;/td&gt;
&lt;td&gt;53.1&lt;/td&gt;
&lt;td&gt;0.1&lt;/td&gt;
&lt;td&gt;5.3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Phase_8&lt;/td&gt;
&lt;td&gt;47.8&lt;/td&gt;
&lt;td&gt;0.1&lt;/td&gt;
&lt;td&gt;4.8&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Phase_9&lt;/td&gt;
&lt;td&gt;43.0&lt;/td&gt;
&lt;td&gt;0.1&lt;/td&gt;
&lt;td&gt;4.3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Phase_10&lt;/td&gt;
&lt;td&gt;38.7&lt;/td&gt;
&lt;td&gt;0.1&lt;/td&gt;
&lt;td&gt;3.9&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;thx in advance,&lt;/p&gt;
&lt;p&gt;Ferney&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>