Question
Download from Blueline the data file of the viscosity of o-terphenyl (in Pa s) as a function of temperature (in K) python_OTPVISCOSITY.txt and save it
Download from Blueline the data file of the viscosity of o-terphenyl (in Pa s) as a function of temperature (in K) \"python_OTPVISCOSITY.txt\" and save it in a well-known location on your computer.
a) Write a python program that opens the data file, assigns the first column of data to be the temp and the second to be the visc value. Generate a plot of the log(visc) vs temperature with appropriate x and y labels.
b) Modify your python code so that it performs a curve fit of the data set to a Vogel-Tammann- Fulcher function of the form: B In n(t) = A + T-T where A, B and T. are parameters to be optimized starting from initial guess values of A = -8, B = 1200, and T. = 210. Use the optimized parameters to generate a fit line plotted onto the original data plot of part a.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started