×
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

Initial conditions defined by a python command

Initial conditions defined by a python command

Initial conditions defined by a python command

(OP)
Hello,
somebody knows what is the command for python-script of the following inp command?
         *initial conditions, type=solution
         (put the values of the state variables)

The problem is that I'm using a python file to define a model and I have to load a user material subroutine, and then to specify the initial values of the state variables.

I know that it is not possible to define it in ABAQUS/CAE, but I want to check if it possible by using a python command. I've found that it is possible to define the initial conditions for a user element subroutine, but not for a user material.

Thanks.

RE: Initial conditions defined by a python command

The approach is to use the keyword editor, or more precisely the equivalent of the keyword editor in ABAQUS Scripting Interface.

For details see KeywordBlock object in ABAQUS Scripting Reference Manual.

You have to use KeywordBlock object for any modeling aspect that is not yet supported by CAE.

You'll have to use something like:
mdb.models["model_name"].keywordBlock.insert(position=int_value,text="*initial conditions, type=solution")

First, you have to figure out the integer value for the position parameter. In order to that you have to iterate over the blocks in keywordBlock and search for the adequate position of "*initial conditions, type=solution" which is exactly before the step level of the input file, if I remember correctly.

Best.
 

RE: Initial conditions defined by a python command

(OP)
Thanks for your reply. It will be very helpful.

Best regards.

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