×
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

Creating a surface with a sketch using Abaqus Python

Creating a surface with a sketch using Abaqus Python

Creating a surface with a sketch using Abaqus Python

(OP)

Hello,

My question might sounds rather simple but my knowledge in Abaqus scripting is almost inexistent.
I am creating a script to generate a sketch (just a simple closed polygon) and I want to create a surface for that sketch. In CATIA this can be achieved with the "fill command" but I do not know how to do it in Abaqus.

Many thanks!

The code:

from abaqus import *
from abaqusConstants import *
import sketch
import part

MyModel=mdb.Model(name='Model-1')

CSketch=MyModel.ConstrainedSketch(name='FirstSketch', sheetSize=100)

g, v, d, c = CSketch.geometry, CSketch.vertices, CSketch.dimensions, CSketch.constraints

CSketch.Line(point1=(10.0, 10.0), point2=(10.0, 15.0))
CSketch.Line(point1=(10.0, 15.0), point2=(-10.0, 15.0))
CSketch.Line(point1=(-10.0, 15.0), point2=(-10.0, -15.0))
CSketch.Line(point1=(-10.0, -15.0), point2=(10.0, -15.0))
CSketch.Line(point1=(10.0, -15.0), point2=(10.0, -10.0))
CSketch.Line(point1=(10.0, -10.0), point2=(5, 0))
CSketch.Line(point1=(5, 0), point2=(10.0, 10.0))
p = mdb.models['Model-1'].Part(name='Part-1', dimensionality=THREE_D,type=DEFORMABLE_BODY)

p = mdb.models['Model-1'].parts['Part-1']

#p.BaseShellExtrude(sketch=CSketch, depth=100.0)


myViewport = session.Viewport(name='Viewport for Model A',
origin=(10, 10), width=150, height=100)
myViewport.setValues(displayedObject=p)
myViewport.partDisplay.setValues(renderStyle=SHADED)

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