Skip to content

A Python re-implementation of distmesh2d by Persson and Strang

Notifications You must be signed in to change notification settings

ckhroulev/py_distmesh2d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository contains a Python re-implementation of distmesh2d in P.-O. Persson, G. Strang, A Simple Mesh Generator in MATLAB. SIAM Review, Volume 46 (2), pp. 329-345, June 2004 (http://persson.berkeley.edu/distmesh/).

  • This code implements the original function described in the 2004 paper and does not include any improvements,
  • Using NumPy makes it about as short as the original MATLAB version.
  • scipy.spatial.Delaunay (present in SciPy >= 0.9.0) is used to compute Delaunay triangulations. Alternatively matplotlib.delaunay (present in matplotlib >= 0.8) can be used.
  • The script examples.py requires matplotlib >= 1.0.
  • This code is in an "alpha" stage and will probably stay that way.

It seems to work, though:

example 3

About

A Python re-implementation of distmesh2d by Persson and Strang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages