Commit 08f43fa7 authored by Gidon Lucian Bauer's avatar Gidon Lucian Bauer 🏳
Browse files

alles was ich gemacht habe

parent 0b64d6d4
......@@ -34,7 +34,8 @@ if choice == 1
x = linspace(xspan(1), xspan(2), N);
u0 = mean_init_cond(@step_func, xspan, N);
% u0 = mean_init_cond(@step_func, xspan, N);
u0 = mean_init_cond(@(x) sin(pi*x), xspan, N);
%% Solving the advection equation
[u1a, t1a] = FVM(u0, F1, fa, xspan, tspan, N);
......
%% Lax-Wendroff Flux function
function [y] = lax_wendroff_flux(ul, ur, f, dt, dx)
if ((ul - ur) ~= 0)
if (ul ~= ur)
a = ((f(ul) - f(ur))/(ul - ur)).^2;
else
a = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment