Menu

Executive Programs

Workshops

Projects

Blogs

Careers

Placements

Student Reviews


For Business


More

Academic Training

Informative Articles

Find Jobs

We are Hiring!


All Courses

Choose a category

Loading...

All Courses

All Courses

logo

Loading...
Executive Programs
Workshops
For Business

Success Stories

Placements

Student Reviews

More

Projects

Blogs

Academic Training

Find Jobs

Informative Articles

We're Hiring!

phone+91 9342691281Log in
  1. Home/
  2. Arun Gupta/
  3. Project 1 - Parsing NASA thermodynamic data

Project 1 - Parsing NASA thermodynamic data

AIM:- Parsing NASA thermodynamic data Writing MATLAB coding for reading a NASA thermodynamic data file. Coding of extracting the coefficient from the file. Coding of calculating thermodynamic properties with the help of extracting co-efficient for a particular species. Calculate the molecular weight of each species…

  • MATLAB
  • Arun Gupta

    updated on 18 Oct 2022

AIM:- Parsing NASA thermodynamic data

  1. Writing MATLAB coding for reading a NASA thermodynamic data file.
  2. Coding of extracting the coefficient from the file.
  3. Coding of calculating thermodynamic properties with the help of extracting co-efficient for a particular species.
  4. Calculate the molecular weight of each species and display it in the command window.
  5. Coding of saving the plots as images with appropriate names and dumping them in separate folders for each species with a suitable name. All these will be generated automatically.

Molecular mass Function Codding:

function [M]=molecular_mass(molecule_name);

fprintf('Molecular weight of ');
fprintf(molecule_name);
fprintf(' : ');
atoms=['h','C','N','O','R'];
%R is for argon molecule and not use ()these small brackets.

atom_weight=[1 12 14 16 40];
M=0;
for i=1:length(molecule_name);
  
        for j=1:length(atoms)
        if strcmpi(molecule_name(i),atoms(j));
            %strcmp means string comparision .it is used for checking that both elements are same or not. and by use strcmpi here,it take doesn't matter about elements are capital letter or small Example'h' =='H'means case insensitive condition.
            
           
            M=M+atom_weight(j);
           position=j;
           % here, we are storing the position of corrected match molecule characters to  the atoms
       
        end
        end
        n= str2num(molecule_name(i));
        %this all proces is doing for a number multiplier in molecule name.so the value of n will be come same as a number value present in that string name  
       
        if n > 1
            M=M+atom_weight(position)*(n-1);
            %here we are taking (n-1) in multiply instead of n because we are input second time coding  M=M+atom_weight.so by this two times mass add so to over come this we are reducing n to n-1 time
        


        end

end
fprintf('%d',M);%d is for digit

disp(' ')
%it is not necessary command disp which refers to display, space (' ').But it for second time running the program because it separates the molecular weight statements to additional matlab warning statements like directory is already exist.
end

Plots of O2:

                                                              

Plots of N2:

                                                           

Plots of CO2:

    

 

            

 

Leave a comment

Thanks for choosing to leave a comment. Please keep in mind that all the comments are moderated as per our comment policy, and your email will not be published for privacy reasons. Please leave a personal & meaningful conversation.

Please  login to add a comment

Other comments...

No comments yet!
Be the first to add a comment

Read more Projects by Arun Gupta (62)

Project 1 : Flow over Ahmed Body

Objective:

Flow over Ahmed's Body The Ahmed body represents a simplified, ground vehicle geometry of a bluff body type. Its shape is simple enough to allow for accurate flow simulation but retains some important practical features relevant to automobile bodies. This model describes how to calculate the turbulent flow field around…

calendar

24 Nov 2023 05:24 AM IST

  • STAR-CCM
Read more

Project 1 : CFD Meshing for Tesla Cyber Truck

Objective:

Objective : To Identify & clean up all the topological errors in the given Tesla Cyber Truck Car model. To create a surface mesh. To Create a wind tunnel around Tesla Cyber Truck Car. To create a volumetric mesh to perform an external flow CFD analysis simulation.   Introduction : ANSA :  ANSA is a Computer-aided engineering tool…

calendar

09 Sep 2023 11:52 AM IST

  • ANSA
  • CAE
  • CFD
  • RADIOSS
Read more

Project 1 - Meshing of Floor Panel

Objective:

AIM:- To mesh the given floor panel for the given quality criterias without any failure in the elements. Project description:- FLOOR PANEL GIVEN:-   Procedures for Meshing a 2D component:- i) Importing the CAD model into ANSA:- The cad model is imported into the Ansa software by clicking File ---> New command. ii) Geometry…

calendar

04 Mar 2023 05:12 AM IST

  • ANSA
Read more

Project 1 : CFD Meshing for Tesla Cyber Truck

Objective:

Objective : To Identify & clean up all the topological errors in the given Tesla Cyber Truck Car model. To create a surface mesh. To Create a wind tunnel around Tesla Cyber Truck Car. To create a volumetric mesh to perform an external flow CFD analysis simulation.   Introduction : ANSA :  ANSA is…

calendar

04 Mar 2023 05:05 AM IST

  • ANSA
  • CAE
  • CFD
  • RADIOSS
Read more

Schedule a counselling session

Please enter your name
Please enter a valid email
Please enter a valid number

Related Courses

coursecard

Simulation and Design of Power Converters for EV using MATLAB and Simulink

4.9

22 Hours of Content

coursecard

Introduction to Hybrid Electric Vehicle using MATLAB and Simulink

4.8

23 Hours of Content

coursecardcoursetype

Mechanical Engineering Essentials Program

4.7

21 Hours of Content

coursecard

Vehicle Dynamics using MATLAB

4.8

37 Hours of Content

coursecard

Introduction to CFD using MATLAB and OpenFOAM

4.8

13 Hours of Content

Schedule a counselling session

Please enter your name
Please enter a valid email
Please enter a valid number

              Do You Want To Showcase Your Technical Skills?
              Sign-Up for our projects.