Challenge

Project 1 - Parsing NASA thermodynamic data

NASA came up with polynomials that can be used to evaluate thermodynamic properties such as Cp, H and S. They have also documented the co-efficients that are required to evaluate these polynomials for 1000+ species.

To guide you we have broken down the problem into meaningful bits that you can work on individually.

1. Write a function that extracts the 14 co-efficients and calculates the enthalpy, entropy and specific heats for all the species in the data file. You will be reading this file NASA thermodynamic data(Tip: use fopen and fgetl). The formulae are shown below.

Here R is the universal gas constant, T is the temeprature

The FIRST 7 coefficients are HIGH-temperature coefficients and the SECOND 7 coefficients are LOW-temperature coefficients.

Also use the LOCAL TEMPERATURE RANGES which is unique for each individual species, not the GLOBAL TEMPERATURE RANGE.

2. Calculate the molecular weight of each species and display it in the command window.

3. Plot the Cp, Enthalpy and Entropy for the local temperature range (low temperature : high temperature) specific for each species.

4. Save the plots as images with appropriate names and dump them in separate folders for each species with suitable name. All these should be generated automatically.

5. The main program that you will submit will just take the "THERMO.dat" file as an input and generate Cp, H and S plots.

6. Please write a detailed report to describe your logic.

Attachments needed:

  • Screenshot of the window where all the folders are saved.
  • Plots for o2, N2 and Co2 species (your program should be case insensitive, if it is going to take the species name as an input).

NOTE:

The presentation of your code will be taken into consideration while grading. Labelling sections of your code using comments is appreciated.

Content expected in the report:

  • Step-wise explanation of your code.
  • Mention the errors faced while programming.
  • Steps taken to overcome those errors.
  • Screenshots showing errors thrown in command window.

Under references, mention the literature or online material you have used during your research.

GENERAL INSTRUCTIONS:

  • The codes, plots, images, GIFs, and videos should be submitted only through the answer box.
  • Use the Google Drive to share only the cad models or other answers which couldn't be done through the answer box.

NOTE:

  • Violating the above instructions will lead to ZERO marks.
  • Link sharing should be enabled while sharing the Google Drive link, else the challenge will be awarded ZERO marks.

For dysfunctional or inaccurate links 1 mark will be awarded

Just submitting your code without the report will result in a 0 grade

Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.