Professional Documents
Culture Documents
ANSYS, Inc.
Southpointe
275 Technology Drive
Canonsburg, PA 15317
ansysinfo@ansys.com
http://www.ansys.com
(T) 724-746-3304
(F) 724-514-9494
Release 15.0
November 2013
ANSYS, Inc. is
certified to ISO
9001:2008.
Disclaimer Notice
THIS ANSYS SOFTWARE PRODUCT AND PROGRAM DOCUMENTATION INCLUDE TRADE SECRETS AND ARE CONFIDENTIAL AND PROPRIETARY PRODUCTS OF ANSYS, INC., ITS SUBSIDIARIES, OR LICENSORS. The software products
and documentation are furnished by ANSYS, Inc., its subsidiaries, or affiliates under a software license agreement
that contains provisions concerning non-disclosure, copying, length and nature of use, compliance with exporting
laws, warranties, disclaimers, limitations of liability, and remedies, and other provisions. The software products
and documentation may be used, disclosed, transferred, or copied only in accordance with the terms and conditions
of that software license agreement.
ANSYS, Inc. is certified to ISO 9001:2008.
Third-Party Software
See the legal information in the product help files for the complete Legal Notice for ANSYS proprietary software
and third-party software. If you are unable to access the Legal Notice, please contact ANSYS, Inc.
Published in the U.S.A.
Table of Contents
1. Overview of Magnetic Field Analysis ...................................................................................................... 1
1.1. How Mechanical APDL Handles Magnetic Analysis ............................................................................ 2
1.2. Types of Static, Harmonic, and Transient Magnetic Analysis ................................................................ 9
1.3. Comparing Magnetic Formulations ................................................................................................. 10
1.3.1. 2-D Versus 3-D Magnetic Analysis ........................................................................................... 10
1.3.2. What Is the Magnetic Scalar Potential Formulation? ................................................................ 10
1.3.3. What Is the Magnetic Vector Potential Formulation? ................................................................ 11
1.3.4. What Is the Edge Formulation? ............................................................................................... 11
1.3.5. Comparing Formulations ........................................................................................................ 11
1.3.6. Static Analysis ........................................................................................................................ 12
1.4. Summary of Electromagnetic Elements ........................................................................................... 13
1.5. GUI Paths and Command Syntax ..................................................................................................... 15
2. 2-D Static Magnetic Analysis ................................................................................................................. 17
2.1. Elements Used in 2-D Static Magnetic Analysis ................................................................................ 17
2.2. Legacy vs. Current-Technology 2-D Magnetic Elements .................................................................... 19
2.3. Steps in a Static Magnetic Analysis .................................................................................................. 21
2.3.1. Creating the Physics Environment ........................................................................................... 21
2.3.1.1. Setting GUI Preferences ................................................................................................. 21
2.3.1.2. Defining an Analysis Title ............................................................................................... 21
2.3.1.3. Specifying Element Types and Options ........................................................................... 22
2.3.1.4. Defining the Element Coordinate System ....................................................................... 26
2.3.1.5. Defining Element Real Constants and a System of Units .................................................. 26
2.3.1.5.1. Choosing a System of Units for Your Analysis ......................................................... 27
2.3.1.6. Specifying Material Properties ....................................................................................... 27
2.3.1.6.1. Accessing Material Library Files ............................................................................. 27
2.3.1.6.2. Additional Guidelines for Defining Regional Material Properties and Real Constants ................................................................................................................................. 28
2.3.1.7. Source Conductor Regions ............................................................................................. 31
2.3.1.8. Moving Conductor Regions ........................................................................................... 31
2.3.1.9. Permanent Magnet Regions ........................................................................................... 32
2.3.1.10. Voltage-fed Stranded Coil Regions ............................................................................... 34
2.3.2. Building and Meshing the Model and Assigning Region Attributes .......................................... 36
2.3.3. Applying Boundary Conditions and Loads .............................................................................. 36
2.3.3.1. Boundary Conditions ..................................................................................................... 37
2.3.3.1.1. Magnetic vector potentials (AZ) ............................................................................ 37
2.3.4. Excitation Loads ..................................................................................................................... 38
2.3.4.1. Source Current Density (JS) ............................................................................................ 38
2.3.4.2. Voltage Drop (VLTG) ...................................................................................................... 38
2.3.5. Flags ...................................................................................................................................... 39
2.3.5.1. Force Flags .................................................................................................................... 39
2.3.5.2. Infinite Surface Flags (INF) .............................................................................................. 39
2.3.6. Other Loads ........................................................................................................................... 39
2.3.6.1. Current Segments (CSGX) .............................................................................................. 39
2.3.6.2. Maxwell Surfaces (MXWF) .............................................................................................. 40
2.3.6.3. Magnetic Virtual Displacements (MVDI) .......................................................................... 40
2.3.7. Solving the Analysis ............................................................................................................... 40
2.3.8. Defining the Analysis Type ...................................................................................................... 40
2.3.9. Defining Analysis Options ...................................................................................................... 41
2.3.10. Saving a Backup Copy of the Database .................................................................................. 41
2.3.11. Starting the Solution ............................................................................................................ 41
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
iii
iv
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
vi
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
vii
viii
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
ix
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
xi
xii
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
xiii
xiv
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
List of Figures
1.1. Current-Fed Stranded Source - Current Density Known ............................................................................ 3
1.2. SOURC36 Current-fed Stranded Conductor ............................................................................................. 3
1.3. Current-Fed Solid Conductor - Current Known ......................................................................................... 4
1.4. Voltage-Fed Solid Conductor - Voltage Known ......................................................................................... 4
1.5. Circuit-Fed Solid Conductor .................................................................................................................... 4
2.1. B-H and Reluctivity vs. B Squared Curves ............................................................................................... 30
2.2. Applicable Configurations for Considering Velocity Effects of Moving Bodies ......................................... 31
2.3. Actual and ANSYS (Shifted) Demagnetization Curves ............................................................................. 33
2.4. B-H Curve for Bar Magnet Example ........................................................................................................ 34
2.5. Stranded Coil Cross-Section .................................................................................................................. 35
2.6. MVDI Specifications for Virtual Work Force Calculation ........................................................................... 40
2.7. Convergence Norms Displayed by the Graphical Solution Tracking (GST) Feature ................................... 42
2.8. Diagram of a Solenoid Actuator ............................................................................................................. 51
2.9. Element Plot Showing Independent Meshes .......................................................................................... 54
2.10. Flux Line Plot ...................................................................................................................................... 56
2.11. Flux Density Plot ................................................................................................................................. 57
2.12. Finite Element Model .......................................................................................................................... 58
2.13. Current Density in the Conductive Cylinder ......................................................................................... 61
3.1. Stranded Coil Cross-Section .................................................................................................................. 67
3.2. Physical Region With Optional Terminal Conditions for Conductors ........................................................ 68
3.3. Relationship Between Real / Imaginary Components and Amplitude / Phase Angle ................................ 75
3.4. MVDI Specifications for Virtual Work Force Calculation ........................................................................... 78
3.5. Convergence Norms Displayed by the Graphical Solution Tracking (GST) Feature ................................... 83
3.6. 2-D Nonlinear Harmonic Analysis .......................................................................................................... 95
4.1. Examples of Load-Versus-Time Curves ................................................................................................. 102
4.2. Diagram of a Solenoid Actuator ........................................................................................................... 111
5.1. Connected Domains ........................................................................................................................... 127
5.2. B-H and mu-H Curves With Extrapolation ............................................................................................. 131
5.3. A Coil Source Represented by SOURC36 Elements ................................................................................ 134
5.4. Solenoid Actuator ............................................................................................................................... 146
6.1. Physical Region With Optional Terminal Conditions for Conductors ...................................................... 159
6.2. Reluctance Force ................................................................................................................................. 166
6.3. Coil Constants for 1/8 Symmetry Sector of Circular Stranded Coil ........................................................ 168
6.4. Current-Carrying Conductor in a Slot Within an Iron Region ................................................................. 170
6.5. Volume Model of the Conductor .......................................................................................................... 170
6.6. Finite Element Model of the Magnets .................................................................................................. 174
6.7. Magnetic Forces vs. Upper Magnet Displacement ................................................................................ 175
6.8. Magnetic Field Distribution in the Magnets ......................................................................................... 176
6.9. Magnetic Force Distribution in the Magnets ........................................................................................ 177
6.10. Finite Element Model of the Two-Plate Hall Sensor ............................................................................. 180
6.11. Electric Potential Distribution in the Plates ......................................................................................... 181
6.12. Vector Plot of Applied Magnetic Field on the Plates ............................................................................ 182
7.1. Volume Model of the Conductor .......................................................................................................... 193
7.2. Finite Element Model of the Ferromagnetic Plate and Coil .................................................................... 196
7.3. Eddy Currents Distribution in the Plate (Real Solution) ......................................................................... 197
7.4. Eddy Currents Distribution in the Plate (Imaginary Solution) ................................................................ 197
7.5. Temperature Distribution in the Plate ................................................................................................. 198
7.6. Finite Element Model of the Lossy Capacitor ........................................................................................ 201
7.7. Electric Field in the Capacitor .............................................................................................................. 201
7.8. Magnetic Field Induced by the Conduction Current ............................................................................. 202
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
xv
xvi
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
xvii
xviii
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
List of Tables
1.1. Formulation Comparison ........................................................................................................................ 5
1.2. 3-D Edge Formulation ............................................................................................................................. 5
1.3. 2-D MVP Formulation .............................................................................................................................. 6
1.4. 3-D Nodal MVP Formulation .................................................................................................................... 7
1.5. 3-D Nodal MSP Formulation .................................................................................................................... 9
1.6. List of Electromagnetic Elements ........................................................................................................... 14
2.1. 2-D Solid Elements ................................................................................................................................ 18
2.2. Far-Field Elements ................................................................................................................................. 18
2.3. General Circuit Elements ....................................................................................................................... 19
2.4. Contact Elements .................................................................................................................................. 19
2.5. Voltage-Fed Stranded Coil Input Data Mapping ..................................................................................... 48
2.6. Circuit-Coupled Stranded Coil Input Data Mapping ................................................................................ 48
2.7. Real Constant Comparison .................................................................................................................... 48
3.1. 2-D Solid Elements ................................................................................................................................ 64
3.2. Far-Field Elements ................................................................................................................................. 65
3.3. General Circuit Elements ....................................................................................................................... 65
3.4. Contact Elements .................................................................................................................................. 65
3.5. Postprocessing GUI Paths and Commands ............................................................................................. 84
4.1. 2-D Solid Elements ................................................................................................................................ 99
4.2. Far-Field Elements ............................................................................................................................... 100
4.3. General Circuit Elements ..................................................................................................................... 100
4.4. Contact Elements ................................................................................................................................ 100
5.1. 3-D Solid Elements .............................................................................................................................. 125
5.2. 3-D Source Elements ........................................................................................................................... 126
5.3. 3-D Infinite Elements ........................................................................................................................... 126
5.4. Contact Elements ................................................................................................................................ 126
6.1. 3D Solid Edge-Based Elements .......................................................................................................... 158
7.1. Postprocessing Commands ................................................................................................................. 190
7.2. Coil Voltage and EMF ( = 100000 and NS/NP = 200) ............................................................................ 207
7.3. Secondary and Primary Coil Voltage Ratio as a Function of Core Permeability (NS/NP = 200) ............... 209
7.4. Secondary and Primary Coil Voltage Ratio as a Function of Ratio of Turns NS/NP ( = 100000) ................ 210
11.1. Application of Electric and Magnetic Macros ...................................................................................... 256
12.1. 2-D Far-Field Elements ....................................................................................................................... 274
12.2. 3-D Far-Field Elements ....................................................................................................................... 274
13.1. Conducting Bar Elements .................................................................................................................. 282
13.2. 2-D Planar Elements .......................................................................................................................... 282
13.3. 3-D Solid Elements ............................................................................................................................ 282
13.4. Shell Elements .................................................................................................................................. 283
13.5. Specialty Elements ............................................................................................................................ 283
13.6. General Circuit Elements ................................................................................................................... 284
13.7. Reaction Solutions for Elements with VOLT DOF ................................................................................. 284
13.8. Current Densities in Low-Frequency Analyses .................................................................................... 287
13.9. Elements Used in a Steady-State Analysis ........................................................................................... 288
13.10. Reviewing Results ........................................................................................................................... 291
13.11. ETABLE Results ................................................................................................................................ 292
13.12. Elements Used in a Current-Based Harmonic Analysis [1] ................................................................. 296
13.13. Elements Used in a Charge-Based Harmonic Analysis [1] .................................................................. 296
13.14. Load Types ...................................................................................................................................... 298
13.15. Command Labels ............................................................................................................................ 300
13.16. Defining Variables ........................................................................................................................... 302
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
xix
xx
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Transformers
Waveguides
Solenoid actuators
Resonant cavities
Electric motors
Connectors
Antenna radiation
Filters
Cyclotrons
Typical quantities of interest in a magnetic analysis are:
Magnetic flux density
Power loss
Flux leakage
S-parameters
Impedance
Quality factor
Inductance
Return loss
Eddy currents
Eigenfrequencies
Magnetic fields may exist as a result of an electric current, a permanent magnet, or an applied external
field.
Solid
conductor
J
Air:
Nonconductive
Nonpermeable
m
s=0
Stranded
conductor
J
Soft
magnetic
permeable
m
Hard
magnetic
permeable
mM
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
J = ni
A
Where:
J = current density
n = number of turns
i = current in a filament
A = coil cross section area
In this case, the current density is specified on each element via body force loading (BFE,,JS).
Figure 1.2: SOURC36 Current-fed Stranded Conductor
y
y
x
CUR
J
I
DY
CUR
DY
DZ
DZ
a) Type 1 - Coil
b) Type 2 - Bar
y
DY
CUR
x
I
K
DZ
z
c) Type 3 - Arc
In this case, the current loading is fed in via SOURC36 coil primitives. The coil primitives are simple
predefined geometric shapes that you use to locate and prescribe current, without the need to physically
create a finite element model and mesh of the coil domain.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
It
VOLT = 0
F,,AMPS
Couple VOLT
D
ad
R U124 r R U125
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Conductor Model
Dim.
Applications
Element
Types
Analysis
Type
MSP
SOURC36 current-fed
stranded conductor
- coil not meshed,
underlying region
meshed
3-D
Magnetostatic
without eddy current.
SOLID5,
SOLID96,
SOLID98
Static
Nodal
MVP
Current, voltage, or
circuit-fed solid conductor - Coil meshed
as part of model
2-D, 3D
Magnetostatic, eddy
current.
SOLID97,
PLANE53,
PLANE13,
PLANE233
Static, harmonic,
transient
EdgeBased
3-D
Magnetostatic, eddy
current, magnetic allowed.
SOLID236,
SOLID237
Static, harmonic,
transient
Current
Magnetic
Material
Props
Non-magnetic
(air, copper, aluminum)
None
Soft Magnetic
(typically iron or
steel)
Hard Magnetic
(such as Alnico or
samarium cobalt)
DOFs
Current
Loading
MURX (Y,Z)
=1
AZ
N/A
None
MURX (Y,Z)
> 1 (linear)
or B-H curve
(nonlinear)
AZ
N/A
None
MGXX(YY,ZZ)[1],
MURX (Y,Z)
> 1 (linear)
or B-H curve
(nonlinear)
AZ
N/A
MGXX(YY,ZZ)[1],RSVX, RSVY,
MURX (Y,Z)
RSVZ
> 1 (linear)
or B-H curve
(nonlinear)
AZ
BFE,,JS
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Notes
Current
Magnetic
Material
Props
Solid Conductor
(typically copper,
aluminum, etc.)
Current
(neglecting eddy
current)
Stranded Coil
DOFs
Current
Loading
Notes
MGXX(YY,ZZ)[1],RSVX, RSVY,
MURX (Y,Z)
RSVZ
> 1 (linear)
or B-H curve
(nonlinear)
AZ,
VOLT
F,,AMPS,
D,,VOLT,
or circuit
loading
Uses SOLID236 or
SOLID237
with KEYOPT(1) = 1
in a static
analysis and
with KEYOPT(1) = 1
and KEYOPT(5) = 1
in a harmonic or transient analysis.
Eddy current
MGXX(YY,ZZ)[1],RSVX, RSVY,
MURX (Y,Z)
RSVZ
> 1 (linear)
or B-H curve
(nonlinear)
AZ,
VOLT
F,,AMPS,
D,,VOLT
Uses SOLID236 or
SOLID237
with KEYOPT(1) = 1
Current
(neglecting eddy
current)
MURX (Y,Z)
> 1 (linear)
or B-H curve
(nonlinear)
AZ,
VOLT,
EMF
F,,AMPS,
D,,VOLT,
or circuit
loading
Uses SOLID236 or
SOLID237
with KEYOPT(1) = 1
RSVX
Current
Magnetic
Material
Props
Non-magnetic
(air, copper, aluminum)
None
MURX (Y,Z)
=1
AZ
N/A
Soft Magnetic
(typically iron or
steel)
None
MURX (Y,Z)
> 1 (linear)
or B-H curve
(nonlinear)
AZ
N/A
Hard Magnetic
(such as Alnico or
samarium cobalt)
None
MGXX(YY,ZZ)[1],
MURX (Y,Z)
> 1 (linear)
or B-H curve
(nonlinear)
AZ
N/A
DOFs Current
Loading
Notes
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Current
Magnetic
Material
Props
DOFs Current
Loading
Notes
MGXX(YY,ZZ)[1],
MURX (Y,Z)
> 1 (linear)
or B-H curve
(nonlinear)
AZ
BFE,,JS
Solid Conductor
(typically copper,
aluminum, etc.)
Eddy current
MGXX(YY,ZZ)[1],RSVX, RSVY,
MURX (Y,Z)
RSVZ
> 1 (linear)
or B-H curve
(nonlinear)
AZ,
VOLT
F,,AMPS
or circuit
loading
Eddy current
MGXX(YY,ZZ)[1],RSVX, RSVY,
MURX (Y,Z)
RSVZ
> 1 (linear)
or B-H curve
(nonlinear)
AZ,
circuitCURR, coupled
EMF
Uses
PLANE53
with KEYOPT(1) = 4
Stranded Coilvoltage-fed
Current
(neglecting eddy
current)
MURX
RSVX
AZ,
voltageCURR fed
Uses
PLANE53
with KEYOPT(1) = 2
Current
(neglecting eddy
current)
MURX
RSVX
AZ,
circuitCURR, coupled
EMF
Uses
PLANE53
with KEYOPT(1) = 3
Stranded Coil
Current
(neglecting eddy
current)
MURX (Y,Z)
> 1 (linear)
or B-H curve
(nonlinear)
RSVX
AZ,
F,,AMPS,
VOLT, D,,VOLT,
EMF or circuit
loading
Uses
PLANE233
with KEYOPT(1) = 2
Uses
PLANE53
with KEYOPT(1) =
1,PLANE13
with KEYOPT(1) = 6,
or PLANE233
with KEYOPT(1) = 1
Current
Magnetic
Material
Props
Non-magnetic
(air, copper, aluminum)
None
MURX (Y,Z)
=1
DOFs Current
Loading
AX,
AY,
AZ
Notes
N/A
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Current
Magnetic
Material
Props
Soft Magnetic
(typically iron or
steel)
None
MURX (Y,Z)
> 1 (linear)
or B-H curve
(nonlinear)
AX,
AY,
AZ
N/A
Hard Magnetic
(such as Alnico or
samarium cobalt)
None
MGXX(YY,ZZ)[1],
MURX (Y, Z)
> 1 (linear)
or B-H curve
(nonlinear)
AX,
AY,
AZ
N/A
MGXX(YY,ZZ)[1],RSVX, RSVY,
MURX (Y, Z)
RSVZ
> 1 (linear)
or B-H curve
(nonlinear)
AX,
AY,
AZ,
VOLT
BFE,,JS
Solid Conductor
(typically copper,
aluminum, etc.)
Current
(neglecting eddy
current)
MGXX(YY,ZZ)[1],RSVX, RSVY,
MURX (Y, Z)
RSVZ
> 1 (linear)
or B-H curve
(nonlinear)
AX,
AY,
AZ,
VOLT
F,,AMPS
or circuit
loading
Eddy current
MGXX(YY,ZZ)[1],RSVX, RSVY,
MURX (Y, Z)
RSVZ
> 1 (linear)
or B-H curve
(nonlinear)
AZ,
VOLT
F,,AMPS,
D,,VOLT
Eddy current
MGXX(YY,ZZ)[1],RSVX, RSVY,
MURX (Y, Z)
RSVZ
> 1 (linear)
or B-H curve
(nonlinear)
AX,
circuitAY,
coupled
AX,
VOLT,
EMF
Current
(neglecting eddy
current)
MURX
RSVX
AX,
voltageAY,
fed
AX,
CURR
Current
(neglecting eddy
current)
MURX
RSVX
AX,
circuitAY,
coupled
AX,
CURR,
EMF
DOFs Current
Loading
Notes
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Current
Magnetic
Material
Props
Non-magnetic
(air, copper, aluminum)
None
MURX (Y,Z)
=1
MAG
N/A
Soft Magnetic
(typically iron or
steel)
None
MURX (Y,Z)
> 1 (linear)
or B-H curve
(nonlinear)
MAG
N/A
Hard Magnetic
(such as Alnico or
samarium cobalt)
None
MGXX(YY,ZZ)[1],
MURX (Y, Z)
> 1 (linear)
or B-H curve
(nonlinear)
MAG
N/A
Any of
above
N/A
MAG
SOURC36
Solid Conductor
(typically copper,
aluminum, etc.)
Any of
above
N/A
MAG
SOURC36
Current
(neglecting eddy
current)
DOFs Current
Loading
Notes
Uses KEYOPT(1) = 1
or 9 on SOLID5 or SOLID98 only
1. Coercive force in terms of vector components, MGXX, MGYY, MGZZ. Polarization direction is determined
by coercion force (magnetization) terms MGXX, MGYY and MGZZ in conjunction with the element coordinate system.
10
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
11
Note
You must also switch boundary conditions (flux-normal-flux-parallel).
The following are important additional points to remember about accuracy:
Energy is the most accurate quantity.
The finite element method is a variational procedure minimizing or maximizing the energy stored in
the studied domain. Thus, energy is the most accurate single number characterizing a solution.
Monitoring the convergence of energy is a prudent way to check accuracy.
The MSP and MVP or edge formulations converge monotonously to the exact energy from above
and below, respectively. Therefore, without knowing the exact energy, you can obtain a good accuracy
measure by checking the energy difference between MSP and MVP or edge solutions. If you refine
the mesh, this energy difference must theoretically decrease.
The LMATRIX command macro computes the inductance matrix of a coil system based on the stored
energy. Therefore, the difference between MSP and MVP or edge inductance coefficients is also a
good accuracy measure.
In accuracy critical applications, rely on centroidal field values.
Field quantities are less accurate than nodal solutions because they are obtained from derivatives of
the potential solution. The derivatives are first evaluated at the element integration points then extrapolated to corner nodes. Consequently, integration point field values are more reliable than corner
data. Centroidal field values are averaged integration point values.
The finite element variational procedure converges in the energy space. In most situations the energy
convergence implies convergence of local field values. However, field values at special locations, like
corners and edges, may not converge.
Continuity conditions are a reasonable measure of solution accuracy.
The satisfaction of continuity conditions is a reasonable measure of solution accuracy. The MSP and
MVP or edge formulations must satisfy continuity of tangential magnetic field, Ht, and normal flux
density, Bn, respectively. Therefore, the difference in Ht and Bn continuity is a good measure of MSP
and MVP or edge convergence, respectively.
12
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
13
Dim.
Element Type
No.
Shape
of
Nodes
PLANE53
2-D
SOURC36
3-D
Current source
n/a
SOLID96
3-D
Brick
SOLID97
3-D
Brick
SOLID236
3-D
Low-frequency edge
20
Brick
AZ (edge), AZ (edge)-VOLT
SOLID237
3-D
Low-frequency edge
10
Tet
AZ (edge), AZ (edge)-VOLT
CIRCU124
1-D
Circuit
26
Line
CIRCU125
1-D
Diode
Line
VOLT
PLANE121
2-D
Electrostatic solid
Quad VOLT
SOLID122
3-D
Electrostatic solid
20
Brick
VOLT
SOLID123
3-D
Electrostatic solid
10
Tet
VOLT
INFIN9
2-D
Infinite boundary
Line
AZ-TEMP
INFIN110
2-D
Infinite solid
INFIN47
3-D
Infinite boundary
INFIN111
3-D
Infinite solid
20
Brick
LINK68
3-D
Thermoelectric bar
Line
TEMP-VOLT
SHELL157
3-D
Thermoelectric shell
Quad TEMP-VOLT
PLANE13
2-D
Coupled solid
SOLID5
3-D
Coupled solid
Brick
SOLID98
3-D
Coupled tetrahedral
10
Tet
CONTA171
2-D
Surface-to-surface contact
n/a
AZ,VOLT
CONTA172
2-D
Surface-to-surface contact
n/a
AZ,VOLT
14
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Dim.
Element Type
No.
Shape
of
Nodes
CONTA173
3-D
Surface-to-surface contact
n/a
MAG,VOLT
CONTA174
3-D
Surface-to-surface contact
n/a
MAG,VOLT
CONTA175
2Node-to-surface contact
D/3D
n/a
AZ, MAG,VOLT
TARGE169
2-D
Target segment
n/a
n/a
n/a
TARGE170
3-D
Target segment
n/a
n/a
n/a
PLANE230
2-D
Electric solid
Quad VOLT
SOLID231
3-D
Electric solid
20
Brick
VOLT
SOLID232
3-D
Electric solid
10
Tet
VOLT
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
15
16
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
17
Dimens.
Shape or Characteristic
DOFs
PLANE13
2-D
4-node quadrilateral
or 3-node triangular
PLANE53
2-D
PLANE233 2-D
Notes
8-node quadrilateral
or 6-node triangular
8-node quadrilateral
or 6-node triangular
Up to three at each
node; these can be
magnetic vector potential (AZ), electric potential/voltage drop or
time-integrated electric
potential/voltage drop
(VOLT), electromotive
force or time-integrated
electromotive force
(EMF)
Legacy element
Supported for cyclic symmetry (periodic) analysis.
Legacy element
Supported for cyclic symmetry (periodic) analysis.
Current-technology
element
[1]
Supported for cyclic symmetry (periodic) analysis.
1. Whenever possible, ANSYS, Inc. recommends using PLANE233 (the current-technology electromagnetic
element) rather than PLANE13 or PLANE53 (legacy magnetic elements). See Legacy vs. Current-Technology
2-D Magnetic Elements (p. 19) for a list of the capabilities that are only available with PLANE233. PLANE233
does not support nonlinear harmonic analysis, velocity effects, or LMATRIX calculations.
Some of the procedural steps in this chapter are not applicable to PLANE233. For information on
the differences between PLANE233 and PLANE53 (and PLANE13), see Legacy vs. Current-Technology
2-D Magnetic Elements (p. 19).
Table 2.2: Far-Field Elements
Element
Dimens.
Shape or Characteristic
INFIN9
2-D
2-node line
18
DOFs
Magnetic vector potential (AZ)
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Dimens.
Shape or Characteristic
DOFs
INFIN110
2-D
Dimens.
Shape or Characteristic
CIRCU124
None
DOFs
Notes
Dimens.
Shape or Characteristic
DOFs
Notes
TARGE169 2-D
Target segment
n/a
CONTA171
2-D
AZ
CONTA172
2-D
AZ
CONTA175
2-D
Node-to-surface contact
element (1-node)
AZ
The 2-D elements use a magnetic vector potential formulation. (In other words, the degrees of freedom
used to solve the problem are vector potentials.) Because the elements are 2-D, each node has only
one vector potential degree of freedom: AZ (vector potential in the Z direction). The electric potential
and time-integrated electric potential (VOLT) is used for current-fed massive conductors and for enforcing
terminal conditions on conductors.
When using PLANE53, an additional degree of freedom, current (CURR), is used in the source coil region
to make voltage loads easier to apply. CURR, representing the current flowing in each turn of the coil
winding, is used for voltage-fed coils and circuit coupling. Applying a voltage or current load through
an external circuit requires the AZ, CURR, and EMF (electromotive force drop or potential drop) degrees
of freedom along with the CIRCU124 element. (See the Coupled-Field Analysis Guide for more information
about electromagnetic-circuit coupling.)
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
19
20
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
21
DOF: AZ
Material Properties: MUr (MURX), rho (RSVX) (if Joule heat losses
are desired)
DOF: AZ
Iron
DOF: AZ
Material Properties: MUr (MURX) or B-H curve (TB command);
Hc (coercive force in terms of vector components, MGXX,
MGYY)
Note
Polarization direction is determined by coercion force (magnetization) terms MGXX and MGYY
in conjunction with the element coordinate system.
rea ""
Tur s " "
JS = ni
A
(ource
Curre t
De sty)
22
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
DOF: AZ
Material Properties: MUr (MURX)
Special characteristics: Apply source current density, JS (using
BFE,,JS command)
Note
Assumes a stranded insulated coil producing a constant DC current, unaffected by surrounding
conditions. You can calculate current density from the number of coil turns, the current per
turn, and the cross-section area of the coil.
CURR
+
V
-
DOFs:
AZ, CURR (with PLANE53)
AZ, VOLT, EMF (with PLANE233)
Material Properties:
MUr (MURX), rho (RSVX)
Real constants:
CARE, TURN, LENG, DIRZ, FILL (with PLANE53)
SC, NC, RAD, TZ, R, SYM (with PLANE233)
Special characteristics:
Apply voltage drop (VLTG) via BFE command.
Couple CURR DOFs in region.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
23
OMEGAZ
y
Global
origin
(X C,Y C)
V
S
S
Solid Rotor Induction Machine
DOFs:
AZ
Material Properties:
MUr (MURX), or B-H curve (TB command), rho (RSVX)
Real constants:
VELOX, VELOY, OMEGAZ, XLOC, YLOC (with PLANE53)
Special characteristics:
Apply velocities VELOX, VELOY, OMEGAZ via BF,,VELO
command (with PLANE233)
Note
Moving body must not undergo spatial change in the "material". See Step 1d for more details.
24
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
PLANE13 / 53
TARGE169
Exploded view
of interface
PLANE13 / 53
CONTAC171 / 172
DOFs: AZ
Contact elements: TARGE169, CONTA171, CONTA172, CONTA175
CONTA17x KEYOPTS: KEYOPT(1)=7 (AZ), KEYOPT(2)=2 (MPC
approach), KEYOPT(4) = 1 or 2 (n/a for CONTA175), KEYOPT(12)=5
Use PLANE13 , PLANE53, or PLANE233 elements to represent all interior regions of your model magnetic
(permeable) regions, current-conducting regions, permanent (i.e., magnet) regions, and air (free space),
etc.
To model an unbounded problem domain, use of either INFIN9, the two-node boundary element for
planar analysis, or INFIN110, the four- or eight-node boundary element, for planar or axisymmetric
analyses is recommended. INFIN9 or INFIN110 can model the far-field decay in the magnetic field, and
will give better results than an assumed flux-parallel or flux-normal boundary condition.
Most element types have additional options known as KEYOPTS, which you use to modify element
characteristics. For example, element PLANE233 has the following KEYOPTS:
KEYOPT(1)
Selects the element's DOFs
KEYOPT(2)
Select coupling method between magnetic and electric degrees of freedom (KEYOPT(1) = 1); also define
the meaning of the VOLT degree of freedom
KEYOPT(3)
Selects plane or axisymmetric option
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
25
26
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Copper
emagCopper.SI_MPL
M3 steel
emagM3.SI_MPL
M54 steel
emagM54.SI_MPL
SA1010 steel
emagSa1010.SI_MPL
emagSilicon.SI_MPL
emagVanad.SI_MPL
The copper property presents temperature-dependent resistivity and relative permeability. All other
properties are B-H curves.
The property definitions in the material library specify properties "typical" for the materials listed. ANSYS,
Inc. has extrapolated these properties to cover high saturation conditions. Your actual material values
may differ from those supplied; therefore, you may need to modify the ANSYS material library files you use.
27
Note
The default system of units for ANSYS is MKS. The GUI lists only material library files
with the currently active units.
2. Define the material library read path for the material of interest. (You will need to know which directory path your system administrator has used to store the material library files.) To do so, use
either of the following:
Command(s): /MPLIB,READ,pathdata
GUI: Main Menu> Preprocessor> Material Props> Material Library> Library Path
3. Read the material library file into the database using one of the following:
Command(s): MPREAD,filename...LIB
GUI: Main Menu> Preprocessor> Material Props> Material Library> Import Library
Main Menu> Preprocessor> Loads> Load Step Opts> Other> Change Mat Props
Main Menu> Preprocessor> Material Props> Material Library> Import Library
To write changes to a material library file, perform these steps:
1. Edit the material property definition using either the MP command (Main Menu> Preprocessor>
Material Props> Material Models, Isotropic). Make sure that your revised definition includes a
material number and at least one material property value (for example, magnetic permeability or
MURX).
2. From the PREP7 preprocessor, issue the command shown below:
Command(s): MPWRITE,filename,,,LIB,MAT
GUI: Main Menu> Preprocessor> Material Props> Material Library> Export Library (material
library file)
2.3.1.6.2. Additional Guidelines for Defining Regional Material Properties and Real Constants
The next few paragraphs provide some guidelines for setting up physics regions for your model. In
addition, you may want to consult 2-D Harmonic Magnetic (AC) Analysis (p. 63); it pictures and describes
the regions that can exist within a 2-D model.
For air regions:
Specify a relative permeability of 1.0. To do so, use one of the following:
Command(s): MP,MURX
GUI: Main Menu> Preprocessor> Material Props> Material Models> Electromagnetics> Relative
Permeability> Constant
For permeable material regions:
For linear magnetic material, you can specify relative permeability values MURX, MURY, and MURZ using
the MP command. To specify a linear isotropic material, you only need to specify MURX. MURY and
MURZ default to MURX. Free-space permeability MUZRO is set by the EMUNIT command. Ignoring
permanent magnet effects, the B-H equations for linear magnetic materials are:
28
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
29
If a nonlinear B-H curve is specified without any relative permeability values, the B-H equations are:
Bx = F(|H|) / (|H|) (Hx)
By = F(|H|) / (|H|) (Hy)
Bz = F(|H|) / (|H|) (Hz)
where:
|H| = {(Hx)2 + (Hy)2 + (Hz)2}1/2
If a nonlinear B-H curve and relative permeability (MURX label) are specified for the same material, the
relative permeability will be used.
Orthotropic material relative permeability may be assigned using the MURX, MURY, and MURZ labels
on the MP command. A B-H curve may be used in conjunction with relative permeability to model
nonlinear effects along any one of the three orthogonal axes (such as for laminated iron material). To
invoke the usage of a B-H curve along one of the axes, set the relative permeability for that axis explicitly
to zero. For example, assume a B-H curve is defined for material number 2. You want to have the curve
active along the Y-axis, while assigning the X and Z axes a relative permeability of 1000. Your input
would be:
mp,murx,2,1000
mp,mury,2,0! read B-H curve for material 2
mp,murz,2,1000
If a B-H curve is specified along with zero permeability in two directions and a non-zero permeability
in one direction, the B-H curve will be applied to the two axes with zero permeability. For example, if
MURX and MURY are zero and MURZ is non-zero, the B-H equations are:
Bx = F(|H|) / (|H|) (Hx)
30
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
An invalid case would be a "slotted" rotor rotating at constant speed. In this case, the slots in the motor
present a discontinuity in material as the body rotates. Another invalid case would be a translating
conductor of finite width moving in a magnetic field. Typical valid applications are solid rotor induction
machines, linear induction machines, and eddy-current braking systems.
A static analysis requires input to specify the translational velocity or the rotational speed of the conductor. With PLANE53, activate velocity effects via element KEYOPT options. With PLANE233, specify
the velocities via the BF,,VELO command. Velocity effects can be suppressed (KEYOPT(5) = 2) if they are
undesirable in the electromagnetic elements adjacent to the domain with a specified velocity.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
31
2+
2+
represents the magnitude of the coercive force. The coercive force components are used to align the
magnetization axis of the magnet with the element coordinate system.
32
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The example below shows a bar magnet that lies along an axis 30o to the global x-Y plane. The elements
in the magnet are assumed to be assigned to a local element coordinate system whose X-axis is aligned
with the polarization direction. The example also shows the magnet's demagnetization characteristics
and the corresponding material property input.
/PREP7
HC=3000
BR=4000
! Coercive force
! Residual induction
THETA=30
! Permanent magnet orientation
*AFUN,DEG
! Angular parametric functions in degrees
MP,MGXX,2,HC! X component of coercive force
! B-H curve:
TB,BH,2
TBPT,DEFI,-3000+HC,0
TBPT,,-2800+HC,500
TBPT,,-2550+HC,1000
TBPT,,-2250+HC,1500
TBPT,,-2000+HC,1800
TBPT,,-1800+HC,2000
TBPT,,-1350+HC,2500
TBPT,,-900+HC,3000
TBPT,,-425+HC,3500
TBPT,,0+HC,4000
TBPLOT,BH,2
! Plot of B vs. H
Figure 2.4: B-H Curve for Bar Magnet Example (p. 34) shows the B-H curve for the permanent magnet
as created in the first quadrant. For more information, read the descriptions of the *AFUN, MP, TB, and
TBPLOT commands in the Command Reference.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
33
You can represent nonlinear orthotropic materials (laminated structures) by combining a single B-H
curve with orthotropic relative permeability. ANSYS will use the B-H curve in each element coordinate
system direction where a zero specified value of relative permeability is assigned. (For related information,
see the description of the ESYS command in the Command Reference.)
34
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Axis of symmetry
1 turn
X
When using the PLANE53 element, you need to specify the following real constants to completely describe
the stranded coil:
CARE
TURN
LENG
DIRZ
FILL
Coil fill factor. The fill factor represents the fraction of the coil crosssection that the coil windings occupy. This factor affects the coil
resistance (and you can use it to "adjust" coil resistance).
Note
Whenever possible, ANSYS, Inc. recommends using PLANE233 (the current-technology electromagnetic element) rather than PLANE53 (legacy magnetic element). For information on
using PLANE233, see 2-D Stranded Coil Analysis (p. 47).
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
35
2.3.2. Building and Meshing the Model and Assigning Region Attributes
To build your model, use the procedures discussed in the Modeling and Meshing Guide. Then, assign
attributes to each region in your model. (Attributes are the element types and options, element coordinate systems, real constants, and material properties you defined in Creating the Physics Environment (p. 21).)
To assign attributes via the GUI, perform these tasks:
1. Choose Main Menu> Preprocessor> Meshing> Mesh Attributes> Picked Areas. The Meshing Attributes dialog box appears.
2. Pick the area(s) comprising one of the regions in your model.
3. On the dialog box, specify the material number, real constant set number, element type number,
and element coordinate system to use for the area or areas. Click OK.
4. Repeat the process for the next region, the region after that, and so on until all regions have defined
attributes.
If you are modeling two contacted bodies, follow the steps for a magnetic contact analysis, explained
in Modeling Magnetic Contact.
To assign attributes via commands, issue the ASEL command to select a region's area or areas. Then,
issue these commands: MAT (specifies the material number), REAL (specifies a real constant set), TYPE
(assigns an element type number), and ESYS (assigns an element coordinate system). Issue the same
command sequence for each area until all model regions have assigned attributes. (The Command Reference contains detailed information about the commands.)
When you have assigned all regional attributes, mesh the model using the procedures explained in the
Modeling and Meshing Guide.
-Excitation-
-Flag-
-Other-
-Vector Poten-
-Curr Density-
Comp. Force
-Curr Segment-
On Keypoints
On Keypoints
-Infinite Surf-
On Keypoints
On Nodes
On Nodes
On Lines
On Nodes
-Flux Par'l-
On Elements
On Areas
-Maxwell Surf-
On Lines
Voltage Drop
On Nodes
On Lines
On Nodes
36
On Areas
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
-Excitation-
-Flag-
-Other-
-Flux Normal-
On Nodes
On Lines
-Virtual Disp-
On Nodes
On Keypoints
Periodic BCs*
On Nodes
Value of AZ
Flux-normal
Flux-parallel
Far-field
Periodic
For static analyses, use ANSYS' cyclic symmetry capability. For harmonic
or transient analyses, use the PERBC2D macro (described in Electric
and Magnetic Macros (p. 255)) to create odd or even symmetry periodic
boundary conditions on nodes (only). Or, use GUI path Main Menu>
Preprocessor> Loads> Define Loads> Apply> Magnetic> Boundary>
Vector Poten> Periodic BCs.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
37
Value of AZ
Flux-parallel boundary conditions force the flux to flow parallel to a surface, while flux-normal boundary
conditions force the flux to flow normal to a surface. You do not need to specify far-field zero boundary
conditions if you use boundary elements INFIN9 or INFIN110 to represent the "infinite" boundary of the
model. Use ANSYS' cyclic symmetry capability to apply periodic boundary conditions in models that
take advantage of periodic or repeating flux patterns. For an imposed magnetic field, specify the appropriate nonzero value of AZ.
38
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
Whenever possible, ANSYS, Inc. recommends using PLANE233 (the current-technology electromagnetic element) rather than PLANE53 (legacy magnetic element). For information on
using PLANE233, see 2-D Stranded Coil Analysis (p. 47).
2.3.5. Flags
2.3.5.1. Force Flags
When using PLANE13 or PLANE53, an ANSYS macro, FMAGBC, is used to identify a body for force and
torque calculations. The macro automates applying virtual displacements and the Maxwell surface flag
(discussed later). The body must be surrounded by at least one layer of "air" elements. Simply group
the elements in the body on which forces or displacements are to be calculated into a component.
Then, use either of the following:
Command(s): FMAGBC,Cnam
GUI: Main Menu> Preprocessor> Loads> Define Loads> Apply> Magnetic> Flag> Comp. Force/Torq
You then use the FMAGSUM and TORQSUM macros in POST1 to summarize the force and torque results,
respectively.
Note
Lorentz forces are applicable to current carrying conductors and they are calculated automatically. Do not apply Maxwell or virtual displacement flags to any current carrying conductor
surfaces.
With PLANE233, you do not need to apply any force flags to calculate magnetic forces. To summarize
magnetic forces and torques, you use the EMFT command. Whenever possible, ANSYS, Inc. recommends
using PLANE233 (the current-technology electromagnetic element) rather than PLANE13 or PLANE53
(legacy magnetic elements). For more information, see Legacy vs. Current-Technology 2-D Magnetic
Elements (p. 19).
39
Iron
Air
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
41
42
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
43
Caution
Nodal contour plots for derived data, such as flux density and field intensity, are averaged
at the nodes.
In PowerGraphics mode (default), you can visualize nodal averaged contour displays which account for
material discontinuities. Should you need to activate PowerGraphics, use either /GRAPHICS,POWER or
Utility Menu> PlotCtrls> Style> Hidden-Line Options.
44
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
45
46
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
47
PLANE53
PLANE233
KEYOPTs
KEYOPT(1) = 2
KEYOPT(1) = 2
Degrees of Freedom
AZ, CURR
Loading
Real Constants
1. All the VOLT and EMF degrees of freedom of the coil should be coupled (CP,,VOLT and CP,,EMF) prior
to applying nodal voltage.
Table 2.6: Circuit-Coupled Stranded Coil Input Data Mapping
Input Data
PLANE53
PLANE233
KEYOPTs
KEYOPT(1) = 3
Degrees of Freedom
Loading
Real Constants
1. All the VOLT and EMF degrees of freedom of the coil should be coupled (CP,,VOLT and CP,,EMF) prior
to applying nodal voltage or current loads or attaching CIRCU124 elements.
The following table compares the PLANE53 and PLANE233 real constants.
Table 2.7: Real Constant Comparison
PLANE53
PLANE233
Real Constant
Real Constant
CARE (R1)
SC (R2)
TURN (R2)
NC (R3)
THK (R1)
48
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
PLANE233
Real Constant
Real Constant
DIRZ (R4)
TZ (R5)
FILL (R5)
not used
1. With PLANE53, the total DC resistance R was derived from the electrical resistivity (MP,,RSVX), the number
of turns TURN, the cross-sectional area CARE, the fill factor FILL and the coil volume VC (not specified
directly) as follows:
R = (RSVX) (TURN/CARE)2 (VC/FILL)
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
49
50
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.5.1.1. Description
The example analysis, based on a solenoid actuator, analyzes the actuator as a 2-D axisymmetric model.
The example calculates the force on the armature (the moving component of the actuator) and the inductance of the coil. Figure 2.8: Diagram of a Solenoid Actuator (p. 51) below shows you the solenoid
actuator:
Figure 2.8: Diagram of a Solenoid Actuator
Armature
(iron)
td
space
gap
ta
tc
-
: stationary iron
component of the actuator that
completes the magnetic circuit
around the coil.
wc
Backiron
(iron)
hc
Coil (copper)
650 turns
: stranded, wound coil
1 amp/turn supplying a predefined current.
G: thin rectangular region
of air between the armature
and the pole faces of the
backiron.
Axis of
symmetry
Y
Z X
tb
wc
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
51
Description
Number of turns in the coil; used in postprocessing
I=1.0
ta=.75
tb=.75
tc=.50
td=.75
Armature thickness
wc=1
Width of coil
hc=2
Height of coil
gap=.25
Gap
space=.25
ws=wc+2*space
hs=hc+.75
w=ta+ws+tc
hb=tb+hs
h=hb+gap+td
acoil=wc*hc
Coil area
jdens=n*i/acoil
Note
The example analysis is only one of many possible 2-D static magnetic analyses. Not all such
analyses follow exactly the same steps or perform those steps in the same sequence. The
properties of the material or materials being analyzed and the conditions surrounding those
materials determine which steps a specific analysis needs to include.
For a detailed step-by-step procedure for the magnetic analysis of a solenoid actuator, see the Electromagnetics Tutorial.
52
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
ET,1,PLANE233
KEYOPT,1,3,1
KEYOPT,1,7,1
MP,MURX,1,1
MP,MURX,2,1000
MP,MURX,3,1
MP,MURX,4,2000
!
!
!
!
!
!
!
/com,
n=650
i=1.0
ta=.75
tb=.75
tc=.50
td=.75
wc=1
hc=2
gap=.25
space=.25
ws=wc+2*space
hs=hc+.75
w=ta+ws+tc
hb=tb+hs
h=hb+gap+td
acoil=wc*hc
jdens=n*i/acoil
!
!
!
!
/PNUM,AREA,1
RECTNG,0,w,0,tb
! Create rectangular areas
RECTNG,0,w,tb,hb
RECTNG,ta,ta+ws,0,h
RECTNG,ta+space,ta+space+wc,tb+space,tb+space+hc
AOVLAP,ALL
RECTNG,0,w,0,hb+gap
RECTNG,0,w,0,h
AOVLAP,ALL
NUMCMP,AREA
! Compress out unused area numbers
APLOT
ASEL,S,AREA,,2
AATT,3,1,1,0
ASEL,S,AREA,,1
ASEL,A,AREA,,12,13
AATT,4,1,1
ASEL,S,AREA,,3,5
ASEL,A,AREA,,7,8
AATT,2,1,1,0
/PNUM,MAT,1
ALLSEL,ALL
APLOT
SMRTSIZE,4
AMESH,ALL
ESEL,S,MAT,,4
CM,ARM,ELEM
ALLSEL,ALL
ARSCAL,ALL,,,.01,.01,1,,,1
FINISH
!
!
!
!
/SOLU
ESEL,S,MAT,,3
53
CMSEL,S,'ARM'
NSLE
ESLN
EMFT
ALLSEL,ALL
PLVECT,B,,,,VECT,ELEM,ON
/GRAPHICS,POWER
AVRES,2
PLNSOL,B,SUM
FINISH
2.5.2.1. Description
The contact region is located at the mid-span of the air gap. Two independent meshes are created; one
for the lower portion of the model consisting of the back iron, coil, and lower air, and the upper portion
consisting of the pole and the upper air. Target elements (TARGE169) are created using the ESURF
command on the upper air elements at the air gap (coarser mesh). Contact elements (CONTA172) are
created using the ESURF command on the lower air elements at the air gap (finer mesh). The MPC
option is selected using bonded contact.
Figure 2.9: Element Plot Showing Independent Meshes
!
!
!
!
plane233
Target
Contact, MPC option
Bonded contact
mp,murx,1,1
54
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
tb,bh,2,,40
tbpt,,355,.7
,,405,.8
,,470,.9
,,555,1.
,,673,1.1
,,836,1.2
,,1065,1.3
,,1220,1.35
,,1420,1.4
,,1720,1.45
,,2130,1.5
,,2670,1.55
,,3480,1.6
,,4500,1.65
,,5950,1.70
,,7650,1.75
,,10100,1.8
,,13000,1.85
,,15900,1.9
,,21100,1.95
,,26300,2.
,,32900,2.05
,,42700,2.1
,,61700,2.15
,,84300,2.2
,,110000,2.25
,,135000,2.3
,,200000,2.41
,,400000,2.69
,,800000,3.22
! BH curve
mp,murx,3,1
! coil
! create backiron
rectng,0,.06,0,.01
rectng,0,.01,.01,.02
rectng,.05,.06,.01,.02
! create coil
rectng,.02,.04,-.005,0
rectng,.02,.04,.01,.015
aglue,all
! create lower air domain
rectng,-.02,.08,-.01,.021
aovlap,all
numcmp,area
cm,lower,area
! create pole
rectng,0,.06,.022,.032
! create upper air
rectng,-.02,.08,.021,.04
aovlap,7,8
asel,s,area,,7,9
cm,upper,area
asel,s,area,,4,6
aatt,2,1,1
asel,s,area,,7
aatt,2,1,1
asel,s,area,,2,3
aatt,3,1,1
! backiron
! pole
! coil
cmsel,s,lower
esize,.002
amesh,all
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
55
cmsel,s,lower
esla,s
nsle,s
nsel,r,loc,y,.021
type,3
esurf
allsel,all
nsel,s,loc,x,-.02
nsel,a,loc,x,.08
nsel,a,loc,y,-.01
nsel,a,loc,y,.04
d,all,az,0
! flux parallel
asel,s,area,,3
esla,s
bfe,all,js,,,,5e6
asel,s,area,,2
esla,s
bfe,all,js,,,,-5e6
allsel,all
finish
/solu
solve
finish
/post1
plf2d
plnsol,b,sum
fini
56
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.5.3.1. Description
A long conductive hollow cylinder rotates about its axis. A stationary solid cylindrical permanent magnet
resides with the hollow rotating one. The two bodies are concentric, and the permanent magnet is
poled in a direction normal to its axis. The ends of the rotating hollow cylinder are electrically insulated,
so the net current flowing in the axial direction is zero (open terminal conductor).
The objective is to determine the Joule heat per unit length in the rotating conductive cylinder and
display the eddy currents induced in it by the velocity effects. The evaluation is made half-way along
the length of the rotating cylinder, well away from insulated ends where the induced current will reverse
direction and have significant non-axial components.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
57
58
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
C*********************************************************
C*** GEOMETRY
C*********************************************************
/prep7
asel,none
pcir,r_PM,,0,90
aatt,2,2,2
asel,none
pcirc,r1_cyl,r2_cyl,0,90
aatt,3,3,3
alls
cm,keep_a,area
asel,none
pcirc,r_dmn,,0,90
cm,scrap_a,area
alls
asba,scrap_a,keep_a,,dele,keep
cmse,u,keep_a
aatt,1,1,1
alls
aplo
C*********************************************************
C*** ATTRIBUTES, MESH
C*********************************************************
et,1,233
mp,murx,1,1
et,2,233
mp,murx,2,mur_PM
mp,mgyy,2,Hc_PM
et,3,233,1 ! CYLINDER
mp,murx,3,mur_cyl
mp,rsvx,3,rsv_cyl
alls
ames,all
csys,1
agen,4,all,,,0,90,0
numm,node,1e-8,1e-8
numm,kp,1e-8,1e-8
C*********************************************************
C*** BCs
C*********************************************************
alls
nsel,s,ext
d,all,az
esel,s,mat,,3
nsle
cp,1,volt,all
alls
C*********************************************************
C*** LOAD
C*********************************************************
bf,all,velo,,,,,,omga*(2*pi)/60
! Angular velocity, rad/sec
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
59
60
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.5.3.3. Results
Figure 2.13: Current Density in the Conductive Cylinder
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
61
62
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
63
Dimens.
Shape or Characteristic
DOFs
PLANE13
2-D
4-node quadrilateral
or 3-node triangular
Up to four at each
node; these can be
magnetic vector potential (AZ), displacements,
temperature, or timeintegrated electric potential
8-node quadrilateral
or 6-node triangular
Up to four at each
node; these can be
magnetic vector potential (AZ), time-integrated electric potential,
current, or electromotive force
8-node quadrilateral
or 6-node triangular
Up to three at each
node; these can be
magnetic vector potential (AZ), electric potential/voltage drop or
time-integrated electric
potential/voltage drop
(VOLT), electromotive
force or time-integrated
electromotive force
(EMF)
PLANE53
2-D
PLANE233 2-D
Notes
Legacy element
Supported for cyclic symmetry (periodic) analysis, static only.
Legacy element
Supported for cyclic symmetry (periodic) analysis, static only.
Current-technology element
[1]
Supported for cyclic symmetry (periodic) analysis.
1. Whenever possible, ANSYS, Inc. recommends using PLANE233 (the current-technology electromagnetic
element) rather than PLANE13 or PLANE53 (legacy magnetic elements). See Legacy vs. Current-Technology
64
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Dimens.
Shape or Characteristic
DOFs
INFIN9
2-D
INFIN110
2-D
Dimens.
None
Shape or Characteristic
Six nodes
DOFs
Up to three at each node; these can be
electric potential, current, or electromotive force
Dimens.
Shape or Characteristic
DOFs
Notes
TARGE169 2-D
Target segment
n/a
CONTA171
2-D
Surface-to-surface
contact element (2node)
AZ
CONTA172
2-D
Surface-to-surface
contact element (3node)
AZ
CONTA175
2-D
AZ
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
65
66
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Axis of symmetry
1 turn
Voltage-fed stranded coils are available for the PLANE53 and SOLID97 elements. For them, you must
specify real constants which characterize the stranded conductor. All nodes in a stranded coil region
must be coupled in the CURR degree of freedom, which will result in a single equation solving for the
current flowing in the coil. When using PLANE53 or SOLID97 elements, the real constant FILL is especially
important for stranded coils, and for other conductors where the conductor area (or volume) is not
exactly represented by the element profile.
Note
Whenever possible, ANSYS, Inc. recommends using PLANE233 (the current-technology electromagnetic element) rather than PLANE53 (legacy magnetic element). For information on
using PLANE233, see 2-D Stranded Coil Analysis (p. 47).
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
67
x(r)
Planar
Axisymmetric
DOFs: AZ
Material Properties: MUr, (MURX), rho (RSVX)
Eddy currents flow in a closed loop; there is no voltage drop
due to a short-circuit condition.
68
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
AZ-VOLT
VOLT Coupled
x(r)
Planar
Axisymmetric
Massive Conductor - Open Circuit Conditions
Open circuit conductor
Note
No net current flows in an open circuit conductor. The axisymmetric case simulates a conductor with a finite cut (slit).
%,,$# '.+*
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
69
CURR
+
V
-
70
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Ground Plane
AZ-VOLT
VOLT Coupled
Simulates multiple conductors terminated at common ground
Multiple massive
conductors terminated by a common
ground plane
Note
Used to simulate devices such as squirrel cage rotors where end effects can be ignored.
f
Current-fed stranded coil
DOF: AZ
Material properties: MUr (MURX)
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
71
Note
Assumes a stranded insulated coil producing a constant AC current, unaffected by surrounding
conditions. Current density can be calculated from the number of coil turns, the current per
turn, and the cross-section area of the coil.
External Circuit
(CIRCU124)
Circuit-fed stranded
coil
Note
Model stranded coils fed by an external circuit (CIRCU124 element). See the Coupled-Field
Analysis Guide for details on electromagnetic-circuit coupling.
72
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
External Circuit
(CIRCU124)
Circuit-fed massive
conductor
Note
Model massive conductor fed by an external circuit (CIRCU124 element). See the CoupledField Analysis Guide for details on electromagnetic-circuit coupling.
Laminated iron
DOF: AZ
Material Properties: MUr (MURX) or B-H curve
Simulating permeable regions where eddy currents can be
neglected. Requires only the AZ DOF.
Air
DOF: AZ
Material Properties: MUr (MURX = I)
Moving conductor
(velocity effects)
73
3.4. Building and Meshing the Model and Assigning Region Attributes
For information on building a model, assigning attributes to regions within the model and meshing
the model, see 2-D Static Magnetic Analysis (p. 17) of this manual and the Modeling and Meshing Guide.
For information on modeling two contacted bodies, see Modeling Magnetic Contact.
In the equation above, is the skin depth (in meters), f is the frequency (in Hertz), is the absolute
permeability (in Henries/meters), and is conductivity (in Siemens/meter).
74
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
3.5.2.1. Amplitude
This is the maximum value of the load (zero-to-peak) which you specify.
75
76
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
Whenever possible, ANSYS, Inc. recommends using PLANE233 (the current-technology electromagnetic element) rather than PLANE53 (legacy magnetic element). For information on
using PLANE233, see 2-D Stranded Coil Analysis (p. 47).
3.5.6. Flags
3.5.6.1. Force Flags
For PLANE53 (and PLANE13), an ANSYS command macro, FMAGBC, is used to identify a body for force
or torque calculations. The macro automates applying virtual displacements and the Maxwell surface
flag (discussed later). The body must be surrounded by at least one layer of "air" elements. Simply group
the elements in the body on which forces, torque or displacements are to be calculated into a component.
Then, use either of the following:
Command(s): FMAGBC,Cname
GUI: Main Menu> Preprocessor> Loads> Define Loads> Apply> Magnetic> Flag> Comp. Force/Torq
Main Menu> Solution> Define Loads> Apply> Magnetic> Flag> Comp. Force/Torq
Use the FMAGSUM and TORQSUM macros in POST1 to summarize the force and torque results, respectively.
Note
Lorentz forces are applicable to current carrying conductors and they are calculated automatically. Do not apply Maxwell or virtual displacement flags to any current carrying conductor
surfaces.
For PLANE233, you do not need to apply any force flags to calculate magnetic forces. To summarize
magnetic forces and torques, you use the EMFT command. For more information, see Legacy vs. CurrentTechnology 2-D Magnetic Elements (p. 19).
77
Iron
Air
For information on calculating magnetic forces when using PLANE233, see Legacy vs. Current-Technology
2-D Magnetic Elements (p. 19).
78
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Obtain a Solution
In the GUI, choose menu path Main Menu> Solution> Analysis Type> New Analysis and then
choose a Harmonic analysis.
If this is a new analysis, issue the command ANTYPE,HARMIC,NEW.
If you want to restart a previous analysis (for example, to restart an unconverged solution or to specify
additional excitation), issue the command ANTYPE,HARMIC,REST. You can restart an analysis only if you
previously completed a harmonic magnetic analysis, and the files Jobname.EMAT, Jobname.ESAV,
and Jobname.DB from the previous run are available.
Most 2-D nonlinear harmonic problems run at a single frequency can be set up and solved using either
of the following:
Command(s): HMAGSOLV
GUI: Main Menu> Solution> Solve> Electromagnet> Harmonic Analys> Opt&Solv
Details on the HMAGSOLV macro are described in HMAGSOLV Command Macro (p. 82). Defining
Analysis Options (p. 79) through Starting the Solution (p. 81) describe the analysis options that can be
used if the HMAGSOLV macro is not used. HMAGSOLV is only applicable to a new harmonic analysis.
Note
You must "OK" the dialog box containing the HROPT and HROUT commands to reach the
equation solver dialog box.
For nonlinear problems, the program continues to do equilibrium iterations until the convergence criteria
are satisfied (or until the maximum number of equilibrium equations is reached.
To specify the convergence criteria, use either of the following:
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
79
80
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Obtain a Solution
GUI: Main Menu> Preprocessor> Loads> Load Step Opts> Time/Frequency> Freq and Substps
You can specify the number of equilibrium iterations performed for a nonlinear harmonic analysis at
each frequency. The default is 25. It is recommended that the number of equilibrium iterations be set
to 50 or higher to ensure convergence.
To specify the number of equilibrium iterations, use either of the following:
Command(s): NEQIT
GUI: Main Menu> Preprocessor> Loads> Load Step Opts> Nonlinear> Equilibrium Iter
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
81
82
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Reviewing Results
Figure 3.5: Convergence Norms Displayed by the Graphical Solution Tracking (GST) Feature
Note
For nonlinear time-harmonic analysis, the values of flux density (B) may exceed the values
input on the DC B-H curve. These values represent an approximation to the fundamental
harmonic component of the true waveform, not the actual measurable value.
Additional data, specific to each element type, also are available. See the Element Reference for details.
You can review analysis results in POST1, the general postprocessor, or POST26, the time-history postprocessor. The results are out-of-phase with the input loads (that is, they lag the input loads), and
therefore are complex. They are calculated and stored in terms of real and imaginary components.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
83
Command(s)
GUI Path
SET,1,1,,0
SET,1,1,,1
PRNSOL,VOLT
PRVECT,B
PRVECT,H
PRVECT,JT
PRESOL,B
PRESOL,H
PRESOL,JT
PRESOL,SENE
84
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Reviewing Results
Task
Command(s)
GUI Path
Print the indicated element table PRETAB,Lab,1,... Main Menu> General Postproc> List Results> Elem Table Data
item(s)
1. Average of selected elements adjacent to nodes.
2. Force is summed over elements and distributed among nodes for coupling purposes.
3. Magnetic energy is summed over elements.
4. To obtain power loss, multiply by element volume.
5. Instantaneous value (real/imaginary, at t = 0 and t = -90) in case of a harmonic analysis.
6. RMS value: measurable values are stored in the real set. (Velocity effect regions (KEYOPT(2) = 1) require
summation of real and imaginary parts to obtain RMS value.)
Note
See the Mechanical APDL Theory Reference for more information.
The ETABLE command or its GUI path also allow you to view less frequently-used items.
You can view most of these items graphically. To do so, substitute plotting commands for the commands
whose names begin with "PL" (for example, use PLNSOL instead of PRNSOL, as illustrated below):
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
85
Substitution
GUI Path
PRNSOL
PLNSOL
PRVECT
PLVECT
PRESOL
PLESOL
PRETAB
PLETAB
You also can plot element table items. See the Basic Analysis Guide for more information.
The ANSYS Parametric Design Language (APDL) also contains commands that may be useful in postprocessing, and several magnetics macros also are available for results processing purposes. See the ANSYS
Parametric Design Language Guide for more information about APDL. Electric and Magnetic Macros (p. 255)
describes the macros.
Reading in Results Data (p. 86) discusses some typical POST1 operations for a harmonic magnetic analysis. For a complete description of all postprocessing functions, see the Basic Analysis Guide.
Caution
The PLNSOL command or its equivalent menu path average nodal contour plots for derived
data, such as flux density and field intensity, at the nodes.
In PowerGraphics mode (default), you can visualize nodal averaged contour displays which account for
material discontinuities. Should you need to activate PowerGraphics, use either /GRAPHICS,POWER
(Utility Menu> PlotCtrls> Style> Hidden-Line Options).
86
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Reviewing Results
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
87
Note
For velocity effect regions (KEYOPT(2) = 1), the time-average forces are obtained by summing the data stored in the "real" and "imaginary" data sets.
Time-average virtual work forces are calculated for all air elements with an MVDI specification adjacent
to the body of interest. To extract these forces, select all current-carrying elements and use the ETABLE
command along with the sequence number (snum) for the data requested to store the forces from the
element NMISC record (see PLANE13 Item and Sequence Numbers and Item and Sequence Numbers for
ETABLE and ESOL in the Element Reference). Do so by choosing either of the following:
Command(s): ETABLE,tablename,NMISC,snum
GUI: Main Menu> General Postproc> Element Table> Define Table
Once you move the data to the element table, you can list them using either of the following:
Command(s): PRETAB
GUI: Main Menu> General Postproc> Element Table> List Elem Table
You can summarize time-average virtual work forces quickly for element components on which those
forces were specified as boundary conditions (via the FMAGBC macro). To summarize the forces,
choose one of the following:
Command(s): FMAGSUM
GUI: Main Menu> General Postproc> Elec&Mag Calc> Component Based> Force
To sum the forces, use the procedure described in the foregoing for Lorentz forces.
Note
For velocity effect regions (KEYOPT(2) = 1), the time average-forces are obtained by summing the data stored in the "real" and "imaginary" data sets.
For information on calculating magnetic forces when using PLANE233, see Legacy vs. Current-Technology
2-D Magnetic Elements (p. 19).
88
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Reviewing Results
(snum) for the data requested to store the torque values from the element NMISC record (see PLANE13
Item and Sequence Numbers and Item and Sequence Numbers for ETABLE and ESOL in the Element Reference). Do so by choosing either of the following:
Command(s): ETABLE,tablename,NMISC,snum
GUI: Main Menu> General Postproc> Element Table> Define Table
Once you move the data to the element table, you can list the torque values using the following
command:
Command(s): PRETAB
GUI: Main Menu> General Postproc> Element Table> List Elem Table
The torque data can also be retrieved using the PLESOL and PRESOL commands with the NMISC
item label.
You can also sum the torque values to obtain the total torque on the body. To calculate the sum use
the following:
Command(s): SSUM
GUI: Main Menu> General Postproc> Element Table> Sum of Each Item
Note
For velocity effect regions (KEYOPT(2) = 1), the time-average torque values are obtained
by summing the data stored in the "real" and "imaginary" data sets.
Maxwell torque values are calculated for all elements at which the surface flag MXWF is specified as a
surface "load." To extract and sum Maxwell torque values, you can use the procedure described in the
foregoing for extracting and summing Lorentz torque values or, if the torque values were specified as
boundary conditions via the FMAGBC macro, you can quickly obtain the values using either of the following:
Command(s): TORQSUM
GUI: Main Menu> General Postproc> Elec&Mag Calc> Component Based> Torque
Note
For velocity effect regions (KEYOPT(2) = 1), the time-average torque values are obtained
by summing the data stored in the "real" and "imaginary" data sets.
Time-average virtual work torque values are calculated for all air elements with an MVDI specification
adjacent to the body of interest. To extract and sum virtual work torque values, you can use the procedure
described in the foregoing for extracting and summing Lorentz torque values or, if the torque values were
specified as boundary conditions via the FMAGBC macro, you can quickly obtain the values using either
of the following:
Command(s): TORQSUM
GUI: Main Menu> General Postproc> Elec&Mag Calc> Component Based> Torque
Note
For velocity effect regions (KEYOPT(2) = 1), the time-average torque values are obtained
by summing the data stored in the "real" and "imaginary" data sets.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
89
90
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The following command listings demonstrate how to solve this problem using the current-technology
element PLANE233 and the legacy element PLANE53. The electromagnetic elements represent the
voltage forced coil and air. INFIN110 elements represent the far-field.
Note
The example analysis presented here is only one of many possible harmonic magnetic analyses.
Not all such analyses follow exactly the same steps or perform those steps in the same sequence. The properties of the material or materials being analyzed and the conditions surrounding those materials determine which steps a specific analysis needs to include.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
91
r,1,,Sc,n,r,1,Rcoil
rmore,2
! coil constants
! symmetry factor
n1=node(s,0,0)
esel,s,mat,,2
nsle,s
cp,1,volt,all
cp,2,emf,all
allsel,all
csys,1
nsel,s,loc,x,12*s
sf,all,inf
csys,0
nsel,s,loc,x,0
d,all,az,0
allsel,all
finish
! flux-parallel condition
/solu
antype,harm
92
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
! 60 Hz.
/post1
set,1
plf2d
*get,ireal,node,n1,rf,amps
set,1,1,,1
plf2d
*get,imag,node,n1,rf,amps
*status
finish
! resistivity of coil
s=.02
n=500
r=3*s/2
rectng,s,2*s,0,s/2
pcirc,0,6*s,0,90
pcirc,0,12*s,0,90
aovlap,all
asel,s,area,,1
aatt,2,1,2
asum
*get,a,area,,area
! area of 1/2 coil cross-section
asel,s,area,,4
aatt,1,1,3
asel,all
csys,1
lsel,s,loc,x,9*s
lesize,all,,,1
esize,,8
mshape,0,2d
! mapped mesh with quads
mshkey,1
amesh,1,4,3
! mesh far-field and coil
smrtsize,2
esize,s/4
mshape,1,2d
! specify triangle elements
mshkey,0
! free mesh
amesh,5
! mesh air region
r,1,2*a,500,,1,1
! coil constants
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
93
esel,s,mat,,2
nsle,s
cp,1,curr,all
allsel,all
csys,1
nsel,s,loc,x,12*s
sf,all,inf
csys,0
nsel,s,loc,x,0
d,all,az,0
allsel,all
finish
/solu
antype,harm
esel,s,mat,,2
bfe,all,vltg,,12
esel,all
harfrq,60
solve
finish
! flux-parallel condition
/post1
set,1
plf2d
*get,ireal,node,n1,curr
set,1,1,,1
plf2d
*get,imag,node,n1,curr
*status
finish
94
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
y
Modeled Region
dy
Coil
Steel Plate
dd = 2.5 mm
x
dx
G rc
rp r s
dd = .0025 m
dx = dd/6
dy = dd/6
r
rp r s
Coil
= 1.0
Steel Plate
B-H Cuve
= 1/5.0e6 m
L
H = 2644.1 A/m
J = H/dy
Feq. = 50 Hz
The model is a one-half symmetry model through the plate thickness with an arbitrary width of dx. At
y = 0, the AZ setting is zero. Nodes are coupled at the top of the coil to represent a flux line. The calculated current density in the coil to produce the desired tangential field (Hm) is J = Hm/dy. The two step
nonlinear solution uses the HMAGSOLV macro. Convergence criteria relaxation on the vector potential,
AZ, is .01 (appropriate for loss calculation in this case).
95
*****************************************************************
/com,
/com,
/nopr
!
/prep7
dd=2.5e-3! 1/2 height of plate
Hm=2644.1! imposed H field
sigma=5.0e6! material conductivity
ff=50! frequency (Hz)
dx=dd/6! modeled plate width
dy=dd/6! coil height
!
et,1,plane53
mp,murx,1,1.! coil relative permeability
tb,bh,2,,25! plate B-H curve
tbpt,,100,.46512
tbpt,,200,.72993
tbpt,,300,.90090
tbpt,,400,1.0204
tbpt,,500,1.1086
tbpt,,600,1.1765
tbpt,,700,1.2302
tbpt,,800,1.2739
tbpt,,900,1.3100
tbpt,,1000,1.3405
tbpt,,1400,1.4257
tbpt,,1800,1.4778
tbpt,,2200,1.5131
tbpt,,2600,1.5385
tbpt,,3000,1.5576
tbpt,,3400,1.5726
tbpt,,3800,1.5847
tbpt,,4200,1.5945
tbpt,,4600,1.6028
tbpt,,5000,1.6098
tbpt,,7000,1.6332
tbpt,,9000,1.6465
tbpt,,11000,1.6551
tbpt,,13000,1.6611
tbpt,,15000,1.6656
mp,rsvx,2,1/sigma
!
rect,0,dx,0,dd! plate
rect,0,dx,dd,dd+dy! coil
aglue,all
!
asel,s,loc,y,dd,dd+dy
aatt,1,0,1
asel,s,loc,y,0,dd
aatt,2,0,1
asel,all
amesh,all
!
nsel,s,loc,y,
d,all,az,0.! flux-parallel
nsel,s,loc,y,dd+dy
cp,1,az,all! couple for flux-parallel
nsel,all
fini
!
/solu
antype,harmic
esel,s,mat,,1
bfe,all,JS,,0.,0.,Hm/dy,0.! apply coil current density
esel,all
hmagsolv,ff,,1e-2! solve nonlinear problem
fini
!
96
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
97
98
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
DOFs
PLANE13
2-D
4-node quadrilateral
or 3-node triangular
Legacy element
8-node quadrilateral
or 6-node triangular
Legacy element
PLANE53
2-D
Notes
Supported for
cyclic symmetry
(periodic) analysis,
static only.
Supported for
cyclic symmetry
(periodic) analysis,
static only.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
99
PLANE233 2-D
8-node quadrilateral
or 6-node triangular
DOFs
Notes
Current-technology element
[1]
Supported for
cyclic symmetry
(periodic) analysis.
1. Whenever possible, ANSYS, Inc. recommends using PLANE233 (the current-technology electromagnetic
element) rather than PLANE13 or PLANE53 (legacy magnetic elements). See Legacy vs. Current-Technology
2-D Magnetic Elements (p. 19) for a list of the capabilities that are only available with PLANE233.
Some procedural steps discussed here do not apply applicable to PLANE233. For information on the
differences between PLANE233 and PLANE53 (and PLANE13), see Legacy vs. Current-Technology 2-D
Magnetic Elements (p. 19).
Table 4.2: Far-Field Elements
Element
Dimens.
Shape or Characteristic
DOFs
INFIN9
2-D
INFIN110
2-D
Dimens.
CIRCU124
None
DiShape or Charactermens.
istic
DOFs
Notes
TARGE169 2-D
Target segment
n/a
CONTA171
2-D
Surface-to-surface
contact element (2node)
AZ
CONTA172
2-D
Surface-to-surface
contact element (3node)
AZ
CONTA175
2-D
AZ
100
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
101
Load
Stepped (KBC,1)
3
Steady-state
analysis
1
4
2
Stepped (KBC,1)
2
5
3
5
Time
(a)
Time
(b)
For each load step, you need to specify both load or BC values and time values, among with other load
step options such as stepped or ramped loads, automatic time stepping, and so on. You then write the
load data to a file and repeat this process until all load steps are specified.
See Alternative Analysis Options and Solution Methods (p. 367) for details about the load step options
available for 2-D transient magnetic analysis.
102
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Obtaining a Solution
To obtain a correct solution, you must couple all nodes of the coil together in the CURR degrees of
freedom. (Failure to do so will lead to errors in the solution.) This is required, because CURR is a unique
number representing the current per turn of the winding.
Note
Whenever possible, ANSYS, Inc. recommends using PLANE233 (the current-technology electromagnetic element) rather than PLANE53 (legacy magnetic element). For information on
using PLANE233, see 2-D Stranded Coil Analysis (p. 47).
103
104
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Obtaining a Solution
in loading conditions is especially critical. You can reduce inaccuracies such as thermal overshoot
by reducing the integration time step size.
Caution
Avoid using extremely small time steps, especially when establishing initial conditions.
Very small numbers can cause calculation errors in ANSYS. For instance, on a problem
time scale of unity, time steps smaller that 1E-10 can cause numerical errors.
If you step-apply loads, ANSYS applies the entire load value at the first substep and holds it
constant for the remainder of the load step. If you ramp loads (the default), ANSYS increments
the load values at each substep.
Command(s): NSUBST, DELTIM
GUI: Main Menu> Preprocessor> Loads> Load Step Opts> Time/Frequenc> Time and Substps
Main Menu> Solution> Load Step Opts> Time/Frequenc> Time and Substps
Main Menu> Solution> Load Step Opts> Time/Frequenc> Time - Time Step
Automatic Time Stepping
Also called time step optimization in a transient analysis, automatic time stepping allows ANSYS
to determine the size of load increments between substeps. It also increases or decreases the
time step size during solution, depending on how the model responds.
For most problems, you should turn on automatic time stepping and set upper and lower limits
for the integration time step. The limits help to control how much the time step varies. However,
time step optimization is not available for the CURR degree of freedom (voltage-fed conductors)
or the EMF degree of freedom (circuit-fed models).
Command(s): AUTOTS
GUI: Main Menu> Preprocessor> Loads> Load Step Opts> Time/Frequenc> Time and Substps
Main Menu> Solution> Load Step Opts> Time/Frequenc> Time and Substps
Main Menu> Solution> Load Step Opts> Time/Frequenc> Time - Time Step
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
105
106
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Reviewing Results
Control database and results file output
This option controls what data goes to the results file (Jobname.RMG).
By default, the ANSYS program writes only the last substep of each load step to the results file.
If you want all substeps (that is, the solution at all frequencies) on the results file, specify a frequency or ALL or 1.
Command(s): OUTRES
GUI: Main Menu> Preprocessor> Loads> Load Step Opts> Nonlinear> Convergence Crit
Main Menu> Solution> Loads> Load Step Opts> Nonlinear> Convergence Crit
Additional data, specific to each element type, also is available. See the Element Reference for details.
You can review analysis results in POST1, the general postprocessor, or in POST26, the time-history
postprocessor:
POST26 enables you to review results at specific points in the model over the entire transient.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
107
108
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Reviewing Results
Command(s): PMGTRAN
GUI: Main Menu> TimeHist Postpro> Elec&Mag> Magnetics
POST26 offers many other functions, such as performing math operations among variables, moving
variables into array parameters, etc. For more information, see the Basic Analysis Guide.
109
110
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Armature
(iron)
td
space
gap
ta
tc
-
: stationary iron
component of the actuator that
completes the magnetic circuit
around the coil.
wc
Backiron
(iron)
hc
Coil (copper)
650 turns
: stranded, wound coil
1 amp/turn supplying a predefined current.
G: thin rectangular region
of air between the armature
and the pole faces of the
backiron.
Axis of
symmetry
Y
Z X
tb
wc
Description
n = 650
ta = .75
tb = .75
tc = .50
td = .75
Armature thickness
wc = 1
Width of coil
hc = 2
Height of coil
gap = .25
Gap
space = .25
ws = wc+2*space
hs = hc+.75
w = ta+ws+tc
hb = tb+hs
h = hb+gap+td
acoil = wc*hc
Coil area
111
Enter the ANSYS program. To do so, use the procedures described in the Operations Guide.
2.
Choose Utility Menu> File> Change Title. The Change Title dialog box appears.
3.
4.
Click on OK.
5.
Choose Main Menu> Preferences. The Preferences for GUI Filtering dialog box appears.
6.
7.
Click on OK.
Choose Main Menu> Preprocessor> Element Type> Add/Edit/Delete. The Element Types dialog box
appears.
2.
3.
In the scrollable fields, click on (highlight) Magnetic Vector and Vect Quad 8nod53 (PLANE53). Then,
check that the element type reference number is set to 1 (default).
4.
Click on Apply. The Element Types dialog box now lists element type 1. In the Library of Element Types
dialog box, the PLANE53 element remains selected but the element type reference number will change
to 2. (If the element type reference number does not change automatically, set it to 2.)
5.
Click on OK. The Element Types dialog box now lists element type 2 (also PLANE53).
6.
With element type 1 selected, click on Options. The PLANE53 Element Type Options dialog box appears.
7.
8.
Click on OK. ANSYS returns you to the Element Types dialog box.
112
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
With element type 2 selected, click on Options. The PLANE53 Element Type Options dialog box appears.
Choose Main Menu> Preprocessor> Material Props> Material Models. The Define Material Model
Behavior dialog box appears.
2.
In the Material Models Available window, double-click on the following options: Electromagnetics, Relative Permeability, Constant. A dialog box appears.
3.
Enter 1 for MURX (Relative permeability) and click on OK. Material Model Number 1 appears in the
Material Models Defined window on the left.
4.
Choose menu path Material> New Model, then enter 2 for the Material ID. Click on OK. Material Model
Number 2 appears in the Material Models Defined window on the left.
5.
In the Material Models Available window, double-click on Constant again. Another dialog box appears.
6.
7.
Choose menu path Edit> Copy. Choose 1 for from Material number, and enter 3 for to Material number.
Click on OK. Material Model Number 3 appears in the Material Models Defined window on the left.
8.
In the Material Models Defined window, click on Material Model Number 3 to highlight it.
9.
In the Material Models Available window, double-click on the following options: Resistivity, Constant.
A dialog box appears.
10. Enter 3e-8 for RSVX (Electrical resistivity), and click on OK.
11. Choose menu path Edit> Copy. Choose 3 for from Material number, and enter 4 for to Material number.
Click on OK. Material Model Number 4 appears in the Material Models Defined window on the left.
12. In the Material Models Defined window, double-click on Material Model Number 4, and Permeability
(constant). A dialog box appears and includes the data specified for this material.
13. Replace the MURX (Relative permeability) field with 2000, and click on OK.
14. In the Material Models Defined window, under Material Model Number 4, double-click on Resistivity
(constant). A dialog box appears and includes the data specified for this material.
15. Replace the RSVX field (Electrical resistivity) with 70e-8, and click on OK.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
113
Choose Utility Menu> Parameters> Scalar Parameters. The Scalar Parameters dialog box appears.
2.
Type in the parameter values listed below. After typing each value, press the ENTER key. If you make a
mistake while entering a parameter, just retype it before you press ENTER. To erase an incorrect parameter after you have entered it, click on it and then click on Delete.
Parameter
Description
n = 650
ta = .75
tb = .75
tc = .50
td = .75
Armature thickness
wc = 1
Width of coil
hc = 2
Height of coil
gap = .25
Gap
space = .25
ws = wc+2*space
hs = hc+.75
w = ta+ws+tc
hb = tb+hs
h = hb+gap+td
acoil = wc*hc
Coil area
3.
Review the parameter values you entered, then click on Close. (If you did not end each parameter
definition by pressing ENTER, you can click on Accept instead.)
4.
Choose Main Menu> Preprocessor> Real Constants> Add/Edit/Delete. The Real Constants dialog
box appears.
2.
Click on Add. The Element Type for Real Constants dialog box appears.
3.
Choose element type 2 and click on OK. The Real Constant Set Number 1, for PLANE53 dialog box appears.
4.
114
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Click on OK. The Real Constants dialog box now lists constant set 1.
6.
Choose Main Menu> Preprocessor> Modeling> Create> Areas> Rectangle> By Dimensions. The
Create Rectangle By Dimensions dialog box appears.
2.
Enter the following values in the appropriate fields. You can use the Tab key to move from field to field.
X1 field: enter 0
X2 field: enter w
Y1 field: enter 0
Y2 field: enter tb
3.
Click on OK.
4.
Choose Utility Menu> PlotCtrls> Numbering. The Plot Numbering Controls dialog box appears.
5.
6.
Click on OK.
7.
8.
To create the second rectangle, repeat steps 1 and 2. In place of the input values for step 2, enter these:
X1 field: enter 0
X2 field: enter w
Y1 field: enter tb
Y2 field: enter hb
9.
Click on Apply.
115
Choose Main Menu> Preprocessor> Modeling> Operate> Booleans> Overlap> Areas. The Overlap
Areas picking menu appears.
2.
3.
Choose Main Menu> Preprocessor> Modeling> Create> Areas> Rectangle> By Dimensions. The
Create Rectangle By Dimensions dialog box appears.
2.
3.
116
Click on Apply.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
5.
Click on OK.
Choose Main Menu> Preprocessor> Modeling> Operate> Booleans> Overlap> Areas. The Overlap
Areas picking menu appears.
2.
Choose Main Menu> Preprocessor> Numbering Ctrls> Compress Numbers. The Compress Numbers
dialog box appears.
2.
3.
Choose Utility Menu> Plot> Replot. The new display shows the compressed area number set.
4.
Choose Main Menu> Preprocessor> Meshing> Mesh Attributes> Picked Areas. The Area Attributes
picking menu appears.
2.
Click on the coil area (Area 2), then click on OK in the picking menu. The Area Attributes dialog box
appears.
3.
4.
5.
6.
7.
Press and drag the left mouse button to draw a box around Areas 1,12, and 13.
8.
Click on OK in the picking menu. The Area Attributes dialog box reappears.
9.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
117
2.
3.
Choose Areas, Quad, and Free. Then click on MESH. The Mesh Areas picking menu appears.
4.
Click on Pick All. The display changes to show the meshed areas.
5.
Choose Utility Menu> Select> Entities. The Select Entities dialog box appears.
2.
Change the "entities to pick" button from Nodes to Elements, and check that the selection method is
set to By Num/Pick.
3.
4.
5.
In the Graphics Window, press and drag the left mouse button to draw a box around the armature,
making sure to select only elements in the armature!
6.
7.
Choose Utility Menu> Select> Comp/Assembly> Create Component. The Create Component dialog
box appears.
8.
9.
118
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Choose Main Menu> Preprocessor> Loads> Define Loads> Apply> Magnetic> Flag> Comp.
Force/Torq. The Apply Magnetic Force Boundary Conditions dialog box appears.
2.
The name arm will appear in the "Component name" field. Click on the name, and then click on OK. A
window appears, notifying you that force boundary conditions have been applied. Read the window
contents and then click on Close.
Choose Utility Menu> Select> Entities. The Select Entities dialog box appears.
2.
Set the "entities to be picked" button to Elements and the picking method button to By Num/Pick.
3.
4.
5.
Press and drag the left mouse button to draw a box around the coil elements.
6.
Click on OK.
7.
Choose Utility Menu> Select> Entities. The Select Entities dialog box appears.
8.
Change the "entities to be picked" button to Nodes and the picking method button to By Num/Pick.
Click OK. The Select Nodes picking menu appears.
9.
10. Press and drag the left mouse button to draw a box around the coil nodes.
11. Click on OK.
12. Choose Main Menu> Preprocessor> Coupling/Ceqn> Couple DOFs. The Define Coupled DOFs picking
menu appears.
13. Click the Box picking button on. Press and drag the left mouse button to draw a box around the coil
nodes.
14. Click on OK. The Define Coupled DOFs dialog box appears.
15. Type 1 in the "Set reference number" field.
16. Set the "Degree-of-freedom label" field to CURR.
17. Click on OK.
18. Choose Utility Menu> Select> Comp/Assembly> Create Component. The Create Component dialog
box appears.
19. In the "Component name" field, type coil.
20. Change the "Component is made of" field to Elements. Click OK.
21. Choose Utility Menu> Select> Everything.
Step 16: Scale the Model to MKS Units (Meters)
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
119
Choose Main Menu> Preprocessor> Modeling> Operate> Scale> Areas. The Scale Areas picking
menu appears.
2.
3.
In the fields for RX, RY, and RZ scale factors, enter .01, .01, and 1 respectively.
4.
Leave the "Items to be scaled" field set on Areas and Mesh, but change "Existing areas will be" to Moved.
5.
Click on OK.
Choose Main Menu> Solution> Analysis Type> New Analysis. The New Analysis dialog box appears.
2.
3.
When the Transient Analysis dialog box appears, click OK to accept the default of Full.
4.
Choose Utility Menu> Select> Entities. The Select Entities dialog box appears.
5.
Set the "entities to be picked" button to Nodes and the picking method button to Exterior.
6.
Click on OK.
7.
Choose Main Menu> Solution> Define Loads> Apply> Magnetic> Boundary> Flux Par'l> On Nodes.
The Apply Flux-Parallel Condition on Nodes picking menu appears.
8.
9.
Choose Utility Menu> Select> Comp/Assembly> Select Comp/Assembly. The Select Component or
Assembly dialog box appears.
10. In the "Select entities belonging to Component or Assembly" field, click on COIL.
11. Click on OK.
12. Choose Main Menu> Solution> Define Loads> Apply> Magnetic> Excitation> Voltage Drop> On
Elements. The Apply VLTG on Elems picking menu appears.
13. Click on Pick All. The Apply VLTG on Elems dialog box appears.
14. In the "Voltage drop mag." (VLTG) field, enter 12.
15. Click on OK.
16. Choose Utility Menu> Select> Everything.
17. Choose Main Menu> Solution> Load Step Opts> Time/Frequenc> Time and Substps. The Time and
Substep Options dialog box appears.
18. In the "Time at end of load step" field, enter .01. Click on OK.
19. Choose Main Menu> Solution> Load Step Opts> Time/Frequenc> Time - Time Step. The Time and
Time Step Options dialog box appears.
20. In the "Time step size" field, enter .002. Click on OK.
120
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
3.
4.
Click on OK. The ANSYS program calculates and summarizes the results data you selected, then brings
up a window displaying the information. It may take a few minutes for the window to appear.
5.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
121
Click on Quit in the Toolbar. The Exit from ANSYS dialog box appears.
2.
3.
Click on OK.
!
!
!
!
!
!
!
!
/com
n=650
ta=.75
tb=.75
tc=.50
td=.75
wc=1
hc=2
gap=.25
space=.25
ws=wc+2*space
hs=hc+.75
w=ta+ws+tc
hb=tb+hs
h=hb+gap+td
acoil=wc*hc
SMRTSIZE,4
AMESH,ALL
ESEL,S,MAT,,4
122
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
/POST26
PMGTRAN,,,'ARM',,,,,'COIL','COIL'
FINISH
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
123
124
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
DiShape or Charactermens.
istic
DOFs
Notes
SOLID5
3-D
SOLID96
3-D
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
125
DiShape or Charactermens.
istic
SOLID98
3-D
Tetrahedral, ten
nodes
DOFs
Magnetic scalar potential,
displacements, electric potential, temperature
Notes
Supported for cyclic
symmetry (periodic)
analysis.*
Dimens.
Shape or Characteristic
3-D Bar,
Arc, Coil
Primitives
Three nodes
DOFs
None
Dimens.
Shape or Characteristic
DOFs
INFIN47
3-D
INFIN111
3-D
Brick, 8 or 20 nodes
Elements SOLID96 and SOLID97 are designed specifically for magnetic applications. SOLID5 and SOLID98
are better suited for coupled-field applications.
Table 5.4: Contact Elements
Element
DiShape or Charactermens.
istic
DOFs
Notes
TARGE170 3-D
Target segment
n/a
CONTA173
3-D
Surface-to-surface
contact element (2node)
MAG
CONTA174
3-D
Surface-to-surface
contact element (3node)
MAG
CONTA175
3-D
MAG
126
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Analysis Considerations
If the model contains no iron regions, or if it has iron regions but does not have current sources, use
the RSP method. Do not use the RSP method when the model has both iron regions and current sources,
because numerical cancellation errors may produce an inaccurate solution.
If you cannot use the RSP method, choose between DSP and GSP. The DSP method is available for
models with "singly connected" iron regions, and the GSP method is for models with a "multiply
connected" iron region.
Inductor
Coil
Air Gap
Inductor
Coil
(a)
(b)
Mathematically, you can use Ampere's law in the iron region to check whether the domain is singly or
multiply connected. According to Ampere's law, the closed contour integral equals the enclosed current,
or magnetomotive force (MMF).
MMF =
H(dl)
In a singly connected domain, the MMF drop in the iron should approach zero as the permeability of
the iron tends to infinity. Most of the MMF drop occurs in the air gap for a permeable core. In a multiple
connected domain, a closed contour integral in the iron linking the coil produces a nonzero MMF for
any value of permeability. All of the MMF drop in this case occurs in the iron core.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
127
128
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Copper
emagCopper.SI_MPL
M3 steel
emagM3.SI_MPL
M54 steel
emagM54.SI_MPL
SA1010 steel
emagSa1010.SI_MPL
emagSilicon.SI_MPL
emagVanad.SI_MPL
The copper property presents temperature-dependent resistivity and relative permeability. All other
properties are B-H curves.
The property definitions in the material library specify properties "typical" for the materials listed. ANSYS,
Inc. has extrapolated these properties to cover high saturation conditions. Your actual material values
may differ from those supplied; therefore, you may need to modify the ANSYS material library files you use.
Note
The default system of units for ANSYS is MKS. The GUI lists only material library files
with the currently active units.
2. Define the material library read path for the material of interest. (You will need to know which directory path your system administrator has used to store the material library files.) To do so, use
either of the following:
Command(s): /MPLIB,READ,pathdata
GUI: Main Menu> Preprocessor> Material Props> Material Library> Library Path
3. Read the material library file into the database using one of the following:
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
129
5.4.1.3. Additional Guidelines for Defining Regional Material Properties and Real
Constants
The next few paragraphs provide some guidelines for setting up physics regions for your model. In
addition, you may want to consult 2-D Harmonic Magnetic (AC) Analysis (p. 63); it pictures and describes
the regions that can exist within a 2-D model.
130
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
131
SOLID96 / 98
TARGE170
Exploded view
of interface
SOLID96 / 98
CONTAC173 / 174
DOF: MAG
Contact elements: TARGE170, CONTA173, CONTA174, CONTA175
CONTA17x Keyoptions: KEYOPT(1)=7 (MAG), KEYOPT(2)=2 (MPC
approach), KEYOPT(12)=5
Contact permeance
DOF: MAG
Contact elements: TARGE170, CONTA173, CONTA174, CONTA175
Real constant: MCC (contact permeance) (real constant number
26)
CONTA17x KEYOPTS: KEYOPT(1)=7 (MAG)
132
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Iron
t
Air gap
m=m
Iron
b
a
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
133
Note
You must model the entire current source even if the rest of the model uses half-symmetry
or quarter-symmetry. Coil and arc elements cannot have a zero inside radius.
Because SOURC36 elements are not true finite elements, you can use only direct generation (not solid
modeling) to define them. Direct generation uses the following menu paths or equivalent commands:
Command(s): N
GUI: Main Menu> Preprocessor> Modeling> Create> Nodes> In Active CS
Main Menu> Preprocessor> Modeling> Create> Nodes> In Active CS
Main Menu> Preprocessor> Modeling> Create> Nodes> On Working Plane
Command(s): E
GUI: Main Menu> Preprocessor> Modeling> Create> Elements> Auto Numbered> Thru Nodes
Command(s): EGEN
GUI: Main Menu> Preprocessor> Modeling> Copy> Elements> Auto Numbered
To display current source elements, use the commands or menu paths listed below (in the order shown):
Command(s): /ESHAPE, EPLOT
GUI: Utility Menu> PlotCtrls> Style> Size and Shape
Utility Menu> Plot> Elements
The following is a command-based example of defining current sources.
/PREP7
ET,2, 36
EMUNIT,MKS
! Define convenient
I=0.025
N=300
S=0.04
R=0.01
THK=0.002
!
R=2,1,N*1,THK,S
CSYS,1
N,1001,R
N,1002,R,90
N,1003
TYPE,2
REAL,2
134
! Attributes
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
! Element definition
The following example demonstrates the use of SOURC36 current source elements using three arcs of
120.
/title,,,full circle coils against 3x120 and 6x60 degree arcs
/com
/com This example demonstrates the usage of SOURC36 current source elements.
/com It compares results of a full circle coils with
/com 6 arcs of 60 degrees and 3 arcs of 120 degrees
/com
/nopr
!
coil=1
arc=3
cur=10
dr=0.1 ! radius of source
dz=dr
eps=0.0005
ri=5 ! radius of the coil R >> dr,dz
step=1 ! step along Z
pi=3.1415926
n=21 ! Z = -10 to +10 by 1
*dim,hhx,array,n,3
*dim,hhy,array,n,3
*dim,hhz,array,n,4 ! to store targeted results in the center
*dim,hhs,array,n,3
/com ***** full coil (360 degrees) *****
/prep7
et,1,36
r,1,coil,cur,dr,dz,eps ! define the source
n,10001,ri, 0, 0
n,10002, 0,ri, 0
n,10003, 0, 0, 0
e,10001,10002,10003
et,2,96
mp,murx,1,1
n,1,0,0,-10*step ! define the calculated nodes
ngen,n,1,1,,,,,step
/solv
biot,new
/post1
*do,i,1,n
*get,hx,node,i,hs,x
*get,hy,node,i,hs,y
*get,hz,node,i,hs,z
hh=hx**2+hy**2+hz**2
hh=sqrt(hh)
hhx(i,1)=hx
hhy(i,1)=hy
hhz(i,1)=hz
hhs(i,1)=hh
*enddo
/com
! to check if hx=hy=0
/com********************** 360-degree coil **********************
/com
Hx
Hy
Hz
Hsum
*vwrite,hhx(1,1),hhy(1,1),hhz(1,1),hhs(1,1)
('H=',4f15.6)
/com*************************************************************
fini
135
136
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
For further information, see the descriptions of the following commands in the Command Reference:
ET, EMUNIT, R, CSYS, N, TYPE, REAL, E, /ESHAPE, /VIEW, /VUP, /TRIAD, and /TYPE.
137
-Excitation-
-Flag-
-Other-
-Scalar Poten-
(none)[1]
Comp. Force
-Magnetic Flux-
On Keypoints
-Infinite Surf-
On Keypoints
On Nodes
On Lines
On Nodes
On Areas
On Areas
-Maxwell Surf-
Flux Parallel
On Nodes
On Lines
-Flux Normal-
On Areas
On Areas
On Nodes
On Nodes
138
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Value of MAG
Flux-normal
Flux-parallel
Far-field
Far-field zero
MAG = 0
Periodic
Imposed external
field
5.4.3.3. Excitation
You supply current excitation via the SOURC36 element as noted previously. Invoking the RACE macro
simplifies application of this type of coil arrangement.
5.4.3.4. Flags
5.4.3.4.1. Component Force
An ANSYS command macro, FMAGBC, automates applying virtual displacements and the Maxwell surface
flag for calculating forces and torques on bodies. Simply group the elements in the body on which
forces or displacements are to be calculated into a component. (See the CM command description.)
Then, use either of the following:
Command(s): FMAGBC,Cname
GUI: Main Menu> Preprocessor> Loads> Define Loads> Apply> Magnetic> Flag> Comp. Force/Torq
Note
Lorentz forces are applicable to current carrying conductors and they are calculated automatically. Do not apply Maxwell or virtual displacement flags to any current carrying conductor
surfaces.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
139
140
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Caution
If you use the BIOT option and issue the SAVE command (Utility Menu> File> Save As)
after solution or postprocessing, the Biot-Savart calculations are saved to the database, but
will be overwritten upon normal exit from the program. To save this data after issuing SAVE,
use the /EXIT,NOSAVE command. You can also issue the /EXIT,SOLU command to exit ANSYS
and save all solution data, including the Biot-Savart calculations, in the database. Otherwise,
when you resume your analysis, the Biot-Savart calculation will be lost (resulting in a zero
solution).
141
Caution
If you use the BIOT option and issue SAVE after solution or postprocessing, the BiotSavart calculations are saved to the database, but will be overwritten upon normal
exit from the program. To save this data after issuing SAVE, use the /EXIT,NOSAVE
command. You can also issue the /EXIT,SOLU command to exit ANSYS and save all
solution data, including the Biot-Savart calculations, in the database. Otherwise,
when you issue RESUME, the Biot-Savart calculation will be lost (resulting in a zero
solution).
3. Specify magnetic solution options and initiate the two-step solution. To do so, use either of the
following:
Command(s): MAGSOLV (with OPT field set to 3)
GUI: Main Menu> Solution> Solve> Electromagnet> Static Analysis> Opt and Solv
4. Specify Main Menu> Finish or issue the FINISH command to end the solution.
Caution
If you use the BIOT option and issue SAVE after solution or postprocessing, the BiotSavart calculations are saved to the database, but will be overwritten upon normal
exit from the program. To save this data after issuing SAVE, use the /EXIT,NOSAVE
command. You can also issue the /EXIT,SOLU command to exit ANSYS and save all
142
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
3. Specify magnetic solution options and initiate the three-step solution. To do so, use either of the
following:
Command(s): MAGSOLV (with OPT field set to 4)
GUI: Main Menu> Solution> Solve> Electromagnet> Static Analysis> Opt and Solv
4. Specify Main Menu> Finish or issue the FINISH command to end the solution process.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
143
Caution
Nodal contour plots for derived data, such as flux density and field intensity, are averaged at the
nodes. In PowerGraphics mode (default), you can visualize nodal averaged contour displays
which account for material discontinuities.
144
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
145
5.5.1.1. Description
This example calculates the armature forces and the coil inductance about an operating point for the
solenoid actuator shown in Figure 5.4: Solenoid Actuator (p. 146). A static (DC) current excites the coil
and provides the force to move the armature. The current is 6 amps and there are 500 turns in the coil.
The analysis employs a 1/4 symmetry model of the positive x and y quadrant.
Figure 5.4: Solenoid Actuator
146
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
B(T)
H(A/m)
B(T)
355
0.70
7650
1.75
405
0.80
10100
1.80
470
0.90
13000
1.85
555
1.00
15900
1.90
673
1.10
21100
1.95
836
1.20
26300
2.00
1065
1.30
32900
2.05
1220
1.35
42700
2.10
1420
1.40
61700
2.15
1720
1.45
84300
2.20
2130
1.50
110000
2.25
2670
1.55
135000
2.30
3480
1.60
200000
2.41
4500
1.65
400000
2.69
5950
1.70
800000
3.22
5.5.1.2. Analysis
Step 1: Start the Analysis
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
147
2.
Select the ANSYS simulation environment, choose your license, and click Run.
3.
When the Graphical User Interface is fully active, choose Utility Menu> File> Change Title. A dialog
box appears.
4.
5.
Click on OK.
6.
Choose Main Menu> Preferences. The Preferences for GUI Filtering dialog box appears. Choose Electromagnetic: Magnetic-Nodal. Then click OK.
Choose menu path Utility Menu> Parameters> Scalar Parameters. The Scalar Parameters dialog box
appears.
2.
Type in the parameter values shown below. (Press ENTER after entering each value.)
n = 500 (number of coil turns)
i = 6 (current per turn)
3.
Choose Main Menu> Preprocessor> Element Type> Add/Edit/Delete. The Element Types dialog box
appears.
2.
3.
In the scrollable fields, click on (highlight) Magnetic Scalar and Scalar Brick 96 (SOLID96).
4.
Click on OK. ANSYS returns you to the Element Types dialog box.
5.
Choose Main Menu> Preprocessor> Material Props> Material Models. The Define Material Model
Behavior dialog box appears.
2.
In the Material Models Available window, double-click on the following options: Electromagnetics, Relative Permeability, Constant. A dialog box appears.
3.
Enter 1 for MURX (Relative permeability), and click on OK. Material Model Number 1 appears in the
Material Models Defined window on the left.
4.
Choose Material> New Model. Click on OK to define Material ID 2. Material Model Number 2 appears
in the Material Models Defined window on the left.
5.
In the Material Models Available window, double-click on B-H curve. A dialog box appears.
148
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Enter the H and B values for steel, as provided in Material Properties (p. 146). To add an additional row
to the table, position the text cursor in the bottom row and click on the Add Point button. Click on OK.
7.
Choose Edit> Copy. Choose 2 for from Material number, and enter 3 for to Material number. Click on
OK. Material Model Number 3 appears in the Material Models Defined window on the left.
8.
Choose Material> Exit to remove the Define Material Model Behavior dialog box.
9.
Choose Utility Menu> PlotCtrls> Numbering. The Plot Numbering Controls dialog box appears.
2.
3.
Click on OK.
4.
Choose Main Menu> Preprocessor> Modeling> Create> Volumes> Block> By Dimensions. The
Create Block by Dimensions dialog box appears.
5.
In the "X coordinates" fields, enter 0 and 63.5; in the "Y coordinates" fields, enter 0 and 25/2; and in the
"Z coordinates" fields, enter 0 and 25.
6.
7.
Choose Utility Menu> PlotCtrls> Pan, Zoom, Rotate. A Pan-Zoom-Rotate dialog box appears.
8.
Click on the Iso button, then click on Close. The ANSYS Graphics Window displays the block.
9.
Choose Main Menu> Preprocessor> Modeling> Create> Volumes> Block> By Dimensions. The
Create Block by Dimensions dialog box appears.
10. In the "X coordinates" fields, enter 38.5 and 63.5; in the "Y coordinates" fields, enter 0 and 25/2; and in
the "Z coordinates" fields, enter 25 and 125.
11. Click on OK. The ANSYS Graphics Window now also displays this block.
12. Choose Main Menu> Preprocessor> Modeling> Create> Volumes> Block> By Dimensions. The
Create Block by Dimensions dialog box appears.
13. In the "X coordinates" fields, enter 13.5 and 63.5; in the "Y coordinates" fields, enter 0 and 25/2; and in
the "Z coordinates" fields, enter 125 and 150.
14. Click on OK. The ANSYS Graphics Window now also displays this block.
15. Choose Main Menu> Preprocessor> Modeling> Operate> Booleans> Glue> Volumes. The Glue
Volumes picking menu appears.
16. Click on Pick All.
Step 6: Create Armature and Air Volumes and Compress Numbers
1.
Choose Main Menu> Preprocessor> Modeling> Create> Volumes> Block> By Dimensions. The
Create Block by Dimensions dialog box appears.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
149
In the "X coordinates" fields, enter 0 and 12.5; in the "Y coordinates" fields, enter 0 and 5; and in the "Z
coordinates" fields, enter 26.5 and 125.
3.
Click on OK. The ANSYS Graphics Window now displays the pole volumes and the armature volume
(volume 1).
4.
5.
Choose Main Menu> Preprocessor> Modeling> Create> Volumes> Block> By Dimensions. The
Create Block by Dimensions dialog box appears.
6.
In the "X coordinates" fields, enter 0 and 13; in the "Y coordinates" fields, enter 0 and 5.5; and in the "Z
coordinates" fields, enter 26 and 125.5.
7.
Click on OK. The ANSYS Graphics Window now displays the pole volumes and the volume that is composed of the armature plus the surrounding air region (volume 2).
8.
Choose Main Menu> Preprocessor> Modeling> Operate> Booleans> Overlap> Volumes. The
Overlap Volumes picking menu appears.
9.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Choose Utility Menu> PlotCtrls> Pan, Zoom, Rotate. A Pan-Zoom-Rotate dialog box appears.
2.
Rotate the model so that the pole and armature plus surrounding air region volumes show for picking.
3.
4.
Choose Main Menu> Preprocessor> Meshing> Mesh Attributes> Picked Volumes. The Volume Attributes picking menu appears.
5.
Pick (or enter in the picker) the armature volume (volume 1).
6.
7.
8.
Click on OK.
9.
Choose Main Menu> Preprocessor> Meshing> Mesh Attributes> Picked Volumes. The Volume Attributes picking menu appears.
10. Pick (or enter in the picker) the pole volumes (volumes 3, 4, and 5).
11. Click on OK. The Volume Attributes dialog box appears.
12. Change the "Material Number (MAT)" field to 2.
13. Click on OK.
Step 8: Mesh the Model
1.
2.
3.
Click SmartSizing on. Set the SmartSizing slider to 8. (For production work, you should use a finer
SmartSizing level, such as 6.)
4.
Make sure that Volumes, Tet, and Free are selected in the MeshTool.
5.
6.
Click on Pick All. The display changes to show the meshed volumes. If you receive a message asking
whether you want to continue, click Yes. Close any warning messages that appear. Click Close to close
the MeshTool.
7.
Choose Utility Menu> PlotCtrls> Numbering. For Elem/Attrib numbering, select Material numbers.
For Numbering shown with, select Colors only. Click OK.
8.
Choose Utility Menu> Select> Entities. The Select Entities dialog box appears.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
151
Change the top box to Elements and the second box to By Attributes, check that Material number is
selected, and set the "Min,Max,Inc" field to 3.
3.
Click on OK.
4.
Choose Utility Menu> Select> Comp/Assembly> Create Component. The Create Component dialog
box appears.
5.
Enter arm in the "Component name" field and change the "Component is made of" field to Elements.
6.
Click on OK.
7.
Choose Main Menu> Preprocessor> Loads> Define Loads> Apply> Magnetic> Flag> Comp.
Force/Torque. The Apply Magnetic Force Boundary Conditions dialog box appears.
8.
9.
Click on OK. A window appears, notifying you that force boundary conditions have been applied.
2.
Choose Main Menu> Preprocessor> Modeling> Operate> Scale> Volumes. The Scale Volumes picking
menu appears.
3.
4.
In the fields for RX, RY, and RZ scale factors, enter .001, .001, and .001, respectively.
5.
Leave the "Items to be scaled" field set on Volumes and Mesh, but change the "Existing volumes will
be" field to Moved.
6.
Click on OK.
Choose Utility Menu> WorkPlane> Local Coordinate Systems> Create Local CS> At Specified Loc.
The Create CS at Location picking menu appears.
2.
Check that the Global Cartesian option is on and type 0,0,75/1000 in the picker. Press ENTER.
3.
Click on OK. The Create Local CS at Specified Location dialog box appears.
4.
Change the "Ref number of new coord sys (KCN) to 12 and click on OK.
5.
Choose Utility Menu> WorkPlane> Align WP with> Specified Coord Sys. The Align WP with Specified
CS dialog box appears.
6.
In the "Coordinate system number (KCN) field, enter 12, and click on OK.
152
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Choose Main Menu> Preprocessor> Modeling> Create> Racetrack Coil. The "Racetrack" Current
Source for 3-D Magnetic Analysis dialog box appears.
8.
9.
the
the
the
the
the
the
the
Click on OK.
10. Choose Utility Menu> PlotCtrls> Style> Size and Shape. The Size and Shape dialog box appears.
11. Verify that the Display of element shapes based on real constant descriptions is On.
12. Click on OK.
13. Choose Utility Menu> Plot> Elements to display the coil.
Step 12: Apply Boundary Conditions
1.
Choose Main Menu> Solution> Define Loads> Apply> Magnetic> Boundary> Scalar Poten> On
Nodes. The Apply MAG on Nodes picking menu appears.
2.
Pick a node (for example, node 2 at Global Cartesian location {x, y, z} = {0, 0, 0}) to constrain.
3.
4.
5.
Click on OK.
2.
Choose Main Menu> Solution> Solve Electromagnet> Static Analysis> Opt&Solv. The Magnetostatics
Options and Solution dialog box appears.
3.
Change the "Formulation option (Option)" field to DSP and change the "Force Biot-Savart Calc. (BIOT)"
field to YES.
4.
Click on OK.
5.
Choose Main Menu> General Postproc> Elec&Mag Calc> Component Based> Force. The Summarize
Magnetic Forces dialog box appears.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
153
In the "Component names (s)" field click on (highlight) ARM and click on OK. A pop-up window displays
the armature force results.
3.
Review the results and then click on Close. Note that the X and Y components of force will cancel due
to the symmetry. The Z component should be multiplied by 4 on account of symmetry.
Choose Utility Menu> Parameters> Array Parameters> Define/Edit. The Array Parameters dialog box
appears.
2.
Click on Add. The Add New Array Parameter dialog box appears.
3.
In the "Parameter name (Par)" field, enter cur. Change the "No. of rows (I)" field to 1.
4.
Click on OK. ANSYS returns you to the Array Parameters dialog box.
5.
Click on Edit. The Array Parameter CUR editor dialog box appears.
6.
In the input box, enter i and click on File. The i automatically changes to 6.
7.
Click on Apply/Quit. ANSYS returns you to the Array Parameters dialog box.
8.
9.
Choose Main Menu> Solution> Solv> Electromagnet> Static Analysis> Induct Matrix. The Induct
Matrix dialog box appears.
10. In the "Geometric symmetry factor (Symfac)" field, enter 1; in the "Compon. name identifier (Coilname)"
field, enter coil; and check that Existing array is selected for the coil currents.
11. Click on OK. The Existing array with coil currents dialog box appears.
12. Check that cur is selected for the "Existing array (Cname)" field.
13. Click on OK. A pop-up window displays the inductance matrix results.
14. Review the results and then click on Close.
15. Choose Main Menu> Finish.
16. Click on QUIT on the ANSYS Toolbar. Choose an exit option and click on OK.
154
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
155
156
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
157
Dim.
Shape or
Characteristic
Degrees of Freedom
Notes
SOLID236
Brick, 20 nodes
Magnetic edge-flux
Current-technology
degrees of freedom element
(AZ) at each midside
node; electric potential/voltage drop or
time-integrated
electric potential/voltage drop
(VOLT) at each node.
Electromotive force
or time-integrated
electromotive force
(EMF) at each node
SOLID237
Tetrahedral, 10
nodes
Magnetic edge-flux
Current-technology
(AZ) at each midside element
node; electric potential/voltage drop or
time-integrated
electric potential/voltage drop
(VOLT) at each node.
Electromotive force
or time-integrated
electromotive force
(EMF) at each node
The following examples of an edge-based analysis using the current technology elements are available:
Example: Force Calculation Between Two Permanent Magnets (p. 173)
Example: Eddy Currents Induced in a Ferromagnetic Plate (p. 195)
Example: Magnetic Field in a Parallel Plate Capacitor (p. 200)
Example: Transformer Analysis (p. 206)
158
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Current-fed
solid source
conductor
Air
Current-fed
stranded coil
Laminated iron
Degree of freedom: AZ
Air
Permanent
magnets
OT = 0
OT
(3D)
Current-fed
massive conductor
159
Jt
It
VOLT = 0
Couple VOLT
Voltage-fed massive
conductor
A
Degree of freedom: AZ
Elements: SOLID236 or SOLID237 with KEYOPT(1) = 0
Special characteristics: no eddy currents; can apply source
current density BFE,, JS
160
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
It
VOLT = 0
Current-fed solid
source conductor
F,,AMPS
Couple VOLT
Degrees of freedom: AZ, VOLT
Elements: SOLID236 or SOLID237 with KEYOPT(1) = 1
Special characteristics: Couple VOLT Degree of Freedom in
region; apply total current (F,,AMPS command) to single node.
Assumptions: Solid conductor does not model eddy current
effects within the conductor and has no back EMF effects.
Voltage-fed solid
source conductor
D
ad
Degrees of freedom: AZ, VOLT
Elements: SOLID236 or SOLID237 with KEYOPT(1) = 1 and
KEYOPT(5) = 1
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
161
162
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
163
164
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
6.5.1.2. Contour Displays, Vector Displays, Tabular Listings, and Magnetic Forces
See 2-D Static Magnetic Analysis (p. 17) for details.
2.
3.
Issue EMFT.
Command(s): EMFT
GUI: Main Menu> General Postproc> Elec&Mag Calc> Summarize Force/Torque
Reluctance force: Force due to a change in material properties. Here, the direction of the field may
be arbitrary with regard to the force. To list this force:
1.
Select the nodes at the interface between the body of interest and the adjacent air elements.
2.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
165
Issue EMFT.
This method may use a truncated portion of the body of interest if the body extends past the
FE boundary.
Figure 6.2: Reluctance Force
F
F
area of interest
Body forces (including Lorentz forces): This method uses the entire body of interest:
1.
2.
Issue EMFT.
Exercise caution in interpreting Lorentz forces in permeable (r > 1) materials. If you independently
calculate the J x B forces, they may be incomplete, as they do not include the reluctance term.
Whereas the J x B forces may be incorrect, the body forces calculated in ANSYS will be correct.
For SOLID236 and SOLID237 with KEYOPT(8)=1, the components of the total Lorentz forces are
stored as nodal magnetic force record FMAG.
Note
In models that use symmetry, you must select nodes and elements carefully. You need to
select the surface nodes on the surfaces interior to the body and then select the elements
adjacent to those nodes.
Force results will be reported in the coordinate system specified by RSYS. However, if using a coordinate
system other than global Cartesian (RSYS 0), torque results will take into account the coordinate
system shift and rotation only.
You can use the same procedure described above with the LDREAD command to transfer static magnetic forces from a magnetic element to a structural element type.
To transfer static magnetic forces acting on selected bodies in the model:
1.
2.
Issue LDREAD,FORC.
166
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
167
Elements in cylindrical
ESYS coordinate system
T(X,Y,Z) = (0,1,0)
VC
Modeled
SYM = 8
J
Not Modeled
SC
168
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
169
The geometry is a block modeling a slot of an electrical machine. The Z-axis coincides with the axis of
the machine; l = 0.3 m is the length. The slot, with a depth of d = 0.1 m, is oriented in the X-axis. The
width of the slot in the y direction is denoted by w = 0.01 m. A conductor with relative permeability,
r = 1, and resistivity, = 1.0e-8, carries a current, I=1000 A, in the Z direction.
The side and bottom of the slot are ideal iron. This is a flux-normal boundary condition (natural, or
Neumann, boundary condition); it is satisfied automatically without any prescription of an explicit
boundary condition.
170
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Length
d = 0.1
Depth
w = 0.01
Width
I = 1000
Current
r = 1
= 1.0e-8
n=5
= 3e-4
m^3 - volume
Hy = i/w x/d
= 1e5 x/d
By = mur mu0 H
= 4e-2 x/d
T - flux density
Jz = i/ (d w)
= 1e6
JLOSS
= 3.00
Fx = -integral Jz By dV
= -18.85
N - total force
SENE
= .622
J - energy
Expected results
Hy = I/w*X/d = 1e5X/d A/m
By = mur*mu0*H = 4e-2*Pi*X/d T
Jz = I/(d*w) = 1e6 A/m^2
JHEATloss = 3.0 W
Fx = -integral (Jz*By*dV) = -18.85 N
Energy = 0.622 J
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
171
!
!
!
!
block,0,d,0,w,0,l
lsel,s,loc,X,d/2
lesize,all,,,n
lsel,all
esize,,1
vmesh,all
fini
!
!
!
!
!
/solu
! *** Apply Flux-parallel boundary condition
asel,s,loc,X,d
! select areas at the opening of the slot, x=d
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
! flux-parallel condition
asel,all
! select all areas.
! *** Prescribe current density - body load
bfe,all,js,,jx,jy,jz ! apply current density on all selected elements
solve
fini
! *** Extract solution
/post1
presol,h
! print magnetic field at the corner nodes of elements
/com
presol,b
! print flux density at the corner nodes of elements
/com
presol,jt
! print current density at element centroids
/com
presol,jheat
! print Joule heat per volume in elements
/com
presol,fmag
! print magnetic force at the corner nodes of elements
EMFT
! sum up forces
/view,1,1,.4,.5
! change the viewing angle for displays
/com
plnsol,h,sum
! plot the H field; data from the elements are averaged
/com
plnsol,b,sum
! display the flux density, B (magnitude)
/com
plvect,h,,,,vect,node,on ! display as a vector the field intensity H
/com
! *** store element output items
etable,fe,fmag,X
! x-component of FMAG force
etable,hy,h,y
! y-component of the magnetic field
etable,by,b,y
! y-component of the flux density
etable,jz,jt,z
! z-component of the current density
etable,pd,jheat
! Joule heat rate per unit volume
etable,ve,volu
! element volume
etable,we,sene
! element magnetic energy (SENE)
smult,pe,pd,ve
! element Joule heat
! *** Print the element table items
pretab,ve,by,hy,we
pretab,ve,jz,jh,pe
pretab,ve,jz,by,fe
ssum
172
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
173
A series of magnetostatic analyses is performed to determine the magnetic forces Fx and Fy acting on
the magnets as the upper magnet moves in the X-direction (Figure 6.7: Magnetic Forces vs. Upper
Magnet Displacement (p. 175)). The magnets are enclosed in an air box of size 60 x 60 x 54 mm. Flux
parallel boundary conditions are imposed on the exterior surface of the air enclosure. Both the magnets
and the air region are modeled using the magnetic analysis option (KEYOPT(1)=0) of SOLID236. For a
more accurate force summation over the regions with corners, the midside nodes contribution to
magnetic forces is included in the corner node FMAG force output (KEYOPT(7)=1).
The EMFT command macro is used to sum up the element FMAG forces acting on the lower magnet
(volume 2). Note that to correctly sum up the Maxwell forces using the EMFT macro, you must select
all the nodes of the lower magnet as well as the elements attached to those nodes.
174
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The side view of the magnetic field and magnetic force distribution for the initial position of the upper
magnet (d = 0 mm) are shown in Figure 6.8: Magnetic Field Distribution in the Magnets (p. 176) and
Figure 6.9: Magnetic Force Distribution in the Magnets (p. 177) respectively.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
175
176
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
!
!
!
!
!
!
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
177
! air box
! magnetic solid
! condense forces to the corner nodes
! Material properties
mp,mgzz,2,Br/mu0
mp,murx,2,mu0r
mp,murx,1,mu0r
vsel,s,,,1,2,,1
emod,all,mat,2
alls
nsel,s,ext
d,all,az,0
alls
vlscale,all,,,1e-3,1e-3,1e-3,,,1
WPSTYLE,,,,,,,,0
/ANG,1
/VIEW,1,1,1,1
/VUP,1,Z
esel,s,mat,,2
eplot
alls
fini
/SOLU
solve
fini
/POST1
vsel,s,,,2,,,1
esln
EMFT
alls
esel,s,mat,,2
/VSCALE,,0.3
plvect,b,,,,vect,elem,on,on
plvect,fmag,,,,vect,node,on,on
alls
fini
!/com, i = %i%
!dist(i)=d
!F(i,1)=_fxsum
!F(i,2)=_fysum
!d=d+2
!*if,d,gt,8,then
!d_air=d-8
!*endif
!*enddo
!/axlab,x,Distance d (mm)
!/axlab,y,Forces acting the magnet (N)
178
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
179
A series of static electromagnetic analyses is performed on the sensor to determine the Hall voltage.
The first analysis is performed without any applied magnetic field to determine the offset voltage. The
output voltage should be zero in the absence of a magnetic field. Due to non-uniform meshing, the
current distribution is not symmetrical, resulting in a small potential difference (offset voltage) across
the output pair of contacts. In a real application, the offset voltage can be caused by various factors,
such as mechanical stresses, material inhomogeneities, or temperature variations.
The initial electric potential distribution in the Hall plates is created by the applied voltage across the
sensor, as shown in Figure 6.11: Electric Potential Distribution in the Plates (p. 181).
180
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
For the second static analysis, the output voltage is calculated when there is an applied magnetic field
(0.8 T) perpendicular to the Hall plate, as shown in Figure 6.12: Vector Plot of Applied Magnetic Field
on the Plates (p. 182). The offset voltage is subtracted from this output voltage to determine the Hall
voltage.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
181
The magnetic field as measured by the sensor can be calculated by Eq. 9.14 in the reference:
=
Where:
I = the average current through the Hall plates. This value is retrieved using *GET.
c = the thickness of the plates.
VH = the Hall voltage from the sensor.
From the two-plate sensor measurement for Hall voltage, the applied magnetic field is calculated to be
0.788 T. The actual applied magnetic field is 0.8 T.
182
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
183
/SOLU
outres,all,all
solve
Voff=volt(n2)-volt(n1) ! Offset voltage
esel,s,type,,1
nsle
dflx,all,,,Bz
! Create uniform B-field in the +Z-direction
alls
solve
fini
/POST1
vsel,s,volu,,11
nslv
fsum
*get,I_1,fsum,,ITEM,amps ! Current through plate 1
vsel,s,volu,,16
nslv
fsum
*get,I_2,fsum,,ITEM,amps ! Current through plate 2
alls
I_avg=(I_1+I_2)/2 ! Average current through plates
/com
/com -------------------- RESULTS -------------------/com
/com ***** Offset Voltage *****
/com
/com Offset voltage:
%Voff% V
/com
/com
/com ***** Total Output Voltage *****
/com
/com Total output voltage (with magnetic field):
%volt(n2)-volt(n1)% V
/com
/com
/com ***** Hall Voltage *****
184
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
%volt(n2)-volt(n1)-Voff% V
%((volt(n2)-volt(n1)-Voff)*c)/(Rh*I_avg)% T
%Bz% T
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
185
186
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
187
188
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
189
Command(s)
SET,1,1,,0
SET,1,1,,1
PRNSOL,AZ
PRNSOL,VOLT
PRVECT,B
PRVECT,H
PRVECT,EF
PRVECT,JC
PRVECT,JT
PRVECT,FMAG
PRESOL,B
PRESOL,EF
PRESOL,JC
PRESOL,H
PRESOL,JT
PRESOL,FMAG
PRESOL,SENE
PRESOL,JHEAT
Create element table item for centroid flux density [5], X component. (Issue ETABLE,Lab,B,X
similar commands for Y, Z, and SUM components.)
Create element table item for centroid magnetic [5] field, X component.
(Issue similar commands for Y, Z, and SUM components.)
190
ETABLE,Lab,H,X
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Command(s)
ETABLE,Lab,EF,X
Create element table item for electric current density [5] field, X component.ETABLE,Lab,JC,,X
(Issue similar commands for Y, Z, and SUM components.)
Create element table item for Joule heat density [4, 6]
ETABLE,Lab,JHEAT
Create element table item for centroid current [5] density, X component.
(Issue similar commands for Y, Z, and SUM components.)
ETABLE,Lab,JT,X
Create element table item for magnetic force [2, 6] over element, X component. (Issue similar commands for Y, Z, and SUM components.)
ETABLE,Lab,FMAG,X
ETABLE,Lab,SENE
PRETAB,Lab,1,...
Substitute this
Command...
PRNSOL
PLNSOL
PRVECT
PLVECT
PRESOL
PLESOL
PRETAB
PLETAB
You also can plot element table items. See the Basic Analysis Guide for more information.
The ANSYS Parametric Design Language (APDL) also contains commands that may be useful in postprocessing, and several magnetics macros also are available for results processing purposes. For more information about the APDL, see the ANSYS Parametric Design Language Guide.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
191
Caution
The PLNSOL command or its equivalent menu path average nodal contour plots for derived
data, such as flux density and field intensity, at the nodes. Therefore, be sure to disallow
averaging of data across material boundaries, using one of these methods:
Command(s): AVRES,2
GUI: Main Menu> General Postproc> Options for Outp
192
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
193
Length
d = 0.1
Depth
w = 0.01
Width
i = 2000 + j1000
Current
mur = 1
= 1.0e-8
n = 20
fr = 3
Frequency
194
!
!
!
!
!
!
!
length
depth
width
relative magnetic permeability
electric resistivity (required for Joule loss)
rotor frequency at 5% slip
current real
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
! current imaginary
! meshing parameter
! free space permeability
/SOLU
ANTYP,HARM
HARFR,fr
! *** Apply Dirichlet boundary condition
NSEL,S,LOC,X,d
NSEL,A,LOC,Z,0
NSEL,A,LOC,Z,l
D,ALL,AZ,0
NSEL,S,LOC,Z,0
D,ALL,VOLT,0
NSEL,S,LOC,Z,l
CP,1,VOLT,ALL
*get,n1,node,,num,min
F,n1,AMPS,curr,curi
NSEL,ALL
SOLVE
FINI
! *** Extract solution
/POST1
SET,1,1
ETABLE,fxr,FMAG,X
PRETAB,fxr
POWERH
SSUM
FINI
! *** Extract solution
/POST1
SET,1,1
ETABLE,fxr,FMAG,X
PRETAB,fxr
POWERH
SSUM
FINI
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
195
Both the coil and the ferromagnetic plate are modeled using the electromagnetic analysis option
(KEYOPT(1) = 1) of SOLID236. In addition, KEYOPT(5) is set to 1 for the coil to suppress the eddy currents.
The air box is modeled using the magnetic analysis option KEYOPT(1) = 0.
The POWERH command macro is used to calculate the time-averaged (rms) power loss in the plate.
Taking into account the symmetry factor, the power loss is found to be Pav=131.9 watts. The real and
imaginary components of eddy current density in the plate are shown in Figure 7.3: Eddy Currents Distribution in the Plate (Real Solution) (p. 197) and in Figure 7.4: Eddy Currents Distribution in the Plate
(Imaginary Solution) (p. 197), below.
196
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The electromagnetic analysis is followed by a steady-state thermal analysis to determine the temperature
distribution in the plate due to Joule heating produced by the eddy currents. The ambient temperature
is assumed to be 70 C. The thermal conductivity and convection coefficient of the plate are taken to
be k=50 watts/(mC) and h=100 W/(m2C) respectively.
The time-averaged Joule heat generation rate is transferred to the thermal SOLID90 model using the
LDREAD,HGEN command. The resulting steady-state temperature distribution is shown in Figure 7.5: Tem-
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
197
!
!
!
!
!
!
!
!
inner radius, m
outer radius, m
height, m
distance between the coil and the plate,m
element size, m
frequency, Hz
rms coil current, A
relative permeability
! Air box:
la=0.5
ha1=0.05
ha2=0.35
esza=0.03
mu_air=1
sigc=2e-8
Tamb=70
!
!
!
!
!
!
!
length, m
lower height, m
upper height, m
element size, m
relative permeability
conductivity, S/m
ambient temperature,C
198
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
/com,
/com, *** Eddy current analysis
/com,
/PREP7
et,1,236,1
! AZ-VOLT - ferromagnetic plate
et,2,236,1,,,,1 ! AZ-VOLT (no eddy currents) - coil
et,3,236
! AZ - air
block,0,lp/2,0,lp/2,0,hp
cylinder,ri,ro,hp+d,hp+d+hc,0,90
block,0,la/2,0,la/2,-ha1,ha2
vovlap,all
numcmp,all
! plate
! coil
! air
mp,murx,1,mu_fer
mp,rsvx,1,1/sigp
mp,murx,2,mu_coil
mp,rsvx,2,sigc
mp,murx,3,mu_air
type,1
mat,1
esize,eszp
vmesh,1
type,2
mat,2
esize,eszc
vmesh,2
esha,1
type,3
mat,3
esize,esza
vmesh,3
asel,s,,,11
nsla,s,1
cp,1,volt,all
f,ndnext(0),amps,I*sqrt(2)
rms
asel,s,,,12
nsla,s,1
d,all,volt,0
nsel,all
asel,s,,,3
asel,a,,,5
nsla,s,1
d,all,volt,0
nsel,all
nsel,s,ext
d,all,az,0
nsel,all
allsel
fini
! Flux-parallel magnetic BC
/SOLU
antyp,harm
harf,,frq
solve
fini
/POST1
set,1,1
esel,s,mat,,1
POWERH
plve,jt,,,,vect,elem,on
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
199
/com,
/com, Ansys computed power loss = %Pavg*4% watts
/com,
/com, *** Thermal analysis
/com,
/PREP7
ddele,all,az
vsel,s,volu,,1
eslv
et,1,90
LDREAD,hgen
vsel,inve
vclear,all
alls
etdele,2,3
mp,kxx,1,k
nsel,s,ext
sf,all,conv,h,Tamb
nsel,all
fini
/SOLU
anty,static
solve
fini
/POST1
set,1,1
plnsol,temp
nsort,temp
*get,minTemp,sort,,min
*get,maxTemp,sort,,max
avTemp=(minTemp+maxTemp)/2
/com,
/com, Average temperature of the plate = %avTemp% (C)
/com,
fini
200
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The capacitor is modeled using the electromagnetic analysis option (KEYOPT(1) = 1) of SOLID236. Flux
parallel magnetic boundary conditions (AZ = 0) are imposed on the exterior surfaces of the capacitor
and on the symmetry planes. The electrodes are defined by coupling the electric potential degree of
freedom (VOLT) on the circular surfaces of the capacitor. The electric potential difference Eo*d is applied
across the electrodes to create a uniform electric field (Figure 7.7: Electric Field in the Capacitor (p. 201)).
Figure 7.7: Electric Field in the Capacitor
= c+ d
The total current density s
induced in the lossy dielectric is composed of the conduction
current density (real part)
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
201
= r
d = r
Note that the operating frequency f is low enough to allow neglecting the eddy currents contribution
to the conduction current Jc. The conduction and displacement currents induce the real (Figure 7.8: Magnetic Field Induced by the Conduction Current (p. 202)) and imaginary (Figure 7.9: Magnetic Field Induced
by the Displacement Current (p. 203).) magnetic fields, respectively.
Figure 7.8: Magnetic Field Induced by the Conduction Current
202
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
= s 2
the real and imaginary parts of the magnetic field magnitude can be expressed respectively as follows:
c
r =
and
d
i=
These analytical expressions were used to demonstrate the agreement between the ANSYS calculated
and the target magnetic field as a function of distance r from the axis. (Figure 7.10: Computed and
Analytical Real Magnetic Fields Hr (p. 204) and Figure 7.11: Computed and Analytical Imaginary Magnetic
Field Hi (p. 204))
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
203
204
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
!
!
!
!
Jc=E/rho
Jd=2*Pi*f*epsr*eps0*E
/nopr
/PREP7
et,1,SOLID236,1
mp,perx,1,epsr
mp,rsvx,1,rho
mp,murx,1,1
! AZ+VOLT
cyl4,,,,,a,90,d
esize,d/2
vmesh,all
! Electric boundary conditions
nsel,s,loc,z,0
cp,1,volt,all
*get,n_grd,node,0,num,min
nsel,s,loc,z,d
cp,2,volt,all
*get,n_load,node,0,num,min
nsel,all
d,n_grd,volt,0
d,n_load,volt,E*d
and loads
! define bottom electrode
! get master node on bottom electrode
! top electrode
! get master node on top electrode
! ground bottom electrode
! apply voltage load to top electrode
! stepped load
/com,
/com, Compare ANSYS and Expected H-field
/com,
/post1
path,path1,2,10,20
ppath,1,,0,0,0
ppath,2,,0,a,0
/com,
/com, - Real solution
/com,
set,1,1
plvect,ef,,,,vect,elem,on
plvect,jt,,,,vect,elem,on
plvect,h,,,,vect,elem,on
! electric field
! conduction current
! magnetic field
pdef,Hsum,h,sum,avg
pcalc,add,Hsum_tar,s,,Jc/2
/tlabel,-0.2,0.8,H-field (A/m) - Real part
plpath,Hsum,Hsum_tar
prpath,Hsum,Hsum_tar
/com,
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
205
! displacement current
! magnetic field
pdef,Hsum,h,sum,avg
pcalc,add,Hsum_tar,s,,Jd/2
/ann,dele
/tlabel,-0.2,0.8,H-field (A/m) - Imaginary part
plpath,Hsum,Hsum_tar
prpath,Hsum,Hsum_tar
/ann,dele
fini
206
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The first harmonic analysis (see the Command Listing) was performed with a core relative permeability
= 100000 and a coil turn ratio NS/NP = 200. The resulting voltage and EMF in the coils are shown in
the following table.
Table 7.2: Coil Voltage and EMF ( = 100000 and NS/NP = 200)
Coil
Voltage
EMF
Primary
1+j*0
0.970+j*0.142
Secondary
-1.919-j*0.281
-1.937-j*0.284
The magnetic flux in the core (real and imaginary) are shown in the following figures.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
207
Figure 7.14: Magnetic Field (Imaginary) in the Core ( = 100000 and NS/NP = 200)
The current density in the primary and secondary coils (real and imaginary) are shown in the following
figures.
208
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Figure 7.16: Current Density (Imaginary) in the Coils ( = 100000 and NS/NP = 200)
As shown in the following tables, several subsequent harmonic analyses were performed to study the
dependence of the voltage ratio in the coils as a function of core permeability and the ratio of the
number of turns.
Table 7.3: Secondary and Primary Coil Voltage Ratio as a Function of Core Permeability (NS/NP
= 200)
Core permeability
1000
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
209
10000
1.098
100000
1.94
Table 7.4: Secondary and Primary Coil Voltage Ratio as a Function of Ratio of Turns NS/NP ( =
100000)
Ration of Turns NS/NP
200
1.94
300
2.84
400
3.67
d_dmn=0.025
esz1=a_core/3
esz2=3*esz1
mu_core=100000
! core permeability
frqncy=50
symm=4
/nopr
! *** Geometry
/PREP7
vsel,none
! core
bloc,-w_core/2,w_core/2,,h_core/2,-a_core/2,0
cm,scrap1_v,volu
vsel,none
bloc,-(w_core/2-a_core),w_core/2-a_core,,h_core/2-a_core,-a_core/2,0
cm,scrap2_v,volu
210
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
wpcs,-1,0
wpof,w_core/2-a_core/2
wpro,,-90
cswp,12,1
csys
vsel,none
! left coil
wpcs,-1,11
cyli,r1_coil,r2_coil,0,h_coil/2,0,90
cyli,r1_coil,r2_coil,0,h_coil/2,90,180
vatt,3,3,3,11
vsel,none
! right coil
wpcs,-1,12
cyli,r1_coil,r2_coil,0,h_coil/2,0,90
cyli,r1_coil,r2_coil,0,h_coil/2,90,180
vatt,4,4,4,12
alls
cm,keep_v,volu
*get,xmin,kp,,mnloc,x
*get,xmax,kp,,mxloc,x
*get,ymax,kp,,mxloc,y
*get,zmin,kp,,mnloc,z
wpcs,-1,0
! surrounding domain
vsel,none
bloc,xmin-d_dmn,xmax+d_dmn,,ymax+d_dmn,zmin-d_dmn,0
cm,scrap_v,volu
cmse,all
vsbv,scrap_v,keep_v,,dele,keep
cmse,u,keep_v
cm,air_v,volu
vatt,1,1,1
alls
vplo
! *** FE model
et,1,236
mp,murx,1,1
et,2,236
mp,murx,2,mu_core
! air
et,3,236,2
! left primary coil
mp,murx,3,1
r,3,care_left,Np,volu_left,0,1,0
! left coil data
rmore,Rp,symm
et,4,236,2
! right secondary coil
mp,murx,4,1
r,4,care_right,Ns,volu_right,0,1,0
! right coil data
rmore,Rs,symm
! *** Mesh
numm,kp,1e-8,1e-8
esiz,esz1
vsel,s,mat,,3,4
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
211
vsel,s,mat,,4
alls,belo,volu
cp,3,emf,all
cp,4,volt,all
nd_s=ndnext(0)
alls
d,nd_p,volt,Vp
! *** Circuit
et,5,124,0
r,5,R
*get,nmax,node,,num,max
n,nmax+1,0,h_coil/2
type,5
real,5
e,nd_s,nmax+1
d,nmax+1,volt,0
csys
! ground
eplo
fini
! *** Solution
/solu
antype,harmonic
harf,frqncy
solve
fini
! *** Post-processing
/post1
set,,,,0
Vp_real=volt(nd_p)
Vs_real=volt(nd_s)
/com,
/com, *** Real solution
/com, Vp = %Vp_real%
/com, Vs = %Vs_real%
/com,
vsel,s,mat,,2,4
alls,belo,volu
plve,jt,,,,vect,,on
plve,b,,,,vect,,on
plnsol,emf
212
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
/com,
/com, *** Imag solution
/com, Vp = %Vp_imag%
/com, Vs = %Vs_imag%
/com,
vsel,s,mat,,2,4
alls,belo,volu
plve,jt,,,,vect,,on
plve,b,,,,vect,,on
plnsol,emf
alls
Vp = sqrt(Vp_real**2 + Vp_imag**2)
Vs = sqrt(Vs_real**2 + Vs_imag**2)
/com,
/com, *** Secondary to Primary Coil Voltage Ratio =
fini
%Vs/Vp%
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
213
214
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
215
Note
You can use constraint equations to define cyclic symmetry.
216
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Caution
Avoid using extremely small time steps, especially when establishing initial conditions. Very small
numbers can cause calculation errors in ANSYS. For instance, on a problem time scale of unity,
time steps smaller that 1E-10 can cause numerical errors.
If you step-apply loads, ANSYS applies the entire load value at the first substep and holds it constant
for the remainder of the load step. If you ramp loads (the default), ANSYS increments the load values
at each substep.
Command(s): NSUBST, DELTIM
GUI: Main Menu> Preprocessor> Loads> Load Step Opts> Time/Frequenc> Time and Substps
Main Menu> Solution> Load Step Opts> Time/Frequenc> Time and Substps
Main Menu> Solution> Load Step Opts> Time/Frequenc> Time - Time Step
217
218
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
By default, the ANSYS program writes only the last substep of each load step to the results
file. If you want all substeps (that is, the solution at all frequencies) on the results file, specify
a frequency or ALL or 1.
Command(s): OUTRES
GUI: Main Menu> Preprocessor> Loads> Load Step Opts> Nonlinear> Convergence Crit
Main Menu> Solution> Load Step Opts> Nonlinear> Convergence Crit
219
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Reviewing Results
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
221
222
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Element SOLID236 is used for all parts of the model. The conducting block is modeled using the electromagnetic analysis option (KEYOPT(1)=1) with time-integrated electric potential (KEYOPT(2)=2). The
coil is modeled as a stranded conductor (KEYOPT(1)=0) with a sinusoidal current density (Figure 8.2: Current Density in the Coil (p. 224)) applied as a tabular JS-body load (BFV,,JS,,%jcoil%) with time as a
primary variable. The same magnetic analysis option (KEYOPT(1)=0) is used to discretize the iron core
(bricks) and the air (tetrahedra).
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
223
Flux parallel magnetic boundary conditions (AZ = 0) are imposed on the exterior surfaces of the domain
and on the symmetry plane. Zero potential (VOLT = 0) electric boundary conditions are applied on the
symmetry plane of the conducting block.
A transient electromagnetic analysis is performed during one full cycle T (T = 0.02 s) to determine the
magnetic field in the conducting block. Note that to minimize the size of the output files, only the element results for the element component CCB that includes the coil, core and the block
(OUTRES,ESOL,,CCB) are stored.
The progression of the magnetic field through the copper block is shown in Figure 8.3: Magnetic Field
in the Copper Block at Successive Time Intervals (p. 225) at five successive time intervals T/40, T/4, T/2,
3T/4, and T.
Figure 8.4: Eddy Currents in the Conducting Block (p. 227) shows the eddy currents distribution in the
block at the end of the cycle.
Figure 8.5: Magnetic Field between the Pole-Pieces with and without the Copper Block (p. 228) shows
the magnetic field H at the center-point between the pole-pieces in the C-magnet with the copper
block in place and without it. The figure demonstrates that the field inside the copper block is attenuated
and lagging in phase compared to the external magnetic field.
224
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
225
226
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
227
!
!
!
!
r=0.05
l=0.04
ac=0.025
dext=0.1
esz1=0.005
esz2=0.01
esz3=0.05
228
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
! time period
! solution time
! total number of time steps
! AZ
! --- Core
et,2,236
mp,murx,2,muc
! AZ
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
229
! AZ
vsel,s,mat,,3
esize,esz1
vmesh,all
vsel,s,mat,,2,4,2
esize,esz2
vmesh,all
vsel,s,mat,,1
esize,esz3
mshape,1
vmes,all
allsel
eplo
vsel,s,mat,,4
bfv,all,js,0,%jcoil%,0
allsel
fini
! *** SOLVE
/SOLU
antype,trans
time,tend
nsub,nsubs
outres,esol,all,CCB
kbc,1
! step applied load
solve
fini
! *** POST PROCESS
/POST1
!set,,,,,0
!set,,,,,T/4
!set,,,,,T/2
!set,,,,,3*T/4
set,last,last
cmsel,s,CCB
plve,h,,,,vect,,on
esel,s,mat,,3
plve,jt,,,,vect,,on
allsel
fini
!
!
!
!
results
results
results
results
at
at
at
at
time=0 s
time=T/4 s
time=T/2 s
time=3*T/4 s
!
!
!
!
*dim,Hz,array,nsubs
230
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
231
232
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
233
Note
For KEYOPT(1) = 1 and 4, the VOLT degree of freedom is time integrated. For KEYOPT(1) =
5 and 6, the VOLT degree of freedom is not time integrated.
For a proper electromagnetic analysis, the continuity equation must be satisfied and the current density
must be solenoidal (i.e. div J = 0). This means that the current density must satisfy the law of conservation
of matter. That is, the current density cannot have sources or sinks.
2-D planar and axisymmetric problems automatically satisfy the solenoidal condition. However, 3-D
problems do not automatically satisfy this condition. For the classical SOLID97 formulations discussed
in this chapter, you can directly apply a current density load using the BFE,,JS command. However, you
need to verify that the solenoidal condition is satisfied when prescribing the source current density. If
this condition is not satisfied, the classical SOLID97 formulations can produce erroneous solutions. To
make sure that the applied current density is solenoidal, perform a preliminary static electric current
conduction analysis to obtain the current density distribution (e.g. using SOLID5, SOLID231, or SOLID232,
see Electric Field Analysis (p. 281)). Once the currents are determined, bring them into the magnetic
analysis using the LDREAD command.
The solenoidal formulations automatically satisfy the solenoidal condition by directly solving for current
(density) using a coupled current conduction and electromagnetic field solution. The nonlinear symmetric
solenoidal formulation (KEYOPT(1) = 5) is applicable to static and transient analyses. The linear unsymmetric solenoidal formulation (KEYOPT(1) = 6) is applicable to harmonic analysis.
For current-fed coils using the solenoidal formulation, you input current using F,,AMPS. To do so, perform
the following steps:
1. Set the VOLT DOFs to zero at the ground nodes of the coil (D,,VOLT).
2. Couple the VOLT DOFs at the source nodes of the coil (CP,,VOLT)
3. Set the current at any hot node (F,,AMPS).
The solenoidal formulations are applicable to voltage-fed and circuit-fed conductors as well. For voltagefed conductors, perform the following steps:
1. Set the VOLT DOFs to zero at the ground nodes of the coil (D,,VOLT).
2. Set the VOLT DOFs at the source nodes of the coil (D,,VOLT)
For circuit-fed conductors, perform the following steps:
1. Set the VOLT DOFs to zero at the ground nodes of the coil (D,,VOLT).
2. Couple the VOLT DOFs at the source nodes of the coil (CP,,VOLT)
3. Connect the circuit elements (CIRCU124, CIRCU125, and TRANS126) to the model.
The solenoidal formulations are applicable in source conductor regions only. These source conductors
are assumed to be free of eddy currents.
234
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
TURN
VOLU
CSYM
FILL
The coil fill factor represents the fraction of the coil cross-section that the conductor occupies. You can use this factor to
adjust coil resistance.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
235
236
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Flux-normal
Flux-parallel
Far-field
Far-field zero
Use AX = AY = AZ = 0.
Periodic
Flux-parallel boundary conditions force the flux to flow parallel to a surface, while flux-normal boundary
conditions force the flux to flow normal to a surface. You do not need to specify far-field zero boundary
conditions if you use boundary element INFIN111 to represent the "infinite" boundary of the model.
Use periodic boundary conditions in models that take advantage of periodic or cyclic symmetry; specify
them using the CE or CP command or their equivalent menu paths.
For an imposed magnetic field, specify the appropriate nonzero value of AX, AY, or AZ.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
237
238
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
239
9.3.1.6.1.2. Contour Displays, Vector Displays, Tabular Listings, and Magnetic Forces
See Contour Displays (p. 44), Vector Displays (p. 44), Tabular Listings (p. 44), and Magnetic Forces (p. 44)
for more information.
240
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
241
VC
Modeled
SYM = 8
J
Not Modeled
SC
Note
The coil cross-section must not change. You can use the coordinate system specified via the
ESYS command (Main Menu> Preprocessor> Modeling> Create> Elements> Elem Attributes) to simplify current direction cosines.
242
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Current-fed
solid source
conductor
Air
Current-fed
stranded coil
Circuit-fed
stranded coil
Laminated iron
Classical Formulation
DOF: AX, AY, AZ
Material properties: MUr (MURX)
Special characteristics; No eddy currents
Air
Classical Formulation
DOF: AX, AY, AZ
Material properties: MUr (MURX)
Special characteristics; No eddy currents
OT = 0
OT
(3D)
Current-fed massive conductor
Classical Formulation
DOFs: AX, AY, AZ, VOLT
Material Properties: MUr(MURX), rho (RSVX)
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
243
Note
Assumes a short-circuit condition with a net current flow from a current source generator.
Net current is unaffected by surroundings.
Classical Formulation
DOFs: AX, AY, AZ, VOLT
Material properties: MUr (MURX), rho (RSVX)
Note
For symmetry structures, set VOLT = 0 at one plane and couple nodes at the other. For
general 3-D structures, set VOLT = 0 at one node.
J = ni
A
244
Classical Formulation
DOF: AX, AY, AZ
Material Properties: MUr (MURX)
Special characteristics: No eddy currents; can
apply source current density, JS
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Classical Formulation
DOFs: AX, AY, AZ, VOLT
Material Properties: MUr (MURX), rho (RSVX)
Note
Prescribe VOLT = 0 at symmetry planes of a conductor to indicate no net buildup of potential.
Classical Formulation
DOFs: AX, AY, AZ, CURR
Material Properties: MUr (MURX), rho (RSVX)
Note
CURR DOF represents the current per turn in the coil. The CURR DOF must be coupled for
all nodes of the coil region.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
245
It
VOLT = 0
Current-fed solid
source conductor
Couple VOLT
Solenoidal Formulation
DOFs: AX, AY, AZ, VOLT
Material Properties: MUr(MURX), rho (RSVX)
Special characteristics: Couple VOLT DOF in region; apply
total current (F,,AMPS command) to single node.
Assumptions: Solid conductor does not model eddy current
effects within the conductor and has no back emf effects.
Voltage-fed solid
source conductor
F,,AMPS
D
ad
Solenoidal Formulation
DOFs: AX, AY, AZ, VOLT
Material Properties: MUr(MURX), rho (RSVX)
Special characteristics: Apply voltage drop (VLTG) via D
command.
Assumptions: Solid conductor does not model eddy current
effects within the conductor and has no back emf effects.
246
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
A 3-D harmonic analysis with a moving conductor requires that the moving conductor region include
the time-integrated electric DOF (VOLT). You accomplish this by setting KEYOPT(1) = 1 (AX, AY, AZ,
VOLT degrees of freedom).
See 2-D Harmonic Magnetic (AC) Analysis (p. 63) for a list of real constants used in moving body analysis.
You can use a harmonic analysis to simulate a moving conductor under a static (DC) field excitation.
To closely approximate the static field, use a very low frequency in the harmonic analysis. Typically, a
frequency less than .0001 Hz will yield a "near" static solution. The "static" solution will be stored in the
"real" solution set (the KIMG = 0 argument on the SET command). If you use the sparse solver, the
frequency can be set much lower (for example 10-8 Hz). However, if you use an iterative solver (JCG or
ICCG solver), convergence problems may occur for extremely low frequencies.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
247
248
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
249
d_dmn=0.025
esz1=a_core/3
esz2=3*esz1
frqncy=50
symm=4
/nopr
! *** Geometry
/PREP7
vsel,none
! core
bloc,-w_core/2,w_core/2,,h_core/2,-a_core/2,0
cm,scrap1_v,volu
vsel,none
bloc,-(w_core/2-a_core),w_core/2-a_core,,h_core/2-a_core,-a_core/2,0
cm,scrap2_v,volu
cmse,s,scrap1_v
cmse,a,scrap2_v
vsbv,scrap1_v,scrap2_v
cm,core_v,volu
vatt,2,2,2
wpcs,-1,0
wpof,-w_core/2+a_core/2
wpro,,-90
cswp,11,1
250
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
wpcs,-1,0
wpof,w_core/2-a_core/2
wpro,,-90
cswp,12,1
csys
vsel,none
! left coil
wpcs,-1,11
cyli,r1_coil,r2_coil,0,h_coil/2,0,90
cyli,r1_coil,r2_coil,0,h_coil/2,90,180
vatt,3,3,3,11
vsel,none
! right coil
wpcs,-1,12
cyli,r1_coil,r2_coil,0,h_coil/2,0,90
cyli,r1_coil,r2_coil,0,h_coil/2,90,180
vatt,4,4,4,12
alls
cm,keep_v,volu
*get,xmin,kp,,mnloc,x
*get,xmax,kp,,mxloc,x
*get,ymax,kp,,mxloc,y
*get,zmin,kp,,mnloc,z
wpcs,-1,0
! surrounding domain
vsel,none
bloc,xmin-d_dmn,xmax+d_dmn,,ymax+d_dmn,zmin-d_dmn,0
cm,scrap_v,volu
cmse,all
vsbv,scrap_v,keep_v,,dele,keep
cmse,u,keep_v
cm,air_v,volu
vatt,1,1,1
alls
vplo
! *** FE model
et,1,236
mp,murx,1,1
! air
et,2,236
TB,BH,2 ,
1, 20
TBPT,, 0.8
, 0.01
TBPT,, 1.12 , 0.02
TBPT,, 2.39 ,0.07
TBPT,, 4
, 0.24
TBPT,, 5.57 , 0.31
TBPT,, 8
, 0.7
TBPT,, 16
, 1.14
TBPT,, 40
, 1.5
TBPT,, 79.6 , 1.62
TBPT,, 159
, 1.70
TBPT,, 398
, 1.76
TBPT,, 796
, 1.82
TBPT,, 1592 , 1.88
TBPT,, 3365 , 1.94
TBPT,, 3979 , 1.95
TBPT,, 7958 , 1.985
TBPT,, 15915 , 2.010
TBPT,, 39789 , 2.041
TBPT,, 79577 , 2.093
TBPT,, 160000 , 2.2
et,3,236,2
! left primary coil
mp,murx,3,1
r,3,care_left,Np,volu_left,0,1,0
! left coil data
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
251
vsel,s,mat,,4
alls,belo,volu
cp,3,emf,all
cp,4,volt,all
nd_s=ndnext(0)
alls
! *** Circuit
et,5,124,0
r,5,R
*get,nmax,node,,num,max
n,nmax+1,0,h_coil/2
type,5
real,5
e,nd_s,nmax+1
d,nmax+1,volt,0
csys
! ground
eplo
fini
! *** Operating point solution
/solu
antyp,static
d,nd_p,volt,Vp
solve
fini
! *** Post-processing
/post1
set,1,1
vsel,s,mat,,2,4
alls,belo,volu
plve,jt,,,,vect,,on
252
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
/com,
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
253
/com,
/com, *** Imag solution
/com, Vp = %Vp_imag%
/com, Vs = %Vs_imag%
/com,
vsel,s,mat,,2,4
alls,belo,volu
plve,jt,,,,vect,,on
plve,b,,,,vect,,on
plnsol,emf
alls
Vp = sqrt(Vp_real**2 + Vp_imag**2)
Vs = sqrt(Vs_real**2 + Vs_imag**2)
/com,
/com, *** Secondary to Primary Coil Voltage Ratio =
fini
254
%Vs/Vp%
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
255
Magnetic
Macros
PREP
7
Sol
2D
POST POST MVP MSP Pla1
26
Dom Dom nar
2D
Axisym 3-D
ElecEdge StattroForm ic
Harm Trans stat
CMATRIX
CURR2D
EMAGERR
EMF[1]
EMFT[1]
EMTGEN
FLUXV
FMAGBC
FMAGSUM[1]
FOR2D
HMAGSOLV
LMATRIX
MAGSOLV
MMF
PERBC2D
PLF2D
PMGTRAN
POWERH
RACE
SENERGY
TORQC2D
TORQ2D
TORQSUM
256
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
YC
RAD
Z
XC
TCUR
DY
Thickness = DZ
PERBC2D generates periodic boundary conditions by writing constraint equations or assigning node
coupling necessary for two periodic symmetry planes. Use this method only for harmonic or transient
magnetic analyses. For static analyses, use ANSYS' cyclic symmetry capability. Invoke the macro as follows:
Command(s): PERBC2D
GUI: Main Menu> Preprocessor> Loads> Define Loads> Apply> Magnetic> Boundary> Vector
Poten> Periodic BCs
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
257
The odd symmetry option represents a half-period symmetry condition for a device. The even symmetry
condition represents a full period condition (repeating structure).
FMAGBC applies Maxwell surface flags and virtual work boundary conditions to an element component.
The macro groups elements comprising the object of interest a component. You specify the component
name as input on the FMAGBC command or the equivalent GUI path shown below.
Command(s): FMAGBC
GUI: Main Menu> Preprocessor> Loads> Define Loads> Apply> Magnetic> Flag> Comp. Force/Torq
Main Menu> Solution> Define Loads> Apply> Magnetic> Flag> Comp. Force/Torq
EMTGEN generates a distributed set of TRANS126 elements between the surface of a moving structure
and a plane (i.e. ground plane). This arrangement allows for fully coupled electrostatic-structural simulations for cases where the gap is small compared to the overall area of the structure. Invoke the macro
as follows:
Command(s): EMTGEN
GUI: Main Menu> Preprocessor> Modeling> Create> Transducers> Node to Plane
258
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
11.1.2.1. MAGSOLV
MAGSOLV allows you to specify solution options quickly and initiate the solution for most magnetostatic analyses. It applies to 2-D and 3-D models, scalar, vector, and edge formulations, and linear and
nonlinear analyses. The macro eliminates the need to use the MAGOPT command and step through a
two-step or three-step solution sequence required for certain situations. It also allows you to specify
convergence criteria for nonlinear analyses, and gives you an option to force recalculation of the BiotSavart integration from current sources.
To invoke the MAGSOLV macro, use one of the following:
Command(s): MAGSOLV
GUI: Main Menu> Solution> Solve> Electromagnet> Static Analysis> Opt&Solv
11.1.2.2. HMAGSOLV
HMAGSOLV allows you to specify solution options quickly and initiate the solution for harmonic electromagnetic analyses. It applies to 2-D models using the magnetic vector potential (MVP) formulation.
It applies to linear and nonlinear analyses. The macro eliminates the need to step through a two-step
solution sequence that would otherwise be required for nonlinear analyses. It also allows you to specify
convergence criteria.
To invoke the HMAGSOLV macro, use one of the following:
Command(s): HMAGSOLV
GUI: Main Menu> Solution> Solve> Electromagnet> Harmonic Analys> Opt&Solv
11.1.2.3. CMATRIX
CMATRIX allows you to calculate ground and lumped capacitance matrices. The ground capacitance
values relate the charge of one conductor with the conductor's voltage drop (to ground). The lumped
capacitance values relate the capacitance's between conductors. For more details and an example
problem, see Extracting Capacitance from Multi-conductor Systems (p. 329) and Example: Capacitance
Calculation (p. 342) of this manual, respectively. See the Mechanical APDL Theory Reference for more details.
To invoke the CMATRIX macro, use one of the following:
Command(s): CMATRIX
GUI: Main Menu> Solution> Solve> Electromagnet> Static Analysis> Capac Matrix
11.1.2.4. LMATRIX
LMATRIX allows you to calculate the differential inductance matrix and the total flux linkage in each
coil for an arbitrary set of coils. See the Mechanical APDL Theory Reference for more details.
11.1.2.4.1. Overview
LMATRIX calculates the differential inductance matrix and total flux linkage about an "operating point"
of a static magnetic field solution. The "operating point" is defined as a solution obtained with the
working (nominal) currents applied to the system. The macro is valid for linear or nonlinear magnetostatic analyses.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
259
11.1.2.4.2. Procedure
You need to assign nominal current values to the coil elements before calling the LMATRIX macro. For
a magnetostatic analysis using the Reduced Scalar Potential (RSP), Difference Scalar Potential (DSP), or
Generalized Scalar Potential (GSP) method, assign nominal currents to the coil elements by using
SOURC36 real constants. For a magnetostatic analysis using the Magnetic Vector Potential (MVP) or
edge formulations, you can assign nominal current (in terms of current density) to the coil elements by
using the BFV, BFA, or BFE commands. For 3-D problems using the MVP or edge formulations, you
need to verify that a solenoidal condition is satisfied when prescribing the source current density. For
more information on the solenoidal condition and how to verify it, see 3-D Magnetostatics and Fundamentals of Edge-Based Analysis (p. 157) and 3-D Nodal-Based Analysis (Static, Harmonic, and Transient) (p. 233).
A more convenient way to guarantee a solenoidal condition is to use a SOLID97 solenoidal formulation
(see SOLID97 Solenoidal Formulations (p. 261)).
To use the LMATRIX command macro, you must define a vector array parameter with dimension N
(which you enter in the LMATRIX Curname argument) by using the *DIM command, where N is the
number of coils. The ith row corresponds to the ith coil. You must set each vector array entry equal
to the nominal current per turn in the corresponding coil at the operating point. None of the current
values can be zero, but a zero current can be approximated by a negligibly small applied current.
In addition, for the classical formulations, you must group the elements for each coil into a component
using the CM command. Each set of independent coil elements must be assigned a component name
with a prefix (which you enter in the LMATRIX Coilname argument) followed by the coil number. A
coil component may be mixed of scalar (RSP/DSP/GSP) or vector (MVP) elements. The only important
factor is that the elements are excited by the same physical coil current described in the current vector.
For solenoidal elements, you must make the exciting node with a F,AMPS load a node component using
the CM command.
The classical and solenoidal formulations cannot be mixed. For more information on the solenoidal
formulations see SOLID97 Solenoidal Formulations (p. 261).
You must use the Indname argument to specify an array name for the matrix created by LMATRIX.
The Symfac argument of the LMATRIX command allows you to specify symmetry. The fraction of the
total device modeled is a multiplying factor applied to the inductance terms.
260
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
261
262
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
263
264
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
0.19989E+01
0.39978E+01
0.39976E+01
0.15989E+02
1. and 2. =
0.79948E+01
( 2., 3.)
.txt
TORQC2D calculates the torque on a body in a magnetic field via a surface integral along a circular
contour (path) centered about the global origin. It is ideal for analysis of rotating machines. Invoke the
macro using either of the following:
Command(s): TORQC2D
GUI: Main Menu> General Postproc> Elec & Mag Calc> Path Based> Circular Torq
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
265
FOR2D calculates the forces on a body in a magnetic field via a surface integral along a predefined
path. This macro requires a path in the air surrounding the object of interest. To invoke FOR2D, use
either the following command or GUI path: L
Command(s): FOR2D
GUI: Main Menu> General Postproc> Elec & Mag Calc> Path Based> Mag Forces
Figure 11.8: Sample Paths for Magnetic Force Calculation (p. 266) illustrates the path selection for two
planar analysis cases. A counterclockwise ordering of nodes on the PPATH command will give the
correct sign on the force result.
Figure 11.8: Sample Paths for Magnetic Force Calculation
MMF calculates the magnetomotive force, the line integral of magnetic field, H, along a predefined
path (defined with the PATH and PPATH command). A counterclockwise ordering of nodes will give
266
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
267
PLF2D generates a display of equipotential lines with the degree of freedom AZ. In an axisymmetric
analysis, the display consists of constant values of radius * AZ. Use this macro for 2-D analysis only.
These equipotential lines are parallel to flux lines and provide a good representation of magnetic flux
patterns.
To invoke PLF2D, use one of the following:
Command(s): PLF2D
GUI: Main Menu> General Postproc> Plot Results> Contour Plot> 2D Flux Lines
Utility Menu> Plot Ctrls> Results> Flux Lines
SENERGY calculates the stored magnetic energy or co-energy in the model. The energy calculation is
summarized in a table by material number, and the energy density is stored in the element table for
displaying and listing.
Figure 11.11: Energy and Co-energy for Nonpermanent Magnets
B
energy (w)
xxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxx
x
coenergy (w')
Figure 11.11: Energy and Co-energy for Nonpermanent Magnets (p. 268) illustrates how the magnetic
energy and co-energy are determined for nonpermanent magnets. The energy at a point on the curve
is the area above the curve bounded by the value of B at that point, and the co-energy is the area under
the curve at that point.
268
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
coenergy (w')
xxxxxxxxx
xxxxxxxxx
xxxxxxxxx
xxxxxxxxx
xxxxxxxxx
xxxxxxxxx
xxxxxxxxx
xxxxxxxxx
xxxxxxxxx
xxxxxxxxx
xxxxxxxxx
xxxxxxxxx
x
energy (w)
xxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxx
(b)
(a)
w,w'
B
Hc
-Hc
linear
(c)
For a permanent magnet, energy and co-energy for a point on the curve are calculated as follows:
The energy is the area to the right of the curve in the positive B region (see graph (a) in Figure 11.12: Energy
and Co-energy for Permanent Magnets (p. 269)). Note that the energy is negative for the shown case.
The co-energy is the area under the curve (see graph (b) in Figure 11.12: Energy and Co-energy for Permanent Magnets (p. 269)).
The energy and co-energy of a linear permanent magnet are show in graph (c) in Figure 11.12: Energy
and Co-energy for Permanent Magnets (p. 269).
SENERGY determines the energy and co-energy using the following B-H relationships:
where B1-H1 is a soft magnetic characteristic of the material and Hc is the coercive force.
For a linear soft magnetic material, the B1-H1 relationship is given by:
where o is the free-space permeability and r is the relative permeability specified by the MP command
and the MURX, MURY, and MURZ labels.
For a nonlinear soft magnetic material, you input a B1-H1 curve using the TB command with the BH
label. You then enter the data points using the TBPT or TBDATA command. The curve must start at
the origin and increase monotonically. For the energy calculations, the curve is approximated with a
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
269
Note
Energy values are undefined for circuit-coupled elements (PLANE53 or SOLID97 with KEYOPT(1)
= 3 or 4).
To invoke SENERGY, use one of the following:
Command(s): SENERGY
GUI: Main Menu> General Postproc> Elec & Mag Calc> Element Based> Co-Energy
Main Menu> General Postproc> Elec & Mag Calc> Element Based> Energy
EMAGERR calculates the relative error in the computed field quantities (B, H) for each element in a
model. The error represents the average difference in the element computed field value and a continuous
field value. The continuous field is represented by the average nodal field values. Optionally, you can
normalize the error value with respect to the highest computed nodal-averaged field value per material.
The error measure considers material discontinuities when calculating the average nodal continuous
field values.
To invoke EMAGERR, use either of the following:
Command(s): EMAGERR
GUI: Main Menu> General Postproc> Elec & Mag Calc> Element Based> Error Eval
CURR2D calculates the total current flowing in a conducting body for 2-D models. The current may be
from an applied source current, or induced eddy current. This macro is useful for checking total current
flow.
To invoke CURR2D, use either of the following:
Command(s): CURR2D
GUI: Main Menu> General Postproc> Elec & Mag Calc> Element Based> Current
EMFT summarizes in tabular form the resulting electromagnetic forces and torques on a set of selected
nodes. This command is applicable only to PLANE121, SOLID122, and SOLID123 elements.
To invoke EMFT, use either of the following:
Command(s): EMFT
GUI: Main Menu> General Postproc>
FMAGSUM summarizes in tabular form the resulting Maxwell and virtual work forces on a body. The
body must be defined as a named element component. (Typically you use the macro FMAGBC to apply
appropriate boundary conditions in the preprocessor to invoke the force calculation during the solution
phase.)
To invoke FMAGSUM, use either of the following:
Command(s): FMAGSUM
GUI: Main Menu> General Postproc> Elec & Mag Calc> Path Based> Mag Forces
TORQSUM summarizes in tabular form the resulting Maxwell and virtual work forces on a body. The
body must be defined as a named element component. (Typically you use the macro FMAGBC to apply
appropriate boundary conditions in the preprocessor to invoke the force calculation during the solution
phase.)
270
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
271
272
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
By using far-field elements (here element INFIN9) instead, you need to model only a portion of the air.
The figure shows flux lines in the finite element region modeled with far-field elements at the radial
boundary.
Figure 12.2: Flux Lines With Far-Field Elements
How much of the surrounding air should you model? The answer depends on the problem you are
solving. For relatively closed flux paths (little leakage to surroundings), not much of the air needs to be
modeled, that is, you can place the far-field elements relatively close to the model region of interest.
For open-boundary problems, you should extend the air elements well beyond the region of interest
before placing the far-field elements.
Far-Field Elements Described
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
273
Far-Field Elements
ANSYS offers the following far-field elements.
Table 12.1: 2-D Far-Field Elements
Element
INFIN9
Description
2 Node Line Element
Analysis Category
Enclosed Elements
Analysis Type
Magnetic
PLANE13
Static
PLANE53
Harmonic
Planar Models
Transient
Thermal
PLANE35
PLANE55
Steadystate
Transient
PLANE77
INFIN110
4 or 8 Node Quadrilateral
Magnetic
PLANE13
Static
PLANE53
Harmonic
Transient
Electrostatic
PLANE121
Static
Harmonic
Thermal
PLANE35
Steadystate
PLANE55
PLANE77
Electric Current Conduction
PLANE230
Transient
Steadystate
Harmonic
Transient
Table 12.2: 3-D Far-Field Elements
Element
INFIN47
Description
4 Node Quadrilateral or 3 Node
Triangle
Analysis Category
Enclosed Elements
Analysis Type
Magnetic
SOLID5
Static
SOLID96
Harmonic
SOLID98
Transient
SOLID70
Steadystate
Thermal
Transient
INFIN111
8 or 20 node hexahedral
Magnetic
SOLID5
SOLID96
274
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Static
Description
Analysis Category
Enclosed Elements
Analysis Type
SOLID98
SOLID97
Static
Harmonic
Transient
Electrostatic
SOLID122
Static
Harmonic
SOLID123
Thermal
SOLID70
SOLID87
Steadystate
Transient
SOLID90
Electric Current Conduction
SOLID231
Steadystate
SOLID232
Harmonic
Transient
Note
You can also use far-field elements in a thermal analysis. Refer to the Thermal Analysis Guide
for details on thermal analysis.
275
Far-Field Elements
GUI: Main Menu> Preprocessor> Modeling> Operate> Extrude> Areas> By XYZ offset
The INFIN110 and INFIN111 elements are usually much longer in the infinite direction, resulting in
skewed meshes. Therefore, contour plots exclude these elements. Element plots, however, include them.
For optimal performance of either INFIN110 or INFIN111, you must meet one or both of the following
conditions.
Boundaries Must Describe a Smooth Curvature
INFIN110 and INFIN111 perform best when the boundary between the finite element (FE) domain and
the infinite element (IFE) domain describes a smooth curvature. Figure 12.3: Interface between FE and
Infinite Element Domains (p. 276) illustrates this point.
Figure 12.3: Interface between FE and Infinite Element Domains
If your model construction does not allow a smooth FE to IFE domain interface, you may do so provided
the infinite elements "radiate" from any sharp corners in the FE domain. Only one element edge may
be "exposed" to the open exterior. Figure 12.4: IFE Constructions for Non-Smooth FE to IFE Domain Interface (p. 276) illustrates this point for both a correct and incorrect IFE construction for a quarter symmetry
model.
Figure 12.4: IFE Constructions for Non-Smooth FE to IFE Domain Interface
Figure 12.4: IFE Constructions for Non-Smooth FE to IFE Domain Interface (p. 276) also illustrates that
only one face of an infinite element may be exposed to infinity. Be careful to assure that one face of
the infinite element is exposed to infinity. You should avoid constructions that lead to infinite element
with sides converging from the FE interface to the interface with infinity. Figure 12.5: 2-D Infinite Element
Structures (p. 276) illustrates this point.
Figure 12.5: 2-D Infinite Element Structures
Examples of correct and incorrect
276
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The accuracy of field calculations at sharp edges of the FE/IFE domain interface will be of lower quality
than those achieved at a smooth interface.
Length of Elements Should Equal Depth of Domain
The second condition that improves the performance of INFIN110 and INFIN111 is the relative dimensions
of the FE and IFE domains. The relative length of the infinite elements should be approximately equal
to the depth of your model's FE domain. Figure 12.6: Relative Dimensions of FE and IFE Domains (p. 277)
illustrates this relationship for a 2-D quarter symmetry example.
Figure 12.6: Relative Dimensions of FE and IFE Domains
When INFIN9 or INFIN47 elements enclose higher-order elements in a model, remove the midside nodes
of the higher-order elements at the interface with the far-field elements (EMID command). When INFIN110
or INFIN111 elements enclose higher-order elements in a model, use the higher-order setting for the
far-field elements (KEYOPT(2) = 1).
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
277
Far-Field Elements
Figure 12.7: Grounding Plate with Current Loading
I
X
2a
12.2.2. Results
The electric current results are shown in the following figure.
Figure 12.8: Electric Current Distribution
The calculated resistance is 4943 Ohms. The expected result from the above reference is:
R = 1/(4a) = 5000 Ohms
278
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
lesize,4,,,8
lesize,2,,,8
lesize,8,,,8
lesize,9,,,1
lesize,5,,,1
msha,1,2d
type,1
amesh,1
mshk,1
msha,0,2d
type,2
amesh,2,3
nummrg,node
lsel,s,line,,6
lsel,a,line,,8
sfl,all,INF
lsel,all
nsel,s,loc,y,0
nsel,r,loc,x,0,a
cp,1,volt,all
n_load=ndnext(0)
nsel,all
fini
! define electrode
/solu
antype,static
f,n_load,amps,I
solve
fini
/post1
plesol,jc,sum
! plot electric current vector sum
/com
/com Calculated resistance R = %volt(n_load)/I% Ohm
/com
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
279
Far-Field Elements
/com **************************************************************************
/com
Expected results: R = %1/(4*sig*a)% Ohm
/com **************************************************************************
finish
280
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
281
DiShape or Charactermens.
istic
LINK68
3-D
DOFs
Usage Notes
Steady-state current
conduction analysis;
thermal-electric
coupled-field analysis
DOFs
Usage Notes
DiShape or Charactermens.
istic
PLANE121 2-D
Quadrilateral, eight
nodes
Electrostatic analysis;
quasistatic time-harmonic analysis
PLANE230 2-D
Quadrilateral, eight
nodes
Steady-state current
conduction analysis;
quasistatic time-harmonic and time-transient analyses
DiShape or Charactermens.
istic
SOLID5
3-D
SOLID98
3-D
282
DOFs
Usage Notes
Hexahedral, eight
nodes
Steady-state current
conduction analysis;
thermal-electric
coupled-field analysis
or coupled-field electromagnetic analysis
Tetrahedral, ten
nodes
Steady-state current
conduction analysis;
thermal-electric
coupled-field analysis
or coupled-field electromagnetic analysis
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
DiShape or Charactermens.
istic
DOFs
Usage Notes
SOLID122
3-D
Hexahedral, twenty
nodes
Electrostatic analysis;
quasistatic time-harmonic analysis
SOLID123
3-D
Tetrahedral, ten
nodes
Electrostatic analysis;
quasistatic time-harmonic analysis
SOLID231
3-D
Hexahedral, twenty
nodes
Steady-state current
conduction analysis;
quasistatic time-harmonic and time-transient analyses
SOLID232
3-D
Tetrahedral, ten
nodes
Steady-state current
conduction analysis;
quasistatic time-harmonic and time-transient analyses
DiShape or Charactermens.
istic
SHELL157 3-D
Quadrilateral shell,
four nodes
DOFs
Usage Notes
Steady-state current
conduction analysis;
thermal-electric
coupled-field analysis
Dimens.
Shape or Characteristic
MATRIX50
None Depends on the elements that it in- Depends on the included element types
(sucludes in its structure
perelement)
INFIN110
2-D
DOFs
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
283
Dimens.
INFIN111
3-D
Shape or Characteristic
DOFs
Dimens.
Shape or Characteristic
DOFs
CIRCU94
None Circuit element for use in piezoelec- Voltage at two nodes (plus charge at a
tric-circuit analyses, two or three
third node for an independent voltage
nodes
source)
CIRCU124
CIRCU125
Electric potential
KEYOPT
(1)
LINK68
N/A
TEMP, VOLT
RSVX
SHELL157
N/A
TEMP, VOLT
RSVX, RSVY
PLANE53
VOLT, AZ
RSVX, RSVY
SOLID97
SOLID236
SOLID237
DOFs
Reaction Solution
PLANE121
N/A
VOLT
SOLID122
N/A
VOLT
PERX, PERY,
PERZ, RSVX,
RSVY, RSVZ, LSST
284
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Element Compatibility
Element
KEYOPT
(1)
SOLID123
N/A
VOLT
PERX, PERY,
PERZ, RSVX,
RSVY, RSVZ, LSST
PLANE230
N/A
VOLT
RSVX, RSVY,
PERX, PERY, LSST
SOLID231
N/A
VOLT
SOLID232
N/A
VOLT
CIRCU94
05
VOLT, CURR
N/A
CIRCU124
012
N/A
CIRCU125
0 or 1
VOLT
N/A
TRANS126
PLANE13
N/A
Reaction Solution
VOLT, AZ
RSVX, RSVY
PERX, PERY
SOLID5
DOFs
VOLT
0
SOLID98
1
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
285
Element
PLANE223
SOLID226
SOLID227
KEYOPT
(1)
DOFs
VOLT
Reaction Solution
101
RSVX, RSVY
1001
110
TEMP, VOLT
RSVX, RSVY,
PERX, PERY
111
RSVX, RSVY,
PERX, PERY
1011
PERX, PERY,
LSST, DPER
101
1001
PERX, PERY,
PERZ, LSST
110
TEMP, VOLT
111
1011
PERX, PERY,
PERZ, LSST, DPER
101
1001
PERX, PERY,
PERZ, LSST
110
TEMP, VOLT
111
1011
PERX, PERY,
PERZ, LSST, DPER
INFIN110
VOLT
PERX, PERY
INFIN111
VOLT
286
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Current Densities
1. The following apply to electrostatic elements PLANE121, SOLID122, and SOLID123 and far-field elements
INFIN110 and INFIN111:
If KEYOPT(6) is set to 0, the reaction solution is positive electric charge.
If KEYOPT(6) is set to 1, the reaction solution is negative electric charge.
2. The following apply to circuit element CIRCU94, KEYOPT(1) = 0-4:
If KEYOPT(6) is set to 0, the analysis type is piezoelectric-circuit and the reaction solution is negative
electric charge.
If KEYOPT(6) is set to 1, the analysis type is electrostatic-circuit and the reaction solution is positive
electric charge.
3. The following apply to coupled-field elements PLANE223, SOLID226, and SOLID227, KEYOPT(1) = 1001:
If a piezoelectric matrix is specified (TB,PIEZ), the analysis type is piezoelectric and the reaction solution
is negative electric charge.
If a piezoelectric matrix is not specified, the analysis type is electroelastic and the reaction solution is
positive electric charge.
4. The following apply to electromagnetic elements SOLID236 and SOLID237, KEYOPT(1) = 1 or 2.
If KEYOPT(2) is set to 2 in a harmonic or transient analysis, VOLT is a time-integrated electric potential
(KEYOPT(1) = 1) or a time-integrated voltage drop (KEYOPT(1) = 2).
In all the other cases, the VOLT degree of freedom represents an electric potential (KEYOPT(1) = 1) or
a voltage drop (KEYOPT(1) = 2).
JS
JT
JC
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
287
Dimens.
Type
LINK68
3-D
PLANE230
2-D
SOLID5
3-D
SOLID98
3-D
SOLID231
3-D
SOLID232
3-D
SHELL157
3-D
288
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Dimens.
3-D
Type
Superelement
You must specify electric resistivity values RSVX, RSVY, and RSVZ using the MP command. These properties may be constant or temperature dependent.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
289
13.4.2.4.1. Current
Electric currents (AMPS) are concentrated nodal loads that you usually specify at model boundaries (the
label AMPS is just a load label; it does not indicate the units of measurement). A positive value of current
indicates current flowing into the node. For a uniform current density distribution, couple the appropriate
nodes in the VOLT degree of freedom, and apply the full current at one of the nodes.
To apply current, use one of the following:
Command(s): F
GUI: Main Menu> Solution> Define Loads> Apply> Electric> Excitation> Current
290
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Commands
PLESOL,
PLNSOL
GUI Path
Main Menu> General Postproc> Plot Results> Contour Plot> Element Solution
Main Menu> General Postproc> Plot Results> Contour Plot> Nodal Solu
PLVECT
PRESOL,
PRNSOL,
PRRSOL
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
291
Commands
GUI Path
Main Menu> General Postproc> List Results> Nodal
Solution
Main Menu> General Postproc> List Results> Reaction Solu
To gain access to certain element results data that are not otherwise directly accessible, you must use
the following commands or menu paths after you have read the results into the database:
Table 13.11: ETABLE Results
Step
Commands
GUI Path
Produce
contour displays.
ETABLE
PLETAB
Main Menu> General Postproc> Plot Results> Contour Plot> Elem Table
Main Menu> General Postproc> Element Table>
Plot Elem Table
PRETAB
POST1 performs many other postprocessing functions, including mapping results onto a path and load
case combinations. For more information, see the Basic Analysis Guide manual.
292
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
g
11 1 +
=
g
12
+
Conductor
Conductor 3 (round)
+
=
+
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
293
Conductor 1
Conductor 2
G
Conductor 3 (ground)
where Gl represents a matrix of conductances referred to as "lumped conductances".
13.4.4.2. Procedure
The GMATRIX command macro will perform multiple simulations and extract both the ground conductance matrix values and the lumped conductance matrix values. To prepare for GMATRIX, you must
group the conductor nodes into node components. Do not apply any loads to the model (voltages,
current, etc.). The component name applied to the conductor nodes must contain a common prefix,
followed by a numerical suffix progressing from 1 to the highest numbered conductor in the system.
The last numbered conductor in the system must be the ground conductor (the conductor whose potential is assumed to be zero). The procedure for using GMATRIX is as follows:
1. Build and mesh the solid model with electric elements. Conductors are assumed to be perfect conductors
and hence do not require a finite element mesh within the conductor domain. Only the surrounding
conductive regions require a mesh. The resulting nodes on the boundary of the conductors represent
the nodes that will be grouped into node components.
2. Select the nodes on the surface of the each conductor and group them into node components:
Command(s): CM
GUI: Utility Menu> Select> Comp/Assembly> Create Component
Share a command prefix for the component names, and use a numerical value sequencing from 1
to the highest numbered conductor. For example, in Figure 13.2: Lumped Conductor Equivalence
of Three Conductor System (p. 294), three node components would be defined for each set of conductor nodes. Using a prefix "cond", the node component names would be "cond1", "cond2", and
"cond3". The last component, "cond3", would be the nodes representing the ground.
3. Enter the SOLUTION processor:
Command(s): SOLU
GUI: Main Menu> Solution
4. Select an equation solver (sparse or ICCG solver recommended):
Command(s): EQSLV
GUI: Main Menu> Solution> Analysis Type> Analysis Options
5. Invoke the GMATRIX macro:
Command(s): GMATRIX
GUI: Main Menu> General Postproc> Elec&Mag Calc> Component Based> Self/Mutual conductance
294
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
295
Dimens.
Type
PLANE230
2-D
SOLID231
3-D
SOLID232
3-D
Dimens.
Type
PLANE121
3-D
SOLID122
3-D
SOLID123
3-D
296
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
297
Element Types
Current-Based Analysis
Charge-Based Analysis
Loads
Current
Charge
Voltage
13.5.2.4.1. Current
Electric currents (AMPS) are concentrated nodal loads that you usually specify at model boundaries (the
label AMPS is just a load label; it does not indicate the units of measurement). A positive value of current
indicates current flowing into the node. For a uniform current density distribution, couple the appropriate
nodes in the VOLT degree of freedom, and apply the full current at one of the nodes.
To apply current, use one of the following:
298
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
13.5.2.4.2. Charge
Electric charges (CHRG) are concentrated nodal force loads. To apply them, use the following command
or GUI path:
Command(s): F
GUI: Main Menu> Solution> Define Loads> Apply> Electric> Excitation> Charge> On Nodes
Note
Some output quantities depend on the element type used in the analysis.
Nodal electric field (EFX, EFY, EFZ, EFSUM).
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
299
Label
Command(s)
CurChargerentbased
based
[2]
[1]
Nodal DOF
VOLT
PRNSOL,
PLNSOL,
ETABLE,
NSOL
EF
JC
PRNSOL,
PLNSOL,
PRESOL,
PLESOL,
PRVECT,
PLVECT,
ETABLE,
ESOL
JS [3 ]
JT [3 ]
300
PRESOL,
PLESOL,
PRVECT,
PLVECT,
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Label
Command(s)
CurChargerentbased
based
[2]
[1]
ETABLE,
ESOL
Element Joule heat generation rate per unit
volume (time-averaged)
JHEAT
SENE
AMPS
CHRG
PRESOL,
PLESOL,
ETABLE,
ESOL
RFORCE,
PRRFOR,
PRRSOL,
PRESOL,
PLESOL
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
301
Command
GUI Path
NSOL
ESOL
RFORCE
Once you have defined these variables, you can graph or list them (versus time or any variable) using
the following commands or GUI paths.
Table 13.17: Graphing and Listing Variables
Step
Command
GUI Path
To graph variables.
PLVAR
To list variables.
PRVAR
EXTREM
POST26 offers many other functions, such as performing math operations among variables, moving
variables into array parameters, etc. For more information, see The Time-History Postprocessor (POST26)
in the Basic Analysis Guide.
By reviewing the time-history results at strategic points throughout the model, you can identify the
critical time points for further POST1 postprocessing.
302
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Dimens.
Type
PLANE230
2-D
SOLID231
3-D
SOLID232
3-D
The default system of units is MKS. In the MKS system of units, free-space permittivity is set to 8.85e12 Farads/meter. To specify your own system of units and free-space permittivity use one of the following:
Command(s): EMUNIT
GUI: Main Menu>Preprocessor>Material props>Electromag Units
To model resistive and capacitive effects, a transient electric analysis requires the specification of electrical resistivity and electric permittivity, respectively. Define electrical resistivity values as RSVX, RSVY,
and RSVZ on the MP command. Define relative electric permittivity values as PERX, PERY, and PERZ on
the MP command. These properties may be constant or temperature dependent.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
303
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
305
306
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
a
I
I
-b
13.7.1.1. Results
Table 13.19: Electric Potential at Points with Coordinates r = a and
(degrees)
Target [1 ]
.03501
.03497
10
.03399
.03392
20
.03124
.03110
30
.02708
.02716
40
.02269
.02271
50
.01814
.01810
60
.01360
.01349
70
.00880
.00894
80
.00438
.00445
90
0.0
0.0
1. Problem # 286, p.137 in N.N. Lebedev, I.P. Skalskaya, Y.S. Ufland, "Worked problems in Applied Mathematics," Dover Publications, Inc., NY (1979).
The following figures display the potential and dc-current distributions in the disk.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
307
308
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
! Boundary conditions
csys,1
d,node(0,0,0),volt,0
*dim,value,,10,2
*dim,coord,,10,2
*do,i,1,10
! coordinates of solution point
r=a $
phi=(i-1)*10
coord(i,1)=r
coord(i,2)=phi
! ANSYS solution
value(i,1)=volt(node(a,(i-1)*10,0))
*enddo
! Analytical solution
*vfill,value(1,2),data,-0.034969,-0.033923,-0.031098,-0.027163,-0.022709
*vfill,value(6,2),data,-0.018095,-0.013485,-0.008937,-0.004451,0.
/com,---------------- VOLT SOLUTION ---------------/com,
/com,
R
|
PHI
|
ANSYS
|
TARGET
/com,
*vwrite,coord(1,1),coord(1,2),value(1,1),value(1,2),
(1X,' ',F6.1,'
',F6.1,'
',F11.6,'
',F11.6)
/com,------------------------------------------------fini
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
309
J,E
Conductor
Electrodes
(MP,RSVX)
Ground
(D,,VOLT,0)
310
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Lossy Dielectric
a
d
Vo
The geometric and electrical parameters are:
Radius a = 9 cm
Thickness d = 0.1 cm
Relative Permittivity r = 1143
Loss tangent tan = 0.0105
Voltage amplitude Vo = 50 volts
Frequency f = 0 to 1 MHz
The capacitor is modeled using the axisymmetric option of PLANE230 electric elements. Electrodes are
defined by coupling VOLT degrees of freedom on the major surfaces of the capacitor. The bottom
electrode is grounded, and a voltage load Vo is applied to the top electrode.
Figure 13.8: Axisymmetric Model
=
x
Electric admittance (Y) is calculated at ten frequencies between 0 and 1 MHz using the reaction current
on the loaded electrode. Results are compared with target values obtained from the following analytical
expression:
Y = 2fC(tan+j)
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
311
2
= r o
and j = imaginary unit.
Power dissipation at f = 1 MHz is calculated in /POST1 by summing up the Joule heat rates over the
elements. The result is compared with the following analytical expression for the time-average power
dissipated in the capacitor:
d=
13.7.3.1. Results
As shown in the following table, the ANSYS electric admittance (Y) results agree with those from the
analytical expression given above.
Table 13.20: Electric Admittance (Y)
Frequency (MHz)
0.0
0.1618
0.2
0.3236
0.3
0.4855
0.4
0.6473
0.5
0.8091
0.6
0.9709
0.7
1.1327
0.8
1.2945
0.9
1.4564
1.0
1.6182
312
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
!
!
!
!
!
loss tangent
voltage amplitude, V
begin frequency, Hz
end frequency, Hz
free space permittivity, F/m
! capacitance, F
! power dissipation at freq. f2, watt
rect,,a,,d
esize,d/2
amesh,1
!
!
!
!
!
harmonic analysis
frequency range
number of substeps
write all solution items to the result file
stepped load
/post1
/com,Calculate power dissipation at frequency = %f2%, Hz
set,last
! read last data set
etab,jh,jheat
! fill etable with Joule heat rates per unit volume
etab,vol,volu
! fill etable with element volumes
smult,dpower,jh,vol
! fill etable with element Joule heat rates
ssum
! sum element Joule heat rates
/com,Expected power dissipation = %P2d%, watt
fini
/post26
rfor,2,n_load,amps
prod,3,2,,,Y_ANSYS,,,1/Vo
prod,4,1,,,,,,2*Pi*C
cfact,tand,,,1
add,5,4,4,,Y_TARGET
prcplx,1
prvar,Y_ANSYS,Y_TARGET
fini
! reaction current I
! Y_ansys = I/V
! 2*Pi*f*C
! Y_target = 2*Pi*f*C*(tand+j)
/com,
/com, *** Perform same frequency sweep using electrostatic elements
/com,
/PREP7
et,1,PLANE121,,,1
! axisymmetric electrostatic element
fini
/solu
antype,harm
harfrq,f1,f2
nsubs,10
! harmonic analysis
! frequency range
! number of substeps
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
313
/post1
/com,Calculate power dissipation at frequency = %f2%, Hz
set,last
! read last dataset
etab,jh,jheat
! fill etable with Joule heat rates per unit volume
etab,vol,volu
! fill etable with element volumes
smult,dpower,jh,vol
! fill etable with element Joule heat rates
ssum
! summ up element Joule heat rates
/com,Expected power dissipation = %P2d%, watt
fini
/post26
rfor,2,n_load,chrg
cfact,0,2*Pi
prod,3,1,2,,Y_ANSYS,,,,1/Vo
prod,4,1,,,,,,2*Pi*C
cfact,tand,,,1
add,5,4,4,,Y_TARGET
prcplx,1
prvar,Y_ANSYS,Y_TARGET
fini
! reaction charge Q
! Y_ansys = j*2*Pi*Q/Vo
! 2*Pi*f*C
! Y_target = 2*Pi*f*C*(tand+j)
a
b
t=0
-+
U
314
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
s=
S = ab
= r o
13.7.4.2. Results
The following figures display the electric field and current density distributions as functions of time.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
315
316
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
! Circuit mesh
*get,nmax,node,0,num,max
n3=nmax+1
n4=n3+1
n,n3,a/2,-a
n,n4,a/2,-a
type,1
! resistor
real,1
e,n1,n3
type,2
! voltage source
real,2
e,n3,n2,n4
d,n2,volt,0
! ground node
fini
/solu
antype,transient
t1=6*tau
time,t1
deltim,t1/100
outres,all,5
ic,all,volt,0
solve
fini
! transient analysis
!
!
!
!
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
317
! -exp(-t/tau)
! 1
! E=Es*(1-exp(-t/tau))
! Conduction current
esol,6,e_post,,JC,x,JC_ANS
prod,7,5,,,JC_TAR,,,1/rho
! Jc=E/rho
! D=epsr*eps0*E
thermal analysis
318
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
319
320
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Dimens.
PLANE121 2-D
Shape or Characteristic
Quadrilateral, eight
nodes
DOFs
Voltage at each node
Notes
Supported for cyclic
symmetry (periodic)
analyses, except for
coupled thermoelectric with VOLT
and TEMP.
Dimens.
Shape or Characteristic
DOFs
Notes
SOLID122
3-D
Brick, 20 nodes
SOLID123
3-D
Tetrahedral, 10 node
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
321
Dimens.
Shape or Characteristic
DOFs
Notes
coupled thermo-electric
with VOLT and TEMP.
Dimens.
Shape or Characteristic
DOFs
MATRIX50
None (this is
a super- element)
INFIN110
2-D
INFIN111
3-D
Hexalateral, 8 or 20 nodes
INFIN9
2-D
INFIN47
3-D
2.
3.
The next few topics discuss what you must do to perform these steps. First, the text presents a general
description of the tasks required to complete each step. An example follows, based on an analysis of
electrostatic forces between charge spheres. The example walks you through doing the analysis by
choosing items from ANSYS' GUI menus, then shows you how to perform the same analysis using ANSYS
commands.
322
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
MKS
Unit
Dimension
Multiply
by This
Number
To Obtain
MKSV
Unit
Dimension
(kg)(m)2/(pA)(s)3
Voltage
(kg)(m)2/(A)(s)3
Current
1012
pA
pA
10
12
pC
(pA)(s)
10
pS/m
(pA)2(s)3/(kg)(m)3
Charge
(A)(s)
2
Conductivity
S/m
Resistivity
(kg)(m)3/(A)2(s)3
10-6
T m
(kg)(m)3/(pA)2(s)3
Permittivity[1]
F/m
(A)2(s)4/(kg)(m)3
106
pF/m
(pA)2(s)2/(kg)(m)3
Energy
(kg)(m)2/(s)2
1012
pJ
(kg)(m)2/(s)2
Capacitance
(A)2(s)4/(kg)(m)2
1012
pF
(pA)2(s)4/(kg)(m)2
Electric Field
V/m
(kg)(m)/(s)3(A)
10-6
V/m
(kg)(m)/(s)3(pA)
Electric Flux
Density
C/(m)2
(A)(s)/(m)2
pC/(m)2
(pA)(s)/(m)2
MKS
Unit
Dimension
Multiply
by This
Number
To Obtain
MKSVfA
Unit
Dimension
(g)(m)2/(fA)(s)3
Voltage
(kg)(m)2/(A)(s)3
Current
1015
fA
fA
10
15
fC
(fA)(s)
10
fS/m
(fA)2(s)3/(g)(m)3
Charge
(A)(s)
2
Conductivity
S/m
Resistivity
(Kg)(m3/(A)2(s)3
10-9
(g)(m)3/(fA)2(s)3
Permittivity[1]
F/m
(A)2(s)4/(kg)(m)3
109
fF/m
(fA)2(s)2/(g)(m)3
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
323
MKS
Unit
Dimension
Multiply
by This
Number
To Obtain
MKSVfA
Unit
Dimension
Energy
(kg)(m)2/(s)2
1015
fJ
(g)(m)2/(s)2
Capacitance
(A)2(s)4/(kg)(m)2
1015
fF
(fA)2(s)4/(g)(m)2
Electric Field
V/m
(kg)(m)/(s)3(A)
10-6
V/m
(g)(m)/(s)3(fA)
Electric Flux
Density
C/(m)2
(A)(s)/(m)2
103
fC/(m)2
(fA)(s)/(m)2
324
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Value of VOLT
Flux-parallel
Flux-normal
Far-field
Flux-parallel boundary conditions force the flux to flow parallel to a surface, while flux-normal boundary
conditions force the flux to flow normal to a surface. You do not need to specify far-field zero boundary
conditions if you use far-field elements to represent the "infinite" boundary of the model. For an imposed
external field, specify the appropriate nonzero value of VOLT.
325
326
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
327
2.
3.
Issue EMFT.
Command(s): EMFT
GUI: Main Menu> General Postproc> Elec&Mag Calc> Summarize Force/Torque
Reluctance force: Force due to a change in material properties. Here, the direction of the field may
be arbitrary with regard to the force. To list this force:
1.
Select the nodes at the interface between the body of interest and the adjacent air elements.
2.
3.
Issue EMFT.
This method may use a truncated portion of the body of interest if the body extends past the
FE boundary.
328
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
+
E
F
+
aea of inteest
Body forces (including Lorentz forces): This method uses the entire body of interest:
1.
2.
Issue EMFT.
You can also use the FMAGSUM macro to summarize electromagnetic force calculations on
element components. To use FMAGSUM for body forces in this situation, you do not need to
first flag the elements using FMAGBC. You can simply select the nodes and elements of interest
and issue FMAGSUM. The FMAGSUM method offers different printout reports.
Note
In models that use symmetry, you must select nodes and elements carefully. You need to
select the surface nodes on the surfaces interior to the body and then select the elements
adjacent to those nodes.
Force results will be reported in the coordinate system specified by RSYS. However, if using a coordinate
system other than global Cartesian (RSYS 0), torque results will take into account the coordinate
system shift and rotation only.
1.
2.
3.
Issue EMFT:
Command(s): EMFT
GUI: Main Menu> General Postproc>
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
329
Conductor 2
where Cg represents a matrix of capacitances referred to as ground capacitances. These ground capacitances do not represent lumped capacitances typically used in a circuit simulator because they do
not relate the capacitances between conductors. However, the CMATRIX command macro can convert
the ground capacitance matrix to a lumped capacitor matrix which is suitable for use in circuit simulators.
Figure 14.3: Lumped Capacitor Equivalence of Three Conductor System (p. 331) illustrates the lumped
capacitances between the conductors. The following two equations then relate the charges with the
voltage drops:
Q1 = (Cl)11 (U1) + (Cl)12 (U1 - U2)
Q2 = (Cl)12 (U1 - U2) + (Cl)22 (U2)
330
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Conductor 2
G
G
14.3.2. Procedure
The CMATRIX command macro will perform multiple simulations and extract both the ground capacitance
matrix values and the lumped capacitance matrix values. To prepare for CMATRIX, you must group the
conductor nodes into node components. Do not apply any loads to the model (voltages, charge, charge
density, etc). The component name applied to the conductor nodes must contain a common prefix,
followed by a numerical suffix progressing from 1 to the highest numbered conductor in the system.
The last numbered conductor in the system must be the ground conductor (the conductor whose potential is assumed to be zero). The procedure for using CMATRIX is as follows:
1. Build and mesh the solid model with electrostatic elements. Conductors are assumed to be perfect
conductors and hence do not require a finite element mesh within the conductor domain. Only the
surrounding dielectric regions and air regions require a mesh. The resulting nodes on the boundary of
the conductors represent the nodes that will be grouped into node components.
2. Select the nodes on the surface of the each conductor and group them into node components.
Command(s): CM
GUI: Utility Menu> Select> Comp/Assembly> Create Component
Share a command prefix for the component names, and use a numerical value sequencing from 1
to the highest numbered conductor. For example, in Figure 14.3: Lumped Capacitor Equivalence of
Three Conductor System (p. 331), three node components would be defined for each set of conductor
nodes. Using a prefix "cond", the node component names would be "cond1", "cond2", and "cond3".
The last component, "cond3" would be the nodes representing the ground.
3. Enter the SOLUTION processor, using either of the following:
Command(s): SOLU
GUI: Main Menu> Solution
4. Select an equation solver (JCG recommended), using either of the following:
Command(s): EQSLV
GUI: Main Menu> Solution> Analysis Type> Analysis Options
5. Invoke the CMATRIX macro, using one of the following:
Command(s): CMATRIX
GUI: Main Menu> Solution> Solve> Electromagnet> Static Analysis> Capac Matrix
The CMATRIX command macro requires the following input:
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
331
332
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
NUMCOND = 3
GRNDKEY = 0
1
Natural boundary
NUMCOND = 2
GRNDKEY = 0
ground
See Example: Capacitance Calculation (p. 342) of this manual for an example problem using CMATRIX.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
333
14.4.1.1. Description
a
CL
Y
12
11
15
V0
Shield
3
Air
r
V0
V1
Strip
Substrate
V0
4
b
w
Problem Sketch
Material Properties
Air: r = 1
Substrate: r = 10
3
1
7
2
Loading
V1 = 10 V
V0 = 1 V
Enter the ANSYS program. To do so, use the procedures described in the Operations Guide.
2.
Choose menu path Utility Menu> File> Change Title. The Change Title dialog box appears.
3.
4.
Click OK.
5.
Choose Main Menu> Preferences. The Preferences for GUI Filtering dialog box appears.
334
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
7.
Click OK.
2.
Type in the parameter values shown below, following each entry by pressing ENTER. If you make a
mistake, just retype the parameter definition.
V1 = 1.5
V0 = 0.5
3.
Choose Main Menu> Preprocessor> Element Type> Add/Edit/Delete. The Element Types dialog box
appears.
2.
3.
4.
Click OK. The Element Types dialog box shows element type 1 (PLANE121) selected.
5.
Click Close.
Choose Main Menu> Preprocessor> Material Props> Material Models. The Define Material Model
Behavior dialog box appears.
2.
In the Material Models Available window, double-click on the following options: Electromagnetics, Relative Permittivity, Constant. A dialog box appears.
3.
Enter 1 for PERX (Relative permittivity), and click on OK. Material Model Number 1 appears in the Material Models Defined window on the left.
4.
Choose menu path Edit>Copy. Click on OK to copy Material number 1 to Material number 2. Material
Model Number 2 appears in the Material Models Defined window on the left.
5.
In the Material Models Defined window, double-click on Material Model Number 2, and Permittivity
(constant). A completed dialog box appears.
6.
Replace the value in the PERX field with 10, and click on OK.
7.
Choose menu path Material>Exit to remove the Define Material Model Behavior dialog box.
8.
Choose Main Menu> Preprocessor> Modeling> Create> Areas> Rectangle> By Dimensions. The
Create Rectangle by Dimensions dialog box appears.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
335
Enter the values shown below. (Use the TAB key to move between fields.)
X1 field: 0
Y1 field: 0
X2 field: .5
Y2 field: 0
3.
Click Apply. The ANSYS Graphics Window displays the first rectangle.
4.
Y1 field: 0
X2 field: 5
Y2 field: 1
5.
Click Apply. The ANSYS Graphics Window displays the second rectangle.
6.
Y1 field: 1
X2 field: .5
Y2 field: 10
7.
Click Apply. The ANSYS Graphics Window displays the third rectangle.
8.
9.
X1 field: .5
Y1 field: 1
X2 field: 5
Y2 field: 10
Click OK. The ANSYS Graphics Window displays all four rectangles.
10. To glue all areas together, choose Main Menu> Preprocessor> Modeling> Operate> Booleans> Glue>
Areas. A picking menu appears.
11. Click Pick All.
12. Choose Main Menu> Preprocessor> Numbering Ctrls> Compress Numbers. A dialog box appears.
13. Set the "Item to be compressed" field to "Areas."
14. Click OK.
Step 6: Apply Attributes to Model Regions and Prepare for Meshing
1.
Choose Utility Menu> Select> Entities. The Select Entities dialog box appears.
2.
3.
4.
336
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Pick areas 1 and 2 by clicking on them. (Areas 1 and 2 are the two areas at the bottom of the Graphics
Window.) The picked areas should change color.
6.
Click OK.
7.
Choose Main Menu> Preprocessor> Meshing> Mesh Attributes> Picked Areas. Click Pick All. The
Area Attributes dialog box appears.
8.
9.
Click OK.
10. Choose Utility Menu> Select> Entities. The Select Entities dialog box appears.
11. Check that the top two buttons are set to "Areas" and "By Num/Pick."
12. Click Sele All, then click OK. A picking menu appears.
13. Click Pick All.
14. Choose Utility Menu> Select> Entities. The Select Entities dialog box appears.
15. Change the top button from "Areas" to "Lines."
16. Change the button below it to "By Location."
17. Click the Y Coordinates button on.
18. In the "Min, Max" field, enter 1.
19. Click Apply. ANSYS should respond by displaying a message about "2 lines" in the output window.
20. Click the Reselect and X Coordinates buttons on.
21. In the "Min, Max" field, enter .25.
22. Click OK. ANSYS should respond by displaying a message about "1 line" in the output window.
Step 7: Mesh the Model
1.
Choose Main Menu> Preprocessor> Meshing> Size Cntrls> Lines> All Lines. The Element Sizes on
All Selected Lines dialog box appears.
2.
3.
Click OK.
4.
Choose Utility Menu> Select> Entities. The Select Entities dialog box appears.
5.
6.
7.
8.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
337
10. Choose Main Menu> Preprocessor> Meshing> MeshTool. The MeshTool appears.
11. Click the Smart Size button on.
12. Set the SmartSizing slider to 3.
13. Click the Tri shape button on.
14. Check that the Mesh button is set to "Areas."
15. Click the MESH button. A picking menu appears.
16. Click Pick All. The Graphics Window shows you the meshed model.
17. Click Close to close the MeshTool.
Step 8: Apply Boundary Conditions and Loads
1.
Choose Utility Menu> Select> Entities. The Select Entities dialog box appears.
2.
3.
4.
5.
6.
Click Apply.
7.
8.
9.
Click OK.
10. Choose Main Menu> Preprocessor> Loads> Define Loads> Apply> Electric> Boundary> Voltage>
On Nodes. A picking menu appears.
11. Click Pick All. The Apply VOLT on Nodes dialog box appears.
12. In the "Value of voltage (VOLT)" field, enter V1.
13. Click OK.
14. Choose Utility Menu> Select> Entities. The Select Entities dialog box appears.
15. Check that the two top buttons are set to "Nodes" and "By Location."
16. Click the Y Coordinates and From Full buttons on.
17. In the "Min, Max" field, enter 0.
18. Click Apply.
338
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Choose Utility Menu> Select> Entities. The Select Entities dialog box appears.
2.
Check that the top button is set to "Nodes," the next button is set to "By Num/Pick," and the "From
Full" button is set on.
3.
Click the Sele All button, then click OK. A picking menu appears. Click Pick All.
4.
Choose Main Menu> Preprocessor> Modeling> Operate> Scale> Areas. A picking menu appears.
5.
6.
In the "RX, RY, RZ Scale Factors" fields, enter the following values:
RX field: .01
RY field: .01
RZ field: 0
7.
In the "Items to be scaled" field, set the button to "Areas and mesh."
8.
In the "Existing areas will be" field, set the button to "Moved."
9.
Click OK.
Choose Main Menu> Solution> Solve> Current LS. The Solve Current Load Step dialog box appears,
along with a pop-up window listing the load step options.
2.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
339
Click OK on the dialog box to start the solution. A pop-up message notifies you when solution is complete. Click Close.
4.
Choose Main Menu> General Postproc> Element Table> Define Table. The Element Table Data dialog
box appears.
2.
Click Add. The Define Additional Element Table Items dialog box appears.
3.
4.
In the scrollable lists in the "Results data item" field, highlight "Energy." (When you highlight Energy
in the list on the left, Elec energy SENE" will be highlighted in the list on the right automatically.)
5.
Click OK.
6.
Click Add.
7.
8.
In the "Results data item" field, highlight "Flux & gradient" and "Elec field EFX." (You may have to scroll
up to find the correct selections.)
9.
Click OK.
Choose Utility Menu> PlotCtrls> Numbering. The Plot Numbering Controls dialog box appears.
2.
3.
Click OK.
4.
Choose Main Menu> General Postproc> Plot Results> Contour Plot> Nodal Solu. The Contour
Nodal Solution Data dialog box appears.
5.
In the "Item to be contoured" field, highlight "DOF solution" and "Elec poten VOLT."
6.
Click OK. The Graphics Window displays a contour plot of equipotential lines.
7.
Choose Main Menu> General Postproc> Plot Results> Vector Plot> User-defined. The Vector Plot
of User-defined Vectors dialog box appears.
340
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
9.
10. Click OK. The Graphics Window displays a vector plot of the electric field.
Step 13: Perform Capacitance Calculations
1.
Choose Main Menu> General Postproc> Element Table> Sum of Each Item. An informational dialog
box appears.
2.
Click OK. A pop-up window shows you all element table entries and their values.
3.
4.
Choose Utility Menu> Parameters> Get Scalar Data. The Get Scalar Data dialog box appears.
5.
In the "Type of data to be retrieved" field, highlight "Results data" and "Elem table sums."
6.
Click OK. The Get Element Table Sum Results dialog box appears.
7.
8.
9.
Click OK.
10. Choose Utility Menu> Parameters> Scalar Parameters. The Scalar Parameters dialog box appears.
11. Type in the following values, pressing ENTER after typing each value:
C = (w*2)/((V1-V0)**2)
C = ((C*2)*1e12)
12. Click Close.
13. Choose Utility Menu> List> Status> Parameters> Named Parameter. The Named Parameter Status
dialog box appears.
14. In the "Name of parameter" field, highlight C.
15. Click OK. A pop-up window displays the value of the C parameter (capacitance).
16. Click Close to close the pop-up window.
Step 14: Finish the Analysis
1.
2.
3.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
341
! Triangle mesh
! SELECT NODES ON MICROSTRIP
! APPLY STRIP POTENTIAL
!
!
!
!
!
342
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
14.4.2.1. Description
Two long cylinders sit above an infinite ground plane. The objective is to compute the self and mutual
capacitance coefficients between the conductors and ground.
14.4.2.2. Modeling
The ground plane and the Infinite elements share a common boundary at the outer radius of the
model. The Infinite elements by nature can only represent a zero potential at the infinite location. Since
the ground plane shares a common boundary with the infinite elements, they together represent the
ground conductor. The nodes of the ground plane are sufficient to represent the ground conductor
since the infinite element nodes are internally grounded by the program. By grouping the other two
cylindrical conductor node sets into node components as well, you arrive at a 3-conductor system.
Figure 14.5: Model Areas of Capacitance Example Problem (p. 343) displays the model areas and Figure 14.6: Elements of Capacitance Example Problem (p. 344) displays the finite elements.
Figure 14.5: Model Areas of Capacitance Example Problem
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
343
14.4.2.3. Results
The computed ground and lumped capacitance results for this example problem are as follows:
(Cg)11 = 0.454E-4
pF
(Cl)11 = 0.354E-4
pF
(Cg)12 = -0.998E-5
pF
(Cl)12 = 0.998E-5
pF
(Cg)22 = 0.454E-4
pF
(Cl)22 = 0.354E-4
pF
et,1,121
et,2,110,1,1
emunit,epzro,8.854e-6
mp,perx,1,1
cyl4,d/2,d/2,a,0
cyl4,0,0,ro,0,,90
cyl4,0,0,2*ro,0,,90
aovlap,all
numcmp,area
smrtsiz,4
mshape,1
344
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
csys,1
nsel,s,loc,x,2*ro
sf,all,inf
local,11,1,d/2,d/2
nsel,s,loc,x,a
cm,cond1,node
local,12,1,-d/2,d/2
nsel,s,loc,x,a
cm,cond2,node
csys,0
nsel,s,loc,y,0
cm,cond3,node
allsel,all
finish
/solu
cmatrix,1,'cond',3,0
finish
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
345
346
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
AC
Harmonic
DC
Static
Time-varying
Transient
Realizing the full potential of FEA simulation in electromagnetics requires complete flexibility in simulating circuit-fed electromagnetic devices. The ANSYS program has the following capabilities for circuit
analysis:
A modified nodal analysis method for simulating circuits
Direct coupling of circuits to stranded coils and massive conductors
Coupling for both 2-D and 3-D models
Support for DC, AC, and time-transient simulations.
The advanced circuit-coupled simulation available in the ANSYS program allows for accurate simulation
of items such as those listed below:
Solenoid actuators
Transformers
AC machines.
The following electric circuit analysis topics are available:
15.1. Elements Used in Circuit Analysis
15.2. Using the CIRCU125 Element
15.3. Using the Circuit Builder
15.4. Avoiding Inconsistent Circuits
15.5. Static (DC) Electric Circuit Analysis
15.6. Harmonic (AC) Electric Circuit Analysis
15.7.Transient Electric Circuit Analysis
15.8. Example Electric Circuit Analyses
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
347
Type
Piezoelectric
circuit
Circuit Options
Resistor, Inductor, Capacitor
Notes
Legacy element
General circuit
Current-technology
element
Diode
Current-technology
element
348
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
349
350
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The circuit in Figure 15.2: Voltage Generators in Parallel With Resistors (p. 351) is more complicated than
that shown in Figure 15.1: Voltage Generators Forming a Loop (p. 351), yet the main topological inconsistency is still present. The voltage generators form a loop.
Figure 15.2: Voltage Generators in Parallel With Resistors
Figure 15.3: Voltage Generators in Parallel With Other Circuit Components (p. 351) is even more complex.
But you can easily identify the inconsistent loop of voltage generators.
Figure 15.3: Voltage Generators in Parallel With Other Circuit Components
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
351
The circuit in Figure 15.5: Circuit Generators and a Supernode (p. 352) is more complex. Here, the current
generators have no common node. Kirchhoff's nodal law is violated on a "super-node" in that figure.
The "super-node" is called a cut. Current generators cannot form cuts; that is, there should be no supernode such that only current generators are entering it.
Figure 15.5: Circuit Generators and a Supernode
In Figure 15.7: Velocity Generators Forming a Loop (p. 353), right after closure of the switch, the initial
current distribution can be computed by the equivalent circuit shown on the right-hand side. This is
352
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
In Figure 15.9: Current Generators Forming a Cut (p. 353), right after the closure of the switch, the initial
voltage distribution can be computed by the equivalent circuit shown on the right-hand side. This is
an inconsistent circuit (producing infinite voltage) because the current generators form a cut. Thus, the
DC/harmonic rule that the current generators should not form a cut should be applied such that the
inductors are considered as current generators.
Figure 15.9: Current Generators Forming a Cut
These circuits are contradictory, and they do not have physical meanings. Therefore, the ANSYS program
cannot detect them.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
353
354
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
355
356
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
357
358
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
359
Note
By default, the ANSYS program writes only the last substep of each load step to the results
file. If you want all substeps included on the results file, set the FREQ field to ALL or 1.
360
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
361
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
You can perform the example AC (harmonic) circuit analysis using the ANSYS commands shown below
instead of GUI choices. Items prefaced with an exclamation point (!) are comments.
/BATCH,LIST
/PREP7
/TITLE, AC CIRCUIT ANALYSIS
/COM,
SEE SCHAUMS OUTLINE "BASIC CIRCUIT ANALYSIS", 2ND ED, 1992,
/NOPR
ET,1,CIRCU124,4
! VOLTAGE SOURCE
ET,2,CIRCU124,3
! CURRENT SOURCE
ET,3,CIRCU124,0
! RESISTOR
ET,4,CIRCU124,1
! INDUCTOR
ET,5,CIRCU124,12
! CURRENT CONTROLLED CURRENT SOURCE
R,1,15,30
R,2,5,-45
R,3,3
R,4,2
R,5,4
R,6,-3
!
!
!
!
!
VOLTAGE SOURCE
CURRENT SOURCE
R1
R2
L1
! CCCS GAIN
N,1
NGEN,10,1,1,1,1
TYPE,1
REAL,1
E,2,1,7
TYPE,3
REAL,3
E,2,3
TYPE,4
REAL,5
E,3,1
TYPE,3
REAL,4
E,3,4
TYPE,5
REAL,6
E,3,4,5,2,1,7
TYPE,2
REAL,2
E,1,4
! V1
! R1
! L1
! R2
! CCCS
! C1
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
363
!
!
!
!
/BATCH
/TITLE, SIMPLE HALF WAVE RECTIFIER WITH IDEAL DIODE
/NOPR
/COM Vs = 135*SIN(2*PI*T) VOLTS
/OUT,SCRATCH
PI = 4*ATAN(1)
/PREP7
R,1,,135,1,
!SET UP SINUSOIDAL VOLTAGE SOURCE
N,1,-0.85,0.4,0
N,2,-0.85,0.25,0
RMOD,1,15,0,1
ET,1,CIRCU124,4,1
TYPE,1
REAL,1
MAT,1
!*
N,3,-0.85,0.325,0
E,1,2,3
!CREATE IND. SINUSOIDAL VOLT SOURCE
R,2,2500,
!SET UP 2500 OHM RESISTOR
N,4,-0.75,0.4,0
N,5,-0.75,0.25,0
RMOD,2,15,0,2
ET,2,CIRCU124,0,0
TYPE,2
364
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The output voltage is shown in Figure 15.11: Half Wave Rectifier Output (p. 365).
Figure 15.11: Half Wave Rectifier Output
365
366
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
367
Note
For this type of analysis, constraints are the magnetic vector DOF (AZ), forces are current
segments (CSGX), surface loads are Maxwell surface (MXWF) and infinite surface (INF), and
body loads are source current density (JS), magnetic virtual displacements (MVDI), and voltage
drop (VLTG).
16.1.1. On Keypoints
To perform this task ...
Apply constraints
DK
Delete constraints
DKDELE
List constraints
DKLIST
Transfer constraints
DTRAN
Apply forces
FK
Delete forces
FKDELE
List forces
FKLIST
Transfer forces
FTRAN
BFK
BFKDELE
BFKLIST
BFTRAN
16.1.2. On Lines
To perform this task ...
Apply constraints
DL
Delete constraints
DLDELE
List constraints
DLLIST
Transfer constraints
DTRAN
SFL
SFLDELE
SFLLIST
SFTRAN
SFGRAD
BFL
BFLDELE
BFLLIST
368
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
16.1.3. On Areas
To perform this task ...
Apply constraints
DA
Delete constraints
DADELE
List constraints
DALIST
Transfer constraints
DTRAN
SFA
SFADELE
SFALIST
SFTRAN
SFGRAD
BFA
BFADELE
BFALIST
16.1.4. On Volumes
To perform this task ...
BFV
BFVDELE
BFVLIST
16.1.5. On Nodes
To perform this task ...
Apply constraints
Delete constraints
DDELE
List constraints
DLIST
Scale constraints
DSCALE
DSYM, DCUM
Apply forces
Delete forces
FDELE
List forces
FLIST
Scale forces
FSCALE
FCUM
SF
SFDELE
SFLIST
SFSCALE
SFCUM, SFGRAD
BF
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
369
BFDELE
BFLIST
BFSCALE
16.1.6. On Elements
To perform this task ...
SFE
SFEDELE
SFELIST
SFSCALE
BFE
BFEDELE
BFELIST
BFESCAL
BFECUM
16.2. Using the Alternative Solution Option for 2-D Static Magnetic Analysis
2-D Static Magnetic Analysis (p. 17) of this document describes the quick way to solve a 2-D static
magnetic analysis using the MAGSOLV command or its equivalent menu path. This section explains
how to step manually through the two-step solution sequence.
370
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Using the Alternative Solution Option for 2-D Static Magnetic Analysis
If you ramp loads (the default), ANSYS increments the load values at each substep. To step or
ramp loads, issue the KBC command or use one of the GUI paths shown above for TIME.
371
372
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Load Step Options for 2-D or 3-D Harmonic Magnetic Analysis (MVP Method)
16.3. Loading Options for 2-D or 3-D Harmonic Magnetic Analysis (MVP
Method)
For a 2-D harmonic magnetic analysis or a 3-D harmonic nodal-based analysis, you can specify the loads
listed below:
Constraints - vector potential (AZ) or time-integrated scalar potential (VOLT)
Forces - current segment (CSGX) or current (AMPS)
Body loads - source current density (JS) or voltage drop (VLTG)
To apply, delete, list, or operate on, these loads or apply load settings, use the commands listed in
Loading Options for 2-D Static Magnetic Analysis (p. 368). The only difference is that you will not use
the SF family of commands; they manipulate surface loads, which do not apply in harmonic analysis).
16.4. Load Step Options for 2-D or 3-D Harmonic Magnetic Analysis (MVP
Method)
You can specify dynamic options, general options, and output controls.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
373
16.5. Loading Options for 2-D or 3-D Transient Magnetic Analysis (MVP
Method)
You can apply the following loads on a 2-D transient magnetic analysis or a 3-D nodal-based MVP
transient analysis:
Constraints - vector potential (AZ) and time-integrated scalar potential (VOLT)
Forces - current segment (CSGX), current (AMPS)
Surface loads - Maxwell surfaces (MXWF)
Body loads - (source current density (JS), virtual displacement (MVDI), voltage drop (VLTG)
To apply these loads, use the commands listed in Loading Options for 2-D Static Magnetic Analysis (p. 368).
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Load Step Options for Nodal-Based Transient Magnetic Analysis (MVP Method)
Important: ANSYS assumes time integration effects to be on in a transient analysis (unless they
were turned off to establish initial conditions). If time integration effects are turned off, Mechanical APDL calculates a static solution.
To specify time integration effects, use one of the methods shown below:
Command(s): TIMINT
GUI: Main Menu> Solution> Load Step Opts> Time/Frequenc> Time Integration
Transient integration parameters
These parameters control the nature of your time integration scheme and specify the criteria for
automatic time stepping. See the Mechanical APDL Theory Reference for details.
To specify transient integration parameters, use either of the following:
Command(s): TINTP
GUI: Main Menu> Solution> Load Step Opts> Time/Frequenc> Time Integration
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
375
Caution
Avoid using extremely small time steps, especially when establishing initial conditions.
Very small numbers can cause calculation errors in ANSYS. For instance, on a problem
time scale of unity, time steps smaller than 1E-10 can cause numerical errors.
If you step-apply loads, ANSYS applies the entire load value at the first substep and holds it
constant for the remainder of the load step. If you ramp loads (default), ANSYS increments the
load values at each substep.
To specify time step size directly, use the following command or menu path:
Command(s): DELTIM
GUI: Main Menu> Solution> Load Step Opts> Time/Frequenc> Time - Time Step
Automatic Time Stepping
Also called time step optimization in a transient analysis, automatic time stepping allows ANSYS
to determine the size of load increments between substeps. It also increases or decreases the
time step size during solution, depending on how the model responds.
For most problems, you should turn on automatic time stepping and set upper and lower limits
for the integration time step. The limits help to control how much the time step varies. However,
time step optimization is not available for the CURR degree of freedom (voltage-fed conductors)
or the EMF degree of freedom (circuit-fed models).
To specify automatic time stepping, use the following command or menu path:
Command(s): AUTOTS
GUI: Main Menu> Solution> Load Step Opts> Time/Frequenc> Time - Time Step
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
16.7. Loading Options for 3-D Static Magnetic Analysis (Scalar Method)
For a 3-D static magnetic analysis using the scalar formulation, you can apply the following loads:
Constraints - Scalar potential (MAG)
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
377
16.8. Using the RSP Method for 3-D Static Scalar Magnetic Analysis
This section explains how to step manually through the solution sequence.
378
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Using the RSP Method for 3-D Static Scalar Magnetic Analysis
By default (that is, if you do not specify Biot-Savart calculations), the HS contribution from all selected
source elements to all selected nodes is calculated when you initiate the solution process. ANSYS does
no further HS calculation during solution.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
379
16.9. Using the DSP Method for 3-D Static Scalar Magnetic Analysis
You can step manually through the two-step solution sequence for a DSP analysis. To do so, follow this
procedure:
1. Specify the magnetic solution sequence and the number of substeps as options for the first load
step. This will yield an approximate air-only solution. To do so, use either of the following menu
paths or commands:
Command(s): MAGOPT (Set the VALUE field to 2.)
GUI: Main Menu> Solution> Load Step Opts> Magnetics> Options Only> DSP Method
Command(s): NSUBST (Specify one substep.)
GUI: Main Menu> Solution> Load Step Opts> Time/Frequenc> Freq and Substps
2. Specify that you do not want to save results, using one of the following:
Command(s): OUTRES,ALL,NONE
GUI: Main Menu> Solution> Load Step Opts> Output Ctrls> DB/Results File
3. Write the load data to a load step file, via one of these methods:
Command(s): LSWRITE or SOLVE
GUI: Main Menu> Solution> Load Step Opts> Write LS File
Main Menu> Solution> Solve> option
4. Specify load step options for the second load step (which produces the final solution). This time,
set the VALUE field to 3 on the MAGOPT command.
5. Set the convergence criteria using one of the following:
Command(s): CNVTOL
GUI: Main Menu> Solution> Load Step Opts> Nonlinear> Convergence Crit
6. Set the full Newton-Raphson option with adaptive descent. To do so, use either method shown
below:
Command(s): NROPT
380
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Using the GSP Method for 3-D Static Scalar Magnetic Analysis
GUI: Main Menu> Solution> Analysis Type> Analysis Options
7. Store the converged solution, using the OUTRES command or its GUI equivalent.
8. Use the LSWRITE command or the Write LS File menu option to write load data to a load step, as
discussed in step 2 above.
9. Start calculating the solution by using one of the following:
Command(s): LSSOLVE
GUI: Main Menu> Solution> Solve> From LS Files
10. Once you have solved the model, review the results as described for the RSP method.
An example command sequence for a nonlinear 3-D DSP analysis follows:
/solu
magopt,2
outres,all,none
solve
magopt,3
cnvtol,flux,,1e-3
nropt,full,,on
outres,all,last
solve
!
!
!
!
!
!
!
GUI:
Main Menu> Solution> Load Step Opts> Nonlinear> Convergence Crit
16.10. Using the GSP Method for 3-D Static Scalar Magnetic Analysis
You can step manually through the three-step solution sequence for a GSP analysis. To do so, follow
this procedure:
1. Specify options for the first load step. This will yield an approximate iron-only solution. To do so,
set VALUE = 1 for the MAGOPT command or choose Main Menu> Solution> Load Step Opts>
Magnetics> Options Only> GSP Method.
Command(s): MAGOPT
GUI: Main Menu> Solution> Load Step Opts> Magnetics> Options Only> GSP Method
2. Set the convergence criteria using the CNVTOL command or its GUI equivalent.
3. Specify that results are not saved, using either of the following:
Command(s): OUTRES,ALL,NONE
GUI: Main Menu> Solution> Load Step Opts> Output Ctrls> DB/Results File
4. Set the full Newton-Raphson option with adaptive descent. To do so, use either method shown
below:
Command(s): NROPT
GUI: Main Menu> Solution> Analysis Type> Analysis Options
5. Write the load data to a load step file, via one of these methods:
Command(s): LSWRITE or SOLVE
GUI: Main Menu> Solution> Load Step Opts> Write LS File
Main Menu> Solution> Solve
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
381
16.11. Loading Options for 3-D Static Magnetic Analysis (MVP Method)
You can specify the following loads for a 3-D static magnetic analysis using the nodal-based Magnetic
Vector Potential (MVP) method:
Constraints - Magnetic vector potential (AX, AY, AZ)
Forces - Current segment (CSGX, CSGY, CSGZ)
Surface loads - Maxwell surfaces (MXWF)
Body loads - Source current density (JS), virtual displacement (MVDI), voltage drop (VLTG)
To apply these loads, use the commands listed in Loading Options for 2-D Static Magnetic Analysis (p. 368).
16.12. The Alternative Solution Option for 3-D Static Magnetic Analysis
(MVP Method)
This section explains how to step manually through the solution sequence for a 3-D static MVP analysis.
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
16.14. Load Step Options for an Electric Field (Current Conduction) Analysis
For this type of analysis the only load step options you can specify are the output control options listed
in Using the Alternative Solution Option for 2-D Static Magnetic Analysis (p. 370).
383
384
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Index
Symbols
2-D harmonic magnetic analysis, 63
2-D static magnetic analysis, 17
2-D versus 3-D analysis, 10
3-D harmonic magnetic analysis, 187
3-D nodal-based analysis, 233
3-D static magnetic analysis, 12, 125, 157
3-D transient magnetic analysis, 215
A
air regions, 22, 28, 68
alternative options, 367
amplitude, 75
analysis
2-D harmonic magnetic, 63
2-D static magnetic, 17
2-D vs. 3-D, 10
3-D harmonic magnetic, 187
3-D static magnetic, 125
3-D transient magnetic, 215
edge-based, 11, 157, 187, 215
electric circuit, 347
electric field, 281
electrostatic, 321
nodal-based, 11
types of magnetic, 9
analysis options
2-D harmonic magnetic, 79
automatic time stepping, 217
AX AY AZ CURR option, 242
AX AY AZ VOLT option, 241
AZ option, 66
AZ-CURR option, 67
AZ-VOLT option, 66
B
B-H curve, 28, 32, 130
BIOT command, 378
Biot-Savart options, 378
boundary conditions
2-D harmonic magnetic analysis, 74
2-D static magnetic analysis, 36
3-D static magnetic analysis, 138
far-field, 37
periodic, 37, 75, 102
boundary elements, 273
C
calculating inductance, 239-240
D
defining
analysis title, 21
element coordinate system, 26
real constants, 26
solver, 41, 79, 140
difference scalar potential method, 141
diode element, 348
domains, 127
E
edge-based analysis, 11
3-D harmonic analysis, 187
3-D static analysis, 157
3-D transient analysis, 215
typical uses, 157
electric analysis
harmonic quasistatic, 295
transient quasistatic, 302
electric circuit analysis, 347
harmonic, 356
static, 354
transient, 358
electric field analysis, 281
electromagnetic elements, 13
electromagnetic macros, 255
modeling aids, 257
postprocessing calculations, 265
solution aids, 259
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
385
Index
electrostatic analysis
h-method, 321
element compatibility, 284
elements
2-D harmonic magnetic analysis, 64
2-D static magnetic analysis, 17
3-D nodal-based analysis, 233
3-D static scalar magnetic analysis, 125
coordinate system, 26
edge-based analysis, 158
electric field analysis, 282
general circuit, 282, 348
EMSYM command, 378
EMUNIT command, 128
equilibrium iterations, 41, 81, 218
example problems
2-D harmonic magnetic, 91
2-D static magnetic, 51
2-D transient magnetic, 110
3-D harmonic magnetic (edge-based), 193
3-D magnetostatic and edge-based , 169
3-D nodal-based (static, harmonic, and transient),
236
3-D static magnetic (scalar method), 146
3-D transient magnetic edge-based, 222
electric circuit, 362
electric field, 306
electrostatic field (h-Method), 333
far-field, 277
linear perturbation (electromagnetic), 250
F
far-field elements, 273
files, 43
flags
force, 39, 77, 139, 237
infinite surface, 39, 77, 139
Maxwell surface, 40, 77, 140
flux-normal, 37
flux-parallel, 37
FMAGBC command, 39, 44-45, 77
FMAGSUM command, 44, 77
frequency setting, 80
G
GAUGE command, 162, 187, 220
generalized scalar potential method, 142, 381
GMATRIX command, 292
/GST command, 42
GUI, 21
386
H
harmonic magnetic analysis, 63, 233
harmonic quasistatic
electric analysis, 295
HMAGSOLV command, 78, 82
I
inductance calculations, 239-240
inductance matrix, 239
INFIN110 element, 17, 64, 273
INFIN111 element, 125, 233, 273
INFIN47 element, 125, 273
INFIN9 element, 17, 64, 273
infinite elements, 273
infinite surface flags, 325
iron regions, 22
J
Joule heating losses, 31
L
laminated iron, 68
LMATRIX command, 42, 143, 239
load step options, 367
loading options
2-D or 3-D harmonic magnetic analysis, 373
2-D or 3-D transient magnetic analysis, 374
2-D static magnetic analysis, 368
3-D static magnetic analysis, 377, 382
electric field analysis, 383
electrostatic field analysis, 383
loads
2-D harmonic magnetic analysis, 74
2-D static magnetic analysis, 36
3-D nodal-based analysis, 236, 247-248
3-D static magnetic analysis, 138
Lorentz forces, 44, 87
Lorentz torque, 45, 88
M
macros, 255
magnetic analysis
applications, 1
magnetic energy, 265
magnetic forces, 44, 87, 145
magnetic scalar potential formulation, 10
magnetic scalar potentials, 139
magnetic torque, 45, 88
magnetic vector potential formulation, 11, 17, 233
magnetic vector potentials, 37, 237
magnetic virtual displacements, 40, 78, 140
MAGOPT command, 380-381
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
N
Newton-Raphson options, 218, 378
nodal-based analysis, 11
nonlinear analysis, 41, 63, 78
nonlinear magnetic material, 28
O
open circuit conductors, 68, 241
operating frequency, 75
output controls, 81
P
PERBC2D command, 37, 75, 102
permanent magnet regions, 22, 32
permeability, 28, 130, 162
permeable material regions, 28
permittivity, 322
phase angle, 75
physical regions
2-D magnetic analysis, 68
3-D harmonic edge-based analysis, 159
3-D nodal-based analysis, 242
assigning attributes, 36
physics environment
2-D harmonic magnetic analysis, 65
2-D static magnetic analysis, 21
3-D nodal-based analysis, 233, 241, 248
3-D static magnetic analysis, 128
PLANE13 element, 17, 64
PLANE53 element, 17, 64
PLF2D command, 44
POST1, 43
postprocessing, 43, 84
power loss, 247
R
RACE command, 137
racetrack coil, 137
real constants
defining, 26
voltage-fed stranded coils, 34
reduced scalar potential method, 140, 378
relative permeability, 28, 130, 162
relative permittivity, 322
resistivity, 31
restarting, 40
results file, 43
S
scalar potential formulation, 126
short circuit conductors, 68, 241
singly connected domain, 127
skin depth considerations, 74
solenoidal, 233
solenoidal formulations, 261
SOLID5 element, 125
SOLID96 element, 125
SOLID97 element, 233
SOLID98 element, 125
solution options, 367
solvers
choosing, 41, 79, 140
edge-based analysis, 215
nodal-based analysis, 236
solving
2-D harmonic magnetic analysis, 78
2-D static magnetic analysis, 40
3-D static magnetic analysis, 140
SOURC36 element, 125, 133
source conductor regions, 31
static magnetic analysis
2-D, 17
3-D, 12, 125, 157, 233
steady-state
current conduction analysis, 288
stranded coils, 47, 167
stranded conductors, 76
substeps, 41, 81
surface charge densities, 325
T
time steps
optimizing, 217
size, 217
TORQSUM command, 39, 45, 88
transient magnetic analysis, 99, 215, 233
transient quasistatic
electric analysis, 302
U
units, 27, 322
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
387
Index
V
velocity effects, 31, 73, 236, 246
virtual work force, 44, 87, 145
virtual work torque, 45, 88
voltage load, 38, 76, 102, 237, 325
voltage-fed stranded coil, 22, 67, 102, 235
volume charge densities, 326
388
Release 15.0 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.