Commit 2fbdc6e9 authored by Gidon Lucian Bauer's avatar Gidon Lucian Bauer 🏳
Browse files

Input

parent 191e5331
......@@ -24,25 +24,16 @@ courant_number = 0.8; % from (0,1]
%% Set initial conditions
% Note: this ul and ur contains [rho, v, p], while all other u further in
% this programm will contain [rho, rho*v, E]
ul = zeros(3,1);
ur = zeros(3,1);
if (choice == 1)
ul(1) = 1;
ul(2) = 0;
ul(3) = 1;
ur(1) = 0.125;
ur(2) = 0;
ur(3) = 0.1;
else
ul(1) = 1;
ul(2) = -1;
ul(3) = 0.4;
ur(1) = 1;
ur(2) = 1;
ur(3) = 0.4;
switch choice
case 1
ul = [1; 0; 1];
ur = [0.125; 0; 0.1];
case 2
ul = [1; -1; 0.4];
ur = [1; 1; 0.4];
otherwise
disp('Bad Input.');
return;
end
u0 = init_cond(ul, ur, N);
......
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