Analytic/Numerical Solution of Elliptic PDE (Poisson Equation) with MATLAB

  Рет қаралды 139

Charley Yang

Charley Yang

Күн бұрын

Пікірлер: 1
@WonYYang
@WonYYang 4 ай бұрын
%em07e01.m f=@(x,y)0; g=@(x,y)0; % Eq.(E7.1.1) w.r.t. Eq.(7.1.1) % (Rectangular) Domain and BC types x0=0; xf=pi; y0=0; yf=pi; D=[x0 xf y0 yf]; % BCs bx0=@(y)0; bxf=@(y)0; by0=@(x)sin(2*x); byf=@(x)0; % Eq.(E7.1.2a,b,c,d) % Numerical approach % Numbers of grid points along x-/y-axes, Error tolerance, Mx=50; My=50; tol=1e-5; MaxIter=600; [un,xx,yy]=pde_poisson_D(f,g,bx0,bxf,by0,byf,D,Mx,My,tol,MaxIter); % Analytical approach K=10; [ua,A]=pde_Laplace_ana(xf,yf,bx0,bxf,by0,byf,Mx,My,K); A, Discrepancy=norm(un-ua)/norm(ua) mesh(xx,yy,un) % Plot the solution graph xlabel('x'), ylabel('y') function [u,A,xx,yy]=pde_Laplace_ana(xf,yf,bx0,bxf,by0,byf,Mx,My,N) % To solve u_xx +u_yy = 0 % over the region D=[0,xf,0,yf]={(x,y)|0
MATLAB Analysis and PSpice Simulation of an OP amp Circuit
17:02
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 3,3 МЛН
AI Is Making You An Illiterate Programmer
27:22
ThePrimeTime
Рет қаралды 174 М.
DEEPSEEK Vs CHATGPT There Is A  Clear Winner !!
15:53
Rick Aqua
Рет қаралды 14 М.
Math graphs but they get increasingly more stunning
8:03
The Math Wizard
Рет қаралды 150
Everything You Need To Know About DeepSeek
8:07
The Coding Sloth
Рет қаралды 2,7 М.