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

📄 plot.edp

📁 FreeFem++可以生成高质量的有限元网格。可以用于流体力学
💻 EDP
字号:
int n=20,nn=n+10;real[int] xx(nn),yy(nn);//  \url{from:   http://en.wikipedia.org/wiki/HSV_color_space} //The HSV (Hue, Saturation, Value) model, //   defines a color space in terms of three constituent components:////HSV color space as a color wheel//Hue, the color type (such as red, blue, or yellow)://   Ranges from 0-360 (but normalized to 0-100% h ere)// Saturation, the "vibrancy" of the color: Ranges     from 0-100%//    The lower the saturation of a color, the more "grayness" is present //    and the more faded the color will appear.// Value, the brightness of the color://   Ranges from 0-100%// real[int] colorhsv=[  // color hsv model  4./6., 1 , 0.5, // dark blue  4./6., 1 , 1, //  blue  5./6., 1 , 1, //  magenta  1, 1. , 1, //  red  1, 0.5 , 1 // light red    ];mesh Th=square(5,5);fespace Vh(Th,P2);Vh uh=x*x+y*y,vh=-y^2+x^2;assert(n+1 < nn);//  compute a cut for (int i=0;i<=n;i++) {   xx[i]=i;   yy[i]=uh(real(i)/n,real(i)/n); // value of uh at point (i/10. , i/10.)  }  plot(Th,uh,[uh,vh],value=true,ps="three.eps",wait=true); // plot mesh, isovalue, and vector //  zoom on box defined by the two corner points [0.1,0.2] and [0.5,0.6] plot(uh,[uh,vh],bb=[[0.1,0.2],[0.5,0.6]],wait=true,grey=1,fill=1,value=1,ps="threeg.eps");  // in grey with filling plot([xx(0:n),yy(0:n)],[xx(0:n:5),yy(0:n:5)],ps="likegnu.eps",wait=true); //  like gnuplot plot a cut of uh real[int] viso(31);  for (int i=0;i<viso.n;i++)   viso[i]=i*0.1;    plot(uh,viso=viso(0:viso.n-1),value=1,fill=1,wait=1,hsv=colorhsv,ps="threehsv.eps");   

⌨️ 快捷键说明

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