필터 지우기
필터 지우기

Tridiagonal Matrix for Lax friedrich scheme

조회 수: 3 (최근 30일)
Ganesh kumar Badri narayan
Ganesh kumar Badri narayan 2017년 10월 28일
Hello everyone, recently I tried writing the advection equation using both explicit (First order upwind) and implicit (TDMA) method. In which I was successfully able to run without any error for both methods. Please find attached code.
Currently I am trying to apply the same for 1D inviscid euler equation using Lax friedrich method. I was successfully able to code explicit method but for implicit I am unable to form the tridiagonal form for Lax friedrich method can anyone please help me here.
Laxfriedrich method: Newsolution=0.5*ui+1+0.5*ui-1-r*Fi+1+r*Fi-1; Where r is dt/(2*dx).
Thanks in advance.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by