Results 1 to 8 of 8

Thread: Question about ABAQUS function (Python Script)

  1. #1

    Question Question about ABAQUS function (Python Script)

    Hello,

    I'm programming a Python script to study the crack propagation in hyperelastic materials. So, I tried to implement the ContourIntegral in my script, and for this, I used the code bellow.

    vert = (-7.5,0,0)
    vt = myPart.vertices.findAt((vert,))

    Crack_Tip = regionToolset.Region(vertices=vt)

    vectorN = ((0,0,0),(0,-1,0))

    myEngFeat.ContourIntegral(name='Trinca1', crackFront=Crack_Tip, crackTip=Crack_Tip, extensionDirectionMethod=CRACK_NORMAL, crackNormal=vectorN, midNodePosition=0.5, collapsedElementAtTip=DUPLICATE_NODES)


    The script runs without problem, and without syntax errors, but the ContourIntegral is not created.

    I wonder if someone has already used the ContourIntegral function in a Python script and could provide me some help. I would be very grateful.

    Best regards

  2. #2
    Join Date
    2000-02
    Location
    Boston, USA
    Posts
    3,280
    Interesting question. I have used Python extensively, both with Abaqus and as a stand-alone scripting language. I have to confess, however, that I don't know of the ContourIntegral function that you are refering to. Is is a feature of CAE, or Python, or something else

    In other words, I don't think I can give you instantaneous assistance, but I am curious to learn more about what you are trying to do, and perhaps I can provide feedback soon...

    -Jorgen
    Jorgen Bergstrom, Ph.D.
    PolymerFEM Administrator

  3. #3
    Hi!

    I'm using the Contour Integral in my script as well. In my case the Contour Integral term caused an error when I tried to run the script. I couldn't make any sense of it because the term was exactly like described in the documentation. Thus, I created a plate with a crack in Abaqus CAE and had a look at the jnl-file. The term for the Contour Integral was the same as in my script and when I started the jnl-file with "Run Script" the same error appeared again. Therefore I think it's a bug.
    When I started the jnl-file in the command window with "abaqus cae recover=name.jnl", however, it worked fine. With the script it was not that easy but I found a way to make it work.

    I'm sure you solved the problem months ago but I'm curious about your case. How did you solve the issue and which version of Abaqus did you use? Did you get an error message as well? Do you still need any help on this topic?

    Kind regards!

  4. #4
    Hello,

    Firstly, Jorgen I'm realy sorry to did not reply your post before. I'm very busy in the last months and I forgot this post.

    Thomas I use the ABAQUS v6.7 but an academic version, and you are right, I already solved my problem. I was tried implement the Contour Integral function in a part region and the Contour Integral function is only applicable in a instance region. So, I solved the problem setting a instance region to implement the Contour Integral.

    I had some problem when I was implement the Assign seam too. I made exactly as discribed on the documentation and I couldn't do the script work, the error indicated on the function Assign Seam. Then, I used the Python's function dir and discovered that the Assign Seam function is discribed wrong in the documentation. The documentation describes the function as createSeamCrack(...) while the function is assignSeam(...).

    Best regards

  5. #5
    Hi Jorgen,

    I want to model a 2D-wing(2D Airfoil) in Abaqus, I am going to use 2d planar/Wire to model it,now I have 2 question and please tell me as soon as possible:
    1-My geometry compose of 72 points(x&y position), how can I import this positions to Abaqus.
    2-I want to mesh this model in the form that the nodes sit in the position of the points exactly.

    maybe I should use python, but I did not find any scripts in help which help me.

    Thank you
    Ali

  6. #6
    Join Date
    2000-02
    Location
    Boston, USA
    Posts
    3,280
    I think the fastest way is actually to to simply type in the coordinates by hand in CAE...

    -Jorgen
    Jorgen Bergstrom, Ph.D.
    PolymerFEM Administrator

  7. #7
    ok,and for position of the nodes!I want that the nodes exactly sit in the position of the points.

  8. #8
    Join Date
    2000-02
    Location
    Boston, USA
    Posts
    3,280
    If you have the coordinates of the points you can cut and paste them into CAE. Somewhat tedious, but doable.

    -Jorgen
    Jorgen Bergstrom, Ph.D.
    PolymerFEM Administrator

Similar Threads

  1. problem with ABAQUS Python script
    By bulkup in forum Finite Element Modeling
    Replies: 2
    Last Post: 2010-11-03, 03:21
  2. Python script for emailing ABAQUS status
    By Jorgen in forum PolymerFEM News
    Replies: 0
    Last Post: 2007-12-29, 13:33
  3. User-Defined Strain Energy Function + ABAQUS
    By sarthak in forum Finite Element Modeling
    Replies: 2
    Last Post: 2007-05-06, 06:46
  4. question regarding the coding in python
    By vinnuram in forum Finite Element Modeling
    Replies: 1
    Last Post: 2005-08-23, 15:48
  5. question about the constants in WLF function
    By benutella in forum Constitutive Models
    Replies: 3
    Last Post: 2004-09-16, 18:23

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
  •