LevelSet2D

所属分类:GDI/图象编程
开发工具:Visual C++
文件大小:238KB
下载次数:41
上传日期:2011-07-30 10:51:07
上 传 者imech
说明:  level set算法应用于二维问题用来捕捉界面问题。
(level set algorithm is applied to two-dimensional problem to capture the interface problem.)

文件列表:
LevelSet2D\.DS_Store (6148, 2005-04-18)
LevelSet2D\Container2D.h (5474, 2005-08-02)
LevelSet2D\Debug\FastMarch2D.bsc (41984, 2011-06-30)
LevelSet2D\Debug\FastMarch2D.sbr (0, 2011-06-30)
LevelSet2D\Debug\vc60.idb (74752, 2011-06-30)
LevelSet2D\Debug\vc60.pdb (61440, 2011-06-30)
LevelSet2D\Debug (0, 2011-06-30)
LevelSet2D\FastMarch2D.cpp (7232, 2005-01-07)
LevelSet2D\FastMarch2D.dsp (3465, 2011-06-30)
LevelSet2D\FastMarch2D.dsw (530, 2011-06-30)
LevelSet2D\FastMarch2D.h (6328, 2005-08-02)
LevelSet2D\FastMarch2D.ncb (41984, 2011-06-30)
LevelSet2D\FastMarch2D.opt (48640, 2011-06-30)
LevelSet2D\FastMarch2D.plg (8298, 2011-06-30)
LevelSet2D\GL\glut.def (2290, 1999-02-10)
LevelSet2D\GL\glut.h (27726, 2005-04-21)
LevelSet2D\GL\glut32.dll (237568, 2001-11-08)
LevelSet2D\GL\glut32.lib (28728, 2001-11-08)
LevelSet2D\GL (0, 2005-08-02)
LevelSet2D\glut32.lib (28728, 2001-11-08)
LevelSet2D\Grid2D.h (7168, 2005-08-02)
LevelSet2D\LevelSet2D.cpp (4732, 2005-04-19)
LevelSet2D\LevelSet2D.h (4545, 2005-08-02)
LevelSet2D\LevelSet2D.ncb (306176, 2005-08-02)
LevelSet2D\LevelSet2D.sln (909, 2005-04-21)
LevelSet2D\LevelSet2D.suo (18944, 2005-08-02)
LevelSet2D\LevelSet2D.vcproj (4318, 2005-04-29)
LevelSet2D\license.txt (1122, 2005-08-02)
LevelSet2D\main.cpp (6414, 2011-06-30)
LevelSet2D\main.dsp (3377, 2011-06-30)
LevelSet2D\main.dsw (516, 2011-06-30)
LevelSet2D\main.h (5958, 2011-06-30)
LevelSet2D\main.ncb (41984, 2011-06-30)
LevelSet2D\main.opt (48640, 2011-06-30)
LevelSet2D\main.plg (9684, 2011-06-30)
LevelSet2D\Particle2D.h (4083, 2005-08-02)
LevelSet2D\ParticleSet2D.h (3896, 2005-08-02)
LevelSet2D\Random.cpp (3636, 2004-08-24)
... ...

The file Container.h contains all the code neccessary to implement this example. An object of class Container has fields that hold the initial grid, the level set, and the particles. In the this example, the costructor of Container initializes the system using the MakeSphere function. This function will initialize the values in the grid "init" to create an implicit surface representing Zalesaks disk. A function like this is necessary to create the initial grid values representing the implicit surface. In the current version of this file, it is assumed that this function creates a signed distance function around the implicit function. However, if this is not the case, the level set function "Reinitialize" has to be called immediately after the "Initialize" function is called. The "Reinitialize" function creates a signed distance function based on the interface location. Once the system is initialized then calling Container::Update() from the appropriate function (in our example glut_idle_cb()) will update the level set. In a more complex example Update() will hold the simulator that computes the new velocities of the grid points.

近期下载者

相关文件


收藏者