📄 mainwzmaptest.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<c->dimension();i++){ x.min[i] = c->chart.min[i]; x.max[i] = c->chart.max[i]; if(x.min[i]<-200) x.min[i] = -wzPi/2; if(x.max[i]> 200) x.max[i] = wzPi/2; } if(c->dimension()<2) x.max[1]=1; cogenOctree ortho = new CogenOctree(); ortho->setBorder(x.min[0],x.max[0],x.min[1],x.max[1],x.min[2],x.max[2]); ortho->refinementGlobal(0.2,0.2,0.2); cogenChart gen = new CogenChart(ortho->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->stretch(2.0); c3->switchXY(); c3->switchYZ(); c3->switchXZ(); c3->rotateX(0.25*wzPi); c3->rotateY(0.25*wzPi); c3->rotateZ(0.25*wzPi); c3->shift(0.5,0.5,0.5);// c3->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(&*c2); c2->print(); c2->test(); c2->stretch(2.0); c2->switchXY(); c2->rotate(0.25*wzPi); c2->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->stretch(2.0); c1->shift(0.5);// c1->print(); fine();}</PRE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -