← Back to team overview

dolfin team mailing list archive

Re: distance function

 

On Fri, May 08, 2009 at 04:49:07PM +0200, Harish Narayanan wrote:
> kent-and@xxxxxxxxx wrote:
> >> kent-and@xxxxxxxxx wrote:
> >>> Has anyone implemented the computation of the distance function in
> >>> Dolfin/Fenics
> >>> (or with other packages) ?
> >>>
> >>> I know this can be implemented via solving the Eikonal but have never
> >>> really looked
> >>> into the details of it. Anyone knows how to do this reasonably efficient
> >>> and easy ?
> >> I have implemented it in the past by solving the Eikonal equation (in
> >> MATLAB).
> > 
> > Could you post the matlab code and then maybe we could translate it to
> > dolfin ?
> 
> I've cleaned up the code so that it works in Octave as I don't have
> MATLAB any more to test it. (It runs a _lot_ slower than I remember it
> being when I run it now in Octave, but at least one can see it working.)
> 
> Run it via: octave eikonal.m
> 
> I will see how it can be translated to DOLFIN.

Nice! I had forgotten that it's possible to solve PDEs in MATLAB
(although I did it a *lot* 10 years back)... :-)

-- 
Anders

Attachment: signature.asc
Description: Digital signature


References