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.

How to create mesh like this in Comsol?

Please login with a confirmed email address before reporting spam

I am intending to model the indentation test using comsol. How to create mesh like this with comsol?

may need to visit this site of research gate if the picture is not properly shown.


6 Replies Last Post 2023年11月24日 GMT-5 08:50
Bjorn Bretz COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 1 year ago 2023年11月22日 GMT-5 03:16

It is possible to create such a quad mesh but it will require some manual work. Please contact support for assistance.

It is possible to create such a quad mesh but it will require some manual work. Please contact support for assistance.

Please login with a confirmed email address before reporting spam

Posted: 1 year ago 2023年11月22日 GMT-5 04:52
Updated: 1 year ago 2023年11月22日 GMT-5 04:53

It is possible to create such a quad mesh but it will require some manual work. Please contact support for assistance.

Thanks for the reply, @Bjorn.

>It is possible to create such a quad mesh but it will require some manual work. Please contact support for assistance. Thanks for the reply, @Bjorn.

Lars Gregersen COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 1 year ago 2023年11月22日 GMT-5 09:00

I don't think there is a way to create this mesh in Comsol without programming a bit.

The Programming Reference Manual has a section called "Setting or Modifying Mesh Data" that you need to study.

Using LiveLink for Matlab I've created part of the mesh to show one of the method that can be used to make the mesh. I'm not sure if the left side of the mesh is supposed to be created manually the way it looks or the mesh in intended to be created to form a rectangle and then deformed using solid mechanics so I've left that part as an exercise to the reader ;-) A derformed mesh can be exported to be used as a basis for futher modelling.

I've attached the Matlab script I used. As you can see it requires some work to create such a mesh, but it can be done.

-------------------
Lars Gregersen
Comsol Denmark
I don't think there is a way to create this mesh in Comsol without programming a bit. The Programming Reference Manual has a section called "Setting or Modifying Mesh Data" that you need to study. Using LiveLink for Matlab I've created part of the mesh to show one of the method that can be used to make the mesh. I'm not sure if the left side of the mesh is supposed to be created manually the way it looks or the mesh in intended to be created to form a rectangle and then deformed using solid mechanics so I've left that part as an exercise to the reader ;-) A derformed mesh can be exported to be used as a basis for futher modelling. I've attached the Matlab script I used. As you can see it requires some work to create such a mesh, but it can be done.


Henrik Sönnerlind COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 1 year ago 2023年11月22日 GMT-5 09:23

However, an important question is whether you actually need to actually replicate the mesh or not. For most practical purposes, it shoud suffice to replicate the mesh in the most dense region (which is a plain mapped mesh) and then use arbitrary transitions to coarser mesh further away.

-------------------
Henrik Sönnerlind
COMSOL
However, an important question is whether you actually need to actually replicate the mesh or not. For most practical purposes, it shoud suffice to replicate the mesh in the most dense region (which is a plain mapped mesh) and then use arbitrary transitions to coarser mesh further away.

Please login with a confirmed email address before reporting spam

Posted: 1 year ago 2023年11月24日 GMT-5 08:44

I don't think there is a way to create this mesh in Comsol without programming a bit.

The Programming Reference Manual has a section called "Setting or Modifying Mesh Data" that you need to study.

Using LiveLink for Matlab I've created part of the mesh to show one of the method that can be used to make the mesh. I'm not sure if the left side of the mesh is supposed to be created manually the way it looks or the mesh in intended to be created to form a rectangle and then deformed using solid mechanics so I've left that part as an exercise to the reader ;-) A derformed mesh can be exported to be used as a basis for futher modelling.

I've attached the Matlab script I used. As you can see it requires some work to create such a mesh, but it can be done.

Thanks @Lars, your script is really impressive!

>I don't think there is a way to create this mesh in Comsol without programming a bit. > >The Programming Reference Manual has a section called "Setting or Modifying Mesh Data" that you need to study. > >Using LiveLink for Matlab I've created part of the mesh to show one of the method that can be used to make the mesh. I'm not sure if the left side of the mesh is supposed to be created manually the way it looks or the mesh in intended to be created to form a rectangle and then deformed using solid mechanics so I've left that part as an exercise to the reader ;-) >A derformed mesh can be exported to be used as a basis for futher modelling. > >I've attached the Matlab script I used. As you can see it requires some work to create such a mesh, but it can be done. Thanks @Lars, your script is really impressive!

Please login with a confirmed email address before reporting spam

Posted: 1 year ago 2023年11月24日 GMT-5 08:50

However, an important question is whether you actually need to actually replicate the mesh or not. For most practical purposes, it shoud suffice to replicate the mesh in the most dense region (which is a plain mapped mesh) and then use arbitrary transitions to coarser mesh further away.

Thanks @Henrik, and I agree. I use mapped mesh in both the most dense region and the coarse one, between which triangluar mesh is located for transition. It seems to work well.

>However, an important question is whether you actually need to actually replicate the mesh or not. For most practical purposes, it shoud suffice to replicate the mesh in the most dense region (which is a plain mapped mesh) and then use arbitrary transitions to coarser mesh further away. Thanks @Henrik, and I agree. I use mapped mesh in both the most dense region and the coarse one, between which triangluar mesh is located for transition. It seems to work well.

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.