Discussion:
[COMSOL_Users] How to get a transmission spectra using scripting in matlab?
girl_fan4eminem
2013-06-24 13:32:50 UTC
Permalink
Hi,

I'm a beginner of Comsol. I have been trying to get a Transmission vs wavelength plot in matlab. But I am not entirely sure how to get this plot.
I have a rectangular waveguide and I only know how to show the Poynting vector, Magnetic field and electric field. Can someone help on how I can get this transmission spectra. Your help will be highly appreciated. Thank you
Katte Nkorni
2013-06-24 20:35:03 UTC
Permalink
Which version of Comsol are you using? I should be able to help you.

Go to the final layer and plot the S11 parameter.

Previously you should have made lambda a parameter

Then in the frequency input. type c_const/lambda

You also have to define the refractive index as function of wavelength in the global definition function region.


Save your program in a dropbox and email the link to me. I should be able to fix it for you.

Kind regards
Katte


--------------------------------------------
On Mon, 6/24/13, girl_fan4eminem <***@yahoo.com> wrote:

Subject: [COMSOL_Users] How to get a transmission spectra using scripting in matlab?
To: ***@yahoogroups.com
Date: Monday, June 24, 2013, 4:32 PM
















 









Hi,



I'm a beginner of Comsol. I have been trying to get a
Transmission vs wavelength plot in matlab. But I am not
entirely sure how to get this plot.

I have a rectangular waveguide and I only know how to show
the Poynting vector, Magnetic field and electric field. Can
someone help on how I can get this transmission spectra.
Your help will be highly appreciated. Thank you
girl_fan4eminem
2013-06-24 22:28:42 UTC
Permalink
Hi,
https://www.dropbox.com/sh/lof3o1wfjpdbu2b/WwjiYBku2Z

Here is the link. I am trying to get figure 4 of the paper. I have used scattering boundary conditions. I can get the magnetic field distribution of the wave guide but not the transmission spectra. Thank you so much for your help
Post by Katte Nkorni
Which version of Comsol are you using? I should be able to help you.
Go to the final layer and plot the S11 parameter.
Previously you should have made lambda a parameter
Then in the frequency input. type c_const/lambda
You also have to define the refractive index as function of wavelength in the global definition function region.
Save your program in a dropbox and email the link to me. I should be able to fix it for you.
Kind regards
Katte
--------------------------------------------
Subject: [COMSOL_Users] How to get a transmission spectra using scripting in matlab?
Date: Monday, June 24, 2013, 4:32 PM
 
Hi,
I'm a beginner of Comsol. I have been trying to get a
Transmission vs wavelength plot in matlab. But I am not
entirely sure how to get this plot.
I have a rectangular waveguide and I only know how to show
the Poynting vector, Magnetic field and electric field. Can
someone help on how I can get this transmission spectra.
Your help will be highly appreciated. Thank you
Katte Nkorni
2013-06-25 23:40:21 UTC
Permalink
adapt your geometry to this example.

https://www.dropbox.com/s/e7p81qrbjpdegri/test2d.mph





--------------------------------------------
On Tue, 6/25/13, girl_fan4eminem <***@yahoo.com> wrote:

Subject: [COMSOL_Users] Re: How to get a transmission spectra using scripting in matlab?
To: ***@yahoogroups.com
Date: Tuesday, June 25, 2013, 1:28 AM
















 









Hi,

https://www.dropbox.com/sh/lof3o1wfjpdbu2b/WwjiYBku2Z



Here is the link. I am trying to get figure 4 of the paper.
I have used scattering boundary conditions. I can get the
magnetic field distribution of the wave guide but not the
transmission spectra. Thank you so much for your help
Post by Katte Nkorni
Which version of Comsol are you using? I should be
able to help you.
Post by Katte Nkorni
Go to the final layer and plot the S11 parameter.
Previously you should have made lambda a parameter
Then in the frequency input. type c_const/lambda
You also have to define the refractive index as
function of wavelength in the global definition function
region.
Post by Katte Nkorni
Save your program in a dropbox and email the link to
me. I should be able to fix it for you.
Post by Katte Nkorni
Kind regards
Katte
--------------------------------------------
On Mon, 6/24/13, girl_fan4eminem
Subject: [COMSOL_Users] How to get a transmission
spectra using scripting in matlab?
Post by Katte Nkorni
Date: Monday, June 24, 2013, 4:32 PM
 
Hi,
I'm a beginner of Comsol. I have been trying to
get a
Post by Katte Nkorni
Transmission vs wavelength plot in matlab. But I am
not
Post by Katte Nkorni
entirely sure how to get this plot.
I have a rectangular waveguide and I only know how to
show
Post by Katte Nkorni
the Poynting vector, Magnetic field and electric
field. Can
Post by Katte Nkorni
someone help on how I can get this transmission
spectra.
Post by Katte Nkorni
Your help will be highly appreciated. Thank you
Katte Nkorni
2013-06-25 15:44:50 UTC
Permalink
Please save your file as an mph file then send it to me again.

Kind regards,

Katte
--------------------------------------------
On Tue, 6/25/13, girl_fan4eminem <***@yahoo.com> wrote:

Subject: [COMSOL_Users] Re: How to get a transmission spectra using scripting in matlab?
To: ***@yahoogroups.com
Date: Tuesday, June 25, 2013, 1:28 AM
















 









Hi,

https://www.dropbox.com/sh/lof3o1wfjpdbu2b/WwjiYBku2Z



Here is the link. I am trying to get figure 4 of the paper.
I have used scattering boundary conditions. I can get the
magnetic field distribution of the wave guide but not the
transmission spectra. Thank you so much for your help
Post by Katte Nkorni
Which version of Comsol are you using? I should be
able to help you.
Post by Katte Nkorni
Go to the final layer and plot the S11 parameter.
Previously you should have made lambda a parameter
Then in the frequency input. type c_const/lambda
You also have to define the refractive index as
function of wavelength in the global definition function
region.
Post by Katte Nkorni
Save your program in a dropbox and email the link to
me. I should be able to fix it for you.
Post by Katte Nkorni
Kind regards
Katte
--------------------------------------------
On Mon, 6/24/13, girl_fan4eminem
Subject: [COMSOL_Users] How to get a transmission
spectra using scripting in matlab?
Post by Katte Nkorni
Date: Monday, June 24, 2013, 4:32 PM
 
Hi,
I'm a beginner of Comsol. I have been trying to
get a
Post by Katte Nkorni
Transmission vs wavelength plot in matlab. But I am
not
Post by Katte Nkorni
entirely sure how to get this plot.
I have a rectangular waveguide and I only know how to
show
Post by Katte Nkorni
the Poynting vector, Magnetic field and electric
field. Can
Post by Katte Nkorni
someone help on how I can get this transmission
spectra.
Post by Katte Nkorni
Your help will be highly appreciated. Thank you
Loading...