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.
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
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
Best regards.