how to make an input file from plaxis 2d to be used in probabilistic toolkit (reliability analysis)
Dear Mohamed,
Unfortunately, the details of your description are not enough for me to understand what exactly you want as input from PLAXIS 2D.
In principle, you can extract any data you want from PLAXIS via our Python scripting facility and pass it to your probabilistic toolkit. This can work out to be efficient as typically you have lots of data to process.
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) )
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.