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.

How to save data from table with real and imaginary part separately

Please login with a confirmed email address before reporting spam

I have made one mode analysis simulation in comsol 5.2. In the acomolated probe table settings I put the storage to 'in file'. After the simulation finishes the file contains wavelength, effective mode index and electricfield. But in effectivemodeindex the data stores as "1.445656824986555+1.6546494644E-12i" form. I want only the realpart of the effective modeindex collumn. Please help me with that as in that form the data is useless.


1 Reply Last Post 20.07.2018, 02:12 GMT-4
Gunnar Andersson COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 6 years ago 20.07.2018, 02:12 GMT-4

I suggest that you change the expression in the probe from e.g. "expr" to "real(expr)".

I suggest that you change the expression in the probe from e.g. "expr" to "real(expr)".

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.