×
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

How to use an output temperature in next job

How to use an output temperature in next job

How to use an output temperature in next job

(OP)
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:

http://subefotos.com/ver/?a2e80f78c2740d4d03dc8959...

RE: How to use an output temperature in next job

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.

CODE --> 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 

RE: How to use an output temperature in next job

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.

RE: How to use an output temperature in next job

(OP)
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.

RE: How to use an output temperature in next job

(OP)
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.

RE: How to use an output temperature in next job

(OP)
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.

RE: How to use an output temperature in next job

(OP)
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.

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