×
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

Abaqus Scripting: Using SolidSweep Method

Abaqus Scripting: Using SolidSweep Method

Abaqus Scripting: Using SolidSweep Method

(OP)
Hi I am a new user to abaqus scripting.
I am trying to generate a 3D solid Sweep body using the Solid Sweep method the code is as follows:

from abaqus import *
from abaqusConstants import *
#creating a model
springModel=mdb.Model(name='Spring')
import part
spring_coord= ((0.0,0.0,0.0),(0.0,0.0,10.0),(0.0,10.0,10.0),(10.0,10.0,10.0))
wire_dia=2
springPart = springModel.Part(name='Spring',dimensionality= THREE_D, type=DEFORMABLE_BODY)
temp_wire=springPart.WirePolyLine(points=spring_coord,mergeType=SEPARATE)
springPart.DatumPointByCoordinate((0.0,0.0,0.0))
springPart.DatumPointByCoordinate((1.0,0.0,0.0))
springPart.DatumPointByCoordinate((0.0,1.0,0.0))
p1=springPart.datums[2]
p2=springPart.datums[3]
p3=springPart.datums[4]
springPart.DatumPlaneByThreePoints(point1=p1,point2=p2,point3=p3)
springPart.DatumAxisByTwoPoint(point1=p1,point2=p3)
springSketch= springModel.ConstrainedSketch(name = 'Spring', sheetSize=2*wire_dia)
springSketch.CircleByCenterPerimeter(center=(0.0,0.0),point1=(wire_dia/2,0.0))
wireregion = springPart.edges.findAt(spring_coord[0])
springPart.SolidSweep(path=wireregion,profile=springSketch.geometry.findAt((wire_dia/2,0.0)),sketchPlane=springPart.datums[5],sketchUpEdge=springPart.datums[6],sketchOrientation=LEFT)


When i execute the solidSweep method it gives me the error that no geometry edges found. I have provided arguments to the method as required by the documentation. I am making a very basic mistake here, could anyone point out?

RE: Abaqus Scripting: Using SolidSweep Method

I would recommend to uncomment the last line, start A/CAE, run the script and then do some tests in the Python-interpreter to check if the data you refer to is found.

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