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.

Error when Maxwell stress is used as boudary condition for Structural Mechanics.

Please login with a confirmed email address before reporting spam

Dear all,

I am simulating a Synchronous reluctant machine in 2D. I want to solve for the effect of the magnetic force on the iron core of the machine. First, I made a rmm physics where I define the force calculation as R_Max_F to obtain the Maxwell stress tensor. I then set the Maxwell stress as a body surface boundary condition in a structural mechanics physics in order to study the stress distribution. I used a stationary solver but I obtain this error:

Failed to evaluate variable.
- Variable: mod1.rmm.nTX_R_Max_F
- Geometry: 1
- Domain: 101
Failed to evaluate expression.
- Expression: d(((mod1.spatial.F11*mod1.rmm.nTX_R_Max_F+mod1.spatial.F21*mod1.rmm.nTY_R_Max_F)*test(mod1.u)+(mod1.spatial.F12*mod1.rmm.nTX_R_Max_F+mod1.spatial.F22*mod1.rmm.nTY_R_Max_F)*test(mod1.v) *(dvol),{test@5})
-Feature: Stationary Solver 1 (sol2/s1)
-Error: Failed to evaluate expression.

Please, does anyone know what this means or what I am doing wrong both in the rmm or structural mechanic. Any comment is greatly appreciated. Thanks in advance.

Daniel.

0 Replies Last Post Feb 12, 2013, 4:23 a.m. EST
COMSOL Moderator

Hello Iruikwu D. O.

Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.

If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.

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.