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.

Electric field of a dipole

Please login with a confirmed email address before reporting spam

Dear Comsol Users
For learning reasons, I have calculated the classic electric field of a 2d dipole. Maybe it is useful for other to know how i did it.
First, I defined two solid circles, for which I wanted to assign a surface charge density of +q/m^2 and -q/m^2. However, this was not possible until I defined an area, where the circles where placed in. So I placed said charges on either circle, and put the enclosing square to zero potential. I thought I could now solve the electrostatic problem, but I received an error message telling me that I need to assign relative permittivity of the circles. I am not interested in the field with in the charges (whatever that might look like) so I performed a geometrical operation being to subtract the circle areas of the surrounding square area. Then I assigned a relative permittivity of 1 to the square area, making it essentially vacuum.
Now I could solve the electrostatic problem and plot the electric potential together with the electric field (see attached figure).
picturepush.com/public/9074172
I would like to ask if this is the recommended way of doing these kind of basic problems. One thing I wonder about is how I can change the plotting of the electric field such that the arrows do not reach into the circles (where there is essentially "nothing"). How do I do that? I tried setting the arrow base to tail, but then they just reach into the other circle.

Thanks for comments.


2 Replies Last Post 6 ago 2016, 10:33 GMT-4

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 27 ago 2012, 10:18 GMT-4
Martin,

exercises like this are an excellent way to start learning COMSOL and go ahead to more complex problems. This way you can check the match between the results and the theoretical prediction. I would recommend this approach to all newcomers. Start simple instead of trying to put all multiphysics complexity into your first modeling attempts.

Regarding the arrows you might consider replacing them by streamlines. The magnitude of the field is already coded by the color map, the streamlines provide the direction information, so arrow length is a bit redundant.

Cheers
Edgar
Martin, exercises like this are an excellent way to start learning COMSOL and go ahead to more complex problems. This way you can check the match between the results and the theoretical prediction. I would recommend this approach to all newcomers. Start simple instead of trying to put all multiphysics complexity into your first modeling attempts. Regarding the arrows you might consider replacing them by streamlines. The magnitude of the field is already coded by the color map, the streamlines provide the direction information, so arrow length is a bit redundant. Cheers Edgar

Please login with a confirmed email address before reporting spam

Posted: 8 years ago 6 ago 2016, 10:33 GMT-4
Marin

Could you possibly send me the setup file that you used? I'm struggling with something similar and want to compare it to what you have done.
Marin Could you possibly send me the setup file that you used? I'm struggling with something similar and want to compare it to what you have done.

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.