Model induced currents due to change of magnetic flux density
Model induced currents due to change of magnetic flux density
(OP)
Hi,
I am currently trying to model: a bar permanent magnet moving toward a coil, where induced current will be created on the coil due to the change of magnetic flux density. Is it possible to do this in ANSYS? or Ansoft Workbench? (with transient of harmonic analysis)
Thanks!!!
I am currently trying to model: a bar permanent magnet moving toward a coil, where induced current will be created on the coil due to the change of magnetic flux density. Is it possible to do this in ANSYS? or Ansoft Workbench? (with transient of harmonic analysis)
Thanks!!!





RE: Model induced currents due to change of magnetic flux density
I attached my codes below:
**************************************
/TITLE,2D magnet-coil transient analysis
/PREP7
EMUNITS,MKS
! *********************************** Dimension
a = 0.01 ! Dimension of the magnet
b = 0.01 ! Dimension of coil
d = 0.01 ! Distance between magnet and coil
acoil = 0.001*0001 ! cross-section of coil
n = 20 ! coil turns
l = 0.05 ! Dimension of the surrounding air
VELOX = 0 ! coil velocity x-direction
VELOY = 0.5 ! coil velocity y-direction
! ****************************************************************** Element
! Element #1 - air and magnet
ET,1,PLANE53
KEYOPT,1,1,0 ! AZ degree of freedom
KEYOPT,1,2,0 ! no velocity effects
! Element #2 - coil
ET,2,PLANE53
KEYOPT,2,1,4 ! AZ degreen of freedom, VOLT, EMF
KEYOPT,2,2,1 ! velocity effects
! ************************************* Material
! Material #1 - Air
MP,MURX,1,1 ! Air: Material #1 (Permeability = 1)
! Material #2 - Magnet
MP,MURX,2,1000 ! Magnet: Material #2 (Permeability = 1)
MP,RSVX,2,1E-9 ! Electrical resistivity
MP,MGYY,2,1E6 ! Coercive force component, Y direction
! Material #3 - Coil
MP,MURX,3,1
R,3,acoil,n,,1,.95,VELOX ! coil constants (area,turns,leng,dirz,fill factor)
RMORE,VELOY ! coil constants (velox,veloy)
! ************************************* Geometries
/PNUM,AREA,1
! Air shape
RECTNG,0,2*l+a,-a-b-d-l,a+b+d+l
! Magnet shape
RECTNG,l,l+a,0,a
! Coil shape
Rectng,l,l+a,a+d,a+d+b
! Create new areas
aovlap,all
numcmp,area ! Re-numbering area
aplot ! Area #1 - magnet
! Area #2 - coil
! Area #3 - air
! ******************************** Attributes
! Air
ASEL,S,AREA,,3 ! Select area #3 (air)
AATT,2,1,1 ! Assign material #1 with element #2
! Magnet
ASEL,S,AREA,,1 ! Select area #1 (magnet)
AATT,1,1,1 ! Assign material #1 with element #2
! Coil
ASEL,S,AREA,,2 ! Select area #2 (coil)
AATT,3,1,2 ! Assign material #1 with element #2
/pnum,mat,1
ALLSEL,ALL
APLOT
!************************************* Define load
ALLSEL
LSEL,S,EXT
D,ALL,AZ,0
! ******************************************* Mesh
ALLSEL
SMRT,1
AMESH,ALL
FINISH
! ************************************** Solve
/SOLU
ANTYP,TRANS
TIME,.01
DELTIM,.002
OUTRES,ALL,ALL
SOLV
TIME,.03
NSUBST,1
SOLVE
Thanks so much in advances!!!
TIME,.03
DELTIM,.005
TIME,.06
NSUBST,1
SOLVE
FINISH