Question

In: Mechanical Engineering

MATLAB based problem: Create a motoring model for the engine with the following specifications, and plot...

MATLAB based problem: Create a motoring model for the engine with the following specifications, and plot the in-cylinder pressure against (i) cylinder volume and (ii) crank angle degrees (20 points)  Bore = 107mm, stroke = 124mm, compression ratio = 17.3, Length of connecting rod = 192mm. Assume the ratio of specific heats is 1.4 (constant), atmospheric pressure is 1 bar and ambient temperature is 298 K.

Solutions

Expert Solution

clc;

clear all;

format long;

%-------Defining Engine Geometry (All dimensions are in meter (m)------%

B = 0.107; %---Engine bore

L = 0.124; %---Engine stroke

r = 17.3; %---Engine compression ratio

l = 0.192; %---Engine connecting rod length

R = 0.058; %---Crank pin radius (Assumption, not given in the question)

Vs=(pi/4)*(B^2)*L; %---Stroke volume

Vc=Vs/(r-1); %---Clearance volume

Vt=Vs+Vc; %---Total volume

Ap=(pi/4)*(B^2); %---Piston Area

Smin=Vc/Ap; %---Clearance length

D=l/R; %---Ratio of connecting rod length to crank radius

Theta=[1:1:720]; % Crank angle in degree

Po= 100; %initial pressure in kPa

To=298; %initial tempereature in K

gamma=1.4; %Ratio of specific heat

for i=1:1:720

V(i)=Vc*(1+0.5*(r-1)*(D+1-cos(pi*i/180)-(D^2-(sin(pi*i/180))^2)^0.5));

V(i+1)=Vc*(1+0.5*(r-1)*(D+1-cos(pi*(i+1)/180)-(D^2-(sin(pi*(i+1)/180))^2)^0.5));

for i=1:1:215

P(i)=100;

T(i)=298;

for i=216:1:504

P(216)=100;

T(216)=289;

P(i+1)=P(i)*(V(i)/V(i+1))^gamma;

T(i+1)=T(i)*(V(i+1)/V(i))^(1-gamma);

for i=505:1:720

P(i)=P(504);

T(i)=T(504);

P(i+1)=P(i)*(T(i+1)/T(i));

end

end

end

end

i=1:1:720;

plot(i,P(i+1))


Related Solutions

This is a Matlab Exercise problem. Please create the Matlab code and figure for the following...
This is a Matlab Exercise problem. Please create the Matlab code and figure for the following problem using problem specifications: Plot x vs y when y=sin(x), y=cos(x), y=sin (2*x), and y=2*sin(x) when x = 1:0.1:10. Use 2 by 2 subplot, sin(x) is in location 1, cos(x) is in location 2, sin(2*x) is in location 3 and 2*sin(x) is in location 4. The plot should have: (1) x label = ‘x value’, y label = ‘y value’, legend ‘y=sin(x)’,’ y=cos(x)’,’ y=sin...
Plot the original data and the regression “line” ************USING Matlab************. "Submit plot" USING MATLAB! USING MATLAB!...
Plot the original data and the regression “line” ************USING Matlab************. "Submit plot" USING MATLAB! USING MATLAB! USING MATLAB! ONLY BY USING MATLAB!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 14.9 The concentration of E. coli bacteria in a swimming area is monitored after a storm: t (hr)                     4           8         12        16    20 24 c (CFU/100 mL) 1600     1320   1000     890 650 560 The time is measured in hours following the end of the storm and the unit CFU is a .colony forming unit.. Use this data to estimate (a)...
JAVA PROBLEM Part 1: Create a Car class in accordance with the following specifications. I will...
JAVA PROBLEM Part 1: Create a Car class in accordance with the following specifications. I will provide the CarClassTester class as a test driver to test your Car class for its basic structure. Do not change the CarClassTester class source code. After you get your Car class working correctly using this test driver, proceed to part 2 below. Car Class Specifications: The Car class must be in a separate package from any driver/tester program. The Car class will contain, at...
So the problem is to create a plot of points and plot them using only 'o'...
So the problem is to create a plot of points and plot them using only 'o' and no lines then using the polyfit and polyval functions, find a first order equation to curve fit the points (and plot it on the existing plot). I got that part and have the following code clear clc %define measured data temp = [250 300 340 400 460 500 540 600 660 700 750 810 930 1000 1120] HC= [.791 .846 .895 .939 .978...
Part 1: Create a Car class in accordance with the following specifications. make model year fuel...
Part 1: Create a Car class in accordance with the following specifications. make model year fuel tank size fuel economy – fuel economy at best speed optimal speed Some of the other fields: odometer trip odometer color fuel level The Car class will also need at least 3 constructors: Car() Car(String, String, String, int, double, double, double) Car(Car) The Car class must implement the following methods. public fillTank(double): double public toString():String public equals(Car):boolean public driveCar():boolean public getTripOdometer():double public clearTripOdometer():void public...
Practice for Matlab. You can create own f(x). a. Write code to find and plot a...
Practice for Matlab. You can create own f(x). a. Write code to find and plot a root using the modified secant method b. Find the roots using the roots command - identify and plot root of interest c. Use polyder and roots to find and plot the minimum value d. use fminbnd to find and plot minimum value Thank you!
Write a Matlab program to create specialized plot animation with 16 frames by using fast Fourier...
Write a Matlab program to create specialized plot animation with 16 frames by using fast Fourier transforms of complex matrices
Design a comb filter in MATLAB that meets the following specifications: it eliminates 5 harmonics of...
Design a comb filter in MATLAB that meets the following specifications: it eliminates 5 harmonics of 100Hz it eliminates dc (zero frequency) |h(t)| <= 0.001 for t> 0.5
Create matlab simulink model for dc-dc buck converter with screenshot. Note: provide matlab code for the...
Create matlab simulink model for dc-dc buck converter with screenshot. Note: provide matlab code for the output of dc-dc buck converter if possible.
Use the Saturation block to create a Simulink model to plot the solution of the following equation for 0 ≤ t ≤ 6.
Use the Saturation block to create a Simulink model to plot the solution of the following equation for 0 ≤ t ≤ 6.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT