Hello,
Im doing seepage analysis with monte carlo simulations. I want to take groundwater flow (q) result with python in phase 2 . I put my codes. But the results are wrong. ( not same with plaxis).
Thank you.
Dear Arife,
In your description you mention that the results are wrong but you do not describe how so. From the information you shared, I cannot tell what is right or wrong.
So, maybe you can elaborate on what is wrong and what you expected.
By the way, the getresults commands has an additional parameter (boolean: True | False) to set the result smoothing on an off. Maybe that can explain the difference.
Dear Steafanos,
I put below both plaxis result and python result for same permeability (0.040, first iteration).
I think my codes are wrong. I wanna take max groundwater flow or Qx in phase 2.
thank you.
Hello again,
If I understand correctly what you are doing in your script is not getting the max groundwater flow in the whole phase, but rather find the Qx value at a specific location.
SoilQx is a list that contains all the values of Qx for the whole model. That means that using Python's build-in function max() you can simply say:
max_soil_qx = max(SoilQx)print(max_soil_qx)
or in one go:print(max(SoilQx))
Again remember to add the True parameter in the getresults command to apply the result smoothing or deactivate from View menu.
It is okey. now ı took a SoilQx value from python.
SoilQx=g_o.getresults(g_o.Phase_2,g_o.ResultTypes.Soil.Qx,'node')
max_soil_qx = max(SoilQx)print(max_soil_qx).
Then ı control it plaxis from stresses- groundwater flow- qx. but ı cant take same maximum result.
Have you tried the result smoothing?
For instance try adding an extra parameter in the command:SoilQx=g_o.getresults(g_o.Phase_2,g_o.ResultTypes.Soil.Qx,'node', True)