pdf2text_64718df13e22f

txt

School

The University of Sydney *

*We aren’t endorsed by this school

Course

5318

Subject

Mechanical Engineering

Date

Oct 30, 2023

Type

txt

Pages

8

Uploaded by MateMask24707

Report
Assignment 2 hints A few hints for the assignment. Partial convergence: The pseudo-code abandons the matrix solver after 100 iterations even if convergence has not been reached. This means that the time development is not accurate however you can still reach the correct steady state value. As the flow reaches a steady state, the solver will begin to reach convergence within the 100 iteration limit. What if you allow more iterations before quitting? What if you do not place any limit? Is 100 the optimal value in any sense? Other matrix solvers: The greatest improvement in speed will come from expressing the pressure correction Poison equation as a matrix Ax = b then using one of the matrix solvers included in MATLAB such as bigstab (biconjugate gradient method, stabilized). Matrix code: Your code will execute significantly faster in matlab if you write it in terms of matrix operations rather than using loops. For example when we did advection of a scalar, the upwind scheme could be written as, for ix=2:nx -1 sigma_new ( ix ) = sigma_old ( ix ) ... - Cr*( sigma_old(ix)-sigma_old(ix -1)); end This could also be written as sigma_new (2: nx -1) = sigma_old (2: nx -1) ... - Cr*( sigma_old (2:nx -1)-sigma_old (1:nx -2)); The latter will be much faster. This technique can be extended to a two dimensional matrix as used in your assignment. You will need to be very careful (and clever) in order to correctly implement the Gauss-Seidel method using these sort of matrix expressions since you need to ensure that the updates are performed in the correct order. Crank-Nicolson implicit time stepping Approximate the time derivative using the trapezoidal rule, utα+ = utα ∆t∂α (1/ρ) Pt+1/2 + ∆t*1/2*(ν∂β∂βutα+ + ν∂β∂βutα − utβ+∂βutα+ − utβ∂βutα)
This is an implicit equation. Unlike the implicit heat equation, we can not solve this using linear algebra because it is non-linear. We can use an iterative procedure, utα+,k+1 = utα ∆t∂α 1 P t+ 1 ,k + 1 ν∂β∂βutα+,k + ν∂β∂βutα − utβ+,k∂βutα+,k − utβ∂βutα . ρ 2 ∆t 2 We make a similar substitution as used in projection methods with a new intermediate velocity at the kth sub-step, u α,k = utα + 1 ν∂β∂βutα+,k + ν∂β∂βutα − utβ+,k∂βutα+,k − utβ∂βutα . ∆t 2 With, utα+,k+1 = u α,k ∆t∂α 1 P t+ 1 ,k ρ 2 The Poisson equation is again solved in terms of the divergence of an intermediate velocity, ∂αu α,k = ∆t 1 ∂α∂α P t+ 1 ,k . ρ 2 Initial guesses for the new velocity and pressure are usually taken to be, uαt+,0 = utα P t+ 1 ,0 = P t− 1 . 2 2 With these initial guesses, one step is equivalent to the projection method. Taking only two sub-steps of the above algorithm results is a method sometimes termed the piso algorithm. Since the approximate pressure calculated during the first sub- step is somewhat close to the correct value, few additional iterations of the pressure solver are required during the second sub-step for a reasonable improvement in accuracy. Further steps may be taken for comparatively little cost. So far we have not mentioned simple, the default scheme used by FLUENT which has been used in all tutorials so far. This scheme is similar overall to the pressure correction method from these notes however since it aims to solve the steady state equations
the time step is replaced by under relaxation factors which are related to the stability of the scheme. Wall bounded turbulent flow - y+ Wall bounded turbulent flows including channel flows and boundary layers are charac- terised in terms of ‘wall units’, y+ = uτ y . ν Here uτ is the friction velocity which is based on the wall shear, uτ = τw . ρ 2
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
The wall shear is the shear force exerted on the wall by the fluid. For a wall who’s normal vector points in the y direction, τw = µ ∂u . ∂y y=0 Wall shear is the main parameter that drives these sort of turbulent flows. The velocity can be non-dimensionalized using wall units as well, u+ = u . Often we will need to determine the friction velocity based on a mean flow velocity. In order to do this we will need to know the shape of the velocity profile in order to calculate the wall shear. Closed forms for the velocity profile of turbulent flows are generally not known. The one seventh power law, 1 y7 u = u0 y0 , that some people may be familiar with will not give reasonable results since it has infinite gradient at the wall. 1 17 ∂yu = u0 y6y0 It is typical to approximate the wall shear is using experimental observations. For example in assignment 3 you are given an approximate formula for flow in a pipe. τw = 0.03325ρu˜7/4ν1/4R−1/4, where u˜ is the cross-stream average velocity. In general the wall shear is determined based on the skin friction coe cient, τw = Cf · 1 ρu20 . 2 Thus the friction velocity is, uτ = u0 Cf . 2 The skin friction for various flows can be found in reference books and papers, one common approximation that can be used in general cases is the Schlichting correlation,
Cf = (2 log10 (Re) − 0.65)−2.3 for Re < 109. For flow in a duct or a pipe the Darcy friction factor can be used. ∆P = f · 1 ρu˜2 1 . L 2 DH 3
Here DH is the hydraulic diameter, DH = 4A . B Where A is the cross sectional area and B is the wetted perimeter. Equating the balance of forces, τw = ∆P A = f · 1 ρu˜2. BL 8 Values of f can be read form a Moody chart. Thus the friction velocity is, uτ = u˜ f . 8 Figure 1 shows the mean velocity profile near the wall. Turbulent motions die out close to the wall since the local Reynolds number is small. This laminar region near the wall is called the viscous sublayer or the laminar sublayer and is defined as 0 < y+ < 5. Further away from the wall, the velocity profile follows a ‘law of the wall’ or ‘log law’ profile. The ‘log law’ region is usually defined as y+ > 30. In between these two regions is the bu er region. In order to ensure the accuracy of cfd simulations, the viscous ff sublayer should be adequately captured. This means that you must have at least one fluid cell within the viscous sublayer. 4
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
25 20 U+=y+ 15 U+ 10 log law 5 0 100 101 102 103 10-1 y+ viscous sublayer bu er layer log-law region ff inner layer outer layer Figure 1: Mean velocity profiles for turbulent flow near a wall. Image source: https://en.wikipedia.org/wiki/Law of the wall 5

