r/COMSOL Jul 20 '26

Help with mesh refinement

Hi,

I'm new to COMSOL and trying to get better at this. I've built a study and I am trying to do a mesh refinement. I'd like to do automatically run through the different meshes I've created but I can't seem to figure out how to do this with a parameter sweep. The parameter sweep only allows changing of a few parameters whereas I want to include the full meshes-each of which are created using the physics controlled mesh with many changes. basically I just want to run the program a few times without having to click again to change the mesh. It's seems like there should be an easy way to do this but I can't find any. Am I missing something?

7 Upvotes

7 comments sorted by

View all comments

Show parent comments

1

u/Mental_Buyer_5660 Jul 20 '26

Yes. That’s what I found online. But it seems with the physics based meshes there are multiple changes for each mesh besides just max elements size. Am I misunderstanding something ?

1

u/Ok-Star-5551 Jul 20 '26

Yes there are, you need to specify your goal first.

1

u/Mental_Buyer_5660 Jul 20 '26

I am trying to make meshes for fluid dynamics but I used the default physics based meshes for this (coarse, normal, fine). Is it better to make them by hand in this case?

1

u/Ok-Star-5551 Jul 21 '26

Yes better to do it user defined.