Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Material Data from Python Lists - Scripting

Status
Not open for further replies.

WaldemarHH

Mechanical
Jan 23, 2024
3
Hello Guys,

I'm trying to calculate Material Data from input parameters and automatically create a model with the calculated data. In Python i've scripted the Model creation and tried it with fixed values. It worked fine. Now I'm trying to create lists in and insert it into the Abaqus command like this:

while T <= 453:
#CTE calculation
if T in [5, 77, 368, 453]:
if T <= 77:
CTE = (1/3 * T - 2/3)*10**-6
elif T <= 368:
CTE = (35/291 * T + 4580/291)*10**-6
else:
CTE = (18/17 * T - 5604/17)*10**-6
CTE_PEEK_Array.append((round(CTE,7), T))
...
mdb.models['Model-1'].materials['PEEK'].Expansion(temperatureDependency=ON,table=(CTE_PEEK_Array))
...


The linearly interpolated functions are correct, but The values in Abaqus are kind of random and not equivalent to the calculated data. Did somebody try the same approach? I tried to vary a lot of things, but it doesn't work at all. I think it has something to do with the float values and how abaqus reads these Values from the list.

As soon as this works, i would like to shift the funcions in dependency of other input Paramaters. If somebody has another idea on how to implement this kind of variation I would be very happy.

Kind Regards,
Waldemar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor