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.

Integration of two variables in two different models

Andres David Barbosa Niera

Please login with a confirmed email address before reporting spam

Hi

I'm running two 2D mode analysis calculations on two different electromagnetic models with the same geometry but different materials. I would like to calculate an integral of the product between one of the components of the electric field in the first model and one of the components of the electric field in the second model. However I haven't figure out how to do it using COMSOL given that the integrals it allows me to do are integrals with the variables of the same mode (meaning with the same effective refractive index) and not between other modes (even of the same structure). I was wondering if anyone has an Idea on how to do it or if there is any COMSOL version that does it and I'm not aware of.

Thank you very much for any help you can bring me.

Worthahlen

1 Reply Last Post 07.09.2012, 12:32 GMT-4
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 07.09.2012, 12:32 GMT-4
Hi

I havent done it for different model files (without dumping part of the results into csv files or via Livelink to Matlab, but the latter even, since v4 has arrived, I seldom use.

but if your 2 models are in the same file, you can make global variables or define projection operators and project one field onto another, and then take differences and integrate over some entitiy. Only requirement, from my understanding, some logics on the way you map one field results onto a new geoemtrical entity

There is also, in the lastest version the Join data set, something I need my self to study further, to really understand all its possbilities

--
Good luck
Ivar
Hi I havent done it for different model files (without dumping part of the results into csv files or via Livelink to Matlab, but the latter even, since v4 has arrived, I seldom use. but if your 2 models are in the same file, you can make global variables or define projection operators and project one field onto another, and then take differences and integrate over some entitiy. Only requirement, from my understanding, some logics on the way you map one field results onto a new geoemtrical entity There is also, in the lastest version the Join data set, something I need my self to study further, to really understand all its possbilities -- Good luck 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.