load “msh3”
load “bem”
real k = 10;
int n = 100;
border circle(t = 0, 2*pi){x=cos(t); y=sin(t);}
meshL ThL = buildmeshL(circle(n));
ThL = OrientNormal(ThL,unbounded=1);
BemKernel Ker(“SL”, k=2*pi);
varf vbem(u,v) = int1dx1d(ThL)(ThL)(BEM(ker,u,v));
fespace Uh(ThL,P1);
HMatrix H = vbem(Uh,Uh);
func uinc = exp(1ikx);
Uh p, b;
varf vrhs(u,v) = -int1d(ThL)(uinc*v);
b = vrhs(0,Uh);
p = H^-1*b;
BemPotential Pot(“SL”, k=2*pi);
varf vpot(u,v) = int1d(ThL)(POT(Pot,u,v));
int np = 200;
int R = 4;
border b1(t=-R, R){x=t; y=-R;}
border b2(t=-R, R){x=R; y=t;}
border b3(t=-R, R){x=-t; y=R;}
border b4(t=-R, R){x=-R; y=-t;}
mesh ThOut = buildmesh(b1(np)+b2(np)+b3(np)+b4(np)+circle(-n));
fespace UhOut(ThOut,P1);
HMatrix HP = vpot(Uh,UhOut);
UhOut u, utot;
u = HP*p;
utot = u + uinc;
plot(utot,fill=1,value=1,cmm=“u_total”);
Error
– FreeFem++ v4.6 (Fri, Apr 03, 2020 2:08:08 PM - git v4.6)
Load: lg_fem lg_mesh lg_mesh3 eigenvalue
1 : load “msh3”(load: loadLibary C:\Program Files (x86)\FreeFem++\.\msh3 = 0)
2 : load “bem”(load: loadLibary C:\Program Files (x86)\FreeFem++\.\bem = 0)
3 : real k = 10;
4 : int n = 100;
5 : border circle(t = 0, 2pi){x=cos(t); y=sin(t);}
6 : meshL ThL = buildmeshL(circle(n));
7 : ThL = OrientNormal(ThL,unbounded=1);
8 : BemKernel Ker(“SL”, k=2pi)
Error line number 8, in file C:\Users\jawahar ali\OneDrive\Desktop\freefemm\bdm.edp, before token )
They are used Named parameter
current line = 8
Compile error : They are used Named parameter
line number :8, )
error Compile error : They are used Named parameter
line number :8, )
code = 1 mpirank: 0