Thread Subject: how to use initmesh ?

Subject: how to use initmesh ?

From: zedong

Date: 7 Jan, 2009 11:29:02

Message: 1 of 4

[p,e,t]=initmesh(g)
How to set the parameter?
for example:
I have a polygon:
xy=[0 0;1 0;0.3 0.3;0 1]
how to set g?
Thank you all.

Subject: how to use initmesh ?

From: Steven Lord

Date: 7 Jan, 2009 14:53:45

Message: 2 of 4


<zedong > wrote in message news:gk23lu$mdf$1@fred.mathworks.com...
> [p,e,t]=initmesh(g)
> How to set the parameter?
> for example:
> I have a polygon:
> xy=[0 0;1 0;0.3 0.3;0 1]
> how to set g?
> Thank you all.

As the reference page for INITMESH states:

http://www.mathworks.com/access/helpdesk/help/toolbox/pde/ug/initmesh.html

"g describes the geometry of the PDE problem. g can either be a Decomposed
Geometry matrix or the name of a Geometry M-file. The formats of the
Decomposed Geometry matrix and Geometry M-file are described in the entries
on decsg and pdegeom, respectively."

The reference pages for DECSG and PDEGEOM, which describe the format your g
matrix or M-file need to have, are linked in the See Also section at the
bottom of the INITMESH reference page.

--
Steve Lord
slord@mathworks.com

Subject: how to use initmesh ?

From: Seth

Date: 19 Jan, 2010 16:21:02

Message: 3 of 4

I would like to know an answer to this same question. I can define boundary "keypoints" as in x,y coordinates, but I am unsure of how to get this into a "meshable" form.

Steve, while I find the Matlab help / documentation usually extremely helpful - I am not really understanding the documentation on this topic or finding a direct answer to the question.

Can anyone help clarify how to take these x,y boundary coordinates and end up with a mesh via initmesh?

Thanks!
Seth

Subject: how to use initmesh ?

From: Seth

Date: 19 Jan, 2010 19:46:03

Message: 4 of 4

FYI: The file exchange posting for "Mesh2D" by Darren Engwirda seems to be doing what I am looking for. I especially like his feature for meshing connected polygon "faces".

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
mesh Seth 19 Jan, 2010 14:49:06
finite element Seth 19 Jan, 2010 14:49:06
fea Seth 19 Jan, 2010 14:49:06
fem Seth 19 Jan, 2010 14:49:06
triangulation Seth 19 Jan, 2010 14:49:06
rssFeed for this Thread

Contact us at files@mathworks.com