Question

ICEOZA: Solving an couation using MATLAB - (isine Vester inputs) Using the Van der Waals equation of state for a real gas, we
0 0
Add a comment Improve this question Transcribed image text
Answer #1

For part1 of the answer the below screenshot of the code can be hand written. I have tried my level best to  make the code concise and simple with proper comment lines for each line to explain the code.

I have used octave to solve the problem but the code and functionality is same as Matlab.

- a X Editor Editor File Edit View Debug Run Help *pro2.mx 1 $From the given data for each variable, the required variables t

Below is the output of the following code, I have saved the code as pro2 so used it to run the code

Command Window Octave was configured for x86_64-164-mingw32. Additional information about Octave is available at https://ww

Part 2 and Part 3 are answered above where part2 is typing the above code in matlab editor and part 3 is taking the screen shots of the results after running the code as stated above

Part4

The modified matlab code after making v2 a vector of 3.0,4.0,5.0,6.0

- - o X Editor Editor File Edit View Debug Run Help I.3002. BEDI pro2.m & i pro3.m pro4.mx From the given data for each varia

The output of the following code is given below

Command Window -115.26 -160.94 -19992–295.56 U: D: 0.00 MB, 5 0.00 MB/s 3 2 4 11:32 AM

Just count the number of dots in code

part3: 02

part4: 08

part5 is just type the modified code and obtain the results from the code as shown above

part6 is modified code after taking v1 also as vector is given below

- O X Editor Editor File Edit View Debug Run Help pro2.m 1 pro3. m p ro4.m pro5.m From the given data for each variable, the

the results of the final modified code

Command Window в х >> pro5 work = -115.28 -153.50 -186.50 -215.74 40 o e Quinto . U: D: 0.00 MB/s 0.00 MB/s S ») 11:40 AM

number of dots in this code is 10.

hence all the parts of the question are clearly answered.   

Add a comment
Know the answer?
Add Answer to:
ICEOZA: Solving an couation using MATLAB - (isine Vester inputs) Using the Van der Waals equation...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 2. (15 marks) The van der Waals equation (first introduced by van der Waals in 1877) is an attemp...

    2. (15 marks) The van der Waals equation (first introduced by van der Waals in 1877) is an attempt to describe the fact that real gases do not follow the ideal gas law. According to this equation where P is the pressure of the gas, V is the volume, R is the gas constant, T is the temperature, n is the number of moles, and a and b are parameters that depend on the gas (a) Suppose that 1.0 ±...

  • The equation of state for a van der Waals fluid is ? You will look at...

    The equation of state for a van der Waals fluid is ? You will look at the work and energy it takes to compress such a fluid and compare it to an ideal gas. Show that the following identity is true using thermodynamic identity for U and Maxwell’s Relations. Using part (a), show that for a van der Waals fluid, the internal energy for a monatomic Take a van der Waals fluid at 101 kPa, 300 K, and an initial...

  • 1. The Redlich-Kwong equation of state is given by P=_RT___ A _ _ V-RI2,, - 0.0866 - where 4-0.42748RT - B - P (The R-K...

    1. The Redlich-Kwong equation of state is given by P=_RT___ A _ _ V-RI2,, - 0.0866 - where 4-0.42748RT - B - P (The R-K constants can be calculated from the critical temperature and pressure of the gas.) This EOS was introduced in 1949 and is adequate for calculations of gas phase properties when P, </2 T, a) Derive an expression for the work associated with an isothermal reversible volume change of a R-K gas between two volumes V, and...

  • Circuit Analysis: Need help writing this into MATLAB. I do not need it in paper I need help putting it into MATLAB. * DO NOT WRITE ON PAPER* Please use MATLAB and post your code. Thank you. My work c...

    Circuit Analysis: Need help writing this into MATLAB. I do not need it in paper I need help putting it into MATLAB. * DO NOT WRITE ON PAPER* Please use MATLAB and post your code. Thank you. My work completed. Please help me in make code for the above circuit ^. Here is my work for Part 3 that is needed to complete this part 4. ( could not solve the last part) Part 4. AC Solution by Phasor Analysis...

  • 1,4? Part I: Choose five of these questions. (12 points each) 1. Here is the van...

    1,4? Part I: Choose five of these questions. (12 points each) 1. Here is the van der Waals Equation for one mole of gas P Given this equation, how does the infinitesimal change in pressure, or as specific as possible. (In other words, evaluate the derivatives.) with d V and dT? B e-NV, where is the sity her of molecules and V is the fshe wall perpendicular to the 2. A sample of gas molecules of density N e e...

  • Matlab Question 2. For this problem you have to create a program that defines two vectors...

    Matlab Question 2. For this problem you have to create a program that defines two vectors of numbers: A and B and uses a for-loop to combine the values of A and B. Note that different parts of the question below specify different orders for combining the elements. To start this exercise start a MATLAB script called q2.m and put, at the top, the vector definition: B [11:20] Question 2a: Problem definition Copy the file q2.m to q2a.m. For this...

  • 4. An ideal Carnot power generation cycle using air is represented by the diagram below. The prop...

    4. An ideal Carnot power generation cycle using air is represented by the diagram below. The properties of the state points are given in the table below. Take the properties of air to be cp 0040.717. and RBhthe ns: and G, have been 1.004 chosen as the average values between the high temperature and low temperature processes, in order for you to not have to worry about the temperature dependence of cp and c, for this problem.) Recall that y...

  • Nay programming languge is fine (MatLab, Octave, etc.) This is the whole document this last picture...

    Nay programming languge is fine (MatLab, Octave, etc.) This is the whole document this last picture i sent is the first page 5. Write and save a function Sphere Area that accepts Radius as input argument, and returns SurfaceArea (4 tt r) as output argument. Paste the function code below. Paste code here 6. Validate your Sphere Area function from the command line, checking the results against hand calculations. Paste the command line code and results below. 7. Design an...

  • 4. MATLAB can solve second order equations numerically, but it needs to convert it to a...

    4. MATLAB can solve second order equations numerically, but it needs to convert it to a sys- tem first. We haven't covered systems yet, but we can make use of them (entirely in MAT- LAB) to solve this problem. The help page https://www.mathworks.com/help/symbolic/ solve-differential-equation-numerically-1.html shows how to do this. Follow those steps to get the solution to day +9y = cos(3) dt2 y(0) = 0 v(0) = 0 Plot this and your solution from the previous part on the same...

  • MATLAB help! I have some MATLAB Assignment to do, the proffesor requires all the small parts...

    MATLAB help! I have some MATLAB Assignment to do, the proffesor requires all the small parts in order to get full credit. Help me out, thank you f LAB SECTION NAME HW6P3 (30 points) following are infinite series representations of the function, un pra i a script file HW6P3 that determines the value of the function from the sum of the series for a given value of x. The program (1 pt) must prompt the user to enter a value...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT