Compute the percent error to three decimal places

Assignment Help Engineering Mathematics
Reference no: EM131011103

1. Use the second-order accurate central difference approximation and the first-order forward difference approximation to evaluate ∂(cos 2x) at x = Π/6 to four decimal places. A step size of Δx = 0.2 is to be used.

Compare this to the actual value of the derivative and compute the percent error to three decimal places for each approximation, defined by

%Error = 100(Numerical value - Analytical value/Analytical value )

Your percent error should include the proper sign (positive or negative).

2. Consider the following two-dimensional convection-diffusion equation:

∂u/∂t = u∂u/dx + v(∂2u/∂x2 + ∂2u/∂y2)

Obtain an explicit finite difference equation using first-order forward time, first-order backwards in space (for the convective term), and second-order central spatial differencing (for the diffusion terms). You do not have to derive the difference approximations; simply use them. Remember to include all super- and subscripts, as well as the "order" term including the lowest-order error term for each variable.

3. Consider a fluid bounded by two parallel plates extended to infinity such that no end effects are encountered. The walls and the fluid are initially at rest. The lower wall is suddenly accelerated in the x-direction. The coordinate system is such that the lower wall coincides with the xz-plane to which the y-axis is perpendicular. The spacing between the two plates is denoted by h.

The equation for this problem is

∂u/∂t = v∂2u/∂y2

where u is the kinematic viscosity of the fluid. It is required to compute the velocity profile u = u(y,t). The problem has the following initial and boundary conditions

Initial Condition: 

t = 0, u = 1.0 m/s for y=0

  u = 0.0 m/s for 0 < y ≤ h

Boundary Condition:

t ≥ 0, u = 1.0 m/s for y=0            

u = 0.0 m/s for 0 < y ≤ h          

The fluid has a kinematic viscosity of 0.000217 m2/s and h = 40 mm. Your solution should be run until t = 1.08 seconds. Various time steps are to be used to investigate the numerical schemes and the effect of the time step on stability and accuracy.

Write a two code to solve this problem for the following schemes and conditions.

a) FTCS Explicit with time steps 0.002 and 0.00233 sec

b) FTCS Implicit with time steps 0.002 and 0.01 sec

If j = 1 at the lower surface and a step size of Dy = 0.001 m is used, then j at the upper surface will be 41. Note that n = 1 corresponds to t = 0.

For each case of each method, plot the velocity profile for four difference times on the same graph: 0.27 sec, 0.54 sec, 0.81sec and 1.08 sec. (You will have 4 plots in all, each with four curves.) Remember to use proper plotting techniques, including title, axis labels, units, legend, and legibility. Submit your plots in hardcopy, and a copy of your codes both in hardcopy and electronically on Canvas.

The file names for your codes should be:

firstname_lastname.ftcsexp.sp15.ext

firstname_lastname.ftcsimp.sp15.ext

whereext is the proper extension for the computer language you are using. MATLAB and other similar software is not permitted for this assignment.

Reference no: EM131011103

Questions Cloud

Create an erd that represents the entities : Additionally, your ability to apply correct relationships, cardinalities, optionalities, and the use of Crows Foot modelling notations are tested.
Find the equation of the plane tangent at given point : Find the equation of the plane tangent to the surface at the given point. Write the equation in the form z - z0 = fx(x0,y0)(x - x0) + fy(x0,y0)(y - y0).
Dupont analysis of allocated company : Undertake a DuPont analysis of your allocated company for the past two full financial years. Collect the DuPont component ratios measuring the three key ROE drivers (expense control, asset utilisation and debt utilization) from DatAnalysis. Calculate..
The effective rate of interest for the types of loans : Your company plans to borrow $13 million for 12 months, and your banker gives you a stated rate of 24% interest. You would like to know the effective rate of interest for the following types of loans. (Each of the following parts stands alone).
Compute the percent error to three decimal places : Compare this to the actual value of the derivative and compute the percent error to three decimal places for each approximation - compute the velocity profile
Compute bond price : Compute the price of a 3.8 percent coupon bond with 15 years left to maturity and a market interest rate of 6.8 percent. (Assume interest payments are semi annual.) Is this a discount or premium bond?
How might you test your hypothesis explain : How might you test your hypothesis? Briefly describe the procedure you would use, and be sure to clearly discuss the independent variable(s) and dependent variable(s)
Print the list of runners and times as example below : Write a c++ program as follows. Print the list of runners and times as example below. Then print the name of the fastest runner and his/her time (in hours and minutes). Also, find the second fastest runner. Print the name and his/her time (in hour..
About purchasing an investment from hibond investing : Sarah is thinking about purchasing an investment from HiBond Investing. If she buys the investment, Sarah will receive $212 every three months for 8 years. The first $212 payment will be made as soon as she purchases the investment. If Sarah's requir..

Reviews

Write a Review

Engineering Mathematics Questions & Answers

  Mortgages and taxes assignment

You are purchasing a business building valued at $225,000. You can find a mortgage at 5% if you can put 20% down. You believe your business can support a $1,000 a month mortgage payment (not including taxes and insurance). Should you select a 25 y..

  Finite differences for odes

Convert the differential equation into a finite difference equation -  Use the finite difference equation from part1 to calculate numerically.

  Find the convolution of function h with function x

Use this result to find the convolution of h(t) with x(t) where h(t)= e-2t u(t) and x(t) as Wore below, by fire performing the convolution h(t)*u(t) and then cenvolving this with x'(t).

  List the ordered pairs that belong to the relation

List the ordered pairs that belong to the relation. Keep in mind that a Hasse diagram is a graph of a partial ordering relation so it satisfies the three properties listed in number 5 part(b).

  Triangular coordinates and special element

Construct the shape functions N2 and N5 for the special triangular element sketched on the right. The element is expected to be used to connect two quadratic elements into one linear element.

  What is the probability that this string is a mirror image

What is the probability that this string is a mirror image of itself and compute the probability that all of the balls in the sample are the same color

  Calculate the estimated sample size

Based on experience with the current coffee makers, your best guess for the population standard deviation, sigma, is 1.2 cups. How big of a sample do you need? Calculate the estimated sample size needed for the above scenario and communicate your ..

  Digital computer and plot the streamlines

Consider two-dimensional potential flow into a step contraction as in Fig. The inlet velocity U1 = 7 m/s, and the outlet velocity U2 is uniform. The nodes (i, j) are labelled in the figure. Set up the complete finite-difference algebraic relation ..

  Linear programming solution-graphically

Describe and illustrate graphically the special cases that can occur in a linear programming solution. What clues for these cases does the simplex procedure supply?

  Solve partial differential equation

Use the Crank-Nicolson procedure to solve the following partial differential equation

  Probability of being both popcorn and terrible

Suppose there are two types of movie: Arty (A), and Popcorn (P). These films may be either Decent (D) or Terrible (T). 35% of all movies are Arty. 20% of all movies are both Arty and Decent. If a film is Popcorn, there is a 75% chance that it is T..

  Estimate for the trapezoidal rule to give a bound

Estimate for the Trapezoidal rule to give a bound for the error in problem A for the Trapezoidal rule.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd