Code covered by the BSD License  

Highlights from
Hamilton-Jacobi solver on unstructured triangular grids

Be the first to rate this file! 18 Downloads (last 30 days) File Size: 305.91 KB File ID: #24827
image thumbnail

Hamilton-Jacobi solver on unstructured triangular grids

by Shawn Walker

 

23 Jul 2009 (Updated 22 Sep 2011)

Solves a class of static HJB equations on general triangular grids.

| Watch this File

File Information
Description

Implementation based on:

"Finite-Element Discretization Of Static Hamilton-Jacobi Equations Based On A Local Variational Principle"
by F. Bornemann and C. Rasch

Comments:

1. There is no restriction on the type of triangulation, i.e. it does not need to be acute. But the method will require more than one sweep of the mesh (because of lack of causality). Howver, only a few iterations should be necessary to achieve convergence.

2. Two versions of the code are implemented. One is pure MATLAB and the other uses a MEX function. The MEX version is faster by about a factor of 100 for the example that I include.

3. The MEX version allows for a variable distance metric. See the test code for a demonstration.

4. The MEX version uses a FIFO buffer to implement a non-linear adaptive Gauss-Seidel iteration (see the paper). FIFO buffers cannot be easily implemented in pure MATLAB.

5. The MEX version C++ code uses Object-Oriented methods.

6. I put in a lot of error checking to make the code robust to user-error. However, I make no claim that this software is completely correct. Use it at your own risk!

MATLAB release MATLAB 7.4 (R2007a)
Other requirements Requires a C++ compiler.
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
30 Jul 2009

minor portability update.

22 Sep 2011

This is now part of the FELICITY package, which can also be downloaded on the Central File Exchange.

Tag Activity for this File
Tag Applied By Date/Time
mathematics Shawn Walker 24 Jul 2009 12:07:13
physics Shawn Walker 24 Jul 2009 12:07:13
distance function Shawn Walker 24 Jul 2009 12:07:13
hamilton jacobi Shawn Walker 24 Jul 2009 12:07:13
level set Shawn Walker 24 Jul 2009 12:07:13
pde Shawn Walker 24 Jul 2009 12:07:13

Contact us at files@mathworks.com