【正文】
its !medium is characterized by material 1 which !in turn has relative permeability, mur, and !electric resistivity, rho. ! ! FINISH! finish preprocessing ! /SOLU! Enter ANSYS solution processing !Assemble and solve equation system for the DOFs !We prescribe boundary conditions and loads here !but you can provide them in /PREP7 if you wish. ! ! *** Apply Fluxparallel boundary condition ! ASEL,S,LOC,X,d! Select areas at the opening of the slot, x=d !The first step in constraining is to select areas !where the boundary condition apply. ANSYS provides !several other ways for selection. A in ASEL refers !to areas (elements, volumes etc. can be selected.) !ASEL,S means select from all areas. There are ways !to unselect, reselect, etc. LOC defines the criterion !of selection in this case the location. You could !select, for example, according to area numbers. !LOC,X pletes the criterion by specifying the !coordinate. The number/parameter in the next slot !is the value, d in our case, for the criterion. ! ASEL,A,LOC,Z,0! Add areas at Z=0 to the selected set. ASEL,A,LOC,Z,l! Add areas at Z=l to the selected set. ! DA,ALL,AZ,0! Apply a zero constraint on selected areas to specify a !fluxparallel condition. This means that !the pertinent DOFs are no longer unknowns. Their !value is set by the DA mand. ALL means the mand !applies to all selected nodes. You could apply it !to a specific area. AZ tells which DOF the constraint !applies. At solution time, the boundary conditions !are transferred from the solid model to the nodes of !the underlying mesh. ANSYS allows many DOFs for a node. !The magic edge element has AZ at side nodes and !VOLT at the corner nodes. The number in the next slot, !0 in our case, is the specified value. ! ASEL,ALL! Select all areas. ! ! *** prescribe current density body load ! BFE,ALL,JS,jx,jy,jz ! apply current density on all selected elements ! ! *** solve equation ! SOLVE! With the created model, prescribed loads and !constraints, ANSYS assembles and solves an !equation system. The solution is carried out !by frontalsolver technique as a default. You can !apply conjugate gradient or sparse solvers, too, !but how is not discussed here. ! FINI! Finish solution processing ! ! *** Extract solution ! /POST1! Enter ANSYS postprocessor to extract solution data ! BFELIST! List applied body loads of the model ! ! ! PRESOL,H! print magic field at the corner nodes of elements /COM ! PRESOL,B! print flux density at the corner nodes of elements /COM ! /COM ! PRESOL,JT! print current density at element centroids /COM ! PRESOL,JHEAT! print Joule heat per volume in elements /COM ! PRESOL,FMAG! print magic force at the corner nodes of elements ! ! /VIEW,1,1,.4,.5! change the viewing angle for displays /COM PLNSOL,H,SUM! Plot the H from the elements are averaged !at the nodes for display multiple materials, !averaging does not occur across material discontinuities if !powergraphics is active (default). /COM PLNSOL,B,SUM! Display the flux density, B (magnitude) /COM PLVECT,H,VECT,NODE,ON! Display as a vector the field intensity, H at !nodes of the model /COM ETABLE,fe,FMAG,X! Use the element table (ETABLE) option to store !data in a table for calculation purposes or print !data in a table format. Element table is convenient !when you need to sum data over the elements for !quantities such as energy, Joule losses, and forces. !Here the x ponent of element magic forces (FMAG) !are stored in table item, fe. ! ETABLE,hy,H,y! Store the y ponent of the magic field in !table item, hy. ! ETABLE,by,B,y! Store the y ponent of the flux density in !table item, by. ! ETABLE,jz,JT,z! Store the z ponent of the current density in !table item, jz. ! ETABLE,pd,JHEAT! Store the Joule heat rate per unit volume !(