×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

A short Python script for Abaqus

A short Python script for Abaqus

A short Python script for Abaqus

(OP)
Dear collegues,

I am currently working on a small project and my task is to create Python- scripts for Abaqus that will improve the efficiency of our analysis.

I was wondering if any of You could help me understand what stands behind the following lines:

1: s = mdb.models['Model-1']
1.1: s.setPrimaryObject(option=STANDALONE)

2: g, v, d, c = s.geometry, s.vertices, s.dimensions, s.constraints
3: s.Line(.......)
4: s.HorizontalConstraint(entity=g[2], addUndoState=False)
4.1: p = mdb.models['Model-1'].Part(name='Konsole', dimensionality=TWO_D_PLANAR, type=DEFORMABLE_BODY)

5: p = mdb.models['Model-1'].parts['Konsole'] f = p.faces
6: mdb.models['Model-1'].HomogeneousSolidSection(.......)
7: p = mdb.models['Model-1'].parts['Konsole']
8: faces = f.getSequenceFromMask(mask=('[#1 ]', ), )
9: a = mdb.models['Model-1'].rootAssembly
10: e1 = a.instances['Konsole-1'].edges
11: v11 = a.instances['Konsole-1'].vertices
12: elemType1 = mesh.ElemType(elemCode=CPS8R, elemLibrary=STANDARD)

These are taken from a complete (running) script. I am new to the forum and I don't know how to upload the ".py"- file. Excuse me for this. I will put a link to Dropbox with the file!

Link

Your help will be very appreciated!

Regards,
Nicco

RE: A short Python script for Abaqus

These are the commands that create a model the way you would do it in the GUI. Just do it manually and then look into the .rpy after each action.
Otherwise look into the Scripting Reference Manual.

For beginners I recommend to go through the Scripting Users Manual first.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources