Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.

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.

Identity pair _PML configuration

Please login with a confirmed email address before reporting spam

Hi,
I would like to perform a 3D Transmission-Reflection simulation in comsol 4.0 in a similar way as described in the pdf file i have attached.I have a problem of scattering and i would like to configure two PML domains in order to absorb the backward and the forward wave as in the example attached but after I created identity pair and used assembly an error occurres 'failed to evaluate expression' while executing.I had no problem to do it in version 3.5a.
Can anyone help me in order to build the configuration of such 3D simulation in version 4.0?

Many thanks,
Giuseppe.


10 Replies Last Post 02.05.2012, 18:20 GMT-4
COMSOL Moderator

Hello Giuseppe Parisi

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.


Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 23.05.2011, 05:38 GMT-4
Hi,

I have the same problem, Have you succeeded in modelling it in Comsol V 4.1 ? could you share your experience if you made it?

Regards

Honghui
Hi, I have the same problem, Have you succeeded in modelling it in Comsol V 4.1 ? could you share your experience if you made it? Regards Honghui

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 23.05.2011, 07:50 GMT-4
Hi,
you can't implement the identity pair condition analog to version 3.5 for version >3.5.
The only way to overcome the problem of absorbing boundary condition is to implement the scattering formalism with a background field as imput.The attached file is an exemple (which was sent to me from comsol support) of implementation for nano grating periodic structure on a substrate.
I hope this can help you.
Regards,
Parisi.
Hi, you can't implement the identity pair condition analog to version 3.5 for version >3.5. The only way to overcome the problem of absorbing boundary condition is to implement the scattering formalism with a background field as imput.The attached file is an exemple (which was sent to me from comsol support) of implementation for nano grating periodic structure on a substrate. I hope this can help you. Regards, Parisi.


Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 23.05.2011, 08:34 GMT-4
Hi,

Thank you very much.

I looked into the the model you sent me, I found that it cannot sweep the frequency, how do you sweep the frequency? did you use script?

Regards
Honghui
Hi, Thank you very much. I looked into the the model you sent me, I found that it cannot sweep the frequency, how do you sweep the frequency? did you use script? Regards Honghui

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 23.05.2011, 09:21 GMT-4
Hi,
you can add a aprametric sweep like in the modified attached file or you can add a parametric under job configuration.
Consider that if you have not a substrate or a complicated initial field, you can operate with an analitical background field as imput field (for exemple a plane wave) in the 'Electric field components solved for ' under electromagnetic waves panel and use it for the scattered field.
regards
p.
Hi, you can add a aprametric sweep like in the modified attached file or you can add a parametric under job configuration. Consider that if you have not a substrate or a complicated initial field, you can operate with an analitical background field as imput field (for exemple a plane wave) in the 'Electric field components solved for ' under electromagnetic waves panel and use it for the scattered field. regards p.


Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 23.05.2011, 11:00 GMT-4
Hi

Thanks a lot

It is strange, I followed your note, added a parameter sweep sub-node to the study node, and added parameter list under the global definitions. but It did not work for me , the results is always the one for 5e14Hz. Could you please take a look my modified mph file in attachment?

Regards
Honghui
Hi Thanks a lot It is strange, I followed your note, added a parameter sweep sub-node to the study node, and added parameter list under the global definitions. but It did not work for me , the results is always the one for 5e14Hz. Could you please take a look my modified mph file in attachment? Regards Honghui


Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 23.05.2011, 11:41 GMT-4
hi,
You have not need to add a parametric to job configuration if you have just added a parametric sweep (you can implement only one of them not both).The model i sent you was just modified and complete, you don't have to add anything else.
regards,
g.
hi, You have not need to add a parametric to job configuration if you have just added a parametric sweep (you can implement only one of them not both).The model i sent you was just modified and complete, you don't have to add anything else. regards, g.

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 01.05.2012, 19:08 GMT-4
Hi, Giuseppe,

I also faced the same problem.

I am just wondering why does the mode need two EMWs (full field and scattering filed)?
Do it solve the absorb BC?

And how can we get the transmission and reflection?

Expecting to get your help!

Million thanks!


Hi, Giuseppe, I also faced the same problem. I am just wondering why does the mode need two EMWs (full field and scattering filed)? Do it solve the absorb BC? And how can we get the transmission and reflection? Expecting to get your help! Million thanks!

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 01.05.2012, 20:54 GMT-4

I am just wondering why does the mode need two EMWs (full field and scattering filed)?
Do it solve the absorb BC?
And how can we get the transmission and reflection?


"Full field" is used to calculate background field which is required for "scattered field" calculations.
Yes.
You compute the scattered field. Reflectivity is square of the field normalized by incident field. Check the guide on how S-parameters are calculated.
[QUOTE] I am just wondering why does the mode need two EMWs (full field and scattering filed)? Do it solve the absorb BC? And how can we get the transmission and reflection? [/QUOTE] "Full field" is used to calculate background field which is required for "scattered field" calculations. Yes. You compute the scattered field. Reflectivity is square of the field normalized by incident field. Check the guide on how S-parameters are calculated.

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 02.05.2012, 15:34 GMT-4
Hi Alexander
Thanks!

Based on the discussion, I rebuild the model (plasmonic grating) utilizing two EMWs i.e. full- and scattering-field,
However, I found a serious problem.

Actually the model of grating_on_substrate.mph also suffers the same problem.

As we know, there are two solutions (full-field and scattering-field)

The field distributions of the full field- and scattering-field are fine, when the refractive index of the substrate (i.e. n_sub=2) is different from that of the air.

But when I change the substrate as the air, then, the field distribution of the full-field is so disorderly. The field distribution of the scattering-field keeps well.

I really do not know the reason.

Regards!


Hi Alexander Thanks! Based on the discussion, I rebuild the model (plasmonic grating) utilizing two EMWs i.e. full- and scattering-field, However, I found a serious problem. Actually the model of grating_on_substrate.mph also suffers the same problem. As we know, there are two solutions (full-field and scattering-field) The field distributions of the full field- and scattering-field are fine, when the refractive index of the substrate (i.e. n_sub=2) is different from that of the air. But when I change the substrate as the air, then, the field distribution of the full-field is so disorderly. The field distribution of the scattering-field keeps well. I really do not know the reason. Regards!

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 02.05.2012, 18:20 GMT-4
Anyone give me some help, thanks
Anyone give me some help, thanks

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.