I need help with this project by completing the following tasks….

I need help with this project by completing the following tasks. I’m having trouble with it.
In this project, you are supposed to find how much of the efficiency reduction is due to the fact that the band gap energy determines the total energy harvested and not the photon energy itself. The key to answering the question is to find the number of photons per energy interval and sum them up if they are above the band gap. The harvested energy is then the product of total photons times the band gap energy.
Rather than using experimental data for the solar radiation outside of Earth’s atmosphere, we will use Planck’s Distribution to determine the number of photons per energy interval.
Task 1 (40 points): Based on Planck’s law for the radiance of the Sun, assuming a temperature T of 5775K, create four plots, which show
1.) The spectral irradiance versus photon wavelength
2.) The spectral irradiance versus photon energy
3.) The photon flux versus photon wavelength
4.) The photon flux versus energy.
Task 2 (40 points):
Calculate the integral of the spectral irradiance over wavelength and compare it to the integral over of the spectral irradiance photon energy (first two plots). Both integrals should be identical. They can differ slightly based on the integration limits (wavelength or energy range). Repeat the integral calculations for the plots of the photon density, multiplying the photon density for each data point with the respective photon energy. The integrals should match the values for the previous cases. This is a sanity check whether the transformations were performed properly.
Since we are not taking absorption in the Earth atmosphere into account, the spectrum will be close to that of AM0, which has an integral value of 1366 W/m2 . Since your integration limits are different, the value will be closer to 1300-1320 W/m2 . You should make sure that your integration limits match, because that could lead to discrepancies and might cause confusion. You can calculate the integral on a different x-axis range than the plot if you want to “zoom in” on one region of the plot, nut you don’t have to. Make sure that the x-axis has points that are equidistantly spaced and have a delta of 1 between the points if you want to use the short form of the trapz function in numpy.
Task 3 (20 points):
Calculate the harvested power depending on the band gap of the absorber material. You can use the photon energy to do “double duty”: You can calculate the integral for the photon density versus energy plot for every photon energy point, starting the integral at that photon energy and multiplying the photon density integral by that photon energy. Once you have this data set, you can divide it by the value you obtained in Task 2 to get the efficiency. Finally, plot the efficiency versus photon (or band gap) energy. There should be a peak around 1.2 eV.
Bonus (10 points):
Compare the efficiency of a single junction Silicon cell (Band gap 1.1eV) with a Perovskite Tandem cell (1.2eV and 1.8eV). For the silicon cell, you can just pick a value out of your array or start the integration again at 1.1eV, multiplying with 1.1eV band gap energy. For the Tandem cell, you need to stop the integration at the larger band gap value and then re-start the integration there, but multiply with the larger band gap value.
I believe a python code is needed to solve this.

Place this order or similar order and get an amazing discount. USE Discount code “GET20” for 20% discount