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.

Plotting Current

Please login with a confirmed email address before reporting spam


I have a system consisting of 2 electrodes in a box. I selected the medium in the box (on top of the electrodes) as Water. Now I want to plot the electric filed and the current between and above the electrodes.
The electric field can be plot by Cross-section plot, but there is no option about plotting the current.
Is there any special methods for plotting current in any system in Comsol?
I'm working with 3.5a Version

6 Replies Last Post 2017年5月18日 GMT-4 14:50

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2011年7月27日 GMT-4 02:43

I have a system consisting of 2 electrodes in a box. I selected the medium in the box (on top of the electrodes) as Water. Now I want to plot the electric filed and the current between and above the electrodes.
The electric field can be plot by Cross-section plot, but there is no option about plotting the current.
Is there any special methods for plotting current in any system in Comsol?
I'm working with 3.5a Version


Hi there,

To plot current, you got to set up a subdomain integration variable which integrate the current density over all simulated domains.

To do so, you may go to Options\Integration Coupling Variables\Subdomain Variables. Remember to find out the built-in expression for current density.

All the best,

David
[QUOTE] I have a system consisting of 2 electrodes in a box. I selected the medium in the box (on top of the electrodes) as Water. Now I want to plot the electric filed and the current between and above the electrodes. The electric field can be plot by Cross-section plot, but there is no option about plotting the current. Is there any special methods for plotting current in any system in Comsol? I'm working with 3.5a Version [/QUOTE] Hi there, To plot current, you got to set up a subdomain integration variable which integrate the current density over all simulated domains. To do so, you may go to Options\Integration Coupling Variables\Subdomain Variables. Remember to find out the built-in expression for current density. All the best, David

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2011年7月27日 GMT-4 12:34
Dear David

Thanks a lot for your reply.
I can not understand this part of your answer:
"Remember to find out the built-in expression for current density."

should I define some special expression for Current density by myself? I mean by special formula or number?

Dear David Thanks a lot for your reply. I can not understand this part of your answer: "Remember to find out the built-in expression for current density." should I define some special expression for Current density by myself? I mean by special formula or number?

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2011年7月27日 GMT-4 12:42
In order to describe the problem more accurately , I can say I am re-simulating one of the Comsol examples "Capacitive 3D comb drive" which is available on line.
Now, in this system, I want to plot the current
In order to describe the problem more accurately , I can say I am re-simulating one of the Comsol examples "Capacitive 3D comb drive" which is available on line. Now, in this system, I want to plot the current

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2011年7月27日 GMT-4 22:47
Hi there,

The expression for current density is already generated as an build-in parameter which you can refer to the user's guide to find out the exact form. It could be like normJ_emdc. Try to read user's guide or Google it.

All the best,

David
Hi there, The expression for current density is already generated as an build-in parameter which you can refer to the user's guide to find out the exact form. It could be like normJ_emdc. Try to read user's guide or Google it. All the best, David

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2011年7月28日 GMT-4 11:01
Dear David. Thanks a lot for your great help
I also find another way to solve this problem but I am not sure if it's correct or not. I would appreciate if you could comment on this.
Before this, I simulated the system I explained in MEMS MODULE--->ELECTROSTATICS
then yesterday, I change this and simulate the system in ELECTROMAGNETIC--->CONDUCTIVE MEDIA DC
now in this mode, I can plot the current density directly in the program.
I have saw systems similar to mine which were simulated in both of these modes so I am not sure which one is correct.

Moreover, when I do the integration it will only give me a number as a final result. I can not draw a plot with this integration technique, Is that right? or may be I am missing something.

I appreciate your kind help and Reply David
Dear David. Thanks a lot for your great help I also find another way to solve this problem but I am not sure if it's correct or not. I would appreciate if you could comment on this. Before this, I simulated the system I explained in MEMS MODULE--->ELECTROSTATICS then yesterday, I change this and simulate the system in ELECTROMAGNETIC--->CONDUCTIVE MEDIA DC now in this mode, I can plot the current density directly in the program. I have saw systems similar to mine which were simulated in both of these modes so I am not sure which one is correct. Moreover, when I do the integration it will only give me a number as a final result. I can not draw a plot with this integration technique, Is that right? or may be I am missing something. I appreciate your kind help and Reply David

Please login with a confirmed email address before reporting spam

Posted: 8 years ago 2017年5月18日 GMT-4 14:50
Updated: 8 years ago 2017年5月18日 GMT-4 14:50
Hi david
I am using 5.2a. Where exactly is the option for Options\Integration Coupling Variables\Subdomain Variables located in comsol.
Hi david I am using 5.2a. Where exactly is the option for Options\Integration Coupling Variables\Subdomain Variables located in comsol.

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.