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.

Complex result after integration of real variable?

Please login with a confirmed email address before reporting spam

Hello everyone,

I have an electrical problem similar to a parallel plate capacitor. After solving for V, if I carry out a line integral from one electrode to the other I get the potential difference between the electrodes, as expected.

However, if I integrate V*rect1(z) instead of just V (where rect1(z) is a rectangular function that selects only a certain range of z for the integration), I get a complex number as a result. As far as I can see, the real part of the result is what I expect, but the inclusion of an imaginary component in the result bothers me.

After some tests, I see that I also get complex results if I carry out a volume integral of the voltage (not that I need that, just wanted to see what happens).

Why am I getting complex results if I am integrating a real variable?

Thank you for your help.

2 Replies Last Post Jan 8, 2016, 4:42 a.m. EST
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: 9 years ago Dec 23, 2015, 11:11 a.m. EST
Hi

you do not say much about your model. A complex potential in ACDC is not uncommon, COMSOL uses the "phasor" representation, and you could well have some phase lag in the results.

Normally COMSOL only plots real values, so with complex results you need to separate or use the abs() operator

--
Good luck
Ivar
Hi you do not say much about your model. A complex potential in ACDC is not uncommon, COMSOL uses the "phasor" representation, and you could well have some phase lag in the results. Normally COMSOL only plots real values, so with complex results you need to separate or use the abs() operator -- Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 9 years ago Jan 8, 2016, 4:42 a.m. EST
Thank you for your reply.

Yes, I am using the ACDC module. I am not sure what the phase in the voltage and the field is supposed to mean though. In the quasi-static approximation there should not be any phase difference between two values of the same time-varying variable evaluated at different points since the system is assumed to be at equilibrium at all times. Perhaps the phase in the voltage is related to the lag between voltage and current due to the complex impedance? But then I don't see why the electric field should also show phase differences when evaluated at different points.

Perhaps somebody could shed some light into this?

Thank you.
Thank you for your reply. Yes, I am using the ACDC module. I am not sure what the phase in the voltage and the field is supposed to mean though. In the quasi-static approximation there should not be any phase difference between two values of the same time-varying variable evaluated at different points since the system is assumed to be at equilibrium at all times. Perhaps the phase in the voltage is related to the lag between voltage and current due to the complex impedance? But then I don't see why the electric field should also show phase differences when evaluated at different points. Perhaps somebody could shed some light into this? Thank you.

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.