PlxScriptingError: Unsuccessful command:

Hi, I am using Plaxis 2D V21 Ultimate. I would like to input einit、DataSetFlow and UsdaSoilType through python remote scripting.However, It does not work. My script is as the following:

PlxScriptingError: Unsuccessful command:
未知属性: lambda*
Parents
  • Hello,

    The error message you provided does not seem related to either of the properties you mentioned. The lambda is a parameter used in Cam-Clay material models, which currently is a Python-restricted word (used in programming).

    The workaround until we find a solution is to use the following command to assign the lambda parameter:

    s_i.call_and_handle_command("set SoilMat_1.lambda 0.0001")  # instead of SoilMat_1 you can use the name of the material you have
    or simpler:
    setattr(g_i.SoilMat_1, "lambda", 3)  # instead of SoilMat_1 you can use the name of the material you have
    For the groundwater flow parameters, please check a similar post:  Python-PLAXIS2D V20 soil material USDA 
    For the einit, the older PLAXIS versions actually require that you provide the ninit, so instead of the void ratio, you provide the porosity value, and PLAXIS will set it up correctly.
    Note that with the release of PLAXIS CONNECT Edition V22, the definition of the materials has become easier and straightforward:  New releases of PLAXIS CONNECT Edition V22.00  
Reply
  • Hello,

    The error message you provided does not seem related to either of the properties you mentioned. The lambda is a parameter used in Cam-Clay material models, which currently is a Python-restricted word (used in programming).

    The workaround until we find a solution is to use the following command to assign the lambda parameter:

    s_i.call_and_handle_command("set SoilMat_1.lambda 0.0001")  # instead of SoilMat_1 you can use the name of the material you have
    or simpler:
    setattr(g_i.SoilMat_1, "lambda", 3)  # instead of SoilMat_1 you can use the name of the material you have
    For the groundwater flow parameters, please check a similar post:  Python-PLAXIS2D V20 soil material USDA 
    For the einit, the older PLAXIS versions actually require that you provide the ninit, so instead of the void ratio, you provide the porosity value, and PLAXIS will set it up correctly.
    Note that with the release of PLAXIS CONNECT Edition V22, the definition of the materials has become easier and straightforward:  New releases of PLAXIS CONNECT Edition V22.00  
Children
No Data