×
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 findat

ABAQUS findat

ABAQUS findat

(OP)
Hello
i am working on ABAQUS_Python scripting. I prepare most of the model code parts but there is a problem with findat part; I can't make the coordinate of the sides and points with ABAQUS Python coding shape.
ABAQUS findat needs the coordinate like this:
((1.0, 15.0, 0.0), ), ((1.0, 5.0, 0.0), ), ((2.0, 15.0, 0.0), ), ((2.0, 5.0, 0.0), ), ((3.0, 15.0, 0.0), ), ((3.0, 5.0, 0.0), ), ((4.0, 15.0, 0.0), ), ((4.0, 5.0, 0.0), ), ((5.0, 15.0, 0.0), ), ((5.0, 5.0, 0.0), ), ((6.0, 15.0, 0.0), ), ((6.0, 5.0, 0.0), ), ((7.0, 15.0, 0.0), ), ((7.0, 5.0, 0.0), ), ((8.0, 15.0, 0.0), ), ((8.0, 5.0, 0.0), ), ((9.0, 15.0, 0.0), ), ((9.0, 5.0, 0.0), ), ((10.0, 15.0, 0.0), ), ((10.0, 5.0, 0.0), )
But I don't know how to generate these coordinates with python code.

I make the coordinates like this with this code line ( XYZ=[(Victor[N]+2/3, Y-Sumh[M]-h[M]/2, 0.0) for N in range(1,len(Victor)) for M in range(1,len(h))]) and could get the following coordinates:
[(1.0, 15.0, 0.0), (1.0, 5.0, 0.0), (2.0, 15.0, 0.0), (2.0, 5.0, 0.0), (3.0, 15.0, 0.0), (3.0, 5.0, 0.0), (4.0, 15.0, 0.0), (4.0, 5.0, 0.0), (5.0, 15.0, 0.0), (5.0, 5.0, 0.0), (6.0, 15.0, 0.0), (6.0, 5.0, 0.0), (7.0, 15.0, 0.0), (7.0, 5.0, 0.0), (8.0, 15.0, 0.0), (8.0, 5.0, 0.0), (9.0, 15.0, 0.0), (9.0, 5.0, 0.0), (10.0, 15.0, 0.0), (10.0, 5.0, 0.0)]
maybe there are other ways to generate the coordinate more suitable than above code!
as it is seen, it needs to remove bracket, [], and add a parentheses with a comma inside it.
does anyone know that how I can solve this problem? and make the proper coordinate for ABAQUS findat?

Mehdi

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