×
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

Python Preprocessing - Contact callable?

Python Preprocessing - Contact callable?

Python Preprocessing - Contact callable?

(OP)
Hello everybody,

I'm trying to make a preprocessing data in python so as to parametrise the geometry of my model so as the meshing density.

When starting my "data.py" in the NoGUI Mode , I get the error message :

-- typeError: "Repository" Object is not callable --

myModel.interactionProperties(name='contactproperties').TangentialBehavior

I would like to ask if it is possible to modelise contact using the python interface. I Had no problems by now in modeling the geometry so as the meshing but I've quite blocked on that contact definition. I would be pleased to get some advice.

Thank you in advance








myModel.interactionProperties(name='reibungprop').TangentialBehavior
myModel.SurfaceToSurfaceContactStd(name='reibung',createStepName='Step-1',master = (ImpactorLine,) , slave= (topLine,), Sliding=Finite, interactionProperty = 'reibungprop')

RE: Python Preprocessing - Contact callable?

Yes, it is possible to model contact using ABAQUS Scripting Interface.

Quote:

myModel.interactionProperties(name='reibungprop').TangentialBehavior

the line above is incorrect!

TangentialBehavior() is a method (i.e. class function) not an attribute. You should use "()".

RE: Python Preprocessing - Contact callable?

(OP)
Thank you Xerf.

Actually, I first got the command in using the Cae interface command ( as I think that was the easiest way to learn how the structure of a preprocessing python file is made) and just copied the corresponding files that were written in the ".rpy" in my python file. I'd perhaps made a bad "copy-paste".

After doing the modifications, I still got the same message and I may say that I don't really know why it's not working.

I would try again to modelise the contact with Cae and try to get the right commands...

RE: Python Preprocessing - Contact callable?

(OP)
I actually found a second little script error .  I thought the structure was wrong but I do think now, the programmer was not typing really well. Thank you Xerf for your help .

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