# Discussion Forum

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.

## Modelling Current Carrying Wires in COMSOL

Hello,

Can anyone tell me how I can build current carrying wires in COMSOL?

I am trying to build a rectangular loop of current in the x-y plane and calculate the resulting magnetic field. According to theory, in the x-y plane, the magnetic field should only have a z component (the sign of the magnetic field is determined by the direction of the current in the loop)

Is it possible to solve this problem using 2D space dimension in COMSOL, or is it necessary to use the 3D space dimension?

Thank you,
Kevin

7 Replies Last Post Jul 22, 2012, 3:03 AM EDT

Can anyone help me out please?

Thanks,
Kevin

Hi

it is well dscribed in the doc, and you must decide which physicsapplication mode you want to use, it all "depends" (and on version 3.5 or 4 ?)

--
Good luck
Ivar

Ivar,

I am using version 3.5 of COMSOL. When you say it is well described in the doc, I assume the doc that you were talking about is www.comsol.com/showroom/documentation/model/131/

While I have found the people on the forum very helpful, unfortunately I have to say the COMSOL help files are very incomplete and difficult to follow.

I have attached the model I am working on. In this simplistic model, I only have one finite segment of current. However COMSOL is not giving me the answer I would expect, so I assume I am doing something wrong. The z-component of the magnetic flux density should always be 0 since the current is in the z-direction.

If you could give me any advice on what I am doing wrong in my setup, I would appreciate it.

Thanks,
Kevin

Hi

I was also referring to the documentation in PDF, I can only suggest to read it and several times as there is too much in there to catch it all in one go, even after 5-6 re-readings I find new ideas, explanations that help me. And there are several exercices well described to follow. Just as in the model library, "l'exercice fait le maître"

--
Good luck
Ivar

Posted: 8 years ago
Did you ever figure this out? I am having the same frustrating problem. I can't believe that comsol can't handle a loop current in the plane.

Posted: 8 years ago
Kevin,

First of all, your model is *unphysical*. Unphysical models tend to generate either nonsensical results or non-solvable computations. You simply cannot have a steady-state current in a discontinuous line segment like that. Instead, you should be able to make this model work if you put the full square current loop in your model.

Second, both the symmetry and dimensionality of a problem depend not only on the problem's geometry, but also on its solution. From that perspective, it becomes clear that this is an inherently 3D problem. So you should put in the full square current loop and solve it in 3D.