%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % 1D, skalare Erhaltungsgleichung % % mikroskopisches Modell (lokale Regularisierung) % u_t+f(u)_x = epsilon u_{xx} + alpha*epsilon^2 u_{xxx} % mit f(u) = u^3 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% More...
Go to the source code of this file.
Functions | |
function [
u , dx , fehler ] = | test_lokal (Time, ul, ur, alpha, n_x) |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % 1D, skalare Erhaltungsgleichung % % mikroskopisches Modell (lokale Regularisierung) % u_t+f(u)_x = epsilon u_{xx} + alpha*epsilon^2 u_{xxx} % mit f(u) = u^3 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% More... | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % 1D, skalare Erhaltungsgleichung % % mikroskopisches Modell (lokale Regularisierung) % u_t+f(u)_x = epsilon u_{xx} + alpha*epsilon^2 u_{xxx} % mit f(u) = u^3 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Definition in file test_lokal.m.
function [ u , dx , fehler ] = test_lokal | ( | Time, | |
ul, | |||
ur, | |||
alpha, | |||
n_x | |||
) |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % 1D, skalare Erhaltungsgleichung % % mikroskopisches Modell (lokale Regularisierung) % u_t+f(u)_x = epsilon u_{xx} + alpha*epsilon^2 u_{xxx} % mit f(u) = u^3 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Input: Time Endzeit Mikroproblem, z.B.: 2.24*10^(-5) ul linker Zustand, z.B.: 4 ur rechter Zustand, z.B.: -2 alpha Parameter, z.B.: 4 n_x Anzahl Ortsschritte, z.B.: 300
Output: u Lsg dx Ortsschrittweite fehler Fehler zw. lokaler und globaler Lsg
Bsp: [u,dx,fehler]=test_lokal(2.24*10^(-5),4,-2,4,300)
Time | Time |
ul | ul |
ur | ur |
alpha | alpha |
n_x | n x |
u | u |
dx | dx |
fehler | fehler |
Definition at line 17 of file test_lokal.m.