Please login with a confirmed email address before reporting spam
Hi Will,
I had a look at your file "test.mph".
If we consider the feature called Coil 1, we have:
- Current:
- Turns:
- Cross section:
- Expected current density:
Now, in your model, for Coil 1 this is not the current density you observe. Instead you observe (the volume average of mf.normJ inside the coil is ).
This is a correct assessment and we encourage every user to do these kinds of sanity checks when building their models.
The reason the current is off, is because of the chosen reference edge. When using a circular coil, the reference edge is not only used to determine the coil’s orientation, but also the average turn length. As the manual states: “The coil length used is simply the length of the edges; the best approximation is therefore obtained when the radius of the edges is close to the average radius of the coil”.
The coil cross sectional surface area is then determined by dividing the coil volume by the length derived from the edge selection of Coil Geometry 1. You can see so in the Equation View.
In your initial model "test.mph", the selected edges are located on the inside of the coil. As a result, the determined coil length mf.coil1.length evaluates to: , while it should have been . Consequently, mf.coil1.area evaluates to , rather than the expected .
If you check your geometry sequence and put a point right in the center of the rectangle called coil1Pair (xw: , yw: ), you will get an edge that represents the average turn length of Coil 1. If you select these edges instead of the inner edges, mf.coil1.length will evaluate to , and mf.coil1.area becomes: (that is, with the given mesh it’s accurate up to 6 significant digits). Consequently, the current density becomes , which is off.
This is a good accuracy given the chosen mesh.
In this case, finding an edge that represents the average turn length is not very difficult. If you have a very sophisticated coil cross section however, you may have to evaluate the average radius, that is, evaluate the average of in your cross section and use that for your turn length. You can do so by enabling the checkbox Override length of the edges in Coil Geometry 1 and fill in the numerical value directly, or use the expression , where is a coupling operator on the cross sectional surface defined in Component 1/Definitions. I have attached a model demonstrating this approach for Coil 1 (see "test-df664aa_modified_cleared.mph").
For more sophisticated shapes (as opposed to circles), we advise using the numeric coil. If your geometry and your physics are axisymmetric, you should consider using a 2D-axisymmetric model.
Durk de Vries
Electromagnetics Group
COMSOL AB
Sweden
Hi Will,
I had a look at your file "test.mph".
If we consider the feature called **Coil 1**, we have:
* Current: IO=100[A]
* Turns: Nturns1=20000
* Cross section: coil1DR*coil1DZ=0.1[m]*0.1[m]=0.01[m^2]
* Expected current density: \frac{Nturns1*IO}{coil1DR*coil1DZ}=20000*100[A]/0.01[m^2]=2\times10^{8}[A/m^2]
Now, in your model, for **Coil 1** this is not the current density you observe. Instead you observe 1.75\times10^{8}[A/m^2] (the volume average of **mf.normJ** inside the coil is 1.749998267524659\times10^{8}).
*This is a correct assessment and we encourage every user to do these kinds of sanity checks when building their models.*
The reason the current is 14\% off, is because of the chosen reference edge. When using a circular coil, the reference edge is not only used to determine the coil’s orientation, but also the average turn length. As the manual states: *“The coil length used is simply the length of the edges; the best approximation is therefore obtained when the radius of the edges is close to the average radius of the coil”*.
The coil cross sectional surface area is then determined by dividing the coil volume by the length derived from the edge selection of **Coil Geometry 1**. You can see so in the **Equation View**.
In your initial model "test.mph", the selected edges are located on the inside of the coil. As a result, the determined coil length **mf.coil1.length** evaluates to: 2*pi*primaryRadius=2.1991[m], while it should have been 2*pi*(primaryRadius+coil1DR/2)=2.5133[m]. Consequently, **mf.coil1.area** evaluates to 1.1429\times10^{-2}[m], rather than the expected 0.01[m].
If you check your geometry sequence and put a point right in the center of the rectangle called **coil1Pair** (xw: primaryRadius+coil1DR/2, yw: -coil1Z), you will get an edge that represents the average turn length of **Coil 1**. If you select these edges instead of the inner edges, **mf.coil1.length** will evaluate to 2.5133[m], and **mf.coil1.area** becomes: 1.000001169271455\times10^{-2}[m] (*that is, with the given mesh it’s accurate up to 6 significant digits*). Consequently, the current density becomes 1.999997661459825\times10^{8}[A/m^2], which is 100*\left(\frac{2\times10^{8}[A/m^2]}{mf.normJ}-1\right)=1.17\times10^{-4}\% off.
*This is a good accuracy given the chosen mesh.*
In this case, finding an edge that represents the average turn length is not very difficult. If you have a very sophisticated coil cross section however, you may have to evaluate the average radius, that is, evaluate the average of \sqrt{x^2+y^2} in your cross section and use that for your turn length. You can do so by enabling the checkbox **Override length of the edges** in **Coil Geometry 1** and fill in the numerical value directly, or use the expression 2*pi*aveop1(sqrt(x^2+y^2)), where aveop1() is a coupling operator on the cross sectional surface defined in **Component 1/Definitions**. I have attached a model demonstrating this approach for **Coil 1** (see "test-df664aa_modified_cleared.mph").
For more sophisticated shapes (as opposed to circles), we advise using the numeric coil. If your geometry and your physics are axisymmetric, you should consider using a **2D-axisymmetric** model.
Durk de Vries
Electromagnetics Group
COMSOL AB
Sweden