Computers and Technology

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

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 16:20, mandy9386
Consider the following statements, then select one of the answers below: the signal() function shown below registers "sig_handler()" as the signal handler function for the sigkill signal, without the complexity of using when the sigkill signal is sent to a process running this code, by a user typing "kill -kill ", where the correct process id is used for to target the process, sig_handler() will be executed.
Answers: 1
image
Computers and Technology, 22.06.2019 17:30, jonquil201
Where would you click to edit the chart data?
Answers: 1
image
Computers and Technology, 23.06.2019 12:00, lyn94
Using the list, you can select the number of photos that will appear on each slide. a. theme b. frame shape c. pictures in album d. picture layout
Answers: 1
image
Computers and Technology, 23.06.2019 21:30, jayybrain6337
Enzo’s balance sheet for the month of july is shown. enzo’s balance sheet (july 2013) assets liabilities cash $600 credit card $4,000 investments $500 student loan $2,500 house $120,000 mortgage $80,000 car $6,000 car loan $2,000 total $127,100 total $88,500 which expression finds enzo’s net worth?
Answers: 1
Do you know the correct answer?
The viscosity μμ of gases depends on the temperature TT . For some gases the following formula is re...

Questions in other subjects:

Konu
Mathematics, 19.03.2020 20:55
Konu
Business, 19.03.2020 20:55