Setting DefaultValuesAdvanced using Plaxis Python API

I have a very specific question.

I am trying to create a material using the Plaxis Python API. The script has been used repeatedly for many different materials but I have encountered a bug whereby DefaultValuesAdvanced ends up False even though my input is True.

This is the command that gets fed to Plaxis...

soilmat ("Colour" 11854222) ("SoilModel" 4) ("DrainageType" 0) ("gammaUnsat" 21) ("gammaSat" 21) ("K0Determination" "Manual") ("DefaultValuesAdvanced" True) ("perm_primary_horizontal_axis" 0.000864) ("perm_vertical_axis" 0.0001728) ("cref" 100) ("phi" 20) ("psi" 0) ("E50ref" 110000) ("EoedRef" 110000) ("EurRef" 300000) ("powerm" 0) ("gamma07" 0.00015) ("G0ref" 250000) ("MaterialName" "Char_mdst_30_40")

But the "Set to default values" on the parameter tab remains unchecked - this means I need to do a manual update before running the model.

I have tried omitting the Default Values Advanced but it defaults to unchecked (which makes sense).

Does anyone have any ideas how I can get Plaxis to correctly read this input - {"DefaultValuesAdvanced" True}

Thank you,

Rebecca

  • Hi Rebecca,

    With the command above, the K0NC value gets set to 1.0. As in PLAXIS V21 and earlier, the DefaultValuesAdvanced is an implicit value (i.e. the value will show as checked when vu_ur = 0.2, p_ref = 100 and K0NC = 1 - sin(phi)).

    So adding the K0NC value to the command will work:

    soilmat ("Colour" 11854222) ("SoilModel" 4) ("DrainageType" 0) ("gammaUnsat" 21) ("gammaSat" 21) ("K0Determination" "Manual") ("DefaultValuesAdvanced" True) ("perm_primary_horizontal_axis" 0.000864) ("perm_vertical_axis" 0.0001728) ("cref" 100) ("phi" 20) ("psi" 0) ("E50ref" 110000) ("EoedRef" 110000) ("EurRef" 300000) ("powerm" 0) ("gamma07" 0.00015) ("G0ref" 250000) ("K0NC" 0.65797985667) ("MaterialName" "Char_mdst_30_40")

    Note that you also set the initial stress coëfficient K0 to manual, but you do not set a value. This means that they will remain 1 as well.

    Note that with PLAXIS V22, we made these settings and default checkmarks explicit settings, so there it will work. Please be aware that some property names have changed in the new version.