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.

Help 4 Setting amount of 'Fixed Current' in 2D simulation

Please login with a confirmed email address before reporting spam


I am a new COMSOL user, and just wondering when I have a current source or input port in the system how to set the amount of current for the simulation?

or when you have a port with 'Fixed Current Density', the unit (A/m^2) doesn't make sense in 2D simulation.

could anybody help me for setting the exact amount of current sources?

2. As output port I had to use ground to get the proper results. Is it the right way or there is another way to define an output port, while the reference of potential (ground) is somewhere else in the geometry with '0' current sink?

2 Replies Last Post 19 juil. 2009, 22:14 UTC−4
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 13 juil. 2009, 02:03 UTC−4
Hello

Well your 2D object has a certain "thickness" d see the Subdomain Settings, and the boundary a ceratain length, for me this is your "Area". You have to keep your physics consistent.

If you do not know your Boundary length, use COMSOL to calculate it by selecting the boundary and a "Options - Integration Coupling Variable - Boundary Variables" and give a name such as "Length_1" and integrate the value "1" along ds, this gives you the total length of the boundary you have selected.

Then you can define your current as a Con stant as "I_1" "2[mA]" and you use "I_1/(Length_1*d_emdc)" as your current denisty entry. now if you are using another physics adapt the name of it "d_emc" or "d_emes" or "d_emqa" ... You may also give directly the current denisty when you know it, but do not forget to change it too if you change the thickness or boundaries of your model.

Now usig the "Port" approach, I understand that COMSOL looks after some of these variable and surface calculations for you. I havnt used them enough myself to really understand your question. And I have no "current denisty on my "ports". "Ports" was introduced one or a few versions ago, to speed up and minimise the formulas you need to type.

I suggest you run a few of the examples, re-read the doc, attend a training course, and always try a few simple cases you know and can analyse by hand, and if not sufficient then be more explicit in your questions.

Good luck
Hello Well your 2D object has a certain "thickness" d see the Subdomain Settings, and the boundary a ceratain length, for me this is your "Area". You have to keep your physics consistent. If you do not know your Boundary length, use COMSOL to calculate it by selecting the boundary and a "Options - Integration Coupling Variable - Boundary Variables" and give a name such as "Length_1" and integrate the value "1" along ds, this gives you the total length of the boundary you have selected. Then you can define your current as a Con stant as "I_1" "2[mA]" and you use "I_1/(Length_1*d_emdc)" as your current denisty entry. now if you are using another physics adapt the name of it "d_emc" or "d_emes" or "d_emqa" ... You may also give directly the current denisty when you know it, but do not forget to change it too if you change the thickness or boundaries of your model. Now usig the "Port" approach, I understand that COMSOL looks after some of these variable and surface calculations for you. I havnt used them enough myself to really understand your question. And I have no "current denisty on my "ports". "Ports" was introduced one or a few versions ago, to speed up and minimise the formulas you need to type. I suggest you run a few of the examples, re-read the doc, attend a training course, and always try a few simple cases you know and can analyse by hand, and if not sufficient then be more explicit in your questions. Good luck

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 19 juil. 2009, 22:14 UTC−4
Thanks a lot for the comments
Thanks a lot for the comments

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.