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 for electromagnetic TE/TM fields within a rectangular cavity

Please login with a confirmed email address before reporting spam

Hi

If I want to plot electromagnetic TE/TM fields within a rectangular cavity, compute resonant frequencies, Q-factor, reflection coefficient…etc

What would be best practice when setting up the meshing parameters (e.g. the maximum element size, element growth rate, ..etc) for the best results ?

Thanks
Nayef

4 Replies Last Post 2012年7月28日 GMT-4 14:15
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 2012年7月28日 GMT-4 03:43
Hi

The finer the better (mostly ;)
In general "my way" is to say I need 3-5 or more elements of 2nd order per wavelength or gradient slope, to resolve the fields. For the wavelength, one should not forget the indexof refraction or er that makes the waves shorter than in ar/vacuum, hence denser mesh. One can use a formula for the largest mesh size based on the material data.

Another point to look closer to are all shap corners, can you define a continuous field gradient around these ?
if not consider to add some small fillets, this will increase the local mesh density and improve the results (and avoid singularities)

In general read the COMSOL PDF doc ! For me the tousand of pages is becoming the best multi-physics reference books you can find, with many tips and tricks, but it's dense, so read it several times and in smaller chunks ;)

--
Good luck
Ivar
Hi The finer the better (mostly ;) In general "my way" is to say I need 3-5 or more elements of 2nd order per wavelength or gradient slope, to resolve the fields. For the wavelength, one should not forget the indexof refraction or er that makes the waves shorter than in ar/vacuum, hence denser mesh. One can use a formula for the largest mesh size based on the material data. Another point to look closer to are all shap corners, can you define a continuous field gradient around these ? if not consider to add some small fillets, this will increase the local mesh density and improve the results (and avoid singularities) In general read the COMSOL PDF doc ! For me the tousand of pages is becoming the best multi-physics reference books you can find, with many tips and tricks, but it's dense, so read it several times and in smaller chunks ;) -- Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2012年7月28日 GMT-4 09:55
Thanks Ivar

Could you please explain more about the idea of 3-5 or more elements of 2nd order per wavelength ?

Could you please give an example ?

And Is there any difference if I did that for a specific one frequency? or sweep of frequencies ? for example, from 2 GHz to 3 GHz ?

Regards

Nayef
Thanks Ivar Could you please explain more about the idea of 3-5 or more elements of 2nd order per wavelength ? Could you please give an example ? And Is there any difference if I did that for a specific one frequency? or sweep of frequencies ? for example, from 2 GHz to 3 GHz ? Regards Nayef

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 2012年7月28日 GMT-4 13:58
Hi

you can read about all this in the doc too, for the mesh in RF: some 10 elements (or more) across a wavelength, but as COMSOL uses 2nd order discrtization polynomial it's enough with 5 mesh elements across a wavelength. But the wavelength varies in vacuum and in material, depending on the index of refraction or on e_r (whatever applies for your model) so do not forget to correct for this.

No real reason to change the mesh for your frequency change, so take the highest frequency, which corresponds to the shortest wavelength.

lambda * 2*pi * f = c_const / epsilon_r

and max mesh size should be < lambda / 5

--
Good luck
Ivar
Hi you can read about all this in the doc too, for the mesh in RF: some 10 elements (or more) across a wavelength, but as COMSOL uses 2nd order discrtization polynomial it's enough with 5 mesh elements across a wavelength. But the wavelength varies in vacuum and in material, depending on the index of refraction or on e_r (whatever applies for your model) so do not forget to correct for this. No real reason to change the mesh for your frequency change, so take the highest frequency, which corresponds to the shortest wavelength. lambda * 2*pi * f = c_const / epsilon_r and max mesh size should be < lambda / 5 -- Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2012年7月28日 GMT-4 14:15
Many thanks Ivar :-)
Many thanks Ivar :-)

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.