Re: 2D geometry with M-file



"Giuseppe Pontrelli" <g.pontrelli@xxxxxxxxxx> wrote in
message <fgs13t$125$1@xxxxxxxxxxxxxxxxxx>...
I would like to define the geometry of a closed curve with a
M-file, in particular
a 2D region using parameterized edge segments (to use later
initmesh and solving
a PDE in it). Unfortunately the user guide (pdegeom) is
unclear to me and the cardioid example
remains insufficient, both as syntax and as description, to
manage the general case.
Does anybody can explain to me how to write the geometry
through a worked example? Or give me a more complete
documentation?
As an example, I have to define a contracting rectangle
(x,L(x)) having the long side defined
as:

L(x)=1- A exp (-B x^2)

Thank you,

I'm not sure if you are using femlab/comsol or not? In that
case you could specify a geometry as defined by a polygon.
An example is given by me at the file exchange:

http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=5334&objectType=file
<a
href="http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=5334&objectType=file";>Koch-star
eigenvalues</a>

Download the code and you see inside the command-line code
(its not done in GUI) where the polygon is defined.

Maby that helps?
/Per

.



Relevant Pages

  • Oxford University landscape archaeologist Anthony Johnson: Stonehenge more geometry than astronomy
    ... The most complex geometrical achievement at Stonehenge is an 87-metre ... diameter circle of chalk-cut pits which mark the points of a 56-sided ... polygon, created immediately within themonument's perimeter earthwork. ... Stonehenge builders had geometry skills to rival Pythagoras ...
    (sci.archaeology)
  • Re: A question (JPG attached)
    ... you got me wrong, but thats my fault. ... High polygon looks good, ... > its hard to believe the method is globally broken for all geometry. ... >> or even a plain object. ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Re: A shapes arbitrary contour?
    ... geometry shape for the square, rhombus, rectangle, triangle and then ... value of a custom property to a fixed value. ... For a regular polygon, the ... For a triangle, the first ...
    (microsoft.public.visio.developer)
  • Re: clipping and viewport mapping problem
    ... you have ambiguity when an edge crosses the center ... But when we associate materials, each polygon might contain a different ... like the geometry is defined. ...
    (comp.graphics.algorithms)