Slide 13
Slide 13 text
/
1.
2. 1
P1 1 , P2 2
3.
:
int n = 100;
border C(t=0,1){x=cos(2*pi*t); y=sin(2*pi*t);};
mesh Th = buildmesh(C(n));
fespace Vh(Th,P1);
∇u ⋅
∫
Ω
∇v dV = fv dV
∫
Ω
Vh u,v;
problem Poisson(u,v) =
int2d(Th)( dx(u)*dx(v)+dy(u)*dy(v) )
- int2d(Th)( f*v );
Poisson;
3 . 7
Copyright © Liberal Arts Community. All Rights Reserved.