Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

A short Python script for Abaqus

Status
Not open for further replies.

nikulauz

Structural
Apr 10, 2016
1
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
 
Replies continue below

Recommended for you

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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor