Results 1 to 3 of 3

Thread: problem with ABAQUS Python script

  1. #1

    problem with ABAQUS Python script

    Hey friends:

    I am trying to define my model by using the PorousMetalPlasticity function in Python, I need to plot relative density contour in ABAQUS as well, but I keep on getting syntax errors, this is the line where the syntax error occurs. If anyone can point out my problem, it will be greatly appreciated:

    mdb.models['Model-1'].materials[MNO].PorousMetalPlasticity(table=((1,1,1),),relativeDe nsity=((relativeDensity[mn-1],),))

    session.odbs['Model-1'].materials[MNO].PorousMetalPlasticity(table=((1,1,1),),relativeDe nsity=((relativeDensity[mn-1],),))

  2. #2
    Join Date
    2000-02
    Location
    Boston, USA
    Posts
    3,280
    At a quick glance, your code looks ok.

    To debug perhaps you can try the following approach:

    - Break down your long line into its different parts in order to see which part is causing the problem.

    What way you should be able to figure out what part of your command is incorrect.

    /Jorgen

  3. #3
    Hi,
    I think you should add 'xxxx' to the material name, i.e.
    mdb.models['Model-1'].materials['MNO'].PorousMetalPlasticity(table=((1,1,1),),relativeDe nsity=((relativeDensity[mn-1],),))

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •