how to make an input file from plaxis 2d to be used in probabilistic toolkit (reliability analysis)
thanks for your answer. for example i need to extract " plate moment " and save it to txt file. the following is the code to extract the plate moment, i need the code to save the results into txt file
from plxscripting.easy import *
s_o, g_o = new_server('localhost', 10001, password="mohamedhamed")
# geometric limits for the left retaining wall:x_left = 0.0
# for all phases, starting from the second phase (Phase_1) for phase in g_o.Phases[1:]: #initialize defaults: maxM = 0.0 xAtMaxM = 0.0 yAtMaxM = 0.0 minM = 0.0 xAtMinM = 0.0 yAtMinM = 0.0
# obtain result tables plateX = g_o.getresults(phase, g_o.ResultTypes.Plate.X, 'node') plateY = g_o.getresults(phase, g_o.ResultTypes.Plate.Y, 'node') plateM = g_o.getresults(phase, g_o.ResultTypes.Plate.M2D, 'node') # determine minimum and maximum bending moment: for x, y, M in zip(plateX, plateY, plateM): #is it on the left wall (with small numerical tolerance)? if abs(x - x_left) < 1E-5: if M > maxM: maxM = M xAtMaxM = x yAtMaxM = y if M < minM: minM = M xAtMinM = x yAtMinM = y print( "{}: ".format( phase.Name ) + "Mmax = {:.2f} kNm/m at Y={:.2f} m; ".format(maxM, yAtMaxM) + "Mmin = {:.2f} kNm/m at Y={:.2f} m".format(minM, yAtMinM) )
Dear Mohamed,
Please read our example that demonstrates how to do this: https://communities.bentley.com/products/geotech-analysis/w/plaxis-soilvision-wiki/45455/how-to-get-a-load---displacement-curve-using-scripting-interface
So, by combining your results with the way to extract the text file should give you the end result you look for.