Pointwise Reliable People. Reliable Tools. Reliable CFD Meshing. About Us Contact Us Search
 
   
   
   
Glyph

GridOfLife

Description:

Playing Conway's Game of Life on a Structured Grid

This script lets you play Conway's Game of Life (see the Wikipedia page) on a structured surface grid.

The script as delivered is configured to run automatically a demo of Conway's Game of Life with a single Gosper's Glider Gun configuration (see video below). Open the sample file (see link below) and execute the script. You'll be able to select which domain to run the demo on, either a simple square or an O-grid around an airfoil.

The built-in demo can be run on your own grids as long as they're at least 42 x 37 points.

You can turn off demo mode by editing the script and changing the value of the variable "hardcoded" to 0. Then after you select the domain, the script lets you choose which grid cells start out as living.

The script is set to run 200 generations. To change that just change the value of variable "numGenerations."

Download:

Author:

Pointwise, glyph@pointwise.com

Disclaimer:

Scripts are freely provided. They are not supported products of Pointwise, Inc. Some scripts have been written and contributed by third parties outside of Pointwise's control.

TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, POINTWISE DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, WITH REGARD TO THESE SCRIPTS. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT SHALL POINTWISE BE LIABLE TO ANY PARTY FOR ANY SPECIAL, INCIDENTAL, INDIRECT, OR CONSEQUENTIAL DAMAGES WHATSOEVER (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF BUSINESS INFORMATION, OR ANY OTHER PECUNIARY LOSS) ARISING OUT OF THE USE OF OR INABILITY TO USE THESE SCRIPTS EVEN IF POINTWISE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES AND REGARDLESS OF THE FAULT OR NEGLIGENCE OF POINTWISE.