Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

ABAQUS findat

Status
Not open for further replies.

Mehdi_Hashemi

Geotechnical
Sep 15, 2016
4
0
0
NL
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
 
Status
Not open for further replies.
Back
Top