Ansoft Maxwell2D - V12
Ansoft Maxwell2D - V12
Maxwell 2D
Electromagnetic and Electromechanical Analysis
12
ANSOFT CORPORATION • 225 West Station Square Dr. Suite 200 • Pittsburgh, PA 15219-1119
The information contained in this document is subject to change without notice. Ansoft
makes no warranty of any kind with regard to this material, including, but not limited to,
the implied warranties of merchantability and fitness for a particular purpose. Ansoft
shall not be liable for errors contained herein or for incidental or consequential
damages in connection with the furnishing, performance, or use of this material.
Ansoft Corporation
225 West Station Square Drive
Suite 200
Pittsburgh, PA 15219
USA
Phone: 412-261-3200
Fax: 412-471-9427
New editions of this manual will incorporate all material updated since the previous
edition. The manual printing date, which indicates the manual’s current edition,
changes when a new edition is printed. Minor corrections and updates which are
incorporated at reprint do not cause the date to change. Update packages may be
issued between editions and contain additional and/or replacement pages to be
merged into the manual by the user. Note that pages which are rearranged due to
changes on a previous page are not considered to be revised.
Edition: REV2.0
Date: 15 January 2009
Software Version: 12.1
Contents
This document discusses some basic concepts and terminology used throughout
the Ansoft Maxwell application. It provides the following information:
Overview
1.0 - Maxwell 2D
Examples – Eddy Current
6.1 – Jumping Rings Axisymmetric Model
6.2 – Instantaneous Forces on Busbars
Examples – Transient
7.1 – Gapped Inductor Model
7.2 - Solenoid Problem with an External Circuit
Examples – Basic Exercises
9.1 – Electrostatic
9.3 – Magnetostatic
9.4 – Parametric
9.5 – Transient
9.6 – Transient with Circuit Editor
9.8 - Optimetrics
9.10 – Scripting
9.12 – Eddy Current
9.13 – Rotational Transient Motion
9.14 – Boundary Conditions
9.15 – Permanent Magnets Assignment
Examples – Motors
11.1 - Permanent Magnet Synchronous Machine
11.2 - Three-phase Induction Machine
11.3 - Permanent Magnet Motor
Maxwell® is a comprehensive electromagnetic field simulation software package for engineers tasked with designing and analyzing 3D/2D
structures, such as motors, actuators, transformers and other electric and electromechanical devices common to automotive, military/
aerospace and industrial systems. Based on the Finite Element Method (FEM), Maxwell can solve static, frequency-domain and time-varying
electromagnetic and electric fields. In addition, the software can be dynamically linked with Simplorer® to create a powerful, system-level
electromagnetic-based design flow. This flow enables users to combine complex circuits with accurate component models to design high-
performance electromechanical and power electronic systems. Additionally, Maxwell’s 3D solvers have dynamic links to ePhysics™. This allows
engineers to perform complex 3D multi-physics studies by linking Maxwell to ePhysics’ thermal and structural solvers.
Import
CAD files can be imported in Maxwell streamlining the design pro-
cess.
Optimization
Optimetrics™ provides parametric, optimization, sensitivity, and
statistical analysis capabilities to Maxwell. Optimetrics automates the
design-optimization process by quickly identifying optimal values for
design parameters that satisfy user-specified constraints.
Customized pre-processors
RMxprt (electric machine design) and PExprt™ (magnetic component
design) are used to design devices based on a traditional analytical
approach. They also can be directly linked to Maxwell and provide
fully automated design creation and analytical analysis. Users can
perform preliminary studies of design concepts prior to performing
rigorous electromagnetic analysis with Maxwell.
The new 2D interface provides strong coupling with
3D and many new usability features.
Key features
Low-frequency electromagnetic field simulation and analysis using Performance and integration
FEM for 3D/2D structures • Distributed Analysis* for parallel computing of parameterized
• Transient - nonlinear analysis with: models
Motion—rotation, translational, non-cylindrical rotation • 64-bit operating system support
External circuit coupling • Links to Simplorer®*, ePhysics™*, HFSS™*, RMxprt™*, PExprt™*
Permanent magnet demagnetization analysis
Core loss computation Integrated 3D modeler featuring ACIS v16 and MFC technology
Lamination modeling for 3D • Standard primitives and multi-sweep functions
• AC Electromagnetic—Analysis of devices influenced by skin/ • Boolean operations: union, subtraction, intersection
proximity effects, eddy/displacement currents • Direct import of SAT and DXF files
• Magnetostatic—Nonlinear analysis with automated equivalent • AnsoftLinks™* for import of STEP, IGES and Pro/E files
circuit model generation
• Electric Field—Transient, Electrostatic/Current flow analysis with Automatic, adaptive mesh technology
automated equivalent circuit model generation • Fault-tolerant meshing algorithms
• Mesh-generation feedback
Display of data/visualization of results • GUI performs validation and integrity checks
• Field visualization and animations (shaded, contour and vector • Software identifies artifacts within the imported geometry
plots) • Mesh-based model resolution
• Mesh visualization (full, partial)
• Current, induced voltage, flux linkage Versatile material manager and material types
• Power loss, stored energy • User, group and system libraries
• Core loss, eddy, excess, hysteresis loss (including the minor loop • Linear, nonlinear anisotropic materials
effects) • Material assignment by coordinate type: cartesian, cylindrical or
• Impedance, inductance, capacitance spherical
• Force, torque
• Custom reports of user-defined solution data Integrated Optimetrics™*
• Geometry and material parameterization
• Optimization, sensitivity and statistical analysis
CAD Files
IGES, STEP, DXF, SAT, ProE
AnsoftLinks ™
Simplorer
®
RMxprt ™
Maxwell ®
Electric Machine
™
Optimetrics
PExprt ™
ePhysics ™
Maxwell, Simplorer, ePhysics, Optimetrics, PExprt, AnsoftLinks, and HFSS are trademarks of Ansoft Corporation.
All other trademarks are the property of their respective owners.
© 2008 Ansoft Corporation 0308
225 West Station Square Drive • Suite 200 • Pittsburgh, PA 15219-1119 USA
T 412-261-3200 F 412-471-9427 E [email protected] W www.ansoft.com
Optimetrics™ is an optional software module that adds parametric
capabilities, optimization algorithms, sensitivity and statistical analyses to
Ansoft’s best-in-class electromagnetic-field simulation products—HFSS™,
Maxwell® 3D and Q3D Extractor®. Optimetrics automates the design-
optimization process for high-performance electronics, such as microwave/
RF devices, printed circuit boards, on-chip passives, IC packages and
electromechanical components, by quickly identifying optimal values for
design parameters that satisfy user-specified constraints and goals.
Optimetrics™ enables users to study the effects of geometry and materials characteristics over a large design space and quickly identify the best
on a design by creating parameters for the dimensions and material performing design that is least sensitive to manufacturing tolerances.
Please consult your local sales representative for pricing and information on this and on other Ansoft products. HFSS, Maxwell, Optimetrics and Q3D Extractor are trademarks of Ansoft Corporation.
constants of the model to be analyzed. Optimetrics then varies these
parameters and adjusts the geometry and materials to achieve the Optimetrics, when used in conjunction with HFSS™, Maxwell® 3D and
desired, user specified, performance goal. Q3D Extractor®, delivers an innovative and robust design platform from
which users gain a greater understanding of the design space and the
Leveraging previously computed parametric simulation results within ability to make insightful design choices.
its optimizer, Optimetrics enables engineers to understand device
FEATURED CAPABILITIES
All other trademarks are the property of their respective owners. © 2005 Ansoft Corporation PH15-1105
studies • Tuning
• Sensitivity Analysis • User-controllable slide bar for real-time tuning display and results
• Design variations to determine sensitivities • Statistical Analysis
o Manufacturing tolerances • Design performance distribution versus parameter values
o Material properties
Ansoft Corporation • 225 West Station Square Drive • Pittsburgh, PA 15219-1119 USA
TEL 1.412.261.3200 FA X 1.412.471.9427 EMAIL info @ansoft.com WEB www.ansoft.com
v7.0
Multi-domain simulation software
Overview
SIMPLORER® is the premier software program for the design and Multi-domain system design is challenging and complex. It
analysis of complex, multi-domain systems commonly found in consists of many interdisciplinary and nonlinear components from
automotive, aerospace/defense and industrial systems. multiple domains: electrical, mechanical, thermal and control. The
close interaction across domains renders single-domain system
simulation tools ineffective.
Modeling Techniques
SIMPLORER allows components to be described as behavioral or transformations and model analogies often employed by single-
physical models using one or any combination of SIMPLORER’s domain simulation tools.
modeling techniques. This eliminates error-prone mathematical
Ansoft Corporation • 225 West Station Square Drive • Pittsburgh, PA 15219-1119 USA
TEL: 412.261.3200 • FAX: 412.471.9427 • EMAIL: [email protected] • WEB: www.ansoft.com
Models
SIMPLORER Model Libraries FEA-Based Models
SIMPLORER offers optional application-specific model libraries to For models requiring the highest level of fidelity, SIMPLORER
enhance productivity and reduce design time: provides a direct link to Ansoft’s industry-leading electromagnetic
field simulation and design programs: Maxwell®, RMxprt™, and
• Alternative Power • Mechanical PExprt™. Users can easily create equivalent circuit models from the
• Automotive • Power finite-element analysis (FEA) results and import them directly to
• Hydraulic • SMPS SIMPLORER.
• Machine • Sensor
Alternatively, users can employ the Transient Simulation coupling
link to couple transient FEA directly to SIMPLORER. This powerful
feature provides the ultimate in accuracy and flexibility and is ideal
for detailed analysis of electromechanical components operating
within a system.
Manufacturers’ Models
SIMPLORER users can access up-to-date manufacturer-specific
components online at www.model.simplorer.com. MOSFET, IGBT,
ultra capacitors and other components are available to customers
as a free download.
SIMPLORER v7 now includes a transient simulation coupling link.
Users can simultaneously solve a transient FEA project with a
transient system simulation.
Integration
Scripting Co-Simulation
This powerful feature opens APIs in the SIMPLORER environment, SIMPLORER allows the integration of proprietary C/C++ programs,
allowing SIMPLORER to be embedded into existing design flows. MATLAB® /Simulink®, Mathcad® and other specialized programs,
The scripting capability is language independent so users can work allowing SIMPLORER to utilize customized code and existing
with popular scripting languages, such as Visual Basic ®, Java® or design control. The direct integration of models in their native
Tcl/Tk and interact easily with other tools supporting the Microsoft environment avoids model translation, saves design time and
Com interface, such as MS Office and LabView ® allows communication and model exchange across departments
and between suppliers and OEMs.
Please consult your local sales representative for pricing and information on this and other Ansoft products.
SIMPLORER, PExprt and RMxprt are trademarks of Ansoft Corporation. All other trademarks are the property of their respective owners.
PL37-0407 © 2004 Ansoft Corporation
RMxprt ™
v12
Design Software for Electric Machines
RMxprt™ is a versatile software program that speeds the design and optimization process of rotating electric machines. With RMxprt, users
can calculate machine performance, make initial sizing decisions, and perform hundreds of “what if” analyses in a matter of seconds. As
the entry point for the Ansoft motor and drive design methodology, RMxprt automatically produces both system-level models and geometric
data, allowing the preliminary design to be refined and integrated with power electronic and control circuitry.
Wire library
RMxprt includes a comprehensive database of ANSI and IEC wires.
Design optimization
RMxprt can perform hundreds of “what if” analyses in a matter of
minutes, making it a valuable tool for designers needing to make
initial sizing and material decisions quickly.
Powerful scripting
RMxprt can be integrated with third party development programs
through scripting languages such as VB script, Tcl/TK, JavaScript®,
Perl, Excel and MATLAB®. This allows users to customize the design
flow and leverage internally developed programs and historical data.
Key features
• Machine-specific template editor • Output waveforms
o Rotor o Current
o Stator o Cogging torque
o Running strategies o Flux in the air gap
o Drive circuits • Graphical winding editor
• Auto-design feature • Cross section Editor
o Slot size • Customizable design sheet
o Coil turns and wire diameter • Cost evaluation
o Starting capacitance • Integrated parametrics and optimization
o Winding arrangement • State-space model export to Simplorer®
• Performance curves • Automated project setup for Maxwell® 2D
o Torque • Automated geometry and material setup for Maxwell 3D
o Power
o Efficiency
DESIGN FLOW
RMxprt is the ideal starting point for a comprehensive electric machine design flow. RMxprt with Maxwell and Simplorer provides an efficient
and accurate methodology to design and optimize an electric machine and related electric drive and control system.
3TATE 3PACE -ODEL
'EOMETRY WINDING CHARACTERISTICS
RMXPRT ™
AND NONLINEAR MATERIAL PROPERTIES
SIMPLORER®
s 'EOMETRY s 3KEW
s -ATERIALS s 3TACKING MAXWELL®
s 7INDING s %ND %FFECT
)NFO 0HYSICS
BASED 0ARAMETERS
225 West Station Square Drive • Suite 200 • Pittsburgh, PA 15219-1119 USA
T 412-261-3200 F 412-471-9427 E [email protected] W www.ansoft.com
Presentation
Overview 1
Overview 1
Overview 1
Closed
Analytical Numerical
Techniques Techniques Iterative
Form
Integral Differential
Equations Equations
FDM
Overview 1
∂Β
Faraday' s Law of Induction ∇×Ε =−
∂t
Gauss' s Law for Magnetism ∇•B=0
∂D
Ampere' s Law ∇×H = J +
∂t
Gauss' s Law for Electricity ∇•D=ρ
Overview 1
X = 10,000Y Stop
Field Solution
Y
X
Ansoft Maxwell Field Simulator v12 – Training Seminar P1-5
Presentation
Overview 1
6 2
5 3
4
Ansoft Maxwell Field Simulator v12 – Training Seminar P1-6
Presentation
Overview 1
1 ∇ A • ∇A
is replaced with energy functional: F ( A) = ∫
+ A • J dV
2 µ
This functional is minimized with respect to value of A at each
node in every triangle
Overview 1
[S ][A] = [J ]
This can be solved using standard matrix solution techniques such as:
Sparse Gaussian Elimination (direct solver)
Incomplete Choleski Conjugate Gradient Method (ICCG iterative
solver)
Overview 1
∇ 2 Aapprox + µJ = R
Since A is a quadratic function, R is a constant in each triangle.
The local error in each triangle is proportional to R.
Overview 1
n
R(local)i
Percent Error Energy = ∑ × 100%
i =1 Total Energy
Overview 1
Transient Solver
Fully Coupled Dynamic Physics Solution
Overview 1
Overview 1
GUI - Desktop
The complex functionality built into the Maxwell solvers is accessed through
the main user interface (called the desktop).
Problem can be setup in a fairly arbitrary order.
A new “validation check” has been added to insure that all required steps are
completed.
Overview 1
Overview 1
Supported platforms
Windows XP Pro
Windows XP Pro x64 Edition
Windows Server 2003
Windows Server 2003 x64 Edition
Red Hat Enterprise Linux 3, 4
SuSE Linux Enterprise Server 9.3
Solaris 8 -10
Overview 1
Starting Maxwell
Click the Microsoft Start button, select Programs, and select the Ansoft >
Maxwell 12 > Maxwell 12
Or Double click on the Maxwell 12 icon on the Windows Desktop
Adding a Design
When you first start Maxwell a new project will be automatically added to the
Project Tree.
To insert a Maxwell Design to the project, select the menu item Project > Insert
Maxwell 2D Design
Toolbar:
Insert Maxwell 2D Design
Overview 1
Maxwell Desktop
Menu
bar
Toolbars
Project 2D Modeler
Manager Window
with project
tree
Property History
Window Tree
Progress
Message Window
Manager
Status
bar
Coordinate Entry Fields
Overview 1
Project Design
Design Setup
Design Automation
•Parametric
•Optimization Design Results
•Sensitivity
•Statistical
Overview 1
Graphics Model
area
Edge
2D Modeler
design tree
(history)
Vertex
Context menu
(right mouse click Origin
XY
on 2D modeler
Coordinate
window)
System
Overview 1
Geometry Mode
To set the geometry mode:
1. Select the menu item Maxwell 2D > Solution Type
2. Solution Type Window:
W Choose Geometry Mode: Cartesian XY
Y
X
R
Z
Overview 1
Overview 1
1. Type steel_1008 in
the Search by Name
field
2. Click the OK button
Overview 1
Point 2
Point 1
Point 1
Point 2
The Coordinate Entry fields allow equations to be entered for position values.
Examples: 2*5, 2+6+8, 2*cos(10*(pi/180)).
Variables are not allowed in the Coordinate Entry Field
Note: Trig functions are in radians
Overview 1
Check “Import as 2D sheet bodies” so objects come in as sheets and not solids
To change the number of segments on an imported curve:
Change to face select mode: Edit > Select > Faces and click on face
Modeler > Surface > Uncover Faces
Change to object select mode: Edit > Select > Objects and click on open polyline
Modeler > Purge History
Modeler > Generate History
Expand the history tree for that polyline and change number of segments as desired
Select the polyline and: Modeler > Surface > Cover Lines
Overview 1
Attributes
(properties
of the object)
Overview 1
Modeler – Attributes
Overview 1
Modeler - Views
View > Modify Attributes >
Orientation – Predefined/Custom View Angles
Lighting – Control angle, intensity, and color of light
Projection – Control camera and perspective
Background Color – Control color of 3D Modeler
background
Overview 1
Bottom
Shortcuts
Since changing the view is a frequently used operation, some useful shortcut keys exist. Press the
appropriate keys and drag the mouse with the left button pressed:
ALT + Drag – Rotate
In addition, there are 9 pre-defined view angles that can be selected by holding the ALT key and
double clicking on the locations shown on the next page.
Shift + Drag - Pan
ALT + Shift + Drag – Dynamic Zoom
Overview 1
Left Right
Alt + double left Click
here to restore view in
an RZ model
Bottom
Overview 1
Simple Example
Magnetic core with coil
Use 2D RZ Magnetostatic Solver
Core (Steel_1008)
Overview 1
Create Core
To create the core:
1. Select the menu item Draw > Rectangle
3. Using the coordinate entry fields, enter the opposite corner of the rectangle
dX: 2.0, dY: 0.0, dZ: 10.0, Press the Enter key
Overview 1
2. ZSize: H
1. Value: 10mm
Overview 1
Create Coil
To create the coil for the current to flow:
1. Select the menu item Draw > Rectangle
3. Using the coordinate entry fields, enter the opposite corner of the rectangle
dX: 2.0, dY: 0.0, dZ: 4.0, Press the Enter key
Overview 1
Create Excitation
Assign Excitation
1. Click on the coil.
2. Select the menu item Maxwell 2D > Excitations > Assign > Current
1. Name: Current1
5. Note that for RZ models, positive current flows into the screen,
however for XY models, positive current flows out of the screen.
Overview 1
Define a Region
Before solving a project a region has to be defined. A region is basically an outermost object that contains all other
objects. The region can be defined by a special object in Draw > Region. This special region object will be resized
automatically if your model changes size.
A ratio in percents has to be entered that specifies how much distance should be left from the model.
To define a Region:
1. Select the menu item Draw > Region
Overview 1
Setup Boundary
Assign Boundary
1. Change to edge selection mode by choosing: Edit > Select > Edges
2. Using the mouse, click on the top, right and bottom edges while holding down the CTRL key.
3. Select the menu item Maxwell 2D > Boundary > Assign > Balloon
Overview 1
Overview 1
Save Project
To save the project:
1. In an Ansoft Maxwell window, select the menu item File > Save As.
Model Validation
To validate the model:
1. Select the menu item Maxwell 3D> Validation Check
Analyze
To start the solution process:
1. Select the menu item Maxwell 2D> Analyze All
Overview 1
In the Project Tree click on Analysis > Setup1 with the right mouse button und select Profile
Overview 1
Mesh Overlay
Create a plot of the mesh
1. Select the menu item Edit > SelectAll
Overview 1
Field Overlays
To create a field plot:
1. In the object tree, select the plane for plotting:
2. Select Global:XZ
2. Select the menu item Maxwell 2D> Fields > Fields > B > Mag_B
2. Quantity: Mag_B
3. In Volume: Allobjects
Overview 1
2. Select Global:XZ
2. Select the menu item Maxwell 2D> Fields > Fields > B > B_Vector
2. Quantity: B_Vector
3. In Volume: Allobjects
Overview 1
2. Select Global:XZ
2. Select the menu item Maxwell 2D> Fields > Fields > A > Flux_Lines
2. Quantity: Flux_Lines
3. In Volume: Allobjects
Overview 1
Screen Capturing
To save the drawing Window or a plot to the clipboard select the menu item: Edit > Copy Image
In any Windows application, select: Edit > Paste to paste the image
Overview 1
File Structure
Everything regarding the project is stored in an ascii file
File: <project_name>.mxwl
Double click from Windows Explorer will open and
launch Maxwell v12
Results and Mesh are stored in a folder named
<project_name>.mxwlresults
Lock file: <project_name>.lock.mxwl
Created when a project is opened
Auto Save File: <project_name>.mxwl.auto
When recovering, software only checks date
If an error occurred when saving the auto file, the
date will be newer then the original
Look at file size (provided in recover dialog)
Overview 1
Scripts
Default Script recorded in v12
Visual Basic Script
Overview 1
Solution Type
2. Boundaries
1. Parametric Model
Geometry/Materials
2. Excitations
3. Mesh
Operations
2. Analysis Setup
Solution Setup
Frequency Sweep
Mesh
Analyze Solve
Refinement
4. Results
2D Reports NO
Converged
Fields
2. Solve Loop
YES
Update Finished
Overview 1
Menu Structure
Draw – Primitives
Modeler – Settings and Boolean Operations
Edit – Copy/Paste, Arrange, Duplicate
Maxwell 2D – Boundaries, Excitations, Mesh Operations, Analysis Setup, Results
Overview 1
Material
Object
Overview 1
Modeler – Commands
Parametric Technology
Dynamic Edits - Change Dimensions
Add Variables
Project Variables (Global) or Design Variables (Local)
Animate Geometry
Include Units – Default Unit is meters
Supports mixed Units
Overview 1
Modeler – Primitives
2D Draw Objects
Toolbar: 2D Objects
The following 2D Draw objects are available:
Line, Spline, Arc, Equation Based Curve,
Rectangle, Ellipse, Circle, Regular Polygon,
Equation Based Surface
3D Draw Objects
Note that 3D objects can be pasted into the 2D
model window, but they are ignored by the solution
The following 3D Draw objects are available (in
Maxwell 3D):
Box, Cylinder, Regular Polyhedron
Cone, Sphere, Torus, Helix, Spiral, Bond Wire
True Surfaces
Circles, Cylinders, Spheres, etc are represented as
true surfaces. In versions prior to release 11 these
primitives would be represented as faceted objects.
If you wish to use the faceted primitives, select the
Regular Polyhedron or Regular Polygon.
Overview 1
Toolbar: Arrange
Overview 1
Modeler - Selection
Selection Types
Object (Default)
Face
Edge
Vertex
Selection Modes
All Objects
All Visible Object
By Name
Highlight Selection Dynamically – By default, moving the mouse pointer over an object will dynamically
highlight the object for selection. To select the object simply click the left mouse button.
Multiple Object Selection – Hold the CTRL key down to graphically select multiple objects
Next Behind – To select an object located behind another object, select the front object, press the b key to get
the next behind. Note: The mouse pointer must be located such that the next behind object is under the
mouse pointer.
To Disable: Select the menu item Tools > Options > Modeler Options
From the Display Tab, uncheck Highlight selection dynamically
Selected
Dynamically Highlighted
(Only frame of object)
Overview 1
Overview 1
Face CS (setting available to automatically switch to face coordinate system in the Modeler Options)
Overview 1
2D Measure
Modeler > Measure >
Position – Location, Distance, and Area
Edge – Edge Length
Face – Surface Area
Object – Surface Area, Object Volume
Position Points
Overview 1
Options – General
Tools > Options > General Options > Project Options
Temp Directory – Location used during solution process
Make sure it has at least 512MB free disk.
Options - Maxwell
Tools > Options > Maxwell Options > Solver
Set Number of Processors = 2 for 1 dual-core processor
or two single-core processors. Requires additional
license
Default Process Priority – set the simulation priority from
Critical
(highest) to Idle (lowest)
Overview 1
Typical “Dialog”
entry mode
window
Tools > Options > Modeler Options > Display tab to enable playback
Must close and re-open Maxwell after making change for this setting, to activate
Visualization is seen by clicking on primatives in the history tree (under subtract command, for instance)
Overview 1
2. Open dialog
What is Converted?
Converts Entire Model: Geometry, Materials, Boundaries,
Sources and Setup
Solutions, Optimetrics projects and Macros are not converted
Overview 1
Overview 1
Overview 1
Overview 1
Overview 1
1. Rotate
2. Create FaceCS
Overview 1
ε 1 0 0 µ1 0 0 σ 1 0 0
[ε ] = 0 ε 2 0 , [µ ] = 0 µ2 0 , [σ ] = 0 σ 2 0
0 0 ε 3 0 0 µ3 0 0 σ 3
Electrostatic yes no no no no
DC Conduction no no yes no no
AC Conduction yes no yes no no
Magnetostatic no yes no no no
Eddy Current no yes no no no
Transient no yes no no no
Overview 1
Matching The E-field on the slave boundary is forced to match the magnitude Planes of symmetry in
(Master and and direction (or the negative of the direction) of the E-field on the periodic structures where E is
Slave) master boundary. oblique to the boundary.
Resistance A resistance boundary models a very thin layer of resistive material Use this boundary condition
(DC conduction (such as that caused by deposits, coatings or oxidation on a when the resistive layer’s
solver only) metallic surface) on a conductor at a known potential. thickness is much smaller
than the other dimensions of
the model.
Overview 1
Balloon Field behaves so that magnetic flux can fringe No fringing at infinity
Matching (Master The H-field on the slave boundary is forced to match the Planes of symmetry in periodic
and Slave) magnitude and direction (or the negative of the direction) of structures where H is oblique to the
the H-field on the master boundary. boundary.
Overview 1
Overview 1
Overview 1
Current and voltage sources (solid or stranded) can be constant or functions of intrinsic
variables: speed (rpm or deg/sec), position (degrees), or time (seconds)
Dataset function can be used for piecewise linear functions: Pwl_periodic (ds1, Time)
Overview 1
Type:
Solid
for windings having a single
conductor/turn
eddy effects are considered
Stranded
for windings having many
conductors/turns
eddy effects are not considered
Ref Direction:
Positive or Negative
Overview 1
Overview 1
Note:
The dot on the winding
Model Model Model
I V symbol is used as the
switch1 switch2 d1 positive reference for
the current (positive
I V current is oriented
5.3ohm LWinding1 from the "dotted"
LabelID=VI1
W_sw1 S_sw2
LabelID=R3
+ terminal towards to
- "un-dotted" terminal
D64
of the winding as it
passes through the
winding).
0
Overview 1
Overview 1
f + K c (Bmax f ) + K e (Bmax f )
2 1. 5
p = K h Bmax
2
where:
Kh is the hysteresis coefficient.
Kc is the classical eddy coefficient.
Ke is the excess or anomalous eddy current coefficient due to magnetic domains.
Bmax the maximum amplitude of the flux density.
f is the frequency.
p = Cm f x Bmax
y
where:
Cm is constant value determined by experiment.
fx is the frequency.
Bymax is the maximum amplitude of the flux density
Overview 1
Set the Material Threshold for treating materials as conductors vs. insulators.
Set Preserve Transient Solution options (For Transient Solutions Only).
Set transient coupling with Simplorer on the Advanced Product Coupling tab (For
Transient Solutions Only)
Set the Model Depth (Maxwell2D XY Transient Designs Only).
Set the default Background material (Maxwell2D Designs Only).
Overview 1
Overview 1
Overview 1
Overview 1
Overview 1
Overview 1
Mesh Operations
To assign Mesh operations to Objects, select the Menu item: Maxwell 2D > Assign Mesh Operations
1. On Selection is applied on the surface of the object
2. Inside Selection is applied through the volume of the object
3. Surface approximation is applied to set faceting guidelines for true surface objects
Overview 1
On selection – skin
depth based (2 layers)
Overview 1
2. Mesh Operations “Inside selection” - applied throughout the volume of the object
Element length based refinement: Length Based
Overview 1
D = Maximum Surface
D
Deviation
ro
AspectRatio =
ri 2 * ri
ro
Overview 1
3. Click Maxwell > Analysis Setup > Revert to Initial Mesh to restart to the initial mesh
To view mesh information: Click Maxwell > Results > Solution Data and click on the tab Mesh Statistics
Overview 1
Mesh Display
1. Select an object
2. Select the menu item Maxwell 2D > Fields > Plot Mesh
Overview 1
Stator
stationary part
Overview 1
Stationary
region
band
Moving part(s)
Overview 1
Post Processing
5. Animation Plots
Overview 1
Contour plot
Overview 1
Overview 1
Overview 1
Arrow plot
Overview 1
Line plot
Overview 1
Overview 1
Animation plot
Overview 1
Fields Calculator
To bring up the Fields Calculator tool
1. Select the menu item Maxwell->Fields->Calculator
Overview 1
Overview 1
Export to Grid
Vector data "<Ex,Ey,Ez>"
Vector data <Ex,Ey,Ez> Grid Output Min: [0 0 0] Max: [2 2 2] Grid Size: [1 1 1
Min: [0 0 0] 0 0 0 -71.7231 -8.07776 128.093
Max: [2 2 2] 0 0 1 -71.3982 -1.40917 102.578
0 0 2 -65.76 -0.0539669 77.9481
Spacing: [1 1 1] 0 1 0 -259.719 27.5038 117.572
Space delimited ASCII file saved in 0 1 1 -248.088 16.9825 93.4889
0 1 2 -236.457 6.46131 69.4059
project subdirectory
0 2 0 -447.716 159.007 -8.6193
0 2 1 -436.085 -262.567 82.9676
0 2 2 -424.454 -236.811 58.8847
1 0 0 -8.91719 -241.276 120.392
1 0 1 -8.08368 -234.063 94.9798
1 0 2 -7.25016 -226.85 69.5673
1 1 0 -271.099 -160.493 129.203
1 1 1 -235.472 -189.125 109.571
1 1 2 -229.834 -187.77 84.9415
1 2 0 -459.095 -8.55376 2.12527
1 2 1 -447.464 -433.556 94.5987
1 2 2 -435.833 -407.8 70.5158
2 0 0 101.079 -433.897 -18.5698
2 0 1 -327.865 -426.684 95.8133
2 0 2 -290.824 -419.471 70.4008
2 1 0 -72.2234 -422.674 -9.77604
2 1 1 -495.898 -415.461 103.026
2 1 2 -458.857 -408.248 77.6138
2 2 0 -470.474 -176.115 12.8698
2 2 1 -613.582 -347.994 83.2228
2 2 2 -590.326 -339.279 63.86
Overview 1
Getting Help
If you have any questions while you are using Ansoft Maxwell you can find answers in several ways:
Ansoft Maxwell Online Help provides assistance while you are working.
To get help about a specific, active dialog box, click the Help button in the dialog box or press the F1
key.
Select the menu item Help > Contents to access the online help system.
Tooltips are available to provide information about tools on the toolbars or dialog boxes. When you
hold the pointer over a tool for a brief time, a tooltip appears to display the name of the tool.
As you move the pointer over a tool or click a menu item, the Status Bar at the bottom of the Ansoft
Maxwell window provides a brief description of the function of the tool or menu item.
The Ansoft Maxwell Getting Started guide provides detailed information about using Maxwell to create
and solve 3D EM projects.
PDF version of help manual at: ../Maxwell/Maxwell12/help/maxwell_onlinehelp.pdf for printing.
Ansoft Technical Support
To contact Ansoft technical support staff in your geographical area, please log on to the Ansoft
corporate website, www.ansoft.com and select Contact.
Your Ansoft sales engineer may also be contacted in order to obtain this information.
Overview 1
WebUpdate
This new feature allows you to update any existing Ansoft software from the WebUpdate window. This feature
automatically scans your system to find any Ansoft software, and then allows you to download any updates if they
are available.
Overview 1
Burlington, MA
(781) 229-8900 x0 – Ask for Technical Support
9-4 PST:
San Jose, CA
(408) 261-9095 x0 – Ask for Technical Support
Portland, OR
(503) 906-7944 or (503) 906-7947
El Segundo, CA
(310) 426-2287 – Ask for Technical Support
Seamless setup
Integrated with force,
torque, matrix
Complete support of
Transient solution
Optimetrics Module (cont.)
Integrated with external circuit
Optimize on ‘voltage’
Setup variables in in Maxwell
Maxwell Circuit Editor
Optimetrics Example
Optimization of a starter-alternator pack
The pack contains a motor used also as alternator
Three-phase claw pole motor
Permanent Magnets are added between teeth
Optimization of the Geometry
Want to see the influence on the output torque
Initial Optimized
Maxwell 2D v12
Chapter 6.0
Introduction
This example investigates the classical “jumping rings” experiment using a
2D axisymmetric eddy current model. Three rings are stacked on top of
each other around a common axis. The bottom ring provides a 10 kHz
excitation that induces eddy currents and losses in the other two rings.
These rings are repelled from ring1 and can be suspended by the magnetic
field as the current in ring1 is increased.
The model consists of three solid copper rings. The bottom ring1has a peak
current of 1A, while ring2 and ring3 have no excitation and are open-
circuited. The open-circuit condition is simulated by constraining the total
current to zero. A physical layout of the actual device is shown in:
open points
in rings
ring3
ring2
ring1
I1
2
δ =
ωµ o µ rσ
where:
ω is the angular frequency, which is equal to 2πf. (f is the source
frequency which in this case is 10000Hz).
σ is the conductor’s conductivity; for copper its 5.8e7 S/m
µr is the conductor’s relative permeability; for copper its 1
µο is the permeability of free space, which is equal to 4π×10-7 A/m.
For the copper coils, the skin depth is approximately 0.066 cm which less than
the diameter of 0.200cm for the conductors.
Mesh operation
“On Selection”
Mesh operation
“Inside Selection”
Click on the Matrix tab to display the 3x3 impedance matrix. By default, the
results are displayed as [R, Z] but can be also shown as [R, L] or as coupling
coefficients.
The diagonal resistance terms represent the self-resistance of each coil due
to the DC component and skin effects, as well as the proximity effects in all
other conductors. The off-diagonal resistance terms result from proximity
effect currents induced in one coil due to excitation in the other coil.
The diagonal inductance terms represent the self-inductance of each coil,
while the off-diagonal terms represent the mutual inductance due to
coupling.
The matrix results should closely resemble the results shown in the following
matrix. The negative resistance R13 means that the current in ring1 induces
a current in ring3, which actually reduces the AC resistance of ring3:
The diagonal term R11 is made up of the following resistive components due
to ring1, ring2, and ring3. (The ring1 DC resistance is obtained by running a
separate simulation a 0.1Hz. The R11 term as well as ring2 and ring3
proximity terms are taken from the matrix above. Finally, The ring1 skin
effect term is calculated as the difference between of all of these terms.)
In this example, with a 1 A peak current in ring1, and with both ring2 and
ring3 open-circuited, the total power loss can be calculated by hand
from the impedance matrix using the following formula:
P = ½*I2peakR11 = ½*12*4.006e–4 = 2.003e–4 (Watts)
This value also corresponds to the Total Power Loss in the convergence
table.
Modify the scale of the plot to observe the current density in ring2 and ring3
by selecting: Click on Maxwell 2D > Fields > Modify Plot Attributes > J > Ok
On the Scale tab, select Use Limits and set Min: -53000 and Max: 53000
Click on Apply and Close.
V2' = − I1 * Z12
= − I1 * (1.722e -5 + jω 1.090e -8 )
= − 1* (1.722e -5 + j2π *10000 *1.090e -8 )
= − 1.722e -5 − j6.849e -4
= 6.851e -4 ∠91.4º (V peak)
The open circuit voltage (V2‘) can also be calculated by integrating the
average electric field in ring2 around its circumference using the following
formula, where E = – jωA, ω = 2 pi (10000), and area = 3.1257e-6:
V2' = ∫ E • d L
1
= ∫ E • dV
area RZ
1
= ∫ − jω A • d V
area RZ
2 * π *10000
= ∫ − j A • dV
3.1257e −6 RZ
= 6.85e − 4 (Vpeak )
1
FAC = ∫ J × B dV evaluated at phase (ω t = degrees)
2
FINST = FDC + FAC
Description
This example will be solved in two parts using the 2D Eddy Current and 3D Eddy Current solvers. The
model consists of two 4mm parallel copper busbars separated by a center-center spacing of 16mm. The
excitation frequency is 100kHz.
2D Model 3D Model
Now the model can be created. This model also consists of a left and right busbar that have a 4mm square
cross-section, however a length of 1 meter is assumed so that the results must be scaled to compare to 3D.
The current is assumed to be 1A at 0 degrees in the left busbar and -1A at 60 degrees in the right busbar. A
no-fringing vector potential boundary will be assigned to the outside of the 2D problem region which is
also the default boundary for all 3D projects. This forces all flux to stay in the solution region.
In order to consider the skin effects in the busbars, you must manually turn on the eddy effect.
In order to automatically calculate force on an object, it must be selected in the Parameters panel. In 2D,
only the virtual force can be automatically calculated. Later, the Lorentz force will be calculated manually
in the Post Processor after solving the project.
1. Click Right on the Analysis folder in the Model Tree and select Add Solution Setup…
2. On the General tab, re-set the Number of passes to 15.
3. Percent Error to 0.01
4. On the Solver tab, re-set the Adaptive Frequency to 100kHz.
1. Select Maxwell 2D > Results > Solution Data… and click on the Force tab. The force results are
reported for a 1 meter depth of the model. The DC forces are shown below.
2. Now select Type:AC<Mag,Phase> This shows the magnitude of the force F(x)Mag is
approximately 5e-6 (N) and the phase F(x)Phase is -2.0 radians or -120 degrees.
The average, AC, and instantaneous components of the Lorentz force can be plotted vs. phase by creating
named expressions in the calculator using the formulas at the beginning of the application note.
3. Determine the instantaneous (DC + AC) component of Lorentz force. In the Named Expressions
panel:
• In the Named Expressions window, select Force_DC and Copy to stack
• Select Force_AC and Copy to stack
• Add
• Add… Name: Force_inst
• Click OK and Done to close the calculator window.
• Select Maxwell 2D > Results > Create Fields Report > Rectangular Plot
• Change the abscissa X: from the default Freq to Phase.
• Category: Calculator Expressions
• Quantity: Force_DC, Force_AC, Force_inst (hold down shift key to select all three at once)
• New Report > Close
• Right mouse click on the legend and select: Trace Characteristics > Add…
• Category: Math
• Function: max
• Add > Done
• Double left mouse click on the legend and change from the Attribute to the General tab.
• Check Use Scientific Notation and click on OK.
Note: The "max" values match the results from Solution Data > Force. I can also be observed that
the forces fluctuate at 2 times the excitation frequency since there are two complete cycles over 360
degrees as shown below.
0.000000
1
Y
-0.000002
-0.000004
-0.000006
-0.000008
0.00 50.00 100.00 150.00 200.00 250.00 300.00 350.00 400.00
Phase [deg]
Determine the instantaneous component of force at time wt=0 using the Maxwell Stress Tensor
method in the calculator:
Geometry > Line > left > OK Enters the edge of the left busbar
Unit Vector > Normal To determine the unit normal vector for left busbar
Multiply This multiplies the quantity times unit normal vector
Neg This takes the negative
Add
Scal? > ScalarX To extract the x-component of the quantity
Geometry > Line > left > OK Enters the edge of the left busbar
Integrate To integrate the force density and obtain the force in newtons
Add… Name: Force_MST
• Select Maxwell 2D > Results > Create Fields Report > Rectangular Plot
• Change the abscissa X: from the default Freq to Phase.
• Category: Calculator Expressions
• Quantity: Force_inst, Force_MST
Note: The slight difference in these curves is due to mesh error in the stress tensor calculation.
0.000000
1
Y -0.000002
-0.000004
-0.000006
-0.000008
0.00 50.00 100.00 150.00 200.00 250.00 300.00 350.00 400.00
Phase [deg]
Now the model can be created. This model also consists of a left and right busbar that have a 4mm square
cross-section and a length of 10mm.
The current is assumed to be 1A at 0 degrees in the left busbar and -1A at 60 degrees in the right busbar.
The default boundary in Maxwell 3D in no-fringing. So a boundary does not need to be explicitly
assigned.
1. To assign the source current, the four (4) end faces of the conductors must be selected. Choose Edit
> Select > Faces to change the selection mode from object to face.
2. Zoom in to the busbars using:View > Zoom In
3. Click on the front face of the left busbar.
• Click on Maxwell > Excitations > Assign > Current
• Name: Current1
• Value: 1A
• Phase: 0
• Type: Solid
4. Select View > Rotate > Model Center to spin the bubars around to see the other face of the left
busbar. Select it and then:
• Click on Maxwell > Excitations > Assign > Current
• Name: Current2
• Value: 1A
• Phase: 0
• Type: Solid
• Click on Swap Direction to be sure that the red directional arrow is pointing out of
the conductor
5. Click on the front face of the right busbar.
• Click on Maxwell > Excitations > Assign > Current
• Name: Current3
• Value: 1A
• Phase: 60
• Type: Solid
6. Select View > Rotate > Model Center to spin the bubars around to see the other face of the left
busbar. Select it and then:
• Click on Maxwell > Excitations > Assign > Current
• Name: Current4
• Value: 1A
• Phase: 60
• Type: Solid
• Click on Swap Direction to be sure that the red directional arrow is pointing out of
the conductor
In order to consider the skin effects in the busbars, the eddy effect must be turned on.
In order to automatically calculate force on an object, it must be selected in the Parameters panel. In
Maxwell 3D, you can calculate both virtual and Lorentz force. Note however that Lorentz force is only
valid on objects with a permeability = 1.
1. Select the left busbar by clicking on it in the history tree or on the screen.
2. Click on Maxwell > Parameters > Assign > Force
3. Name: Force_Virtual
4. Type: Virtual
5. Click OK to enable the virtual force calculation.
6. Click on Maxwell > Parameters > Assign > Force
7. Name: Force_Lorentz
8. Type: Lorentz
9. Click OK to enable the lorentz force calculation.
1. Click Right on the Analysis folder in the Model Tree and select Add Solution Setup…
2. On the General tab, re-set the Number of passes to 15.
3. Percent Error to 0.01
4. On the Solver tab, re-set the Adaptive Frequency to 100kHz.
5. Click OK to save the setup.
3. Select Maxwell 3D > Results > Solution Data… and click on the Force tab. Notice that the 3D
results are reported for a 10mm depth while the 2D results were for 1meter depth. The DC forces
are shown below.
4. Now select Type:AC<Mag,Phase> This shows the magnitude of the force F(x)Mag is
approximately 5e-6 (N) and the phase F(x)Phase is -2.0 radians or -120 degrees.
The time-averaged, AC, and instantaneous components Lorentz force can be plotted vs. time by creating
named expressions in the calculator using the formulas at the beginning of the application note.
3. Determine the instantaneous (DC + AC) component of Lorentz force. In the Named Expressions
panel:
• In the Named Expressions window, select Force_DC and Copy to stack
• Select Force_AC and Copy to stack
• Add
• Add… Name: Force_inst
• Click on OK and Done to close the calculator window.
Reference:
MSC Paper #118 "Post Processing of Vector Quantities, Lorentz Forces, and Moments
in AC Analysis for Electromagnetic Devices" MSC European Users Conference,
September 1993, by Peter Henninger, Research Laboratories of Siemens AG, Erlangen
Introduction
The Maxwell 2D Field Simulator’s XY transient solver can be used to
demonstrate the difference between sinusoidal and non-sinusoidal
excitation in a gapped inductor. In addition, the fringing flux effect on AC
losses can be considered in this device.
The inductor consists of a ferrite core with a gap in the center leg. The
winding has 15 copper turns which are connected in series. The inductor is
excited by a 120A-60Hz sinusoidal current and a 20A-1kHz triangular
current superimposed on it.
Although no motion occurs in this problem, the transient time-stepping
solver is needed because of the complex waveform of the current.
X Y
1 0 0
2 0.00025 20
3 0.00050 0
4 0.00075 -20
5 0.001 0
Type: Solid
Polarity: Positive
Ok
100.00
50.00
OVC(I_in)
0.00
-50.00
-100.00
-150.00
0.00 10.00 20.00 30.00 40.00 50.00
Time [ms]
10.00
8.00
SolidLoss [W]
6.00
4.00
2.00
0.00
0.00 10.00 20.00 30.00 40.00 50.00
Time [ms]
Resolve the project by selecting Maxwell 2D > Solve. The average power
loss (approx. 3.41W) is smaller than the previous simulation (approx.
4.35W) which included the triangular current component. Also, you can see
that the power loss is sinusoidal at twice the excitation frequency.
Ansoft Corporation XY Plot 1 Maxwell2DDesign2
150.00
Curve Info
OVC(I_in)
Setup1 : Transient
100.00
50.00
OVC(I_in)
0.00
-50.00
-100.00
-150.00
0.00 10.00 20.00 30.00 40.00 50.00
Time [ms]
5.00
4.00
SolidLoss [W]
3.00
2.00
1.00
0.00
0.00 10.00 20.00 30.00 40.00 50.00
Time [ms]
Model 25ohm
LWinding2 Rcoil
rectify
D2
+ 170V
D1
D4
LabelID=Vsource
D3
2D RZ Model
Description
A model of an AC solenoid using an external circuit will be simulated using the 2D RZ transient solver.
The source is a 170V 60Hz sinusoidal voltage which is rectified using a full-wave bridge. The mechanical
force for a spring and gravity are modeled using an equation. The force, loss, position, speed and winding
current, flux, and voltage will be determined.
Now the model can be created. Since this is a complicated geometry, the model will be imported from an
old Maxwell 2D model file *.sm2.
NOTE:
For 2D RZ designs, the –X limit
will be the Z-axis if the padding
percentage is large enough.
Otherwise, if the -X padding
percentage creates a region with
–X > 0, then the region will
have a “hole” in the model.
3. Select View > Fitall > Active View to resize the drawing window.
4. Select wireframe view by selecting: View > Render > Wire Frame
Since the model was imported, no material properties have been assigned. Select the objects one at a time
and assign the appropriate material properties.
1. Select the coil and the shadering and choose: Modeler > Assign
Material > copper > OK
2. Select the endstop, flange, housing, plunger and top_nut and choose:
Modeler > Assign Material > steel_1008 > OK
3. Select the Band and choose: Modeler > Assign Material > Vacuum
> OK
A no-fringing vector potential boundary will be assigned to outside of the 2D problem region. This forces
all flux to stay in the solution region.
1. Choose Edit > Select > Edges to change the selection mode from object to edge.
2. While holding down the CTRL key, choose the top, right, and bottom outer edges of the region.
Note that the left edge does not need a boundary because it is automatically the axis of symmetry in
a RZ model.
3. Click on Maxwell 2D > Boundaries> Assign > Vector Potential
Value: 0
OK
4. When done, choose Edit > Select > Object to object selection mode.
Because the solenoid is a converted “AC” solenoid, it contains a copper “shading ring” which may have
eddy currents induced in it. A zero voltage source must be set on the shade ring in order to properly
represent a shorted single turn winding and to see if the eddy currents are significant or not.
1. Select the shadering and click on the menu item: Maxwell 2D > Excitations > Assign > Coil…
Name: shadering
Number of Conductors: 1
Polarity: Positive (into the screen)
OK
2. Click on the menu item: Maxwell 2D > Excitations > Add Winding…
Name: Winding1
Type: Voltage and Solid
Initial Current: 0
Resistance: 0 (for solid windings, resistance calculated by the solver)
Inductance: 0 (coil inductance always calculated by the solver)
Voltage: 0 (zero voltage represents a shorted turn, with no source)
Number parallel branches: 1
3. In the project tree, right mouse click on shadering under Excitations and click on the menu item
Add to Winding and
4. In the Add to Winding window, Winding1 will be selected and then click on OK.
Under Maxwell Circuit Elements > Dedicated Elements select Winding and drag this
component onto the sheet
In the properties window change the following:
Name: Winding2
Note that this name has to be exactly the same name as used in the Winding
definition described previously in Maxwell > Excitations > Add Winding
Under Maxwell Circuit Elements > Passive Elements select Res and drag this component
onto the sheet:
Name: coil
R: 25 ohms
Under Maxwell Circuit Elements > Sources select Vsin and drag this component onto the
sheet, hit ESC to end insertion:
Name: source
Va: 170 volts
VFreq: 60 Hz
Connect all of the elements together using Draw > Wire and add a ground using Draw >
Ground.
The circuit should look like this:
Model 25ohm
LWinding2 Rcoil
rectify
D2
+ 170V
D1
D4
LabelID=Vsource
D3
Without closing the Maxwell Circuit Editor, return to the Maxwell project click on Cancel.
Then choose Import Circuit… from the Edit External Circuit dialog and select
ex07_02_solenoid.sph
Clicking on the Circuit Path tab will verify the linked circuit file *.amcp.
In order to consider the skin effects in the busbars, you must manually turn on the eddy effect.
The transient solver does not use the automatic adaptive meshing process, so a manual mesh needs to be
created. Note that after the mesh operations are assigned, clicking on them in the history tree will shade
the appropriate objects in the modeler window (assuming they are in wireframe view first).
1. Select the band and click on the menu item Maxwell 2D > Mesh Operations > Assign > Inside
Selection > Length Based.
Name: Band_Inside
Restrict Length Of Elements: Uncheck
Restrict Number of Elements: Check
Maximum Number of Elements: 1000
2. Select the shadering and click on the menu item Maxwell 2D > Mesh Operations > Assign >
Inside Selection > Length Based.
Name: Shadering_Inside
Restrict Length Of Elements: Uncheck
Restrict Number of Elements: Check
Maximum Number of Elements: 50
3. Select the coil, endstop, flange, housing, plunger, and top_nut and click on the menu item Maxwell
2D > Mesh Operations > Assign > Inside Selection > Length Based.
Name: Other_Objects_Inside
Restrict Length Of Elements: Check
Maximum Length: 0.05 in (Note: be sure to set units = in)
Restrict Number of Elements: Uncheck
The plunger is the moving object and is surrounded by the band. (Note: moving objects are never allowed
to touch the band. The minimum air gap is 0.002 inches when the solenoid is "fully" closed.) Positive
motion is defined as upwards or in the positive Z direction. The starting position is -0.100 inch (or open)
so the plunger will move upwards (and close) when the solenoid is energized.. The load force acts
downward against the direction of motion and consists of: gravity (-0.04N), a spring preload force (-50N),
and a variable compression spring force (-5530 * position) which is zero at the starting position and
increases as the plunger closes. The units for the intrinsic variable "position" are meters.
The force, loss, position, speed and winding current, flux, and voltage will be plotted vs. time.
1. To create these plots select: Maxwell 2D > Results > Create Quick Report…
2. Select: Force, Loss, Position, Speed, and Winding
3. In the force plot below, Force_z is only the magnetic component of force (upwards) while
LoadForce is gravity, spring preload force, and a variable compression spring force (downwards).
50.00
Y1 [newton]
Note:
When magnetic
force exceeds load
0.00 force (at Time =
4.2msec) armature
starts to close
-50.00
-100.00
0.00 5.00 10.00 15.00 20.00 25.00
Time [ms]
-0.50
-1.00
Moving1.Position [mm]
-1.50
-2.00
-2.50
-3.00
0.00 10.00 20.00 30.00 40.00 50.00 60.00
Ansoft Corporation Speed Quick Report
Time [ms] Maxwell2DDesign1
5.00
Curve Info
Moving1.Speed
Setup1 : Transient
4.00
Moving1.Speed [m_per_sec]
3.00
2.00
1.00
0.00
0.00 10.00 20.00 30.00 40.00 50.00 60.00
Time [ms]
20.00 Current(Winding2)
Setup1 : Transient 0.50
100.00 FluxLinkage(Winding1)
Setup1 : Transient
-0.00 FluxLinkage(Winding2)
Setup1 : Transient
0.40
InducedVoltage(Winding1)
50.00 Setup1 : Transient
-20.00 InducedVoltage(Winding2)
Y2 [Wb]
Setup1 : Transient
Y3 [V]
Y1 [A]
InputVoltage(Winding1)
0.30
Setup1 : Transient
-40.00
0.00
0.20
-60.00
-50.00
0.10
-80.00
2.00
Notes:
0.00
0.00 10.00 20.00 30.00 40.00 50.00 60.00
Time [ms]
Suppose we have a long coaxial line. We want to know what is the electric field
distribution based on the potential (or the charges) that are applied on each
conductor. We also want to determine the capacitance. We use an R-Z
representation. We will then solve the same problem using an XY representation.
Assign Excitation
Force computation
Select the object Inner
Select the menu item Maxwell > Parameters > Assign > Force
Select the menu item Maxwell > Analysis Setup > Add Solution Setup
For the Percent Error, enter 0.5%
For the Refinement per Pass (Convergence tab), put 50%
From the Project window, right click on Setup1. From the context menu,
select the entry Solutions
Select the tab entry Matrix
The analytical value of the capacitance per meter for an infinite long coaxial
wire is given by the following formula:
C = 2πε0 / ln(b/a) (a and b being the inside and outside diameters)
Assign Excitation
Select the menu item Maxwell > Analysis Setup > Add Solution Setup
For the Percent Error, enter 0.5%
For the Refinement per Pass (Convergence tab), put 50%
Select Setup1 from under Analysis in the project tree, right mouse click and
select Analyze
From the Project window, right click on Setup1. From the context menu,
select the entry Solutions
Select the tab entry Matrix
The analytical value of the capacitance per meter for an infinite long coaxial
wire is given by the following formula:
C = 2πε0 / ln(b/a) (a and b being the inside and outside diameters)
Assign Excitation
Select the object DownPlate, select the menu item Maxwell > Excitations >
Assign > Voltage. As an alternative, once the object is selected, you can right
click and select Assign Excitations > Voltage.
For the voltage, enter 0V
Select the upper edge of the Region, select the menu item Maxwell > Excitations
> Assign > Voltage.
For the voltage, enter 1V
Select the menu item Maxwell > Parameters > Assign > Matrix
Include Voltage1 and Voltage2 in the capacitance computation
Select the menu item Maxwell > Analysis Setup > Add Solution Setup
For the Percent Error, enter 1%
For the Refinement per Pass (Convergence tab), put 50%
Select Setup1 from under Analysis in the project tree, right mouse click and
select Analyze. The problem is really easy, therefore the solution is
obtained almost immediately.
From the Project window, right click on Setup1. From the pull down menu,
select Solutions, then the Matrix tab
The analytical value of the capacitance for two parallel plates is given by:
C = A/ d *ε0 (A is the area of the plate and d is the thickness of the di
electrics)
If we consider the plate to be 25mm by 25 mm, using the above formula,
we obtain 5.53 pF (the dielectric is 1mm thick).
We obtain 221.35pF. This value should be considered as the capacitance
of the two parallel plates with a 1 meter depth. If we rescale this value by
multiplying by 0.25mm we find 5.53pF as well.
Problem Description
As shown in the following picture, a coil and slug are drawn in a plane using RZ
symmetry. The coils carry a current that exert a vertical force on the
ferromagnetic slug.
Add a Region
Click on the menu item Draw > Region:
Select Pad all Directions and type 100 in Padding Percentage
You should see a message indicating that the –X direction is set to zero due
to RZ-symmetry about the Z-axis.
Select Region and click on the menu item View > Hide Selection > All views.
Assign Excitation
Select the Coil and click on the menu item Maxwell2D > Excitations > Assign
> Current:
Name: Current1
Value: 1000
Ref. Direction: Negative (so positive current will be in the negative Y
direction)
Ansoft Maxwell 2D Field Simulator v12 User’s Guide 9.3-3
Maxwell 2D v12 9.3
Basic Exercise – Magnetostatic Force Calculation
3D Geometry: Coil and Iron Slug 2D Flux Lines and Flux Density
Draw the Slug: Click on the menu item Draw > Rectangle, and arbitrarily choose
a starting point and opposite corner for what will be the slug.
Double click on CreateRectangle under Rectangle2 in the History Tree,
and edit the Position, Xsize and Zsize as shown.
Enter the text ‘SlugHeight’ for the Value of Zsize. After selecting OK, the Add
Variable box appears. Assign the Value for SlugHeight as 1mm, and click OK.
Note: The parameter for Xsize is defined using the predefined constant, pi, and an
equation that calculates the equivalent 2D cross-section of a 1mm2 slug which
was used in the 3D Exercise. Other predefined constants can be found by
selecting from the menu, Project > Project Variables, and selecting Constants tab.
Similarly, select the Rectangle2 object in the Design Tree and double click it to
edit it’s properties.
Name: Slug
Material: Select steel_1008
from the material database.
Color: Change the color
to Blue, and click OK.
Leave Name as Current1 and set Value: AmpTurns and click OK.
Define ‘AmpTurns’ as 100 in the Add Variable window, and click OK.
Inspect Results
Check the solution by again right clicking on Setup1 and select Convergence . . .
Click on the Table tab to inspect the combination of solutions that have been
created. There should be 18 solutions since we defined 6 variations of SlugHeight
and 3 variations of AmpTurns.
Next, select the Calculations tab to define which outputs will be calculated for each
parametric solution.
Then, click on the Setup Calculations . . . Button in the lower left corner of the
Calculations tab.
In the Options Tab, click both boxes for Save Fields And Mesh,
and Copy Geometrically Equivalent Meshes.
In the New Report – New Traces window, Select the Trace tab:
Select: Category: Output Variables.
Quantity: SlugForce (a previously defined Output Variable).
X: SlugHeight, and Y: SlugForce.
The plot will appear as shown on next page, the markers can be added by
double clicking on the trace and checking the Show Symbol check box.
Right click in the plot and select Export Data . . . to export the data to a file.
The axis can be edited by double clicking on the x or y axis.
The title can be changed by
editing the name in the Project Tree.
A 3D surface can be created by right clicking on Results in the Project Tree and
selecting Create Magnetostatic Report > 3D Rectangular Plot.
Edit the 3D Cartesian Plot window as shown below. Click New Report, Close.
Select Winding_A from the Project Tree and right mouse click and select
Properties and type in the following:
Change Voltage: 0 V that was specified on the previous page to:
Voltage: V_DC + Vp*sin(2*PI*50*Time) + 5*pwl_periodic (DSet_A, Time)
Click on OK and in the dialog window enter 50 for V_DC, click on OK
In the next dialog window enter 25 for Vp, click on OK
The first term is the DC offset and the 2nd is peak voltage of the sine wave
Connect all of the elements together using Draw > Wire and add a ground
using Draw > Ground.
Select Probes > Voltmeter and place it between the two voltage sources and
ground.
The circuit should look like this:
To verify the location of the imported .sph file, click on Circuit Path tab.
The optimization obtains the desired force = 0.25N by varying the air gap
between the plate and the puck using a local variable.
Magnet
Steel Plate
5. The Add Variable window appears automatically. Set the value of the
variable move to 0mm.
Add a Region
Click on the menu item Draw > Region:
Select Pad all Directions and type 300 in Padding Percentage
Reset the view by choosing: View > Fit All > All Views
You should see a message indicating that the –X direction is set to zero due
to RZ-symmetry about the Z-axis.
1. Name: target
2. Expression: 0.25
3. Click on Add to create this output variable for the target inductance.
4. Name: cost1
5. Expression: (target - Force_z) ^2
6. Click on Add to create this output variable for the cost function.
7. Click on Done to leave the Output Variable window.
Optimetrics Results
Your Optimetrics Results will be similar to the following results.
Select the menu item: Maxwell 2D> Optimetrics Analysis > Optimetrics Results
Check Log Scale to display the plot below.
Optimetrics Results
Choose View: Table to display the results below.
Curve Inf o
500.00 Force1.Force_z
Setup1 : LastAdaptive
450.00
Force1.Force_z [mNewton]
400.00
350.00
300.00
250.00
200.00
0.00 100.00 200.00 300.00 400.00 500.00 600.00
m ove [um ]
1.00E-003
cost1
1.00E-004
1.00E-005
1.00E-006
0.00 100.00 200.00 300.00 400.00 500.00 600.00
move [um]
' ----------------------------------------------
' Script Recorded by Maxwell Version 12.0
' 11:38 AM Aug 09, 2007
' ----------------------------------------------
Dim oAnsoftApp
Dim oDesktop
Dim oProject
Dim oDesign
Dim oEditor
Dim oModule
oEditor.CreateCircle Array("NAME:CircleParameters",
"CoordinateSystemID:=", -1, "IsCovered:=", true,
"XCenter:=", "0mm", "YCenter:=", "0mm", "ZCenter:=", "0mm",
"Radius:=", "1mm", "WhichAxis:=", "Z"), Array("NAME:Attributes", "Name:=",
"Circle1", "Flags:=", "", "Color:=", "(132 132 193)", "Transparency:=", 0,
"PartCoordinateSystem:=", "Global", "MaterialName:=", "vacuum",
"SolveInside:=", true)
Modify Script
Locate the line containing the Radius and change the numerical values to 5mm:
Cast iron
disk
Spiral coil
Simulated 2D model Actual 3D model
Click on the Matrix tab to display the 8x8 impedance matrix. By default, the
results are displayed as [R, Z] but can be also shown as [R, L] or as coupling
coefficients.
Click Done
Note: The total power loss for the plate and the coils = 260+24 = 284W which
matches the loss result in the convergence table.
Mesh
Meshing is a very critical issue with respect to simulation speed and
accuracy. For here, we will apply a rather coarse mesh only, by which
the solver will just yield satisfactory results.
Band1:
For torque computation, the most critical areas are the airgap
and its immediate proximity. Thus, the band mesh is crucial for
accurate results.
We will apply a length based mesh on the surface and inside of
Band1. We will restrict the number of elements to 5000. This
will do for these tests.
Right mouse click on Band1 > Assign Mesh Operation > Inside
Selection > Length Based.
Rename this mesh entry to Band_Length,
Restrict Length of Elements – unchecked,
Restrict Number of Elements – checked, set to 5000, OK.
For all other objects we will also just restrict the number of elements –
for simplicity reasons only. The mesh will be assigned one by one. For
each,
right click the object > Assign Mesh Operation > Inside
Selection > Length Based.
Restrict Length of Elements – unchecked,
Restrict Number of Elements – checked.
Following, first the object names are listed, second the
maximum number of elements to apply, and third the name
given to the resulting mesh entry:
Rotor1 – 1000 – Rotor_Length
Stator1 – 1000 – Stator_Length
CoilA and CoilB – 100 – Coils_Length (simultaneously
selecting CoilA, CoilA_Neg, CoilB, and CoilB_Neg will try
to assign 100 triangles to the group, i. e. about 25
triangle in each coil will result)
Background1 – 1000 – Background_Length.
Once done assigning, you should see project tree entries like Fig. 5.
Assign a solution setup:
In the project tree, right mouse click Analysis > Add Solution
Setup...
ClickOK to accept the default values for now.
We need this setup just to allow meshing and check the mesh,
we will care about its values later.
In the project tree right mouse click Analysis > Setup1 > Apply Mesh
Operations. Watch the progress bar (usually bottom right). Watch the
message window (usually bottom left) for a message that says that the
Simulation has been successfully completed. Now, meshing is done.
Select View > Set Solution Context leaving Time = -1 (the simulation
has not yet started) and then click on OK.
Select all objects except for Background1. Maxwell > Fields > Plot
Mesh. Your mesh plot should look similar to Fig. 6.
300.00
200.00
Torque [mNewtonMeter]
100.00
0.00
-100.00
-200.00
-300.00
-400.00
Fig. 8: Magnetic torque Tψ(t)
-500.00
0.00 20.00 40.00 60.00 80.00 100.00 120.00 140.00 160.00 180.00
Time [s]
1 cψ
f0 =
2π J
J in kgm is the total moment of inertia acting on Rotor1.
2
Solution Setup:
Under Analysis > Setup1 > Proporties, set
Stop Time = 0.5 s, Time Step = 0.01 s
From f0, we can expect a >200 ms cycle. At 10 ms
timestep we will sample one cycle >20 times.
Analyze this design. Open the already generated report Torque(t).
This and the two additional reports for speed and position should look
like Fig. 9-11.
500.00
Curve Info
Torque
Setup1 : Transien
400.00
300.00
200.00
Torque [mNewtonMeter]
100.00
0.00
-100.00
-200.00
-300.00
Fig. 10: Torque Tψ(t)
100.00
-400.00 Curve Info
Moving1.Speed
Setup1 : Transient
80.00
60.00
40.00
Moving1.Speed [rpm]
20.00
0.00
-20.00
-40.00
-60.00
Fig. 11:
-80.00
Mechanical speed ωm(t)
50.00 Curve Info
Moving1.Position
Setup1 : Transient
40.00
Moving1.Position [deg]
30.00
20.00
10.00
Fig. 12:
0.00
Mechanical position ϕm(t)
0.00 100.00 200.00 300.00 400.00 500
Time [ms]
Boundary Conditions
Boundary conditions enable you to control the characteristics of planes,
faces, or interfaces between objects. Boundary conditions are important to
understand and are fundamental to solution of Maxwell’s equations.
1_VectorPotential 2_Balloon
3_Balloon_ChangeExcitation
5_Symmetry_Even
7_Matching_Positive 8_Matching_Negative
Getting Started
Launching Maxwell
To access Maxwell, click the Microsoft Start button, select Programs, and select
Ansoft and then Maxwell 12. Or double click the icon on the desktop.
3. Select the menu item Tools > Options > Modeler Options.
Creating 2D Model
The example that will be used to demonstrate how to assign boundary conditions
does not represent any real-world product. The intent of this write-up is rather to
demonstrate how boundary conditions are implemented.
Click on the object just created in the drawing window and in the panel on
the left change its name from SRMCore1 to Stator.
Change the Material from vacuum to nickel.
The stator and coils were created as one entity and they need to be
separated.
1. Click on the Stator-Coil group so that they are selected
2. Select the menu item Modeler > Boolean > Separate Bodies, the
result will be a single stator and eight coil cross-sections.
As was done with the Stator, change the name, materials, and color for
Coils. The material property for the Stator will be nickel, and the material
property for the Coils will be copper. The name and color for each object is
given below.
Coil3 Coil2
Coil1
Coil4
Coil8
Coil5
Stator
Coil7
Coil6
The project tree now shows eight separate Excitations, each of them
is pointing out of the plane (along Z axis):
Right click on Excitations > List …, hold down CTRL key and select Current_2,
Current_4, Current_6 and Current_8, then click on “Properties”, change direction
from Positive to Negative.
The problem won’t solve unless each item has a check mark.
Analyze
Select the menu item Maxwell 2D > Analyze All, or click on the icon
Solution Data
To view the Solution Data, select the menu item Maxwell 2D >
Results > Solution Data, or right click on Setup1 under Analysis >
Convergence
Here you can view the Profile and the Convergence.
Note: The default view for convergence is Table. Click on the Plot
radio button to view a graphical representations of the convergence
data.
Note: You don’t have to wait for the solution to be done to do this.
You can do this while the simulation is running, all information will
update automatically after each pass is done.
The following H-field vector plot will appear, which is the result of the current
excitation on the left side.
If the plot is not as nice as you may want to see, you can double click on the
legend bar, then change various settings under Color map / Scale / Marker /
Arrow or Plots tabs.
Balloon on all edges of the Region Zero Vector Potential on the outer edge of the Stator
Current_3 Current_2
Current_4 Current_1
Run the simulation and compare H Field plot with Design2 2_Balloon that has
different excitations.
Symmetry Boundary
Create Design4: 4_Symmetry_Odd
Click on design 2_Balloon in the Project Manager window and then
right mouse click and select Copy
Click on the project name Ex_9_14_Basic_BoundaryConditions, right
click and select Paste, a new design called 2_Balloon1 has been
created, change the design name to 4_Symmetry_Odd.
Select all objects and right mouse click in the modeler > Boolean >
Split, choose XZ plane to create half geometry.
The result should look the same as Design4: 4_Symmetry_Odd because odd symmetry
or flux tangential is the default boundary condition.
Master Master
Slave=Master
Master
Slave=-Master
Master
Boundary Conditions
Boundary conditions enable you to control the characteristics of planes,
faces, or interfaces between objects. Boundary conditions are important to
understand and are fundamental to solution of Maxwell’s equations.
1_VectorPotential 2_Balloon
3_Balloon_ChangeExcitation
5_Symmetry_Even
7_Matching_Positive 8_Matching_Negative
Getting Started
Launching Maxwell
To access Maxwell, click the Microsoft Start button, select Programs, and select
Ansoft and then Maxwell 12. Or double click the icon on the desktop.
3. Select the menu item Tools > Options > Modeler Options.
Creating 2D Model
The example that will be used to demonstrate how to assign boundary conditions
does not represent any real-world product. The intent of this write-up is rather to
demonstrate how boundary conditions are implemented.
Click on the object just created in the drawing window and in the panel on
the left change its name from SRMCore1 to Stator.
Change the Material from vacuum to nickel.
The stator and coils were created as one entity and they need to be
separated.
1. Click on the Stator-Coil group so that they are selected
2. Select the menu item Modeler > Boolean > Separate Bodies, the
result will be a single stator and eight coil cross-sections.
As was done with the Stator, change the name, materials, and color for
Coils. The material property for the Stator will be nickel, and the material
property for the Coils will be copper. The name and color for each object is
given below.
Coil3 Coil2
Coil1
Coil4
Coil8
Coil5
Stator
Coil7
Coil6
The project tree now shows eight separate Excitations, each of them
is pointing out of the plane (along Z axis):
Right click on Excitations > List …, hold down CTRL key and select Current_2,
Current_4, Current_6 and Current_8, then click on “Properties”, change direction
from Positive to Negative.
The problem won’t solve unless each item has a check mark.
Analyze
Select the menu item Maxwell 2D > Analyze All, or click on the icon
Solution Data
To view the Solution Data, select the menu item Maxwell 2D >
Results > Solution Data, or right click on Setup1 under Analysis >
Convergence
Here you can view the Profile and the Convergence.
Note: The default view for convergence is Table. Click on the Plot
radio button to view a graphical representations of the convergence
data.
Note: You don’t have to wait for the solution to be done to do this.
You can do this while the simulation is running, all information will
update automatically after each pass is done.
The following H-field vector plot will appear, which is the result of the current
excitation on the left side.
If the plot is not as nice as you may want to see, you can double click on the
legend bar, then change various settings under Color map / Scale / Marker /
Arrow or Plots tabs.
Balloon on all edges of the Region Zero Vector Potential on the outer edge of the Stator
Current_3 Current_2
Current_4 Current_1
Run the simulation and compare H Field plot with Design2 2_Balloon that has
different excitations.
Symmetry Boundary
Create Design4: 4_Symmetry_Odd
Click on design 2_Balloon in the Project Manager window and then
right mouse click and select Copy
Click on the project name Ex_9_14_Basic_BoundaryConditions, right
click and select Paste, a new design called 2_Balloon1 has been
created, change the design name to 4_Symmetry_Odd.
Select all objects and right mouse click in the modeler > Boolean >
Split, choose XZ plane to create half geometry.
The result should look the same as Design4: 4_Symmetry_Odd because odd symmetry
or flux tangential is the default boundary condition.
Master Master
Slave=Master
Master
Slave=-Master
Master
Problem definition
We are interested to solve the magnetic field of a Circular PM placed in vacuum. The material of
PM is NdFeB35 and the magnet is magnetized in the direction 30 degrees relative to the Global X
direction.
Orientation can also be viewed graphically. First, make sure that this feature is enabled:
Tools > Options > Modeler Options select Display Tab and check Show orientation of
selected objects
Select the object magnet (left-click on magnet from the history tree). The Orientation is shown as
small arrows starting from the origin. These should not be confused with the Coordinate System
axes arrows which are bigger and display x or y next to arrows. The visibility and size of
Coordinate System axes arrows can be controlled from: View > Coordinate System > Small
Create a new Coordinate System (CS) with x-axis rotated 30 degrees relative to x-axis of the
Global CS:
Modeler > Coordinate System > Create > Relative CS > Rotated
On the Status Bar (bottom right) change the CS type from Cartesian to Cylindrical and
specify
R, Phi, Z: 1, 30, 0 Enter
The Orientation of magnet can now be changed. Object magnet can now be associated with
RelativeCS1 coordinate system:
Select magnet
Edit > Properties
Change Orientation from Global to RelativeCS1; OK
Select the object magnet again and observe the orientation:
We can see that the flux lines are really oriented 30 degrees relative to the Global Coordinate
System. This means that the magnetization of the magnet is correctly assigned
This completes the exercise