Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.
Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
get certain elements of a mesh, then refine mesh there
Posted Jan 27, 2011, 4:53 a.m. EST Interfacing, Mesh Version 3.5a 2 Replies
Please login with a confirmed email address before reporting spam
Hi,
i'm quite new to Comsol and i'm not sure if the following is possible to do with the software combined with Matlab:
There is a simple 2D square geometry with a mesh on it.
Now i want to get a list of certain elements of that mesh: The list should contain all triangles that are located on a circle on that 2D plane defined by an equation like (x-1)^2+(y-1)^2=0.5.
Then i need to refine the mesh around the mesh elements on the list.
I thought it might be possible to determine the triangles by checking if a triangle has nodes that are inside AND outside of the circle (or if one or two nodes exactly on it). This could be done by inserting the coordinates in (x-1)^2+(y-1)^2<=0.5 and checking it the equation holds. The problem is that i don't know how to start or if this approach is possible at all.
Thanks for any suggestions :)
i'm quite new to Comsol and i'm not sure if the following is possible to do with the software combined with Matlab:
There is a simple 2D square geometry with a mesh on it.
Now i want to get a list of certain elements of that mesh: The list should contain all triangles that are located on a circle on that 2D plane defined by an equation like (x-1)^2+(y-1)^2=0.5.
Then i need to refine the mesh around the mesh elements on the list.
I thought it might be possible to determine the triangles by checking if a triangle has nodes that are inside AND outside of the circle (or if one or two nodes exactly on it). This could be done by inserting the coordinates in (x-1)^2+(y-1)^2<=0.5 and checking it the equation holds. The problem is that i don't know how to start or if this approach is possible at all.
Thanks for any suggestions :)
2 Replies Last Post Jan 29, 2011, 5:11 a.m. EST