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 with simulation of electric motor

Please login with a confirmed email address before reporting spam

Hi everyone, i'm trying to model an permanent magnet axial flux ironless motor. I follow the tutorial on this link: www.comsol.com/blogs/guidelines-for-modeling-rotating-machines-in-3d/ but it still doesn't work. During stationary calculation i got an error that says: "Zero division, error during evaluation of comp1.spatial.detF, defined as dvol_spatial/dvol ". Please any help will be appreciated . I don't know how to include model in this post



1 Reply Last Post May 25, 2017, 3:58 a.m. EDT

Please login with a confirmed email address before reporting spam

Posted: 8 years ago May 25, 2017, 3:58 a.m. EDT
the complete error i get is:


Divisione per zero.
- Funzione: /
Errore nella valutazione della variabile.
- Variabile: comp1.spatial.detF
- Definito come: (dvol_spatial/dvol)
Errore nella valutazione della variabile.
- Variabile: comp1.rmm.murinvZZ
- Definito come: ((((((comp1.spatial.detF*(comp1.rmm.Izz*(comp1.spatial.invF32^2)))+comp1.rmm.chimYY)+((comp1.spatial.detF*(comp1.rmm.Iyy*(comp1.spatial.invF22^2)))+(comp1.spatial.detF*(comp1.rmm.Ixx*(comp1.spatial.invF12^2)))))*(((comp1.spatial.detF*(comp1.rmm.Iyy*(comp1.spatial.invF21^2)))+(comp1.spatial.detF*(comp1.rmm.Ixx*(comp1.spatial.invF11^2))))+(comp1.rmm.chimXX+(comp1.spatial.detF*(comp1.rmm.Izz*(comp1.spatial.invF31^2))))))-((((comp1.rmm.Izz*(comp1.spatial.invF32*comp1.spatial.invF31))+((comp1.rmm.Iyy*(comp1.spatial.invF22*comp1.spatial.invF21))+(comp1.rmm.Ixx*(comp1.spatial.invF12*comp1.spatial.invF11))))*comp1.spatial.detF)^2))/(((((((comp1.rmm.Izz*(comp1.spatial.invF33*comp1.spatial.invF31))+((comp1.rmm.Ixx*(comp1.spatial.invF13*comp1.spatial.invF11))+(comp1.rmm.Iyy*(comp1.spatial.invF23*comp1.spatial.invF21))))*((comp1.spatial.detF^3)*(((comp1.rmm.Izz*(comp1.spatial.invF33*comp1.spatial.invF32))+((comp1.rmm.Iyy*(comp1.spatial.invF23*comp1.spatial.invF22))+(comp1.rmm.Ixx*(comp1.spatial.invF12*comp1.spatial.invF13))))*(((comp1.rmm.Izz*(comp1.spatial.invF32*comp1.spatial.invF31))+((comp1.rmm.Iyy*(comp1.spatial.invF22*comp1.spatial.invF21))+(comp1.rmm.Ixx*(comp1.spatial.invF12*comp1.spatial.invF11))))*2))))+((((comp1.spatial.detF*(comp1.rmm.Izz*(comp1.spatial.invF33^2)))+comp1.rmm.chimZZ)+((comp1.spatial.detF*(comp1.rmm.Ixx*(comp1.spatial.invF13^2)))+(comp1.spatial.detF*(comp1.rmm.Iyy*(comp1.spatial.invF23^2)))))*(((comp1.rmm.chimXX+(comp1.spatial.detF*(comp1.rmm.Iyy*(comp1.spatial.invF21^2))))+((comp1.spatial.detF*(comp1.rmm.Izz*(comp1.spatial.invF31^2)))+(comp1.spatial.detF*(comp1.rmm.Ixx*(comp1.spatial.invF11^2)))))*(((comp1.spatial.detF*(comp1.rmm.Izz*(comp1.spatial.invF32^2)))+comp1.rmm.chimYY)+((comp1.spatial.detF*(comp1.rmm.Iyy*(comp1.spatial.invF22^2)))+(comp1.spatial.detF*(comp1.rmm.Ixx*(comp1.spatial.invF12^2))))))))-(((((comp1.rmm.Izz*(comp1.spatial.invF33*comp1.spatial.invF32))+((comp1.rmm.Iyy*(comp1.spatial.invF23*comp1.spatial.invF22))+(comp1.rmm.Ixx*(comp1.spatial.invF12*comp1.spatial.invF13))))*comp1.spatial.detF)^2)*(((comp1.spatial.detF*(comp1.rmm.Iyy*(comp1.spatial.invF21^2)))+(comp1.spatial.detF*(comp1.rmm.Ixx*(comp1.spatial.invF11^2))))+(comp1.rmm.chimXX+(comp1.spatial.detF*(comp1.rmm.Izz*(comp1.spatial.invF31^2)))))))-(((((comp1.rmm.Izz*(comp1.spatial.invF32*comp1.spatial.invF31))+((comp1.rmm.Iyy*(comp1.spatial.invF22*comp1.spatial.invF21))+(comp1.rmm.Ixx*(comp1.spatial.invF12*comp1.spatial.invF11))))*comp1.spatial.detF)^2)*(((comp1.spatial.detF*(comp1.rmm.Izz*(comp1.spatial.invF33^2)))+comp1.rmm.chimZZ)+((comp1.spatial.detF*(comp1.rmm.Ixx*(comp1.spatial.invF13^2)))+(comp1.spatial.detF*(comp1.rmm.Iyy*(comp1.spatial.invF23^2)))))))-((((comp1.spatial.detF*(comp1.rmm.Izz*(comp1.spatial.invF32^2)))+comp1.rmm.chimYY)+((comp1.spatial.detF*(comp1.rmm.Iyy*(comp1.spatial.invF22^2)))+(comp1.spatial.detF*(comp1.rmm.Ixx*(comp1.spatial.invF12^2)))))*((((comp1.rmm.Izz*(comp1.spatial.invF33*comp1.spatial.invF31))+((comp1.rmm.Ixx*(comp1.spatial.invF13*comp1.spatial.invF11))+(comp1.rmm.Iyy*(comp1.spatial.invF23*comp1.spatial.invF21))))*comp1.spatial.detF)^2))))
Errore nella valutazione della variabile.
- Variabile: comp1.rmm.HZ
- Definito come: (((comp1.rmm.BZ*comp1.rmm.murinvZZ)+((comp1.rmm.BY*comp1.rmm.murinvZY)+(comp1.rmm.murinvZX*comp1.rmm.BX)))/mu0_const)
Errore nella valutazione della espressione.
- Espressione: d((comp1.rmm.d*(-comp1.rmm.HX*comp1.rmm.testcurlAX-comp1.rmm.HY*comp1.rmm.testcurlAY-comp1.rmm.HZ*comp1.rmm.testcurlAZ+comp1.rmm.JX*test(comp1.rmm.AdepX)+comp1.rmm.JY*test(comp1.rmm.AdepY)+comp1.rmm.JZ*test(comp1.rmm.AdepZ)))*(dvol),{test@15})
the complete error i get is: Divisione per zero. - Funzione: / Errore nella valutazione della variabile. - Variabile: comp1.spatial.detF - Definito come: (dvol_spatial/dvol) Errore nella valutazione della variabile. - Variabile: comp1.rmm.murinvZZ - Definito come: ((((((comp1.spatial.detF*(comp1.rmm.Izz*(comp1.spatial.invF32^2)))+comp1.rmm.chimYY)+((comp1.spatial.detF*(comp1.rmm.Iyy*(comp1.spatial.invF22^2)))+(comp1.spatial.detF*(comp1.rmm.Ixx*(comp1.spatial.invF12^2)))))*(((comp1.spatial.detF*(comp1.rmm.Iyy*(comp1.spatial.invF21^2)))+(comp1.spatial.detF*(comp1.rmm.Ixx*(comp1.spatial.invF11^2))))+(comp1.rmm.chimXX+(comp1.spatial.detF*(comp1.rmm.Izz*(comp1.spatial.invF31^2))))))-((((comp1.rmm.Izz*(comp1.spatial.invF32*comp1.spatial.invF31))+((comp1.rmm.Iyy*(comp1.spatial.invF22*comp1.spatial.invF21))+(comp1.rmm.Ixx*(comp1.spatial.invF12*comp1.spatial.invF11))))*comp1.spatial.detF)^2))/(((((((comp1.rmm.Izz*(comp1.spatial.invF33*comp1.spatial.invF31))+((comp1.rmm.Ixx*(comp1.spatial.invF13*comp1.spatial.invF11))+(comp1.rmm.Iyy*(comp1.spatial.invF23*comp1.spatial.invF21))))*((comp1.spatial.detF^3)*(((comp1.rmm.Izz*(comp1.spatial.invF33*comp1.spatial.invF32))+((comp1.rmm.Iyy*(comp1.spatial.invF23*comp1.spatial.invF22))+(comp1.rmm.Ixx*(comp1.spatial.invF12*comp1.spatial.invF13))))*(((comp1.rmm.Izz*(comp1.spatial.invF32*comp1.spatial.invF31))+((comp1.rmm.Iyy*(comp1.spatial.invF22*comp1.spatial.invF21))+(comp1.rmm.Ixx*(comp1.spatial.invF12*comp1.spatial.invF11))))*2))))+((((comp1.spatial.detF*(comp1.rmm.Izz*(comp1.spatial.invF33^2)))+comp1.rmm.chimZZ)+((comp1.spatial.detF*(comp1.rmm.Ixx*(comp1.spatial.invF13^2)))+(comp1.spatial.detF*(comp1.rmm.Iyy*(comp1.spatial.invF23^2)))))*(((comp1.rmm.chimXX+(comp1.spatial.detF*(comp1.rmm.Iyy*(comp1.spatial.invF21^2))))+((comp1.spatial.detF*(comp1.rmm.Izz*(comp1.spatial.invF31^2)))+(comp1.spatial.detF*(comp1.rmm.Ixx*(comp1.spatial.invF11^2)))))*(((comp1.spatial.detF*(comp1.rmm.Izz*(comp1.spatial.invF32^2)))+comp1.rmm.chimYY)+((comp1.spatial.detF*(comp1.rmm.Iyy*(comp1.spatial.invF22^2)))+(comp1.spatial.detF*(comp1.rmm.Ixx*(comp1.spatial.invF12^2))))))))-(((((comp1.rmm.Izz*(comp1.spatial.invF33*comp1.spatial.invF32))+((comp1.rmm.Iyy*(comp1.spatial.invF23*comp1.spatial.invF22))+(comp1.rmm.Ixx*(comp1.spatial.invF12*comp1.spatial.invF13))))*comp1.spatial.detF)^2)*(((comp1.spatial.detF*(comp1.rmm.Iyy*(comp1.spatial.invF21^2)))+(comp1.spatial.detF*(comp1.rmm.Ixx*(comp1.spatial.invF11^2))))+(comp1.rmm.chimXX+(comp1.spatial.detF*(comp1.rmm.Izz*(comp1.spatial.invF31^2)))))))-(((((comp1.rmm.Izz*(comp1.spatial.invF32*comp1.spatial.invF31))+((comp1.rmm.Iyy*(comp1.spatial.invF22*comp1.spatial.invF21))+(comp1.rmm.Ixx*(comp1.spatial.invF12*comp1.spatial.invF11))))*comp1.spatial.detF)^2)*(((comp1.spatial.detF*(comp1.rmm.Izz*(comp1.spatial.invF33^2)))+comp1.rmm.chimZZ)+((comp1.spatial.detF*(comp1.rmm.Ixx*(comp1.spatial.invF13^2)))+(comp1.spatial.detF*(comp1.rmm.Iyy*(comp1.spatial.invF23^2)))))))-((((comp1.spatial.detF*(comp1.rmm.Izz*(comp1.spatial.invF32^2)))+comp1.rmm.chimYY)+((comp1.spatial.detF*(comp1.rmm.Iyy*(comp1.spatial.invF22^2)))+(comp1.spatial.detF*(comp1.rmm.Ixx*(comp1.spatial.invF12^2)))))*((((comp1.rmm.Izz*(comp1.spatial.invF33*comp1.spatial.invF31))+((comp1.rmm.Ixx*(comp1.spatial.invF13*comp1.spatial.invF11))+(comp1.rmm.Iyy*(comp1.spatial.invF23*comp1.spatial.invF21))))*comp1.spatial.detF)^2)))) Errore nella valutazione della variabile. - Variabile: comp1.rmm.HZ - Definito come: (((comp1.rmm.BZ*comp1.rmm.murinvZZ)+((comp1.rmm.BY*comp1.rmm.murinvZY)+(comp1.rmm.murinvZX*comp1.rmm.BX)))/mu0_const) Errore nella valutazione della espressione. - Espressione: d((comp1.rmm.d*(-comp1.rmm.HX*comp1.rmm.testcurlAX-comp1.rmm.HY*comp1.rmm.testcurlAY-comp1.rmm.HZ*comp1.rmm.testcurlAZ+comp1.rmm.JX*test(comp1.rmm.AdepX)+comp1.rmm.JY*test(comp1.rmm.AdepY)+comp1.rmm.JZ*test(comp1.rmm.AdepZ)))*(dvol),{test@15})

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.