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
7 giu 2012, 05:58 GMT-4
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
7 giu 2012, 06:25 GMT-4
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
7 giu 2012, 10:33 GMT-4
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
8 giu 2012, 00:53 GMT-4
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
5 set 2012, 09:51 GMT-4
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
5 set 2012, 16:11 GMT-4
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
7 set 2012, 12:23 GMT-4
you can export complex fields using "Export" node
you can export complex fields using "Export" node