Magnetic field produced by linear current in COMSOL

Click For Summary

Discussion Overview

The discussion revolves around the discrepancies observed in the magnetic field produced by a linear current in a COMSOL simulation, comparing results from 2D and 3D models. Participants explore the implications of boundary conditions and wire length on the magnetic flux density.

Discussion Character

  • Technical explanation, Debate/contested, Experimental/applied

Main Points Raised

  • One participant reports a simulation of a 10 A edge current through a wire inside an air sphere, noting a significant discrepancy in the magnetic field strength (0.3 T) at 1 mm from the wire compared to the theoretical value (0.002 T) predicted by Ampere's law.
  • Another participant requests visual representations of the 2D and 3D geometries to better understand the issue.
  • A participant suggests checking the boundary conditions as a potential source of the discrepancy.
  • The original poster indicates that they have already adjusted the boundary sphere without resolving the issue, suggesting that the magnetic flux at the boundary layer appears minimal.
  • One participant mentions experimenting with the length of the wire, observing that a longer wire seems to produce more magnetic flux at 1 mm, which they find counterintuitive.
  • The original poster expresses confusion regarding the shape of the magnetic flux, stating it should be purely circular.

Areas of Agreement / Disagreement

Participants do not appear to reach a consensus on the cause of the discrepancies in the magnetic field values between the 2D and 3D simulations. Multiple competing views and uncertainties remain regarding boundary conditions and the effects of wire length.

Contextual Notes

Limitations include potential missing assumptions about the simulation setup, dependence on the definitions of boundary conditions, and unresolved questions about the expected shape of the magnetic flux.

Caleydos
Messages
4
Reaction score
0
TL;DR
Issue with COMSOL 5.5 when trying to calculate the magnetic field produced by linear current in 3D
Hello,

I have used an edge current of 10 A through a 0,45 cm (lenght) wire inside an air sphere. The thing is that, according with Ampere law, the magnetic field (B) produced at a 1 mm of distance from the wire shall be 0,002 T, and I am obtaining much higher values in this simulation (around 0,3 T at his point).

I have done it in 2D and result is OK, according with theoretical values, but I do not know why in 3D it changes. Any idea please?

Many thanks in advance
 

Attachments

  • Esfera 1 m de radio zoom.png
    Esfera 1 m de radio zoom.png
    56.5 KB · Views: 190
Engineering news on Phys.org
Can you post a picture of the geometry in 2D and in 3D?
 
Sure! I attach them here. Thanks a lot!

First one is the 3D model (lateral view), showing the value of the magnetic flux density in COMSOL 5.5 (this value do not matches with theoretical)

The second one is 2D in COMSOL 3.5, this value really matches with theoretical
 

Attachments

  • Flujo campo en modelo 3D (esfera 20 cm). 0,1 T a 2 cm del centro del conductor.png
    Flujo campo en modelo 3D (esfera 20 cm). 0,1 T a 2 cm del centro del conductor.png
    42.5 KB · Views: 172
  • Magnetic Flux density at 1mm (2mT).png
    Magnetic Flux density at 1mm (2mT).png
    41.1 KB · Views: 206
There is something strange going on, for instance:
Flujo campo en modelo 3D (esfera 20 cm). 0,1 T a 2 cm del centro del conductor.png


Check the boundary conditions.
 
Thanks a lot for your reply.

This is one of the things that I supossed in the beginning, but I made the boundary sphere wider and the result is the same (see attached). It seems the magnetic flux shown in the boundary layer is debt to the sphere is very small. Any other idea?
 

Attachments

  • Magnetic flux density long wire 10 amps (0.5 T at 1mm).png
    Magnetic flux density long wire 10 amps (0.5 T at 1mm).png
    18.7 KB · Views: 160
I have tried modifying the length of the wire, magnetic flux should remain the same, but it isn´t. It seems the longer wire produces more flux at 1mm (it makes no sense).

On the other hand, I do not understan why this shape in the magnetic flux, it should be purely circular.
 

Attachments

  • Magnetic flux density long wire 10 amps (0.5 T at 1mm).png
    Magnetic flux density long wire 10 amps (0.5 T at 1mm).png
    18.7 KB · Views: 155
  • Magnetic flux density very long wire 10 amps (0.8 T at 1mm).png
    Magnetic flux density very long wire 10 amps (0.8 T at 1mm).png
    62.8 KB · Views: 145

Similar threads

Replies
5
Views
4K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 14 ·
Replies
14
Views
5K
Replies
17
Views
2K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 1 ·
Replies
1
Views
1K
Replies
8
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 37 ·
2
Replies
37
Views
4K