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.

Plot magnitude and phase of complex derived values

Please login with a confirmed email address before reporting spam

I have done a frequency response analysis and made a table with frequencies in the first column and integrated strain energies of the second. Each strain energy is complex, which I assume means its magnitude is its maximum value over one cycle, and its phase is the delay of the max relative to the drive. (Tell me if that's wrong)

How do I make a 1D plot of the magnitude (or phase) of this complex data, vs frequency?

2 Replies Last Post 02.11.2011, 17:07 GMT-4
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 02.11.2011, 02:23 GMT-4
Hi

indeed the phase is the delay w.r.t. the original excitation frequency, normally you have the norm that can be used. In 4.2a you can also split complex values into two real parts (sin-cos, I presume havent had time to study this in detail yet see the "Solver - - Compile Equations" node).

If you resuse complex values for the solving process, take care when you use absolute values of complex items, the realdot() operator is often more adequate, as it allows COMSOL to extract a useful Jacobian, there too check the doc

--
Good luck
Ivar
Hi indeed the phase is the delay w.r.t. the original excitation frequency, normally you have the norm that can be used. In 4.2a you can also split complex values into two real parts (sin-cos, I presume havent had time to study this in detail yet see the "Solver - - Compile Equations" node). If you resuse complex values for the solving process, take care when you use absolute values of complex items, the realdot() operator is often more adequate, as it allows COMSOL to extract a useful Jacobian, there too check the doc -- Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 02.11.2011, 17:07 GMT-4

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.