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.

meshing a cylinder

Please login with a confirmed email address before reporting spam

Hi All,

I have been having some issues meshing a cylinder. When you define a cylinder in COMSOL, it splits the curved face into 4 quarters, and as a result, when I went to mesh the cylinder I was irregularities at these 4 points, where the mesh is clearly trying to conform to these 4 lines.
I would like to know how to solve this problem, so that my mesh is uniform around the length of this curved face. I have tried to get COMSOL to ignore the four edges, and I have also had it make a single composite face from the four individual ones. In both cases, when it came to meshing, the mesh acted like these lines were still there.

Any ideas?


B

15 Replies Last Post 06.11.2016, 03:19 GMT-5
Ivar KJELBERG COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 25.10.2012, 09:05 GMT-4
Hi

what about meshing the end surface i.e in tri() and then use a sweep mesh down the surface, that should better follow the "lines"

--
Good luck
Ivar
Hi what about meshing the end surface i.e in tri() and then use a sweep mesh down the surface, that should better follow the "lines" -- Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 25.10.2012, 10:54 GMT-4
Ivar,

my problem is that I DON'T want them to follow these lines. From what I can work out, the mesh shouldn't "see" these lines, as I have gotten rid of them in the geometry.
Ivar, my problem is that I DON'T want them to follow these lines. From what I can work out, the mesh shouldn't "see" these lines, as I have gotten rid of them in the geometry.

Jeff Hiller COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 25.10.2012, 11:02 GMT-4
Have you tried using Virtual Operations (under Geometry) to remove those lines?
Have you tried using Virtual Operations (under Geometry) to remove those lines?

Nagi Elabbasi Facebook Reality Labs

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 25.10.2012, 11:11 GMT-4
I tried Virtual Topology for a cylinder before to get rid of those lines but I believe it did not work. The resulting mesh however was always quite uniform and satisfactory. Blair maybe you can elaborate on what you find unacceptable about that mesh.
I tried Virtual Topology for a cylinder before to get rid of those lines but I believe it did not work. The resulting mesh however was always quite uniform and satisfactory. Blair maybe you can elaborate on what you find unacceptable about that mesh.

Jeff Hiller COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 25.10.2012, 11:35 GMT-4
Geometry>Virtual Operations>Ignore Edges can definitely be used to remove those lines, if needed. See attached screenshot.
Geometry>Virtual Operations>Ignore Edges can definitely be used to remove those lines, if needed. See attached screenshot.


Nagi Elabbasi Facebook Reality Labs

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 25.10.2012, 11:56 GMT-4
Thanks Jeff. I just tried it now on my own cylinder :) and it doesn't work. Am I doing it differently? See attachment.
Thanks Jeff. I just tried it now on my own cylinder :) and it doesn't work. Am I doing it differently? See attachment.


Jeff Hiller COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 25.10.2012, 12:25 GMT-4
Interesting.It seems that depending on the aspect ratio and depending on your mesh fineness setting the lines are either present in the mesh or not. My guess is that in the case where the lines are present it's because although the mesher is not forced to put nodes along those lines it decides to do so anyways on its own. This is only a guess though.
Interesting.It seems that depending on the aspect ratio and depending on your mesh fineness setting the lines are either present in the mesh or not. My guess is that in the case where the lines are present it's because although the mesher is not forced to put nodes along those lines it decides to do so anyways on its own. This is only a guess though.

Ivar KJELBERG COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 25.10.2012, 13:44 GMT-4
Hi

Well and I never try to remove them, as mostly I add such lines to force the mesher to be more symmetric ;)

