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.

Finding a mapping of Current Density (variable J) using the Electrostatics (es) Interface

Please login with a confirmed email address before reporting spam

Hi everyone,

I'm making a model using the Electrostatics Interface from within the limited AC/DC Module included with the base COMSOL Multiphysics package. Initially, I tried making my model using the Electric Currents (ec) Interface, but I was getting the 'wrong' answer (I will probably make a separate post for that problem, it would be interesting to see what you guys think about it). When I use the Electrostatics Interface, the answer I get is much better. The Electric Currents Interface includes the Current Density (J) variable from Ohm's Law, but the Electrostatics Interface does not.

Finding the Current Density (J) is relatively simple since the Electrostatics (es) Interface gives me the electric field (E). From Ohm's Law, I should easily be able to calculate J using: J = (sigma)(E). Where (sigma) is the electrical conductivity of the material (a vector/tensor quantity) and (E) is an electric field tensor.

How do I enter this into COMSOL? Is there a way to define this as a function somewhere? A variable? Or should I add this as another "physics" as some kind of PDE/ODE, even though it is only a matrix operation. Also, It may be hard to simply multiply an expression the sigma by E as sigma is a tensor/vector quantity and is unique to the material being modeled. The model is 2D and has two different materials in it, so the expression must take into account the E-field at that specific point and also the electrical conductivity associated with that point as well.

In case this post is too long for you to read or you don't understand the model after reading, I have attached it. It includes two different materials with assigned material electrical conductivities.

Thanks in advance for any help,

John

UPDATE: After some further investigation, I have found out that the Electrostatics Interface has an equation for x-direction current density as: es.Jx = es.Jdx. Where Jdx is the displacement current density, which happens to be zero for this modlue/model/interface. Investigating the Electric Currents Interface, the equation for equation for x-direction current density is: ec.Jx = ec.Jix + ec.Jdx. Where again, Jdx is displacement current density (again zero) and Jix is (ec.sigmaxx*ec.Ex+ec.sigmaxy*ec.Ey+ec.sigmaxz*ec.Ez) which is basically the Ohm's Law thing I was talking above where certain tensor quantities of of the electrical conductivity (sigma) is multiplied by the Electric Field (Ex, Ey, Ez). Why is there no induced current density in the Electostatics Interface? And when I try to add in the long expression for Jix in into the ex.Jx on the electrostatics I get an error saying that it doesn't know what es.sigmaxx, even though I have entered electrical conductivities for all materials I am studying.


1 Reply Last Post 14.03.2014, 13:30 GMT-4
COMSOL Moderator

Hello John Schmidt

Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.

If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.


Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 14.03.2014, 13:30 GMT-4
Hi John
I have the same problem.
Have you got it figured?
thanks
Hi John I have the same problem. Have you got it figured? thanks

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.