Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help : heat conduction problem with interface #226

Open
Endermel opened this issue May 4, 2022 · 0 comments
Open

Help : heat conduction problem with interface #226

Endermel opened this issue May 4, 2022 · 0 comments

Comments

@Endermel
Copy link

Endermel commented May 4, 2022

Hello,

I'm a french beginner student on Freefem++ and I have to make research on Nitsche's method for elliptic problem by Hansbo P. and A. (link : https://hal.archives-ouvertes.fr/hal-01352903 ). I'm trying to resolve the example 7.1 (page 12) and this is my code :

int Nbnoeuds=10;
func f=1;
real alpha1=1/2;
real alpha2=3;
real pena=10*2;
border bord1(t=0.,1){x=t; y=0; label=1;}
border bord2(t=0.,1){x=1; y=t; label=2;}
border bord3(t=0,1){x=1-t; y=1; label=3;}
border bord4(t=0,1){x=0; y=1-t; label=4;}
border cross(t=0,1){x=0.5; y=t; label=5;}

mesh Th = buildmesh(bord1(Nbnoeuds)+bord2(Nbnoeuds)+bord3(Nbnoeuds)+bord4(Nbnoeuds)+cross(Nbnoeuds));
//plot(Th);
fespace Vh(Th,P1);
Vh u1,u2;
Vh v1,v2;
solve projet([u1,u2],[v1,v2],solver=LU)=int2d(Th)(alpha1dx(u1)dx(v1)) + int2d(Th)(alpha2dx(u2)dx(v2)) - intalledges(Th)([jump(u1),jump(u2)](alpha1dx(v1)+alpha2dx(v2))) - intalledges(Th)([jump(v1),jump(v2)](alpha1dx(u1)+alpha2dx(u2)))

  • intalledges(Th)(pena*[jump(u1),jump(u2)]*[jump(v1),jump(v2)]) + on(5,u1-u2=0);
    plot(uh);

I have many errors and I don't know how to fix it. If someone can me advice please.

Best Regards,
Mel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant