MEC320 Tutorial 3 Numerical Methods

0.0(0)
studied byStudied by 1 person
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/53

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

54 Terms

1
New cards

Why do we need to discretize PDEs? What is the difference between a continuous function/equation and a discretized one?

Discretization transforms continuous PDEs into algebraic equations that can be solved numerically. A continuous function is defined over a continuum, while a discretized one is defined only at discrete points.

2
New cards

   Why do we talk about approximation in the context of discretization and what is the truncation error?

Discretization approximates derivatives, and truncation error is the difference between the true derivative and its numerical approximation.

3
New cards

What do we mean by the order of accuracy?

The order of accuracy defines how the error reduces as the mesh is refined. Higher-order schemes decrease error faster.

4
New cards

Why is interpolation needed in the context of the FVM?

In FVM, values are known at cell centers, but fluxes are needed at faces—interpolation estimates these values.

5
New cards

What is the advantage of the 1st order upwind scheme?

It is stable and ensures boundedness by using upstream values, though it is only first-order accurate.

6
New cards

What does the ‘boundedness’ refer to in the context of convection schemes?

Boundedness ensures that the numerical solution stays within physical limits, avoiding overshoots or undershoots.

7
New cards

What can you do to improve the accuracy of a CFD simulation from numerical point of view?

Refine the mesh, use higher-order schemes, improve boundary conditions, and reduce the time step if needed.

8
New cards

Compare finite difference and finite volume methods, and discuss the advantages and disadvantages of each of these methods.

  • FDM: Easy to implement on structured grids but not conservative.

  • FVM: Conservative and suitable for complex geometries; handles unstructured meshes.

9
New cards

Consider the following stencil.

The discretised for of … using the central differencing scheme is

\displaystyle \left(\frac{d\phi}{dx}\right)w

\displaystyle \frac{\phi_P - \phi_W}{\delta x{WP}}

10
New cards

Discretise … on a uniform mesh using central difference FV method

\displaystyle k \frac{d^2 T}{dx^2}

\displaystyle \frac{k}{\Delta x^2} T_W + \frac{k}{\Delta x^2} T_E - \frac{2k}{\Delta x^2} T_P

11
New cards

Discretise … , where rho and U are const. and I > 0 on a uniform mesh using:

a) 1st order upwind

b) central difference FV methods

\displaystyle k \frac{d^2 T}{dx^2}

\displaystyle \frac{k}{\Delta x^2} T_W + \frac{k}{\Delta x^2} T_E - \frac{2k}{\Delta x^2} T_P

12
New cards

Discretise … where rho and U are const. on a uniform mesh using a) 1st order upwind b) Central Diff FVM

\displaystyle \frac{d}{dx}(\rho U \phi)

a)\displaystyle\frac{\rho U (\phi_P - \phi_W)}{\Delta x}

b)\displaystyle\frac{\rho U (\phi_E - \phi_W)}{2 \Delta x}

13
New cards

What are the differences between implicit and explicit discretization methods? What are the pros and cons of each method?

  • Explicit: Solves directly using current values.
     • Pros: Simple, fast per time step
     • Cons: Conditionally stable, requires small time steps

  • Implicit: Solves using future time values (requires system solving).
     • Pros: Unconditionally stable
     • Cons: More complex and computationally expensive

14
New cards

Which one (implicit or explicit) can be more unstable computationally? Why?

Explicit methods can be unstable if the time step is too large, violating the CFL condition.

15
New cards

Which one (implicit or explicit) provides more flexibility on the choice of the time step and how can this be an advantage?

Implicit methods allow larger time steps without violating stability constraints, making them better for stiff or steady problems.

16
New cards

Explain why when the mesh is refined, often the time step also needs to be reduced?

Because the stability condition (e.g., CFL) depends on cell size:

\displaystyle \Delta t \leq \frac{\Delta x}{U}

refining the mesh smaller dx requires smaller dt for stability

17
New cards

What is CFL? What is the general requirement on this value?

The Courant–Friedrichs–Lewy (CFL) number determines the maximum stable time step for explicit schemes.

CFL=\frac{U\Delta x}{\Delta t}

For stability in explicit schemes:

\displaystyle \text{CFL} \leq 1

18
New cards

What is the pressure-velocity coupling problem? What are the methods available to this problem?

In incompressible flows, pressure and velocity are interdependent, but pressure doesn’t have its own equation. Methods to handle this include:

  • SIMPLE

  • SIMPLER

  • PISO

  • Coupled solvers

19
New cards

What are the differences between density-based and pressure-based solvers?

  • Density-based: Suitable for compressible flows; solves continuity using density changes.

  • Pressure-based: Suitable for incompressible flows; solves pressure-velocity coupling using correction algorithms (e.g. SIMPLE).

20
New cards

Describe the SIMPLE procedure – in terms of the main procedures.

  • Guess pressure field

  • Solve momentum equations

  • Compute pressure correction

  • Update pressure and velocity

  • Iterate until convergence

21
New cards

What do we mean by ‘pressure correction’? How is continuity achieved in SIMPLE scheme?

Pressure correction is a change applied to the guessed pressure to enforce mass conservation. Continuity is achieved by ensuring divergence of the corrected velocity is zero.

22
New cards

How to solve the linearised algebraic equations in CFD? Why are iterations needed even though the equations are linearised?

  • Solve using iterative methods (e.g. Gauss-Seidel, TDMA)

  • Iterations are needed due to equation coupling and non-linearity in the overall system.

