mistrfigu
Mechanical
- Aug 25, 2012
- 2
Hi ,
i would like to ask about 2D magnetostatics in ANSYS. I know better for this is MAXWELL but i havent licence. I made some APDL script but i have big problem. I want to do it 2D example with coil. But flux lines flow in very strange direction. I think porblem is in conection mesh but i dont know how to connect.
Thank you very much for some advise.
Here is my APDL program:
/NOPR
KEYW,PR_SET,1
KEYW,PR_STRUC,0
KEYW,PR_THERM,0
KEYW,PR_FLUID,0
KEYW,PR_ELMAG,1
KEYW,MAGNOD,1
KEYW,MAGEDG,0
KEYW,MAGHFE,0
KEYW,MAGELC,0
KEYW,PR_MULTI,0
KEYW,PR_CFD,0
/GO
!*
/COM,
/COM,Preferences for GUI filtering have been set to display:
/COM, Magnetic-Nodal
!*
! +++++++ Výběr materiálu
/PREP7
RECTNG,10,37,8.5,0 ! hřidel X1,X2,Y1,Y2
RECTNG,13,16,9.1,38.5 ! břit levý
RECTNG,31,34,9.1,38.5 ! břit pravý
RECTNG,16,31,9.5,14 !hlinikový nakružek
RECTNG,16,31,14,28 !civka
RECTNG,16,31,38.5,35 !ukonceni obvodu část vrchni
RECTNG,19,28,35,30 !ukonceni obvodu část spodní
RECTNG,10,37,9.1,8.5 ! zjemneovani mesche
RECTNG,0,45,0,45 !vnejsek
FLST,2,1,5,ORDE,1
FITEM,2,9
FLST,3,8,5,ORDE,2
FITEM,3,1
FITEM,3,-8
ASBA,P51X,P51X, , ,KEEP
AADD,2,6,3,7
! +++++++ Výběr prvku
ET,1,PLANE13 ! nastaveni axisymetrie
!*
KEYOPT,1,1,0
KEYOPT,1,2,0
KEYOPT,1,3,1
KEYOPT,1,4,0
KEYOPT,1,5,0
!*
! +++++++ nastevni materialu
MPTEMP,,,,,,,,
MPTEMP,1,0
MPDATA,MURX,1,,1 ! hlinik
MPDATA,MURX,2,,800 ! ocel
MPDATA,MURX,3,,1 ! měd
MPDATA,MURX,4,,1 ! vzduch
! +++++++ prirazeni materialu
AESIZE,4,1 !nastaveni velikosti
AMESH,4
mat,2
AESIZE,9,1 !nastaveni velikosti
AMESH,9
AESIZE,1,1
AMESH,1
mat,3
AESIZE,5,1
AMESH,5
mat,4
AESIZE,12,1
AMESH,12
AESIZE,8,0.05
AMESH,8
AESIZE,10,1
AMESH,10
AESIZE,9,1
AMESH,9
AESIZE,11,1
AMESH,11
! +++++++ Current density
BFA,5,JS, , ,1000,0
! +++++++ mAGNETIC FLUX PARALEL
LPLOT
FLST,2,6,4,ORDE,5
FITEM,2,1
FITEM,2,34
FITEM,2,-36
FITEM,2,44
FITEM,2,-45
DL,P51X, ,ASYM
! +++++++ Solve
/SOL
MAGSOLV,0,3,0.001, ,25,
FINISH
/POST1
PLF2D,27,0,10,1
i would like to ask about 2D magnetostatics in ANSYS. I know better for this is MAXWELL but i havent licence. I made some APDL script but i have big problem. I want to do it 2D example with coil. But flux lines flow in very strange direction. I think porblem is in conection mesh but i dont know how to connect.
Thank you very much for some advise.
Here is my APDL program:
/NOPR
KEYW,PR_SET,1
KEYW,PR_STRUC,0
KEYW,PR_THERM,0
KEYW,PR_FLUID,0
KEYW,PR_ELMAG,1
KEYW,MAGNOD,1
KEYW,MAGEDG,0
KEYW,MAGHFE,0
KEYW,MAGELC,0
KEYW,PR_MULTI,0
KEYW,PR_CFD,0
/GO
!*
/COM,
/COM,Preferences for GUI filtering have been set to display:
/COM, Magnetic-Nodal
!*
! +++++++ Výběr materiálu
/PREP7
RECTNG,10,37,8.5,0 ! hřidel X1,X2,Y1,Y2
RECTNG,13,16,9.1,38.5 ! břit levý
RECTNG,31,34,9.1,38.5 ! břit pravý
RECTNG,16,31,9.5,14 !hlinikový nakružek
RECTNG,16,31,14,28 !civka
RECTNG,16,31,38.5,35 !ukonceni obvodu část vrchni
RECTNG,19,28,35,30 !ukonceni obvodu část spodní
RECTNG,10,37,9.1,8.5 ! zjemneovani mesche
RECTNG,0,45,0,45 !vnejsek
FLST,2,1,5,ORDE,1
FITEM,2,9
FLST,3,8,5,ORDE,2
FITEM,3,1
FITEM,3,-8
ASBA,P51X,P51X, , ,KEEP
AADD,2,6,3,7
! +++++++ Výběr prvku
ET,1,PLANE13 ! nastaveni axisymetrie
!*
KEYOPT,1,1,0
KEYOPT,1,2,0
KEYOPT,1,3,1
KEYOPT,1,4,0
KEYOPT,1,5,0
!*
! +++++++ nastevni materialu
MPTEMP,,,,,,,,
MPTEMP,1,0
MPDATA,MURX,1,,1 ! hlinik
MPDATA,MURX,2,,800 ! ocel
MPDATA,MURX,3,,1 ! měd
MPDATA,MURX,4,,1 ! vzduch
! +++++++ prirazeni materialu
AESIZE,4,1 !nastaveni velikosti
AMESH,4
mat,2
AESIZE,9,1 !nastaveni velikosti
AMESH,9
AESIZE,1,1
AMESH,1
mat,3
AESIZE,5,1
AMESH,5
mat,4
AESIZE,12,1
AMESH,12
AESIZE,8,0.05
AMESH,8
AESIZE,10,1
AMESH,10
AESIZE,9,1
AMESH,9
AESIZE,11,1
AMESH,11
! +++++++ Current density
BFA,5,JS, , ,1000,0
! +++++++ mAGNETIC FLUX PARALEL
LPLOT
FLST,2,6,4,ORDE,5
FITEM,2,1
FITEM,2,34
FITEM,2,-36
FITEM,2,44
FITEM,2,-45
DL,P51X, ,ASYM
! +++++++ Solve
/SOL
MAGSOLV,0,3,0.001, ,25,
FINISH
/POST1
PLF2D,27,0,10,1