Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.

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.

Help needed: magnetostatic force calculation using Maxwell stress tensor

Please login with a confirmed email address before reporting spam

This problem has been bothering me for weeks. I read previous posts on this forum on topic of Maxwell stress tensor but still could not find what is wrong.

I'm trying to calculate the repelling force between two magnet rings with one levitated above the other. I defined a force variable for the top ring. COMSOL (AC/DC 3.3) gives "topring_nTz_emnc" as the surface force density at the boundaries of the top ring for calculating z-component of the force.

On the other hand, I manually defined elements of the Maxwell stress tensor as Global Expressions

T =(1/mu0)* [ Bx^2-0.5*|B|^2, BxBy, BxBz ;
ByBx, By^2-0.5*|B|^2, ByBz ;
BzBx , BzBy, Bz^2-0.5*|B|^2 ]
= [Txx, Txy, Txz;
Tyx, Tyy, Tyz;
Tzx, Tzy, Tzz];

Since I need to compute the z-component of the force, I used the Boundary Integration Coupling variable to calculate

Fz = int{nx*Tzx+ny*Tzy+nz*Tzz} dA

for each boundary of top ring. [nx ny nz] is the outward surface normal.

Here, nx*Tzx+ny*Tzy+nz*Tzz is also surface force density, which should agree with "topring_nTz_emnc" that is automatically generated by COMSOL.

However, I am getting different results. For some of the boundary surfaces (e.g. the inner and outer cylindrical faces of the top ring),

nx*Tzx+ny*Tzy+nz*Tzz

does not agree with

topring_nTz_emnc.

Any hints on what may have gone wrong?

Thanks,
Zhiyong

3 Replies Last Post 20 juin 2013, 08:07 UTC−4

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 19 juil. 2010, 14:40 UTC−4
The model is attached here.

The geometry is very simple. Due to symmetry, only a quarter of the geometry is modeled.
The model is attached here. The geometry is very simple. Due to symmetry, only a quarter of the geometry is modeled.


Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 23 juil. 2010, 13:56 UTC−4
Some update on this. I found that if the integration surface is completely removed from magnetic material boundaries (that is, completely in air/vacuum), two methods (see my original post or the summary below) gave very close results. However, they don't agree with each other when integrating right on the material surfaces.

So I guess the issue is related to how COMSOL implements the force density "domainname_nTz_emnc" on magnetic material surfaces?

summary of two methods:

Method 1:
Calculating total force components by integrating COMSOL built-in force density "domainname_nTz_emnc" over all external material surfaces

Method 2:
Calculating total force components by literally integrating Maxwell stress tensor "Tzx*nx+Tzy*ny+Tzz*nz" over some closed envelope containing the magnetic material
Some update on this. I found that if the integration surface is completely removed from magnetic material boundaries (that is, completely in air/vacuum), two methods (see my original post or the summary below) gave very close results. However, they don't agree with each other when integrating right on the material surfaces. So I guess the issue is related to how COMSOL implements the force density "domainname_nTz_emnc" on magnetic material surfaces? summary of two methods: Method 1: Calculating total force components by integrating COMSOL built-in force density "domainname_nTz_emnc" over all external material surfaces Method 2: Calculating total force components by literally integrating Maxwell stress tensor "Tzx*nx+Tzy*ny+Tzz*nz" over some closed envelope containing the magnetic material

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 20 juin 2013, 08:07 UTC−4
Dear Mr. wang

please i have a work may be similar to your discussion, do mean the integration over the boundaries for example :


Fx : i should integrate both faces normal to X direction or just one face ?


me also i have a different results between the manual calculation for the Maxwell formula and in comsol formula,

so please if you solved this just tell me.


Best Regards


hassanain
Dear Mr. wang please i have a work may be similar to your discussion, do mean the integration over the boundaries for example : Fx : i should integrate both faces normal to X direction or just one face ? me also i have a different results between the manual calculation for the Maxwell formula and in comsol formula, so please if you solved this just tell me. Best Regards hassanain

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.