Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

restart using import part from odb 1

Status
Not open for further replies.

roudan

Geotechnical
Sep 7, 2020
38
Hi

I am doing restart vy importing deformed part from odb. I am using python script. Here is the script I am using

myModel.PartFromOdb(name=oldpart, # use same part name and instance name
instance=InstanceNames[-1], odb=odb, shape=DEFORMED, step=stepnum_import,
frame=framenum_import)


I have few questions:

1. Can I import all the node sets? In the above manual, there is no parameter in PartFromOdb() to import all the nodesets?
2. All the element sets are automatically imported, is it correct?
3. I believe the tie contact is automatically imported so I don't need to redefined it? Is it correct?
4. are all material section assignment also imported by default? if not, what is the python script to import material assignment so I don't need to redefine it?

Thanks.

Regards
 
Replies continue below

Recommended for you

This technique imports only the deformed mesh. Don’t you want to import the material state (stresses and strains) as well ? For that Abaqus has much more advanced capability of transferring results between analyses (*Import keyword). All sets can be imported in such a case but you will have to redefine tie constraints.
 
Thanks FEAWay. What is the name of python function for that *import keyword? Also can the internal generated node sets and element sets be imported ? How to do it using python? Do we have an example in the manual? Thanks
 
Check the InitialState object if you want to use import functionality with scripting. In the documentation chapter titled "About transferring results between Abaqus analyses" you will find the details about the limitations of import analyses. Internal sets are not supported. But give it a try, it's a very useful technique.
 
Thanks FEAWay, initialState() object doesn't have much parameters to define.



What I'd like to do is:

1. import deformed part ( use below first command)
2. import all element sets, node sets and surfaces
3. use below 2nd command to define initial conditions
4. import material section assignment

Now, I don't know the python command to import all node sets and element sets and surface, which I need to define load, BC and tie constrains? Also the python scripts to import material section assignment. I will change E, ,u for the material but section assignment is the same. Thank you so much for your help.


myModel.PartFromOdb(name=oldpart, # use same part name and instance name
instance=InstanceNames[-1], odb=odb, shape=DEFORMED, step=stepnum_import,
frame=framenum_import)

myModel.PorePressure(name='initial-porepressure', distributionType=FROM_FILE, region=region_node_wholemodel,
fileName=odbname, increment=LAST_INCREMENT, step=LAST_STEP, interpolate=0,
variation=CONSTANT_RATIO)
 
Sets and surfaces are saved in odb files so you can easily access them with scripting. This is described in the Scripting Guide chapter "Reading from an output database" --> "Reading model data". The same applies to materials, sections and section assignments. Of course, those definitions are also available in the input file. You could copy them to the new model.
 
Thanks FEA Way, I appreciate your help. That is really helpful. I am so glad you are here helping us.
 
Hi FEA Way, yes when using import part from odb, The node sets and elements sets are imported by default. I just used modelPart.sets['Set1'.upper()] to access the element sets. but I don't see any surface imported. if I use print modelAssembly.surfaces. it shows it is empty. Do you advise me how to import surfaces? Thank you so much.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor