Q2b Modify the template in Lab06_Q2.m using the following values Set L = 100 Discretise your...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Q2b Modify the template in Lab06_Q2.m using the following values Set L = 100 Discretise your domain with 250 intervals. Choose u = 1.0 Set tmax 100 Choose 3 values of a [0, 0.1, 1], integrate forward in time until t = tmax with the following CFL numbers: [0.01, 0.1, 0.5] and (i.e. you will have 9 solutions). Create a single plot with 9 subplots. Each subplot will have the solution for one CFL number and one value of a. In each subplot, plot the solution at approximately every 25 time units (i.e. at t = 0, 25, 50, 75 and 100) on the same subplot (i.e. you should have 9 subplots, each with 5 curves). The plot times can be "approximate" (e.g., 19.95 is close enough to 20). ALSO include a plot of the analytic solution of the advection-only problem at each time in a different colour in each subplot for comparison (giving 8 curves per subplot). NOTE: If q(x, 0) = f(x) is the initial condition, then the exact solution at time = t is q(x,t) = f(x-ut) 1 The CFL (or Courant) number is defined as (u At/Ax) and is related to what fraction of a grid cell "information" is advected in one timestep. MEC3456 Computer Lab 06 Page 4 of 9 Describe the key features of what you are seeing as you change a and the CFL number and suggest WHY you observe what you observe (the following hints might help you). HINTS: 1) What is the stability for the FTCS scheme for equation 3 when = 0 (i.e. pure advection)? 2) What does it mean if CFL is large and how does the change in CFL affect the solution q? Q2b Modify the template in Lab06_Q2.m using the following values Set L = 100 Discretise your domain with 250 intervals. Choose u = 1.0 Set tmax 100 Choose 3 values of a [0, 0.1, 1], integrate forward in time until t = tmax with the following CFL numbers: [0.01, 0.1, 0.5] and (i.e. you will have 9 solutions). Create a single plot with 9 subplots. Each subplot will have the solution for one CFL number and one value of a. In each subplot, plot the solution at approximately every 25 time units (i.e. at t = 0, 25, 50, 75 and 100) on the same subplot (i.e. you should have 9 subplots, each with 5 curves). The plot times can be "approximate" (e.g., 19.95 is close enough to 20). ALSO include a plot of the analytic solution of the advection-only problem at each time in a different colour in each subplot for comparison (giving 8 curves per subplot). NOTE: If q(x, 0) = f(x) is the initial condition, then the exact solution at time = t is q(x,t) = f(x-ut) 1 The CFL (or Courant) number is defined as (u At/Ax) and is related to what fraction of a grid cell "information" is advected in one timestep. MEC3456 Computer Lab 06 Page 4 of 9 Describe the key features of what you are seeing as you change a and the CFL number and suggest WHY you observe what you observe (the following hints might help you). HINTS: 1) What is the stability for the FTCS scheme for equation 3 when = 0 (i.e. pure advection)? 2) What does it mean if CFL is large and how does the change in CFL affect the solution q?
Expert Answer:
Posted Date:
Students also viewed these mechanical engineering questions
-
Reversing Rapids Co. purchases an asset for $121,052. This asset qualifies as a five-year recovery asset under MACRS. The five-year expense percentages for years 1, 2, 3, and 4 are 20.00%, 32.00%,...
-
CANMNMM January of this year. (a) Each item will be held in a record. Describe all the data structures that must refer to these records to implement the required functionality. Describe all the...
-
Question: What as the average weekly safety inventory level of refined sugar from the beginning January 2022 to the end of July 2022? A. 512,465.9691 metric tons per week B. 316,002.1474 metric tons...
-
2. A magazine printer is considering taking on a new weekly publication. The company's financial officer has researched and determined costs and a committee of upper management personnel are deciding...
-
How is gain or loss determined when disposing of plant assets? What situation constitutes a gain? What situation constitutes a loss?
-
Suggest likely products for the following reactions: (a) BCl3 + EtOH (b) BF3 + EtOH (c) BCl3 + PhNH (d) BF3 +KF-
-
Identify all the integers in the following list: \(4,-17,8,0.5, \sqrt{7}, \frac{1}{9},-300\).
-
Southworth Company uses a job-order costing system and applies manufacturing overhead cost to jobs on the basis of the cost of direct materials used in production. At the beginning of the current...
-
! Required information [The following information applies to the questions displayed below.] A pension fund manager is considering three mutual funds. The first is a stock fund, the second is a...
-
Question WHP8-Q1. The system in figure is composed of: a disc of radius r = 0.5 m, mass m = 0.5 kg and moment of inertia Ic = 62.5 g-m, with respect to its centre C, which is pinned to the ground. a...
-
Select a high-profile corporate failure from post 2010 era. Critically discuss underlying reasons related to poor corporate governance which pushed the company in failure. Your answer should refer to...
-
1 Continuing Project i ving Le Cale SA 01(k) ym ICO Yes Yes Yes No No No Saved ner's name: Toni Prevosti dress: 820 Westminster Road, Bridgewater, VT 05520. one: 802-555-3456 mber of employees: 8 ss...
-
assume that after reviewing the Excerpts of Piano Parts Inventory 2020, 2021 and 2022 you came to the conclusion that the December 31, 2022 inventory write-off amount is materially wrong and...
-
A source emits an electromagnetic wave of frequency ????s towards a receiver, which has a relative receding velocity ???? with respect to the source. According to the Doppler formula for...
-
Kennedy Company manufactures variety of scooters. The company is in need of 30,000 batteries for the scooters. They can buy the batteries from an outside supplier for $42 a battery or produced the...
-
Given z = x + xy, x= = uv +w, y=u+vew z then find: when u = -3, v= -2, w=0 du
-
Refer to the data for problem 13-36 regarding Long Beach Pharmaceutical Company. Required: Compute each division's residual income for the year under each of the following assumptions about the...
-
Write the central finite difference formulas of the second order for \(\partial u / \partial x\) and \(\partial^{2} u / \partial x^{2}\) of function \(u(x, y, t)\) at the grid point \(\left(x_{i+1},...
-
In the same way as in Problem 1, compare the performance of the central difference scheme (4.10) and the fourth-order scheme (4.15). Problem 1 Consider the function \(u=\sin x\). Apply the forward...
-
Apply the central difference formula (4.10) to approximate the first derivatives of the functions \(u_{1}(x)=\sin (x), u_{2}(x)=\sin (3 x)\), \(u_{3}(x)=\sin (10 x)\) at \(x=0\). Use the uniform grid...
Study smarter with the SolutionInn App