All Courses
All Courses
Courses by Software
Courses by Semester
Courses by Domain
Tool-focused Courses
Machine learning
POPULAR COURSES
Success Stories
1. AIM: Write a function code in MATLAB to parse the NASA thermodynamic data file and then calculate the thermodynamic properties of various gas species. 2. GOVERNING EQUATIONS IF ANY: Here Cp(KJ/(Kg*K)) is Specific Heat, H(KJ) is Enthalpy & S(KJ/K) is Entropy, `(Cp)/R=a1+a2*T+a3*T^2+ a4*T^3+…
Amit Chilap
updated on 11 Mar 2021
1. AIM:
2. GOVERNING EQUATIONS IF ANY:
CpR=a1+a2⋅T+a3⋅T2+a4⋅T3+a5⋅T4
HRT=a1+a2⋅T2+a3⋅T23+a4⋅T34+a5⋅T45+a6T
SR=a1⋅ln(T)+a2⋅T+a3⋅T22+a4⋅T33+a5⋅T44+a7
3. OBJECTIVES OF THE PROJECT:
4. BODY OF THE CONTENT:
%Parsing NASA Thermodynamic Data
close all
clear all
clc
tic; %Start Stopwatch Timer.
f1 = fopen('THERMO.dat','r'); %Open file, & read information from it.
%Collecting Title.
Title=fgetl(f1); %Read line from File.
%Collecting Global Temperature Range Values.
txt_1=fgetl(f1); %Read line from File.
g_temp=strsplit(txt_1,' '); %Splitting string at specified delimiter.
global_low_temp=str2num(g_temp{2}); %Collecting Global Low Temperature Value & converting string to number.
global_mid_temp=str2num(g_temp{3}); %Collecting Global Mid Temperature Value & converting string to number.
global_high_temp=str2num(g_temp{4}); %Collecting Global High Temperature Value & converting string to number.
%Skipping Comments Line.
fgetl(f1); %Read line from File.
fgetl(f1); %Read line from File.
fgetl(f1); %Read line from File.
for i=1:53 %Using 'FOR' loop to collect and Generate Outputs for Each Molecule/Species.
%Reading the Molecule/Species Information Line.
l1=fgetl(f1); %Read line from File & Saving it as variable 'l1'.
L1=strsplit(append(l1(1:15),l1(49:75)),' '); %Splitting string at specified delimiter & Collecting Molecule/Species name and its Global Temperature Values.
Molecules(i,:)=string(L1{1}); %Collecting Molecules/Species Name & converting it into string.
local_low_temp(i,:)=str2num(L1{2}); %Collecting Local Low Temperature Value & converting string to number.
local_mid_temp(i,:)=str2num(L1{3}); %Collecting Local Mid Temperature Value & converting string to number.
local_high_temp(i,:)=str2num(L1{4}); %Collecting Local High Temperature Value & converting string to number.
%Reading the Coefficient lines.
l2=fgetl(f1); %Read line from File & Saving it as variable 'l2'.
l3=fgetl(f1); %Read line from File & Saving it as variable 'l3'.
l4=fgetl(f1); %Read line from File & Saving it as variable 'l4'.
%Colleting the Coefficients data from lines.
%First 7 are High-Temperature Coefficients.
a01(i,:)=str2num(l2(01:15)); %Collecting Variable Value & converting string to number.
a02(i,:)=str2num(l2(16:30)); %Collecting Variable Value & converting string to number.
a03(i,:)=str2num(l2(31:45)); %Collecting Variable Value & converting string to number.
a04(i,:)=str2num(l2(46:60)); %Collecting Variable Value & converting string to number.
a05(i,:)=str2num(l2(61:75)); %Collecting Variable Value & converting string to number.
a06(i,:)=str2num(l3(01:15)); %Collecting Variable Value & converting string to number.
a07(i,:)=str2num(l3(16:30)); %Collecting Variable Value & converting string to number.
%Second 7 are Low-Temperature Coefficients.
a08(i,:)=str2num(l3(31:45)); %Collecting Variable Value & converting string to number.
a09(i,:)=str2num(l3(46:60)); %Collecting Variable Value & converting string to number.
a10(i,:)=str2num(l3(61:75)); %Collecting Variable Value & converting string to number.
a11(i,:)=str2num(l4(01:15)); %Collecting Variable Value & converting string to number.
a12(i,:)=str2num(l4(16:30)); %Collecting Variable Value & converting string to number.
a13(i,:)=str2num(l4(31:45)); %Collecting Variable Value & converting string to number.
a14(i,:)=str2num(l4(46:60)); %Collecting Variable Value & converting string to number.
%Calculating Thermal Values for each Molecule/Species.
R=8.314; %Universal Gas Constant for Calculating Other Thermal Values.
temp(i,:)=linspace(local_low_temp(i,:),local_high_temp(i,:),500); %Creating temperature values to plot Graphs.
for j=1:500 %Using 'FOR' loop to calculate Thermal Values for each temperature value within a given range.
if temp(i,j)<=local_mid_temp(i,:) %Using 'IF' loop to check temperature value is lower or higher, and to solve equations depending on the condition.
Cp(i,j)=R*(a08(i)+a09(i)*temp(i,j)+a10(i)*temp(i,j)^2+a11(i)*temp(i,j)^3+a12(i)*temp(i,j)^4); %Equation to Calculate Specific Heat(Cp) under the given conditions.
H(i,j)=R*temp(i,j)*(a08(i)+[a09(i)*temp(i,j)]/2+[a10(i)*temp(i,j)^2]/3+[a11(i)*temp(i,j)^3]/4+[a12(i)*temp(i,j)^4]/5+a13(i)/temp(i,j)); %Equation to Calculate Enthalpy(H) under the given conditions.
S(i,j)=R*(a08(i)*log(temp(i,j))+a09(i)*temp(i,j)+[a10(i)*temp(i,j)^2]/2+[a11(i)*temp(i,j)^3]/3+[a12(i)*temp(i,j)^4]/4+a14(i)); %Equation to Calculate Entropy(S) under the given conditions.
else %Using ELSE to solve the equations on another condition.
Cp(i,j)=R*(a01(i)+a02(i)*temp(i,j)+a03(i)*temp(i,j)^2+a04(i)*temp(i,j)^3+a05(i)*temp(i,j)^4); %Equation to Calculate Specific Heat(Cp) under the given conditions.
H(i,j)=R*temp(i,j)*(a01(i)+[a02(i)*temp(i,j)]/2+[a03(i)*temp(i,j)^2]/3+[a04(i)*temp(i,j)^3]/4+[a05(i)*temp(i,j)^4]/5+a06(i)/temp(i,j)); %Equation to Calculate Enthalpy(H) under the given conditions.
S(i,j)=R*(a01(i)*log(temp(i,j))+a02(i)*temp(i,j)+[a03(i)*temp(i,j)^2]/2+[a04(i)*temp(i,j)^3]/3+[a05(i)*temp(i,j)^4]/4+a07(i)); %Equation to Calculate Entropy(S) under the given conditions.
end %Ending 'IF' loop.
end %Ending 'FOR' loop.
%Calculating weight of Molecule/Species.
Atoms=["H","C","N","O","AR"]; %Creating Atoms matrix with each atom from file.
aw=[1 12 14 16 40]; %Creating Atomic weight matrix for each atom from atoms matrix respectively.
MW(i,:)=0; %Initial Molecule/Species Weight.
mol=char(Molecules(i)); %Collecting each character from the Molecule/Species name.
for j=1:length(mol); %Using 'FOR' loop to compare every character with atoms.
for k=1:length(Atoms); %Using 'FOR' loop to compare character with each atom.
if strcmpi(mol(j),Atoms(k)); %Using 'IF' loop to compare each character(Case Sensitive) of Molecule/Species with Atoms.
MW(i,:)=MW(i,:)+aw(k); %Updating Molecule/Species Weight.
m=k; %Storing value of k
end %Ending 'IF' loop.
end %Ending 'FOR' loop.
n=str2num(mol(j)); %Collecting No. values from Molecule/Species Name.
if n>1 %Using 'IF' loop to check if no. is greater than 1.
MW(i,:)=MW(i,:)+aw(m)*(n-1); %Updating Molecule/Species Weight.
end %Ending 'IF' loop.
if mol=="AR" %Using 'IF' loop to compare the character of Molecule/Species with Atoms.
MW(i,:)=40; %Updating Molecule/Species Weight.
end %Ending 'IF' loop.
end %Ending 'FOR' loop.
%Plotting and Saving Graphs and Data File of each Molecule/Species into its respective Molecule/Species Folder
cd('C:UsersamchiDocumentsMATLABChallenges8. Parsing NASA thermodynamic data') %Change current folder.
Name=sprintf('%s ',Molecules(i)); %Creating character variable of Molecules/Species.
mkdir(Name) %Making New Folder.
cd(Name) %Change current folder.
figure(1); %Figure for Plotting Specific Heat vs Temperature.
plot(temp(i,:),Cp(i,:),'linewidth',3,'color','r'); %Plotting Specific Heat vs Temperature.
xlabel('Temperature(K)') %Labelling the X-Axis.
ylabel('Specific Heat(KJ/(Kg*k))') %Labelling the Y-Axis.
txt_Cp=sprintf('Specific Heat vs Temperature of Molecule n %s ( Molecule Weight = %3.1f )',Molecules(i),MW(i)); %Text to display as Title.
title(txt_Cp) %Display Title.
grid on %Display Axis Grid Lines.
saveas(figure(1),'Specific Heat.jpg') %Save figure to specific file format.
figure(2); %Figure for Plotting Enthalpy vs Temperature.
plot(temp(i,:),H(i,:),'linewidth',3,'color','g'); %Plotting Enthalpy vs Temperature.
xlabel('Temperature(K)') %Labelling the X-Axis.
ylabel('Enthalpy(KJ)') %Labelling the Y-Axis.
txt_H=sprintf('Enthalpy vs Temperature of Molecule n %s ( Molecule Weight = %3.1f )',Molecules(i),MW(i)); %Text to display as Title.
title(txt_H) %Display Title.
grid on %Display Axis Grid Lines.
saveas(figure(2),'Enthalpy.jpg') %Save figure to specific file format.
figure(3); %Figure for Plotting Entropy vs Temperature.
plot(temp(i,:),S(i,:),'linewidth',3,'color','b'); %Plotting Entropy vs Temperature.
xlabel('Temperature(K)') %Labelling the X-Axis.
ylabel('Entropy(KJ/K)') %Labelling the Y-Axis.
txt_S=sprintf('Entropy vs Temperature of Molecule n %s ( Molecule Weight = %3.1f )',Molecules(i),MW(i)); %Text to display as Title.
title(txt_S) %Display Title.
grid on %Display Axis Grid Lines.
saveas(figure(3),'Entropy.jpg') %Save figure to specific file format.
f2 = fopen('Data of Molecule or Species.txt','w'); %Open file, & write information in it.
txt_d=sprintf('Data of Molecule/Species : %s ( Molecule Weight = %3.1f )',Molecules(i),MW(i)); %Text to Print.
fprintf(f2,txt_d); %Write data to text file.
fprintf(f2,'n %20s %20s %20s %20s n','Temperature(K)','Specific Heat(KJ/(Kg*K))','Enthalpy(KJ)','Entropy(KJ/K)'); %Write data to text file.
for j=1:length(temp(i,:)) %Using 'FOR' loop to write multiple similar data.
fprintf(f2,'%20.10f %20.10f %20.10f %20.10f n',temp(i,j),Cp(i,j),H(i,j),S(i,j)); %Write data to text file.
end %Ending 'FOR' loop.
fclose(f2); %Close File.
cd('C:UsersamchiDocumentsMATLABChallenges8. Parsing NASA thermodynamic data') %Change current folder.
end %Ending 'FOR' loop.
%Creating and Writing data file of Molecular Weight.
f3 = fopen('Molecular Weight.txt','w'); %Open file, & write information in it.
for i=1:length(Molecules) %Using 'FOR' loop to write multiple similar data.
fprintf(f3,'Molecular Weight of Molecule/Species %6s is %3.0f n',Molecules(i),MW(i)); %Write data to text file.
end %Ending 'FOR' loop.
fclose(f3); %Close File.
%Displaying Molecular Weight of each species in the command window.
f4 = fopen('Molecular Weight.txt','r'); %Open file, & read information from it.
for i=1:length(Molecules) %Using 'FOR' loop to write multiple similar data.
disp(fgetl(f4)) %Displaying line data.
end %Ending 'FOR' loop.
fclose(f4); %Close File.
fclose(f1); %Close File.
t=toc; %Stop Stopwatch Timer and collect time data.
fprintf('n Program Run Time to Collect & Write Data from File is %4.2f Seconds.n',t) %Displaying time taken to collect data from file.
%Parsing NASA Thermodynamic Data
close all
clear all
clc
tic; %Start Stopwatch Timer.
f1 = fopen('THERMO.dat','r'); %Open file, & read information from it.
%Collecting Title.
Title=fgetl(f1); %Read line from File.
%Collecting Global Temperature Range Values.
txt_1=fgetl(f1); %Read line from File.
g_temp=strsplit(txt_1,' '); %Splitting string at specified delimiter.
global_low_temp=str2num(g_temp{2}); %Collecting Global Low Temperature Value & converting string to number.
global_mid_temp=str2num(g_temp{3}); %Collecting Global Mid Temperature Value & converting string to number.
global_high_temp=str2num(g_temp{4}); %Collecting Global High Temperature Value & converting string to number.
%Skipping Comments Line.
fgetl(f1); %Read line from File.
fgetl(f1); %Read line from File.
fgetl(f1); %Read line from File.
for i=1:53 %Using 'FOR' loop to collect and Generate Outputs for Each Molecule/Species.
%Reading the Molecule/Species Information Line.
l1=fgetl(f1); %Read line from File & Saving it as variable 'l1'.
L1=strsplit(append(l1(1:15),l1(49:75)),' '); %Splitting string at specified delimiter & Collecting Molecule/Species name and its Global Temperature Values.
Molecules(i,:)=string(L1{1}); %Collecting Molecules/Species Name & converting it into string.
local_low_temp(i,:)=str2num(L1{2}); %Collecting Local Low Temperature Value & converting string to number.
local_mid_temp(i,:)=str2num(L1{3}); %Collecting Local Mid Temperature Value & converting string to number.
local_high_temp(i,:)=str2num(L1{4}); %Collecting Local High Temperature Value & converting string to number.
%Reading the Coefficient lines.
l2=fgetl(f1); %Read line from File & Saving it as variable 'l2'.
l3=fgetl(f1); %Read line from File & Saving it as variable 'l3'.
l4=fgetl(f1); %Read line from File & Saving it as variable 'l4'.
%Colleting the Coefficients data from lines.
%First 7 are High-Temperature Coefficients.
a01(i,:)=str2num(l2(01:15)); %Collecting Variable Value & converting string to number.
a02(i,:)=str2num(l2(16:30)); %Collecting Variable Value & converting string to number.
a03(i,:)=str2num(l2(31:45)); %Collecting Variable Value & converting string to number.
a04(i,:)=str2num(l2(46:60)); %Collecting Variable Value & converting string to number.
a05(i,:)=str2num(l2(61:75)); %Collecting Variable Value & converting string to number.
a06(i,:)=str2num(l3(01:15)); %Collecting Variable Value & converting string to number.
a07(i,:)=str2num(l3(16:30)); %Collecting Variable Value & converting string to number.
%Second 7 are Low-Temperature Coefficients.
a08(i,:)=str2num(l3(31:45)); %Collecting Variable Value & converting string to number.
a09(i,:)=str2num(l3(46:60)); %Collecting Variable Value & converting string to number.
a10(i,:)=str2num(l3(61:75)); %Collecting Variable Value & converting string to number.
a11(i,:)=str2num(l4(01:15)); %Collecting Variable Value & converting string to number.
a12(i,:)=str2num(l4(16:30)); %Collecting Variable Value & converting string to number.
a13(i,:)=str2num(l4(31:45)); %Collecting Variable Value & converting string to number.
a14(i,:)=str2num(l4(46:60)); %Collecting Variable Value & converting string to number.
%Calculating Thermal Values for each Molecule/Species.
R=8.314; %Universal Gas Constant for Calculating Other Thermal Values.
temp(i,:)=linspace(local_low_temp(i,:),local_high_temp(i,:),500); %Creating temperature values to plot Graphs.
for j=1:500 %Using 'FOR' loop to calculate Thermal Values for each temperature value within a given range.
if temp(i,j)<=local_mid_temp(i,:) %Using 'IF' loop to check temperature value is lower or higher, and to solve equations depending on the condition.
Cp(i,j)=R*(a08(i)+a09(i)*temp(i,j)+a10(i)*temp(i,j)^2+a11(i)*temp(i,j)^3+a12(i)*temp(i,j)^4); %Equation to Calculate Specific Heat(Cp) under the given conditions.
H(i,j)=R*temp(i,j)*(a08(i)+[a09(i)*temp(i,j)]/2+[a10(i)*temp(i,j)^2]/3+[a11(i)*temp(i,j)^3]/4+[a12(i)*temp(i,j)^4]/5+a13(i)/temp(i,j)); %Equation to Calculate Enthalpy(H) under the given conditions.
S(i,j)=R*(a08(i)*log(temp(i,j))+a09(i)*temp(i,j)+[a10(i)*temp(i,j)^2]/2+[a11(i)*temp(i,j)^3]/3+[a12(i)*temp(i,j)^4]/4+a14(i)); %Equation to Calculate Entropy(S) under the given conditions.
else %Using ELSE to solve the equations on another condition.
Cp(i,j)=R*(a01(i)+a02(i)*temp(i,j)+a03(i)*temp(i,j)^2+a04(i)*temp(i,j)^3+a05(i)*temp(i,j)^4); %Equation to Calculate Specific Heat(Cp) under the given conditions.
H(i,j)=R*temp(i,j)*(a01(i)+[a02(i)*temp(i,j)]/2+[a03(i)*temp(i,j)^2]/3+[a04(i)*temp(i,j)^3]/4+[a05(i)*temp(i,j)^4]/5+a06(i)/temp(i,j)); %Equation to Calculate Enthalpy(H) under the given conditions.
S(i,j)=R*(a01(i)*log(temp(i,j))+a02(i)*temp(i,j)+[a03(i)*temp(i,j)^2]/2+[a04(i)*temp(i,j)^3]/3+[a05(i)*temp(i,j)^4]/4+a07(i)); %Equation to Calculate Entropy(S) under the given conditions.
end %Ending 'IF' loop.
end %Ending 'FOR' loop.
%Calculating weight of Molecule/Species.
Atoms=["H","C","N","O","AR"]; %Creating Atoms matrix with each atom from file.
aw=[1 12 14 16 40]; %Creating Atomic weight matrix for each atom from atoms matrix respectively.
MW(i,:)=0; %Initial Molecule/Species Weight.
mol=char(Molecules(i)); %Collecting each character from the Molecule/Species name.
for j=1:length(mol); %Using 'FOR' loop to compare every character with atoms.
for k=1:length(Atoms); %Using 'FOR' loop to compare character with each atom.
if strcmpi(mol(j),Atoms(k)); %Using 'IF' loop to compare each character(Case Sensitive) of Molecule/Species with Atoms.
MW(i,:)=MW(i,:)+aw(k); %Updating Molecule/Species Weight.
m=k; %Storing value of k
end %Ending 'IF' loop.
end %Ending 'FOR' loop.
n=str2num(mol(j)); %Collecting No. values from Molecule/Species Name.
if n>1 %Using 'IF' loop to check if no. is greater than 1.
MW(i,:)=MW(i,:)+aw(m)*(n-1); %Updating Molecule/Species Weight.
end %Ending 'IF' loop.
if mol=="AR" %Using 'IF' loop to compare the character of Molecule/Species with Atoms.
MW(i,:)=40; %Updating Molecule/Species Weight.
end %Ending 'IF' loop.
end %Ending 'FOR' loop.
%Plotting and Saving Graphs and Data File of each Molecule/Species into its respective Molecule/Species Folder
cd('C:UsersamchiDocumentsMATLABChallenges8. Parsing NASA thermodynamic data') %Change current folder.
Name=sprintf('%s ',Molecules(i)); %Creating character variable of Molecules/Species.
mkdir(Name) %Making New Folder.
cd(Name) %Change current folder.
figure(1); %Figure for Plotting Specific Heat vs Temperature.
plot(temp(i,:),Cp(i,:),'linewidth',3,'color','r'); %Plotting Specific Heat vs Temperature.
xlabel('Temperature(K)') %Labelling the X-Axis.
ylabel('Specific Heat(KJ/(Kg*K))') %Labelling the Y-Axis.
txt_Cp=sprintf('Specific Heat vs Temperature of Molecule n %s ( Molecule Weight = %3.1f )',Molecules(i),MW(i)); %Text to display as Title.
title(txt_Cp) %Display Title.
grid on %Display Axis Grid Lines.
saveas(figure(1),'Specific Heat.jpg') %Save figure to specific file format.
figure(2); %Figure for Plotting Enthalpy vs Temperature.
plot(temp(i,:),H(i,:),'linewidth',3,'color','g'); %Plotting Enthalpy vs Temperature.
xlabel('Temperature(K)') %Labelling the X-Axis.
ylabel('Enthalpy(KJ)') %Labelling the Y-Axis.
txt_H=sprintf('Enthalpy vs Temperature of Molecule n %s ( Molecule Weight = %3.1f )',Molecules(i),MW(i)); %Text to display as Title.
title(txt_H) %Display Title.
grid on %Display Axis Grid Lines.
saveas(figure(2),'Enthalpy.jpg') %Save figure to specific file format.
figure(3); %Figure for Plotting Entropy vs Temperature.
plot(temp(i,:),S(i,:),'linewidth',3,'color','b'); %Plotting Entropy vs Temperature.
xlabel('Temperature(K)') %Labelling the X-Axis.
ylabel('Entropy(KJ/K)') %Labelling the Y-Axis.
txt_S=sprintf('Entropy vs Temperature of Molecule n %s ( Molecule Weight = %3.1f )',Molecules(i),MW(i)); %Text to display as Title.
title(txt_S) %Display Title.
grid on %Display Axis Grid Lines.
saveas(figure(3),'Entropy.jpg') %Save figure to specific file format.
f2 = fopen('Data of Molecule or Species.txt','w'); %Open file, & write information in it.
txt_d=sprintf('Data of Molecule/Species : %s ( Molecule Weight = %3.1f )',Molecules(i),MW(i)); %Text to Print.
fprintf(f2,txt_d); %Write data to text file.
fprintf(f2,'n %20s %20s %20s %20s n','Temperature(K)','Specific Heat(KJ/(Kg*K))','Enthalpy(KJ)','Entropy(KJ/K)'); %Write data to text file.
for j=1:length(temp(i,:)) %Using 'FOR' loop to write multiple similar data.
fprintf(f2,'%20.10f %20.10f %20.10f %20.10f n',temp(i,j),Cp(i,j),H(i,j),S(i,j)); %Write data to text file.
end %Ending 'FOR' loop.
fclose(f2); %Close File.
cd('C:UsersamchiDocumentsMATLABChallenges8. Parsing NASA thermodynamic data') %Change current folder.
end %Ending 'FOR' loop.
%Creating and Writing data file of Molecular Weight.
f3 = fopen('Molecular Weight.txt','w'); %Open file, & write information in it.
for i=1:length(Molecules) %Using 'FOR' loop to write multiple similar data.
fprintf(f3,'Molecular Weight of Molecule/Species %6s is %3.0f n',Molecules(i),MW(i)); %Write data to text file.
end %Ending 'FOR' loop.
fclose(f3); %Close File.
%Displaying Molecular Weight of each species in the command window.
f4 = fopen('Molecular Weight.txt','r'); %Open file, & read information from it.
for i=1:length(Molecules) %Using 'FOR' loop to write multiple similar data.
disp(fgetl(f4)) %Displaying line data.
end %Ending 'FOR' loop.
fclose(f4); %Close File.
fclose(f1); %Close File.
t=toc; %Stop Stopwatch Timer and collect time data.
fprintf('n Program Run Time to Collect & Write Data from File is %4.2f Seconds.n',t) %Displaying time taken to collect data from file.
5. CONCLUSION:
6. REFERENCES:
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.
Other comments...
Week-3 Challenge: ADVISOR Tool
Introduction to HEV using MATLAB & Simulink Week-3 Challenge: ADVISOR Tool AIM: To simulate the given data and conditions for an EV using Advisor Tool in MATLAB. About ADVISOR ADVISOR, NREL’s Advanced Vehicle Simulator, is a set of model, data, and script text files for use with MATLAB and Simulink. It…
04 Jul 2022 11:04 AM IST
Project -BAJA All Terrain Vehicle (ATV) model
Simulink for Mechanical & Electrical Engineers - Challenges Final Project Aim To study, analyze and make a detailed report on BAJA All Terrain Vehicle (ATV) model using Simulink & compare between its different modes. Objective Prepare a technical report explaining the model properties & comments on the results.…
03 Jun 2021 03:25 AM IST
Week - 4
Simulink for Mechanical & Electrical Engineers Challenges = Week 4 Aim To Make a Simulink model using State-Flow for given questions. Questions & Solution Q1. Implement control logic of a “washing machine” using Stateflow as per given sequence: If the power supply is available, the system gets activated. If the Water supply…
21 May 2021 06:29 PM IST
Week -2
Simulink for Mechanical & Electrical Engineers Challenges = Week 2 Aim To Make a Simulink model of Doorbell using solenoid block. To Use a thermistor to sense the temperature of a heater & turn on or turn off the fan according to temperature. Questions & Solution Q1. Make a Simulink model of Doorbell using…
14 May 2021 12:30 AM IST
Related Courses
Skill-Lync offers industry relevant advanced engineering courses for engineering students by partnering with industry experts.
© 2025 Skill-Lync Inc. All Rights Reserved.