Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
fem mesh

Subject: fem mesh

From: Sashankh Rao

Date: 29 Apr, 2013 17:54:10

Message: 1 of 3

Hello,

I am trying to mesh a geometry using the initmesh and refinemesh functions. I would like to control the location of nodes on the boundary of the domain. Is there anyway to do this?

Thanks,
Sashankh

Subject: fem mesh

From: Alan_Weiss

Date: 30 Apr, 2013 12:52:47

Message: 2 of 3

On 4/29/2013 1:54 PM, Sashankh Rao wrote:
> Hello,
>
> I am trying to mesh a geometry using the initmesh and refinemesh
> functions. I would like to control the location of nodes on the
> boundary of the domain. Is there anyway to do this?
>
> Thanks,
> Sashankh

I am sorry, Shashankh, but I do not know of a way to specify particular
points on the mesh.

There are a few workarounds you can try, but I don't know how well any
of them will work for you:
* Make some extra subdomains that intersect the boundary at the points
you want. These subdomains should have the same overall geometry and
boundary conditions as before, this is just a way to have the mesher use
the points you want. Or:
* Export the points in the mesh, and manually edit them. Move the
closest point in the mesh to the point that you want. This might lead to
difficulties, if the resulting triangulation is no longer Delaunay, but
I think it should work OK if you just need to move a few points and not
very far.

Good luck,

Alan Weiss
MATLAB mathematical toolbox documentation

Subject: fem mesh

From: Sashankh Rao

Date: 30 Apr, 2013 15:43:10

Message: 3 of 3

Alan_Weiss <aweiss@mathworks.com> wrote in message <kloeqv$r1c$1@newscl01ah.mathworks.com>...
> On 4/29/2013 1:54 PM, Sashankh Rao wrote:
> > Hello,
> >
> > I am trying to mesh a geometry using the initmesh and refinemesh
> > functions. I would like to control the location of nodes on the
> > boundary of the domain. Is there anyway to do this?
> >
> > Thanks,
> > Sashankh
>
> I am sorry, Shashankh, but I do not know of a way to specify particular
> points on the mesh.
>
> There are a few workarounds you can try, but I don't know how well any
> of them will work for you:
> * Make some extra subdomains that intersect the boundary at the points
> you want. These subdomains should have the same overall geometry and
> boundary conditions as before, this is just a way to have the mesher use
> the points you want. Or:
> * Export the points in the mesh, and manually edit them. Move the
> closest point in the mesh to the point that you want. This might lead to
> difficulties, if the resulting triangulation is no longer Delaunay, but
> I think it should work OK if you just need to move a few points and not
> very far.
>
> Good luck,
>
> Alan Weiss
> MATLAB mathematical toolbox documentation

Thanks Alan.

Tags for this Thread

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.

Contact us