I have prepared python scripting code to calculate the safety factor using monte carlo simulations of different strength parameters. I want to know how can I can print the safety factor values (after each simulation has been completed) in excel format for all simulations that can help me understand the distrubution of safety factor values.
Dear Aryan,
I have already responded to you via the Service request but it is nice to share this information.
For the safety factors, you can use either Input or Output program. I will give you both options below:
The command is exactly the same, and in Python you can query that as:
Dear Stefanos,
Thank you for the information.
In this article Micha has mentioned a nice variant for all SumMsf:
tabulate phases "PreviousPhase Reached.ReachedMsf" "DeformCalcType=Safety"
Also we can add ID of the phase:
tabulate phases "Identification Reached.ReachedMsf" "DeformCalcType=Safety"
Dear Plaxis,
With the commands which are mentioned above I am able to print the Reached Msf (safety factor) in my Python IDE. When I try to check the data type of the extracted safety factor in Pyton I get the following response: class 'plxscripting.plxproxy.PlxProxyIPDouble' .Because it has this data type and not a float data type I am not able to print the safety factor in a csv or excel file. Do you have a solution for this problem, or do you know what I am doing wrong? Is it for example possible to convert the data type to a float, or is it possible to immediately get a safety factor as a float out of Plaxis?
Dear J Hopman,
I am not sure exactly which commands you use, but you can try to add the .value next to the property. This should bring out its value and not the PlxProxyIPDouble.
Let me know if this works. Otherwise, I might need to take a look at your Python script to be able to find the issue.
Great, simply adding .value solved my problem. Thank you very much!