set properties for a embeddedbeam via python ---not working

dear all

I am  building the diameter of the pile via python , but the material interface is not responsive, can anyone help me?

thank you

Parents
  • Hi ,

    You need to pass more variables to the embeddedbeam material object. e.g. the area, Iyy, Izz, even though they are displayed to be blanked out and cannot be manually edited - you need some logic to do area & second mom. of a circle 

  • Dear Xiong, 

    We have made many improvements in our latest version regarding the properties exposed in GUI and what is needed in a Python script.

    Since you are using an older version the solution is a bit more complex; Matthew is right. Practically you need to define more properties as we need them to internally compute the properties for the calculation.

    So, for instance, try the following:

    g_i.embeddedbeammat(
    ("MaterialName",'pile'),
    ("BeamType", 0),
    ("PredefinedBeamType", 1),
    ("Diameter", 1.2),
    ("Thickness", 0.15),
    ("E", 36.00E6),
    ("w", 24),
    ("Size", 1.2),
    ("A", 0.494800842940392),
    ("Iyy", 0.0695813685384928),
    ("Izz", 0.0695813685384928),
    ("I", 0.0695813685384928),
    ("Lspacing", 10.5),
    ("SkinResistance", 2),
    ("Tmax", 10000),
    ("Fmax",200)
    )

    Note that the figure these out is by creating the material manually and using the echo command to get all the listed properties.

    Answer Verified By: xiong qi 

Reply
  • Dear Xiong, 

    We have made many improvements in our latest version regarding the properties exposed in GUI and what is needed in a Python script.

    Since you are using an older version the solution is a bit more complex; Matthew is right. Practically you need to define more properties as we need them to internally compute the properties for the calculation.

    So, for instance, try the following:

    g_i.embeddedbeammat(
    ("MaterialName",'pile'),
    ("BeamType", 0),
    ("PredefinedBeamType", 1),
    ("Diameter", 1.2),
    ("Thickness", 0.15),
    ("E", 36.00E6),
    ("w", 24),
    ("Size", 1.2),
    ("A", 0.494800842940392),
    ("Iyy", 0.0695813685384928),
    ("Izz", 0.0695813685384928),
    ("I", 0.0695813685384928),
    ("Lspacing", 10.5),
    ("SkinResistance", 2),
    ("Tmax", 10000),
    ("Fmax",200)
    )

    Note that the figure these out is by creating the material manually and using the echo command to get all the listed properties.

    Answer Verified By: xiong qi 

Children