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.

Trying to plot the result of a parameter sweep

Please login with a confirmed email address before reporting spam

I am using COMSOL 4.0a > 2D > emw > mode analysis.

I am trying to do a line plot of the refractive index of an optical waveguide, as I sweep a geometrical parameter.

I can set up the waveguide and solve for the correct mode. Then, I sweep the relevant geometrical parameter and it works just fine. I can look at each step of the swept parameter and the mode looks great. At the top of each colorful 2D plot it says "Effective index = [some number]". It is this number that I want to plot, versus the value of the swept geometrical parameter

How do I do this? i.e. how do I plot the geometrical parameter on the x axis and the "Effective index" on the y axis, without manually going in and writing down each value?

This should be the simple part! -- but I can't figure it out.

Thanks

1 Reply Last Post Apr 12, 2011, 1:42 a.m. EDT
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 Apr 12, 2011, 1:42 a.m. EDT
Hi

use the Results Defined value to generate a "table" from your variable your are plotting on the graph

--
Good luck
Ivar
Hi use the Results Defined value to generate a "table" from your variable your are plotting on the graph -- 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.