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.
gradient of electric field
Posted Apr 16, 2010, 10:46 a.m. EDT 12 Replies
Please login with a confirmed email address before reporting spam
I try to obtain the gradient of electric field, but I fail to enter the right formula. Can sombody help me with the formula for the gradient of electric field?
Thanks!
Please login with a confirmed email address before reporting spam
Well for me, if E is the electric field, in Comsol notation for EC/ES physics we have:
Ex_... = -dV/dx , Ey_... = -dV/dy , Ez_... = -dV/dz,
So if you want the elelctric field gradient we need one more deivative, and Exx .. is not in the list
so I do not see any other way than
Exx_... = d(Ex_...,x) , Exy_... = d(Ex_...,y) ...
(replace _... by your application id)
by using the special operator d( variable_name , space_variable_name )
see Guide.pdf p163 and thereon (V3.5a)
and from thereon it should be straight forward, or have I missed an important point ?
Have fun Comsoling
Ivar
Please login with a confirmed email address before reporting spam
Thanks!!
Please login with a confirmed email address before reporting spam
Please login with a confirmed email address before reporting spam
Please login with a confirmed email address before reporting spam
Sorry for the confusion, you are perfectly right, (I was at home and had no direct access to Comsol to check, and I'm the one claiming one should always verify what one is doing ;)
Hope I have corrected it now
Ivar
Please login with a confirmed email address before reporting spam
In Comsol language:
If E on x is Ex_...=-Vx then the derivatives of Ex is Exx_... = d(Ex_...,x) . I don't understend how to write correct this derivatives in Comsol language, because I don’t have succes to obtain results.
Please login with a confirmed email address before reporting spam
Thanks!
Please login with a confirmed email address before reporting spam
Simply do a surface plot your X field, something like
Ex_...
then adapt by typing your formula to
d(Ex_...,X)
check the upper/lower cas of x, it depends on you application mode and and you variable names
its d(,) and not diff(,) (as in Maple), check you guide.pdf on the special operators, thre are several that one should learn to use in there
Good luck
Ivar
Please login with a confirmed email address before reporting spam
Adding to what Ivar said, check out what names your electric field variables are pre-assigned in the specific application mode you are working. I usually look it out in the post-processing window for selecting which field value to plot. For e.g., if you are using 2D boundary mode analysis module for TM waves, then there is a pre-defined tangential electric field variable called tEy_rfwb. If you want to take its derivative along y-direction, just write diff(tEy_rfwb,y)
The reason why you might be getting error is that there is no such variable as normE. I mentioned it only as a case example and not because it actually exists in any of the application modes.
Hope this helps.
Please login with a confirmed email address before reporting spam
normE_emdc=sqrt(abs(Ex_emdc)^2+abs(Ey_emdc)^2), where Ex_emdc=-Vx an Ey_emdc=-Vy.
If the derivatives of normE_emdc on x is dEx=diff(normE_emdc,x) , and the derivatives of normE_emdc on y is dEy=diff(normE_emdc,y) then gradient of electric field is gradE=sqrt(dEx^2+dEy^2).
My reasoning is correct?
Thanks!!!
Please login with a confirmed email address before reporting spam
If this is the quantity that interests you in the specific circumstance you are working in then that is fine. Otherwise, I don't think it is a standard practice to call this formulation of gradE as the gradient of electric field.
Please remember that gradient operator works on scalar fields to produce a vector field which provides the measure of how the 'scalar' field varies in different spatial directions. Since electric field is a vector field, what generally seems more meaningful to me is to specify the gradient of various components of electric field.
Please login with a confirmed email address before reporting spam
For Electric field distribution of my design (in r, phi,z) coordinates, i used the following equation:
sqrt(es2.Er*es2.Er+es2.Ephi*es2.Ephi+es2.Ez*es2.Ez)
How do i plot the 'Gradient of Eelctric field square' if that is what it should be called i.e. ∇E^2.
The quantity should have units of V^2/m^3.
Let me know.
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.
Suggested Content
- FORUM Find the normal gradient of field variable at domain edges
- FORUM Interpreting electric field distribution in metallic chamber
- BLOG Three Semiconductor Device Models Using the Density-Gradient Theory
-
KNOWLEDGE BASE
How can I see the equations COMSOL is defining?
How do I implement a user-defined Multiphysics coupling? - BLOG Using Global Equations to Introduce Fully Coupled Goal Seeking