⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 laplacep1bis.edp

📁 FreeFem++可以生成高质量的有限元网格。可以用于流体力学
💻 EDP
字号:
 mesh Th=square(10,10); fespace Vh(Th,P1);     // P1 FE space Vh uh,vh,u;              // unkown and test function.  func f=1;                 //  right hand side function  func g=0.;                 //  boundary condition function  problem laplace(uh,vh,solver=GMRES,tgv=1e5) =                    //  definion of  the problem   - int2d(Th)( -dx(uh)*dx(vh) - dy(uh)*dy(vh) ) //  bilinear form  - int1d(Th,1)( -uh*vh)   - int1d(Th,1)(  vh)  - int2d(Th)( f*vh )                          //  linear form  + on(2,3,4,uh=g) ;                      //  boundary condition form problem laplacep(uh,vh,solver=CG,tgv=1e5) =                    //  definion of  the problem     int2d(Th)( dx(uh)*dx(vh) + dy(uh)*dy(vh) ) //  bilinear form  + int1d(Th,1)( uh*vh)   + int1d(Th,1)( - vh)  + int2d(Th)( -f*vh )                          //  linear form  + on(2,3,4,uh=g) ;                      //  boundary condition form    laplace; // solve the problem plot(uh); // to see the result  u=uh;  laplacep; // solve the problem plot(uh); // to see the result    plot(uh,u,value=true);  u[] -= uh[];  cout << "Diff min = "<< u[].min << " max=" << u[].max << endl ;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -