Find the second-order accurate finite difference approximation of the first derivative of the velocity component (u) in the x-direction

Lê Như Ý

New member
Find the second-order accurate finite difference approximation of the first derivative of the velocity component (u) in the x-direction using the Taylor series expansion. (Note: i and j are in the x and y-direction respectively).
A. \(\frac{u_{i,j+1}-u_{i,j-1}}{\Delta x}\)
B. \(\frac{u_{i+1,j}-u_{i-1,j}}{\Delta x}\)
C. \(\frac{u_{i+1,j}-u_{i-1,j}}{2\Delta x}\)
D. \(\frac{u_{i,j+1}-u_{i,j-1}}{2\Delta x}\)
 
Answer: c
Explanation: The only second-order accurate finite difference approximation of the first derivative is the central difference. For getting the central difference term,
\(u_{i+1,j}=u_{i,j}+(\frac{\partial u}{\partial x})_{i,j}\Delta x+(\frac{\partial ^2 u}{\partial x^2})_{i,j}\frac{(\Delta x)^2}{2}+⋯\)
\(u_{i-1,j}=u_{i,j}-(\frac{\partial u}{\partial x})_{i,j}\Delta x+(\frac{\partial ^2 u}{\partial x^2})_{i,j}\frac{(\Delta x)^2}{2}+⋯\)
To get \((\frac{\partial u}{\partial x})_{i,j^,}\)
\(u_{i+1,j}-u_{i-1,j}=2(\frac{\partial u}{\partial x})_{i,j} \Delta x+⋯\)
\((\frac{\partial u}{\partial x})_{i,j}=\frac{u_{i+1,j}-u_{i-1,j}}{2 \Delta x}\) .
 

Tìm kiếm

Back
Top