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.

Integral over a disk in different positions

Please login with a confirmed email address before reporting spam

Hi!

I have computed a magnetic field in a region of space and have defined a disk inside that region.
I would like to compute the energy in the disk, which involves integrating the magnetic field, for different positions and orientations of the disk in the region. For this, I don't want to recalculate the magnetic field before each integral, as it does not change. I would like to compute the magnetic field just once and then create a parametric sweep that changes the position and orientation of the disk and calculates the integrals. Is there a way to do so?

Thanks in advance for your answers.
Alberto.

2 Replies Last Post 4 apr 2017, 11:48 GMT-4
Jeff Hiller COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 7 years ago 14 mar 2017, 09:13 GMT-4
Hello Alberto,
You can do what you want by using the general approach presented in this blog (You'll use it to evaluate an integral rather than a maximum):
www.comsol.com/blogs/maximum-evaluations-on-parallel-sections/
You'll want to use a boolean expression in the integrand to restrict the integral to a finite disc instead of a full plane.
Best,
Jeff
PS: See also: www.comsol.com/community/forums/general/thread/94851
Hello Alberto, You can do what you want by using the general approach presented in this blog (You'll use it to evaluate an integral rather than a maximum): https://www.comsol.com/blogs/maximum-evaluations-on-parallel-sections/ You'll want to use a boolean expression in the integrand to restrict the integral to a finite disc instead of a full plane. Best, Jeff PS: See also: https://www.comsol.com/community/forums/general/thread/94851

Walter Frei COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 7 years ago 4 apr 2017, 11:48 GMT-4
Hello Alberto,
You may find this blog and example model helpful as well:
www.comsol.com/blogs/how-to-postprocess-fields-over-arbitrary-geometries/
Best Regards,
Hello Alberto, You may find this blog and example model helpful as well: https://www.comsol.com/blogs/how-to-postprocess-fields-over-arbitrary-geometries/ 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.