Concept explainers
A phase diagram for carbon and platinum is shown. It is assumed the lines shown are linear, and the mixture has the following characteristics. The endpoints of the division line between these two phases are labeled on the diagram.
■ Below 1700 degrees Celsius, it is a mixture of solid platinum (Pt) and graphite (G).
■ Above 1700 degrees Celsius, there are two possible phases: a Liquid (L) phase and a Liquid (L) + phase (G).
Write a program to determine the phase. The program should ask the user to enter the weight percent carbon and the temperature in degrees Celsius. Call the phases “Pt + G,” “L,” and “L + G,” for simplicity. If the point falls directly on the T = 1700°C line, include the point in the “Pt + G” phase. If the point falls directly on the L, L + Gline, include the point in the “L + G” phase.
Store the phase as text in a variable. The equation of the line dividing the L and L + G phases must be found in the program using polyfit. The program should produce a formatted output statement to the command window. Similar to “For X.XX weight percent carbon and a temperature of YYY degrees Celsius, the phase is PHASE” where x.xx, yyy and PHASE are replaced by the actual values formatted as shown.
The following partial code is designed to implement this program. You are to fill in the missing sections of code as appropriate to complete the program.
Want to see the full answer?
Check out a sample textbook solutionChapter 18 Solutions
Thinking Like an Engineer: An Active Learning Approach (4th Edition)
- Question 6 Compute the molar volume of ethane at 315 K and 50 bar using the SRK equation of state. Report your answer in units of cm?/mol to three decimal places. Question 7 Compute the compressibility of acetone at 510 K and 60 bar using the SRK equation of state. Report your answer to three decimal places.arrow_forwardYou are working with a derivative of naphthalene and, like its parent compound, it has a high triple point and sublimates fairly readily at temperatures near room temperature. At temperatures below 400 K, you find that the vapor pressure of its solid can be represented by the function P 4200 K (1)-11.5 = 11.5 1 atm T Use this equation to estimate the normal sublimation temperature of this compound, Tsubl (in K).arrow_forwardFor the metals A and B, which are given below, create the hypothetical phase diagram between 500 ° C and 900 ° C temperatures.Ø A metal has a melting temperature of 840 ° C.The solubility of Ø B in A can be ignored at all temperatures.Ø Melting temperature of Metal B is 730 ° C.The maximum solubility of A in Ø B is 10% A by weight, which occurs at 600 ° C.At 500 ° C, the solubility of A in B is 6% A by weight.Ø An eutectic 600 ° C and 74% B by weight - 26% by weight A are formed.Ø The second eutectic occurs at 630 ° C and 59% B - 41% A by weight.Ø A third eutectic occurs at 655 ° C and 39% B - 61% A by weight.Ø A congress melting point is formed at 680 ° C and 52% B - 48% A by weight.Ø A second congress melting point is formed at 655 ° C and 66% B - 34% A by weight.Ø Intermetallic compound AB is present at 52 wt% B - 48 wt% A.Ø Intermetallic compound AB2 is present at 66 wt% B to 34 wt% A.arrow_forward
- The phase diagram for sulfur is shown here. The rhombic and monoclinic states are two solid states with different structures. a. Below what pressure does solid sulfur sublime? b. Which of the two solid states of sulfur is more dense? Liquid Rhombic Monoclinic 119 °C, 0.027 mmHg 96 °C, 0.0043 mmHg Vapor Temperature Pressurearrow_forwardphase diagramarrow_forwardThe following question refer to the phase diagram shown here. Composition (at% Sn) 60 T Temperature (°C) 300 200 OC 0 100 327°C O 98 wt% Sn O 100 % O 61.9 wt% Sn 0 0% O 73 wt% Sn 20 T O 50% O 90 wt% Sn 18.3 40 T 20 183°C a + ß 40 T Liquid 61.9 80 B+L 80 232°C 97.8 100 →600 0 100 60 Composition (wt% Sn) (Pb) (Sn) Adapted from Binary Alloy Phase Diagrams, 2nd edition, Vol. 3, T. B. Massalski (Editor-in-Chief), 1990. Reprinted by permission of ASM International, Materials Park, OH. In the Pb-Sn phase diagram, what is the approximate composition of the 3 phase for an alloy with 90 wt% Sn and at 200°C? 500 400 B 300 a 200 Temperature (°F) 100arrow_forward
- 100 grams of water are mixed with 200 grams of another fluid (specific density=790 kg/m3), what is the specific volume of the resulting mixture, assuming the volumes are additive and the mixture is homogenous?arrow_forward26. Please help me answer this physics question. Not much work required to be shown, just need accurate final answers.arrow_forwardFigure 1 shows a binary phase diagram of elements A and B. Determine the phases present, composition, and amount of each phase at 215 °C. T(°C) 300+ 215 200+ 100+ 0 A L+a 1720 Ca L (liquid) 183°C a + ß 40 46 60 Co CL wt% 80 +B 100 Barrow_forward
- 26. Please help me answer all parts to this physics questionarrow_forwardPlease solve and elaborate. Solution will be appreciated and I'll rate you high.arrow_forward100 atm 1 atm 0.118 atm 114 °C 184 °C 535 °C Temperature (not to scale) a.) Use the above generic phase diagram, clearly identify where you would find the following: Gas, Liquid, Solid, Triple Point, Draw arrows and label to indicate the six transitions (melting, freezing, sublimation, deposition, vaporization and condensation) b.) Based on the above phase diagram, what phase would you be in at a pressure of 50 atm and 300°C? c.) Based on the above phase diagram at what temperature in °C would vaporization occur under normal conditions? d.) If the pressure was 0.050 atm and 425°C, what phase would you be in? e.) If the pressure was 0.118 atm and temperature was 114°C, what phase(s) would you be in? f.) At approximately what temperature would the normal freezing point be in °C? g.) If the pressure was 0.105 atm and starting at a temperature of 32°C to 450°C what phase changes would occur (put in increasing temperature order). Pressure (not to scale)arrow_forward
- Elements Of ElectromagneticsMechanical EngineeringISBN:9780190698614Author:Sadiku, Matthew N. O.Publisher:Oxford University PressMechanics of Materials (10th Edition)Mechanical EngineeringISBN:9780134319650Author:Russell C. HibbelerPublisher:PEARSONThermodynamics: An Engineering ApproachMechanical EngineeringISBN:9781259822674Author:Yunus A. Cengel Dr., Michael A. BolesPublisher:McGraw-Hill Education
- Control Systems EngineeringMechanical EngineeringISBN:9781118170519Author:Norman S. NisePublisher:WILEYMechanics of Materials (MindTap Course List)Mechanical EngineeringISBN:9781337093347Author:Barry J. Goodno, James M. GerePublisher:Cengage LearningEngineering Mechanics: StaticsMechanical EngineeringISBN:9781118807330Author:James L. Meriam, L. G. Kraige, J. N. BoltonPublisher:WILEY