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.

What's Enorm

Please login with a confirmed email address before reporting spam

Dear Pro.

Here I want to ask some very basic questions:

1. What's Enorm in comsol?

2. What's relationship between Enorm and Ex(or Ey Ez)

7 Replies Last Post Sep 7, 2012, 12:23 p.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 Jun 7, 2012, 5:58 a.m. EDT
Hi

check your equation views, there you find the definitions (mostly)

I assume its the norm of E hence the scalar sqrt(Ex^2+Ey^2+Ez^2) where (Ex,Ey,Ez) is your field vector

--
Good luck
Ivar
Hi check your equation views, there you find the definitions (mostly) I assume its the norm of E hence the scalar sqrt(Ex^2+Ey^2+Ez^2) where (Ex,Ey,Ez) is your field vector -- Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Jun 7, 2012, 6:25 a.m. EDT
Thank you for your replay.

Best regards
Thank you for your replay. Best regards

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Jun 7, 2012, 10:33 a.m. EDT
I asked support this question a couple months ago and this is what they said:

"The variable normE is defined by the expression
sqrt(realdot(Ex,Ex)+realdot(Ey,Ey)+realdot(Ez,Ez)), where the operator
realdot(a,b) treats complex numbers a and b as if they were real-valued
vectors of length 2 and returns their dot product (like a shorthand form of
real(a*conj(b)), except in respect to its partial derivatives). More
information on the realdot() operator can be found in the COMSOL
Multiphysics User's Guide on p. 119"

It is a bit more involved that the square root of the sum of squares.
I asked support this question a couple months ago and this is what they said: "The variable normE is defined by the expression sqrt(realdot(Ex,Ex)+realdot(Ey,Ey)+realdot(Ez,Ez)), where the operator realdot(a,b) treats complex numbers a and b as if they were real-valued vectors of length 2 and returns their dot product (like a shorthand form of real(a*conj(b)), except in respect to its partial derivatives). More information on the realdot() operator can be found in the COMSOL Multiphysics User's Guide on p. 119" It is a bit more involved that the square root of the sum of squares.

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 Jun 8, 2012, 12:53 a.m. EDT
Hi

you are perfectly correct,
because of the possible COMPLEX representations of the E field phasor you need then to use the realdot() operator, this applies several places, not only for E. It all depends in which study you are , thanks for the reminder

--
Good luck
Ivar
Hi you are perfectly correct, because of the possible COMPLEX representations of the E field phasor you need then to use the realdot() operator, this applies several places, not only for E. It all depends in which study you are , thanks for the reminder -- Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Sep 5, 2012, 9:51 a.m. EDT
Hi Ivar,

Can you tell me how to get the complex value E from the comsol. it really annoyed me. I used comsol-matlab (mentioned in the following), but the value what I get is real value (not complex data), it should be the complex data (include phase), right?

Looking ofrward to your reply! thanks very much!!


e.g., if I want to get the Ey value.
yy=postplot(fem,'tridata',{'Ey','cont','internal','unit','V/m'},'solnum',index,'outtype','postdataonly');
the value waht I get is only real data (no imaginary part).
Hi Ivar, Can you tell me how to get the complex value E from the comsol. it really annoyed me. I used comsol-matlab (mentioned in the following), but the value what I get is real value (not complex data), it should be the complex data (include phase), right? Looking ofrward to your reply! thanks very much!! e.g., if I want to get the Ey value. yy=postplot(fem,'tridata',{'Ey','cont','internal','unit','V/m'},'solnum',index,'outtype','postdataonly'); the value waht I get is only real data (no imaginary part).

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 Sep 5, 2012, 4:11 p.m. EDT
Hi

COMSOL has the complex values stored, but you can only extract a scalar hence when youneed t fetch it in two steps as a real(E)+i*imag(E), and dump it via 2 real values and recombine with the "i" in matlab or EXcel or whatever you use

--
Good luck
Ivar
Hi COMSOL has the complex values stored, but you can only extract a scalar hence when youneed t fetch it in two steps as a real(E)+i*imag(E), and dump it via 2 real values and recombine with the "i" in matlab or EXcel or whatever you use -- Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Sep 7, 2012, 12:23 p.m. EDT
you can export complex fields using "Export" node
you can export complex fields using "Export" node

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.