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.

Outputting results of 2D parameter sweep

Please login with a confirmed email address before reporting spam

Hi,

I have Comsol 4.3. I select 2D > Electromagnetic fields > Mode Analysis. I then draw a large rectangle and a small rectangle inside it. The large rectangle is air and the small rectangle is Si.

Now, it is easy to find the eigenmodes of the waveguide -- just click "Solve".

Now, I want to sweep two parameters, say, waveguide width and waveguide height. So I add two parameter sweeps.

It solves just fine, and by clicking on a particular width and a particular height in the solution, I can view the E field profile. The title of that plot also gives me the effective index.

Now, what I'd like to do is output a 2D array where the columns correspond to different waveguide widths and the rows correspond to different waveguide heights. Each cell in the array gives the effective index. I can do this manually by clicking on the "width" and "height" dropdown boxes in the solution and selecting the value, then writing it down manually, and repeat. But I'd like to do it automatically as I have a large sweep.

I can't figure out how to output this 2D array of solutions to a 2D parameter sweep. Any ideas?

Thanks

1 Reply Last Post 2012年9月11日 GMT-4 14:59
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 2012年9月11日 GMT-4 14:59
Hi

cannt you get the Derived values node to give you this ? check the doc, in double entry tables you can even swap lines and colums

--
Good luck
Ivar
Hi cannt you get the Derived values node to give you this ? check the doc, in double entry tables you can even swap lines and colums -- 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.