dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #13400
Re: distance function
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.
Harish
Attachment:
distance.tar.bz2
Description: application/bzip
Follow ups
References