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.

Increasing local mesh density with second block

Please login with a confirmed email address before reporting spam

Hi,

Just a quick question regarding how legitimate a technique I've used is.

I'm modelling magnets and want to plot the force as a function of distance from the magnets. I've already got this working and have got my 1D force plot; however, it's not as smooth as I'd have liked. I know I can improve this by increasing the overall mesh density in my air sphere. I was wondering if it's legitimate for me to use a second box (a very narrow box, which runs the length of the distance over which I'm measuring), as this increases the local mesh density in the area I'm interested in. The second box I've used is filled with air, as this is what is in the larger sphere I'm performing the simulation in.

The force curve I got doing this looks exactly as I'd like (i.e. very smooth), but I just wanted to check this is an acceptable way of increasing mesh density.

Any advice on this would be greatly appreciated.

Thanks
Stephen

2 Replies Last Post Aug 11, 2012, 9:37 a.m. EDT
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 Aug 11, 2012, 3:28 a.m. EDT
Hi

the force calcuations are derived from field gradients, so if your local meshing denisty is made higher where it counts it will improve, but you need a reasonable mesh density outside this local region too, else the field is poorly resolved at the boundary of the region of higher mesh density.
My suggestion is to run once with twice as dense mesh (everywhere) and se how the result change, not only the "smoothness" but also the absolute value(s) field

--
Good luck
Ivar
Hi the force calcuations are derived from field gradients, so if your local meshing denisty is made higher where it counts it will improve, but you need a reasonable mesh density outside this local region too, else the field is poorly resolved at the boundary of the region of higher mesh density. My suggestion is to run once with twice as dense mesh (everywhere) and se how the result change, not only the "smoothness" but also the absolute value(s) field -- Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Aug 11, 2012, 9:37 a.m. EDT
Thank you for the response. I shall give this a go.

Stephen
Thank you for the response. I shall give this a go. Stephen

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.