Question: Correct the code to have the answer: The temperature u ( x , y ) corresponding to a rectangular plate comes from the Laplace equation:

Correct the code to have the answer: The temperature u(x,y) corresponding to a rectangular plate comes from the Laplace equation:
del2u(x,y)delx2+del2u(x,y)dely2=0
Find the analytical and numeric solution from the equation with the next conditions: u(0,y)=0,u2,y=y,u(x,0)=0, and
u(x,2)=0. Use a mesh h=12. Find the solution using Maple.
SOLUTION:
> restart;
> with(plots);
multiple, odeplot, pareto, plotcompare, pointplot, pointplot3d, polarplot, polygonplot, polygonplot3d, polyhedra_supported, polyhedraplot, rootlocus, semilogplot, setcolors, setoptions, setoptions3d,
shadebetween, spacecurve, sparsematrixplot, surfdata, textplot, textplot3d, tubeplot]
>h:=12;
h:=12
eq:=del2delx2u(x,y)+del2dely2u(x,y)=0
bcs:={u(0,y)=0,u(2,y)=y,u(x,0)=0,u(x,2)=0}
nx:=2
ny:=2
>eq :=diff(u(x,y),x,x)+diff(u(x,y),y,y)=0;
>bcs:={u(0,y)=0,u(2,y)=y,u(x,0)=0,u(x,2)=0};
>nx:=1h;ny:=1h;
I> mesh :=[seq(i**h,i=0..nx),seq(j**h,j=0..ny)];
>sol:=pdsolve([eq,bcs], numeric, time =x, space =y, mesh = mesh );
h:=12
eq:=del2delx2u(x,y)+del2dely2u(x,y)=0
bcs:={u(0,y)=0,u(2,y)=y,u(x,0)=0,u(x,2)=0}
nx:=2
ny:=2
mesh :=[0,12,1,0,12,1]
 Correct the code to have the answer: The temperature u(x,y) corresponding

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!