Question

Often in engineering calculations we want to be able to work with material properties that vary...

Often in engineering calculations we want to be able to work with material properties that vary with extensive properties like Temperature and Pressure. For example the specific heat of air varies appreciably with temperature. As in that link, these property variations are determined from experiments and tabulated for specific temperature intervals.

The table represents a numerical function, i.e. it gives cp(T).

What I'm looking for is a module to code this in python. Is there a scipy or numpy function which takes a pair of arrays, and returns a function which, when called with a Temperature argument, will return the corresponding heat capacity (linearly interpolating where necessary).

To be clear, I don't want to curve fit the data. It's cumbersome and some accuracy is lost.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

The module I was looking for is scipy.interpolate.

Add a comment
Know the answer?
Add Answer to:
Often in engineering calculations we want to be able to work with material properties that vary...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT