// Computation of the eigen value and eigen vector of the // Dirichlet problem on square $]0,\pi[^2$ // ---------------------------------------- // we use the inverse shift mode // the shift is given with sigma real // ------------------------------------- // find $\lamda$ such that: // $$ \int_{\omega} \nabla u_ \nabla v = \lamba \int_{\omega} u \nabla v $$ verbosity=1; int bottombeam = 2; border aaa(t=2,0) { x=0; y=t ;label=1;}; // left beam border bbb(t=0,10) { x=t; y=0 ;label=bottombeam;}; // bottom of beam border ccc(t=0,2) { x=10; y=t ;label=1;}; // rigth beam border ddd(t=0,10) { x=10-t; y=2; label=3;}; // top beam real E = 21.5; real sigma = 0.29; real mu = E/(2*(1+sigma)); real lambda = E*sigma/((1+sigma)*(1-2*sigma)); real gravity = -0.05; mesh Th = buildmesh( bbb(20)+ccc(5)+ddd(20)+aaa(5)); fespace Vh(Th,[P1,P1]); Vh [uu,vv], [w,s]; cout << "lambda,mu,gravity ="<