Question
be solved using Python We are operating a power plant that generates energy by boiling water to create steam to turn a turbine. As such
be solved using Python
We are operating a power plant that generates energy by boiling water to create steam to turn a turbine. As such were frequently concerned with the energy involved in boiling and condensing water. We wish to create a Python function called WaterFinalT that will take in three bits of information about a stream of water: 1. The current temperature of the stream (in C) 2. The mass flowrate of the stream (in kg/s) 3. The rate of energy to be added or taken from the sample (in kJ/s) The function should then return the final temperature of the stream after the energy has been added (or removed). You may assume we are only interested in liquid, and gas phases (no ice). If any temperature is below freezing the function should alert the user. Also assume the following are constant, regardless of the temperatures or pressures of the stream: Freezing Temperature: 0.000 C Boiling Temperature: 100.0 C Heat Capacity of Ice: 2.108 kJ/kg/K Heat Capacity of Water: 4.187 kJ/kg/K Heat Capacity of Steam: 1.996 kJ/kg/K Enthalpy of Fusion: 334.0 kJ/kg Enthalpy of Vaporization: 2,257 kJ/kg Also assume the stream is initially all water or all steam, never a mix of two phases initially. Final conditions may result in a two phase system of steam and liquid water, though
We want to calculate every hundredth Fibonacci Number up to the 1000th. We wish to save memory; so do not store every value in a list or array of any sort. Take the first two values of the sequence to be 1 and 1. Use the print function to display the iteration number and digit of the Fibonacci sequence and the associated estimate of the Golden Ratio for each hundredth number, up to 1,000. Use scientific notation in the list, but, once you hit 1,000, print out that final full integer.
Finally, we wish for you to repeat Problem 2 from the Intro to Excel assignment, but this time in Python (We hope for you to get a feel for which tool is best for which job). You can get the needed equations and constants from that assignment. To solve for the molar volume at a pressure of 850 kPa, use the fsolve function from the scipy package. This function finds where a function, which you pass to it, is equal to zero and returns that value. After you find the ideal and Van der Waal molar volume at 850 kPa, additionally plot those points as single markers on the plot of P vs v. In the end the code should produce the adjacent plot of as exactly as you can with your calculated data. Note the range of the x-axis of this plot is a bit different than what it should be
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