E&M fields simulated and visualized in COMSOL, is that how they 'look' IRL?

Click For Summary

Discussion Overview

The discussion centers around the simulation and visualization of electromagnetic (E&M) fields using COMSOL software, specifically focusing on a setup involving an aluminum wire excited by a DC current within an air sphere. Participants explore whether the simulated fields accurately represent real-world E&M fields and discuss potential issues with the simulation setup.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant expresses surprise at the simulation results, noting that the magnetic field appears less uniform than expected compared to the electric field.
  • Another participant suggests that the simulation may be flawed due to the axisymmetric nature of the source, implying that the fields should also exhibit axisymmetry.
  • A different participant proposes that the E&M fields may not be fully coupled in the chosen physics interface and suggests splitting the physics into separate interfaces for electric current and magnetic field, resulting in a more textbook-like plot.
  • Concerns are raised about the accuracy of the simulation setup, including questions about the step-size and mesh detail, with one participant admitting uncertainty about their setup's correctness.
  • There is a consensus that the issue may lie more in the use and setup of the COMSOL routine rather than in the underlying physics.
  • One participant shares a method for calculating and plotting the Poynting vector, noting that it was simpler than anticipated and involves calculating the cross product of the electric and magnetic fields.
  • Another participant mentions slight issues with vector representation when the source point is aligned with the wire, suggesting further tweaking may be necessary.

Areas of Agreement / Disagreement

Participants generally agree that the issues encountered are related to the setup of the COMSOL simulation rather than the physics itself. However, there is no consensus on the accuracy of the initial simulation results or the best approach to rectify them.

Contextual Notes

Limitations include uncertainty regarding the accuracy of the simulation parameters, such as mesh detail and step-size, and the potential for misinterpretation of COMSOL's physics interfaces.

vis viva
Messages
29
Reaction score
10
TL;DR
E&M fields simulated and visualized, is that how they 'look' In Real Life ?
Hi

I made a simulation (comsol) of a piece of aluminum wire (r=1mm h=10mm) excited by 1A DC inside a sphere (r=10mm) of air. Here are the 3D plots:

Screenshot from 2020-02-14 13-29-37.png
Screenshot from 2020-02-14 13-30-36.png


Since I ever only have 'seen' E&M fields depicted in textbooks and never in real life, I'm a bit surprised by the simulation result, I would at least have expected the M field to be more uniform like the E field.

I would appreciate if the experienced experts could weigh in here, is that really how real E&M fields would look like? Or maybe my simulation is flawed somehow, that's always a possibility.

Thank you.
KZ
 
Technology news on Phys.org
vis viva said:
Summary:: E&M fields simulated and visualized, is that how they 'look' In Real Life ?

Or maybe my simulation is flawed somehow, that's always a possibility.
it looks pretty flawed. Your source is axisymmetric, so your fields should have axisymmetry also.
 
  • Like
Likes   Reactions: vis viva and Vanadium 50
My thought exactly, I now believe somehow E&M fields may not be fully coupled in the chosen physics interface Magnetic and Electric Fields (mef) despite the documentation stating otherwise. So I split the physics up in two physics interfaces Electric Current (ec) and Magnetic Field (mf), and now the plot looks like in the textbooks:
Screenshot from 2020-02-14 19-42-25.png
Screenshot from 2020-02-14 19-42-50.png


The only slight drawback of two physics interfaces is that the wire needs to be excited for each physics interface i.e. two different ways but resulting in the same.

Now I wonder how I calculate and plot the Poynting vector(?) Probably in the Derived Values in the Results tree, but how.
 
First of all, how do you know that you've set this up correctly? COMSOL requires many tweaking, and just because you are able to produce a picture, it doesn't mean that this has any resemblance to reality. For example, how do you know the step-size is accurate enough, or if your mesh is fine enough that you haven't lost the detail?

Have you used COMSOL before and benchmarked it to something that you know the exact results for?

Zz.
 
First of all, how do you know that you've set this up correctly?

I don't.

COMSOL requires many tweaking

I agree.

just because you are able to produce a picture, it doesn't mean that this has any resemblance to reality.

I agree. But I was aiming for textbook resemblance p.t.

how do you know the step-size is accurate enough, or if your mesh is fine enough that you haven't lost the detail?

I don't. But when I find something that I know the exact results for, then this tweaking step is on the to-do list.

Have you used COMSOL before and benchmarked it to something that you know the exact results for?

No.
 
Then the problem here isn't physics, but rather the use and correct setup of the COMSOL routine.

Zz.
 
Then the problem here isn't physics, but rather the use and correct setup of the COMSOL routine.

Yes I agree, and I thought that was exactly what I said. But I see now that my mentioning of "physics interface" could be construed ambiguously.

"physics interface" is comsol terminology for software libraries that each solves certain/different types of physics problems.

I had initially chosen the physics interface Magnetic and Electric Fields (mef) which turned out to be the wrong choice for this kind of static physics problem i.e. a comsol setup mistake on my behalf.

I was not inferring that "physics" (as defined e.g. by Encyclopædia Britannica ) was the problem.
 
I'm just answering my own rhetorical question about how to calculate and plot the Poynting vector S when E and H is known. Maybe this has some interest from other comsol beginners like me, or maybe not.

It was actually simpler than I thought, you can simply calculate the cross product directly in the form field where you pick the values you want to plot.

Screenshot from 2020-02-15 17-15-50.png


And then the plot looks like below (all vectors are normalized). I note there are slight problems with vectors whose source point is on axis with the wire, but I believe this is a matter of a bit further tweaking.
Screenshot from 2020-02-15 17-16-39.png
 
  • Like
Likes   Reactions: Dale

Similar threads

  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 30 ·
2
Replies
30
Views
4K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 35 ·
2
Replies
35
Views
11K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 6 ·
Replies
6
Views
4K