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 of value over different internal geometries

Please login with a confirmed email address before reporting spam

Hello,

I've currently got a model where I'm looking at the fundamentdal mode profile of light through a waveguide. There's a parameter sweep of the waveguide width. I want to take the integral of the x component of the magetic field of one parameter solution multiplied by the conjugate of that for another solution. For this I am using this expression :

intop1(withsol('sol2',emw.Ex,setind(Wwg,1)) * conj(withsol('sol2',emw.Ex,setind(Wwg,2))))

in a global evaluation node and intop1 defined over all domains. However for this I need to define a dataset in the global evaluation node. Defining it as either one of the parameter solutions used in the integral calculation gives me slighty different results, so I am unsure of how exactly to compute this correctly.

Any help is appreciated.


0 Replies Last Post 14 set 2022, 01:41 GMT-4
COMSOL Moderator

Hello Daniel Bedilu

Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.

If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.

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.