%engine geometry% d=0.1; L=0.1; conrodlength=0.15; crankradius=L/2; R=conrodlength/crankradius; rc=17.5; cutoff=2; vs=(pi/4)*d*d*L; vc=vs/(rc-1); gamma=1.4; %state 1% p1=101325; T1=500; v1=vs+vc; %state 2% v2=vc; p2=p1*(rc)^gamma; T2=T1*(rc)^(gamma-1); theta_comp=linspace(180,360,180); term1_comp=0.5*(rc-1); term2_comp=R+1-cosd(theta_comp);…
Kiran Raj B
updated on 15 Jul 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 Kiran Raj B (5)
Diesel cycle-PV Diagram visualizer
%engine geometry% d=0.1; L=0.1; conrodlength=0.15; crankradius=L/2; R=conrodlength/crankradius; rc=17.5; cutoff=2; vs=(pi/4)*d*d*L; vc=vs/(rc-1); gamma=1.4; %state 1% p1=101325; T1=500; v1=vs+vc; %state 2% v2=vc; p2=p1*(rc)^gamma; T2=T1*(rc)^(gamma-1); theta_comp=linspace(180,360,180); term1_comp=0.5*(rc-1); term2_comp=R+1-cosd(theta_comp);…
15 Jul 2018 03:50 AM IST
Otto cycle-PV Diagram visualizer
%engine geometry% d=0.1; L=0.1; conrodlength=0.15; crankradius=L/2; R=conrodlength/crankradius; rc=12; vs=(pi/4)*d*d*L; vc=vs/(rc-1); gamma=1.4; %state 1% p1=101325; T1=500; v1=vs+vc; %state 2% v2=vc; p2=p1*(rc)^gamma; T2=T1*(rc)^(gamma-1); theta_comp=linspace(180,360,180); term1_comp=0.5*(rc-1); term2_comp=R+1-cosd(theta_comp);…
15 Jul 2018 03:45 AM IST
Matlab program to calculate drag force against a cyclist
%a Matlab program to calculate drag force against a cyclist% %Incorporate a function to plot Drag force vs Velocity.(25 points)% vel=0:25:600cd=0.8row=1.17A=0.1Fd=0.5*row*cd*A*(vel.^2)plot(vel, Fd, vel, Fd, 'o')xlabel('Velocity of the cyclist in m/s')ylabel('Drag Force in N')title('Drag force vs Velocity of the cyclist')…
14 Jul 2018 02:54 PM IST
Program in Matlab to simulate the forward kinematics of a 2R Robotic Arm whose link 1 is 10 units and link 2 is 5 units in length.
%2R Robotic Arm Challenge %inputs l1=10; l2=5; t1=linspace(0,90,10); t2=linspace(0,90,10); %simulation n=1; for i=1:length(t1) T1=t1(i); for j=1:length(t2) T2=t2(j); x0=0; y0=0; x1=l1*cosd(T1); y1=l1*sind(T1); x2=x1+l2*cosd(T2); y2=y1+l2*sind(T2); plot([x0 x1], [y0 y1], [x1 x2], [y1 y2],'linewidth',2); axis([0 15 0 15]);…
14 Jul 2018 02:47 PM IST
Code to animate p-V of Air standard Otto cycle
%enginegeometry% d=0.1; L=0.1; conrodlength=0.15; crankradius=L/2; R=conrodlength/crankradius; rc=12;vs=(pi/4)*d*d*L; vc=vs/(rc-1);gamma=1.4; %state 1% p1=101325; T1=500; v1=vs+vc; %state 2% v2=vc; p2=p1*(rc)^gamma; T2=T1*(rc)^(gamma-1); theta_comp=linspace(180,360,180); term1_comp=0.5*(rc-1); term2_comp=R+1-cosd(theta_comp);…
30 Jan 2018 08:19 AM IST