?? maincontinuationtest.html
字號:
<TITLE>COG 2.1: 3D continuation of 2D grids</TITLE><H1>3D continuation of 2D grids</H1> <P>There are some possibilities to modify grids outside the generalcogenerator concept. One of them is a 3D continuation of a given 2Dgrid. <P>Input is a 2D grid created otherwise (here a 2D unit square withtwo triangles):<PRE>#include "<A HREF="coglib.hxx">cog/coglib.hxx</A>"int main(){ cogenOctree gen = new CogenOctree(); gen->setBorder(0.0,1.0, 0.0,1.0); wzgrid grid2D = (*gen)();</PRE> <P>Now, we can create a 3D tetrahedral grid by continuation inz-direction. Every triangle gives a prism subdivided into threetetrahedra. There may be several layers. In our case, we have twolayers:<PRE> wzFloat dz = 0.4; wzIndex number_of_layers = 2; wzgrid grid = wzGridContinuation3D(grid2D, dz, number_of_layers);</PRE> <P>which gives the following grid: <P><IMG SRC="continuationtest.gif"><PRE> grid->write("test.sg");}</PRE>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -