subject

The viscosity μμ of gases depends on the temperature TT . For some gases the following formula is relevant:

μ(T)=μ0T0−CT+C(TT0)1.5,μ(T)=μ0T0−CT +C(TT0)1.5,

where the values of the constants CC , T0T0 , and μ0μ0 are found in a file viscosity. dat. The temperature is measured in Kelvin.

Suppose we have already loaded the file into a string viscosity_data using the read method. viscosity_data contains data (in order as gas, C,T_0,mu_0) such as:

viscosity_data = '''air,120,291.15,18.27
nitrogen,111,300.55,17.81
oxygen,127,292.25,20.18
carbon dioxide,240,293.15,14.8
carbon monoxide,118,288.15,17.2
hydrogen,72,293.85,8.76
ammonia,370,293.15,9.82
sulphur dioxide,416,293.65,12.54'''
Convert the data in the string viscosity_data into a nested dictionary mu_data such that we can look up CC , T0T0 , and μ0μ0 for a gas with a name name by mu_data[name][X], where X can be one of 'C', 'T_0', or 'mu_0'. The numerical values in mu_data should all be floats.

For instance, the following statements should be True:

mu_data[ 'air' ][ 'C' ] == 120.0
mu_data[ 'hydrogen' ][ 'T_0' ] == 293.85
mu_data[ 'sulphur dioxide' ][ 'mu_0' ] == 12.54

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 21:40
Which is a benefit of getting information from a government website? a. the information will be easy to understand. ob. the information will be the most current. oc. the information can be trusted.
Answers: 1
question
Computers and Technology, 22.06.2019 10:50
Using least squares fitting, you are to fit the data sets to the following models and solve for the parameters ai , where i is the index of the parameter. the input/output data for the systems are linked in the bblearn site. for each of the systems use matlab to plot the supplied data vs. the model fit on one plot. include your code in the solutions. (a) linear fit "lineardata.mat" y=a1x^3 + a2x^2 + a3x + a4 (b) plant fit "plantdata.mat g(s) = a1/(s + a2)
Answers: 1
question
Computers and Technology, 22.06.2019 23:50
List a few alternative options and input and output over the standerd keyboard and monitor. explain their functioning in details.
Answers: 2
question
Computers and Technology, 23.06.2019 23:00
Lucas put a lot of thought into the design for his company's new white paper. he made sure to include repeating design elements such as color schemes and decorative images. his goal was to a.add symmetry b.create a unified publication c.provide consistency d.save money
Answers: 1
You know the right answer?
The viscosity μμ of gases depends on the temperature TT . For some gases the following formula is re...
Questions
question
History, 11.02.2021 18:00
question
Mathematics, 11.02.2021 18:00
question
Mathematics, 11.02.2021 18:00
Questions on the website: 13722361