Python V21 Unknown property: E50Ref

When I  set material properties for Hardening Soil Model in Python V21 I receive following Error: Unknown property: E50Ref.

I have already checked the Material Property changes for Python scripting for V21 and the property names should be correct.

Here is my code:

soilmat_1_parameter_HS = ("MaterialName",'Ton-HS',
                            "SoilModel", 'Hardening Soil',
                            "gammaUnsat", 19,
                            "gammaSat", 19,
                            'cref',25,
                            'phi', 25,
                            'nu',nuUR1,
                            'E50ref', E50Ref1,
                            'EoedRef',EOedRef1,
                            'EurRef',EURRef1)                        
    #create new Materials
    material_1_HS = g_i.soilmat(*soilmat_1_parameter_HS) #

  • Dear Sven,

    The property name is correct, but there are two small details in V21 that can make a difference.

    First of all, the SoilModel is not properly stored as text so you can replace that with:
    "SoilModel", 3

    That would give the model the correct configuration to switch to the Hardening Soil soil model.

    Then, in V21, one would need to define the Gref property to correctly determine the Elastic modulus, which would be the EurRref. For this you simply need to use the typical equation that correlates G and E: G = E / (2 + (1+v))

    So, instead of the EurRef one needs to define:

    soilmat_1_parameter_HS = ("MaterialName", "Ton-HS",
                              "SoilModel", 3,
                              "gammaUnsat", 19,
                              "gammaSat", 19,
                              "cref", 25,
                              "phi", 25,
                              "nu", nuUR1,
                              "Gref", EURRef1 / (2 * (1 + nuUR1)), 
                              "E50ref", E50Ref1,
                              "EoedRef", EOedRef1) 

    In the above code, I made the use of quotation marks consistent (i.e., I used " everywhere).

    Note that all this has been improved and made much easier in V22 as we did some improvements there. 
    In case you consider upgrading, please check this article: Material Property changes for Python scripting 

  • Thank you very much, it fixes the error!

    For V22 it works fine, but we also have some projects with V21.