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)...
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...
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
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.
Question 5. Use MATLAB to solve for and plot the response of the following models for...
Question 5. Use MATLAB to solve for and plot the response of the following models for 0≤t ≤1.5, where the input is f (t) =5t and the initial conditions are zero a. 3¨ x +21˙ x +30x = f (t) b. 5¨ A (Turn in the MATLAB script and answers from MATLAB, .m file, screen shots if needed) B (Turn in the MATLAB plot with t being time in SI units) C Comment on the response the analytical solution compared...
We will use the following information to create the profit model. Based on the data in...
We will use the following information to create the profit model. Based on the data in the tables below, create the profit model for Donuts to Go and Muffins to Go. Profit = Total revenue X num. of units – Variable Expenses X num. of units – Fixed Expenses (what are the values for Total Revenue, Variable Expenses and Fixed Expenses?) Assume that each customer will buy one donut(or muffin) and one cup of coffee. Come to class with both...
- Create a plot of the variable "fortw" (fortified wine sales). - Create a plot of...
- Create a plot of the variable "fortw" (fortified wine sales). - Create a plot of the ACF function for the same variable. - create a naive and exponential smoothing forecast for the variable "fortw". makw sure to take into account the attricutes that yous aw fromthe above plots. make sure to produce plots with the actual data and forecasts overlaid (one graph per forecasting technique) - Using the Mean Absolute Percentage Error (MAPE) measure of error, which of the...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT