% calculation of drag force %inputs % coefficient of drag cd=0.1; %density in kg/m^3 rho=1.2; % frontal area in m^2 a=5; %velocity of cycle in m/s v=20; % fd is drag force %formula fd=0.5*rho*a*v^2*cd; plot(fd,v,\'line width\',2,\'color\',\'r\') xlabel(\'drag force\') ylabel(\'velocity\') % calculation of…
venkat prashanth
updated on 31 May 2018
Project Details
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...
Read more Projects by venkat prashanth (19)
CURVE FIT
clear allclose all clc % preparing data cpdata=load(\'data\'); temp=cpdata(:,1); cp=cpdata(:,2); % curve fit %cp=a*t+c coeffs=polyfit(temp,cp,1); predictedcp=polyval(coeffs,temp); %compare curve fit with original data plot(temp,cp,\'linewidth\',3); hold on plot(temp,predictedcp,\'linewidth\',3,\'color\',\'r\'); xlabel(\'temp…
07 Jun 2018 12:06 AM IST
drag force calculation
% calculation of drag force %inputs % coefficient of drag cd=0.1; %density in kg/m^3 rho=1.2; % frontal area in m^2 a=5; %velocity of cycle in m/s v=linspace(1,10,20); % fd is drag force %formula fd=0.5*rho*a*v^2*cd; plot(fd,v,\'line width\',2,\'color\',\'r\') xlabel(\'drag force\') ylabel(\'velocity\') %…
07 Jun 2018 12:05 AM IST
CURVE FIT
clear allclose all clc % preparing data cpdata=load(\'data\'); temp=cpdata(:,1); cp=cpdata(:,2); % curve fit %cp=a*t+c coeffs=polyfit(temp,cp,1); predictedcp=polyval(coeffs,temp); %compare curve fit with original data plot(temp,cp,\'linewidth\',3); hold on plot(temp,predictedcp,\'linewidth\',3,\'color\',\'r\'); xlabel(\'temp…
01 Jun 2018 12:01 AM IST
ODE
function [dtheta_dt] = ode_func(t,theta,b,g,l,m) theta1=theta(1)theta2=theta(2)dtheta1_dt=theta2;dtheta2_dt=-(b/m)*theta2-(g/l)*sin(theta1);dtheta_dt=[dtheta1_dt;dtheta2_dt];end clear allclose allclc b=0.5; g=9.81; l=1; m=1; % initial condition theta_0=[0;3]; % time points tspan=linspace(0,20,500); % solve ODE [t,results]=ode45(@(t,theta)…
01 Jun 2018 12:01 AM IST
drag force calculation
% calculation of drag force %inputs % coefficient of drag cd=0.1; %density in kg/m^3 rho=1.2; % frontal area in m^2 a=5; %velocity of cycle in m/s v=linspace(1,10,20); % fd is drag force %formula fd=0.5*rho*a*v^2*cd; plot(fd,v,\'line width\',2,\'color\',\'r\') xlabel(\'drag force\') ylabel(\'velocity\') %…
01 Jun 2018 12:00 AM IST
drag force calculation
% calculation of drag force %inputs % coefficient of drag cd=0.1; %density in kg/m^3 rho=1.2; % frontal area in m^2 a=5; %velocity of cycle in m/s v=20; % fd is drag force %formula fd=0.5*rho*a*v^2*cd; plot(fd,v,\'line width\',2,\'color\',\'r\') xlabel(\'drag force\') ylabel(\'velocity\') % calculation of…
31 May 2018 11:58 PM IST
CURVE FIT
clear allclose all clc % preparing data cpdata=load(\'data\'); temp=cpdata(:,1); cp=cpdata(:,2); % curve fit %cp=a*t+c coeffs=polyfit(temp,cp,1); predictedcp=polyval(coeffs,temp); %compare curve fit with original data plot(temp,cp,\'linewidth\',3); hold on plot(temp,predictedcp,\'linewidth\',3,\'color\',\'r\'); xlabel(\'temp…
31 May 2018 12:33 AM IST
ODE
function [dtheta_dt] = ode_func(t,theta,b,g,l,m) theta1=theta(1)theta2=theta(2)dtheta1_dt=theta2;dtheta2_dt=-(b/m)*theta2-(g/l)*sin(theta1);dtheta_dt=[dtheta1_dt;dtheta2_dt];end clear allclose allclc b=0.5; g=9.81; l=1; m=1; % initial condition theta_0=[0;3]; % time points tspan=linspace(0,20,500); % solve ODE [t,results]=ode45(@(t,theta)…
31 May 2018 12:33 AM IST
PV DIAGRAM VISUALIZER
function [v]= engine_kinematics(bore,stroke,conrod,cr,startcrank,endcrank) a=stroke/2;R=conrod/a; vs=(pi/4)*bore^2*stroke;vc=vs/(cr-1); theta=linspace(startcrank,endcrank,100)term1= 0.5*(cr-1);term2=R+1-cosd(theta);term3=(R^2-(sind(theta).^2)).^0.5; v=(1+term1*(term2-term3)).*vcend clear allclose allclc % calculation…
31 May 2018 12:33 AM IST
DR
% calculation of drag force %inputs % coefficient of drag cd=0.1; %density in kg/m^3 rho=1.2; % frontal area in m^2 a=5; %velocity of cycle in m/s v=20; % fd is drag force %formula fd=0.5*rho*a*v^2*cd; plot(fd,v,\'line width\',2,\'color\',\'r\') xlabel(\'drag force\') ylabel(\'velocity\') % calculation of…
31 May 2018 12:32 AM IST
CURVE FIT
clear allclose all clc % preparing data cpdata=load(\'data\'); temp=cpdata(:,1); cp=cpdata(:,2); % curve fit %cp=a*t+c coeffs=polyfit(temp,cp,1); predictedcp=polyval(coeffs,temp); %compare curve fit with original data plot(temp,cp,\'linewidth\',3); hold on plot(temp,predictedcp,\'linewidth\',3,\'color\',\'r\'); xlabel(\'temp…
31 May 2018 12:32 AM IST
ODE
function [dtheta_dt] = ode_func(t,theta,b,g,l,m) theta1=theta(1)theta2=theta(2)dtheta1_dt=theta2;dtheta2_dt=-(b/m)*theta2-(g/l)*sin(theta1);dtheta_dt=[dtheta1_dt;dtheta2_dt];end clear allclose allclc b=0.5; g=9.81; l=1; m=1; % initial condition theta_0=[0;3]; % time points tspan=linspace(0,20,500); % solve ODE [t,results]=ode45(@(t,theta)…
21 May 2018 01:00 AM IST
drag force calculation
% calculation of drag force %inputs % coefficient of drag cd=0.1; %density in kg/m^3 rho=1.2; % frontal area in m^2 a=5; %velocity of cycle in m/s v=20; % fd is drag force %formula fd=0.5*rho*a*v^2*cd; plot(fd,v,\'line width\',2,\'color\',\'r\') xlabel(\'drag force\') ylabel(\'velocity\') % calculation of…
21 May 2018 12:18 AM IST
commands for row and column vectors
a=[1;2;3] is row vector%% is column vector b=[1 2 3] is column vector%% is row vector
21 May 2018 12:18 AM IST
PV DIAGRAM VISUALIZER
function [v]= engine_kinematics(bore,stroke,conrod,cr,startcrank,endcrank) a=stroke/2;R=conrod/a; vs=(pi/4)*bore^2*stroke;vc=vs/(cr-1); theta=linspace(startcrank,endcrank,100)term1= 0.5*(cr-1);term2=R+1-cosd(theta);term3=(R^2-(sind(theta).^2)).^0.5; v=(1+term1*(term2-term3)).*vcend clear allclose allclc % calculation…
21 May 2018 12:13 AM IST
drag force calculation
% calculation of drag force %inputs % coefficient of drag cd=0.1; %density in kg/m^3 rho=1.2; % frontal area in m^2 a=5; %velocity of cycle in m/s v=20; % fd is drag force %formula fd=0.5*rho*a*v^2*cd; plot(fd,v,\'line width\',2,\'color\',\'r\') xlabel(\'drag force\') ylabel(\'velocity\') % calculation of…
08 May 2018 10:52 AM IST
commands for row and column vectors
a=[1;2;3] is row vector b=[1 2 3] is column vector
08 May 2018 10:43 AM IST
row and column vectors
a=[1;2;3] is row vector b=[1 2 3] is column vector
08 May 2018 10:40 AM IST
PRODUCTION OF MAGNESIUM COMPOSITE MATERIALS AND ITS CHARACTERIZATION
ABSTRACT This project deals with the manufacturing of magnesium composites with three different composition of reinforcements such as AlâOâ,Silica and Carbon nano tubes. Stir casting process has been employed for producing magnesium matrix composites.To understand and analyse the quality of Magnesium composites,experiments…
08 May 2018 04:48 AM IST