Project 1 - Parsing NASA thermodynamic data
. FILE PARSING
AIM:
To parse the NASA thermodynamic data and to calculate the molecular weight of the species and to plot the cp,entropy for the local temperature range for O2,N2,C02.
THEORY:
DEFINITION:
file parsing: parsing a file means to split a file or other input into pieces of data that can easily stored or manipulted.so we are spilting a string into parts then recognizing the parts convert it into something simpler than a string.
ENTHALPY: A thermodynamic quantity equivalent to the total heat content of a system.it is equal to the internal energy of the system plus the product of pressure and volume.
ENTROPY: A thermodynamic quantity representing the unavailability of a system thermal energy for conversion into mechanical work often interpreted as the degree of disorder of randomness in the system
SPECIFIC HEAT: it is the amount of heat per unit mass required to raise the temperature by one degree celsius.
MOLECULAR WEIGHT: Molecular weight is the weight of given molecule.
ATOMIC MASS:the mass of an atom of a chemical expressed in atomic mass units.it is approximately equivalant to the number of protons and neutrons in the atom or to the average number allowing for the relative abundances of different isotopes.
EQUATIONS:
ENTROPY FUNCTION:
MOLECULAR WEIGHT FUNTION:
- clear all, close all and clc is commad to claer all.
- R= 8.314 U.gas constant.using 'fopen' command open the require file.then'fgetl' command to get in particular line in particlar file.
- 'tline' its refer to file lines,"str2num" commad is used to convert to array.
- "strspilt"use split the string."strfind' is find the value of string,"str2dobule"is covert string to dobule characters values.
- Using the above commands get all 'E' value ,'T' value,'spicies value'.
- then write the seprate function for ,'cp','h','s','mw'.
- this all are get finally,plot the required values.and save the file to jpg.formet using the saves command.









