Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

Computational Fluid Dynamics-I, Lecture-14

Dr. Tariq Talha

College of EME, NUST.

Dr. Tariq Talha Computational Fluid Dynamics-I, Lecture-14: College of EME, NUST
Staggered grid: Indexing

Consider two-dimensional (x, y) grid.


The indexing in x-direction starts from 1 for u velocity component and the
last index ends at nx + 1.
The indexing for other two components in x direction start from 0 at
boundary and the last index ends at nx + 1.The interior values of these
components will be at i + 1/2 in each direction.
Dr. Tariq Talha Computational Fluid Dynamics-I, Lecture-14: College of EME, NUST
Staggered grid: Indexing

The last index of u and v in x direction ends at i = nx + 1, same as u.


In general terms:
The indexing of velocity component in the corresponding staggered
direction starts from 1 while for other two components its starts from 0.
The indexing for all components ends at number of interior points+1.
Dr. Tariq Talha Computational Fluid Dynamics-I, Lecture-14: College of EME, NUST
Gradient Calculation using Staggered grid

Velocity gradient in incompressible Navier-stokes equations.

Dr. Tariq Talha Computational Fluid Dynamics-I, Lecture-14: College of EME, NUST
Gradient Calculation: u-Staggered grid

u-Staggered grid
∂ (uv)
∂y

Dr. Tariq Talha Computational Fluid Dynamics-I, Lecture-14: College of EME, NUST
Gradient Calculation

v-Staggered grid
∂ v
∂ y

Dr. Tariq Talha Computational Fluid Dynamics-I, Lecture-14: College of EME, NUST
Gradient Calculation

w-staggered grid.
∂ (uw)
∂x

Dr. Tariq Talha Computational Fluid Dynamics-I, Lecture-14: College of EME, NUST

You might also like