Browse Popular Homework Q&A

Q: 2. A lock is a device used for raising and lowering boats, ships and other watercraft between…
Q: Determine the sum of the following series ∞∑n=1 (-3)n-1 / 9n
Q: You must clarify the concept of an authentication challenge-response that uses passwords? system.…
Q: In the configuration shown, all members are at a uniform temperature and ABCD is vertical. Then the…
Q: Smugglers. Rumor has it that a company has been smuggling gold out of the country using sealed,…
Q: Consider the molecule of cyanogen. Its Lewis structure is shown. : N EC- Which carbon orbitals are…
Q: Write a java method called sumRange that accepts two integer parameters that represent a range.…
Q: Each of the wires in the figures below carries the same current, either into or out of the page. In…
Q: > Question 2 of 16 5л Find an equation of the tangent line to f(x) = 4 sec (x) at x = 6 (Express…
Q: Write a java program named Fibonacci that prints the Fibonacci sequence of numbers. The first two…
Q: Using the method of sections, determine the forces in members KJ, KD, ED, HI, and HC. Draw proper…
Q: In a covalent bond Group of answer choices A) one atom loses and another atom gains electrons. B)…
Q: Complete the multiple-step income statement for SoupBowl, Co. from the following data for the year…
Q: Which port on a router, separate from the console port, is used to allow a phone call into the…
Q: What has and has not been accomplished by the U.S. government in its “war on drugs”? Has this war…
Q: Name the technology and how it is intended to improve care and (or) workflow.
Q: A man is pushing a lawnmower as shown in the diagram above with an angle of 0 = 30° below the…
Q: (3) Five balls are randomly selected without replacement from an urn with 11 black and 10 white…
Q: Write the expression in rectangular form, x+yi, and in exponential form, re. +i sin 8 Cos - 8 4.
Q: (g) Use V (2) and V ′(2) to estimate the value of V (2.1). (h) Find the maximum number of people…
Q: Two kg of refrigerant R134a, initially at P₁ = 1 MPa, u₁ = 312.70 kJ/kg, is con well-sealed copper…
Q: Solve. log2(x-2) + log2(x+1) = 1