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

📄 mainwzmaptest.html

📁 Delaunay三角形的网格剖分程序
💻 HTML
字号:
<TITLE>WZ 1.1: Maps and coordinates</TITLE><H1>wzMap</H1> <P>There are a lot of predefined standard systems of coordinateswhich may be used.  We distinguish two transformations: <B>global</B>and <B>local</B>.  That means, where are <B>local coordinates</B>which may be transformed into <B>global coordinates</B> and reverse.We can always apply additional <B>conform affine transformations</B>to the global coordinates. <P>Coordinates may be used to create grids following this scheme:<PRE>#include "coglib.hxx"void createGridWithCoordinates(wzmap c){  wzBox x;  for(int i=0;i&lt;c-&gt;dimension();i++){       	x.min[i] = c-&gt;chart.min[i];	x.max[i] = c-&gt;chart.max[i];	if(x.min[i]&lt;-200) x.min[i] = -wzPi/2;	if(x.max[i]&gt; 200) x.max[i] =  wzPi/2;  }  if(c-&gt;dimension()&lt;2) x.max[1]=1;  cogenOctree ortho = new CogenOctree();  ortho-&gt;setBorder(x.min[0],x.max[0],x.min[1],x.max[1],x.min[2],x.max[2]);  ortho-&gt;refinementGlobal(0.2,0.2,0.2);  cogenChart gen = new CogenChart(ortho-&gt;generator(),c);  wzgrid grid = (*gen)();  grid->write("test.sg");}</PRE><PRE>int main(){  wz3dmap c3;</PRE><H2>3D Coordinates</H2> <P>In 3D, we have planar, spherical, and cylinder coordinates currently implemented. <P><IMG SRC="spheretest.gif"><PRE>  c3 = new wz3Dcoordinates();  c3 = new wz3Dspherical();  c3 = new wz3Dcylinder();</PRE> <P>Affine transformations may be added with the following operations:<PRE>  c3-&gt;stretch(2.0);  c3-&gt;switchXY();  c3-&gt;switchYZ();  c3-&gt;switchXZ();  c3-&gt;rotateX(0.25*wzPi);  c3-&gt;rotateY(0.25*wzPi);  c3-&gt;rotateZ(0.25*wzPi);  c3-&gt;shift(0.5,0.5,0.5);//  c3-&gt;print();</PRE><H2>2D Coordinates</H2> <P>In 2D, we have planar, polar, complex exponent, complex elliptic,coordinates currently implemented: <P><IMG SRC="polartest.gif"> <IMG SRC="wz2dexp.gif"> <IMG SRC="wz2delliptic.gif"><PRE>  wz2dmap c2;  c2 = new wz2Dcoordinates();  c2 = new wz2Dpolar();  c2 = new wz2Dexp();//  c2 = new wz2Dshukovski();  c2 = new wz2Dcosh();  c2 = new wz2Dacosh();</PRE> <P>Affine transformations may be added with the following operations:<PRE>  createGridWithCoordinates(&amp;*c2);  c2-&gt;print();  c2-&gt;test();  c2-&gt;stretch(2.0);  c2-&gt;switchXY();  c2-&gt;rotate(0.25*wzPi);  c2-&gt;shift(0.5,0.5);</PRE><H2>1D Coordinates</H2> <P>In 1D, we have planar coordinates currently implemented:<PRE>  wz1dmap c1;  c1 = new wz1Dcoordinates();  c1 = new wz1Dexp();  c1 = new wz1Dlog();</PRE> <P>Affine transformations may be added with the following operations:<PRE>  c1-&gt;stretch(2.0);  c1-&gt;shift(0.5);//  c1-&gt;print();  fine();}</PRE>

⌨️ 快捷键说明

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