--
Good luck
Ivar
Hi Well and I never try to remove them, as mostly I add such lines to force the mesher to be more symmetric ;) -- Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 26.10.2012, 07:06 GMT-4
Yeah, that is exactly the problem I faced. Getting rid of the lines DID get rid of the lines, and yet the meshing somehow still saw them. I am trying to use quite a fine mesh (which I can't really avoid) so maybe that is the problem.

Thanks to all of you for your help, just seems a very strange problem.

B
Yeah, that is exactly the problem I faced. Getting rid of the lines DID get rid of the lines, and yet the meshing somehow still saw them. I am trying to use quite a fine mesh (which I can't really avoid) so maybe that is the problem. Thanks to all of you for your help, just seems a very strange problem. B

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 26.10.2012, 11:32 GMT-4
Hello to all,

I don't know if Blair is saying it in the last message, but I get rid of the lines if I ignore BOTH the vertices AND the edges of the cylinder. I send the image.

Jesus.
Hello to all, I don't know if Blair is saying it in the last message, but I get rid of the lines if I ignore BOTH the vertices AND the edges of the cylinder. I send the image. Jesus.


Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 12.02.2014, 08:59 GMT-5
Hi,

I stumbled upon this thread trying to create a hollow cylinder mesh in COMSOL.
Suffice to say all your help did not help, at least not for COMSOL 4.3b.
The way I did manage to mesh my hollow cylinder (as can be seen in the attached image) was by ignoring the inner faces while keeping the checkbox "ignore adjacent edges and vertices" checked.

COMSOL 4.3b solution:
geometry→right-click→virtual operations→ignore faces

Greetings,

Boris
Hi, I stumbled upon this thread trying to create a hollow cylinder mesh in COMSOL. Suffice to say all your help did not help, at least not for COMSOL 4.3b. The way I did manage to mesh my hollow cylinder (as can be seen in the attached image) was by ignoring the inner faces while keeping the checkbox "ignore adjacent edges and vertices" checked. COMSOL 4.3b solution: geometry→right-click→virtual operations→ignore faces Greetings, Boris


Please login with a confirmed email address before reporting spam

Posted: 10 years ago 16.02.2015, 03:09 GMT-5
Hi Ivar

I have a little bit different question but on the same topic -- meshing a cylinder.
As you mentioned we can mesh on one surface and do sweep all the way to the one surface. However, I cannot find a way to mesh structured grid on the source surface which can be easily done on rectangular surface, please see attachment if you don't mind. In that picture, I have extremely fine mesh near the four walls (almost like black strips) where my boundaries locate.
So if I want to do the same thing for a pipe, extremely fine mesh near the walls, could I accomplish this task in comsol by any ways?
Thank you very much.

Yi
Hi Ivar I have a little bit different question but on the same topic -- meshing a cylinder. As you mentioned we can mesh on one surface and do sweep all the way to the one surface. However, I cannot find a way to mesh structured grid on the source surface which can be easily done on rectangular surface, please see attachment if you don't mind. In that picture, I have extremely fine mesh near the four walls (almost like black strips) where my boundaries locate. So if I want to do the same thing for a pipe, extremely fine mesh near the walls, could I accomplish this task in comsol by any ways? Thank you very much. Yi


Please login with a confirmed email address before reporting spam

Posted: 10 years ago 16.02.2015, 03:52 GMT-5
Hi

If you can use 2D axisymmetric model, it can be done with meshing first the top and bottom of lines with

Edge --> Distribution -->

and then mapped mesh in the pipe. See attached a suggestion.

br
Lasse
Hi If you can use 2D axisymmetric model, it can be done with meshing first the top and bottom of lines with Edge --> Distribution --> and then mapped mesh in the pipe. See attached a suggestion. br Lasse


Please login with a confirmed email address before reporting spam

Posted: 8 years ago 04.11.2016, 17:13 GMT-4
Hi Yi,

Have you solved this problem? I have exactly the same question with you! Really what to know how to mesh a circular face like this! (Finer near the edge and coarser at the center).

Thanks,
Haitian
Hi Yi, Have you solved this problem? I have exactly the same question with you! Really what to know how to mesh a circular face like this! (Finer near the edge and coarser at the center). Thanks, Haitian

Please login with a confirmed email address before reporting spam

Posted: 8 years ago 06.11.2016, 03:19 GMT-5
How about this? Due to geometry the center is bound to be tightly meshed.

Lasse
How about this? Due to geometry the center is bound to be tightly meshed. Lasse

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.