필터 지우기
필터 지우기

1D linear advection equation initial conditions

조회 수: 1 (최근 30일)
Stephan van Kalmthout
Stephan van Kalmthout 2020년 5월 11일
편집: Stephan van Kalmthout 2020년 5월 11일
I am new to Matlab and I got an exercise which I don't know how to approach.
In order to solve the 1D linear advection equation, I make use of the Lax-Friedrichs flux.
With
% initial condition, exact final solution
u0 = 1.0*(x<0.2);
uf = 1.0*(x>T&x<T+.2);
Now I need to adapt this model to work with another set of initial conditions, depending on x, namely
Perhaps someone can help me by using an example or so.
Thanks for explaining and helping on beforehand.

답변 (0개)

카테고리

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

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by