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, 23.06.2019 03:50
Q-1 which of the following can exist as cloud-based it resources? a. physical serverb. virtual serverc. software programd. network device
Answers: 1
question
Computers and Technology, 23.06.2019 23:30
Perform an online search about the booting process of a computer and list all the steps
Answers: 2
question
Computers and Technology, 24.06.2019 01:00
How can the temperature of a room be raised by 5degreesf?
Answers: 1
question
Computers and Technology, 24.06.2019 19:00
Luis is cloud-based( microsoft bot framework). true false
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
Mathematics, 20.03.2020 20:02
Questions on the website: 13722361