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!

How to use an output temperature in next job

Status
Not open for further replies.

pitagoras15

Industrial
Oct 2, 2014
16
Hi,

I need to know how to say to Abaqus to save the values of a temperature of the last instant from last job. This way, in the next job I'll be able to use that output data as initial boundary condition. Also, in between jobs I have to eliminate that last part, but I've already done this in the script.

I'm attaching a picture where I hope it is more understandable:

 
Replies continue below

Recommended for you

You can access the the odb file using scripting...

Just open the previous odb file object extract the values you are interested in,
and use this info for your current cae model.

Short example accessing the result database file (odb) using pyhton scripting.

Python:
db = session.openOdb(name='{0}.odb'.format(job.name))
step = db.steps[db.steps.keys()[-1]]
history = step.historyRegions[step.historyRegions.keys()[-1]]
reaction_force_data = history.historyOutputs['RF1'].data
displacement_data = history.historyOutputs['U1'].data
 
There is also an option in the predefined fields to use temperature from an .odb, if you would rather use the GUI, or don't know python. Either method works.
 
Thanks for your help.

I don't have too much Python knowledge so what I do is to work from the GUI, and then take the script from the .jnl that Abaqus automatically do when you save.

I'm doing these steps:

1. Go to the Load module and choose "Predefined Field --> Create".

2. In the "Create Predefined Field" dialog box, choose the "Initial" step, and the radio button for the "Other" category. In the list to the right, choose "Temperature."

3. You will be propted to select the regions of the model. You should choose the geometry shared between the two analysis where you have temperature data you want to import.

4. In the "Edit Predefined Field" dialog box, in the "Distribution" drop down list, choose "From results or output database file." The dialog box will then change giving you a place to select the odb file from the first analysis. You'll then be able to select any saved step or increment from the first thermal analysis to import, as well as define mesh interpolation properties in case the meshes in the the two anaysis are different.


I've tried it but I must be doing something wrong because the final temperature is lower than the one in the first job. The line that I get from the .jnl doesn't specify the regions that I chose, and I think that is the problem. The line from the .jnl is this one:

mdb.models['Model-1'].Temperature(absoluteExteriorTolerance=0.0, beginIncrement=50, beginStep=2, createStepName='Initial', distributionType= FROM_FILE, endIncrement=None, endStep=None, exteriorTolerance=0.05, fileName='C:/SIMULIA/Temp/Job-1.odb', interpolate=OFF, name= 'Predefined Field-7')

Regards.
 
Ok, I've solved it. I had to delete all predefined temperatures from first job. The problem that I have now is that I have to do this like 100 times. And the number of increment of each job is different. One job does 56 and another 40 for example. And I need to call the last increment from last job. Does it have any name? Or is there any possibility to parametrize it so that I can call it with a 'for in range' bucle?

Thanks in advice,

Regards.
 
From here:

mdb.models['Model-1'].Temperature(absoluteExteriorTolerance=0.0, beginIncrement=50, beginStep=2, createStepName='Initial', distributionType= FROM_FILE, endIncrement=None, endStep=None, exteriorTolerance=0.05, fileName='C:/SIMULIA/Temp/Job-1.odb', interpolate=OFF, name= 'Predefined Field-7')

I need to know how to parametrize the value of 'beginIncrement', or if there are any command such as 'last_step' or something similar, so that automatically gives you the last increment.

Thanks in advice,

Regards.
 
I must be doing something wrong. In the message area is written that 'Abaqus Warning: The C:/SIMULIA/Temp/Taladro_Job5.odb file will be used', so it is obvious that is going in to the file, but it's not getting the values properly because the result is the same weather I make the program going into the file or not.

I think I am doing something wrong when selecting the step or the increment.

Any help?

Thanks in advice,

Regards.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor