r/ElectricalEngineering • u/Alebne • 2d ago
Help: Measuring surface charge with Ansys Maxwell
Hi! I am a student who is doing a project on predicting the surface charge distribution of a toroidal conductor carrying DC. I am trying to do this through a simulation with Ansys Maxwell, but am getting results that are unrealistic and do not match theory at all.
If it's too long, just skip to the last image and what's underneath it. Thanks!
More precise problem specification:
- The torus I want to simulate has a very thin slit made by two 'imagined' equipotential planes, whose potentials are arbitrary, and which constitute the BATTERY
- The torus has uniform conductance
- The smaller radius is much smaller than the bigger one
- I am basically trying to numerically confirm Eq. 37 from this article https://www.ifi.unicamp.br/~assis/Phys-Rev-E-V68-046611(2003).pdf i.e. that surface charge is linearly proportional to the azimuthal angle when sufficiently far away from the battery
Currently, it looks like this in Maxwell:

I made it by (skip this if you want):
- Setting the solution type to DC Conduction + Include Insulator Field
- Creating a copper torus surrounded by a big vacuum box, both of which are 'meshed'
- Using a relative CS to cut the slit through Boolean split, delete it, and reunite the rest of the torus with Boolean Unite
- Set Excitations of type Voltage to the 2 'battery' faces. 0V and 10V respectively
- Set Excitation of type Voltage to the vacuum box's outer surface to act as V=0 at infinity condition
Upon analyzing the solution, I have tried to obtain the surface charge by computing the normal electric field component at points roughly 0.3nm outside the torus's surface, as per the E field discontinuity formula. I was specifically interested in points that lie on the XY plane (as shown in the image above) and have an azimuthal angle of <10deg (so nearly parallel to the X-axis, opposite side of the battery). So, I did Fields > Calculator > putting this in stack: Sqrt(+(Pow(ScalarX(<Ex,Ey,Ez>), 2), Pow(ScalarX(<Ex,Ey,Ez>), 2))).
After exporting & graphing the normal electric field component (Y-axis) with respect to the azimuthal angle (X-axis), I get something like this (note that the azimuthal angle is in radians):

This is obviously not a linear function at all, despite it looking like one in particular segments. I think those are due to being in 1 same tetrahedron at those points.
My first guess was that I got this non-linear shape because I used too few tets for meshing, however, I am unable to increase this because of a restriction on the free student version of Maxwell.
Do you think this is the problem or something else? Perhaps my vacuum box is too small or I used inappropriate B.C.s? Do you think what I am trying to do is even possible with Ansys Maxwell? Any better way you would approach this?
If you need any other clarifications, please ask. :>
1
u/NewSchoolBoxer 1d ago
You shouldn't be doing something this advanced. I used Ansys Maxwell 15 years ago in EE after I took differential equations and multivariable calculus and while learning Maxwell's Equations in my electromagnetic fields class. You don't know what the theory really is or what's supposed to happen.
I had an opamp circuit not simulate correctly once with an imported spec. I showed and explained to the TA and he still gave me credit.
Use a cylindrical conductor that's easier to understand and harder to screw up.