Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Here is the input data file farm.txt Make sure this is in basic C programming language! Thank you so much!! NGR 200 FALL 2018 P6:
Here is the input data file farm.txt
Make sure this is in basic C programming language!
Thank you so much!!
NGR 200 FALL 2018 P6: WIND FARMS (input/output data files, user-defined functions, loops) DUE: October 29, 2018 at 11:59 p.m. CT POINTS: 60 INTRODUCTION: Wind turbines convert the kinetic energy of moving air to electrical energy. It is key to know how much energy a wind turbine can produce for a given wind speed. A relation for the available power in wind is where Pwini is the power available in the wind (W), p is the density of air (use 1.2754 kg/m3), A is the area swept by the blades (m') (hint: this will be a circle), and v is the velocity of the wind (m/s) (for this problem, use 11 m/s). However, the available power in the wind is not the maximum power the wind turbine can produce. The maximum power that can be produced is Pwind,max CpPwind where Cp is the power coefficient, which is also known as the Betz limit (unitless). Modern wind turbines have power coefficients ranging from 0.45 to 0.5 (for this problem, use 0.48). In addition, the gear box, generator, and bearings impose energy losses that further limit the output power of the turbine. Therefore, for each turbine, the amount of electricity in Watts that can be produced is Pelect - Pwind max where n is the combined efficiency of the gear box, generator, and bearings (use 0.33). An input data file called farms.txt contains turbine blade diameters and numbers of wind turbines for several potential wind farm configurations. The first record line of the input file is the control number, which defines the number of data points to be read into the program. Each succeeding record line has two columns. The first column is the turbine blade diameter, and the second column is the number of wind turbines. The input file is space delimited. ASSIGNMENT: Write a C program that will read the required values from the input file. Using the turbine blade diameter and number of turbines available, write three separate user-defined functions to compute the available power in the wind, the maximum available power that can be produced, and the amount of electricity produced by the turbines. Print the turbine blade diameter, the number of turbines available, and the amount of electricity (irn kW) produced by each farm configuration to the screen and to an output file called power.txtStep 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