Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Initial conditions defined by a python command 1

Status
Not open for further replies.

emigoz

New member
Apr 7, 2006
10
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.
 
Replies continue below

Recommended for you

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.
 
Thanks for your reply. It will be very helpful.

Best regards.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor