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.

Overlap Integral of solutions from 2 physics

Please login with a confirmed email address before reporting spam

Hi all,
I'm designing an electro-optic device and want to calculate the overlap integral between the optical (waveguide) and the electric (electrode) fields.

I'm designing the 2D cross section. For that I'm using two physics: Electromagnetic waves (to calculate the Optical Field distribution) and Electrostatic (to calculate Electric field distribution).

I'm trying to calculate the overlap integral, namely : surf_int(E_opt^2*E_el dxdy)/surf_int(E_opt^2 dxdy).

What I've done, so far, to calculate this has been defining two surface integration: One for the numerator and one for denominator.
Model Builder->Derived Values-> Surface Integration-> Manually selected the domains-> defined the expression: ewfd.Ex*conj(ewfd.Ex)*es.Ex (numerator) ; ewfd.Ex*conj(ewfd.Ex) (denominator).

And separately calculate the Overlap as numerator/denominator.

I'm now trying to use the Model Couplings Integration.

In the Model Builder-> Definitions, I've defined 2 operators : intop1 and intop2 selecting the domains I want to calculate the integrals.

I've then defined a variable 1a entering in the table:
Onum: intop1(ewfd.Ex*conj(ewfd.Ex)*es.Ex)
Oden: intop2(ewfd.Ex*conj(ewfd.Ex))


When I try to evaluate in Global Evaluation Onum/Oden, I'm getting this error:

Failed to evaluate variable.
-Variable Onum
-Global scope:
Failed to evaluate expression.
-Expression: real((Onum/Oden))
Failed to evaluate expression.
-Expression: real(Onum/Oden)

Any clue? Is it related to units? I guess that the intop1 and 2 integrates over volumes. I do I integrate over surface then?

Thank you for any help.
Best,
Domenico


0 Replies Last Post 2015年1月30日 GMT-5 08:06
COMSOL Moderator

Hello Domenico Tulli

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.