evaluation a drag over a pre-designed model of a car using CFD
https://docs.google.com/document/d/17Kr3rZadVDKwEz5oEKiI1EsLYVsqwxqLz_l430JiSC8/edit?usp=sharing
clear all
close all
clc
n=[1:1:10];
ar1 = alkane(n);
ar2 = alkene(n);
ar3 = alkyne(n);
plot(n,ar1);
hold on
plot(n,ar2,\'r\');
hold on
plot(n,ar3,\'b\');
xlabel(\'Number of moles of C\');
ylabel(\'Stoichiometric co-efficient\');
legend(\'alkane\',\'alkene\',\'alkyne\');
function ar = alkane(n)
ar = 2+((n-1)*1.5);
end
function ar = alkene(n)
ar = 1.5+((n-1)*1.5);
end
function ar = alkyne(n)
if n==1
ar=0;
else
ar=2.5+(n-2)*1.5;
end
end