octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Mesh, Octave and Freefem++


From: fotios
Subject: Mesh, Octave and Freefem++
Date: Sat, 01 Jun 2013 13:06:20 +0200
User-agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6

Once I wrote some simple interface to generate a mesh through Octave using Freefem++ [1], after reordering my code I ended up with the attached (non documented) functions and here is a simple example

b1 = boundary (1, "cos(t)", "sin(t)", [0, 2*pi], 50);
b2 = boundary (2, "0.5*cos(t)", "0.5*sin(t)", [0, 2*pi], -50);
s = fixmesh (5, 0.05);
[p, e, t, hmax] = buildmesh (s, b1, b2);
triplot (t, p(:,1), p(:,2))
axis equal;

If anybody is interested I could write documentation and make it a real package (maybe with some help)

/Fotis

[1] http://www.freefem.org/ff++/

Attachment: boundary.m
Description: Text document

Attachment: buildmesh.m
Description: Text document

Attachment: fixmesh.m
Description: Text document

Attachment: readmesh.m
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]