Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 1: Create a matlab function that takes, as input: the initial temperature and pressure, the compression ratio, displacement volume, adiabatic exponent k, specific

image text in transcribed

Question 1: Create a matlab function that takes, as input: the initial temperature and pressure, the compression ratio, displacement volume, adiabatic exponent k, specific heat input Q. cycle type (Otto or Diesel); and returns, for an ideal cycle: the compression work, the expansion work, the net work, the efficiency, the torque, the temperature, pressure, and specific volume, at all the "main" points of the cycle: initial state, after compression, after combustion, after expansion. Your function should have the form: [W_comp, W_exp,W_net,eta,torque,states]=cycle(T1,P1,r, Vd, k, Q, cycle) Inputs: Ti: initial temperature P1: initial pressure r: compression ratio k: adiabatic exponent Vd: displacement volume Q: heat input cycle: type of cycle: I suggest you use a string equal to either "otto" or "diesel" Outputs: W comp: compression work in kJ W_exp: expansion work in kJ W_net: net work in kJ eta: efficiency torque: (obviously) the torque, in Nm states: I suggest using a struct. It's kind of weird the first time you use it, but it's VERY useful. E.g.: states.st1.T=T1, states.st1.P=P1, states.st2.T=T2, etc. [See this page for help on struct:

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Vector Mechanics For Engineers Statics

Authors: R.C.Hibbeler

7th Edition

978-0072931105, 0072931108

More Books

Students also viewed these Mechanical Engineering questions

Question

Explain factors governing recruitment?

Answered: 1 week ago