23
New cards

In pressure-based solutions, there are segregated and coupled algorithms. Describe each method. Discuss pros and cons for each method.

  • Segregated: Solves equations one at a time; more stable but slower.

  • Coupled: Solves momentum and pressure equations simultaneously; faster but requires more memory.

24
New cards

What are the main differences between direct and iterative methods? Their advantages and disadvantages?

  • Direct: Solve equations exactly (e.g. LU decomposition); fast for small problems but memory-heavy.

  • Iterative: Approximate solution via successive steps (e.g. Gauss-Seidel); scalable and memory-efficient.

25
New cards

What is the under-relaxation factor? Why is this necessary in CFD?

It slows the rate of variable update per iteration:

\displaystyle \phi_{\text{new}} = \phi_{\text{old}} + \alpha (\phi_{\text{computed}} - \phi_{\text{old}})

Used to stabilize convergence.

\displaystyle 0 < \alpha < 1

26
New cards

Is the energy equation solved together (coupled) with the momentum equations in segregated, coupled or density based algorithm?

  • In coupled and density-based solvers: yes

  • In segregated solvers: not necessarily — can be solved separately if thermal effects are weak.

27
New cards

Are turbulence models solved together with momentum equations in any algorithms?

No, turbulence models are solved separately but influence the momentum equations via modeled Reynolds stresses.

28
New cards

In pressure-based algorithms, there is a step ‘update mass flux’ – what does this do?

It recalculates face fluxes based on the corrected pressure and velocity fields to ensure conservation of mass.

29
New cards

For the flow over an aeroplane with the highest Mach number around 0.8. What solver would you choose to use – density or pressure based and why?

Use a density-based solver, since the flow is compressible and near-transonic.

30
New cards

The RANS equations are non-linear and coupled. What do we mean by non-linear? And coupled?

  • Non-linear: Equations include products of variables (e.g. $\displaystyle u \frac{\partial u}{\partial x}$)

  • Coupled: Variables depend on each other and must be solved simultaneously.

31
New cards

The convergence in Gauss-Seidel iteration is often slow. Explain why? How to overcome this? How does multigrid method work?

  • Slow because it reduces high-frequency error first

  • Use multigrid, which solves on coarser grids to eliminate low-frequency errors, then refines solution on finer grids

32
New cards

In what applications would you use structured mesh approaches? Why?

Structured meshes are used for simple geometries (e.g. pipes, channels). They offer:

  • Easier implementation

  • Faster solvers

  • Better control over grid resolution

33
New cards

In what applications would you use unstructured mesh approaches? Why?

Unstructured meshes are used for complex geometries (e.g. airfoils, combustion chambers). They offer:

  • Greater flexibility in meshing irregular domains

  • Local refinement without excessive node count

34
New cards

Why is it always useful to try to use structured mesh near the wall?

Structured meshes allow better control of wall-normal spacing, which is essential for resolving boundary layers and meeting y+ criteria.

35
New cards

How would you measure mesh quality?

Using metrics such as:

  • Skewness

  • Aspect ratio

  • Orthogonality

  • Smoothness of cell size transitions

36
New cards

Is it sensible to use high aspect ratio grid elements/cells in regions where flow is developing? Why?

No — in developing flow, gradients exist in multiple directions. High aspect ratio cells may not capture transverse variations accurately and can degrade solution quality.

37
New cards

What is the aim of a mesh independence study?

To ensure the solution does not significantly change with further mesh refinement. Confirms that numerical error due to mesh is negligible.

38
New cards

What are the meshing rules for wall-function turbulence model?

  • First cell center should be in the log-law region: 30 < y+ < 300

  • Avoid high skewness or abrupt transitions in cell size near walls.

39
New cards

What considerations would you give to generate a mesh for a turbulent boundary layer with a resolved turbulence model?

  • Place first cell at y+ <1

  • Use fine wall-normal spacing

  • Apply smooth grid growth (e.g. geometric stretching < 1.2)

40
New cards

What is residual?

A residual is the imbalance or error in the discretized equation at each iteration. It measures how far the current solution is from satisfying the equation.

41
New cards

What is the difference between the scaled and normalised residuals?

  • Scaled residuals: Raw or dimensional values

  • Normalised residuals: Residuals divided by a reference (e.g. initial value), enabling comparison across cases or variables

42
New cards

What are the differences between the residual at one node and an ‘overall’ residual for all grids?

  • Node residual: Local error at a specific point

  • Overall residual: Aggregated error across the entire domain (e.g. L2 norm)

43
New cards

What factors will you check if the convergence of your simulation is slow (or even diverging)?

  • Mesh quality (skewness, aspect ratio)

  • Under-relaxation factors

  • Boundary conditions

  • Initial guess

  • Time step (for transient)

  • Solver settings

44
New cards

What is the benefit of using monitoring points for the solution of certain flow variables?

They help track physical convergence (e.g. pressure, velocity at key locations), which is often more meaningful than just checking residuals.

45
New cards

What is verification? What is validation? What are the differences between the two?

  • Verification: Ensures the equations are solved correctly (math is right)

  • Validation: Ensures the correct equations are being solved (model represents reality)
    Difference:

  • Verification answers: "Did we solve the equations right?"

  • Validation answers: "Did we solve the right equations?"

46
New cards
47
New cards
48
New cards
49
New cards
50
New cards
51
New cards
52
New cards
53
New cards
54
New cards