Re: 2D geometry with M-file
- From: "Per Sundqvist" <per.sundqvist@xxxxxx>
- Date: Wed, 7 Nov 2007 13:56:00 +0000 (UTC)
"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
.
- References:
- 2D geometry with M-file
- From: Giuseppe Pontrelli
- 2D geometry with M-file
- Prev by Date: Re: clipping planes?
- Next by Date: Re: 7000+ beautiful Russian women
- Previous by thread: 2D geometry with M-file
- Next by thread: Fortran into Matlab
- Index(es):
Relevant Pages
|