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.

About Edge Vertex Distribution in Map Mesh

Please login with a confirmed email address before reporting spam

I'm now struggling to create 2D rectanglar mesh using map mesh option(COMSOL 3.2).
My geometry is arche (like rainbow).
I intend to make finer elements near inner boundary and coaser elements near outer boundary, and descend mesh element size from the inner one to the outer one gradually.

To accomplish this goal, I put "logspace(1,3,10)" in textbox in Edge Vertex Distribution in Map Mesh, for example. However, this generates an mesh which grows in opposite way (please see attached image).
I'm blocked now. I appriciate if you kindly tell me an appropriate way to create mesh which satisfies above goal. Thank you very much.


5 Replies Last Post 27.08.2010, 06:58 GMT-4
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 30.12.2009, 05:26 GMT-5
Hi

If you are in the GUI you can select "Mapped Mesh Parameters - Boundary - Constrained edge elements distribution" put the desire number of elements, select an element ratio >1 and Distribution method: Exponential (you do notneed to use the Edge vertex distribution, but thats another way with a better finesse).

Now I beleive that you are being "fooled" by the direction vector, if you select edges they will appear with an arrow, this is the "positive" "s" parameter direction selected by COMSOL, it is done in a systematic way, but might appear upside down from the users view, you have to live with that, and if you select a quadrant of a cylindrical shell you will notice that the two edges that you want to have an exponential are most probably with opposite "signs". This means that you have to select each one individually and use the reverse direction on one of them, Murphy say that you will select the wrong one, when you have some choice, so if this happens its just to "EDIT undo mesh" and start again.

By the way you also have boundary mesh, that does something similar, but you end up with triangles at the opposed side, I use this sometimes, and then transform them into triangles with the appropriate command, if required

Hope this helps
Good luck
Ivar
Hi If you are in the GUI you can select "Mapped Mesh Parameters - Boundary - Constrained edge elements distribution" put the desire number of elements, select an element ratio >1 and Distribution method: Exponential (you do notneed to use the Edge vertex distribution, but thats another way with a better finesse). Now I beleive that you are being "fooled" by the direction vector, if you select edges they will appear with an arrow, this is the "positive" "s" parameter direction selected by COMSOL, it is done in a systematic way, but might appear upside down from the users view, you have to live with that, and if you select a quadrant of a cylindrical shell you will notice that the two edges that you want to have an exponential are most probably with opposite "signs". This means that you have to select each one individually and use the reverse direction on one of them, Murphy say that you will select the wrong one, when you have some choice, so if this happens its just to "EDIT undo mesh" and start again. By the way you also have boundary mesh, that does something similar, but you end up with triangles at the opposed side, I use this sometimes, and then transform them into triangles with the appropriate command, if required Hope this helps Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 03.01.2010, 11:40 GMT-5
Thank you for your kind response.
Your suggestion is completely correctn the "direction arrow" of my boundary seems the point of issue.
So, I tried to select "reverse direction" check box to let the distribution reversed.
However, I coudn't find this option in "map mesh" dialog. Probably, this is because of COMSOL version because I can find the discription about "reverse direction" check box when I looked up COMSOL 3.5a version manual, whereas no findings for that of COMSOL 3.2 version. I'm up against the wall and maybe the only option seems upgrading my COMSOL. Thank you.
Thank you for your kind response. Your suggestion is completely correctn the "direction arrow" of my boundary seems the point of issue. So, I tried to select "reverse direction" check box to let the distribution reversed. However, I coudn't find this option in "map mesh" dialog. Probably, this is because of COMSOL version because I can find the discription about "reverse direction" check box when I looked up COMSOL 3.5a version manual, whereas no findings for that of COMSOL 3.2 version. I'm up against the wall and maybe the only option seems upgrading my COMSOL. Thank you.

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 04.01.2010, 01:30 GMT-5
Hi

Well if you uppgrade, think of V4 coming these days, its a rather large step in changes as the interfaces has been switched, but after some explanations on the reasons why, ad having tested it during a few days, I must admit I was rather entousastic, furthermore many of the issues that made remodelling touh has bee hihgly improved, including history of meshiong process.

by the way, try to give a progression with a minus sign on one of the edges, perhaps that does it

Good luck
Ivar
Hi Well if you uppgrade, think of V4 coming these days, its a rather large step in changes as the interfaces has been switched, but after some explanations on the reasons why, ad having tested it during a few days, I must admit I was rather entousastic, furthermore many of the issues that made remodelling touh has bee hihgly improved, including history of meshiong process. by the way, try to give a progression with a minus sign on one of the edges, perhaps that does it Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 06.01.2010, 01:13 GMT-5
Thank you for your reply.

Based on your suggestion,

by the way, try to give a progression with a minus sign on one of the edges, perhaps that does it

I tried to put "-logspace(1,3,10)" in textbox in Edge Vertex Distribution in Map Mesh, but this gives an error...

By the way, I realized that I can obtain my goal by putting like "0, 0.1, 0.2, 0.4, 0.8" for one boundary and " 0, 0.4, 0.6, 0.7, 0.8" for the other arrow-reversed boudary.

Anyway, for more convenient, I'll check features of the latest version of COMSOL.

Thank you for your reply. Based on your suggestion, [QUOTE] by the way, try to give a progression with a minus sign on one of the edges, perhaps that does it [/QUOTE] I tried to put "-logspace(1,3,10)" in textbox in Edge Vertex Distribution in Map Mesh, but this gives an error... By the way, I realized that I can obtain my goal by putting like "0, 0.1, 0.2, 0.4, 0.8" for one boundary and " 0, 0.4, 0.6, 0.7, 0.8" for the other arrow-reversed boudary. Anyway, for more convenient, I'll check features of the latest version of COMSOL.

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 27.08.2010, 06:58 GMT-4
Hello;

I've been recently used Comsol Multhyphysics 3.4. I encounter more or less the same problem. I want to seperate my rectangular 2D axial symmettric geometry into meshes which are intenser at each individual boundaries. When I use mapped mesh parameters I specify element ratio, number of elements and distrubition (linear or exponential). But I can only get intenser meshes at 2 out of 4 boundaries.(see attached file) could you please help me to achieve this.

Thanks in advance

Best Regards
Hello; I've been recently used Comsol Multhyphysics 3.4. I encounter more or less the same problem. I want to seperate my rectangular 2D axial symmettric geometry into meshes which are intenser at each individual boundaries. When I use mapped mesh parameters I specify element ratio, number of elements and distrubition (linear or exponential). But I can only get intenser meshes at 2 out of 4 boundaries.(see attached file) could you please help me to achieve this. Thanks in advance Best Regards

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.