Professional Documents
Culture Documents
Release 18.1
ANSYS, Inc.
April 2017
Southpointe
2600 ANSYS Drive ANSYS, Inc. and
Canonsburg, PA 15317 ANSYS Europe,
Ltd. are UL
ansysinfo@ansys.com
registered ISO
http://www.ansys.com 9001:2008
(T) 724-746-3304 companies.
(F) 724-514-9494
Maxwell Online Help
2
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Table of Contents
Table of Contents Contents-1
1 - Welcome to Maxwell Online Help 1-1
User Interface Quick Links 1-1
Modeling Quick Links 1-2
Boundaries/Excitations Quick Links 1-2
Meshing Quick Links 1-3
Analysis Quick Links 1-3
Optimetrics Quick Links 1-4
Results Quick Links 1-4
Scripting Quick Links 1-5
2 - Getting Started with Maxwell and RMxprt 2-1
Welcome to ANSYS Electronics Desktop 2-1
Launching ANSYS Electronics Desktop 2-3
System Requirements 2-3
The Maxwell Desktop UI 2-4
Working with the Menu Bar 2-4
Working with Windows 2-5
Moving and Resizing Desktop Windows 2-6
Window Layouts 2-7
Working with the Toolbars 2-7
Customizing Toolbars 2-8
Customize Toolbar Commands 2-8
External User Tools 2-9
Working with the Shortcut Menus 2-10
Shortcut Menu in the Toolbars Area 2-11
Shortcut Menu in the Modeler Window 2-11
Shortcut Menus in the Project Manager Window 2-11
General Purpose Keyboard Shortcuts for Maxwell 2-11
Custom Keyboard Shortcuts 2-12
Working with the Status Bar 2-13
Exiting the Desktop 2-14
Working with the Project Manager 2-14
Working with the Project Tree 2-15
Setting the Project Tree to Expand Automatically 2-16
Contents-1
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-2
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-3
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-4
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-5
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-6
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Faceting 4-70
UDM/UDP Geometry Computation for Optimetrics Analysis 4-70
Setting Fields Reporter Options 4-71
Exporting Options Files 4-71
Setting Options via Configuration Files 4-72
Setting or Removing Option Values in Configuration Files: UpdateRegistry Command 4-75
Example Uses for Export Options Features 4-79
Example for Setting an Installation Default Value 4-80
Example for Setting a Host Dependent Default Value 4-80
Example for Reverting from a User Defined Option Value to the Administrator Default 4-81
Example Searching for a Registry Key Pathname 4-81
User Options and the Update Registry Tool 4-82
Getting a Value from a Specific Configuration File 4-82
Getting a Value Using Precedence Rules 4-83
Example of Removing a Host Dependent User Option Setting 4-83
Example Adding a Host Independent User Option Setting 4-83
Setting the Temporary Directory 4-84
Temporary Directory Configuration File Format 4-86
Setting the Temporary Directory Using the GUI 4-87
Setting the Temporary Directory From the Command Line 4-87
Setting or Removing Temporary Directory Values in Configuration Files:
UpdateRegistry Command 4-88
Batchoptions Command Line Examples 4-88
Batchoptions File Format 4-88
Example -BatchOptions with -Remote (Windows) 4-89
Example -Batchsolve with -Machinelist (Windows) 4-90
Example -Batchsolve with -Machinelist (Linux) 4-91
Example -Batchsolve for Local (Windows) 4-92
Batchoptions and Analysis Configurations in the Registry 4-92
Setting Analysis Configurations Using the User Interface 4-94
Working with PEmag Designs 4-94
Creating Maxwell Designs Using PEmag 4-95
Modifying Maxwell Designs Using PEmag 4-98
Solving Maxwell Designs Generated by PEmag 4-99
Working with Variables 4-100
Adding a Project Variable 4-100
Deleting Project Variables 4-103
Contents-7
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-8
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-9
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-10
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-11
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-12
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-13
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-14
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-15
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-16
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-17
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-18
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-19
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-20
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-21
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-22
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-23
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Limitations 10-9
General Procedure for Setting Demagnetization/Magnetization Computations for
Source Designs 10-10
Using the Hysteresis Model-Based Magnetization Approach 10-11
Classic Magnetization Approach 10-12
Hysteresis Model-Based Magnetization Approach 10-12
Design Criteria 10-13
Showing and Verifying Conduction Paths 10-18
Recalculating Conduction Paths 10-19
Modifying Boundary Conditions and Excitations 10-19
Duplicating Boundaries and Excitations 10-19
Showing and Hiding Boundaries and Excitations 10-20
Showing and Hiding Boundaries and Excitations in Every View Window 10-20
Setting Default Values for Boundaries and Excitations 10-20
Reassigning Boundaries 10-21
Reassigning Excitations 10-21
Deleting All Boundaries and/or Excitations 10-22
Reprioritizing Boundaries 10-22
Viewing and Editing Boundary or Excitation Properties 10-22
Set Default Boundary/Excitation Base Name 10-23
Magnetostatic Boundaries and Excitations 10-23
Magnetostatic Boundaries 10-24
Default Boundary Conditions for a Magnetostatic Solver 10-25
Assigning a Magnetic H Field for a Magnetostatic Solver 10-26
Assigning an Integrated Zero Tangential H Field Boundary for a Magnetostatic
Solver 10-27
Assigning an Insulating Boundary for a Magnetostatic Solver 10-27
Assigning a Symmetry Boundary Condition for a Magnetostatic Solver 10-27
Assigning a Master Boundary for a Magnetostatic Solver 10-28
Assigning a Slave Boundary for a Magnetostatic Solver 10-29
Magnetostatic Excitations 10-30
Assigning a Voltage Excitation for a Magnetostatic Solver 10-30
Assigning a Voltage Drop Excitation for a Magnetostatic Solver 10-31
Assigning a Current Density Excitation for a Magnetostatic Solver 10-31
Assigning a Current Excitation for a Magnetostatic Solver 10-32
Electrostatic Boundaries and Excitations 10-32
Electrostatic Boundaries 10-33
Contents-24
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-25
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Assigning a Current Density Excitation for the Eddy Current Solver 10-61
Assigning a Current Density Terminal Excitation for the Eddy Current Solver 10-62
Assigning a Current Excitation for the Eddy Current Solver 10-62
Assigning a Coil Terminal for an Eddy Current Solver 10-63
Assigning a Winding Setup for an Eddy Current Solver 10-63
External Circuit Setup for 3D Eddy Current 10-65
Transient Boundaries and Excitations 10-68
Transient Boundaries 10-69
Default Boundary Conditions for a Transient Solver 10-70
Assigning a Zero Tangential H Field Boundary for a Transient Solver 10-70
Assigning an Integrated Zero Tangential H Field Boundary for a Transient Solver 10-71
Assigning an Insulating Boundary for a Transient Solver 10-71
Assigning a Symmetry Boundary for a Transient Solver 10-71
Assigning a Master Boundary for a Transient Solver 10-72
Assigning a Slave Boundary for a Transient Solver 10-73
Transient Excitations 10-74
Assigning a Coil Terminal for a Transient Solver 10-75
Assigning a Winding Setup for a Transient Solver 10-75
Setting Up an External Circuit Connection for an External Winding Type 10-77
Using the AC_Model Component to Speed Up Analysis 10-80
Setting Up an External Circuit Using Simulink 10-81
Electric Transient Solver Boundaries and Excitations 10-86
Electric Transient Excitations 10-87
Assigning a Charge Excitation for an Electric Transient Solver 10-87
Assigning a Volume Charge Density Excitation for an Electric Transient Solver 10-88
11 - Assigning Boundaries and Excitations for 2D Designs 11-1
Selecting Objects and Faces in the 2D Geometry 11-1
Defining Boundary Conditions in 2D 11-1
Defining 2D Excitations 11-2
Viewing 2D Boundaries and Excitations 11-3
Setting the Visibility for 2D Boundaries and Excitations 11-3
Functional Boundaries and Excitations in 2D 11-4
Setting Eddy Effects and Displacement Current in 2D 11-4
Modifying 2D Boundary Conditions and Excitations 11-5
Duplicating 2D Boundaries and Excitations 11-5
Showing and Hiding Boundaries and Excitations in 2D 11-6
Contents-26
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Showing and Hiding 2D Boundaries and Excitations in Every View Window 11-6
Setting Default Values for 2D Boundaries and Excitations 11-6
Reassigning 2D Boundaries 11-7
Reassigning 2D Excitations 11-7
Deleting All 2D Boundaries and/or Excitations 11-8
Viewing and Editing 2D Boundary or Excitation Properties 11-8
2D Magnetostatic Boundaries and Excitations 11-8
2D Magnetostatic Boundaries 11-8
Default Boundary Conditions for a 2D Magnetostatic Solver 11-9
Assigning a Vector Potential for a 2D Magnetostatic Solver 11-10
Assigning a Symmetry Boundary Condition for a 2D Magnetostatic Solver 11-10
Assigning a Balloon Boundary Condition for a 2D Magnetostatic Solver 11-10
Assigning a Master Boundary for a 2D Magnetostatic Solver 11-11
Assigning a Slave Boundary for a 2D Magnetostatic Solver 11-11
2D Magnetostatic Excitations 11-12
Assigning a Current Density Excitation for a 2D Magnetostatic Solver 11-12
Assigning a Current Excitation for a 2D Magnetostatic Solver 11-13
2D Electrostatic Boundaries and Excitations 11-13
2D Electrostatic Boundaries 11-13
Default Boundary Conditions for a 2D Electrostatic Solver 11-14
Assigning a Symmetry Boundary Condition for a 2D Electrostatic Solver 11-15
Assigning a Balloon Boundary Condition for a 2D Electrostatic Solver 11-15
Assigning a Master Boundary for a 2D Electrostatic Solver 11-15
Assigning a Slave Boundary for a 2D Electrostatic Solver 11-16
2D Electrostatic Excitations 11-16
Assigning a Voltage Excitation for a 2D Electrostatic Solver 11-17
Assigning a Charge Excitation for a 2D Electrostatic Solver 11-17
Assigning a Floating Excitation for a 2D Electrostatic Solver 11-18
Assigning a Charge Density Excitation for a 2D Electrostatic Solver 11-18
2D AC Conduction Boundaries and Excitations 11-18
2D AC Conduction Boundaries 11-19
Default Boundary Conditions for a 2D AC Conduction Solver 11-20
Assigning a Symmetry Boundary Condition for a 2D AC Conduction Solver 11-20
Assigning a Balloon Boundary Condition for a 2D AC Conduction Solver 11-20
Assigning a Master Boundary for a 2D AC Conduction Solver 11-21
Assigning a Slave Boundary for a 2D AC Conduction Solver 11-21
Contents-27
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-28
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-29
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-30
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-31
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-32
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-33
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-34
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-35
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-36
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-37
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-38
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-39
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-40
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-41
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-42
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-43
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-44
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-45
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
22-139
Opening the Fields Calculator 22-140
Context Area 22-141
The Calculator Stack 22-142
Registers 22-142
Enlarging the Register Display Area 22-143
Units of Measure 22-143
Stack Commands 22-144
Push 22-144
Pop 22-144
RlUp 22-144
RlDn 22-144
Exch 22-144
Clear 22-144
Undo 22-144
Input Commands 22-144
Quantity Command 22-145
22-145
Geometry Command 22-145
Constant Command 22-146
Number Command 22-147
Function Command 22-148
Geometry Settings 22-149
Reading an External Input 22-149
General Commands 22-149
+ (Add) 22-150
– (Subtract) 22-150
* (Multiply) 22-150
/ (Divide) 22-150
Neg 22-150
Abs 22-150
Smooth 22-150
Complex 22-150
Domain 22-151
Steps for Calculating the Complex Vector Electric Field 22-152
Scalar Commands 22-152
Contents-46
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-47
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-48
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-49
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-50
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-51
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-52
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-53
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-54
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-55
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-56
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-57
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-58
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-59
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-60
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-61
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-62
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-63
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-64
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-65
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-66
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-67
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-68
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-69
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-70
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
NONS_RELU Rotor Core Pole Data for Generic Rotating Machines 25-478
NONS_RELU Rotor Core Pole Types 25-479
Defining the Stator and Rotor Windings for a Generic Rotating Machine 25-481
Stator and Rotor Winding Data for Generic Rotating Machines 25-486
Winding Editor for a Generic Rotating Machine 25-488
Defining Different Size Wires for a Generic Rotating Machine 25-489
Stator and Rotor Circuit Data for Generic Rotating Machines 25-490
Defining the Axial AC Rotor Brush for a Generic Rotating Machine 25-491
Vent Data for Generic Rotating Machines 25-491
Defining the Shaft Data for a Generic Rotating Machine 25-492
Shaft Data for General DC Machines 25-492
Setting Up Analysis Parameters for a Generic Rotating Machine 25-493
Solution Data for Generic Rotating Machines 25-494
General tab: 25-495
GRM tab: 25-495
Adding Machine Housings 25-495
Housing Data 25-497
Housing Duct Data 25-498
Housing Fin Data 25-500
Housing Flange Data 25-502
Housing Foot Data 25-503
Housing Front Cap and Rear Cap Data 25-505
Stator Vent Data 25-506
Rotor Vent Data 25-506
26 - Using the Maxwell Circuit Editor 26-1
Schematic Editor 26-1
The Schematic Editor Window 26-1
Setting Schematic Editor Options 26-2
Schematic Editor Options: General 26-3
Schematic Editor Options: Fonts 26-3
Schematic Editor Options: Colors 26-4
Schematic Editor Options: Wiring Tab 26-4
Schematic Editor Options: Multiple Placement 26-5
Schematic Editor Options: Symbol Editor 26-5
The Component Libraries Window 26-5
Auto-Hide Feature 26-6
Contents-71
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-72
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-73
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Inductance 27-13
Inductance in Terms of Flux Linkage and Currents 27-14
Inductance in Terms of Voltages and Time Varying Currents 27-15
Computing an Inductance Matrix 27-16
Virtual Forces (Magnetostatic) 27-17
Virtual Torques (Magnetostatic) 27-18
Flux Linkage (Magnetostatic) 27-19
Eddy Current Field Simulation 27-19
Eddy Current Theory 27-20
Components of Current Density 27-21
Integrating the Current Density 27-22
Eddy Current Assumptions 27-22
Deriving the Eddy Current Equation 27-22
Maxwell’s Equations 27-23
Relationship of Magnetic and Electric Field 27-25
Relationship of Current and Current Density 27-26
Eddy Currents and Skin Depth 27-26
Impedance Matrix 27-27
Computing an Impedance Matrix 27-29
Matrix Inductance 27-29
Matrix Resistance 27-30
Inductance and Resistance in Impedance Computations 27-31
Virtual Forces (Eddy Current) 27-32
Virtual Torques (Eddy Current) 27-34
Current Flow (Eddy Current) 27-34
Nonlinear Eddy Current Field Simulation 27-35
Nonlinear Eddy Current Theory 27-35
Sinusoidal B 27-35
DC Conduction Field Simulation 27-36
DC Conduction Theory 27-37
Steady-state Conditions 27-38
Relevant Time Constant 27-40
Conductance 27-41
Current Flow (DC Conduction) 27-41
AC Conduction Field Simulation 27-42
AC Conduction Theory 27-42
Contents-74
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-75
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-76
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-77
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-78
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-79
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-80
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-81
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-82
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-83
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Contents-84
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Use the following links for quick information on the following topics.
l Click the "?" icon on the toolbar, and then click on any menu command, icon, or window for
l With the Online Help Index tab selected, search the help index.
l With the Online Help Search tab selected, search the full help text.
l With Online Help Favorites tab selected, create a custom list of favorite topics.
l Click the "?" icon on the toolbar, and then click on any menu command, icon, or window for
l With the Online Help Index tab selected, search the help index.
l With the Online Help Search tab selected, search the full help text.
l With Online Help Favorites tab selected, create a custom list of favorite topics.
l Click the "?" icon on the toolbar, and then click on any menu command, icon, or window for
l With the Online Help Index tab selected, search the help index.
l With the Online Help Search tab selected, search the full help text.
l With Online Help Favorites tab selected, create a custom list of favorite topics.
l Click the "?" icon on the toolbar, and then click on any menu command, icon, or window for
l With the Online Help Index tab selected, search the help index.
l With the Online Help Search tab selected, search the full help text.
l With Online Help Favorites tab selected, create a custom list of favorite topics.
l Use F1 on any open dialog to open the Online Help for that dialog.
l Click the "?" icon on the toolbar, and then click on any menu command, icon, or window for
help on that selection.
l With the Online Help Contents tab selected, navigate the help topic hierarchy.
l With the Online Help Index tab selected, search the help index.
l With the Online Help Search tab selected, search the full help text.
l With Online Help Favorites tab selected, create a custom list of favorite topics.
l Click the "?" icon on the toolbar, and then click on any menu command, icon, or window for
l With the Online Help Index tab selected, search the help index.
l With the Online Help Search tab selected, search the full help text.
l With Online Help Favorites tab selected, create a custom list of favorite topics.
l Click the "?" icon on the toolbar, and then click on any menu command, icon, or window for
l With the Online Help Index tab selected, search the help index.
l With the Online Help Search tab selected, search the full help text.
l With Online Help Favorites tab selected, create a custom list of favorite topics.
l Click the "?" icon on the toolbar, and then click on any menu command, icon, or window for
l With the Online Help Index tab selected, search the help index.
l With the Online Help Search tab selected, search the full help text.
l With Online Help Favorites tab selected, create a custom list of favorite topics.
charges.
l Static magnetic fields, forces, torques, and inductances caused by DC currents, static external
RMxprt™ is an interactive software package used for designing and analyzing electrical machines.
Maxwell and Rmxprt are integrated into the ANSYS Electronics Desktop.
Related Topics
l Filter Design - a schematic-based design for creating filters for high frequency RF and
microwave applications.
l Launch Savant - a tool for simulating near-field, far-field, and coupling performance of
antennas installed on platforms and within other complex and electrically large environments.
l Launch EMIT - a simulation tool for the prediction of radio frequency interference (RFI) in
complex environments.
If you go to the Project menu, you can access all of the design types. Any combination of these
design types can be inserted into a single project file. The schematics can be used to wire up the
different field solver models and create a model of a high-level system. The ANSYS Electronics
Desktop provides an efficient way to manage complicated projects that require several different
analysis tools to model all of its pieces. Designs can also be parameterized. With the help of the
Optimetrics feature the best design variations can be made available to other modules when the
designs are linked into a higher level simulation. This lets you study the effect of varying a design
parameter on the behavior of the entire system.
Related Topics
Related Topics
System Requirements
Maxwell supports certain versions of Windows and Linux. For supported platforms and system
requirements, go to:
http://www.ansys.com/Solutions/Solutions-by-Role/IT-Professionals/Platform-Support
Click a link below to view more information about that desktop component.
Maxwell contains the following menus, which appear at the top of the desktop:
File menu Use the File menu commands to manage Maxwell project files and printing options.
Edit menu Use the Edit menu commands to modify the objects in the active model and undo and
redo actions.
View menu Use the View menu commands to display or hide desktop components and model
objects, modify 2D and 3D Modeler window visual settings, and modify the model
view. The Wizards command opens the Wizards window which lets you work with
ACT integration tools.
Project Use the Project menu commands to add a Maxwell or RMxprt design to the active
menu project, define datasets, and define project variables.
Draw Use the Draw menu to draw the elements that make up a model.
menu
Modeler Use the Modeler menu commands to import, export, and copy 2D Modeler files and
menu 3D Modeler files; assign materials to objects; manage the 3D Modeler window’s grid
settings; define a list of objects or faces of objects; control surface settings; perform
boolean operations on objects; and set the units for the active design.
Maxwell3D, Use these menu commands to change solution type, assign boundaries and
Maxwell2D, excitations, set up parameters, add analysis setups, set up Optimetrics, post process
or RMxprt solutions, export equivalent circuits, define datasets, and other design tasks.
menu
Tools Use the Tools menu to modify the active project's material library, arrange the
menu material libraries, run and record scripts, update project definitions from libraries,
display options, customize the desktop's toolbars, and modify many of the software's
default settings.
Window Use the Window menu commands to rearrange the Modeler windows and toolbar
menu icons.
Help menu Use the Help menu commands to access the online help system and view the current
Maxwell version information.
Related Topics
Getting Help
where the desktop make become crowded with open windows and some may be partially or
completely obscured. Minimized windows are automatically opened when selected in this list.
Command Description
New Window Open a new window. New windows shows the model by default.
Arranges all non-minimized windows in a cascade with the window title bar
Cascade
visible.
Tile Arranges all non-minimized windows to use the maximum horizontal size of the
Horizontally desktop.
Arranges all non-minimized windows to use the maximum vertical size of the
Tile Vertically
desktop.
Arrange Icons Arranges the icons of any minimized windows along the bottom of the Desktop.
Close All Close All currently open desktop windows.
edges, for sizing a window within the desktop, the cursor changes to a double bar with arrows
pointing each direction. Over the outer-edges, for sizing the desktop, the cursor changes to a
line with arrows pointing each direction. Press and drag to size the window.
l To expand a window to fill the horizontal or vertical space it shares with another window, click
the triangle in the window title bar. When you expand a window, the triangle appears as
inverted and any other windows in the same horizontal or vertical space are compressed to
only the title bar. If a window does not share a horizontal or vertical space with another, the
Window Layouts
You can create and save specific window layouts for rhe desktop and apply them when needed. For
example, you can create a layout that shows a large component window. There are options to apply
a saved layout, restore the default window layout, and remove saved layouts.
To save a wndow layout:
1. On the View menu, click Window Layouts>Save Current Layout.
2. Enter the layout name in the Layout Name dialog, and click OK. The layout is saved and
added to the list of layouts on the Window Layouts submenu.
To apply a saved layout:
1. On the View menu, click Window Layouts and select from the listed saved layouts.
To restore the default window layout:
1. On the View menu, click Window Layouts>Default.
To remove window layouts:
1. On the View menu, click Window Layouts>Remove Saved Layouts.
2. In the Modify Layouts dialog, select one or more layouts and click Delete, or click Delete
All.
To open a help topic about a toolbar button’s functionality, press Shift+F1, and then click the toolbar
button or a command in the shortcut pull-down list.
To display a brief description of the toolbar button, move the pointer over the button or shortcut pull-
down list.
Hint To modify the toolbars on the desktop, do one of the following:
l On the Tools menu, click Customize.
l Right-click the history tree, and then click Customize on the shortcut menu.
ResetAll.
Related Topics
Customizing Toolbars
Related Topics
This displays the Customize dialog with the Commands tab selected. The Categories field
lists the available toolbars. The icons for the currently selected toolbar are shown to the right of
the field.
2. Select from the Categories list to display the icons you want to add to the toolbar.
3. Drag the icons from the Customize dialog to a location on the desktop toolbar.
4. Use the OK button to close the dialog, or the Cancel button to close without making changes.
Related Topics
This example shows the cscript.exe program added to the Tools menu as RunMyScript. The
command line argument to the csscript.exe program is report.vbs. You can also name the directory
in which it will be run.
Shortcut Use the shortcut menu in the toolbars area of the desktop to show or hide windows
menu in the or toolbars, and customize the toolbars.
toolbars
area
Shortcut Use the shortcut menu in the Modeler window to select, magnify, and move
menu in the options (zoom, rotate, etc.), change the view, perform boolean operations, assign
Modeler materials, or mesh operations to objects, and work with field overlays.
window
Shortcut Use the shortcut menus in the Project Manager window to manage Maxwell
menus in the project and design files and design properties; assign and edit excitations, and
Project mesh operations; add, analyze, and manage solution setups; add optimetrics
Manager analyses; create post-processing reports; edit project definitions.
window
Shortcut Use the shortcut menus in the History tree to expand or collapse groupings. If you
menus in the select particular objects in the history tree, the shortcut menu lists the commands
History Tree that you can apply to the selected object or objects.
Note All of the commands on the shortcut menus are also available on the menu
bar.
Use the shortcut menu in the toolbars area of the desktop to show or hide windows or toolbars, and
customize the toolbars.
To access the shortcut menu in the toolbars area:
l Right-click in the toolbars area at the top of the desktop.
A check box appears next to a command if the item is visible. For example, if a check box appears
next to the Project Manager command, then the Project Manager window is currently visible
on the desktop.
Click Customize to open the Customize dialog box, which enables you to modify the toolbar
settings on the desktop.
Use the shortcut menu in the Modeler window to select, magnify, and move options (zoom, rotate,
etc.), change the view, assign materials, nets, excitations, or mesh operations to objects, work with
field overlays, and plot objects.
To access the shortcut menu in the Modeler window:
l Right-click in the Modeler window (grid area).
l CTRL + C: Copy
Related Topics
Selecting a Command category lists the available Commands for that category. If the command has
an assigned shortcut, it is displayed in the Shortcuts for selected command field. You can use the
Remove button to disable the shortcut for the selected command. If the selected command does not
have an assigned shortcut, the Shortcuts for selected command field and the Remove button
are grayed out.
To create a new shortcut key:
1. Select the Category and Command.
2. If you want disable a current assignment for the selected command, click Remove.
3. To assign a keyboard shortcut, place the cursor in the Press new shortcut key field.
The field displays the keystrokes you make. When you have made keystrokes, the dialog
enables the Assign button. If you combine keystrokes these are displayed with a “+” between
them. For example, Ctrl + p or Alt +o.
4. The Use new shortcut in field displays Global by default, which means that the shortcut will
apply to all applicable contexts. If a limited context exists, the menu will offer a selection.
5. When you have made the desired assignments, you can save the assignments to a named
file.
Clicking the Save... button displays a browser window that lets you navigate the file structure
and assign a name, using an aks suffix for Ansoft Keyboard Shortcut file.
Buttons on the browser window let you designate the file location as Use Path, Personallib,
Syslib, UserLib, or Project folder.
If you have an existing aks file, you can use the Load... button to display a browser window to
locate the desired file.
6. You can OK the current settings, or Reset to Default.
A check box appears next to this command if the status bar is visible.
When visible, the status bar contains buttons to show or hide the message window and
progress window.
When more than one progress bar is active, the top progress bar is represented on the status
bar with a progress indicator.
Depending on the command being performed, the status bar can display the following:
l X, Y, and Z coordinate boxes.
coordinates.
l The model's units of measurement.
When creating object in the model window, you may jump to the coordinate entry boxes by pressing
the Tab key. In addition, the Tab key moves the focus to the next coordinate box when performing
manual data entry.
The Project Manager window displays details about all open Maxwell projects. Each project
ultimately includes a geometric model, its boundary conditions and excitations, and field solution and
post-processing information. Any 3D Components appear under the 3D Components icon.
To show or hide the Project Manager window, do one of the following:
l Click View>Project Manager.
A check box appears next to this command if the Project Manager window is visible.
l Right-click in the toolbars area on the desktop, and then click Project Manager on the
shortcut menu.
A check box appears next to this command if the Project Manager window is visible.
Related Topics
The project tree is located in the Project Manager window and contains details about all open
Maxwell projects.
The top node listed in the project tree is the project name. It is named Projectn by default, where n is
the order in which the project was added to the current session of Maxwell. Expand the project icon
to view the project's Maxwell design information, 3D Components (if any) and material definitions.
By default, the Project tree icon for the active window is highlighted, as shown in the figure below.
(See User Interface for the options.) With the option disabled, Rotational_Act_TR (Transient) in
the Project tree would not be highlighted.
When the Project tree is taller than the window, if you mouse has a scroll wheel, you can click in the
Project manager and use the wheel to scroll up and down. If the Project tree is larger than the
window size, there is also a scroll bar can control with the mouse cursor.
In the project tree, an "unknown" section lists objects that do not fit one of the following
dimensionality types: solid, sheet, or wire.
Related Topics
You can set the project tree to automatically expand when an item is added to a project.
1. Click Tools>Options>General Options.
Once you insert a Maxwell design into a project, it is listed as the second node in the project tree. It is
named MaxwellModeln by default, where n is the order in which the design was added to the project.
Expand the design icon in the project tree to view specific data about the model.
The MaxwellModeln node contains the following project details:
edit.
A dialog box appears with that setup's parameters, which you can then
edit.
In the project tree, an "unknown" section lists objects that are not solid, sheet, or wire.
You can view the design list for a model in the following ways:
l By clicking Maxwell3D, Maxwell2D, or RMxprt and then selecting List.
l By right-clicking items in the project tree and selecting List from the shortcut menu.
Information about the model, boundaries and excitations, mesh operations, and analysis setup can
be viewed in the Design List dialog box that appears, with the following tabs available:
l Model
l Motion
l Boundaries
l Excitations
l Parameters
l Mesh Operations
l Analysis Setup
In the Design List dialog box, all objects are shown, regardless of the type of dimensionality (solid,
sheet, wire, or unknown); whereas, in the project tree, an "unknown" section lists objects that are not
solid, sheet, or wire.
For Transient solutions only, when the Model icon in the project tree is selected, the Properties
window displays a Motion Variables tab showing Speed and Position variables values if a motion
setup has been defined. These variable values are not user-editable. Like other variables, they can
be used in expressions and reports.
Related Topics
The definitions node is listed at the bottom of the project tree and displays all of the material
definitions that are assigned to the objects in the active model.
Related Topics
Related Topics
Related Topics
To show or hide the Properties window on the desktop, do one of the following:
l Click View>Properties Window.
A check box appears next to this command if the Properties window is visible.
l Right-click in the toolbars area at the top of the desktop, and then click Properties on the
shortcut menu.
A check box appears next to this command if the Properties window is visible.
Note You can also click any command or attribute in the Property window, and then click
Edit>Properties to view its properties.
Related Topics
To modify the object's properties and set the Properties window to open after an object is drawn, do
the following:
1. Click Tools>Options>Modeler Options.
The Modeler Options window appears.
2. Click the Drawing tab.
3. Select Edit property of new primitives.
4. Click OK.
Hereafter, after you draw an object in point mode, the Properties window will open.
However, if you draw an object in Dialog mode, this setting is ignored.
Related Topics
1. Select the object for which you want to edit its attributes by clicking it in the view window or
clicking its name in the history tree.
2. Under the Attribute tab in the Properties window, edit the object attribute.
Depending on the attribute type, you can edit it by doing one of the following:
l Select the check box to apply the attribute; clear the check box to disable the attribute.
l Click in the field and edit the numeric values or text, and then press Enter.
l Click the button and then edit the current settings in the window or dialog box that appears.
l Click the Value column of the attribute, and then select a new setting from the menu that
appears.
Related Topics
Modifying Objects
Modifying Object Command Properties Using the Properties Window
The Command tab in the Properties window displays information about an action selected in the
history tree that was performed either to create an object, such as the Draw>Box command, or to
modify an object, such as the Edit>Duplicate>Mirror command.
Not all command properties can be modified. The command properties you can typically modify
include the numeric values, such as position values (base position, normal position, start position,
etc.), size values (height, radius, etc.), and various other coordinate values. You can also modify
many of the unit settings for a command property.
1. In the history tree, select the command for which you want to edit its properties.
Hint Press and hold Ctrl to select multiple commands. If you select multiple commands,
only the common, or shared, properties are displayed under the Command tab.
2. Under the Command tab in the Properties window, edit the command's properties.
Depending on the property type, you can edit it by doing one of the following:
l Select the check box to apply the property; clear the check box to disable the property.
l Click in the field and edit the numeric values or text, and then press Enter.
l Click the button and then edit the current settings in the window or dialog box that appears.
l Click the attribute, and then select a new setting from the menu that appears.
Related Topics
Modifying Objects
Modifying Object Attributes using the Properties Window
l Click the Show Progress or Hide Progress buttons on the status bar:
When more than one progress bar is active, the top progress bar is represented on the status
bar with a progress indicator.
Related Topics
l For Time Decomposition Method (TDM) analyses, invoking Clean Stop stops the analysis
after completion of the current time subdivision, instead of after completion of the current time
step. As a result, continuation of the solution process will start from the next time subdivision
after clicking Analysis. In such a case, the stop time cannot be modified when TDM is used.
l When Clean Stop is invoked for projects in which a TDM transient source design is linked to a
transient target design, after completion of the source design the solution process can
continue from the target design. In such a case, the target design must be non-TDM.
While a distributed analysis is running, you can access parent and child progress bars. By
default, only the main progress bar is displayed, while the child progress bars (or subtasks)
remain hidden. You can toggle between showing and hiding the child progress bars.
To show the child progress bars:
l Right-click the progress window, and select Show Subtask Progress Bars.
To hide the child progress bars:
l Right-click the progress window, and select Hide Subtask Progress Bars.
A check box appears next to this command if the Message Manager is visible.
l Click the Show Messages or Hide Messages buttons on the Status bar. The number of
messages currently in the Message Manager is also shown in the button.
If you right click in the Message Manager window, you see a popup menu that lets you:
l Clear the messages for the current model.
l Copy the messages to the clipboard. This can be helpful for sending the messages to
application engineers.
l Details. This brings up a information dialog with the project and design for specific message.
After you run a validation check, you can right-click on an intersection error message in the Message
window, and select Go to reference from the shortcut menu. This selects the intersecting objects.
Related Topics
You can set the Message Manager to open automatically to show new messages and errors and
warnings.
Related Topics
You can set the Message Manager to automatically be brought up when a new message appears.
1. Click Tools>Options>General Options.
You can set the Message Manager to automatically expand when an item is added to a project.
1. Click Tools>Options>General Options.
2. Under General>Interface Options, select Ensure that new messages are visible in the
Message Window Tree.
3. Click OK.
Copying Messages
The model you draw is saved with the current project when you click File>Save.
Objects are drawn in the Modeler window. You can create 3D objects by using Maxwell's Draw
menu commands, or you can draw 1D and 2D objects and then manipulate them to create 3D
objects. For more information, see Drawing a Model.
You can modify the view of objects in the Modeler window without changing their actual dimensions
or positions. For more information, see Modifying the Model View.
Related Topics
Click on the Wizards icon to view active toolkit wizards in the Wizards view.
To add an existing Wizard, you must activate it by clicking on the Extension Manager icon. This
changes the view to show the installed extensions. If there are many available extensions, you can
either scroll or use the Search field to find the ones you want. Search is not case sensitive. Click the
desired extension to activate it. The extension is loaded and highlighted to show the change in
status. You can unload (deactivate) an extension by clicking on it. In the image below, the Maxwell
extension has been activated, but the HFSS extension is not activated for use.
Click the back arrow icon to return to the ACT Start page,
Click on the icon for the wizard you want to use to open it in the window.
Related Topics
You can perform the following tasks with the history tree.
l Expand or Collapse Groupings in the History Tree
Groups Displays folders for Groups you have created or imported. See Group Commands for
Modeler Objects.
Coordinate Displays all the coordinate systems for the active model.
Systems See Setting Coordinate Systems for more information on this model detail.
Planes Displays the planes for all the coordinate systems. When you create a coordinate
system, default planes are created on its xy, yz, and xz planes.
Lists Displays the object or face lists for the active model. By default, a list called
"AllObjects" appears.
Creating an object list is a convenient way to identify a group of objects for a field plot
or calculation.
Creating a face list is a convenient way to identify a specific set of surfaces for a field
plot or calculation.
See Creating an Object List.
Note While objects created in Maxwell can always be classed in the history tree as either a solid,
sheet, or wire, some imported objects may have mixture of these. Such objects are placed
in an Unclassified folder in the history tree.
You can expand or collapse object groupings in the history tree by left clicking the + or - respectively.
In addition, right-clicking on any group icon opens a pull-down to Expand All groupings or Collapse
All groupings.
Related Topics
A set of History Tree Layout commands lets you organize objects by material, assignment, or by
component definition. By default there is no further organization within groups. You can select Also
Organize Within Groups to extend organize settings within groups.
If the design does not contain material assignments, sheets, components, or groups, the menu items
are disabled. You can access the History Tree Layout commands by clicking Modeler>History
Tree Layout or by right-clicking on the Model icon in the history tree (as shown above). You click on
[-] to close a hierarchy and [+] to open one.
Related Topics
The history tree also lists the history of all commands carried out a model’s objects. This history is
displayed in the order in which it occurred. Note in the above image the expanded air object and its
history of commands.
Selecting a command in the history highlights the object in the Modeler window and shows that
object’s properties (if available) in the docked Properties window. You can look at the fields in the
Properties window to see any editable fields for that command, such as coordinate system, line type,
coordinates, or units.
For some commands, such as Edit>Arrange>Move, or boolean operations, selecting them in the
history tree enables the X (delete) icon on the toolbar and the Edit>Delete menu. In these cases,
you can delete those commands from the history tree as a way of undoing those operations. As an
alternative to deletion, you can check Suppress command in the Properties window for that
command. This undoes the effect of a command on an object without removing it from the History
tree.
Selecting objects in the History tree also selects them in the View window. This can be useful for
complex objects, when it may be easier to find the objects of interest by name or material, if the
object of interest is inside or behind others.
You can use CTLR-click to make multiple selections. You can select a range of objects by a click on
the first, and then SHIFT-Click to select all in the range. You can also click and drag the mouse to
make rubber band selections. Only visible objects are selected. That is, if the hierarchy is closed
under the selection, any operand parts are ignored and do not interfere with cut and paste
operations.
You can also right click on any History tree object or grouping and right click to display a shortcut
menu with a Select All command. This lets you select at one time all solids, sheets, lines, non-model
objects, or all unclassified objects.
Related Topics
If you select particular objects in the history tree, right-click displays a shortcut menu lists the
commands that you can apply to the selected command, object, or objects. The shortcut menus for
model objects are most extensive.
In other cases, you can only view properties, or expand or collapse hierarchy.
Related Topics
Related Topics
The history tree also lists the history of all commands carried out a model’s objects, for example,
“CreateBox” or “Subtract.” This history is displayed in the order in which it occurred. Here is a history
tree from the waveguide combiner example.
Selecting a command in the history highlights the object in the Modeler window and shows that
object’s properties (if available) in the docked Properties dialog. You can look at the fields in the
Properties dialog to see any editable fields for that command, such as coordinate system, line type,
coordinates, or units.
For some commands, such as Edit>Arrange>Move, or boolean operations, selecting them in the
history tree enables the X (delete) icon on the toolbar and the Edit>Delete menu. In these cases,
you can delete those commands from the history tree as a way of undoing those operations. As an
alternative to deletion, you can check Suppress command in the Properties window for that
command. This undoes the effect of a command on an object without removing it from the History
tree.
Related Topics
To control the view and visibility of an object such as a box or PML, right click on an object in the
history tree display the short-cut menu and select View. The short cut menu contains the following
commands:
l Fit in Active View
Related Topics
Purge History
Generate History
By right-clicking on an operation icon in the history tree in the Modeler window, you can see the
Upgrade Version command.
The Modeler by default opens the legacy project in previous (what ever that the project was saved
with) ACIS version so that you don't see side effects of slight topology changes between ACIS
versions. If you want you can use Upgrade Version to move the operation to use latest ACIS code.
Typically this applies when a needed fix is available with new ACIS version.
Related Topics
l Alt + Double-click LMB: Sets model projection to standard isometric projections (cursor must
This switch takes effect only after the drawing of an object has started.
l F6: Render model wire frame
Related Topics
Command-line syntax
ansysedt <options> <run command> <project name/script name>
Run Commands
The following command line run commands are available in ANSYS Electronics Desktop. Of
the commands (BatchSave, BatchSolve, BatchExtract, RunScript, RunScriptandExit), one or
none must be used as arguments after ansysedt. Links to the valid options for each run
command are listed and/or linked to descriptions.
-BatchSave <project file name>
Saves a named project to the current version. This is primarily intended for converting projects
to the current software version from a previous version. Generally, conversion is supported for
the previous two releases of the product. The conversion must be done under Windows
before those projects can run on a Linux system.You can run this command with the -Iconic
option, the -Logfile option, and the -ng option (no graphics).
By default, solve all adaptive setups, sweeps, as well as Optimetrics setups found in the
project file. If parallel solve is possible, you can use the -Distribute option in conjunction with -
BatchSolve. You can run this command with the -Iconic option, the -Logfile option, the - ng
option (no graphics), and the -WaitForLicense option.
Additional parameters for batch solves include the following. It is good practice to put quotes
around the path to the Maxwell executable, and the full path to the project. This ensures that
spaces in the path or project will not be an issue. The same is true of the design name, if there
are indeed spaces. The quotes must enclose the entire argument including the Nominal or
Optimetrics part.
[designName] - batch solve all setups for design with the name given under the project.
[designName]:Nominal - batch solve all nominal setups for design with the name given
under the project.
[designName]:Optimetrics - batch solve all Optimetrics setups for design with the name
given under the project.
For -Remote, you should provide a machine list with a single hostname.
-Distributed takes optional arguments which modify the job distribution parameters. When
the optional parameters are not present, the behavior is single level distributed solves with no
change in order of precedence among possible distribution types.The optional parameters
are:
See the Job Distribution tab in the Analysis Configuration dialog or the -help text for valid
values for job distribution types.
The -Machinelist command line option is used to specify the DSO Machines. This command
line option is only meaningful if either -Remote or -Distributed is specified. There are three
different formats for the -Machinelist command line option. The different formats are
described below.
In this format, the DSO machines machine1,machine2,... are listed explicitly on the command
line. The machine names must be separated by commas. The machines may be specified by
IP address or by hostname, provided that the hostnames are able to be resolved on the
Desktop host. If the list contains any whitespace, it must be enclosed in quotes. The number of
distributed COM engines run on each host is equal to the number of times that the hostname
appears in the list. That is, if host1 appears in the list once, and host2 appears in the list twice,
then one COM engine will run on host1 and two COM engines will run on host2.
For example:
list="Orion:4:8, Aries:3:12, Pluto:6:12"
With this form, duplicate machine names are not allowed, and the number of cores must be
greater than the number of tasks.
In this format, the DSO machines are listed in a file. The machine names are listed in the text
file, one hostname per line. The pathname of the file is file_path_name. The machines may be
specified by IP address or by hostname, provided that the hostnames are able to be resolved
on the local host. The number of distributed COM engines run on each host is equal to the
number of times that the hostname appears in the list. That is, if host1 appears in the list once,
and host2 appears in the list twice, then one COM engine will run on host1 and two COM
engines will run on host2.
file=<machine list file path> will also accept machine specifiers in the specified file using the
format.
For example:
"Orion:4:8, Aries:3:12, Pluto:6:12"
With this form, duplicate machine names are not allowed, and the number of cores must be
greater than the number of tasks.
You can use either form of the -MachineList option to indicate the machine(s) on which to run
a distributed batchsolve. The settings persist only for the current session.
When you use a file to define the machines available for a distributed solve you should list the
machine addresses or names on separate lines:
192.168.1.1
192.168.1.2
(etc)
The "-machinelist num=n" option is now required for batch jobs. This format is used when a
scheduler (such as LSF, PBS, SGE or Windows HPC) is used to manage the jobs sent to a
cluster of hosts. In a scheduler environment, you can specify the number of distributed
engines that should be used for distributed processing. In this case, you do not specify the
machine names after the flag because the names are provided by the scheduler. For example,
in the Windows HPC environment, you can write the number of distributed engines as follows.
-machinelist num=4
The COM engines will be distributed across the hosts
allocated to the job by the scheduler.
-batchoptions“'<option1>' '<option2>'...”
All options that are specified through Tools>Options dialogs go to the user-level registry.
You can override such registry entries via the -batchoptions command line. These overrides
apply only to the current Desktop session. This feature is available for all desktop products.
The registry setting overrides may be specified on the command line, or may be in a file with
the file pathname specified on the command line. The -batchoptions command line option is
only valid for batch jobs; it is ignored if neither -BatchSolve nor -BatchSave command line
options are specified.
A new batch solve option “CreateStartingMesh” for all 3D products (HFSS, HFSS-3DLayout,
Q3D, Q2D, Maxwell3D and Maxwell2D). When this option is set, only the initial mesh and
manual mesh operation making portion of the setup are completed for the batch solve.
For more information, see Examples and Further Explanations of -batchoptions use.
This command allows the following commands to be executed non-graphically via script and
without checking out any GUI licenses: ExportProfile, ExportConvergence, ExportMeshStats,
ExportSolnData, ExportCircuit, Update Reports, ExportToFile. A project file must be specified
when the command line option BatchExtract is used. This means that commands in the
<batch extract script file> will only be executed in the specified project. The “open/close”
project commands are not supported in BatchExtract mode.
Examples:
-Monitor
You can monitor progress and messages on standard output, during non-graphical analysis.
Progress, warning and info messages are logged to the standard output stream. Error and
fatal messages are logged to the standard error stream. Schedulers intercept these streams
and provide commands for display of this output - see individual scheduler documentation for
specifics.
Examples:
C:\Maxwell\ansysedt.exe -distributed
-machinelist list="192.168.1.1,192.168.1.2"
-batchsolve design_transient:Optimetrics "C:\distrib_
project.adsn"
Run the specified script. You can use the -ScriptArgs option to add one or more arguments
to this command and can use the -Iconic option.
Run the specified script and exit. You can use the -ScriptArgs option to add one or more
arguments to this command. You can also use the -Iconic option, the -Logfile option, and the
-WaitForLicense option. The '-BatchSolve <DesignName>' is mutually exclusive with '-
RunScriptAndExit <ScriptName>'.
<none>
If you do not specify a run command with maxwell on the command line, you can still specify
the -Help and -Iconic options.
<project file>
Open the specified project on start up. If -BatchSolve is also set, the project will be solved.
You can specify an archive file instead of a project file. If -Batchsolve is set, the project will be
automatically restored and solved. Otherwise, you are prompted for a restore location, and the
project will be restored and opened. Also see -archiveoptions below.
-archiveoptions
overwritefiles
Allow non project/results extracted files to overwrite existing files.
path=<projectfilepath>
Extract project file to <projectfilepath> and other files into the same directory. If path is not
specified, the archive will be extracted into the same directory as the archive file.
Options
The following options can be associated with one or more of the run commands:
-batchoptionhelp
Distribute a batch solve to multiple machines. This option must be combined with the -
BatchSolve run command and must be specified before it in the command line. See
Distributed Analysis for more information on distributed analysis.
Example:
E:\Program Files\AnsysEM\AnsysEM18.0\Win64\ansysedt.exe
-distribute -batchsolve
MaxwellDesign1:Optimetrics:ParametricSetup1 "C:\Project1.aedt"
-Help
Open a window that displays the different command-line options. This is only used when none
of the four run commands is used.
E:\Program Files\AnsysEM\AnsysEM18.0\Win64\ansysedt -help
-Iconic
Run Maxwell with the window iconified (minimized). This can be used with all or none of the
run commands.
-ng
-WaitForLicense
-ScriptArgs <scriptArguments>
ScriptArgs looks at the single argument after it and uses those as script arguments. You can
pass multiple arguments to scriptargs by surrounding the script arguments in quotes.
For instance:
ansysedt -scriptargs "MaxwellDesign1 Setup1"
-RunScriptAndExit c:\temp\test.vbs
Here, MaxwellDesign1 is taken into Maxwell as the first argument, and Setup1 is the second
argument. Without the quotes, MaxwellDesign1 is taken as the first argument, and Setup1 is
not understood by Maxwell.
ansysedt -scriptargs MaxwellDesign1 Setup1
-RunScriptAndExit c:\temp\test.vbs
Example:
c:\maxwell\ansysedt.exe -runscriptandexit "c:\project1.vbs"
-scriptargs "Setup1"
Example:
C:\maxwell\ansysedt.exe -RunScriptAndExit
C:\scripts\test.vbs -scriptsargs "arg1 arg2 arg3"
Settable Desktop Settings for -batchoptions Use
For -batchoptions Use: Project Directory and Lib Paths
For -batchoptions Use: TempDirectory
For -batchoptions Use: Various Desktop Settings
For -batchoptions Use: Maxwell2D and Maxwell3D Options with Paths
Batch Options Command Line Examples
The Tools>Options>Export Options Files command writes xml files containing the Options settings
at all levels to the specified directory. The Tools>Options>Export Options feature is intended to
make it easier for different users to use ANSYS Electromagnetics Suite installed on shared
directories or network drives. The Example Uses for Export Options Features section outlines some
use cases enabled by this feature.
Related Topics
Running a Script
l The -batchoptions value must be enclosed in double quotes if it contains any whitespace
Example with registry settings specified in a file
maxwell.exe -batchsolve -batchoptions filename
projectname.aedt
where file filename contains:
$begin 'Config'
'Desktop/Settings/ProjectOptions/NumberOfProcessors'=4
'Maxwell/NumCoresPerDistributedTask'=2
'Desktop/ProjectDirectory'='C:/projects/test'
$end 'Config'
This command line overrides the values of the
Desktop/Settings/ProjectOptions/NumberOfProcessors and Desktop/ProjectOptions registry
settings. These overrides apply only to the current Maxwell session.
Note l The -batchoptions filename value must be enclosed in double quotes if it contains
whitespace
l The $begin 'Config' and $end 'Config' lines are required
-batchoptions and Relative Registry Paths
When you use the -batchoptions command line option, the registry paths specified on the command
line or in the batchoptions file are relative paths. The paths are relative to the current version of the
current product. If the examples above are used with Maxwell 2015, then the following table shows
the relative and absolute paths of the registry overrides in the above examples.
For additional options and paths for use with -batchoptions, see
For -batchoptions Use: Project Directory and Lib Paths
For -batchoptions Use: TempDirectory
For -batchoptions Use: Various Desktop Settings
For -batchoptions Use: Maxwell2D and Maxwell3D Options with Paths
When to use the -batchoptions Desktop Command Line Option
Many analysis parameter settings may be done using the GUI. For example, a number of Maxwell
options may be set using the Add Batch Option dialog box which is brought up through the Submit
Job To dialog. These parameter settings include the following solver options (not a complete list):
l tempdirectory
l DesiredRAMLimitInGB
l MaxRAMLimitInGB
l DefaultProcess Priority
The values of these parameters are saved in the registry when Maxwell is not running.
When running a batch analysis, these parameters take the values from the registry.
The -batchoptions Desktop command line option allows you to override the parameter values set in
the registry with values specified on the command line or in a file. The values specified using the -
batchoptions command line option only apply to the batch job, and do not affect the parameter
values in the registry. For example, you could specify the following command to ensure that this
analysis uses 2 processors for distributed processing and 2 processors for non-distributed
processing. If the -batchoptions value is not specified, then the number of processors for
distributed processing or for non-distributed processing could be affected by an interactive Maxwell
job running on the same host as the same user.
"E:\Program Files\AnsysEM\AnsysEM18.0\Win64\ansysedt.exe"
-distributed includetypes=default maxlevels=1
-machinelist num=4 -monitor -ng
-batchoptions " 'Maxwell 3D/DefaultProcessPriority'='Normal'
'Maxwell 3D/DesiredRAMLimitInGB'=8
'Maxwell 3D/HPCLicenseType'='Pool'
'Maxwell 3D/MPIVendor'='Intel'
'Maxwell 3D/MaxRAMLimitInGB'=16
'Maxwell3D/NumCoresPerDistributedTask'=2
'Maxwell 3D/NumCoresPerDistributedTask'=2
-batchsolve E:\Users\jdoe\Documents\Ansoft\solenoid.aedt
Units or
Path Name Default Value Description
Values
Desktop/ProjectDirectory Ansoft subdirectory of user's Directory Directory where new
HOME directory or "My pathname projects are created
Documents" directory
Desktop/PersonalLib PersonalLib subdirectory of Directory Directory PersonalLib is
user's HOME directory or "My pathname appended if final directory
Documents" directory is not PersonalLib
Desktop/syslib syslib subdirectory of Directory Directory syslib is
installation directory pathname appended if final directory
is not syslib
Desktop/userlib userlib subdirectory of Directory Directory userlib is
installation directory pathname appended if final directory
is not userlib
Related Topics
Related Topics
Defa
ult Units or
Path Name Description
Valu Values
e
Desktop/Settings/ProjectOptions/AnimationMemory 200 Stop animations when
Megaby available memory falls
tes below this value
(MB)
Desktop/Settings/ProjectOptions/AnsoftCOMPreferre "" IP IP Address used to
dIPAddress (emp Address connect from COM
ty (as a Engine to Desktop
strin string)
g)
Desktop/Settings/ProjectOptions/AnsoftCOMPreferre "" Subnet Specify the subnet that
dSubnetAddress (emp address engines use to connect
ty to the Desktop. Allowed
strin formats are:
g) 1) IPv4 dotted decimal
network prefix
[example:
123.123.123.0] ,
2) IPv4 network prefix
and network mask
separated by a slash
character "/" [example:
123.123.123.0/255.255
.255.0], or
3) IPv4 network prefix
and prefix length in
CIDR notation
Defa
ult Units or
Path Name Description
Valu Values
e
[example:
123.123.123.0/24]
Desktop/Settings/ProjectOptions/AutoSaveInterval 10 edits Number of edits to allow
between autosaves
Desktop/Settings/ProjectOptions/AutoShowMessage 1 0 (false) Show message window
Window (tru or 1 on new messages
e) (true)
Desktop/Settings/ProjectOptions/AutoShowProgress 0 0 (false) Show progress window
Window (fals or 1 when starting a
e) (true) simulation
Desktop/Settings/ProjectOptions/DiskLimitForAbort 0 A warning is issued
Megaby when available disk
tes space falls below this
(MB) value
Desktop/Settings/ProjectOptions/DoAutoSave 1 0 (false) Enables autosaves if
(tru or 1 true
e) (true)
Desktop/Settings/ProjectOptions/DrawStateIconsInPr 1 0 (false) Change icon when
ojectTree3 (tru or 1 selection does not
e) (true) match active window
Desktop/Settings/ProjectOptions/ExpandMessageTre 1 0 (false) Ensure that new
eOnInsert (tru or 1 messages are visible in
e) (true) the message window
tree
Desktop/Settings/ProjectOptions/ExpandOnInsert 0 0 (false) Expand project tree on
(fals or 1 insert
e) (true)
Desktop/Settings/ProjectOptions/HighlightActive 1 0 (false) Emphasize active
ContextInProjectTree2 (tru or 1 command context
e) (true) (menu and toolbars)
Desktop/Settings/ProjectOptions/SavePreviewImages 1 0 (false) Save preview images in
InProject (tru or 1 project file
File e) (true)
Desktop/Settings/ProjectOptions/UpdateReportOnFile 0 0 (false) Update reports on file
Open (fals or 1 open
e) (true)
Related Topics
Default
Path Name Units or Values Description
Value
Maxwell2D (or "pack" "pool" or "pack" For Maxwell2D Designs: "pool" =
3D)/HPCLicenseType multiprocessing enabled by HPC
licensing; "pack" = multiprocessing
enabled by HPC Pack licensing
Maxwell2D (or 0 (No GB This setting specifies the absolute
3D)/MaxRAMLimitInGB Limit) maximum memory usage in GB. Type:
Floating Point, Min: 0, Max: 1000000.
Maxwell2D (or 0 (No GB Preferred memory use in GB. Type:
3D)/DesiredRAMLimitInGB Limit) Floating Point, Min: 0, Max: 1000000.
Maxwell2D(or Normal Allowed values: Specifies the default priority of
3D)/DefaultProcessPriority "Critical", "Above distributed tasks.
Normal",
"Normal", "Below
Normal", "Idle"
Maxwell2D(or 1 Allowed values: 0 If true, only the adaptive portion of the
3D)/SolveAdaptiveOnly (false), 1 (true) setup will be solved. Applies only if a
single setup is selected.
Maxwell2D(or 0 Allowed values: 0 If true, the starting mesh (with mesh
3D)/CreateStartingMesh (false), 1 (true) operations if applicable) will be created,
but none of the setup will be solved.
Applies only if a single setup is selected.
Related Topics
l Remote OpenGL performance will be slower in general. Graphics card and driver quality
helps.
l All 3D windows will be closed when you switch from remote PC to a console or from a console
highlights on 2D plots may appear as not totally overlapping the line color or as thin dotted
lines.
Related Topics
Remote Analysis
Modifying the Model View
Related Topics
3 - Getting Help
ANSYS Technical Support
For information about ANSYS Technical Support, go to the ANSYS corporate Support website,
www.ansys.com/Support. You can also contact your ANSYS account manager to obtain this
information.
E-mail can work well for technical support. All Maxwell software files are ASCII text and can be sent
conveniently by e-mail. When reporting difficulties, it is extremely helpful to include very specific
information about what steps were taken or what stages the simulation reached. This allows more
rapid and effective debugging.
l Maxwell Getting Started Guides opens to a list of links to the Maxwell Getting Started
Guides. These Getting Started Guides walk you through projects that demonstrate features of
the product solvers.
l Maxwell PDFs opens a menu that links to PDFs for Maxwell Help, Maxwell Scripting, and
Maxwell Getting Started Guides. These PDFs provide a format and function that is better
suited for printing. For example, you can print ranges of pages encompassing topics and
subtopics as needed.
l Maxwell Components is enabled when you insert a Maxwell Circuit design into the active
project, and opens the Maxwell Components help to a section that pertains to the component
type.
l ANSYS Customer Support opens a browser page to the ANSYS Customer Portal. At the
website you can learn more about ANSYS products and services and log on to contact
ANSYS technical support staff.
l What’s New in this Release opens a PDF that describes What’s New in ANSYS
Improvement Program option. You can choose "Yes, I am willing to participate in the
ANSYS Product Improvement Program" or "No, I am not willing to participate." This dialog
describes the program, the information that is reported, and customer privacy protections.
Note You can disable the ANSYS Product Improvement Program for all users so that
each user is not prompted to enable the Program when they first start Electronics
Desktop. To do this, after installing the software, run the following command as a
user with permissions to modify the installed fileset, replacing [2017.1] with the
version number:
F1 Context-Sensitive Help
To access F1 help from the ANSYS Electronics Desktop user interface, do one of the following:
l To open a help topic about a menu option, hover the cursor over the item and press F1. You
Related Topics
Scripting in Maxwell
- Keyboard entries that should be typed in their entirety exactly as shown. For example, "copy
file1" means to type the word copy, to type a space, and then to type file1.
- On-screen prompts and messages, names of options and text boxes, and menu commands.
Menu commands are often separated by carats. For example, click File>Open.
- Labeled keys on the computer keyboard. For example, "Press Return" means to press the
key labeled Return.
l Italic type is used for the following:
- Emphasis.
- The titles of publications.
- Keyboard entries when a name or a variable must be typed in place of the words in italics.
For example, "copy file name" means to type the word copy, to type a space, and then to type
a file name.
l The plus sign (+) is used between keyboard keys to indicate that you should press the keys at
the same time. For example, "Press Shift+F1" means to press the Shift key and the F1 key at
the same time.
l Toolbar buttons serve as shortcuts for executing commands. Toolbar buttons are displayed
after the command they execute. For example,
"On the Draw menu, click Line " means that you can click the Draw Line toolbar button to
execute the Line command.
tab. The table of contents is an expandable list of important topics. You can expand or collapse
the list, and then jump to detailed information for a topic by clicking the topic title.
l A searchable index - you can search for indexed terms by typing the text field, and jump to
according to rank in discussing the search text. For more information, see Using the Search
Function in the Help.
l If you used F1 to access the help for a specific product, the search box permits searches
for that product only.
Notes
l Searches are not case sensitive, so you can type your search in uppercase or lowercase
characters.
l You may search for any combination of letters (a-z) and numbers (0-9).
l Punctuation marks (other than the question mark) such as the period, colon, semicolon,
Using WebUpdate
Automatic updates for ANSYS Electronics Desktop, which includes Maxwell and RMxprt, are
available over the Web.
To control the timing of automatic Web updates, use the Web Update panel under General on the
Options dialog box. See Web Update Options for details.
l Admin Directory
l Customer Number
l FLEXlm Version
l Redirect Info
Maxwell Files
When you create an ANSYS Electronics Desktop project, it is given an .aedt file extension and
stored in the directory you specify. Any files related to that project are also stored in that directory.
Some common file and folder types are listed below:
Creating Projects
1. Click File>New .
A new project is listed in the project tree. It is named Projectn by default, where n is the order in
which the project was added to the current session.
Project definitions, such as material assignments, are stored under the project name in the
project tree.
2. Click Project>Insert Maxwell (2d or 3D) Design.
You specify the name of the project when you save it using the File>Save or File>Save As
commands.
l 3D model to 2D RZ model
You must keep the following points in mind before you convert any project:
l A 2D design is created in the same project.
l All 3D geometry is used, you cannot select which geometry to include in the conversion.
l If there are any sheet objects in 3D, only those sheets that lie in the same plane as the section
Related Topics
Converting a 3D Model to 2D
Converting a 3D Model to 2D
To create a 2D design from an existing 3D design:
1. Click Maxwell3D>Create 2D Design.
The Create 2D Design dialog box appears.
2. Select the Coordinate System to be used for creating sections in the 3D model.
3. Choose the Section Plane within the chosen coordinate system. You can choose XY, YZ, or
ZX.
4. Select the Geometry Mode, to use for the target 2D design. You can choose either XY or RZ.
Related Topics
Creating a Cross-Section
l 2D RZ model to 3D model
You must keep the following points in mind before you convert any project:
l A 3D design is created in the same project.
l All 2D geometry is used, you cannot select which geometry to include in the conversion.
Related Topics
Converting 2D XY Model to 3D
Converting 2D RZ Model to 3D
Converting 2D XY Model to 3D
To create a 3D design from an existing 2D XY design:
1. Click Maxwell2D>Create 3D Design.
The Sweep Along Vector dialog box appears.
2. Enter a value in the Length along z-axis box to obtain a swept length of the model.
3. Choose the desired Dimension of the sweep distance entered from the pull-down menu.
4. Click OK to create the 3D design.
The modeler creates a new design within the current project and generates the 3D model within the
new design. All material properties and material assignments are copied to the new design.
Related Topics
Converting 2D RZ Model to 3D
To create a 3D design from an existing 2D RZ design:
1. Click Maxwell2D>Create 3D Design.
The Sweep Around Z Axis dialog box appears.
2. Enter the Angle of Sweep to obtain a full 360° 3D-model or a wedge model to a selectable
degree.
3. Enter the desired Draft Angle and Draft Type.
Note Entering a draft angle for a model where objects touch the z axis results in a error
due to an invalid object being requested. Draft angles may only be used when no
objects are touching the z axis.
4. Enter the Number of Segments to use in creating the 3D model. If you do not change the
default value (=0), the project will be created with true surfaces.
5. Click OK to create the 3D design.
The modeler creates a new design within the current project and generates the 3D model within the
new design. All material properties and material assignments are copied to the new design.
Related Topics
Opening Projects
Open a previously saved project using the File>Open command.
1. Click File>Open.
The Open dialog box appears.
2. Use the file browser to find the Maxwell project file.
By default, Maxwell files are displayed. To see other files, change the file filter in the Files of
type pull-down list.
3. Select the file you want to open.
4. Click OK.
The project information appears in the project tree.
If you open another project without editing the automatically-created project, Maxwell removes
the automatically-created project.
You can also open a saved project by:
l Dragging a Maxwell project file icon to the Maxwell icon.
Related Topics
Related Topics
Example Projects
Note If you open another project without editing the automatically-created project,
Maxwell removes the automatically-created project.
Following are additional notes about the translation of legacy project information:
Saving Projects
Use the File>Save As command to do the following:
l Save a new project.
Related Topics
Related Topics
Related Topics
Related Topics
Related Topics
Renaming a Project
To rename an existing, active project:
1. Select the project in the Project tree.
2. Right-click to display the short-cut menu.
3. Select Rename.
This activates the text field for the project name.
4. Type the new project name and press enter.
The new project name appears in the directory and the project remains in the original location.
Warning When you close or rename a project, ANSYS Electronics Desktop deletes the auto-save
file. ANSYS Electronics Desktop assumes that you have saved any desired changes at
this point.
Related Topics
Following a sudden workstation crash or other unexpected problem, you can recover the project
data in its auto-save file.
Warning When you recover a project's auto-save file you cannot recover any solutions data;
recovering an auto-save file means you will lose any solutions data that existed in the
original project file.
To recover project data in an auto-save file:
1. If ANSYS Electronics Desktop has crashed, launch ANSYS Electronics Desktop from your
desktop.
2. Click File>Open.
3. Select the original Projectn.aedt project file for which you want to recover its Projectn.aedt
.auto auto-save file.
The Crash Recovery dialog box appears, giving you the option to open the original project file
or the auto-save file.
4. Select Open project using autosave file to recover project data in the auto-save file,
and then click OK. Maxwell replaces the original project file with the data in the auto-save
file.
ANSYS Electronics Desktop immediately overwrites the original project file data with the auto-
save file data, removing the results directory (solutions data) from the original project file as it
overwrites to the auto-save file.
Warning If you choose to recover the auto-save file, you cannot recover the original project file
that has been overwritten; recovering data in an auto-save file is not reversible.
Related Topics
Archiving Projects
Use the File>Archive... command to “bundle” a project – and any other files related to the project
that you want to include – in an .mxwlz file or .zip format archive. You can include notes about the
contents of the archive and specify whether to include results and solution files, or related external
files. The Archive command attempts to automatically detect the necessary files for linked projects
and automatically include them in the archive. For example, if a project linked to the main project also
has linked or associated files, you can add them.
Archive Preview
The Archive command includes a preview feature that lets you review the contents of a planned
archive.
To archive the current project:
1. Click File>Archive...
Archive notes: you can specify notes that will be visible when previewing the archive. These
notes can be viewed from the preview dialog without actually restoring the archive.
External Files: selecting this check box will cause all external files to be included in the
archive. The External Files check box refers to any existing files associated with the project,
such as linked files, or files added through the Project>Insert Documentation File
command or Project>Data Set command.
Results/solution files: selecting this check box will cause the entire results directory to be
included in the archive. This may greatly increase the size of the archive file.
Clicking Additional Files... opens the Add Additional Files to Archive dialog.
Here, you can click Add... to open a file browser to locate any additional files (such as
documentation files or datasets) you want to include in the archive. You can also select and
then Remove any files listed, and OK or Cancel any proposed changes.
2. Select any optional items, and make any desired archive notes in the text field.
3. When you have made your selections for optional items, you can select Preview Archive to
look at the archive contexts, and the locations where restoring from the archive would place
them.
Check the Results/solution option if you want to archive those files. Below is a preview
showing some included results files.
To read longer locations, you can drag the column headers to expand the columns. Use the
scroll bar to view longer lists.
Previewing an archive before creating the archive can be helpful in order to see exactly what
files will be included in an archive, as well as how those files are being relocated. Another
purpose of previewing an archive is to view warnings and consider if any additional files need
to be added to the archive.
The preview dialog also displays the archive notes, creation date, and the number of included
files.
4. When you are ready to create the archive, close the preview, and specify the format you want
to use, .mxwlz or .zip, and specify the archive location and name. Click OK to create the
archive.
Related Topics
Restoring Archives
Restoring Archives
To restore an existing archive created with File>Archive:
1. Click File>Restore Archive
This displays an Archive to Restore browser window that lets you navigate your file system
for archive files of type .mxwlz or .zip.
2. After selecting a valid archive file, you can click View Archive to preview the contents.
The preview dialog shows the same warnings that were generated at archive time. These
warnings may be useful to identify additional steps that are needed to update any files to refer
to files which had to be manually added to the archive.
3. Click Open to display a Project File Restore Location browser and navigate to the place
where you want to restore the file.
You can edit the file name, and check options to Overwrite existing files and to Open
project after restoring.
4. Click Save to restore the archived file. A dialog displays progress and results of the restoration
process.
A full log file is also generated which contains detailed information about the restore process.
The first line in the text window displays the location of the full log file. After the restore has
been completed, you can click View Full Log to display a detailed log of the restoration.
Related Topics
Archiving Projects
Here you specify a User ID, Password, and Server address. You can then browse for and select the
files needed.
For File Libraries Access, click File>Download From Server>Other Files...
This opens the File Library Access dialog.
Here you specify a User ID, Password, and Server address. You can then browse for and select the
files needed.
Closing a Project
To close a Maxwell or RMxprt project:
l Click File>Close.
If the project has not been saved since the last change, a message appears asking if you want to
save the project before closing it. Do one of the following:
l Click Yes to save the project.
Deleting Projects
To delete a project:
1. Select the project in the project tree.
2. Click either Edit>Delete, or right click to display the short-cut menu and select Delete.
A dialog displays the message: "The project selected and all its files will be deleted from the
permanent storage medium. Click OK to proceed."
3. Click OK to delete the files or Cancel to retain them.
l Click File>Exit.
Undoing Commands
Use the Undo command on the Edit menu to cancel, or undo, the last action you performed on the
active project or design. This is useful for undoing unintended commands related to project
management, model creation, and post-processing.
1. In the Project Manager window, do one of the following:
l To undo the last action you performed on the active project, such as inserting a design or
Related Topics
Redoing Commands
Redoing Commands
Use the Redo command on the Edit menu to reapply, or redo, the last action that was canceled, or
undone. You can redo a canceled action related to project management, model creation, and post-
processing.
1. In the Project Manager window, do one of the following:
l To redo the last action you canceled on the active project, such as inserting a design or
Related Topics
Undoing Commands
3. Click Apply.
A warning message appears, telling you that the undo/redo history will be cleared for the
project.
4. Click OK to continue, or click Cancel to cancel the deletion.
5. When you are finished removing components, click OK to close the Unused Definitions
dialog box.
3. From the Show Types list in the List Options section, select the types of definitions you want
to show in the Item List list.
4. Select the item you want to update from the Item List list.
5. Click the Select All or Unselect All buttons to select or clear all items listed.
6. Click Update.
A message appears telling you the update was successful. Click OK to close the message.
7. When you are finished updating definitions, click Close.
1. Select a project or design in the project tree in Project Manage Window to enable the menu
command Edit>Copy.
2. Click Edit>Copy. The project or design is copied for pasting.
To paste a project or design:
1. Select a project or design in the project tree in Project Manage Window to enable the menu
command Edit>Paste.
2. Click Edit>Paste. The project or design is pasted under the selected project, an icon is added
to the project tree.
Validating Designs
Before you run an analysis on a model, it is very important that you first perform a validation check on
the design. When you perform a validation check on a design, Maxwell runs a check on all setup
details of the active design to verify that the necessary steps have been completed and their
parameters are reasonable.
To perform a validation check on the active design:
1. Click Maxwell3D or Maxwell2D, and then select Validation Check.
Maxwell checks the project setup, and then the Validation Check window appears.
2. View the results of the validation check in the Validation Check window.
The following icons can appear next to an item:
Related Topics
Exporting Files
You can export the following types of files from Maxwell:
l Ansoft 2D modeler files
l 3D model files
l Graphics files
Related Topics
Related Topics
Note If you want to export a plane that does not coincide with the global xy plane, you must
create a relative coordinate system to redefine the location of the origin.
See Creating a Relative Coordinate System for more information.
To export a file to a .dxf format:
1. Click Modeler>Export.
The Export File dialog box appears.
2. Use the file browser to find the directory where you want to save the file.
3. Type the name of the file in the File name box.
4. Select AutoCAD DXF Files(*.dxf) from the Save as type pull-down list.
5. Click Save. The file is exported to the specified location as a .dxf file.
Related Topics
4. Select the desired 3D model file format from the Save as type pull-down list.
Extension Contents
.sat ACIS geometry solid model files.
.sm3 Ansoft 3D Modeler files in ACIS version 2.0 or greater.
.dxf AutoCAD Drawing Interchange Format files. The.dxf export now includes true
arc support, closed wires, and more precise ellipses and splines.
.model, .model - CATIA 4.1.9 to 4.2.4
.exp .Catia V4 Export Files
.gds GDSII files
.iges, .igs Industry standard Initial Graphics Exchange Specification (IGES) files. AN
additional license is required.
.x_b, .x_t Parasolid Binary Files.
Parasolid Text Files
.sab Standard ACIS binary.
.step, .stp Industry standard AP203 STEP files. An additional license is required.
5. If you selected .sm3, the Select Version dialog box appears. Do the following:
l Click an ACIS version in which to export the model from the ACIS SM3 Version pull-down
table, with columns for Layer Name, Layer Number, Elevation in units. There is a check box
to specify whether to include the layer in the exported file.
l If you have defined a layer map file for the model, the Layermap button opens a browser
for you to open that file before export. The *.layermap file is a text file that maps the GDSII
layer numbers to layer names in the stackup. The *.layermap file can have the same format
as the .tech file used in GDSII import, but it only needs the layer name and number in the
file. In a *.layermap file, other information is ignored.
l In the Polygon Vertices area, check a radio button to select either No Limit to the number
7. Click the OK button in the GDSII Export dialog to complete the export. The file is exported to
the specified location.
Related Topics
Related Topics
menu.
The Export plot data to file dialog box appears.
2. Use the file browser to find the directory where you want to save the file.
3. Type the name of the file in the File name box.
4. Select one of the following file formats from the Save as type pull-down list:
Extension Contents
.txt Post processor format file
.csv Comma-delimited data
file
.tab Tab-separated file
Extension Contents
.dat Ansoft plot data file
5. Click Save. The file is exported to the specified location as a data table file.
Importing Files
You can import the following types of files to Maxwell:
l 2D model files
l 3D model files
Related Topics
Exporting Files
Related Topics
5. Select the desired check boxes in the GDSII structures section of the dialog box.
GDSII Structures Panel:
The GDSII file may contain several top-level structures. You can do one of the following:
l Click a structure name in the GDSII Structures panel to highlight it.
l Clicking the Select check box in the GDSII Structures panel highlights the structure and
7. In the Layers for structurename section, view the layers for the top-level structure.
Layers for structurename Panel:
The Layers for structurename panel shows the layers for the most recently highlighted top-
level structure [structurename]. GDSII layers are identified by layer numbers.
8. In the All GDSII Layers section, select the layers you want to import.
All GDSII Layers Panel:
The All GDSII Layers panel lists all the layers from all the structures in the file.
Use the Import Layers check boxes in the All GDSII Layers panel to select the layers to
import. You can drag and drop the layers in the list to change the vertical stackup of layers.
9. In the Convert Nodes to section, convert or ignore objects that use the "nodes" data type.
Convert Nodes to Panel:
GDSII supports nodes and boundaries as separate data types. Normally, boundaries
represent polygons. Maxwell can do one of the following: Convert objects that use the nodes
data type to boundary types, or ignore them. You can do one of the following:
l Use the Convert Nodes to radio buttons to select Boundary or Ignore. The default is to
If desired, you can create a mapping of the GDSII layer numbers to layer names in the design
stackup. To create and use the mapping, do the following:
l Use a text editor to create a text file that maps the GDSII layer numbers to layer names in
the stackup. The layer mapping file must have a .tech suffix. The format of a .tech format
layer mapping file lists includes the layer number and corresponding layer name, color,
elevation, and thickness. For example, a layer mapping file may look like the following:
l Click the Open button in the Layer Mapping File section to locate and open an existing
layer mapping file.
11. When you are finished viewing and selecting options in the GDSII Import dialog box, click
OK.
The file is imported into the active Modeler window.
Related Topics
can choose between Quick for faster import, or for Strict healing, which you can specify as
Auto or Manual. See the table below and Healing an Imported Object.
l For ProE files, you can enable the Import Free Surfaces option. This imports such
surfaces as well as parts.
l For Natran and STL files, you can set the Model Resolution Length in Model Units, or
accept the auto setting.
l For STEP and IEGS files, you can specify a Stitch tolerance and units. The default value
(auto) comes from the Healing dialog Options tab with Manual Healing selected
l For formats that allow importing CAD Assemblies as groups, the Import dialog includes an
option to Create group for assembly. This allows you to retain the assembly structure of
objects using groups. This appears for Autodesk Inventor files (*.ipt; *iam), Catia V4/V5
files (*.exp, *.model, *.CATPart, *.CATProduct), Pro/E files (*prt, *.asm), STEP files
(*.step, *stp), SolidWorks Files (*SLDPRT, *SLDASM), and Unigraphics Files (.prt). For
example:
4. Use the file browser to find the file you want to import.
5. Select the 3D model file you want to import or enter the name of the file in the File Name box.
6. Click Open.
The file is imported into the active Modeler window.
If you selected Validation and Healing options Strict with the Manual option selected for the import,
then the Healing Options dialog box opens, allowing you to set parameters for the heal operation.
For tips on dealing with very complex models, see Technical Notes: Handling Complicated Models.
Note While objects created in Maxwell can always be classed in the history tree as either a solid,
sheet, or wire some imported objects may have mixture of these. Maxwell places such
objects in an Unclassified folder in the history tree.
Extension Contents
.sat ACIS 27.0 geometry solid model files.1
.sm3 Ansoft 3D modeler files ACIS R1.0 to ACIS 2017 1.0.1
.sld Ansoft legacy 3D model files
.anstGeom Ansoft Geometry File supporting UDMs and CAD integration with the
Workbench.
.dxf, .dwg AutoCAD Drawing Interchange Format files from version 2.5 through 2016.
The .tech file is an ASCII file that contains layer names, units, color, elevation,
thickness, and material information in a tab delimited format. See Importing
DXF and DWG Format Files.
.ipt, iam Autodesk Inventor V11-V2016
.model, Catia R4/R5 models.1
.CATPart .model - CATIA 4.1.9 to 4.2.4
.CATProduct CATPart, .CATProduct - CATIA V5: R8-R25 (V5- V-6 R2016), (Windows
only)
Extension Contents
.gds GDSII files.
.iges, .igs Industry standard Initial Graphics Exchange Specification (IGES) files versions
up to 5.3.1
.nas NASTRAN format files.2
.x_t, .x_b Parasolid Files (9.0-29.0.137).1
.prt*, .asm* Pro/E model files. For Pro/E models, the import dialog lets enable Import Free
Surfaces, which will include such surfaces as well as parts.
.Pro/E 16 to Wildfire 5.0, Creo 3.0
.sab Standard ACIS binary.
.sldprt, .sldasm Solidworks 98-2015
.step, .stp Industry standard AP203 STEP files and AP214 (geometry only) AP242.1
.stl Stereolithography format files.2
.prt Unigraphics file 11 to NX101
1. Automatic or Manual Healing available if desired. See Healing an Imported Object.
2. Defeaturing based on Model Resolution Length. Select Auto, None, or enter a numeric value
directly in the entry box.
Related Topics
l Arc
l Circle
l Ellipse
l Solid
l Block
To import a .dxf or .dwg model file (which may use an associated .tech file):
1. Click Modeler>Import.
The Input name field shows the name of the layer in the DXF/DWG file (not editable).
6. Use the Include check boxes to specify which layers to import from the selected file.
7. You can use the browse button [...] to locate a Layer mapping file. The layer mapping file is a
plain text file that includes units, layer names, color, elevation, and thickness information.
units um
//Layer_Name Color Elevation Thickness
BOTTOMLAYER purple 0 200
MIDLAYER green 500 200
TOPLAYER blue 1000 200
9. Use the Override pulldown to select the layout units for the imported file (default is mm).
10. Use the Objects check boxes to fine-tune the import:
l Auto detect closure causes polylines to be checked to see whether or not they are
shortcut menu.
The Imported Data dialog box appears.
2. Click Import Table.
The Table Import dialog box appears.
3. In the File Name text box, type the name of the data table file you want to import or click
Browse and use the file browser to locate the file.
4. If the data in the table is complex, select the format — real/ imaginary, or magnitude/ phase —
in which to import the data.
If the data is simple, this option will be ignored.
5. Click Load File. Note that the file has not been imported yet.
6. Optionally, type a new name in the Source Name box that indicates the origin or the data
table, or accept the default name.
7. Optionally, type a new name in the Table Name box that describes the data in the table, or
accept the default name
8. In the All Columns list, the headings of each column in the data file are listed. Optionally,
specify a new name for a column heading by doing the following:
a. In the All Columns list, click the heading you want to change. The heading appears in the
Column Name box.
b. Type a new name in the Column Name box, and then click Set Column Name.
The heading is changed to the new name in every place it appears in the Imported Data
dialog box.
9. In the Independent Data Columns list, the first heading in the data table file is listed by
default. In the Dependent Data Columns list, the second and subsequent headings in the
data table file are listed by default. Optionally, click a heading name and then click an arrow
button to move it from one column to another.
10. If the data in the Dependent Data Columns list contains matrix data, select Matrix Data. If it
contains field data, select Field Data.
11. Click Import.
Related Topics
Adding Datasets
Related Topics
Assigning Materials.
The geometry model is pasted from the Clipboard with the ID preserved.
l First row consisting of list of Array Index Variable names separated by tabs or commas
l Remaining rows consisting of a list of string values separated by tabs or commas
l Double quotation marks (“ “) for string values are optional
After you select a .csv file to open:
l If no existing array variables are present in the design, the Import Array From Table: New
index variable.
l The associated Array Variable Name has the default name “<ColumnName>_Array". You
can modify the Array Variable Name, but variable uniqueness and validity is checked upon
closing the wizard.
l Click the Create checkbox to specify that the array index variable should be created.
l Use the control buttons at bottom to go Back to the previous wizard dialog, proceed to Finish
and close the wizard dialog, or click Cancel to close the dialog without making changes.
If one or more existing array variables are present in the design, when you click Next in the above
wizard dialog, the Import Array From Table: Existing Variables dialog opens.
l Associated Array Variable can be modified, but variable uniqueness and validity is checked
– No Action
If you select Replace existing value, you are then prompted for verification.
l If you import a file to a design where a string column already exists as an
ArrayIndexVariable, the value of the variable is checked when imported. If the existing array
value is a superset of new array values, the array variable will not appear in the
ExistingVariables dialog.
You can also use the same .csv tabular array file to setup a parametric analysis. When the
parametric analysis is set up, the ArrayIndexVariable is searched and its index is used to create the
table. Whether the ArrayIndexVariable refers to a double array or a string array, you must use the
array element from the imported file - rather than the index value itself - to set up the Parametric
from File analysis.
Printing
The printing commands enable you to send an image of the active window to the printer.
To print the project:
1. Click File>Print.
The Print dialog box appears.
2. You can change the printer (if other printer names are listed on the drop down), set the print
range, number of copies, or use the check box to Print to file.
3. Do one of the following:
l Click OK to print the project.
You can also access the printer properties by clicking Printer in the Page Setup dialog box.
l Right-click a design icon in the project tree and select Edit Notes… from the shortcut menu.
The Design Notes window appears, in which you can edit the design's notes as shown in the
example below.
can insert a documentation file into a project with the Project>Insert Documentation Files
command.
l Use Ansoft Password (Execute Only) - This does not require you to enter a password,
Encrypting a Resource
To encrypt a resource:
1. Click Tools>Password Manager.
The Password Manager dialog box appears.
2. Select an existing resource to highlight it and enable the Encrypt File button.
A file browser window appears.
3. Select the desired Circuit files (*.lib) file you wish to encrypt.
Any existing resources in the selected directory appear.
4. Click OK.
The resource is encrypted.
options.
l Maxwell 3D Options, such as the default solution type.
l Report Setup Options, including advanced mode editing, the number of significant digits to
l RMxprt Options, such as the default solution type and material thresholds.
l Modeler options, such as coordinate system settings, color, and grid settings.
l Fields Reporter options, such as field overlay and phase animation settings.
l Schematic Editor options, such as fonts, colors ,etc. used by the Maxwell Circuit Editor.
You can use HPC and Analysis Options to specify design-specific options.
Additionally, the Tools>Options>Export Options Files command writes xml files containing the
Options settings at all levels to the specified directory. This feature makes it easier for different users
to use ANSYS Electromagnetics tools installed on shared directories or network drives. The
Example Uses for Export Options Features section outlines some use cases enabled by this feature.
l Project
l Miscellaneous
l User Interface
l Directories
l Desktop Performance
l Default Units
l Remote Analysis
l Web Update
These options are set in the Desktop Configuration panel under General in the Options
dialog.The Desktop Configuration panel contains the following sections:
l Desktop Configuration defines the Set targeted configuration, Custom Menu Set,
and Schematic Environment settings. The drop-down list shows these options: All, EM,
RF, SI, and Simplorer. Select Simplorer if you are not accessing other parts of the
ANSYS Electronics Desktop.
l New Project options specifies whether a design of a particular type is inserted when you
create a new project. If you define Simplorer in Set targeted configuration, the default for
Insert a design of type is Simplorer. You can select other options from the drop-down list,
or select the Don't insert a design option.
l Save Options defines if autosave is enabled and the interval in edits for autosaving. To
enable autosave, select the Do Autosave check box. Set the number of editing actions
after which a backup file is automatically saved to your hard drive in the Autosave interval
text box. The default is 10. The backup file is given the same name as your project and has
an “aedt.auto” file extension.
When all information on Desktop Configuration is defined, select another option under General in
the Options dialog or click OK to put your settings into effect.
These options are set on the Project panel under General in the Options dialog.
l 2D Extractor
l Circuit Design
l Circuit Netlist
l HFSS
l HFSS 3D Layout Design
l HFSS-IE
l Maxwell 2D
l Maxwell 3D
l Q3D Extractor
l RMxprt
l Simplorer
When all information on the Project panel is defined, select another option under General in the
Options dialog or click OK to put your settings into effect.
These options are set on the Miscellaneous panel under General in the Options dialog.
MATLAB Optimization
If you have an installation of MATLAB installed you can use it as an Optimizer. This MATLAB path
setting must to point to the version of MATLAB to be used for performing the optimization. .
Note The platform (64 bit) of the specified version of MATLAB must match the platform of this
application.
These options are set on the User Interface panel under General in the Options dialog.The User
Interface panel contains the following sections:
General
l Show Message Windowon new messages – specifies that the message window is
automatically reopened if a message arrives after the message window has been closed.
l Ensure that new messages are visible in the Message Window Tree – specifies that
the size of the message window is expanded as needed when messages are displayed.
l Show Progress Windowwhen starting a simulation – specifies that the progress
window is reopened if a message arrives after the progress window has been closed.
selected Project Tree element that is active (that is, has focus) to be rendered in bold text.
l Selecting the Change icon when selection does not match active window check box
causes a small window-shaped overlay icon to display in the corner of the selected Project
Tree element. This overlay icon is changed only when the data in the active window is
unrelated to the selected project item. (Data is considered related when they affect the
same model.) Clicking the icon will open the window and bring it into focus (on top).
l Select the Expand Project Tree on Insert check box if you want to expand the Project
Color Scheme
You can select the color scheme of Blue, Silver, or Black.
Welcome Message
Click Show welcome message at startup if you want to see a welcome message when the
application starts.
When all information on the User Interface panel is defined, select another option under General in
the Options dialog or click OK to put your settings into effect.
These options are set on the Directories panel under General in the Options dialog.The
Directories panel contains the following sections:
l Desktop Configuration defines the Set targeted configuration, Custom Menu Set,
and Schematic Environment settings. The drop-down list shows these options: All, EM,
RF, SI, and Simplorer. Select Simplorer if you are not accessing other parts of the
ANSYS Electronics Desktop.
l New Project options specifies whether a design of a particular type is inserted when you
create a new project. If you define Simplorer in Set targeted configuration, the default for
Insert a design of type is Simplorer. You can select other options from the drop-down list,
or select the Don't insert a design option.
l Save Options defines if autosave is enabled and the interval in edits for autosaving. To
enable autosave, select the Do Autosave check box. Set the number of editing actions
after which a backup file is automatically saved to your hard drive in the Autosave interval
text box. The default is 10. The backup file is given the same name as your project and has
an “aedt.auto” file extension.
When all information on the Directories panel is defined, select another option under General in the
Options dialog or click OK to put your settings into effect.
These options are set on the Desktop Performance panel under General in the Options dialog.
l Select or clear Dynamically update reports and field overlays during edits.
For “AdaptivePass” plot context, plots are updated at the end of each solution pass. For
“LastAdaptive” or “Transient” the plot is updated at the end of the transient or adaptive
solution. This option balances report and field plot updating with solution time. For
example, reports may be updated after each adaptive pass but field plots will not be
updated until the solution is complete.
l Immediately - update reports and plots as soon as data comes from the solver.
This option will have the greatest impact on the overall solution time but will have the most
rapid updating of reports and field plots. Caution should be used in selecting this option.
Some types of reports and field plots may take a long time to update, especially as the
mesh size increases.
l Never - only manual intervention updates reports.
This option will prevent updates from impacting the solution time.
l On Completion - as with Never, but a single update is done when the solve completes.
Note Reports that are updated on completion are done after the solve has been
completed. The time for that update is not included in the solve profile.
l After Each Variation - when performing an Optimetric or parametric analysis, all reports
are updated after analysis of each variation has been completed.
Animation
Computing animated plots requires significant memory which depends upon the complexity of the
plot type. The animation setting is used to prevent problems related to low memory should an
animation require large memory allocation.
The Animation setting lets you set a limit to Stop computing animation frames when available
memory is less than the set value in megabytes. The default is 100.
divided by 2. This option is common for both pre-processing and post-processing. This option
only affects pre/post processing in desktop (not solve or simulation)
The following pre-processing algorithms can take advantage of multiple processors:
l Visualization/faceting of 3D models for 3D products
l Model validation for 3D products
l Auto net identification for Q3D
These options are set on the Default Units panel under General in the Options dialog.
The Default Units panel of the General Options dialog box allows you to set the default unit values
for the following metrics: Length, Frequency, Resistance, Angle, Power, Inductance, Time,
Voltage, Capacitance, Temperature, Current, Force, Torque, Speed, Angular Speed,
Magnetic Induction, Weight, Magnetic Field Strength, Pressure, and Conductance.
Note Units specified in the Default Units panel are generally for problem definition. The Post
Processor displays output in the unit that scales best for plotting, however, the user may
change the unit when creating the plot. Also, the Fields Calculator always works with SI
units.
When all information on the Default Units panel is defined, select another option under General in
the Options dialog or click OK to put your settings into effect.
To launch all analyses as a specific user, rather than the current user, do the following in the Remote
Analysis Options panel of the General Options.
Note If any of the remote machines are Unix-based, you must specify the current
user.
machines. To change the Ansoft Service Port, click the Change button to display an
editable dialog.
l The Send analysis request as option selection can be Service User or Specified User.
Selecting Specified User enables the fields for User Name, Password, and
Domain/Workgroup information.
l You can also Disable access by remote machines, by using the check box.
Desktop-Engine Connection
l If the local machine has multiple IP addresses and one of them is preferred for
communication, the Desktop-Engine Connection area lets you specify whether to Use
Default or a Specified IP address.
Note This option is applicable only when the local machine has multiple IP
addresses and one of them is preferred for communication.
Related Topics
Remote Analysis
These options are set on the Web Update panel under General in the Options dialog.
Select one of the following from the Automatically check for updates every pull-down list:
l Select the desired update frequency from the Automatically check for updates every
drop-down list. The choices are Never, 7 days, 15 days,30 days, 60 days, 120 days, and
180 days. By default, automatic Web updates are turned off.
l You will be prompted before an update. The date of the prompt is recorded as the Last
Note You can also request a Web Update by selecting Launch WebUpdate
from the Help drop-down menu on the main menu bar.
When all information on the Web Update panel is defined, select another option under General in
the Options dialog or click OK to put your settings into effect.
These options are set on the Component Libraries Options panel under General in the Options
dialog.The Component Libraries Options panel contains the following sections:
You can select to Use extractor mode by default for separate dynamic link desktops by using
the check box.
You can select to Run affected property callbacks when variable changes value by using the
check box.
The Component Tree Options panel contains the following controls:
l Show Favorites specifies that a list of favorites, in the form of an expandable tree, is
display.
The Search Options panel contains the following controls:
l Use Set to determine whether searches are performed on All components, Current list
configured libraries into the Component Libraries search database when the Component
Libraries is initialized at Simplorer startup. Clear this option to reduce the startup time of
Simplorer, in which case the libraries are loaded at first search.
When all information on the Component Libraries Options panel is defined, select another option
under General in the Options dialog or click OK to put your settings into effect.
Setting HPC and Analysis Options for Maxwell and RMxprt Designs
HPC and analysis parameters are accessed via a single dialog. Machine list and options settings are
integrated into analysis configurations. The default configuration is for solving on a single, local
machine. You can create many analysis configurations for remote and distributed solutions, and
switch between them, depending on the job being solved. Multiprocessing is integrated into the
machine lists.
To set the HPC and Analysis Options:
1. Click Tools>Options>HPC and Analysis Options.
The HPC and Analysis Options dialog appears, displaying two tabs.
Configurations tab
In the Configurations tab, you can select the Design Type, and select from a list of available
configurations. Selecting a Design Type displays a list of the Available configurations for that
type. Selecting a configuration from the list displays the details of that configuration in the text
fields. A Name can describe the use for which a configuration has been defined. The Total
Tasks column shows the number of tasks that the analysis configuration can execute.
Design Type
Defines configurations for the selected design type. The Active configuration is used when
solving an analysis for the design type.
Available Configurations List
From the lists of Available Configurations for each design type, click the desired
configuration in the list to select it, then click Make Active. The active configuration is
indicated with a YES in the Active column.
l Add... button – launches a dialog to create a new analysis configuration.
l Edit... button – launches a dialog to edit the currently selected analysis configuration.
Options Tab
Note Options for Maxwell 2D, Maxwell 3D, and RMxprt design types are
described below. Options for other design types, such as HFSS, are
described in the ANSYS Electronics Desktop Online Help.
The Options tab in the HPC and Analysis Options dialog contains design type specific
options. These options are not part of an analysis configuration, instead they are always in
effect for the given design type when the following is true:
l A design of the matching design type is being solved
l You have not specified corresponding overriding batch options on the command line.
In the Options tab you can enable queuing, and set the design type.
l For Maxwell 2D and 3D design types, you can specify the Distributed Memory MPI
(Message Passing Interface) vendor, specify the Remote Spawn Command, set the HPC
license type, and set the Default Process Priority.
l For Maxwell 3D design type only, you can also Enable GPU (if installed) for Eddy Current
solves.
l For RMxprt design type, you can only set the Default Process Priority.
Solving on a single Windows machine does not require MPI installation; and users running on
Linux do not need to install MPI manually. You can also set the Default Process Priority
2. For Distributed Memory options, use the drop down menu to select the MPI Vendor for the
selected Design type.
The solvers use the standard Message Passing Interface (MPI), and can perform solutions
that distribute memory use across machines in a cluster or network. Memory used by the MPI-
enabled solver is therefore limited by the set of machines that are available rather than the
shared memory available on any single machine. This allows you to simulate larger structures,
and to optimally reconfigure the cluster of machines for the problem at hand. For solving on a
single machine, MPI is not required, nor does it provide an advantage.
To use the distributed memory solution you must install MPI software from one of the
supported third party vendors on all the machines you intend to use.
You may need to set passwords depending on the MPI vendor for authentication on the
machines. Settings within each design type turn on distributed memory solutions and define
the list of machines you intend to use.
InfiniBand Support for Windows
By default, the MPI vendors use the fastest interconnect (typically InfiniBand is faster than
Ethernet). If you want to override the default behavior and force the use of Ethernet, you can
set the ANSOFT_MPI_INTERCONNECT environment variable to “eth” for the job.
3. For Linux authentication, you can specify the Remote Spawn Command as RSH or SSH (the
default).
4. Select one of the following HPC License Values:
l Pool – Selecting Pool means that HPC licenses will be used for distribution.
l Pack – selecting Pack means that HPC Pack licenses will be used for distribution.
You can determine if a GPU is being used for acceleration by viewing the Solutions dialog,
Profile tab. If a GPU is successfully locked for use by the solver process, the profile shows the
GPU's CUDA device ID and its name.
If the GPU is not used, the Profile indicates that, and the fallback to using the CPU cores.
Note GPU acceleration can be toggled by the -batchoptions command line argument:
EnableGPU =[0/1]
For example, the following command turns on GPU acceleration:
ansysedt.exe -batchsolve -batchoptions "Maxwell
3D/EnableGPU’ =1" projectname.aedt
6. Optionally, you can select one of the following from the Default Process Priority pull-down list:
Related Topics
An important step in using a high performance cluster is setting up authentication across machines in
such a way that the machines can be accessed without a password. By default Maxwell 2D and
Maxwell 3D use SSH authentication on Linux to spawn commands on the remote machines but also
supports RSH. The selection of which to use is made on the Options tab of the
Tools>Options>HPC and Analysis dialog.
SSH
You will need to set up passwordless access to useMaxwell on a Linux cluster with SSH or RSH. In
general, for SSH, this is accomplished as follows:
1. Verify that you have working SSH servers and clients on your machines.
2. Verify that the server will accept passwordless logins. You may need to edit the /etc/ssh/ssh_d
file to allow RSAAuthentication and PubkeyAuthentication.
3. Generating keys on the client system using the ssh-keygen program. Do not use a passphrase
so that you can access the machine without a password.
4. Copy the public key generated in step 1 from the ~/.ssh directory to the server. The easiest
way to transfer the keys is to use the ssh-copy-id program. Alternately, you can use any file
transfer utility. If the server already has a list of existing keys for other clients add the new
public key to the list.
5. Test the connection. Login to the client machine using the username that you used to create
the identity keys. Open a new shell terminal and attempt to open an SSH login session. For
example type: ssh 192.168.0.4 (where the IP address is the address of the machine you are
attempting to connect to). The server should allow you to login without requesting a password.
RSH
If you choose to use RSH you will need to make sure RSH is installed on all the machines and set the
machines up so that you are not prompted for a password. There are different ways to set up
password-less RSH so be sure to see the documentation for your machines and network for detailed
instructions.
Machine access using RSH without a password is often set up by editing the /etc/hosts.equiv file and
adding entries for the hosts you would like to use without a password. This file lists hosts and users
that are granted "trusted" access to the system.
If you look at the contents of the /etc/hosts.equiv file you should have something similar to the
following:
job1.n1.com
job2.n1.com
job3.n1.com
The machines job1, job2 and job3 can connect without a password. You may also need to verify that
the files /etc/hosts.allow and /etc/hosts.deny are empty. See your local documentation for detailed
instructions and troubleshooting suggestions.
Related Topics
"Setting HPC and Analysis Options for Maxwell and RMxprt Designs" on page 4-47
Maxwell 3D Eddy Current matrix solver can be accelerated by using an NVIDIA® GPU accelerator.
Numerical factorization of complex symmetric matrices is supported for GPU acceleration.
Hardware Requirements
GPU acceleration for the Maxwell 3D Eddy Current solver has been developed for NVIDIA cards
and is officially supported with the Tesla® series. NVIDIA Tesla cards are recommended for the best
performance when using several cards on one machine to solve using HPC. The following cards are
supported:
l NVIDIA Tesla K20c (both workstation and server)
l NVIDIA Tesla K40c (both workstation and server)
l NVIDIA Tesla K80 (server with GPU cooling solution only, 2 GPUs consume 2 ANSYS HPC
licenses)
Related Topics
"Setting HPC and Analysis Options for Maxwell and RMxprt Designs" on page 4-47
Being able to set the number of processors, desired RAM limit, and maximum RAM limit using VB
scripts allows you to solve a project by running a VB script, without having to toggle the computer
hardware usage settings.
The following macros allow you to set these options:
oDesign.SetDesiredRamMBLimit <integer num in MB>
oDesign.SetMaximumRamMBLimit <integer num in MB>
oDesign.SetNumberOfProcessors <num>
limit = oDesign.GetDesiredRamMBLimit()
limit = oDesign.GetMaximumRamMBLimit()
num = oDesign.GetNumberOfProcessors()
Note When you enable the Save before solving setting, the project is only saved
if it has been modified since its last save.
When this is checked, the creation of boundaries and excitations use Wizards to guide you
through the process. When this is not checked, the creation of boundaries and excitations
displays a Properties dialog with tabs for different kinds of information.
l Duplicate boundaries/mesh operations with geometry
When this is checked, you can duplicate a boundary or excitation when its geometry is
pasted or duplicated. See Duplicating Boundaries and Excitations.
l Visualize boundaries on geometry
Related Topics
A folder Node is not selectable. A click on a folder node toggles (Expand or collapse) the node.
When any of a folder’s child nodes is selected it becomes bolded.
Mouse Click on Quantity Node (Tree leaf node). Shift and Ctrl key only apply to multiple
selection dialogs:
l Without Shift and Ctrl key – Select the quantity and unselect all previous selected
quantities.
l Only with Ctrl key down – Toggle the selection of the quantity. No effect on other selected
quantities.
l Only with Shift key down – Do range selection, deselect any selected quantity that is outside
of the range.
l Both Shift and Ctrl key down – Do range selection, but don’t deselect any selected quantity.
Range selection: Select quantity nodes between the last mouse clicked quantity node and the
newly clicked-on quantity node. Folder nodes in between won’t be selected but their children
will be selected. So those folder nodes will be in a bolded state.
5. Click OK.
Note When you enable the Save before solving setting, the project is only saved
if it has been modified since its last save.
l Save Optimetrics field solutions
l Apply variation deletions immediately
l Generate model history when importing legacy 2D projects
3. On the Solution Type panel:
l To change the default solution type when you initially insert a design, select one of the
following from the Default solution type pull-down list: Magnetostatic, Eddy
When this is checked, the creation of boundaries and excitations use Wizards to guide you
through the process. When this is not checked, the creation of boundaries and excitations
displays a Properties dialog with tabs for different kinds of information.
l Duplicate boundaries/mesh operations with geometry
When this is checked, you can duplicate a boundary or excitation when its geometry is
pasted or duplicated. See Duplicating Boundaries and Excitations.
Related Topics
Note When you enable the Save before solving setting, the project is only saved if it
has been modified since its last save.
l Apply variation deletions immediately
3. On the Machine Type panel, to change the default machine type when you initially insert a
design, select one of the following from the Default machine type pull-down list:
l Three Phase Induction Motor
l Permanent-Magnet DC Motor
l Axis
l Grid
l Header
l Note
l Legend
l Marker
l Marker Table
l X-Y Markers
l Digital
l General
l Table
For properties controlled by check boxes, you can set values for all curves by clicking the
column header cell that contains the property title. Right-clicking on a text field cell displays a
context menu that lets you cut, copy and paste values. Right-clicking on a menu cell displays a
context menu that lets you copy and paste entire rows.
You can use a Restore Defaults button.
2. Click each list item, and make the desired selections.
3. Click OK.
These options are set on the Curve panel under Report2D in the Options dialog.
l Line style -- select the options from the drop down menu. The options are Solid, Dot, Dash,
l Arrows -- use the check box to use arrows on the curve ends.
l Symbol -- use the check box to have symbols mark the locations of data points on the curve.
l Sym Freq -- set the symbol frequency by editing the integer value in the text field.
l Sym Style -- select the symbol to display for the designated data points. The sym style can be
box, circle, vertical ellipse, horizontal ellipse, vertical up triangle, vertical down triangle,
horizontal left triangle, horizontal right triangle.
l Fill Sym -- use the check box to set the symbol display as a solid or as hollow.
l Sym Color -- set the color for the symbol by double clicking to display the Set color dialog.
These options are set on the Axis panel under Report2D in the Options dialog.
l Axis Name -- this describes the axis to which the following options refer.
l Color -- set the color by double clicking to display the Set color dialog. Select a default or
list of available fonts, styles, sizes, effects, colors, and script. The dialog also contains a
preview field. OK the selections to apply the font edits and to close the dialog.
l Font Description -- displays the chosen font properties.
These options are set on the Grid panel under Report2D in the Options dialog.
l Grid Name -- lists the name or letter of the grid. Not editable.
l Line Style -- select the options from the drop down menu. The options are Solid, Dot, Dash,
These options are set on the Header panel under Report2D in the Options dialog.. For the Title
and SubTitle, you can independently specify the following:
l Color -- set the color by double clicking to display the Set color dialog. Select a default or
available fonts, styles, sizes, effects, colors, and script. The dialog also contains a preview
field. OK the selections to apply the font edits and to close the dialog.
These options are set on the Note panel under Report2D in the Options dialog.
l Note Color -- set the color by double clicking to display the Set color dialog. Select a default
list of available fonts, styles, sizes, effects, colors, and script. The dialog also contains a
preview field. OK the selections to apply the font edits and to close the dialog.
l Background Color -- set the color by double clicking to display the Set color dialog. Select a
l Border Line Color -- set the color by double clicking to display the Set color dialog. Select a
l Border Line Width -- set the line width by editing the real value in the text field.
These options are set on the Legend panel under Report2D in the Options dialog.
l Show Trace Name -- use the check box to toggle the visibility of the trace name.
l Show Solution Name -- use the check box to toggle the visibility of the solution name.
l Show Variation Key -- use the check box to toggle the visibility of the variation key.
l Text Color -- set the color by double clicking to display the Set color dialog. Select a default or
list of available fonts, styles, sizes, effects, colors, and script. The dialog also contains a
preview field. OK the selections to apply the font edits and to close the dialog.
l Background Color -- set the color by double clicking to display the Set color dialog. Select a
l Grid Color -- set the color by double clicking to display the Set color dialog. Select a default or
custom color and click OK.
These options are set on the Marker panel under Report2D in the Options dialog.
l Marker Color -- set the color by double clicking to display the Set color dialog. Select a default
from a list of available fonts, styles, sizes, effects, colors, and script. The dialog also contains a
preview field. OK the selections to apply the font edits and to close the dialog.
l Arrow Direction -- set the arrow direction by choosing Up, Down, Left, or Right from the
drop-down menu.
Related Topics
These options are set on the Marker Table panel under Report2D in the Options dialog.
l Text Color -- set the color by double clicking to display the Set color dialog. Select a default or
list of available fonts, styles, sizes, effects, colors, and script. The dialog also contains a
preview field. OK the selections to apply the font edits and to close the dialog.
l Background Color -- set the color by double clicking to display the Set color dialog. Select a
l Grid Color -- set the color by double clicking to display the Set color dialog. Select a default or
These options are set on the X-Y Markers panel under Report2D in the Options dialog..
You can set background colors for Markers 1 through 10 by clicking the current color to open a color
selection dialog box.
l Marker Font
l Text color
l Line color
l Line style
l Line width
l Delta font
l Line color
l Line style
l Line width
These options are set on the Digital panel under Report2D in the Options dialog.
l Digital
l Enum
l Event
l Literal
These options are set on the General panel under Report2D in the Options dialog.
l Background Color -- set the color by clicking to display the Set color dialog. Select a default
l Curve Tooltip Option -- use the check boxes to toggle the following properties:
These options are set on the Table panel under Report2D in the Options dialog.
l Rows Per Page - set to 2500 by default.
l Text Color - set the color by clicking to display the Set color dialog. Select a default or custom
list of available fonts, styles, sizes, effects, colors, and script. The dialog also contains a
preview field. OK the selections to apply the font edits and to close the dialog.
l Border Width - set to 2 by default.
l Border Color - set the color by clicking to display the Set color dialog. Select a default or
custom color and click OK.
l Grid Width - set to 1 by default.
l Grid Color - set the color by clicking to display the Set color dialog. Select a default or custom
color and click OK.
l Background Color - set the color by clicking to display the Set color dialog. Select a default
or custom color and click OK.
l Page Link Color - set the color by clicking to display the Set color dialog. Select a default or
custom color and click OK.
l Arrow Color - set the color by clicking to display the Set color dialog. Select a default or
custom color and click OK.
l Header Row - use the following properties to set the header row format:
a. Text Color - set the color by clicking to display the Set color dialog. Select a default or
custom color and click OK.
b. Text Font -- click the cell to display the Edit Text Font dialog. The dialog lets you select
from a list of available fonts, styles, sizes, effects, colors, and script. The dialog also
contains a preview field. OK the selections to apply the font edits and to close the dialog.
c. Background Color - set the color by clicking to display the Set color dialog. Select a
default or custom color and click OK.
l Format -- use the following properties to set the format:
a. Field Width -- set the table field width by editing the real value in the text field.
b. Precision -- set the table precision by editing the real value in the text field.
c. Use Scientific Notation -- use the check box to toggle scientific notation on or off.
l Copy to Clipboard -- use the following check boxes to toggle the following properties for
table copy operations:
a. With Header
b. With Tab Separator
l Operation
l Snap
l Display
l Group
l SpaceClaim Link
l Advanced
These options are set on the Drawing panel under 3D Modeler in the Options dialog.
1. The Drawing Data Entry Mode section controls whether you draw new objects directly via
the mouse (Point), or whether a Properties dialog opens for you to enter dimensions for the
object. The Dialog mode drawing feature works with the equation based line, and all two and
three dimensional objects. You can also use F3 to switch to Point mode and F4 for dialog
mode.
2. In the Relative Coordinate System Creation Mode radio buttons control whether the
default uses Axis/Position or Euler Angle to create a new relative coordinate system. You
can use the F3/F4 keys to switch between the modes.
l For the Axis/Position setting, Modeler> Create> Relative CS>[Offset | Rotated |
Offet and Rotated] enters Draw mode, displaying a point selection cursor and the
Measure Data dialog. Also the Status bar fields for setting X, Y and Z values, as
Coordinate System settings are active.
l For the Euler Angle setting, Modeler>Create>Relative CS>[Offset | Rotated | Offset
and Rotated] displays a dialog in which you type in the needed values and select units.
3. In the Polyline Creation section, select or clear the Automatically cover closed polylines
check box.
By default, surface objects created with the Polyline command will be created with a cover so
that they become sheet objects. You can choose to leave the polyline as an uncovered object
to perform further operations prior to creating a sheet object
l If checked, closed polylines become sheet objects, and are listed as such in the History tree.
l If not checked, closed polylines are listed under lines in the History tree.
4. Select or clear the Show measures dialog during drawing check box. This specifies
whether a Measure dialog appears on the creation of a new primitive. The dialog shows the
coordinates of the current cursor position.
5. To have a Properties dialog display whenever you create a new object in the modeling
window, check the box for Edit properties of new primitives.
These options are set on the Operation panel under 3D Modeler in the Options dialog.
1. By default, the modeler will delete tool objects when performing tasks such as Uniting,
Subtracting, or Intersecting objects. The user may specify that the modeler should make a
copy (clone) of the tool object prior to the operation, allowing the object to remain available for
subsequent operations. To specify when to clone tool objects, select or clear the following
check boxes in the Clone section:
deletes invalid objects created during split operation. If not checked, invalid objects can be
created. Validation issues warnings.
l Select or clear Automatically imprint wrapped sheets.
These options are set on the Snap panel under 3D Modeler in the Options dialog.
1. To specify snap settings, select or clear the following check boxes in the Snap Mode section:
l Grid
l Vertex
l Edge Center
l Face Center
l Quadrant
l Arc Center
2. Enter how near the mouse needs to be to click a grid item in the Mouse Sensitivity box, in
pixels.
Under 3D Modeler in the Options dialog, the Display options settings are in three sub-groups:
l General
l Rendering
l History Tree
General
1. Under Operations History Visualization, select or clear the Visualize history of objects
check box.
This option lets you view an outline of each part that comprises an object when the given part
is selected in the model history tree. This can help you visualize an object that has been
merged with another object. A change to the option takes effect only when you restart ANSYS
Electronics Desktop. Clearing this selection removes visualization of objects that are part of
the model history. For large models, this is faster and uses less memory. The following figure
shows an example history tree with an object selected and the outline view of that object in the
Main window.
2. To specify how to render an object, select WireFrame or SmoothShade from the Default
view render pull-down list.
3. To set the Default transparency, move the slider, or enter a numerical value.
4. To set the Object Visualization Outline contrast, use the slider. The current value, on a
range from 0 to 1 displays in the text field.
History Tree
1. Under Default tree layout:
a. Select or clear the Group objects by material check box. This feature is the same as
selecting or clearing the Group Objects By Material toggle command from the
Modeler menu.
b. Select or clear Group components by definition.
2. Under Selection, for the Select last command on object select option:
l If checked, the history tree is expanded after operations on object properties, even if the
To set the Group creation for operation result settings for the 3D Modeler, use
Tools>Options>General Options to open the Options dialog and select 3D Modeler. Under 3D
Modeler options, select Group.
1. To specify Group creation for operation settings, select or clear the following check boxes in
the Snap Mode section:
l Simplify
l Duplicate
l Separate Bodies
These options are set on the SpaceClaim Link panel under 3D Modeler in the Options dialog.
Import Options
1. Select or clear Import Solid Bodies.
2. Select or clear Import Surface Bodies.
3. Select or clear Import Parameters, and enter the desired Parameter Key.
4. Select or clear Import Rendering Attributes.
5. Select or clear Import Material Assignments.
These options are set on the Advanced panel under 3D Modeler in the Options dialog.
Faceting
1. Select or clear Incremental faceting (facet only modified faces of object).
2. Select or clear Facet bodies by face using multiple processors.
l Mesh Plot
l Streamline Plot
3. On the Mesh Plot tab, in the Clipping of volume mesh plot section, choose the conditions
under which the plot is updated dynamically while dragging the clip plane. Options are: Never,
Always, and When number of mesh element is less than (default number is 50000).
4. On the Streamline Plot panel:
a. Set the Streamline drawing stopping criteria.
b. Set the Streamline marker spacing for the Number of marker per bounding box
diagonal. The default value is 100.
Related Topics
l host independent user options (apply to the specified user on all hosts)
l host dependent default options (apply to all users on the specified host)
A setting at any level will override settings at lower levels in the list above. If there is no setting in any
file, then the application default value will be used.
Behavior Examples
Rules for Modifying Option Settings
Configuration File Locations
Products with Multiple Desktop Applications
Table of Directories and Files
Behavior Examples
For example, consider running an application as user jsmith on host host123. If there is no host
dependent user setting for the "Expand Project Tree on Insert" option in the host dependent user
options config file for user jsmith on host host123, but there is a setting for the "Expand Project Tree
on Insert" option in the host independent user options config file for user jsmith, then the latter
setting will be used if it is not overridden using the Desktop UI. Any settings in the host dependent
default options config file or the installation default config file will be ignored.
For another example, consider running an application as user jdoe on host host123. If there is no
setting for the "Expand Project Tree on Insert" option in the host dependent user options config file
for jdoe on host123 or in the host independent user options config file for user jdoe or in the host
dependent default options config file for host host123, then the value from the installation default
config file will be used, if present.
menu. If a dialog box is closed with the Cancel button, then changes made on any of the tabs are
discarded. If the dialog box is closed with the OK button, then any settings that have been changed
by the user are written to the host dependent user options config file. The changed values written to
this file are then used the next time that the application is run by the same user on the same host. The
Desktop UI option settings are not written to any of the other option config files.
NOTES:
$HOME is the user's home directory on Linux
ApplicationPathAndVersion is the Application or Product name concatenated with the Product
Version
MyDocuments is the user's "My Documents" directory on Windows
InstallationDirectory is the directory where the product is installed
The table below shows specific file names and directory names for a typical Maxwell installation on
the Linux and Microsoft Windows platforms. These are the files that apply to user jsmith and
hostname host123.
Level
Applic Config File Windows Directory
Nam Linux Directory Pathname
ation File Name Pathname
e
Maxwe host MyDocuments/AnsysEM/Max
ll depend use host12 /home/jsmith/AnsysEM/Max well2015.0/config
ent r_ 3_ well2015.0/config
user mac user.X
options hine ML
host user
indepe user.X
ndent ML
user
options
host C:/Program
depend insta host123 /opt/AnsysEM/maxwell2015. Files/AnsysEM/Maxwell2015.0
ent ll_ .XML 0 /Win32/config
default mac /Linux/config
options hine
Level
Applic Config File Windows Directory
Nam Linux Directory Pathname
ation File Name Pathname
e
installat
ion insta default.
default ll XML
Maxwe host MyDocuments/AnsysEM/Max
ll depend use host12 /home/jsmith/AnsysEM/Max well Circuit
Circuit ent r_ 3_ well Circuit Editor2015.0/config
Editor user mac user.X Editor2015.0/config
options hine ML
host user
indepe user.X
ndent ML
user
options
host C:/Program
depend insta host123 /opt/AnsysEM/maxwell2015. Files/AnsysEM/Maxwell2015.0
ent ll_ .XML 0 /Win32/config
default mac /Linux/config
options hine
installat
ion insta default.
default ll XML
NOTES:
/home/jsmith is the home directory of user jsmith on Linux
MyDocuments is the "My Documents" directory for user jsmith on Windows
Related Topics
<name>
Required. The application or product name and version, as described above. Examples:
HFSS14.0, Maxwell15.0, or "Maxwell Circuit Editor15.0". If the name contains spaces, it must
be quoted.
UpdateRegistry -Set Command
This command is used to add or modify an option setting in an option config file. If the option config
file does not exist, it will be created. If the setting does not exist in the specified config file, it will be
added. If the setting already exists in the specified config file, then the value will be changed to the
specified value.
Usage:
UpdateRegistry -Set -ProductName <name>
-RegistryKey <keyPath>
-RegistryValue <value> [ -RegistryLevel <level>
<name>
Required. The application or product name and version, as described above. Examples: HFSS14.0,
Maxwell15.0, or "Maxwell Circuit Editor15.0". If the name contains spaces, it must be quoted.
<keyPath>
Required. The pathname of the option setting. Example:
Desktop/Settings/ProjectOptions/AnimationMemory.
<value>
Required. The new value of the option, typically a string or a number. If the value contains
spaces, it must be quoted.
<level>
Optional. A string denoting which config file to modify. One of: install, install_machine, user
and user_machine. If the level is not specified, then the user_machine (host dependent user
options) file is modified.
UpdateRegistry -Delete Command
This command is used to remove an option setting from an option config file. If the setting does not
exist in the specified config file, the file will not be changed. If the setting exists in the specified config
file, then it will be removed. A setting may need to be removed from an option config file, to allow the
setting from a lower priority file to be used by the application.
Usage:
UpdateRegistry -Delete -ProductName <name>
-RegistryKey <keyPath>
[ -RegistryLevel <level> ]
<name>
Required. The application or product name and version, as described above. Examples:
HFSS14.0, Maxwell15.0, or "Maxwell Circuit Editor15.0". If the name contains spaces, it must
be quoted.
<keyPath>
l Leading whitespace on each line is ignored. Spaces or tabs may be used to make the file more
readable.
Registry key pathname:
l The registry key pathname appears before the equal sign "=" on each line.
Registry value:
l The registry value appears after the equal sign on each line.
l All other registry values are treated as strings, and must be enclosed in single quotes.
l The forward slash "/" may be used as a directory separator on Windows and Linux. The back
remove this special meaning, and include a single quote in the string.
l To use a back slash as a directory separator on Windows, it must be escaped. That is, a
l Analysis Configuration File format, which is exported from the HPC and Analysis Options
dialog.
Related Topics
Related Topics
files, the user may revert back to the option settings provided by the administrator by removing the
setting of the same option in the host-dependent user option config file and/or the host-independent
user option config file.
For global defaults, the administrator may set a value in the installation default config file. These
settings will to apply to all users on all hosts.
In some cases, there are significant differences between the capabilities of different hosts. The host-
dependent default config file may be used to specify different default values on some hosts. Any
setting in a host-dependent default config file would affect all users running on the specified host.
The installation default value is used if there is no value specified for the setting in the host-
dependent default config file for the current host. Note that the host-dependent default config file is
named hostname.XML, where hostname is the name of the host.
For this example, we assume that all hosts have two cores, except for three hosts: bighost1,
bighost2, and bighost3, that have eight cores each. Because most hosts have two cores, the
administrator has set the Simplorer/Preferences/NumberOfProcessorsDistributed option
value to 2 in the installation default config file, as described above. The administrator may then set
the Simplorer/Preferences/NumberOfProcessorsDistributed option value to 8 in the host-
dependent default config files for the three hosts having 8 cores: bighost1, bighost2 and bighost3.
The administrator may log in to host bighost1, and run the following command to change this
setting for the host-dependent default options config file for host bighost1 on Maxwell16.0:
UpdateRegistry -Set -ProductName Maxwell16.0
-RegistryKey Maxwell/Preferences/NumberOfProcessorsDistributed
-RegistryValue 8
-RegistryLevel install_machine
To make this change for the other two hosts, the administrator would login to bighost2 and
bighost3, in turn, and run the same command on each of those hosts.
Example for Reverting from a User Defined Option Value to the Administrator Default
Consider the case in which Maxwell 16.0 was installed and the administrator initially did not set a
value for the Desktop/Settings/ProjectOptions/DiskLimitForAbort setting in the default
installation config file. User jsmith (who always uses host jshost) wanted to be warned before disk
space dropped to zero, so he set the Desktop/Settings/ProjectOptions/DiskLimitForAbort to
100 MB using the UI (Tools>Options>General Options dialog, Project Options tab, Warn when
available disk space is less than setting). This setting is recorded in the host-dependent user
options config file for host jshost and user jsmith. When the administrator learns that many users
are running into disk space issues, the administrator sets the installation default value for the setting
Desktop/Settings/ProjectOptions/DiskLimitForAbort to 1000 MB, as in the above example.
When user jsmith runs Maxwell 16.0 on host jshost, the disk limit is 100 MB, not 1000 MB, because
the host-dependent user options config file overrides all of the other config files. User jsmith may
revert to the administrator provided default by removing this setting from the host-dependent user
options config file for host jshost and user jsmith. The following command may be run by user
jsmith on host jshost to remove this setting:
UpdateRegistry -Delete -ProductName maxwell16.0
-RegistryKey
Desktop/Settings/ProjectOptions/DiskLimitForAbort -
RegistryLevel user_machine
If user jsmith had added a value for this setting to the host independent user options config file, then
user jsmith would also run the following command to remove this setting from the host-independent
user options config file:
UpdateRegistry -Delete -ProductName Maxwell16.0
-RegistryKey
Desktop/Settings/ProjectOptions/DiskLimitForAbort
-RegistryLevel user
Both administrators and ordinary users may occasionally use the UpdateRegistry command line tool
to add, change or delete settings. To use this tool, the registry key pathname must be known by the
user. The -GetKeys option may be used to quickly search for a key pathname if some information is
known about it. For example, if the administrator knows that there is a setting related to issuing
warning messages when available disk space is low, but she does not know the exact key name, the
following command may list some of the keys related to disk space:
UpdateRegistry -GetKeys disk -ProductName Maxwell16.0
This will display a list of all keys that match the string "disk" case insensitively. Typical output may
look like the following:
Registry keys matching pattern <disk> case insensitively:
Desktop/Settings/ProjectOptions/DiskLimitForAbort: value is
<0> at level <user_machine>
Related Topics
In the previous example, the user jsmith may decide to check the
Desktop/Settings/ProjectOptions/DiskLimitForAbort setting in the host independent user
configuration file before making any changes to this setting. The following command may be used to
quickly view this setting for Maxwell 16.0 before making the change:
UpdateRegistry -Get -ProductName Maxwell16.0 -RegistryKey
Desktop/Settings/ProjectOptions/DiskLimitForAbort -
RegistryLevel user
In may cases, the user is more interested in the value of a setting that will be applicable when running
the product than in the setting in a single configuration file. If the -Get option is used with no -
RegistryLevel specified, then the value reported is the value found in the highest precedence
configuration file. If the user jsmith is interested in the highest precedence value for the
Desktop/Settings/ProjectOptions/DiskLimitForAbort setting, then the following command may be
used to report this information:
UpdateRegistry -Get -ProductName Maxwell16.0 -RegistryKey
Desktop/Settings/ProjectOptions/DiskLimitForAbort
For this example, user jsmith always uses host jshost to run Maxwell 16.0. At some point, jsmith
set the Autosave interval in the General Options dialog, Project Options tab to 1000 edits, and
this value was written to the jsmith's host dependent user options config file for host jshost. Now,
jsmith wants to remove this setting and return to the default value of 10. User jsmith may run the
following command on host jshost to remove the
Desktop/Settings/ProjectOptions/AutoSaveInterval option value from this config file:
UpdateRegistry -Delete -ProductName Maxwell16.0
-RegistryKey Desktop/Settings/ProjectOptions/AutoSaveInterval
-RegistryLevel user_machine
Related Topics
space drops to 250 MB on any host. User jsmith may use the following command to set the
Desktop/Settings/ProjectOptions/DiskLimitForAbort option value to 250 MB for all hosts:
UpdateRegistry -Set -ProductName Maxwell16.0
-RegistryKey
Desktop/Settings/ProjectOptions/DiskLimitForAbort
-RegistryValue 250 -RegistryLevel user
Related Topics
As for other option settings, the Temporary Directory may be configured with an installation default
value, as well as a host dependent default value, a host independent user specified value and a host
dependent user specified value. The Temporary Directory settings are stored in different files from
the other option settings. These files are located in the same directories as the configuration files for
the other option settings. The following table shows the directories and files used to store the
Temporary Directory settings.
Level
Config File
Nam Linux Directory Pathname Windows Directory Pathname
File Name
e
host hostnam MyDocuments/AnsysEM/Applicatio
depend use e.cfg $HOME/AnsysEM/ApplicationP nPathAndVersion
ent user r_ athAndVersion /config
specific mac /config
Tempor hine
ary
Director
y
host user
indepen default.c
dent fg
user
specific
Tempor
ary
Director
y
Level
Config File
Nam Linux Directory Pathname Windows Directory Pathname
File Name
e
host hostnam InstallationDirectory/config InstallationDirectory/config
depend instal e.cfg
ent l_
default mac
default hine
Tempor
ary
Director
y
installati
on instal default.c
default l fg
Tempor
ary
Director
y
NOTES:
$HOME is the user's home directory on Linux
ApplicationPathAndVersion is the Application or Product name concatenated with the
Product Version
MyDocuments is the user's "My Documents" directory on Windows
InstallationDirectory is the directory where the product is installed
As for other options, the settings in these files have precedence in the following sequence: user_
machine (highest precedence), user, install_machine, install (lowest precedence). The installer will
create the file at the install level. By default, the other files are not created. If the Temporary Directory
is set to an empty string in a configuration file, then that setting is ignored.
Note The UpdateRegistry tool may not be used to modify Temporary Directory
settings.
Related Topics
This section describes the format of the Temporary Directory configuration files. The format is the
same for files at all four levels: user_machine, user, install_machine, and install. These files are text
files, so any text editor may be used to modify or create Temporary Directory configuration files.
An example temporary directory configuration file is shown below:
$begin 'Config'
tempdirectory='C:/TEMP/AnsysEM'
$end 'Config'
The temporary directory specified by this configuration file is C:/TEMP/AnsysEM.
Additional notes:
The string containing the pathname of the temporary directory must be enclosed in single quotes.
The forward slash "/" may be used as a directory separator on Windows and Linux. The back slash
"\" may be used as a directory separator on Windows only.
The back slash "\" is used as an escape character in the tempdirectory string. That it, this character
removes the special meaning of the following character.
The single quote character normally ends the tempdirectory string. The back slash may be used to
remove this special meaning, and include a single quote in the string.
To use a back slash as a directory separator on Windows, it must be escaped. That is, a double back
slash "\\" is used to denote a single directory separator.
On Windows, a UNC path normally begins with two back slash characters. In a tempdirectory string,
each of these back slash characters must be doubled, so four consecutive back slashes "\\\\" are
used in the config file.
UNC Example
Config file:
$begin 'Config'
tempdirectory='\\\\hostxyz\\TEMP\\abc'
$end 'Config'
Here hostxyz is a host with a sharename TEMP having subdirectory abc used as the Temporary
Directory. This shows that four back slashes are required for UNC names and that back slashes
used as directory separators must be doubled.
Related Topics
As for other options, the Temporary Directory may be viewed or set using the Desktop GUI. In the
Tools>Options>General Options dialog, the Temp Directory setting appears in the Directories
group box on the Project Options tab. Activating the Override check box allows you to enter a
desired directory pathname in the edit box or to click on the [...] button to bring up a directory file
browser dialog, from which you can select a temp directory. Values set in this manner are written to
the user_machine level configuration file for the Temporary Directory. If the Override check box is
unchecked, then when the OK button is pressed, the user_machine level setting for the Temporary
Directory is changed to an empty string. This enables setting from the next highest precedence
config file. The config file which provides the currently active Temporary Directory setting is shown
under the Temp Directory edit box in the Project Options tab of the General Options dialog, if the
Override check box is unchecked.
The temporary directory may be set from the command line, using the -batchoptions command line
option. See Running Maxwell from a Command Line. The Batchoptions Command Line Examples
section below includes examples that show how to set the Temporary Directory from the command
line.
Related Topics
The UpdateRegistry command line tool, described above, may be used to view, add, change or
remove the Temporary Directory setting from any of the Temporary Directory config files. The
registry key for viewing or modifying the Temporary Directory is TempDirectory. The -Get, -Set, and
-Delete options are valid for viewing a Temporary Directory setting, adding or changing a Temporary
Directory setting, or deleting a Temporary Directory setting. The -GetKeys option does not list the
Temporary Directory key.
Related Topics
Related Topics
l The file may contain an arbitrary number of batchoption entries, one per line.
l Leading whitespace on each line is ignored. Spaces or tabs may be used to make the file more
readable.
l Option pathname:
The option pathname appears before the equal sign "=" on each line.
Each option pathname must be enclosed in single quotes.
Option pathnames are case insensitive.
l Option value:
l The option value appears after the equal sign on each line.
l All other options values are treated as strings, and must be enclosed in single quotes.
l The forward slash "/" may be used as a directory separator on Windows and Linux. The
To use a back slash as a directory separator on Windows, it must be escaped. That is, a
double back slash "\\" is used to denote a single directory separator.
In this example, we run a batch Maxwell analysis of project file project1.mxwl which contains a 3D
design. We want all temporary files and directories created in directory C:\temp\maxwell instead of
using the installation default for the Temporary Directory. We decide that the analysis will be done on
a remote host, at IP address 12.34.56.78. Because of limited memory on the remote host, we decide
to run the analysis using only a single COM engine. Because the remote host has four cores, we
decide to use four threads for multiprocessing, for both distributed and non-distributed parts of the
analysis. We can use the -Remote option to specify that there will be a single remote COM engine.
Here is a sample command line for this analysis, where the project file
\\somehost\projects\project1.mxwl is located in a shared directory specified using a UNC path:
maxwell -BatchSolve -Remote -Machinelist list=12.34.56.78
-batchoptions "TempDirectory='C:/temp/maxwell'
Maxwell3D/Preferences/NumberOfProcessors=4
Maxwell3D/Preferences/NumberOfProcessorsDistributed=4"
\\somehost\projects\project1.mxwl
An alternative is to use the -Distributed command line option. Because the -Machinelist list contains
only one host, there is a single remote COM engine in this case, also.
maxwell -BatchSolve -Distributed -Machinelist list=12.34.56.78
-batchoptions "TempDirectory='C:\\temp\\maxwell'
Maxwell3D/Preferences/NumberOfProcessors=4
Maxwell3D/Preferences/NumberOfProcessorsDistributed=4"
\\somehost\projects\project1.mxwl
The above command lines show that the forward slash "/" may be used as a directory separator on
Windows. The back slash "\" may also be used as a directory separator on Windows, but it must be
doubled to "\\" because the back slash is also an escape character.
Related Topics
Suppose that we want to run a batch Maxwell analysis of project file project1.mxwl. Because all of
our hosts have multiples of 2 cores, we specify that we will use two threads for multiprocessing for
both the distributed (NumberOfProcessorsDistributed) and non-distributed (NumberOfProcessors)
parts of the job. The analysis contains a sweep that will be distributed across three hosts, adam, bill,
and charlie. The hosts adam and bill have four cores each, so we run two distributed COM engines
on each of these hosts, each using two threads. Host charlie has only two cores, so we specify only
one distributed COM engine on this host. This COM engine will also use two threads. We specify a
desired RAM limit of 6 GB and a maximum RAM limit of 8 GB for this analysis. The RAM limits are
specified in KB, so the desired RAM limit is 6291456 KB, and the maximum RAM limit is 8388608
KB.
Here is a sample command line for this analysis, where the project file
\\dennis\projects\project1.mxwl is located in a shared directory specified using a UNC path:
maxwell -BatchSolve -Distributed
-Machinelist list=adam,adam,bill,bill,charlie
-batchoptions "Maxwell/Preferences/MemLimitHard=8388608
Maxwell/Preferences/MemLimitSoft=6291456
Maxwell/Preferences/NumberOfProcessors=2
Maxwell/Preferences/NumberOfProcessorsDistributed=2"
\\dennis\projects\project1.mxwl
Related Topics
In this example, we run a batch Maxwell analysis of project file project2.mxwl, which contains an
Maxwell design. We have four identical hosts host1, host2, host3, and host4 for analysis, and
each host has 4 cores. We do not use multiprocessing for the distributed analysis, so
NumberOfProcessorsDistributed=1. As each host has four cores, we specify multiprocessing
using 4 threads for the non-distributed part of the analysis, so NumberOfProcessors=4. Because
we do not use multiprocessing for the distributed analysis, we will run four distributed COM engines
on each host, with a singe core available for each engine. As in Example 1, we specify a desired
RAM limit of 6 GB and a maximum RAM limit of 8 GB for this analysis. The RAM limits are specified
in KB, so the desired RAM limit is 6291456 KB, and the maximum RAM limit is 8388608 KB.
Here is a sample command line for this analysis, where the project file
/home/jsmith/projects/project2.mxwl is located in a shared directory:
maxwell -BatchSolve -Distributed
-Machinelist file=/home/jsmith/hosts/list2
-batchoptions "Maxwell/Preferences/MemLimitHard=8388608
Maxwell/Preferences/MemLimitSoft=6291456
Maxwell/Preferences/NumberOfProcessors=4
Maxwell/Preferences/NumberOfProcessorsDistributed=1"
/home/jsmith/projects/project2.mxwl
For this example, the hostnames are in the text file /home/jsmith/hosts/list2. Here are the file
contents:
host1
host1
host1
host1
host2
host2
host2
host2
host3
host3
host3
host3
host4
host4
host4
host4
Related Topics
In this example, we run a batch Maxwell analysis of project file testproject.adsn on the local host. We
want all temporary files and directories created in directory C:\temp\maxwell instead of using the
installation default for the Temporary Directory. Because the local host has four cores, we decide to
use four threads for multiprocessing, for both distributed and non-distributed parts of the analysis.
Here is a sample command line for this analysis, where the project file
\\host123\projects\testproject.mxwl is located in a shared directory specified using a UNC path:
maxwell -BatchSolve -Local -batchoptions
"TempDirectory='C:/temp/maxwell'
Maxwell/SolverOptions/NumProcessors=4
Maxwell/SolverOptions/NumProcessorsDistrib=4"
\\host123\projects\testproject.mxwl
Related Topics
1. On the Configurations tab of the HPC and Analysis Options dialog, use the Export…
button to export the configuration to a file.
2. Switch to the destination design type (or product) and use the Import… button to import the
configuration data.
Any data that is not applicable to the destination design type is ignored; any settings present in
the destination design type that were not present in the source configuration will be assigned
default values. The user may then edit the copy, as desired.
To assist users who need to specify batch options and are unable to use the job submission GUI, a
new help option is added to all products. If the product is launched with the -batchoptionhelp
command line argument, a message box is displayed which lists and describes the most common
batch options specific to the product.
Maxwell and PEmag desktops remain open, you can modify the related Maxwell design using
PEmag.
The first time you invoke PEmag from Maxwell, an “About PExprt Modeler [PEmag]” dialog displays,
informing you that modeling of magnetic components is disabled when PEmag is invoked from
Maxwell. Uncheck the “I want to see this message...” checkbox to prevent this dialog from displaying
again.
Note Please refer to the documentation included with PEmag for detailed information on how to
use that application to work with PEmag designs.
Related Topics
3. When finished creating the PEmag design, you can choose either Modeler>FEA based
Modeler(2D)>Maxwell 2D Link>Eddy Current or Modeler>FEA based Modeler
(2D)>Maxwell 2D Link>Electrostatic to have PEmag generate a corresponding design for
Maxwell.
You can also click on the FEA Eddy Current or FEA Electrostatic toolbar icons.
4. Click OK to close the dialog. PEmag generates a Maxwell 2D design and adds it to the
Maxwell Project Manager and desktop. The new design is created corresponding to the
PEmag model. The project is immediately saved on disk with the name, <PEmag project
name>.mxwl, in a new folder named <PEmag project name>.pjt, which is under the same
directory as the PEmag project.
Note l Adding a Maxwell 2D design via PEmag is not undo-able.
l After a Maxwell design is created through PEmag, attempting to close Maxwell
while PEmag is still open, displays a message to inform that the Maxwell
Related Topics
a. If you select Yes, the Maxwell 2D project is reloaded from disk, and any changes made
in Maxwell to the Maxwell 2D design and project are lost.
b. If you select No, the Maxwell design and project on the Maxwell desktop will be
overwritten by the design and project generated through PEmag with the latest changes
in the PEmag model. The Maxwell 2D project is immediately saved to the disk.
l If you launch PEmag from Maxwell with no Maxwell projects loaded; then open an existing
PEmag project which has previously been used to generate a Maxwell project, modify the
PEmag model and regenerate the Maxwell design (by selecting either Modeler>FEA
based Modeler(2D)>Maxwell 2D Link>Eddy Current or Modeler>FEA based
Modeler(2D)>Maxwell 2D Link>Electrostatic), PEmag will pop up a dialog (see above)
to ask whether to open the existing Maxwell 2D project.
a. If you click Yes, the Maxwell 2D project on disk is loaded to the Maxwell desktop.
b. If you click No, PEmag generates a Maxwell project and design on the Maxwell desktop,
corresponding to the modified PEmag model. The project is immediately saved to the
disk, overwriting the previous project on disk and deleting the previous solutions (if any).
l If you modify a PEmag model and regenerate the Maxwell design; then attempt to close
PEmag, a dialog pops up asking whether to keep the modified 2D model files.
Related Topics
PEmag model and regenerate the Maxwell design, the old Maxwell design is overwritten
and the solutions are deleted.
l While the Maxwell design is being solved on the Maxwell desktop, if you modify the
corresponding PEmag design on the PEmag desktop and invoke PEmag to regenerate the
Maxwell design, the solver process on the Maxwell desktop will be aborted and the Maxwell
design that has been modified by PEmag is loaded into Maxwell and saved to the disk
simultaneously.
Related Topics
l When you intend to run a parametric analysis, in which you specify a series of variable values
Project A project variable can be assigned to any parameter value in the project in which it was
Variables created. Maxwell differentiates project variables from other types of variables by
prefixing the variable name with the $ symbol. You can manually include the $ symbol
in the project variable's name, or Maxwell can automatically append the $ after you
define the variable. Project variables can be used in any design within the project.
Design A design variable can be assigned to any parameter value in the Maxwell design in
Variables which it was created. Design variables are not available to other designs within the
same project.
Related Topics
Defining an Expression
Defining Mathematical Functions
Assigning Variables
Viewing Output Variable Convergence
Specifying Output Variables
Using Optimetrics for Design Analysis
Choosing a Variable to Optimize
Selecting Objects by Variable
Exporting Variables for Documentation
with the symbol after you define the variable. Project variables can be used in any design within the
project.
1. Click Project>Project Variables.
l Alternatively, right-click the project name in the project tree, and then click Project
The Sweep check box lets you designate variables to include in solution indexing as a way to
permit faster post processing. Variables with Sweep unchecked are not used in solution
indexing. If a solution exists, checking or unchecking a variable’s Sweep setting produces a
warning that the change will invalidate existing solutions. To continue, click OK to dismiss the
warning dialog.
If a variable has dependent variables, the Sweep check box is disabled and cannot be
changed.
The new variable can now be assigned to a parameter value in the project in which it was created.
Related Topics
3. Click Remove and from the drop-down menu, select Force Remove All Unused and click
OK. A warning message asks whether you want the unapplied changes in the property dialog
to be applied, and clear undo/redo history. If you select No, nothing happens. If you select
Yes, all unapplied changes are applied first, and undo/redo history is cleared; all variables that
are not used are removed (including those that are only in undo/redo history before this
command is executed).
Any existing Design variables are listed in the Properties dialog with the name followed by
cells for Value, Unit, Evaluated Value, Type, Description, and Read-only and Hidden check
boxes. A Show Hidden check box on the lower right of the Properties dialog controls the
appearance of any Hidden variables.
Initially, leave the radio button with Value selected until you have defined a variable. The other
radio buttons let you enable defined variables for Optimization/Design of Experiments,
Tuning, Sensitivity or Statistics. Selecting one of these radio buttons adds a new column to the
Variable definition row for which you can check or uncheck Include for regular variables for
that kind of Optimetrics simulation. For further discussion, see Optimetrics.
2. Click Add.
The Add Property dialog box appears.
3. In the Name box, type the name of the variable.
Variable names must start with a letter, and may include alphanumeric characters and
underscores ( _ ). The names of intrinsic functions and the predefined constant pi (π) cannot
be used as variable names.
You can sort the variables by clicking on the Name column header. By default, variables are
sorted in original order. Clicking once sorts them in ascending order, noted by a triangle
pointing up. Clicking against sorts in descending order, noted by a triangle pointing down.
Clicking a third time sorts in original order, with no triangle.
4. Select a radio button for the variable use:
Selected Use Setable Properties
Variable Unit Type, Units, Value
Array Index Variable Associate Array variable,
Value
Separator Value
Post Processing Unit Type, Units, Value
Variable
The Sweep check box lets you designate variables to include in solution indexing as a way to
permit faster post processing. Variables with Sweep unchecked are not used in solution
indexing. If a solution exists, checking or unchecking a variable’s Sweep setting produces a
warning that the change will invalidate existing solutions. To continue, click OK to dismiss the
warning dialog.
If a variable has dependent variables, the Sweep check box is disabled and cannot be
changed.
Related Topics
The Local Variables Properties dialog box appears. From the Properties dialog you can
Add, Add Array, Edit... or Remove variables. This section describes Add Array. Use the
links for descriptions of Add,.Edit and Remove,
Any existing Design variables are listed in the Properties dialog with the name followed by
cells for Value, Unit, Evaluated Value, Type, Description, and Read-only and Hidden check
boxes. A Show Hidden check box on the lower right of the Properties dialog controls the
appearance of any Hidden variables.
Initially, leave the radio button with Value selected until you have defined a variable. The
other radio buttons let you enable regular variables for Optimization/Design of Experiments,
Tuning, Sensitivity or Statistics. Array variables cannot be enabled for Optimetrics use.
2. Click the Add Array.... button.
The Add Array dialog displays.
3. Specify a variable Name in the text field.
4. Select a Unit Type and Units from the drop-down menus.
5. To specify the array with Edit in Grid Selected, you can begin by clicking the Append Rows...
button to display the Number of Rows dialog. (For Edit in plain text field, see below.)
can edit the rows relative a row selection by clicking buttons to Add Row Above, Add Row
Below, or Remove Row. All cells must contain a value.
7. When you have completed the array, click OK to close the dialog,
The Array variable is listed in the Design Properties dialog as a Local Variable. The array
variable value field includes the array contents in brackets with the unindexed data values
delimited by commas.
If you elected to edit the array Edit in plain text field in the Add Array dialog, the bracketed and
comma delimited format is used.
Related Topics
Properties on the shortcut menu. You can also access the Design variables from a menu
in the lower left corner of the following Optimization dialogs: Parametric, Optimization,
Sensitivity, Statistical, Design of Experiments, and Design Xplorer Setup. Click Edit
Variables and from the menu select Edit Design Variables.
The Local Variables Properties dialog box appears. From the Properties dialog you can Add,
Add Array, Edit, or Remove variables. This section describes Edit. Use the links for
descriptions of Add, Add Array and Remove.
Any existing Design variables are listed in the Properties dialog with the name followed by
cells for Value, Unit, Evaluated Value, Type, Description, and Read-only and Hidden check
boxes. A Show Hidden check box on the lower right of the Properties dialog controls the
appearance of any Hidden variables.
Initially, leave the radio button with Value selected until you have defined a variable. The other
radio buttons let you enable defined variables for Optimization/Design of Experiments,
Tuning, Sensitivity or Statistics. Selecting one of these radio buttons add a new column to the
Variable definition row for which you can check or uncheck Include a regular variable for that
kind of Optimetrics simulation. Array variables cannot be Enabled for Optimetrics. For further
discussion, see Optimetrics.
2. Select a variable to highlight it.
3. Click the Edit button.
For regular variables, the Add Property dialog for that variable opens, and for array
variables, the Edit Array variable dialog for that variable opens.
4. Complete the edits and OK the dialog to apply them.
variables.
4. Select the variable and click Remove and OK.
To remove all unused design variables (that is, not in the undo/redo command history):
1. Remove all references to unused variables in the design, including dependent variables.
2. Save the project to erase the command history.
3. Click Maxwell 2D or Maxwell 3D>Design Properties to display the Properties dialog with
list of local variables.
4. Select the variable and click Remove and from the drop-down menu, select Remove All
Unused and click OK. All variables that are not in use (not in undo/redo history) are removed.
To force remove all unused design variables:
1. Remove all references to unused variables in the design, including dependent variables.
2. Click Maxwell 2D or Maxwell 3D>Design Properties to display the Properties dialog with
list of local variables.
3. Select the variable and click Remove and from the drop-down menu, select Force Remove
All Unused and click OK. A warning message asks whether you want the unapplied changes
in property dialog to be applied, and clear undo/redo history. If you select No, nothing
happens. If you select Yes, all unapplied changes are applied first, and undo/redo history is
cleared; all variables that are not used are removed (including those that are only in undo/redo
history before this command is executed).
Related Topics
Adding Datasets
Datasets are collections of plotted data points that can be extrapolated into an equation based on the
piecewise linear makeup of the plot. Each plot consists of straight line segments whose vertices
represent their end points. A curve is fitted to the segments of the plot and an expression is derived
from the curve that best fits the segmented plot. The created expression is then used in a piecewise
linear intrinsic function such as: pwl, pwlx or pwl_periodic. You can add datasets at either the Project
Level or the Design level. They can be for various purposes, including to define frequency dependent
port impedances or frequency dependent global variables, and boundary definitions.
Note The descriptions of the various controls and fields for working with datasets are also
applicable to the BH Curve dialog box when Specifying a BH Curve for Nonlinear Relative
Permeability.
Design level datasets can be used in geometry entities like part commands, coordinate systems,
points, and planes. Datasets do not work with equation-based surfaces or curves. Datasets can be
used in directly with piecewise linear functions in expressions or indirectly through variables that can
refer to the dataset. Datasets can be used in the following operations.
l Creation or editing of geometry.
When a geometry uses a dataset directly, edit dataset invalidates the solution. When a
geometry uses a variable that is defined by dataset, edit dataset does not invalidate the
solution.
l Animation based on a variable which can index in datasets.
l Copy/paste of geometry. If a part refers to a design dataset, it will be pasted to destination
design.
The following procedure describes how to add a dataset manually. You can also add datasets:
l By importing data from an external file.
1. For a Project level dataset, click Project>Datasets. For a Design level dataset, click Maxwell
2D>Design Datasets, Maxwell 3D>Design Datasets, or RMxprt>Design Datasets.
The Datasets dialog box appears. This lists any existing datasets for the Project or Design
level, respectively.
2. Click Add.
The Add Dataset dialog box appears. The dialog contains fields for the Dataset name, and a
table for x- and y- coordinates. It contains a graphic display that draws a line for the
coordinates you add. It also includes buttons for the following functions:
l Swap X-Y Data - this swaps the x- and Y- coordinates and adjusts the graphical display.
l Import Dataset - this provides a way to import data sets from an external source. The
format is a tab separated points file. Clicking the button opens a file browser window.
l Export Dataset -- this provides a way to export the current dataset to a tab separated
l Add Row Below - adds a new row to the table below the selected row/
l Append Row - opens a dialog that lets you specify a number of rows to add to the table.
3. Optionally, type a name other than the default for the dataset in the Name box.
4. Enter the x- and y- coordinates by one of the following methods
Type the x- and y-coordinates for the first data point in the row labeled 1.Type the x- and y-
coordinates for the remaining data points in the dataset using the same method.
After you type a point’s coordinates and move to the next row, the point is added to the plot,
adjusting the display with each newly entered point.
Note l The x-coordinate values for successive data points must increase within ten
significant digits.
l You can also use the Import Dataset button to import data coordinates. Doing so
will overwrite any existing values in the Coordinates panel.
5. When you are finished entering the data point coordinates, click OK.
6. Click Done in the Datasets dialog box.
The dataset plot is extrapolated into an expression that can be used in parametric analyses,
boundary definitions, or assigned to a material property value.
Related Topics
Related Topics
Adding Datasets
Importing Datasets
Editing Datasets
Cloning Datasets
Exporting Datasets
Removing Datasets
Using SheetScan
1. You can change the properties of various elements of the preview plot such as the major and
minor grid colors, title font, and trace line style by double-clicking the element to open its
properties dialog box.
2. Depending on the type of element selected, tabs allow you to set the Color, Font, Line Style,
Scaling, Title, and Legend properties.
3. Right-clicking inside the plot window opens a context menu containing commands to add and
delete data markers and labels, change trace type, and print the plot.
4. Click Save as Defaults to make the changes the default values.
5. Click OK to apply the changes only while the current dataset plot window is open. Click Save
as Defaults to keep the changes.
Importing Datasets
To import data for a dataset from a file:
1. For a Project level dataset, click Project>Datasets. For a Design level dataset, click Maxwell
2D>Design Datasets, Maxwell 3D>Design Datasets, or RMxprt>Design Datasets.
The Datasets dialog box appears.
2. Click the Import button.
3. In the file browser window that appears, choose the tab delimited data file you wish to import,
and click OK to import the data.
4. After importing the data, you can modify it manually (see Editing Datasets).
Note You can also import a dataset in the Add Dataset and Edit Dataset
windows.
Related Topics
Adding Datasets
Editing Datasets
Cloning Datasets
Exporting Datasets
Removing Datasets
Using SheetScan
Editing Datasets
1. For Project level datasets, click Project>Datasets. For Design level datasets, click Maxwell
2D>Design Datasets, Maxwell 3D>Design Datasets, or RMxprt>Design Datasets.
The Datasets dialog box appears.
2. Click the dataset name you want to modify, and then click Edit.
The Edit Dataset dialog box appears.
3. Optionally, type a name other than the default for the dataset in the Name box.
4. Type new values for the data points as desired.
The plot is adjusted to reflect the revised data points.
5. When you are finished entering the data point coordinates, click OK.
6. Click Done.
Related Topics
Adding Datasets
Adding a Design Variable
Modifying Datasets
Using Piecewise Linear Functions in Expressions
Using Dataset Expressions
Cloning Datasets
Cloning a dataset generates a copy of an existing dataset. The clone can then be modified as
needed.
1. For Project level datasets, click Project>Datasets. For Design level datasets, click Maxwell
2D>Design Datasets, Maxwell 3D>Design Datasets, or RMxprt>Design Datasets.
The Datasets dialog box appears.
2. Click the dataset name you want to clone, and then click Clone.
The Clone Dataset dialog box appears.
3. Modify the dataset as needed.
Related Topics
Adding Datasets
Importing Datasets
Editing Datasets
Exporting Datasets
Removing Datasets
Using SheetScan
Exporting Datasets
1. For Project level datasets, click Project>Datasets. For Design level datasets, click Maxwell
2D>Design Datasets, Maxwell 3D>Design Datasets, or RMxprt>Design Datasets.
Related Topics
Adding Datasets
Importing Datasets
Editing Datasets
Cloning Datasets
Removing Datasets
Using SheetScan
Removing Datasets
1. For Project level datasets, click Project>Datasets. For Design level datasets, click Maxwell
2D>Design Datasets, Maxwell 3D>Design Datasets, or RMxprt>Design Datasets.
The Datasets dialog box appears.
2. Click the dataset name you want to remove, and then click Remove.
3. When finished removing datasets, click Done.
Related Topics
Adding Datasets
Importing Datasets
Editing Datasets
Cloning Datasets
Exporting Datasets
Using SheetScan
Using SheetScan
SheetScan allows you to extract characteristics data from graphics such as data sheets which have
been scanned and saved in any of the following formats: .bmp, .dib, .jpg, .gif, .tif, .tga, .pcx, .htm, or
.html.
In addition to importing graphic files directly, SheetScan also can be used to browse the Internet for
datasheet information and transfer a snapshot of the web page to the SheetScan editor where you
can map axes on the image as an overlay. You can then manually add datapoints to approximate the
characteristic curve(s) on the datasheet.The sampled data can then be converted to Maxwell format,
and the extracted data exported to a Maxwell dataset or saved to a tab-delimited file.
The process for creating a dataset using SheetScan involves four basic operations:
l Loading a datasheet into SheetScan.
Related Topics
SheetScan Toolbars
SheetScan Settings
The Curve Values Window
Loading a Datasheet into SheetScan
Deleting a Datasheet Picture
Defining a SheetScan Coordinate System
Defining a Characteristic Curve in SheetScan
SheetScan Toolbars
Three toolbars are available in SheetScan. They provide convenient access to commands that are
also found in the SheetScan main menu. Toolbars can be toggled on and off via the View>Toolbar
sub-menu.
l The Standard toolbar includes access to basic Windows functions such as file Open and
l The Curve toolbar contains tools for working with curve values. A pull-down menu allows you
to select the curve on which to work. Other tools allow you to: change curve settings, change
the curve’s coordinate system, and to select, append, delete, and insert points on the active
curve
l The Zoom toolbar provides tools for scaling the current view, zooming in and out, resetting the
zoom to 100 percent, and toggling the display of the curve’s grid on and off.
Related Topics
SheetScan Settings
The Curve Values Window
Loading a Datasheet Picture into SheetScan
Deleting a Datasheet Picture
Defining a SheetScan Coordinate System
Defining a Characteristic Curve in SheetScan
SheetScan Settings
Default settings are made by choosing Options>Settings. The Settings dialog box contains three
tabs:
l The Document tab allows you to set the Width and Height of the sheet created when a
picture imported into the SheetScan editor. You can either enter the dimensions manually, or
allow SheetScan to adapt the dimensions to the picture being loaded.
l The Axis tab allows you to set the default Name, Unit of measure, Scaling factor, and Offset
value for the X and Y axes. Checking Monotonicity in X automatically prevents you from
adding consecutive data points whose X-values are not increasing.
l The Representation tab lets you choose whether to connect points on the characteristic
curve and to choose the color of the connecting line. You can also choose to display markers
for the point chosen when defining a curve, to set the color of displayed markers, and to set the
color of markers when they are selected.
Note You can also override the default settings on the Axis and Representation tabs for
individual curves (see Defining a Characteristic Curve in SheetScan).
Related Topics
The View>Curve Values menu item toggles the display of a dock-able Curve Values window that
displays the data points you place when creating a characteristic curve. Data for each curve on a
sheet is displayed on its own tab. You can manually change the X and Y values in the table to fine-
tune the characteristic curve.
Related Topics
By default, SheetScan opens a new, blank datasheet editing window. There are two ways to load a
datasheet picture into the editor:
4. Click the To SheetScan button to copy the visible contents of the HtmlViewer window
into the SheetScan editor window.
Note To hide the datasheet picture, choose Picture on the View
menu.
After loading a datasheet picture into the SheetScan editor, the next step is Defining a coordinate
system for the imported picture.
Related Topics
SheetScan Toolbars
SheetScan Settings
The Curve Values Window
Deleting a Datasheet Picture
Loading a Datasheet Picture into SheetScan
Defining a SheetScan Coordinate System
Defining a Characteristic Curve in SheetScan
Related Topics
Use this procedure to define a coordiante system typically for a graph on a datasheet picture that you
have previously loaded into the SheetScan editor.
To define the coordinate system:
1. Select Coordinate System>New to open the Coordinate System dialog box.
2. Click the Point1 button.
The Coordinate System dialog box disappears temporarily and the cursor changes to a
crosshairs.
3. Position the cursor over a corner of the datasheet graph and click the left mouse button.
The Coordinate System dialog box reappears displaying the X- and Y-Coordinate values for
the chosen point.
4. Enter the X-Value and Y-Value for this point. Typically, these values will correspond to the
values taken from the axis scale values on the datasheet.
5. Select the desired scaling (linear, logarithmic, or decibel) for both the X and Y axes.
6. Repeat steps 2 through 4 for the Point2 and Point3 buttons.
7. Click OK. The grid is placed in the graphic.
Note l You can edit the grid after placement either by selecting Coordinate
System>Properties from the SheetScan main menu bar, by clicking the
coordinate system icon on the Curve toolbar, or by right-clicking in the
SheetScan editing window and selecting Coordinate system from the
context menu.
l You can hide the grid by selecting Grid on the View menu, or by clicking the
grid icon on the Curve toolbar.
8. Proceed to Defining a Characteristic Curve in SheetScan.
Related Topics
SheetScan Toolbars
SheetScan Settings
Once you have loaded a datasheet picture in the editor and have defined a coordinate system, you
can define one or more characteristic curves as follows:
1. Choose Curve>New.
The Curve Settings dialog box opens.
2. Define the properties of the curve. Refer to SheetScan Settings for a detailed explanation of
the settings you can make on the Axis and Representation tabs.
3. When finished defining curve properties, click OK.
The cursor changes to cross hairs.
4. Click the points of the characteristic which you want to capture for the dataset. The points are
connected automatically.
5. Repeat steps 1 through 4 for each additional characteristic curve you wish to define.
After characteristic curves have been defined, you can perform various operations on them. Refer to
Performing Operations on SheetScan Curves for details.
Related Topics
SheetScan Toolbars
SheetScan Settings
The Curve Values Window
l edit a curve
l delete a curve
Related Topics
SheetScan Toolbars
SheetScan Settings
The Curve Values Window
Related Topics
SheetScan Toolbars
SheetScan Settings
The Curve Values Window
The following SheetScan curve editing functions are available either via the main Curve menu, the
Curve toolbar, or the editor window context menu:
l Select points — click on a point to select it. Ctrl+click selects multiple points.
l Insert points — click to insert new data points between existing data points.
Related Topics
SheetScan Toolbars
SheetScan Settings
Maxwell requires that characteristics be monotonically increasing along the X-axis. In other words,
successive data points must have increasing X-values, while Y-values may both increase and
decrease. You can check for monotonicity in X as follows:
1. Select Curve>Check Monotonicity.
If the characteristic curve is monotonically increasing in X-value, the check completes without
notice. Typical examples of curves that meet monotonicity criteria are shown below.
2. If the characteristic curve is not monotonically increasing in X-value, a dialog box displays
informing you that errors were found. Click Yes to have SheetScan automatically correct the
errors.
Related Topics
SheetScan supports data import from the following file types: Simplorer Characteristic (*.mdx,
*.mda), Microsoft Access (*.mdb), Microsoft Excel (*.xls), text (*.txt), comma separated value (*.csv),
ignored.
b. Selecting a .txt, .tab, or .csv file opens an Import dialog box in which you can specify how
to settings for reading the data in the file for import. You can choose the Separator(s) and
Decimal Symbol, as well as the line at which to begin the import. The dialog box shows
both the original text and the text as it would appear when imported based on the current
import settings.
When satisfied with the import settings, click OK to import the data.
3. Change Curve Settings as needed and click OK to complete the data import.
The new characteristic curve is added to the current SheetScan sheet.
You can export SheetScan curve data directly to a Maxwell or RMxprt Dataset.
1. To export the curve data, choose File>Export.
2. In the Savedialog box, choose Current Curve (default) to export current curve data, or
Curves if you wish to choose the curve(s) whose data you wish to export. Choosing Curves
reveals a list box showing all of the curves available for export. Check the Export box for the
desired curves.
Note The Multidimensional Table option is not currently
supported.
3. Choose Equidistant if you want to set the Start and StopX-Channel values and a Sample
Rate or Number of samples for the exported dataset(s),
4. Choose Dataset to export curve data directly to the project’s dataset file.
Note Exporting data to a file via the File button is not currently
supported.
Related Topics
Adding Datasets
The predefined variables X, Y, Z, Phi, Theta, R, and Rho must be entered as such. X, Y, and Z are
the rectangular coordinates. Phi, Theta, and Rho are the spherical coordinates. R is the cylindrical
radius, and Rho is the spherical radius.
If you do not specify units, all trigonometric expressions expect their arguments to be in radians, and
the inverse trigonometric functions’ return values are in radians. If you want to use degrees, you
must supply the unit name deg. When the argument to a trigonometric expression is a variable, the
units are assumed to be radians. These function names are reserved and may not be used as
variable names.
As far as expression evaluation is concerned: units are conversion factors (that is, from the given unit
to SI). Note also that the evaluated value of an expression) is always interpreted as in SI units.
Related Topics
Defining an Expression
Expressions are mathematical descriptions that typically contain intrinsic functions, such as sin(x),
and arithmetic operators, such as +, -, *, and /, well as defined variables. For example, you could
define: x_size = 1mm, y_size = x_size + sin(x_size). Defining one variable in terms of another makes
a dependent variable. Dependent variables, though useful in many situations, cannot be the subject
of optimization, sensitivity analysis, tuning, or statistical analysis.
The Constants tab of the Project Variables dialog lists the available predefined constants.These
may not be reassigned a new value.
Numerical values may be entered in ANSYS’ shorthand for scientific notation. For example, 5x107
could be entered as 5e7.
Note Maxwell 2D, 3D, and RMxprt do not support expressions that include the combination of
array and intrinsic variables.
Related Topics
The operators that can be used to define an expression or function have a sequence in which they
are performed. The following list shows both the valid operators and the sequence in which they are
accepted (listed in decreasing precedence):
( ) parenthesis 1
! not 2
^ (or **) exponentiation 3
(If you use "**" for exponentiation, as in previous software
versions,
it is automatically changed to "^".)
- unary minus 4
* multiplication 5
/ division 5
+ addition 6
- subtraction 6
== equals 7
!= not equals 7
> greater than 7
< less than 7
>= greater than or equal to 7
<= less than or equal to 7
&& logic and 8
|| logic or 8
Related Topics
Defining an Expression
Maxwell recognizes a set of intrinsic variables that can be used to define expressions. Intrinsic
variable names are reserved and may not be used as user-defined variable names.
User-defined variables cannot depend on any intrinsic variables.
The following intrinsic variables may be used to define expressions:
Maxwell recognizes a set of intrinsic trigonometric and mathematical functions that can be used to
define expressions. Intrinsic function names are reserved and may not be used as variable names.
The following intrinsic functions may be used to define expressions:
Note If you do not specify units, all trigonometric functions interpret their arguments as radians.
Likewise, inverse trigonometric functions' return values are in given in radians. When the
argument to a trigonometric expression is a variable, the units are assumed to be radians.
If you want values interpreted in degrees, supply the argument with the unit name deg.
Related Topics
Defining an Expression
This value for xSize automatically opens a dialog first for the idx index variable:
And then dialogs automatically open for each dataset variable implicit for the predefined array
variable:
Related Topics
Adding Datasets
Adding a Design Variable
Modifying Datasets
Using Dataset Expressions
Related Topics
Adding Datasets
Adding a Design Variable
Modifying Datasets
Using Piecewise Linear Functions in Expressions
Assigning Variables
To assign a variable to a parameter in Maxwell:
l Type the variable name or mathematical expression in place of a parameter value in a Value
text box.
If you typed a variable name that has not been defined, the Add Variable to DesignName
dialog box will appear, enabling you to define the design variable.
If you typed a variable name that included the $ prefix, but that has not been defined, the Add
Variable dialog box appears, enabling you to define the project variable.
Note You can assign a variable to nearly any design parameter assigned a numeric value in
Maxwell. See the Maxwell online help about the specific parameter you want to vary to
determine if can be assigned a variable.
Related Topics
Related Topics
1. If the variable is a design variable, click Maxwell 2D (or Maxwell 3D, or RMxprt)>Design
Properties. You can also access the Design variables from a menu in the lower left corner of
the following Optimization dialogs: Parametric, Optimization, Sensitivity, Statistical,
Design of Experiments, and Design Xplorer Setup. Click Edit Variables and from the
menu select Edit Design Variables.
If the variable is a project variable, click Project>Project Variables. You can also access the
Project variables from a menu in the lower left corner of the following Optimization dialogs:
Parametric, Optimization, Sensitivity, Statistical, Design of Experiments, and Design
Xplorer Setup. Click Edit Variables and from the menu select Edit Project Variables.
The Properties dialog box appears.
2. Click the tab that lists the variable you want to include in the sensitivity analysis.
3. Click the row containing the variable you want to include in the sensitivity analysis.
Note Dependent variables cannot be included in a sensitivity
analysis.
4. Select the Sensitivity option.
5. For the variable you want to include in the sensitivity analysis, select Include.
The selected variable is now available for sensitivity analysis in a sensitivity setup defined in
the current design or project.
Note Complex numbers are not allowed for variables to be used in an Optimetrics sweep, or for
optimization, statistical, sensitivity or tuning setups.
6. Optionally, override the default minimum and maximum values that Optimetrics uses for the
variable in every sensitivity analysis. During sensitivity analysis, Optimetrics does not consider
variable values that lie outside of this range.
7. Optionally, override the default initial displacement value that Optimetrics uses for the variable
in every sensitivity analysis. During sensitivity analysis, Optimetrics will not consider a variable
value for the first design variation that is greater than this step size away from the starting
variable value.
8. Click OK.
Related Topics
Design of Experiments, and Design Xplorer Setup. Click Edit Variables and from the
menu select Edit Design Variables.
If the variable is a project variable, click Project>Project Variables. You can also access the
Project variables from a menu in the lower left corner of the following Optimization dialogs:
Parametric, Optimization, Sensitivity, Statistical, Design of Experiments, and Design
Xplorer Setup. Click Edit Variables and from the menu select Edit Project Variables.
The Properties dialog box appears.
2. Click the tab that lists the variable you want to tune.
3. Click the row containing the variable you want to tune.
Note Dependent variables cannot be
tuned.
4. Select the Tuning option.
5. For the variable you want to tune, select Include.
Note Complex numbers are not allowed for variables to be used in an Optimetrics sweep,
or for optimization, statistical, sensitivity or tuning setups.
6. Click OK.
The selected variable is now available for tuning in the Tune dialog box.
Related Topics
Tuning a Variable
Related Topics
The pasted variables appear in a tab separated column format. Fields that do not contain values are
left blank.:
Related Topics
Assigning Variables
Related Topics
example, selecting centimeters (cm) as the new unit of measurement results in a dimension
of 10 millimeters (mm) becoming 10 cm.
l Clear the Rescale to new units option (the default) to convert the dimensions to the new
units without changing their scale. For example, selecting cm as the new unit of
measurement results in a dimension of 10 mm becoming 1 cm.
4. Click OK to apply the new units to the model.
Design Settings
The Design Settings dialog allows you to specify how the simulator will deal with some aspects of the
design. The tabs present in this dialog, and the options available on each tab, vary with the solution
type.
l Set the Material Thresholds for treating materials as conductors/insulators.
l Set the Material Override (Maxwell3D only) to allow metals to automatically override
dielectrics.
l Set the Matrix Computation method for Magnetostatic Solutions.
l Set the Matrix Computation to compute the inductance matrix for Transient solutions.
l Set the Symmetry Multiplier for Transient and Eddy current solutions.
l Set transient coupling with Simplorer on the Advanced Product Coupling tab (Transient
solutions Only).
l Set the Model Settings (Maxwell2D XY Transient, and 2D Eddy current solutions Only).
l Set Skew Model options (Maxwell2D XY Transient solutions with cylindrical rotational motion
Only).
l Set the default Background material (Maxwell2D solutions only).
Related Topics
In the mesher, the dielectrics are "subtracted" from the metals in the intersecting region. That is, the
part of the dielectric that is inside the metal is removed, and if the dielectric is completely inside, the
whole object disappears.
The purpose of this feature is to allow you to avoid doing explicit subtraction in the modeler. One
example application is a via that passes through many dielectric layers--with the option turned on,
the via does not have to be subtracted from the layers.
Note Users must be careful: this setting changes the "ground rules" of the modeler, and may
have unexpected results.
Related Topics
Analyze Objects
Analyze Interobject Misalignment
Analyze Surface Mesh
Healing an Imported Object
Materials
Maxwell 2D/3D provides two Matrix Computation methods for calculating the inductance of
current-carrying coils for magnetostatic solutions: Apparent and Incremental.
l Apparent inductance is defined as the ratio of flux to current at a certain operating
condition. Alternatively, this can be expressed as the slope of a line from the origin to the
operating point on the BH curve. Apparent inductance is commonly used in nonlinear
magnetic applications and in circuit analysis, and is the default method used by Maxwell.
l Incremental inductance is defined as the ratio of delta flux to delta current at a certain
operating condition. This is equivalent to the slope of the tangent to the BH curve at the
operating point. Incremental inductance is commonly used in physical design because it is
easy to measure.
To set the matrix computation method:
1. Click Maxwell>Design Settings.
l Alternate method: In the project tree, right-click <Design_name>, and select Design
Settings.
The Design Settings dialog box appears.
2. On the Matrix Computation tab, select the desired method: Apparent or Incremental.
Note If you change the computation method after solving, all matrix results of both
3. Optionally, if you check Save as default, newly inserted designs will be set to use the
specified computation method.
4. When finished changing settings, click OK.
Related Topics
Design Settings
Maxwell 2D/3D provides an option on the Matrix Computation tab for computing the inductance
matrix for transient solutions. When the Compute inductance matrix option is selected, the
computed matrix quantities will be available at all time steps. The matrix quantities are listed in the
reporter and thus are available for post-processing, output variables creation, and Optimetrics
studies.
Note During the inductance calculation in the transient solver:
l Eddy effects for all objects are turned-off even if “Eddy Effect” is checked in the "Set
Eddy Effects" dialog. However, the field solution and all other results will consider the
eddy effects as set in the interface.
l For a field system with multiple stranded windings, after all nonlinear materials are
frozen, one winding is supplied with 1A DC current while the other winding is open
(all other sources are turned-off).
The size of the computed inductance matrix is equal to the number of winding setups, i.e., the matrix
will be N xN when there are N winding setups; and the total number of inductance-related quantities
will be N2. Components of the full matrix are available for plots and Optimetrics calculation even
though the matrix will always be symmetric. You can choose to access only the upper right half of the
matrix by selecting the corresponding quantities as listed in the reporter dialog. For example, the
upper half of a 2x2 matrix will be the L11, L12 and L22 quantities.
Maxwell 2D/3D provides two Matrix Computation methods for calculating the inductance of
windings for transient solutions: Apparent and Incremental.
l Apparent inductance is defined as the ratio of flux to current at a certain operating
condition. Alternatively, this can be expressed as the slope of a line from the origin to the
operating point on the BH curve. Apparent inductance is commonly used in nonlinear
magnetic applications and in circuit analysis, and is the default method used by Maxwell.
l Incremental inductance is defined as the ratio of delta flux to delta current at a certain
operating condition. This is equivalent to the slope of the tangent to the BH curve at the
operating point. Incremental inductance is commonly used in physical design because it is
easy to measure.
Settings.
The Design Settings dialog box appears.
2. On the Matrix Computation tab, select Compute inductance matrix, and select the
desired method: Apparent or Incremental.
Note l The default is NOT to compute the inductance matrix. Changing the setting for an
existing design does not affect the solution for the previous simulation. For example,
if a transient solve setup has 1 second set as the end time and is solved with the
Compute inductance matrix option off (unchecked) and a plot of matrix quantities
is created vs. time, the plot will not show any values because no matrix quantities
were computed. Subsequently, if the compute option is enabled (checked) and the
end time extended to 2 seconds, after simulation, matrix quantities will be available
from > 1 second to 2 seconds, at all solved time steps.
l If you change the computation method after solving, all matrix results of both
AdaptivePass and LastAdaptive solutions will be invalidated. Then, on the next
simulation, the matrix of the last solved pass will be re-computed with the new
method. If there are matrix expression caches for the AdaptivePass solution, then the
cached values of previous passes will not be available because only the last pass is
re-simulated.
3. Optionally, if you check Save as default, newly inserted designs will use the specified setting.
4. When finished changing settings, click OK.
Related Topics
Design Settings
Inductance Computation for 2D and 3D Transient Solutions
Validations Tab
Model Validation Settings
You can adjust the degree to which the software checks a model for faults that could jeopardize
mesh accuracy. There are four levels of model validation that a user can specify for a given design:
Warning Only, Basic, Strict, and None. Note that this setting affects only the "3D Model" stage of
a design validation. The default Entity Check Level is Strict.
l The Warning Only entity check setting allows all models to pass 3D Model validation
regardless of any faults that are found. These faults are posted in the message window as
warnings.
l The Basic entity check setting allows most models to pass 3D Model validation. Some faults
are flagged as model errors, thereby prohibiting a design from proceeding to the meshing
stage of an analysis. You must correct such errors before attempting to analyze the design
under the Basic setting, or you must change the entity check level to Warning Only.
l The Strict entity check setting enforces a tighter tolerance for model faults than the Warning
Only and Basic settings. All model faults that are found during 3D Model validation are posted
to the message window. These errors must be corrected before attempting to analyze the
design under the Strict setting, or you must change the entity check level to Basic or Warning
Only.
l The None setting disables model validation.
In addition, check boxes allow you to adjust model validation to Ignore Unclassified Objects and
to Skip Intersection Checks. These settings are unchecked by default.
Related Topics
Model Analysis
Analyze Objects
Interobject Misalignment
Analyze Surface Mesh
Heal
Technical Notes: Healing and Meshing
Technical Notes: Detecting and Addressing Model Problems to Improve Meshing
If you are using symmetry and/or master/slave boundary conditions in your solution, you may need to
specify a multiplier (so that the other part of the model, which is not included in the solution domain,
can be properly taken into account). This symmetry multiplier will be automatically applied to all input
quantities including: input voltage, inductance, resistance, load torque, mass, damping, external
circuit; and all output quantities including: induced voltages, flux linkages in every winding, stranded
loss, solid loss, core loss, torque and force.
To specify a multiplier:
1. Select Maxwell>Design Settings from the main menu to open the Design Settings dialog,
then select the Symmetry Multiplier tab.
l You can also right-click Model in the Project Manager tree, and select Set Symmetry
Related Topics
l Difference
l Band Arc
l Teeth-Teeth
l Segmented Arc
Note These options may also be set on the Export Options tab of the RMxprt Options
dialog box. Using the Tools>Options>RMxprt Options command changes the
default for the current design and all future designs.
You may also set the default Design Sheet for use with RMxprt by entering the path and filename or
by browsing to the Excel file using the ellipsis button.
Related Topics
3. Enter the Skew Angle of the rotor. Entries are non-negative real numbers in the range of 0 to
180 degrees inclusive (or equivalent values in units of measure such as radians). The default
value is 5 degrees. You can also enter a variable name.
4. Enter the No. of Slices that you want the multi-slice rotor model divided into in the in Z-
direction. The input must be a positive odd integer value greater than zero. The default is 5.
You can also enter a variable name.
5. Enter a Plot Field on Slice number – an integer value representing the slice on which the
you want the solver to output the field result. The input can be between -(N-1)/2 and (N-1)/2,
inclusive, where N is the number of slices. The default value is 0 (the middle slice). Choose the
desired slice number from the range of values in the drop-down menu. You can also enter a
variable name.
In the example, the skew angle of 5 degrees is divided into 5 equal slices - each slice spanning
1 degree. Angle values shown in the pull-down are calculated assuming the point along the
rotor in the Z-direction that is equidistant from the rotor ends to be at 0 degrees, with slices to
one side having positive angle values, while slices to the other side have negative angle
values. The middle slice (slice 0) spans the degree from -0.5 to 0.5, with its midpoint of 0 deg
assigned as the angle for the slice. Slice 1 spans the degree from 0.5 to 1.5, with its midpoint
at 1 deg assigned for the slice. Slice 2 spans the degree from 1.5 to 2.5, with its midpoint at 2
deg used for the slice. Values for Slice -1 and Slice-2 are calculated in similar fashion.
6. When finished, click OK to close the dialog.
Related Topics
l Eddy Current
l Transient
l Electrostatic
l Electric Transient
l Eddy Current
l Transient
l Electrostatic
l AC Conduction
l DC Conduction
Note For Maxwell2D designs, you must also specify the geometry mode, either
Cartesian, XY or Cylindrical about Z.
4. Click OK.
Related Topics
Magnetostatic Solver
The magnetostatic field simulator computes static magnetic fields in 2D or 3D. The source of the
static magnetic field can be:
l DC currents in conductors.
l Permanent magnets.
The quantities for which the magnetostatic field simulator solves are the magnetic field, H, and the
current distribution, J; the magnetic flux density, B, is automatically calculated from the H-field.
Derived quantities such as forces, torques, energy, and inductance may be calculated from these
basic field quantities.
Related Topics
The quantity for which the eddy current field simulator solves is the magnetic field, H. The magnetic
flux density, B, is automatically calculated from the H-field. Optionally, the eddy current solver can
incorporate displacement currents into the solution even in non-conducting domains, thereby
allowing the solution of the full system of Maxwell's equations and the recovery of the electric field E
everywhere including the non-conducting regions. Derived quantities such as forces, torques,
energy, losses, and impedances may be calculated from these basic field quantities at the solution
frequencies.
Related Topics
Transient Solver
The transient field simulator computes the time-domain magnetic fields in 2D or 3D. The source of
the magnetic fields can be:
l Moving or non-moving time varying currents and voltages.
The quantities for which the transient field simulator solves are the magnetic field, H, and the current
distribution, J; the magnetic flux density, B, is automatically calculated from the H-field. Derived
quantities such as forces, torques, energy, speed, position, winding flux linkage, and winding
induced voltage may be calculated from these basic field quantities.
Related Topics
Electrostatic Solver
The electrostatic field simulator computes static electric fields in 2D or 3D due to:
l Stationary charge distributions.
l Applied potentials.
The quantity for which the electrostatic field simulator solves is the scalar electric potential, φ; the
electric field (E-field) and the electric flux density (D-field) are automatically calculated from the
potential. Derived quantities such as forces, torques, energy, surface charge density, and
capacitance matrix may be calculated from these basic field quantities.
Related Topics
AC Conduction
The AC conduction field simulator computes steady-state 2D electric fields in conductors due to:
l Applied potentials.
The AC conduction field solver allows you to analyze conduction currents due to time-varying electric
fields in conductors and lossy dielectrics. Use it to analyze current distributions, electric field
distributions and potential differences, admittances, lossy materials, and stored energy. For
instance, the admittance matrix associated with a structure can be computed using the AC
conduction field solver. In addition, any quantity that can be derived from the basic electromagnetic
quantities can then be analyzed.
The AC conduction field solver can compute conduction currents for cartesian (XY) and
axisymmetric (Cylindrical about Z) models. It assumes that all sources are sinusoids oscillating at the
same frequency. Optionally, you may specify different phase angles for different sources.
You are expected to specify material properties and the electric potential at one or more object
interfaces or boundaries in the model. The AC conduction field solver then computes the electric
potential, φ(t), for the model. From the electric potential, it derives the electric field, E(t), the electric
flux density, D(t), and the current density, J(t).
Related Topics
DC Conduction Solver
The electric conduction field simulator computes steady-state 2D or 3D electric fields in conductors
due to:
l Current excitations.
l Applied potentials.
The quantity for which the electric conduction field simulator solves is the electric potential, φ; the
electric field (E-field) and the current density (J-field) are automatically calculated from the potential.
The resistance matrix, a derived quantity, may be calculated from these basic field quantities. As an
additional option, perfect insulators, that is, non-conduction regions, surrounding the conductors can
also be added to the simulation domain allowing to calculate the electric field everywhere including
the insulators.
Related Topics
The quantity for which the electric transient field simulator solves is the electric potential, φ; the
electric field (E-field), the current density (J-field) and the electric flux density (D-field) are
automatically calculated from the potential. Derived solution parameters such as the electric energy,
Ohmic loss, surface charge density and maximum electric field can be obtained for each solid.
l By not creating or by excluding (not solving in) the background object, when the included
objects are not all touching.
l By using excluded objects or perfect conductors that cut the included objects into different
regions.
The Maxwell solver identifies multiple disconnected solution domains.
For the electric solvers (electrostatic, conduction, and conduction+electrostatic), the solution is
allowed even if multiple disconnected solution domains are detected. In this case, an error message
appears only if a solution domain with inconsistent or unsolvable solution setup is detected.
For the magnetic solvers (magnetostatic, eddy current, and transient EM), an error message
appears when multiple disconnected solution domains are detected.
7 - Drawing a Model
After you insert a design into the current project, you can draw a model of the electromagnetic
structure. The general strategy is to build the model as a collection of 3D objects. You can assign any
single material to each 3D object.
You can create 3D objects by using the modeler’s Draw commands or you can draw 1D and 2D
objects, and then manipulate them to create 3D objects. Objects are drawn in the 3D Modeler
window. You can also import objects from other systems.
To open a new 3D Modeler window, do one of the following:
l Insert a new design into the current project.
l Right-click the design name in the project tree, and then click 3D Model Editor on the
shortcut menu.
The model you draw is saved with the current project when you click File>Save.
Note If you access your machine via Remote Desktop, if Maxwell is running and one or more
modeler windows are open, those modeler windows automatically close. The message
manager window displays a message indicating that Maxwell closed the modeler windows.
When working with multiple projects, or when a project has multiple designs, you may have multiple
Modeler windows available. To switch to the modeler window associated with a specific design:
1. In the Project Manager window, select the Design of interest.
2. Click Maxwell3D Model Editor to focus the modeling window on the selected design.
Note If the menu command is unavailable, then the selected design is already in the
modeler window.
Related Topics
Drawing Objects
Model Analysis
Design Settings
Setting the Temperature of Objects
Creating a 3D Component from an Existing Model
3D Component Library
Creating a User Define Primitive
Modifying Objects
Selecting Objects
Choosing the Movement Mode
Choosing the Snap Settings
Drawing Objects
You can draw one-, two-, or three-dimensional objects using the Draw commands. You can alter
objects individually or together to create the geometry of your structure. In the Tools>Modeler
Options, Drawing tab, you can set a default to either draw objects directly with the mouse or by
invoking a Properties dialog in which you can enter the values for the object dimensions. The
Dialog mode drawing feature works with the equation based line, and all two and three dimensional
objects. You can toggle to Point mode via the F3 function key and to Dialog mode via the F4
function key. When you use the Dialog mode for drawing objects the Edit property of new
primitives setting is ignored.
One-dimensional (1D) objects in the modeler include straight line, arc line, center-point arc, and
spline segments, or a combination of these - called polylines. One-dimensional objects are open
objects; their boundaries do not enclose a region, unless you connect their endpoints. They have
length, but no surface or volume. Generally they are used as temporary objects from which to create
2D objects.
Two-dimensional (2D) objects in the modeler include objects such as equation based surfaces,
rectangles, ellipses, circles, and regular polygons. Two-dimensional objects are closed sheet
objects; their boundaries enclose a region. You can create 2D sheet objects by covering the
enclosed region. In many applications (FSS, antennas) it is essential to calculate net power flow
through a surface.
You can also edit the properties of a polyline from the history tree to assign it a Cross Section
property as line or rectangular. If you then assign it either a height or a width, the polyline becomes a
sheet object.
By default, the history tree organizes sheet objects according to their boundary assignments. To
change this, select the Sheets icon, and right-click to display the Group Sheets by Assignment
check box. Within the calculator sheet objects are listed under surface.
Three-dimensional (3D) objects in the modeler include objects such as boxes, cylinders, regular
polyhedra, cones, spheres, torii, and helices. These objects have boundaries that enclose a region
with volume.
You can create 3D objects by manipulating 2D objects along a plane or by using the appropriate
Draw commands. You can also edit the properties of a polyline from the history tree to assign it a
Cross Section property as circle rectangular. If you then assign it an appropriate diameter or both
height or a width, the polyline becomes a 3D object.
By default, the history tree organizes 3D objects by material. To change this, select the Objects icon,
and right click to display the History Tree Layout Commands. You can also use Group
Commands for Modeler Objects.
While you draw objects you can also:
Related Topics
1. Click Draw>Line .
2. Select the first point of the line in one of the following ways:
l Click the point.
l Edit the point’s coordinates in the X, Y, and Z boxes in the status bar.
To delete the last point that was entered, click Undo Previous Segment on the shortcut
menu. After using the undo feature, you can also use Redo Previous Segment on the
shortcut menu.
3. Select the endpoint of the line by clicking the point or typing the coordinates in the text boxes in
the status bar.
The endpoint serves as the start point for a subsequent line segment.
To delete all points and start over, press ESC or click Escape Draw Mode on the shortcut
menu.
4. Complete the line in one of the following ways:
l Double-click the endpoint.
l Press Enter.
If the Modeler option for editing properties of new primitives is checked, the Properties dialog
box appears, in which you can modify the object’s attributes. Those listed under the Command
tab describe the commands used to create the object. These commands also appear in the
History tree. The Properties listed as line attributes include Name, Orientation, whether a
Model object, whether to Display Wireframe, Color, Transparency, and whether to Show
Direction as arrows. The Show Direction property is most helpful to unambiguously show the
line start orientation when plotting fields along a line.
5. Click OK to close the Properties dialog.
Note While drawing a polyline, you can switch between straight line, arc line, or spline
segments using the Set Edge Type commands on the shortcut menu.
Related Topics
l Type the point’s coordinates in the X, Y, and Z text boxes in the status bar.
3. Select the midpoint of the arc by clicking the point or typing the coordinates in the X, Y, and Z
text boxes in the status bar.
To delete the last point that was entered, click Undo Previous Segment on the shortcut
menu. After using the undo feature, you can also use Redo Previous Segment on the
shortcut menu.
To delete all points and start over, press ESC or click Escape Draw Mode on the shortcut
menu.
4. Select the endpoint of the arc by clicking the point or typing the coordinates in the X, Y, and Z
text boxes in the status bar.
The endpoint serves as the start point for a subsequent arc line segment.
5. If the endpoint is the last point of the polyline object, double-click the point to complete the
polyline or click Done on the shortcut menu.
If the Modeler option for editing properties of new primitives is checked, the Properties dialog
box appears, in which you can modify the object’s attributes. Those listed under the Command
tab describe the commands used to create the object. These commands also appear in the
History tree. The Properties listed as line attributes include Name, Orientation, whether a
Model object, whether to Display Wireframe, Color, Transparency, and whether to Show
Direction as arrows. The Show Direction property is most helpful to unambiguously show the
line start orientation when plotting fields along a line.
6. Click OK.
Based on the three points you specified, the modeler calculates the center point and radius of
the arc and draws an arced line through the three points.
Note While drawing a polyline, you can switch between arc line, straight line, or spline segments
using the Set Edge Type commands on the shortcut menu.
Related Topics
l Type the point’s coordinates in the X, Y, and Z text boxes in the status bar.
3. Select the start point, or radius, of the arc by clicking the point or typing the coordinates in the
X, Y, and Z text boxes in the status bar.
To delete the last point that was entered, click Undo Previous Segment on the shortcut
menu. After using the undo feature, you can also use Redo Previous Segment on the
shortcut menu.
To delete all points and start over, press ESC or click Escape Draw Mode on the shortcut
menu.
4. Sweep the angle, or endpoint, of the arc by clicking the point or typing the coordinates in the X,
Y, and Z text boxes in the status bar.
5. If the endpoint is the last point of the polyline object, double-click the point to complete the
polyline or click Done on the shortcut menu.
If the Modeler option for editing properties of new primitives is checked, the Properties dialog
box appears, in which you can modify the object’s attributes.
6. Click OK.
Note While drawing a polyline, you can switch between arc line, straight line, or spline
segments using the Set Edge Type commands on the shortcut menu.
Related Topics
Drawing a Spline
A spline is a curved line defined by three points. The modeler uses a natural spline type: a piece wise
cubic spline with an end condition that has a derivative of zero. Use the Draw>Spline command to
create a polyline object with one or more spline segments.
1. Click Draw>Spline .
2. Select the spline’s start point in one of the following ways:
l Click the point.
l Type the point’s coordinates in the X, Y, and Z text boxes in the status bar, and then press
Enter.
To delete the last point entered, click Undo Previous Segment on the shortcut menu.After
using the undo feature, you can also use Redo Previous Segment on the shortcut menu.
To delete all selected points and start over, press ESC or click Escape Draw Mode on the
shortcut menu.
3. Select the midpoint of the spline by clicking the point or typing the coordinates in the X, Y, and
Z text boxes in the status bar.
4. Select the endpoint of the spline by clicking the point or typing the coordinates in the X, Y, and
Z text boxes in the status bar.
The endpoint serves as the start point for a subsequent spline segment.
5. Complete the spline in one of the following ways:
l Double-click the endpoint.
l Press Enter.
If the Modeler option for editing properties of new primitives is checked, the Properties dialog
box appears, in which you can modify the object’s attributes. Those listed under the Command
tab describe the commands used to create the object. These commands also appear in the
History tree. The Properties listed as line attributes include Name, Orientation, whether a
Model object, whether to Display Wireframe, Color, Transparency, and whether to Show
Direction as arrows. The Show Direction property is most helpful to unambiguously show the
line start orientation when plotting fields along a line.
6. Click OK.
Note While drawing a polyline, you can switch between spline, straight line, or arc line
segments using the Set Edge Type commands on the shortcut menu.
Related Topics
Drawing a Polyline
A polyline is a single object that includes any combination of straight line, arc line, or spline segments.
The endpoint of one segment is the start point for the next segment. Use the shortcut menu’s Set
Edge Type commands to switch between straight line, arc line, or spline segments while drawing a
polyline.
In the Polyline section of Operation tab of the Modeler Options, select or clear the Automatically
cover closed polylines check box.
If checked, closed polylines become sheet objects, and are listed as such in the History tree. If
unchecked, closed polylines are listed under lines in the History tree.
1. Click Draw>Line .
2. Right-click in the 3D Modeler window to access the shortcut menu, and then point to Set
Edge Type.
3. Click Straight, Spline, 3 Point Arc, or Center Point Arc depending on which type of
polyline segment you want to draw.
4. If you clicked Straight, follow the procedure for drawing a straight line.
Note To connect the polyline’s start and endpoints, click Close Polyline on the
shortcut menu.
If the Modeler option for editing properties of new primitives is checked, the Properties dialog
box appears, in which you can modify the object’s attributes. Those listed under the Command
tab describe the commands used to create the object. These commands also appear in the
History tree. The Properties listed as line attributes include Name, Orientation, whether a
Model object, whether to Display Wireframe, Color, Transparency, and whether to Show
Direction as arrows. The Show Direction property is most helpful to unambiguously show the
line start orientation when plotting fields along a line. Notice that by going to the History tree
selecting Create Polyline for that object, you can assign a cross section and dimensions to a
polyline.
7. Click OK.
Related Topics
2. In a Properties window (either docked or undocked) for the selected polyline click on None on
the Type line under Cross Section to display the choices for Line, Circle, Rectangle or
Isosceles Trapezoid.
3. Select one of Line, Circle, Rectangle, or Isosceles Trapezoid as the cross section.
l Selecting Line causes the Cross Section area of the polyline properties to display editable
display editable fields for Orientation, Width/Diameter, Top Width and Height.
4. If you select Line, Rectangle or Isosceles Trapezoid, you can edit the Orientation as Auto, X,
Y, or Z. This provides the direction in which the dimension extends.
5. Specify the dimensions and select the units for the Cross section.
Type a value in the dimension field(s) and select units from the drop down menu.
The dimensions must be reasonable relative to the specified shape and orientation of the
polyline. If the polyline cannot be extended into current Orientation for the given dimension(s),
you will receive a warning. If you receive a warning, check the Orientation, dimension and
units.
When the modeler can extend the dimensions legally, it displays the modified object, and lists it
in the History tree as either a Sheet object (Line or one dimensional Rectangle) or as a Solid
object (Circle or two dimensional Rectangle).
6. You can modify the new polyline either by editing the properties, or by using the History tree to
select one of the line objects that make up the polyline, and right clicking to display the popup
menu showing commands to Insert, Delete, or display editable segment Properties.
A segment that you select in the Project tree is indicated in the Modeler window by a line in the
dimensioned object. If you insert a new segment, it adopts the dimensions you specified for
the polyline object.
Related Topics
2. Use the cascade menu from the Draw>Line Segment command to or the right-click menu to
select whether to Insert Before Line Segment or InsertAfter Line Segment.
3. Use the next cascade menu to specify the kind of segment to add. These can be: Straight,
Spline. 3 Point Arc, or Center Point Arc.
4. If you clicked Straight, follow the procedure for drawing a straight line.
If you clicked Spline, follow the procedure for drawing a spline.
If you clicked 3 Point Arc, follow the procedure for drawing a three-point arc line.
If you clicked Center Point Arc, follow the procedure for drawing a center-point arc line.
5. Repeat steps 2 and 3 for each segment of the polyline object. The endpoint of the previous
segment serves as the start point for the next segment.
6. Complete the polyline in one of the following ways:
l Double-click the endpoint of the final segment.
Note To connect the polyline’s start and endpoints, click Close Polyline on the
shortcut menu.
If the Modeler option for editing properties of new primitives is checked, the Properties dialog
box appears, in which you can modify the object’s attributes. Those listed under the Command
tab describe the commands used to create the object. These commands also appear in the
History tree. The Properties listed as line attributes include Name, Orientation, whether a
Model object, whether to Display Wireframe, Color, Transparency, and whether to Show
Direction as arrows. The Show Direction property is most helpful to unambiguously show the
line start orientation when plotting fields along a line.
7. Click OK.
Related Topics
Related Topics
Drawing a Circle
Draw a circle by selecting a center point and a radius. Circles are drawn as true surfaces in the
modeler.
l Type the point’s coordinates in the text boxes in the status bar.
3. Specify the radius by selecting a point on the circle’s circumference in one of the following
ways:
l Click the point.
l Type the coordinates of the point relative to the center point in the dX, dY, and dZ boxes,
Related Topics
Drawing an Ellipse
Draw an ellipse by specifying a center point, base radius, and secondary radius.
l Type the point’s coordinates in the text boxes in the status bar.
3. Specify the base radius of the ellipse. If the current drawing plane is xy, then x is the base
radius direction. If the drawing plane is yz, then y is the base radius direction. If the drawing
plane is xz, then z is the base radius direction. Select the point in one of the following ways:
l Click the point. Maxwell constrains mouse movement to the base radius direction.
l Type the coordinates of a point relative to the center point in the dX, dY, or dZ box, where d
If the Modeler option for editing properties of new primitives is checked, the Properties dialog
box appears, in which you can modify the object’s properties.
The Ratio value represents the aspect ratio of the secondary radius to the base radius.
5. Click OK.
If the Automatically cover closed polyline option is selected in the Modeler Options
window, the ellipse will be covered, resulting in a 2D sheet object. Otherwise it will be a closed
1D polyline object.
If the base radius is larger than the secondary radius, the ellipse’s longer axis will lie along the default
base radius direction. If the secondary radius is larger than the base radius, the ellipse’s longer axis
will lie perpendicular to the default base radius direction. To create an ellipse with an arbitrary
orientation, rotate or move the ellipse after drawing it.
Note The 3D Geometry Modeler permits drawing of true-curved objects. However, the solution
will be obtained with a tetrahedral mesh which conforms to the true surface only within the
limits identified by certain mesh settings. The modeler has default settings for this
conformance which is a reasonable trade-off between solution speed and solution quality
for most objects, but may not be ideal for all such objects. High-aspect ratio curves
structures, such as helices with narrow and curved cross-sections, may benefit from user
control of the faceting values. For details about these commands see:
Technical Notes, "Surface Approximations" and related sections, "Modifying Surface
Approximations," and "Guidelines for Modifying Surface Approximations"
Related Topics
Drawing a Rectangle
Draw a rectangle (or square) by selecting two diagonally opposite corners.
1. Click Draw>Rectangle .
2. Select the first diagonal corner in one of the following ways:
l Click the point.
l Type the point’s coordinates in the text boxes in the status bar.
To delete the selected point and start over, press ESC or click Escape Draw Mode on the
shortcut menu.
3. Select the second corner of the rectangle in one of the following ways:
l Click the point.
l Type the coordinates of the point relative to the first diagonal corner in the dX, dY, and dZ
Related Topics
l Type the point’s coordinates in the text boxes in the status bar.
3. Specify the polygon’s radius, the distance from the center point to one of the polygon’s
vertices, in one of the following ways:
l Click the point.
l Type the coordinates of the point relative to the center point in the dX, dY, and dZ boxes,
5. Click OK.
Note The radius is measured from the center point to a corner of the polygon, or the
intersection of two edges. It is not measured from the center point to the midpoint of
an edge.
If the Automatically cover closed polyline option is selected in the Modeler Options
window, the polygon will be covered, resulting in a 2D sheet object. Otherwise it will be a
closed 1D polyline object.
Related Topics
Related Topics
Drawing a Sphere
Draw a sphere by selecting a center point and a radius. Spheres are drawn as true surfaces in the
modeler.
1. Click Draw>Sphere .
2. Select the center point of the sphere in one of the following ways:
l Click the point.
l Type the point’s coordinates in the text boxes in the status bar.
3. Specify the radius by selecting a point on the sphere’s circumference in one of the following
ways:
l Click the point.
l Type the coordinates of the point relative to the center point in the dX, dY, and dZ boxes,
Drawing a Cylinder
Draw a cylinder by selecting a center point, radius, and height. Cylinders are drawn as true surfaces
in the modeler.
1. Click Draw>Cylinder .
2. Select the center point of the cylinder’s base circle in one of the following ways:
l Click the point.
l Type the point’s coordinates in the text boxes in the status bar.
3. Specify the radius by selecting a point on the base circle’s circumference in one of the
following ways:
l Click the point.
l Type the coordinates of the point relative to the center point in the dX, dY, and dZ boxes,
Related Topics
Drawing a Box
Draw a box by selecting two diagonally opposite corners of the base rectangle, then specifying the
height.
1. Click Draw>Box .
2. Select the first diagonal corner of the base rectangle in one of the following ways:
l Type the coordinates of the point relative to the first diagonal corner in the dX, dY, and dZ
Related Topics
l Type the point’s coordinates in the text boxes in the status bar.
3. Select the radius of the polyhedron, the distance from the center point to one of the
polyhedron’s vertices, in one of the following ways:
l Click the point.
l Type the coordinates of the point relative to the center point in the dX, dY, and dZ boxes,
If the Automatically cover closed polyline option is selected in the Modeler Options
dialog box, the polygon will be covered, resulting in a 2D sheet object. Otherwise it will be a
closed 1D polyline object.
Related Topics
Drawing a Cone
Draw a cone by selecting the center point and radius of the cone’s base circle, then specifying the
radius of the cone’s top circle and the cone’s height. Cones are drawn as true surfaces in the
modeler.
1. Click Draw>Cone .
2. Select the center point of the cone’s base circle in one of the following ways:
l Click the point.
l Type the point’s coordinates in the text boxes in the status bar.
3. Specify the radius of the cone’s base circle by selecting a point on the base circle’s
circumference. Select the point in one of the following ways:
l Click the point.
l Type the coordinates of the point relative to the center point in the dX, dY, and dZ boxes,
Related Topics
Drawing a Torus
Draw a torus by selecting its center point, major radius, and minor radius. The modeler then sweeps
a circle around a circular path. Toruses are drawn as true surfaces in the modeler.
1. Click Draw>Torus .
2. Select the center point of the torus in one of the following ways:
l Click the point.
l Type the point’s coordinates in the text boxes in the status bar.
3. Specify the major radius by selecting a point in one of the following ways:
l Click the point.
l Type the coordinates of the point relative to the center point in the dX, dY, and dZ boxes,
Drawing a Helix
A helix is a 3D spiral object created by sweeping a 1D or 2D object along a vector. Sweeping a 1D
object results in a hollow 3D object. Sweeping a 2D sheet object results in a 3D solid object.
1. Select the 1D or 2D object you want to sweep to form a helix.
2. Click Draw>Helix .
3. Draw the vector you want to sweep the object along. The two points that describe the vector
affect axis direction only and not the helix length. The helix length is determined when you
enter the pitch and number of turns in the Pitch and Turns text boxes. The initial radius of the
helix is determined by the axis position relative to the object being swept.
a. Select the start point by clicking the point or typing its coordinates in the X, Y, and Z text
boxes.
b. Select the endpoint by clicking the point or typing its coordinates relative to the start point
in the dX, dY, and dZ boxes.
The Helix dialog box appears.
4. For Turn Direction, select Right hand if the turn direction is clockwise and Left hand if the
turn direction is counter-clockwise.
5. In the Pitch text box, type the distance between each turn in the helix, and click a unit in the
pull-down list.
6. In the Turns text box, type the number of complete revolutions the object will make along the
vector.
7. In the Radius Change per Turn text box, type a number for the increase in the radius and
select the units from the pull-down list.
After you set these values, the selected object is swept along the vector to form a helix. The
original object you swept is deleted.
If the Modeler option for editing properties of new primitives is checked, the Properties dialog
box appears, in which you can modify the object’s properties.
8. Click OK.
Note The 3D Geometry Modeler permits drawing of true-curved objects. However, the solution
will be obtained with a tetrahedral mesh which conforms to the true surface only within the
limits identified by certain mesh settings. The modeler has default settings for this
conformance which is a reasonable trade-off between solution speed and solution quality
for most objects, but may not be ideal for all such objects. High-aspect ratio curves
structures, such as helices with narrow and curved cross-sections, may benefit from user
control of the faceting values. For details about these commands see:
Technical Notes, "Surface Approximations" and related sections, "Modifying Surface
Approximations," and "Guidelines for Modifying Surface Approximations"
Related Topics
3. Click OK.
Related Topics
The Create User Defined Part dialog box appears. The Parameters tab permits you to edit
the parameters. An Info tab contains information about the user defined primitive, its purpose,
the company/author who created it, the date created and the version number.
2. Specify the values for the following parameters:
RectHeight Height of rectangular cross-section.
RectWidth Width of rectangular cross-section.
StartHelixRadius The radius of a segmented helix is defined from the helix center of
rotation to the center of the helix cross-section at segment transitions.
The first and last segments of the helix are half segments. See this
figure.
RadiusChange The radius change per turn of the helix.
Pitch Distance between helix turns.
Turns The number of turns in the helix.
SegmentsPerTurn The number of segments constructing each turn. Enter zero (0) for
true curve.
RightHanded Helix winding direction. Enter non-zero value for right-handed helix.
3. Click OK.
Related Topics
Drawing a Spiral
A spiral is a 2D or 3D spiral object created by sweeping an object around a vector. Sweeping a 1D
object results in a 2D sheet object. Sweeping a 2D sheet object results in a 3D solid object.
1. Select the 1D or 2D object you want to sweep to form a spiral.
1. Click Draw>Spiral .
2. Draw the vector you want to sweep the object around:
a. Select the start point by clicking the point or typing its coordinates in the X, Y, and Z text
boxes.
b. Select the endpoint by clicking the point or typing its coordinates relative to the start point
in the dX, dY, and dZ boxes.
The Spiral dialog box appears.
3. Select Right hand if the turn direction is clockwise and Left hand if the turn direction is
counter-clockwise.
4. In the Radius Change text box, type the difference in radius between each turn of the spiral.
The radius of the first turn is measured from the center point of the 1D or 2D object you are
sweeping to the vector you drew.
5. Click a unit for the radius in the pull-down list.
6. In the Turns text box, type the number of complete revolutions the object will make around the
vector.
The selected object is swept around the vector to form a spiral. The original object you swept is
deleted.If the Modeler option for editing properties of new primitives is checked, the
Properties dialog box appears, in which you can modify the object’s properties.
7. Click OK.
Figure 7-1 This 3D spiral was created from a 2D circle drawn at z = 0. The turn direction
was right hand, the radius change was set at 2, and the number of turns was set at 2.
Note The 3D Geometry Modeler permits drawing of true-curved objects. However, the solution
will be obtained with a tetrahedral mesh which conforms to the true surface only within the
limits identified by certain mesh settings. The modeler has default settings for this
conformance which is a reasonable trade-off between solution speed and solution quality
for most objects, but may not be ideal for all such objects. High-aspect ratio curves
structures, such as helices with narrow and curved cross-sections, may benefit from user
control of the faceting values. For details about these commands see:
Technical Notes, "Surface Approximations" and related sections, "Modifying Surface
Approximations," and "Guidelines for Modifying Surface Approximations"
Related Topics
The Create User Defined Part dialog box appears. The Parameters tab permits you to see
edit the parameters. An Info tab contains information about the user defined primitive, its
purpose, the company/author who created it, the date created and the version number.
2. Specify the values for the following parameters:
Xpos Type the location of the starting point in the X direction.
Ypos Type the location of the starting point in the Y direction.
TurnSep Type the separation distance between turns.
Turns Type the number of complete revolutions the object will make around the vector
Width Type a value for the width of the spiral.
Height Type a value for the height of the spiral. If you specify the height as zero, the
modeler draws a sheet object.
3. Click OK.
This creates the primitive and displays the Properties dialog for the new object.
Hint To see newly created DLLs, click Draw>User Defined Primitive>Update Menu.
To see the primitives that you have created, click Draw>User Defined
Primitive>UserLib.
Related Topics
l Draw>Sweep>Along Vector
l Draw>Sweep>Along Path
Drawing a Bondwire
A bondwire is a thin metal wire that connects a metal signal trace with a chip. Please see the topic
Bondwires in the Technical Notes before drawing a bondwire.
1. Click Draw>Bondwire .
2. Select the bond pad point in one of the following ways:
Related Topics
Drawing a Point
Drawing a point object within the problem region enables you to plot fields or perform field
computations at that point. Points are always considered non-model objects by the modeler.
1. Click Draw>Point .
2. Select the point in one of the following ways:
l Click the point.
l Type the point’s coordinates in the text boxes in the status bar.
Related Topics
Drawing a Plane
A plane object is a cutplane through the problem region. You can plot fields or perform field
computations on its surface. Planes are always considered non-model objects by the modeler.
1. Click Draw>Plane .
2. Select the origin in one of the following ways:
l Click the point.
l Type the point’s coordinates in the text boxes in the status bar.
l Type the coordinates of the point relative to the origin in the dX, dY, and dZ boxes, where d
Related Topics
l Spline
l 3 Point Arc
l Center Point Arc
3. Select the first point of the line in one of the following ways:
l Click the point.
l Type the point’s coordinates in the text boxes in the status bar.
4. Select the endpoint of the line by clicking the point or typing the coordinates in the text boxes in
the status bar.
The endpoint serves as the start point for a subsequent line segment.
To delete all points and start over, press Esc or click Escape Draw Mode on the shortcut
menu.
5. Complete the line in one of the following ways:
l Double-click the endpoint.
l Press Enter.
The Properties dialog box appears, enabling you to modify the object's attributes.
6. Click OK.
Note While drawing a polyline, you can switch between straight line, arc line, or spline
segments using the Set Edge Type commands on the shortcut menu.
After drawing a polyline, you can select any segment in the history tree and edit it by changing
coordinates, inserting a segment before or after, deleting the start or end point, and making other
modifications.
Related Topics
Segmented Objects
To create segmented circles, ellipses, and cylinders use the Number of Segments parameter on
the Command Tab of the Properties dialog as shown below. To convert an object from true surface
to segmented, do the following:
1. Select the circle, ellipse, or cylinder in the modeler window or in the history tree.
2. In the command tab of the properties window (shown docked below), change the Number of
Values of 1 and 2 are not valid values for the circle, ellipse, or cylinder command and will cause
an error.
Related Topics
Surface Approximation
Creating Segmented Geometry
create a value versus distance plot, by default, the line will be divided into 100 equally spaced
points. You can modify the number of points into which the line is divided in the Edit Sweeps
dialog box.For more information, see Specifying Variable Values for a Sweep Definition.
l Draw a rectangle upon which to plot fields or perform field computations.
l Draw a volume box to analyze fields in areas of the problem region that are not occupied by an
object or that consist of parts of several objects.
l Draw a plane, which is always a non-model object.
l Draw a point object, which is always a non-model object, in order to plot fields or perform field
computations at that point.
Related Topics
Related Topics
Drawing a Region
To draw a region encompassing the objects in the current project:
2. For the Padding data, you can select either Pad all directions similarly, Pad individual
directions, or Transverse padding.
If you select Pad all directions similarly you can specify the Padding type by selecting either
Percentage Offset or Absolute Offset from the drop down menu, requiring a single Value
that affects all directions. If you select Absolute Offset, you also specify the units by selecting
from a drop down menu.
Selecting Pad individual directions displays the Padding Percentage as a table of Positive
and Negative X, Y, and Z coordinates, permitting you to specify padding for each direction. In
this case, you can specify the Padding type by selecting Percentage Offset, Absolute
Offset, or Absolute Position from the drop down menu.
you create groups, un-group objects, flatten a selected group's hierarchy, and delete empty groups.
l Groups can contain objects, submodels (for example, UDM, 3D Component, CAD links) and
groups. Coordinate systems, planes etc will not have any parent group.
Group Properties
A Group’s Property tab is shown when you select a group in the history tree. The Group’s properties
include Name and parent Group.
Object, group and submodel properties have a Group property. You can edit the Group Property and
this provides another way of setting an object’s (or group’s) group. You can select any of the existing
groups listed or create a new group.
Related Topics
Related Topics
7. Open myUDP.dsw using Microsoft Visual C++ Developer Studio, and edit the source code to
create your desired primitive. You may also add additional headers and source files as
appropriate.
The UDP dll contains a data structure called UDPPrimitiveTypeInfo. This contains information
about the udp, its purpose, company/author who created it, date created and the version
number. When you select a primitive from your library, you see the Create Primitive dialog
with a Parameters tab for setting the parameters, and an Info tab with the information from
this data structure.
8. Build myUDP.dll using the Win32 Release configuration.
9. Copy the resulting file myUDP.dll to the
Maxwell/userlib/UserDefinedPrimitives directory.
Related Topics
Related Topics
Drawing a Segmented Helix with Polygon Cross-Section Using a User Defined Primitive
Drawing a Segmented Helix with Rectangular Cross-Section Using a User Defined Primitive
Drawing a Spiral Using User Defined Primitives
Parameters for RMxprt User Defined Primitives
Related Topics
Related Topics
Stator Geometries
Related Topics
Rotor Geometries
Related Topics
Pole Geometries
Related Topics
RMxprt/Band
Property Description
DiaGap Band diameter in gap center, DiaGap < DiaYoke for outer band
DiaYoke Band diameter on yoke side, DiaYoke < DiaGap for inner band
Length Band Length
SegAngle Angle per segment of band (0.1 ~ 5 degrees)
Fractions Number of circumferential fractions, 1 for circular region
InfoCore 0: band; 100: outer region or shaft
Related Topics
RMxprt/ClawPoleCore
Property Description
DiaGap Core diameter on gap side, DiaGap < DiaShaft for outer cores
DiaShaft Core diameter on shaft side, DiaShaft < DiaGap for inner cores
Length Core Length
Poles Number of poles
EmbraceTip Embrace of pole tip
EmbraceRoot Embrace of pole root
ThickTip Thickness of pole tip
ThickRoot Thickness of pole root
ThickShoe Thickness of side shoes
DepthSlot Depth of slot between two poles
ThickYoke Thickness of yoke
LengthPole Length of pole from tip to tip
LengthMag Length of magnet or the second air-gap
LenRegion Region length
InfoCore 0: core; 1: core&coil; 2: coil; 3: magnet; 100: region
Related Topics
RMxprt/ConCoil
Property Description
DiaGap Core diameter on gap side, DiaGap < DiaYoke for outer cores
DiaYoke Core diameter on yoke side, DiaYoke < DiaGap for inner cores
Length Core Length
Skew Skew angle in core length range
Slots Number of slots
SlotType Slot Type: 1 to 7
Hs0 Slot opening height
Hs1 Slot wedge height
Hs2 Slot body height
Bs0 Slot opening width
Bs1 Slot wedge maximum width
Bs2 Slot body bottom width, 0 for parallel teeth
Rs Slot body bottom fillet
FilletType 0: a quarter circle; 1: tangent connection
LayerLoc 0: whole; 1: middle; 2: top; 3: bottom
CoilPitch Coil pitch measured in slots
EndExt One-side end extended length
LayerExt Span layer extension in the axial direction
LayerDiff Span layer difference in the radial direction
AltEnd 0: same end layers; 1: alternate end layers
LenRegion Region length
InfoCoil 0: coil; 1: terminal1; 2: terminal2; 100: region
Related Topics
RMxprt/DCMCore
Property Description
DiaGap Core diameter on gap side, or Dmin, the minimum inner diameter
DiaYoke Core diameter on yoke side, or frame outer diameter
Length Main pole length, 0 for 2D geometry
Skew Skew angle in pole length range
FrameWidth Overall width of a racetrack frame
FrameThick Frame thickness
FrameLength Frame length
Poles Number of poles
PoleType Pole Type: 1 or 2
Dmax Diameter of shoe tip with maximum air gap length
Bp0 Pole arc width with uniform air gap, 0 for eccentric air gap
Bp1 Total pole width (the width between shoe tips)
Bp2/Rp0 Bp2 (max shoe width for pole type 1), or Rp0 (shoe fillet radius for pole type 2)
Bp3/Rp1 Bp3 (min shoe width for pole type 1), or Rp1 (pole fillet radius for pole type 2)
Hp Pole body height
Bm Pole body width
FieldWndgs Number of field windings, 2 for both series and shunt windings
EndExt Coil one-side end extended length
SlotsPerPole Compensating slots per pole distributed under pole arc surface
Bc0 Opening width of compensation slots
Hc0 Opening height of compensating slots
Bc2 Width of compensating slots
Hc2 Height of compensating slots
CmpEndExt One-side end extended length of compensating coils
ComPoleWidth Width of the commutating poles
ComPoleHeight Height of the commutating poles
ComPoleLength Length of the commutating poles
ComShoeWidth Shoe width of the commutating poles
ComShoeHeight Shoe height of the commutating poles
ComShoeLength Shoe length of the commutating poles
ComGap2 Air gap length between commutating poles and the frame
CmtEndExt One-side end extended length of commutating coils
LenRegion Region length
InfoCore 0: core&coil; 1: poles; 2: frame; 3: com poles; 4: shunt coil; 5: series coil; 6: com
coil; 100: region
InfoTerm 0: whole coil; 1: terminal1; 2: terminal2
Related Topics
RMxprt/DiskCoil
Property Description
DiaOuter Core outer diameter
DiaInner Core inner diameter
Thickness Core thickness
Gap Gap between the core and xy plane, <0 for lower core
Skew Skew angle
Slots Number of slots
SlotType Slot type: 1 to 7
Hs0 Slot opening height
Hs1 Slot wedge height
Hs2 Slot body height
Bs0 Slot opening width
Bs1 Slot wedge maximum width
Bs2 Slot body bottom width. 0 for parallel teeth
Rs Slot body bottom fillet
FilletType 0: a quarter circle; 1: tangent connection
Related Topics
RMxprt/DiskPMCore
Property Description
DiaOuter Core outer diameter
DiaInner Core inner diameter
Thickness Core thickness
Gap Gap between the core and xy plane, <0 for lower core
Skew Skew angle
Poles Number of poles
Embrace Pole embrace
ThickMag Magnet thickness
InfoCore 0: core only; 1: all PMs; 2: one PM only
Related Topics
RMxprt/DiskSlotCore
Property Description
DiaOuter Core outer diameter
DiaInner Core inner diameter
Thickness Core thickness
Gap Gap between the core and xy plane, <0 for lower core
Skew Skew angle
Slots Number of slots
SlotType Slot type: 1 to 6
Hs0 Slot opening height
Hs01 Slot closed bridge height
Hs1 Slot wedge height
Hs2 Slot body height
Bs0 Slot opening width
Bs1 Slot wedge maximum width
Bs2 Slot body bottom width. 0 for parallel teeth
Rs Slot body bottom fillet
FilletType 0: a quarter circle; 1: tangent connection
HalfSlot 0: symmetric slots; 1: half slots
RingLength One-side radial ring length
RingHeight Axial ring height
InfoCore 0: core only; 1: squirrel cage only
Related Topics
RMxprt/DoubleCage
Property Description
DiaGap Core diameter on gap side, DiaGap < DiaYoke for outer cores
DiaYoke Core diameter on yoke side, DiaYoke < DiaGap for inner cores
Length Core Length
Skew Skew angle in core length range
Slots Number of slots
SlotType Slot Type: 1 to 4
Hs0 Slot opening height
Hs01 Slot closed bridge height
Hs1 Slot wedge height
Hs2 Slot body height
Related Topics
RMxprt/IPMCore
Property Description
DiaGap Core diameter on gap side, or outer diameter
DiaYoke Core diameter on yoke side, or inner diameter
Length Core Length
Poles Number of poles
PoleType Pole Type: 1 or 3
Related Topics
RMxprt/LapCoil
Property Description
DiaGap Core diameter on gap side, DiaGap < DiaYoke for outer cores
DiaYoke Core diameter on yoke side, DiaYoke < DiaGap for inner cores
Length Core Length
Skew Skew angle in core length range
Slots Number of slots
SlotType Slot Type: 1 to 7
Hs0 Slot opening height
Hs1 Slot wedge height
Hs2 Slot body height
Bs0 Slot opening width
Bs1 Slot wedge maximum width
Bs2 Slot body bottom width, 0 for parallel teeth
Rs Slot body bottom fillet
FilletType 0: a quarter circle; 1: tangent connection
Layers Number of winding layers
CoilPitch Coil pitch measured in slots
Related Topics
RMxprt/LinearMCore
Property Description
WidthCore Core width in motion direction
ThickCore Core thickness
Length Core length
SlotPitch The distance between two slots
Slots Number of slots
SlotType Slot Type: 1 to 7
Hs0 Slot opening height
Hs1 Slot wedge height
Hs2 Slot body height
Bs0 Slot opening width
Bs1 Slot wedge maximum width
Bs2 Slot body bottom width, 0 for parallel teeth
Rs Slot body bottom fillet
Layers Number of winding layers
CoilPitch Coil pitch measured in slots
EndExt One-side end extended length
SpanExt Axial length of end span; 0 for no span
InfoCore 0: core only; 1: core & all coils; 2: one coil only
Related Topics
RMxprt/NonSalientPoleCore
Property Description
DiaGap Core diameter on gap side, DiaGap < DiaYoke for outer cores
DiaYoke Core diameter on yoke side, DiaYoke < DiaGap for inner cores
Length Core Length
Skew Skew angle in core length range
IndexingSlots Number of indexing slots for slot pitch calculation
ActualSlots Number of actual slots: ActualSlots <= IndexingSlots
SlotType Slot Type: 1 to 7
Hs0 Slot opening height
Hs1 Slot wedge height
Hs2 Slot body height
Bs0 Slot opening width
Bs1 Slot wedge maximum width
Bs2 Slot body bottom width, 0 for parallel teeth
Rs Slot body bottom fillet
FilletType 0: a quarter circle; 1: tangent connection; 2 & 3: arc bottom
Poles Number of poles
TangentDucts Number of surface tangential vent ducts
TDuctWidth Width of surface tangential vent ducts
TDuctDepth Depth of surface tangential vent ducts
TDuctPitch Pitch of surface tangential vent ducts
AxialDucts Number of axial vent ducts per pole
ADuctWidth Width of axial vent ducts in main tooth
ADuctDepth Depth of axial vent ducts in main tooth
LenRegion Region length
InfoCore 0: core; 100: region
Related Topics
RMxprt/PMCore
Property Description
DiaGap Core diameter on gap side, or outer diameter
DiaYoke Core diameter on yoke side, or inner diameter
Length Core Length
Poles Number of poles
PoleType Pole Type: 1 or 5
Embrace Pole embrace (not for type 4)
ThickMag Max thickness of magnets
WidthMag Magnet width (for types 4 & 5)
Offset Pole arc offset (for types 1, 2, & 3)
Bridge Bridge thickness (for type 5 only)
Rib Rib width (for type 5 only), Rib=0 for rectangular ducts
LenRegion Region length
InfoCoil 0: core; 1: magnets; 2: magnet; 100: region
Related Topics
RMxprt/PMDamperCore
Property Description
DiaGap Core diameter on gap side, or outer diameter
DiaYoke Core diameter on yoke side, or inner diameter
Length Core Length
Skew Skew angle in core length range
Slots Number of damper slots per pole
SlotType Slot type: 1 to 4
Hs0 Slot opening height
Hs01 Slot closed bridge height
Hs1 Slot wedge height
Hs2 Slot body height
Bs0 Slot opening width
Bs1 Slot wedge maximum width
Bs2 Slot body bottom width, 0 for parallel teeth
Related Topics
RMxprt/RacetrackSlotCore
Property Description
DiaGap Core diameter on gap side, DiaGap < DiaYoke for outer cores
DiaYoke Core diameter on yoke side, DiaYoke < DiaGap for inner cores
Length Core Length
Skew Skew angle in core length range
Slots Number of slots
SlotType Slot type: 1 to 7
Hs0 Slot opening height
Hs01 Slot closed bridge height
Hs1 Slot wedge height
Hs2 Slot body height
Bs0 Slot opening width
Related Topics
RMxprt/SalientPoleCore
Property Description
DiaGap Core diameter on gap side, DiaGap < DiaYoke for outer cores
DiaYoke Core diameter on yoke side, DiaYoke < DiaGap for inner cores
Length Core Length
Skew Skew angle in core length range
Slots Number of damper slots per pole
SlotType Slot type: 1 to 4
Hs0 Slot opening height
Hs01 Slot closed bridge height
Hs1 Slot wedge height
Hs2 Slot body height
Bs0 Slot opening width
Bs1 Slot wedge maximum width
Bs2 Slot body bottom width, 0 for parallel teeth
Related Topics
RMxprt/SlotCore
Property Description
DiaGap Core diameter on gap side, DiaGap < DiaYoke for outer cores
DiaYoke Core diameter on yoke side, DiaYoke < DiaGap for inner cores
Length Core Length
Skew Skew angle in core length range
Slots Number of slots
SlotType Slot type: 1 to 6
Hs0 Slot opening height
Related Topics
RMxprt/SquirrelCage
Property Description
DiaGap Core diameter on gap side, DiaGap < DiaYoke for outer cores
DiaYoke Core diameter on yoke side, DiaYoke < DiaGap for inner cores
Length Core Length
Skew Skew angle in core length range
Slots Number of slots
SlotType Slot type: 1 to 4
Hs0 Slot opening height
Hs01 Slot closed bridge height
Hs1 Slot wedge height
Hs2 Slot body height
Bs0 Slot opening width
Bs1 Slot wedge maximum width
Bs2 Slot body bottom width, 0 for parallel teeth
Rs Slot body bottom fillet
FilletType 0: a quarter circle; 1: tangent connection; 2 & 3: arc bottom
HalfSlot 0 for symmetric slot, 1 for half slot
Related Topics
RMxprt/SRMCore
Property Description
DiaGap Core diameter on gap side, DiaGap < DiaYoke for outer cores
DiaYoke Core diameter on yoke side, DiaYoke < DiaGap for inner cores
Length Core Length
Poles Number of poles
ThkYoke Toke thickness
Embrace Pole embrace (the ratio of pole arc to pole pitch)
EndExt Coil one-side end extended length
LenRegion Region length
InfoCore 0: core; 1: core & coils; 2: coil; 3: terminal1; 4:terminal2; 100: region
Related Topics
RMxprt/SynRMCore
Property Description
DiaGap Core diameter on gap side, or outer diameter
DiaYoke Core diameter on yoke side, or inner diameter
Related Topics
RMxprt/TransCoil
Property Description
DistLeg Leg center to center distance
CoilType Coil type: 1 for solenoid coil; 2 for pancake coil
WidthIn Coil width between two inner sides
DepthIn Coil depth between two inner ends
RadiusIn Coil inner fillet radius
ThickCoil Coil thickness of one side
HighCoil Coil Height
Layers Number of layers
GapLayer Gap between two layers
InfoCore 0: all coils; 1: one coil only
Related Topics
RMxprt/TransCore
Property Description
DiaLeg Outer diameter of leg cross-section
DistLeg Leg center to center distance
DistYoke Yoke center to center distance
Stages Number of stages of leg cross-section
ThickCore Core thickness, only used for Stages=1
WidthYoke Yoke width, =0 for same cross-section as leg's
InfoCore 0: whole core; 1: legs only; 2: yokes only
Related Topics
RMxprt/UnivMCore
Property Description
DiaGap Core diameter on gap side, or outer diameter
DiaYoke Core diameter on yoke side, or inner diameter
Length Core Length
Skew Skew angle in core length range
Poles Number of poles
PoleType Pole type: 1 to 2
WidthCore Overall width of a racetrack core
Embrace Pole embrace (the ratio of pole arc to pole pitch)
Offset Pole arc offset
WidthPole Minimum width at pole root
Ty Yoke thickness
Ts Shoe-tip thickness
R1 Radius of the screw holes in pole center
R2 Radius of the side fillet arc at pole root
R3 Radius of the side fillet arc center layout circle
Related Topics
RMxprt/VentSlotCore
Property Description
DiaGap Core diameter on gap side, DiaGap < DiaYoke for outer cores
DiaYoke Core diameter on yoke side, DiaYoke < DiaGap for inner cores
Length Core Length
Skew Skew angle in core length range
Slots Number of slots
SlotType Slot type: 1 to 7
Hs0 Slot opening height
Hs01 Slot closed bridge height
Hs1 Slot wedge height
Related Topics
RMxprt/WaveCoil
Property Description
DiaGap Core diameter on gap side, DiaGap < DiaYoke for outer cores
DiaYoke Core diameter on yoke side, DiaYoke < DiaGap for inner cores
Length Core Length
Skew Skew angle in core length range
Slots Number of slots
SlotType Slot type: 1 to 7
Hs0 Slot opening height
Hs1 Slot wedge height
Hs2 Slot body height
Bs0 Slot opening width
Related Topics
3D Component Library
The 3D Modeler lets you access predefined 3D component libraries and create 3D components
with:
l Geometry – objects, parameters, and coordinate systems.
l Material assignment and definition for components are separate from project material and
other component materials. They do not appear in the Project Tree materials list under
Definitions. Component materials cannot be edited in the project in which they are inserted.
l Component parameters, including variables used by geometries, design data, and material
The ability to create components from models lets you easily share and reuse components. You can
add components to a library and share components with other users. Once you insert a component
into the target design, you can directly manipulate whole components using Arrange operations such
as Move, Rotate and Mirror or Duplicate operations like Duplicate Along Line, Duplicate
Around Axis and Duplicate Mirror.
Note 3D Component Libraries can contain components created using the Create 3D
Component menu command in both Maxwell 2D and Maxwell 3D projects. 3D
Components created in Maxwell 2D projects cannot be used in Maxwell 3D projects, and
vice-versa.
Instances of an inserted component are grouped by definition in the model history. Multiple instances
of identical components permit mesh reuse.
Note Except where noted, the following sections apply to component libraries and components
created in both Maxwell 2D and Maxwell 3D projects.
The documentation includes the following sections:
Creating a 3D Component from an Existing Model
Inserting a 3D Component into a Design
Viewing Properties of 3D Components
3D Components in the Project Manager Window
3D Components in the History Tree
Editing 3D Component Properties
Editing 3D Component Definitions
Updating 3D Component Definitions
Related Topics
The tabs let you view the component features organized according to geometry, design data, and
settings:
l Info tab
l Model tab
l Boundaries tab
l Excitations tab
l Parameters tab
l Encryption tab
l Image tab
Note 3D components selected from the SysLib libraries include tabs only for Parameters,
Object selection for Include or Exclude impacts selection in other tabs. For example, if you exclude
an object from the component creation, the design data, parameters, and coordinate systems
corresponding to that object are also excluded.
Sorting Columns Using the Headers
The features listed for each tab include columns for the Name, check boxes for whether to include,
and properties. You can click on the column headers to sort by Name, Model, or other feature listed
for each tab. Click the column header to select the column to sort. Click again to invert the column.
You can sort lists by using all columns except Include.
Boundaries tab.
l The Create 3D Component dialog does not list design data without an assignment (for
example, a winding in Maxwell).
l The parent of any included boundary/excitation is included, as long as the parent does not
require assignment (for example, a winding in Maxwell).
l Design settings like material overrides are not included.
Once you have made the Include and Exclude settings, and have specified the Image and Info you
click OK to Save 3D Component File. When you click OK, the component is validated for everything
that is included in the component. For example, you cannot include boundaries if the object on which
the boundaries have been created is not included. After validation, a dialog for saving the component
to a location appears.
The Model tab lists all of objects selected before you invoked Create 3D Component. These
correspond to the selected objects listed in the history tree.
l Use the check boxes or text field to Include or Exclude objects for the component.
l For Encrypted components, you can also chose which objects to hide. The hide column is only
enabled if you have the Hide Contained option selected on Encryption tab.
The list is populated with all the boundaries for the selected objects.
l Use the check boxes or text field to Include or Exclude boundaries for the component.
The list is populated with all the excitations for the selected objects.
l Use the checkbox to Include or Exclude excitations in the component. You can also use the
The list is populated with all the mesh operations for the selected objects.
l Use the checkbox to Include or Exclude mesh operations. You can also use the edit box and
The list is populated with all the Coordinate Systems for the selected objects. By default, only the
Coordinate Systems used to define the object orientations are included. You can include Coordinate
Systems created on specific model parts.
l Use the checkbox to Include or Exclude coordinate systems. You can also use the text field
The coordinate Reference system that you specify affects the orientation of the component upon
insertion.
Include/Exclude buttons.
l You can fill in the description field, if desired.
If you create non-geometry variables materials or boundaries, these are listed separately:
If you exclude any geometry, boundary or material associated with a variable, the associated
variable is automatically excluded on the Parameters tab.
The Encryption tab includes a checkbox for you to define a user access password to use the
component.
Encryption is a common technique for encoding information in a manner that is very difficult for
unauthorized users to decode. When this option is enabled for 3D Components, the contents of the
component file are encrypted to protect them from external viewing or editing.
l 3D Components use the Advanced Encryption Standard (AES) with a 256-bit key and
password-based key derivation.
l If the encrypted component is created with an Internal Key, it can be used without additional
authorization.
l If the encrypted component is created with a User Password, that password must be entered
when the component is used in a design.
l It is not possible to edit the definition of an encrypted component within the Electronics
Desktop.
l If the Show All Contents option is selected, the geometry and other contents will be shown
when the component is used. Geometry export and links will operate as for general geometry.
l The Hide Selected Contents option can be used to further protect access to an encrypted
component’s details. When this option is selected, hidden contents will not appear in the
Electronics Desktop user interface.
o All geometry will be hidden, except for objects that the user specifies as visible during
component creation.
o Hidden geometry will not be visible in the model window or included in the history tree.
o Geometry export and links will not be allowed.
o Materials, boundaries, and other setup data will also be hidden, with limited exceptions
such as excitation settings that must be accessed in order to control the simulation and
post processing of the design.
o For components with hidden contents, all geometry will be excluded from field
calculations and from plots of fields and meshes. Plots in surrounding volumes will
extend to, and can include, the outer surfaces of the component, but not the
containing volume.
o Note: Such plots may indirectly reveal component content by providing a view of the
surfaces where the plots terminate. To prevent such exposure, include additional
modeled objects that surround the hidden contents of the component and have material
of the surrounding material environment (e.g. air, vacuum).
l When using the Hide Selected Contents option, the names of objects, materials,
boundaries, and other setup data may appear in progress updates, messages, and other
informational text. The Replace Object and Material Names option can be used to
automatically convert object and material names to generic names in the exported
component. Other sensitive names should be changed before exporting.
l When a project contains one or more encrypted 3D Components, the project file is encrypted
in order to protect its contents. This encryption uses an internal key, so that you can open the
project file without entering a password.
Note Note that there are some additional considerations with respect to projects using encrypted
components. The component itself will always be stored in encrypted form. When an HFSS
or HFSS-IE design contains an encrypted component with hidden contents, it will also
protect other project files containing data that could be used to extract component
information. As of the R18 release, other design types, such as Maxwell or Q3D, do not
support this additional security.
Checking the Encrypt File box enables the Set Password button, and selection buttons for
whether the password is to Show All Contents, or to Hide Selected Contents. You can also
specify a security message. If you provide a message, it is displayed at component insertion, and
when the project containing the component is opened.
Clicking the Set Password button opens a dialog with fields for Password, and Confirm.This
dialog also opens automatically when you check Encrypt File.
If you specify and OK the fields, the password is set. If you cancel, you will be prompted to provide a
password before you save the 3D component.
Selecting With Internal Key disables the Password and Confirm fields. If you select With
Internal Key, you don’t have to specify the password when you use the component.
If you change Allow Component Edit to With User Password, you also specify a Password and
confirmation. The password for Allow Component Edit does not have to be the same as the
password for Allow Component Use. If either Confirm entry does not match the corresponding
password, you will be prompted to correct the situation.
If you then attempt to edit the definition of an encrypted component for which editing is allowed, you
will be prompted to enter the Password. You will have three tries to enter the correct password.
You have a choice regarding whether to Show All Contents or whether to Hide Selected
Contents. If you select Hide Selected Contents, you then specify whether to display the
component outline as a Bounding Box or None.
You can also control the visibility per model object by using the Hide check boxes in the Model tab.
You can specify a Security Message in the text field. The text you provide displays when you insert
a component and when you open a project containing the component.
When you insert an encrypted component, you are presented with an Authentication dialog in which
you enter a password. A user gets three attempts to enter the correct password.
After authentication, the component is inserted for use. If you have specified a security message,
that is displayed.
If you choose to edit the definition for the inserted component, you will be prompted to enter the Edit
password.
If you decide to open an encrypted but editable 3D Component file using File>Open, you are
required to enter both the use password (unless encrypted with an internal key) , and the edit
password.
The Image tab shows the preview image for the component, based on the reference Coordinate
System. The image also responds when you Include or Exclude objects from the Model tab.
l You can right-click for a menu to change the view of the preview image.
l Changing the preview orientation does not affect the modeler window view.
If you use the Encryption tab and/or Model tab settings to hide/show the model or specified model
objects, the Image tab displays accordingly.
If you use the Encryption tab to display only an object outline, the Image tab displays accordingly.
On the Info tab you can view and edit component information, as well as add notes. The Name in the
first field is used when the component is inserted into a design.
You can also included a .bmp format image file to display in the upper right area of the 3D modeler
whenever the component is used. The image file typically contains a company logo. Click Browse to
open a window to navigate your file system select the image.
The image cannot be removed from the modeler window while the component is used.
When you OK the Component File dialog, an Export File dialog displays. By default the Save in
field shows the model source directory. Click PersonalLib or UserLib to display a 3D Components
directory.
The default File name is the Component name specified in the Info tab.
You can select any component from the library, and drag and drop to insert it in the design. Double-
click on any model in the component libraries to view the Insert 3D Component Instance dialog
opened to the Parameters tab. You can also view the Image and Info tabs, and select the target
coordinate system.
Selecting Browse 3D Components lets you navigate directories via a browser window.
Selecting Insert Instance displays further menu selections for pre-defined components in other
libraries such as the Antennas library and the Rectangular Waveguide library. If you have added
components to PersonalLib or UserLib, these also appear after you refresh the menu.
You can also click Draw>3D Component Library to access the Browse and Insert Instance
menus to select a component to insert into a design.
Before inserting a component in a design, it can be helpful to create a target coordinate system to
provide a location for the component. In the following 3D project example, the design includes two
additional coordinate systems:
Selection of a coordinate system in the History tree displays a potential location for inserting a
component.
Selecting the *.a3dcomp file displays the component image and file name.
Note 3D components created in Maxwell 2D cannot be used in Maxwell 3D projects, and vice-
versa. A message displays if you attempt to insert a component that is incompatible with
the active design.
If you have previously inserted a component into a Project, the shortcut menu for the 3D
Component displays that component so that you can easily insert another instance of the
same component.
2. If you have used Browse, select a component and click the Open button. If you use the Insert
Instance menu, select the component name.
If the component has been encrypted, you must provide a password. If you insert another
instance of the same component, you do not need to enter the password again for that
component again.
You have three tries to enter the correct password. Upon successfully entering the password,
the Insert 3D Component dialog opens with the Encryption tab displayed.
You see the Insert 3D Component dialog opened on the Parameters tab.
Tabs let you view the Parameters, Image, and Info. You can edit parameter values, and
assign variables or expressions for parameters
3. Use the menu to select the Target Coordinate System if any have been defined in addition to
the Global coordinate system. The target coordinate system that you select is highlighted in
the modeler window.
4. When you click OK the component is placed at the coordinate system you selected.
5. If the component has a logo defined, the image is always displayed in the upper right of the
modeler window.
Related Topics
Show, Show Only, Hide and Fit features, helpful in working with 3D components are described here:
Fit All Objects in a View Window.
Fit Selected objects in a View Window.
Showing Only Selected Objects in All or Active Views
Hiding Objects from View
Selecting a 3D component in the Project tree displays docked properties with tabs for General,
Materials and Component data.
If you select a component in the Project window, then right-click and select Edit>Properties, you
can view the Properties window. If you choose the Materials tab, you can then select any listed
material and the parts of the component made of that material are highlighted in the Modeler
window.
Selecting a 3D component in the History tree displays docked properties with tabs for General and
Parameters.
Selecting a 3D component in the Modeler window displays docked properties with a tab for
Attributes.
Component materials do not appear in the Project Tree Definitions list. If you select the icon for an
inserted component, the Properties window contains a Materials tab that shows the Materials
defined for the selected component.
Selecting these inserted components populates the Properties window which has tabs that display
the instance attributes.
Excitations included in the 3D Components appear in the Project tree. This gives you the ability to
edit Post Processing settings.
Boundaries defined inside the component do not appear in the project tree. However, boundary
properties can be when you select the component in the Project tree and view the Component
properties under the Component Data tab.
Also, you can use Maxwell>Boundaries>Reprioritize to set the priorities of all boundaries relative
to non-component boundaries.
Related Topics:
To disable this grouping, right click on an instance, and uncheck Group Components by Definition.
This causes the display to show numbered instances listed without the icon for the primary
component.
Related Topics
l Edit excitations by suppressing their use on the Excitations tab in the Properties window.
Checking Suppress in the Properties window removes the port on the selected instance from
the Excitations list on the Project tree. Unchecking Suppress activates that port for the model
and causes the port to appear in the Excitations list.
l Edit excitation Post Processing such as deembed distance, renormalization.
l Edit component attributes like component name, part names, material assignment, and
model/non-model flags.
l Edit boundaries, excitation and mesh operations for the component on the corresponding tabs
in the Properties window.
l Add additional boundaries/excitations on parts coming from component
However, operations on individual parts of component are not allowed.
l Copy/Paste component
l Delete component
l Arrange component: Move, Rotate, and Mirror
l Duplicate component: Along Line, Around Axis, and Mirror
l Edit Attributes for Display Wire frame, Color, and Transparency.
l Use Edit>Select>Submodel to quickly select component
You can then edit this new project. When you save the edited component to your library, you can
Update 3D Component Definition for component instances inserted in your designs.
To edit a 3D Component definition.
1. You can begin editing a 3D component definition from either the History tree or the Project
tree.
l To begin from the History tree, select the component,, and right-click to display the
l To begin from the Project window, select the 3D Components icon and right click to
display the short cut menu. Then select Definitions.
This displays the 3D Component Definitions window in which you can select the
component and then click Edit Definition.
2. For 3D Components that are not encrypted, you can edit the definition. Software will
automatically create a new project in the existing session. The Project will have one design of
same type as the original design from which edit definition was initiated. You can now edit the
design with component data as required without any restrictions. All the component details are
available in their respective folders. Complete geometry history is available in history tree.
Material properties are added to the project definition folder. Boundaries, excitations, etc., go
to their respective folders in the project tree and component parameters become project or
design variables.
3. You can use File/Save to update the original component definition file. The Update 3D
Component dialog will come after File/Save.
The Update 3D Component dialog is populated with all entities - objects, boundaries,
excitation etc. in the “component-edit” design. In addition, previous settings like reference
coordinate system, component name, owner etc. from the Info tab, as well as encryption
settings, are preserved.
If you use File/Save As to save to a new component definition file, you also have the option to
Save As ANSYS Electronics Desktop file.
4. Once you have saved the updated component version, you can go back to the original design
and update all the instances using that component. Note that update definition is not automatic
even though component definition edit was triggered from that design. Instead when an
assembly design becomes active, it prompts you to update the 3D component definition. You
can then select to update the definition.
You can also open the 3D definitions window to select a component, and view the Definition
Status column. If an update is available, you can select the component and click Update
Definition.
5.
See Update 3D Component Definition
6. After editing is done, you also select the model and then use the Create 3D Component
command.
See Creating a 3D Component from an Existing Model.
The component data is loaded from component definition file. The Info tab version
automatically increments. Before saving, you have the option to Keep project open for
edit/save, or Save definition and close project.
7. You can select Edit File Path to update the file path for component definition. This opens a
browser window that lets you navigate your file system and select a file path to be used for the
new component definition.
You can also accomplish this by right-clicking on the 3D Component icon in the Project Tree and
selecting Definitions from the shortcut menu. This displays a dialog listing available component
definitions. The Definition status column lets you know if an undated definition is available.
SpaceClaim Integration
ANSYS Electronics Desktop can import geometry from a SpaceClaim document using the
SpaceClaim Link feature. SpaceClaim Link can be used: if the SpaceClaim Direct Modeler
(SCDM) is part of an ANSYS installation that is of the same version as ANSYS Electronics Desktop;
or if a standalone installation of the SpaceClaim modeler exists on the same machine.
SpaceClaim Link is only available on Windows, and provides the following functionality:
ANSYS Electronics Desktop can import geometry from the SpaceClaim modeler. To use
SpaceClaim Link with ANSYS Electronics Desktop, you must install the SpaceClaim modeler on
the same Windows machine. SpaceClaim Link provides following functionality:
l Browse and select SpaceClaim documents to import geometry directly.
l Import geometry by connecting to a active SpaceClaim session.
l The SpaceClaim geometry is imported as a User Defined Model (UDM) along with geometry
parameters with units, rendering attributes, and material assignments.
l For a SpaceClaim link for a UDM already in the design, you can launch a SpaceClaim session
from AEDT and open the corresponding SpaceClaim document.
l A SpaceClaim document referenced by a SpaceClaim link UDM is included in project archive
automatically.
l By option you can break a connection to SpaceClaim. In this case, all UDM parts are then
converted to imported objects. This feature lets you use SpaceClaim just for its healing
capacity.
Options Include:
l Import Solid Bodies: Default is ON
l Import Surface Bodies: Default is ON
l Parameters: Default is ON (It imports parameters).
l Parameter Key: A string that is used to filter out parameters. Default is no string - i.e. all
SpaceClaim parameters will be imported.
l Rendering Attribute: We import color of objects. By default the option is ON.
l Material assignment: By default we import material assignment. Note that material
properties are not imported. A material with exact name must already exist. Otherwise,
validation issues a violation.
You can select a session with “Not Connected” status and press the Connect button to import
geometry from that session. Once connected, that session is used to regenerate the corresponding
SpaceClaim link UDM.
The dialog is empty if no sessions are running.
l If any SpaceClaim document refers to other documents (e.g., an assembly document might
refer to individual part documents), these indirectly referenced documents will also be
included in the ANSYS Electronics Desktop project archive.
l When an archive is unarchived, referenced SpaceClaim documents will be put in a “restored_
files” subfolder in the project directory. All definition paths are updated to refer to the reference
files in the “restored_files” folder.
Related Topics
Model Analysis
For some models it may be beneficial to remove unnecessary small entities and to fix object
misalignments to avoid potential mesh issues. Maxwell includes Model Analysis functions to help you
evaluate models you have imported or created. Select Modeler> Model Analysis to see the menu
options. Depending on the design and the current selection, some features may not be enabled. The
menu includes the following commands.
l Analyze Objects
l Heal
l Align Faces
l Remove Faces
l Remove Edges
Note Before running model analysis, you must remove all command history for the
selected object by using the Purge History command. If you need to save the object
history, save a separate copy.
1. After import, you typically perform validation check. This lets you focus on objects and object
pairs that have errors and or warnings. The objects that fail should be analyzed by using the
Related Topics
Healing Options
Technical Notes: Healing Models
Technical Notes: Healing and Meshing
Technical Notes: Detecting and Addressing Model Problems to Improve Meshing
4. If desired set the Detect Small Entities features and tolerance values.
l Small Edges, length less than
Related Topics
Analysis dialog box via the Perform pull-down menu on the Objects tab.
3. Select or clear the Perform Object Pairs Analysis check box. Selecting this option
evaluates the mesh for all combinations of the selected objects.
4. Select or clear the Ignore Objects Separated by greater than check box, and enter a value
in the text box. Selecting this option means that object pairs are disregarded from analysis if
their separation is greater than the specified value.
5. Click OK to perform the analysis with the selected options.
The Model Analysis dialog box appears, displaying the results of the analysis.
Related Topics
l Objects Misalignment
l Surface Mesh
The Model Analysis dialog box appears. (This dialog box also appears automatically after
clicking OK in the Analysis Options dialog box.)
3. Select the Auto zoom to selection check box to automatically zoom to the item selected on
the Objects tab.
4. Make the desired changes on each tab in the Model Analysis dialog box :
l Objects tab
Related Topics
Objects Tab
All results relating to model analysis of specific objects are presented under the Objects tab. The
Objects tab for the Model Analysis dialog lets you view the following information:
1. The results table contains the following information.
l Name - column listing the objects in the current design.
l Last Analysis status - column giving the analysis status of the listed objects. Objects can
dialog.
l Analyze Surface Mesh - invokes a mesh for each selected object and reports analysis
results under the Surface Mesh (Single/Pairs) tab. Selecting this option displays a dialog
with radio buttons to select.
l Perform Object Pairs Analysis - evaluates mesh for all combinations of the selected
objects.
l Ignore objects separated by greater than a specified value - object pairs are disregarded
from analysis if their separation is greater than the specified value.
l Click OK to perform the analysis with the selected options.
l Analyze Interobject Misalignment - determines any misalignments between two
selected objects in the results table. The results are reported under the Objects
Misalignment tab.
l Display Healing Log -- checking this causes the Model Analysis dialog to display a
healing log which includes information about operations performed on an object during the
healing process.
Related Topics
Analyze Objects
Analyze Interobject Misalignment
Analyze Surface Mesh
Healing
Set Material Override
The table in this panel displays results of an Interobject Misalignment analysis. All misaligned face
pairs corresponding to the analyzed objects are listed in the table.
l Align Faces - select a face pair in the table and click the Align Faces button to align selected
faces.
l Clear All Analysis Data - this button removes all information from the tables.
l Auto Zoom to Selection -- if this option is checked, the modeler automatically zooms to the
Related Topics
Analyze Objects
Analyze Interobject Misalignment
Analyze Surface Mesh
Healing
Technical Notes: Healing and Meshing
Set Material Override
l Object Pairs
Note Auto Zoom to Selection -- if this option is checked, the modeler automatically
zooms to the object or object pair selected.
2. The results table contains the following information:
l Object - column listing object name or a pair of object names.
l Last Analysis Status - column stating the meshing status of the object or object pair.
l Mesh Success
l Mesh Failure
l Error Type - this column gives the category of error that caused the mesh failure.
l Error Detail - provide specific geometry information regarding mesh error location.
Display options include:
l Display Mesh Analysis log check box -checking this displays further details concerning each
error to be listed.
l Auto Zoom to Selection -- checking this causes the modeler to automatically zoom to
objects or faces corresponding to the error.
Related Topics
Analyze Objects
Analyze Interobject Misalignment
Analyze Surface Mesh
Healing
The table in this panel lists all model errors as viewed by the mesher.
l Error Type - this column gives the category of error that caused the mesh failure.
l Error Detail - provide specific geometry information regarding mesh error location.
error to be listed.
l Auto Zoom to Selection -- checking this causes the modeler to automatically zoom to
Related Topics
Analyze Objects
Analyze Interobject Misalignment
Analyze Surface Mesh
Healing
Related Topics
Model Analysis
Modifying Objects
Drawing Objects
Simplify Command
Use the Modeler>Model Preparation>Simplify command to converts a complex MCAD object
into simpler primitives which are easy to mesh and solve. The operation can be applied on any
selected object and not just imported objects. You can specify the type of simplification as Bounding
Box, Primitive Fit, or Polygon Fit.
The History tree shows the Simplify command as being applied to the object.
Any parameters you specify in the dialog you can also edit in the Properties dialog for the History tree
Simplify command to get a different simplification. The properties display in the docked properties
includes only the parameters that are used by your currently selected Simplify command type.
None of the parameters of simplify operation accept variables. If you right-click on Simplify for a
project that was created for an earlier version, the menu displays and option to Upgrade version.
After an upgrade, the option not longer appears. The Properties dialog for the Simplify command
allows you to suppress the command.
1. Select an object.
This enables the Simplify command on the Modeler>Model Preparation submenu.
2. Click Modeler>Model Preparation>Simplify
This opens the Simplify Bodies dialog. A drop down menu lets you select the degree of
simplification, from Bounding Box, Primitive Fit, or Polygon Fit.
Bounding Box Simplify Type
If you select Bounding Box as the Simplify Type, there are no additional parameters. The
object is replaced by its exact bounding box as e computed in operation’s coordinate system.
You can change the operation CS to get a bounding box in an appropriate orientation.
simplification. Cleanup include removing small features like rounds, fillets, chamfers in a
solid body. It is recommended to set this option to get more simplified result.
l Whether to Allow Splitting - This option controls if object should be split during during
simplification. If this option is selected, complex object will first split into multiple pieces and
each piece will be further simplified. Setting this option will result in an object which will
match more closely with original object. It is recommended to set this option.
l See the Separate Bodies and Purge History description below.
simplification. Cleanup include removing small features like rounds, fillets, chamfers in a
solid body. It is recommended to set this option to get more simplified result.
l Whether to Allow Splitting - This option controls if object should be split during during
simplification. If this option is selected, complex object will first split into multiple pieces and
each piece will be further simplified. Setting this option will result in an object which will
match more closely with original object. It is recommended to set this option.
l Extrusion Axis, whether Auto selected, or X, Y, or Z. - This option specified a normal plane
in which polygon profile is looked for. The default is Auto which allows an algorithm to
determine best possible plane for polygon profile. You can specify a axis to help the
algorithm, particularly when there is a draft or chamfer in the extrusion direction. The
polygon profile is then swept in the extrusion direction.
l Interior Points on Arc - This specifies number of interior points created when a curve on the
polygon profile is represented by line segments. The range is 1 to 100 with default being 3.
Total number of points used to represent a curve is 5 when number of interior points is 3.
This number specifies the maximum number of interior points to add. The number of points
added could be less if the Length Threshold is already met.
l Length Threshold % - This specifies the length of edge as percentage of maximum length of
edge is more than the specified threshold, more interior points are added until the number
of “Interior Points on Arc” is met.
l Whether to Separate Bodies and Purge History, and if so, whether to clone original objects
before the operation. See the Separate Bodies and Purge History description below.
Separate Bodies and Purge History Option for Primitive Fit or Polygon Fit
Separate bodies and purge history option is available when simplification type is Primitive fit or
Polygon fit and you check Allow Splitting.
With this option selected, the input body is simplified into multiple primitives (or polygon shapes) and
a new part is created for each simplified shape. This option also purges the history of original part
and it is not possible Edit Properties of the Simplify operation. You can choose to clone original
object before simplification to retain history of original part.
By default, the current working CS is used as the Simplify operation CS, but you can also change
operation CS through the Simplify command property window or Property dialog.
Related Topics
Healing
Heal
The Heal command provides a way to correct geometric violations and to remove specific kinds of
small features. When models are imported, two types of errors can occur – geometry errors and
topology errors. Geometry errors are errors in definition of the underlying geometry while topology
errors are errors in how the underlying components like faces, edges and vertices are connected.
ANSYS recommends that these be fixed before you invoke mesh generation.
Imported objects which have only one operation on the history tree, can be healed. (Use the Purge
History command to remove unwanted history operations before using Heal.)
Note If you need to save the object history, save a separate copy for that purpose before you
heal the object.
Healing can be invoked in different ways.
l The menu command Modeler>Model Healing>Heal command applies to a selected object.
l Some formats permit healing during Modeler>Import. These are: 3D Modeler file (*.sm3),
SAT file (*.sat), STEP file (*.step,*. stp), IGES file (*.iges, *.igs), ProE files (*.prt, *.asm),
CATIA (*.model, *.CATpart), and Parasolid file (*.x_t, and *.x_b).
Selecting any of these formats enables a check box at the bottom of this window, "Validation
and Healing Options."
See this table for details. The Quick option allows you to switch off healing to speed up the
import process.
l The Model Analysis dialog that appears after running Modeler>Model Analysis>Analyze
Objects, or Modeler>Model Analysis>Show Analysis dialog includes a Perform action
menu with Heal Objects as a selection.
Any of these approaches leads to the same heal process.
Related Topics
Align Faces
Remove Faces
Remove Edges
Healing Non-manifold Objects
Healing Options
Modifying the Model Resolution
Technical Notes: Removing Object Intersections
Technical Notes: Healing and Meshing
Technical Notes: Detecting and Addressing Model Problems to Improve Meshing
The Import File dialog contains shows different Validation and Healing Options for the seven file
types listed here. The Quick option is allows you to import these formats without healing.
Related Topics
Healing
Healing Options
Technical Notes: Removing Object Intersections
Technical Notes: Healing and Meshing
Technical Notes: Detecting and Addressing Model Problems to Improve Meshing
Technical Notes: Mixed Dimensionality.
After import an object, you should perform a validation check. This lets you focus on objects and
object pairs that prevent the mesh from being invoked. The objects that fail api_check_entity() should
be analyzed via the Analyze Objects menu item.
1. Select the objects, and click Modeler >Model Analysis >Analyze Objects.
The Analysis Options dialog box appears, allowing you to perform small feature detections.
Once you have completed this, click OK. The Model Analysis dialog box appears.
2. In the Model Analysis dialog box, select the objects marked with "Invalid Entities Found",
and click Perform>Heal Objects. The Healing Options dialog box appears, allowing you to
remove parameters. Click OK. The Model Analysis dialog box reappears.
Note In most cases, the objects are healed, and the errors are
fixed.
3. If errors persist, select the edges and faces still containing errors, and click Delete.
This replaces each selected face/edge object by a tolerant edge/vertex, respectively. In some
cases, the replacement of the face/edge by tolerant edge/vertex fails.
When models pass the initial validity checks, mesh generation could still fail. The following errors can
be present in models: (See Detecting Errors.)
1. Non-manifold topology. These are non-manifold edges and vertices that are present in the
model.
2. Object pair intersection. This detects whether pairs of objects intersect.
3. Small feature detection – small edge length, small face area and sliver face detection.
4. Mis-aligned entities detection – detects pairs of faces from objects that can be aligned to
remove object intersections. This improves the probability of mesh success.
5. Mesh failure error display. This is available for single object, object pairs and last simulation
run (all objects in a model). Errors reported by the meshing module are reported to the user.
Errors of type 3 and 4 must be resolved before the mesh can be invoked on the model.
By default, the Heal command is automatically applied to imported objects.
Related Topics
Healing
Fix Intersections Between Objects (Healing Stage 2)
Fix Object Pair Intersections (Healing Stage 3)
Analysis Phase (Healing Stage 4)
Healing Non-manifold Objects
Healing Options
Set Material Override
Technical Notes: Healing and Meshing
Technical Notes: Detecting and Addressing Model Problems to Improve Meshing
The second stage in healing is to fix intersections between objects. After validation check is
performed, the pairs of objects that intersect are chosen for analysis. Use the analysis results to find
whether objects have faces that can be aligned.
Choose all the bodies that intersect with another body.
1. From the Objects tab of the Model Analysis dialog box, click Perform>Analyze
Interobject Misalignment.
l Alternatively, you can click Modeler>Model Analysis>Analyze Interobject
Misalignment.
If the analysis finds object pairs that can be aligned, they are displayed on the Objects
Misalignment tab.
2. You can select individual or multiple rows, and align the faces. In some cases, face alignment
fails if the topology of the body changes by a large factor after alignment.
3. Identify individual bodies and body pairs that fail to mesh.
4. Perform a mesh analysis on individual objects and object pairs.
5. Review the reports and fix the errors.
Related Topics
Healing
Validation Check (Healing Stage 1)
Fix Object Pair Intersections (Healing Stage 3)
Analysis Phase (Healing Stage 4)
Healing Non-manifold Objects
Healing Options
Set Material Override
Technical Notes: Healing and Meshing
Technical Notes: Detecting and Addressing Model Problems to Improve Meshing
The next stage of healing is to fix object-pair intersections. The healing process in stage two might fix
some of these errors (by alignment).
1. If these errors are still present, you must remove them either by using the Remove Faces
command (Modeler>Model Analysis>Remove Faces) or by performing a Boolean
subtraction.
2. Overlap between objects is too large to be fixed by healing or by face alignment. Boolean
intersect shows the common portion between the bodies. In this case, use a subtract
operation to remove overlaps.
Related Topics
Healing
Validation Check (Healing Stage 1)
Fix Intersections Between Objects (Healing Stage 2)
Analysis Phase (Healing Stage 4)
Healing Non-manifold Objects
Healing Options
Set Material Override
Technical Notes: Healing and Meshing
Technical Notes: Detecting and Addressing Model Problems to Improve Meshing
If the last simulation run contains errors, they are displayed in the Model Analysis dialog box, on the
Last Simulation Mesh tab.
Related Topics
Healing
Validation Check (Healing Stage 1)
Fix Intersections Between Objects (Healing Stage 2)
Fix Object Pair Intersections (Healing Stage 3)
Healing Non-manifold Objects
Healing Options
Set Material Override
Technical Notes: Healing and Meshing
Technical Notes: Detecting and Addressing Model Problems to Improve Meshing
Non-manifold objects, in simple terms, are non-physical objects or objects that cannot be
manufactured. For example, objects that intersect themselves (like the symbol for infinity in 2d) are
clearly non-manifold. In addition objects that touch themselves may be non-manifold such as when a
2D object touches itself at a vertex, or a 3D object touches itself at a point or edge. These cases are
shown in the figure below.
Another type of non-manifold object has mixed dimensionality. For example, a pair of 2D objects
connected by a 1D line segment, or a pair of 3D objects connected by a 2D sheet object. These
cases are illustrated below.
The criteria for manufacturability is a simple manifestation of a complex mathematical concept that
must be adhered to in the solid modeling system. When creating geometry, either directly, or through
boolean operations, you should always consider whether or not the resulting operation will result in
an object that could not be manufactured. If this is the case, then the object will cause an error in the
modeler or in the meshing system.
To heal non-manifold objects:
1. Identify an edge that is non-manifold.
2. Select the connected faces.
You can use the Face selection toolbar icons.
3. Create a face coordinate system on the planar face.
4. Create a small box to cover the non-manifold edge.
5. Either do a union or a subtraction to remove the faces that contain the non-manifold edge.
The non-manifold edge is now removed. You may also remove or add a small portion of the
model.
6. Repeat the above steps for all the non-manifold edges.
Related Topics
Healing
Validation Check (Healing Stage 1)
Fix Intersections Between Objects (Healing Stage 2)
Fix Object Pair Intersections (Healing Stage 3)
Analysis Phase (Healing Stage 4)
Healing Options
Set Material Override
Technical Notes:Healing and Meshing
Technical Notes: Detecting and Addressing Model Problems to Improve Meshing
Related Topics
Healing
Technical Notes: Removing Object Intersections
Healing Options
Technical Notes: Healing and Meshing
Technical Notes: Detecting and Addressing Model Problems to Improve Meshing
Technical Notes: Mixed Dimensionality
The Healing Options let you control how healing proceeds with respect to a variety of features and
issues.
1. Click Modeler>Model Healing>Heal to open the Healing Options dialog. You can also
open the Healing Options dialog from the Model Analysis dialog via the Objects tab drop
down menu.
The Healing Options dialog contains three tabs:
l Healing Options
l Properties, which lists the geometric properties of the currently selected object.
2. Select the Healing Options tab on the Healing Options dialog to specify the following:
l Heal Type as: Auto Heal (default), Manual Heal, or No Heal.
This enables a field for the Stitch Tolerance value, and a check box to Stop After First
Error.
l Perform Geometry Simplification
This enables fields for Simplification Tolerance and Maximum Generated Radius values.
You can also select radio buttons to Simplify Curves, Surfaces, or Both.
l Tighten Gaps settings.
A check box to select Perform Tighten Gaps
l Object Bounding box Scale Factor, less than a specified scale factor
l Sliver Edge Width, less than a specified value.
Note Sliver faces have a maximum distance among the long edges that is smaller
than the specified tolerance and have at least one short edge and at most three
long edges. A short edge has a length less than the specified tolerance. A long
edge has a length greater than the specified tolerance. You can give the
tolerance as a absolute value or a factor of the bounding box containing the
face.
You can Control Object Properties Change according to the following settings:
l Allowable Change in Surface Area check box, and percent value.
4. Select the Properties tab to view the geometric properties of the currently selected object.
5. Click OK to apply the specified Healing options and to open the Analysis dialog.
Related Topics
Healing
Validation Check (Healing Stage 1)
Fix Intersections Between Objects (Healing Stage 2)
Fix Object Pair Intersections (Healing Stage 3)
Analysis Phase (Healing Stage 4)
Healing Non-manifold Objects
Set Material Override
Technical Notes: Healing and Meshing
Related Topics
Healing
Stitch Sheets
Technical Notes: Removing Object Intersections
Healing Non-manifold Objects
Modifying the Model Resolution
Technical Notes: Healing and Meshing
Technical Notes: Detecting and Addressing Model Problems to Improve Meshing
Stitch Sheets
Use the Modeler>Model Healing>Stitch Sheets command to stitch selected sheets.
1. Select two or more sheet objects.
This enables the Stitch Sheets command on the Modeler>Model Healing submenu.
2. Click Modeler>Model Healing>Stitch Sheets
This displays a Stitch dialog with a Maximum Stitch Tolerance field. The default value (auto)
comes from the Healing dialog Options tab with Manual Healing selected. You may edit the
value in the Stitch dialog or in the Healing Options.
3. Click OK.
This closes the dialog and attempts to perform stitching on the selected sheets. If the sheets
are separated beyond the stitch tolerance, stitching is not performed and a warning is issued.
Related Topics
Healing
2. If overlap between objects is too large to be fixed by healing or by face alignment. Boolean
intersect shows the common portion between the bodies. In this case, use a subtract
operation to remove overlaps.
Related Topics
Align Faces
Analyzing Objects
Analyzing Interobject Misalignment
Analyzing Surface Mesh
Healing an Imported Object
Healing
Technical Notes: Healing and Meshing
Technical Notes: Healing Models
Technical Notes: Error Types
Technical Notes: Detecting Errors
can also use the toolbar icon when you have made an appropriate edge selection .
Related Topics
Analyzing Objects
Analyzing Interobject Misalignment
Analyzing Surface Mesh
Healing an Imported Object
Technical Notes: Healing and Meshing
Technical Notes: Healing Models
Technical Notes: Error Types
Technical Notes: Detecting Errors
also use the toolbar icon when you have made an appropriate face selection .
Related Topics
Modifying Objects
You can quickly modify the position, dimensions, and other characteristics of objects created in the
Modeler window.
l Delete objects
l Cutting Objects
l Move objects
l Rotate objects
l Change the Orientation of an object
l Mirror objects about a plane
l Offset an object (move every face of an object)
l Duplicate objects
l Scale the size of objects
l Sweeping objects
l Cover lines
l Cover faces
l Uncover faces
l Detach faces
l Detach edges
l Create a new object by taking a cross-section of a 3D object
l Connect objects
l Move faces
l Move Edges
l Unite objects
l Subtract objects
l Create objects from intersections
l Create an object from a face
l Create an object from an edge
l Split objects
l Separate objects
l Convert polyline segments.
l Round the edge of an object (Fillet)
l Flatten the edge of an object (Chamfer)
l Wrap Sheet Command
l Imprint Projection Commands
l Imprinting an Object
l View and Edit Commands on History Tree Objects
l Purge History
l Generate History
Related Topics
Related Topics
2. Click Edit>Copy .
The objects are copied to the Clipboard, a temporary storage area. The selected items are not
deleted.
3. Select the design into which you want to paste the objects. It can be the same design from
which you copied the items.
4. Click in the Modeler window.
5. Select the working coordinate system. Objects are pasted relative to the current working
coordinate system.
6. Click Edit>Paste .
Related Topics
Deleting Objects
1. Select the objects to delete.
2. Click Edit>Delete .
l Alternatively, press Delete.
The objects are deleted.
Note To maintain valid boundaries, excitations, or other parameters that were associated with
the deleted object, reassign them to other objects.
Related Topics
If you select a polyline in the history tree, the Delete Start Point and Delete End Point
commands may be enabled. These permit you to delete portions of the line.
1. In the history tree, locate the polyline that contains the segment you want to delete. Expand
this part of the history tree.
2. In the history tree, select the polyline you want to edit.
Related Topics
Undoing Commands
Redoing Commands
Cutting Objects
1. Select the objects to cut.
2. Click Edit>Cut.
The objects are copied to the Clipboard and deleted from the design.
Moving Objects
1. Select the objects to move.
2. Click Edit>Arrange>Move .
3. Select an arbitrary anchor point in one of the following ways:
l Click the point.
l Type the coordinates of a point relative to the anchor point in the dX, dY, and dZ boxes,
Rotating Objects
Rotate objects about the x-, y-, or z-axis using the Edit>Arrange>Rotate command.
To rotate objects about an axis:
1. Select the objects to rotate.
2. Click Edit>Arrange>Rotate .
The Rotate dialog box appears.
3. Select the axis about which to rotate the objects: X, Y, or Z.
4. Type the angle to rotate the objects in the Angle box.
A positive angle causes the object to be rotated in the counter-clockwise direction. A negative
angle causes the object to be rotated in the clockwise direction.
5. Click OK.
The selected objects are rotated about the axis.
To rotate andcopy objects, use the Edit>Duplicate>Around Axis command.
Related Topics
Mirroring Objects
Mirror an object about a plane using the Edit>Arrange>Mirror command. The plane is selected by
defining a point on the plane and a normal point. This command allows you to move an object and
1. Click Edit>Arrange>Mirror .
2. Select a point on the plane on which you want to mirror the object.
You can do this by clicking a point, or typing coordinates in the X, Y, and Z boxes in the status
bar.
If you select a point on the object, the mirroring is relative to that point on the object. In the
following example, the first point clicked after selecting Edit>Arrange>Mirror was on the
right-rear bottom corner of the selected object. So the axis of rotation as you move the cursor
is that corner. As you move the cursor, it drags a diamond-shape on a vector extending from
the initial point. The distance along the vector does not matter. Moving the mouse rotates an
outline of the object to new orientations. Clicking the mouse moves the object to location
indicated by the outline.
In this second example, the initial point is at a distance from the original object, designated by
the triad from which the handle for rotation extends to the dragging cursor.
Related Topics
Offsetting Objects
Move every face of a 3D object in a direction normal to its surface using the Edit>Arrange>Offset
command. The faces are moved a specified distance normal to their original planes. This command
enables you to move every face of a solid object without having to individually select and move each
face. Use the Surfaces>Move Faces>Along Normal command if you want to move just one or
more faces of an object.
To offset every face of an object:
1. Select the object you want to offset.
2. Click Edit>Arrange>Offset.
The Offset dialog box appears.
3. Type the distance you want to move the object faces from their origins, and then select a unit
from the pull-down list.
4. Click OK.
The selected object's faces are moved the distance you specified.
Duplicating Objects
You can duplicate objects within a design using the Edit>Duplicate commands. Duplicates are
dependent upon the parameters of their parent object at the time they were created, that is, they
share the parent object's history at the time of creation. The command hierarchy in the history tree
shows the duplication command, illustrating which commands affect all duplicates (those performed
before the duplication) and which commands do not affect the duplicates (those performed after the
duplication). For example, if you modify the radius of a parent object's hole, the change is applied to
the holes of the object's duplicates because they share the radius specification history, but if you
move the faces of the parent object, its duplicates are not affected because this operation took place
after the duplicates were created.
Operations performed on duplicates are independent. For example, if you duplicate a cylinder twice,
creating a row of three, and then split the second cylinder, the first and third cylinders are not affected
by the split.
When creating duplicates, the parent object is duplicated along a line or around an axis the number
of times you specify. You can also create a single duplicate that mirrors the parent object about a
plane.
Choose from the following commands:
To copy objects to another design, use the Edit>Copy and Edit>Paste commands.
Note There is currently no method for dissolving the parent/duplicate relationship once a
duplicate has been created.
You can duplicate an object along a straight line using the Edit>Duplicate>Along Line command.
The line along which the object is duplicated can be vertical, horizontal, or lie at an angle.
1. Select the object you want to duplicate.
Any point in the drawing region can be selected; however, selecting an anchor point on the
object's edge or within the object makes it easier to select the duplication line.
b. Select a second point in one of the following ways:
l Click the point.
l Type the coordinates of a point relative to the anchor point in the dX, dY, and dZ boxes.
This point defines the direction and distance from the anchor point to duplicate the object.
4. Type the total number of objects, including the original, in the Total number box.
5. By option check the Attach to Original Object check box. If this is checked, no ports or
boundary conditions are duplicated for the child.
6. Click OK.
The duplicates are placed along the vector you specified.
To duplicate an object around the x-, y-, or z-axis, use the Edit>Duplicate>Around Axis
command.
1. Select the object you want to duplicate.
To duplicate and mirror an object about a plane, use the Edit>Duplicate>Mirror command. The
plane is selected by defining a point on the plane and a normal point. This command allows you to
duplicate an object and specify the duplicate's position.
This command is similar to Edit>Arrange>Mirror, except that this command duplicates an object,
rather than moves it.
1. Select the object you want to mirror.
2. Click Edit>Duplicate>Mirror .
3. Select a point on the plane on which you want to mirror the object.
A line drawn from this point to the mirror plane will be perpendicular to the plane. The distance
between the point on mirror plane and point along the normal does not matter; only the vector
direction matters
4. Select a normal point on the plane in one of the following ways:
Related Topics
Mirroring Objects
Scaling Objects
Scale an object's dimensions in one or more directions using the Edit>Scale command.
The scale of an object is determined by the distance of each of its vertices from the origin of the
model coordinate system. When an object is scaled, the distance of each vertex from the origin is
multiplied by the scaling factor, causing the object to be resized and/or moved.
For example, if you specify a scaling factor of 2 in the x direction, each vertex in the model is moved
so that the distance to its origin is doubled. A vertex located at the origin cannot not move. You can
alter an object's proportions by scaling it in one direction.
To scale an object's dimensions in one or more directions:
1. If necessary, set a different working coordinate system to achieve the desired scaling.
2. Select the object to scale.
3. Click Edit>Scale.
The Scale dialog box appears.
4. Type the scale factor for each axis.
5. Click OK.
The object is scaled about the working coordinate system's origin.
Related Topics
Sweeping Objects
You can sweep a 2D object around an axis, along a vector, or along a path to create a 3D solid
object. Objects that can be swept include circles, arcs, rectangles, trapezoids, polylines, or any 2D
object created in the 3D Modeler window. The 2D object need not be orthogonal to the sweep path.
You can also thicken sheets to make a 3D object.
You can also sweep open 1D objects, such as polylines. This results in open 2D sheet objects.
You can also sweep one or more faces of a 3D object to create a new object. See Sweep Faces
Along Normal.
Related Topics
Sweep a 1D or 2D object around the x-, y-, or z-axis using the Draw>Sweep>Around Axis
command. Sweeping circles around an axis is a convenient way to create an open coil loop.
Before using this command, keep the following guidelines in mind:
l The object and the axis you are sweeping around must lie in the same plane. For example, if
you are sweeping an object around the z-axis, the object must lie in a plane that includes the z-
axis, such as xz or yz.
l The normal of the object's plane faces must be perpendicular to the axis around which you are
sweeping.
l The object may not cross the axis around which it is being swept.
6. Click OK.
The object is swept along the vector. The new object has the name and color of the original
profile.
Sweep a 1D or 2D object along a path that is defined by an open or closed polyline using the
Draw>Sweep>Along Path command.
Note If the path curve is tangential to the sweep profile, then the sweep will
fail.
To sweep an object along a path:
1. Create the polyline you want to use as a path.
2. Select the object you want to sweep, and then select the new polyline.
3. Click Draw>Sweep>Along Path.
The Sweep Along Path dialog box appears.
4. Type the angle of the twist in the path.
This is the number of degrees the profile will rotate as it is swept through the complete path.
5. Type the draft angle.
This is the angle to which the profile is expanded or contracted as it is swept.
6. Select one of the following draft types from the pull-down list box:
Extended The new object has sharp edges like the original object. The facetting of the
faces is displayed.
Round The new object has rounded edges.
Natural The new object has sharp edges like the original object
7. Click OK.
The object is swept along the path. The polyline object used as the path is deleted. The new
object has the properties of the original object. The Properties dialog box appears, enabling
you to modify the object’s properties.
To create a new object by sweeping select 3D object’s face a specified distance in a direction normal
to its original plane, use the Modeler>Surface>Sweep Faces Along Normal command. Note that
the adjoining faces will not be sheared or bent.
This command is useful for extruding faces, resizing holes, and removing rounded corners.
To sweep selected object faces in a normal direction:
1. Click Select Faces on the shortcut menu.
2. Select the faces of the object you want to sweep.
3. Click Modeler>Surface>Sweep FacesAlong Normal.
4. The Sweep FacesAlong Normal dialog box appears.
5. Type the distance you want to sweep the object face from its origin.
6. Click OK.
The face is swept the distance you specified to create a new object.
Related Topics
Thicken Sheet
degrees), the edges are brought into alignment before the wrap.
l If a vertex from the sheet body and an edge on the target body are close enough, the vertex is
If you delete the 3D object, the wrapped sheet retains the form it took when wrapped.
A sheet object that overlaps corners may not wrap in straightforward fashion, depending on both the
angle(s) involved, and the sheet object. While it is possible, it is not recommended.
Examples:
The following figure illustrates wrapping on a target surface with the snap to an edge. The surface
will snap to an edge if close relative to length of edge. If the angle between the edge is less than 10
degrees, the edge to be wrapped will be aligned to the target body. In the example on the left, the
lower sheet has an edge angle more than 10 degrees. The vertex will be snapped to the edge. The
top sheet in the picture has an edge angle of less than 10 degrees. The vertex is snapped to the
target edge and the sheet edge is aligned to the target. To avoid snapping to an edge or edge
alignment the wrap sheet can be put into contact with the target surface. In that case the sheet will
vertex will not be moved to target edge unless it is within modeling tolerances.
The following figure shows the situation when you move the edge to the edge before wrapping.
The following figure shows the situation when you move a vertex to an edge before wrapping.
The following figure shows the situation where you move a vertex to a face before wrapping.
The figure below illustrates wrapping sheet onto cone. The sheet does not have line contact.
The following figure shows the situation when you move a multilump sheet to touch the target body.
The next figure illustrates wrapping to a non-developable surface. The area of sheet changed from
0.7000mm^2 before wrap to 0.6986 mm^2 after.
The following figure illustrates wrapping on a target surface which has tolerant edges. The tolerant
edge is at the beginning of the wrap. The tolerant edge is not evident visually.
Limitations/Error Conditions:
l Wrapping on non-developable surfaces creates distortion in lengths.
l Working with tolerant edges will work only if the gaps can be tightened sufficiently for the
operation.
l Wrapping on the pole of a surface (such as sphere or cone) is not supported. A warning is
given: WrapSheet: Wrapping sheet contacted pole of target surface. Recommend moving
sheet and splitting out pole from target surface.
l The choice of method for how the sheet body is moved to touch the target face is not directly
selectable by the user. If the sheet to be wrapped and target body touch, then the sheet body
is only rotated at point of contact.
To wrap a sheet object:
1. Create a sheet close to an appropriate 3D object.
2. Select both objects.
3. Click Modeler>Surface>Wrap Sheet.
The sheet object wraps around the 3D object. You can select the wrapped sheet object and
the 3D object separately, and assign properties separately.
If the object cannot wrap, the Message window contains a warning and description.
You can wrap multiple sheets on the same 3D object.
If you delete the 3D object, the wrapped sheet retains the form it took when wrapped.
You can use the Tools>Options>Modeler Options to automatically perform a
Modeler>Boolean>Imprint command after performing a Wrap.
Related Topics
Imprinting an Object
Covering Lines
To cover a closed 1D polyline object with a face, use the Modeler>Surface>Cover Lines
command. The polyline object becomes a 2D sheet object.
To convert a polyline object to a sheet object:
1. Select the closed polyline object you want to cover.
2. Click Modeler>Surface>Cover Lines.
The object is now covered. It is now a 2D sheet object that can be swept to form a 3D solid
object.
Note If you want the modeler to automatically cover all closed polyline objects you draw,
including circles, ellipses, rectangles, and regular polygons, select the Automatically
cover closed polylines option in the Modeler Options dialog box. A closed polyline
object can also be created by using boolean unite operations on two or more polylines.
Covering Faces
To cover object faces, the faces must be united into a 3D sheet object. To cover the face of a 2D or
3D object, use the Modeler>Surface>Cover Faces command.
Covering the face of an open 2D sheet object that had previously been uncovered results in a 3D
solid object. For example, for a box, when you select and uncover a face, the solid box becomes a
sheet with five faces. When you then select that sheet body box and use the Cover Faces
command, the box becomes a solid again with six faces.
To cover the faces of objects:
1. Select the faces of the objects you want to cover.
2. Click Modeler>Surface>Cover Faces.
The object faces are now covered.
Uncovering Faces
Uncover a surface of a 3D object using the Modeler>Surface>Uncover Faces command.
Uncovering the surface of a 3D solid object results in an open 2D sheet object.
To uncover the face of a 3D object:
1. Switch to face selection mode: Click Edit>Select>Faces.
2. Select a face of the object you want to uncover.
3. Click Modeler>Surface>Uncover Faces.
The selected face is uncovered, leaving an open face on the object.
Note You can uncover one face of a 3D object at a time. If you select multiple faces, only the first
face will be uncovered.
Detaching Faces
The Modeler>Surface>Detach Faces command enables you to remove the face of a 3D object,
resulting in two separate objects.
To detach the face of an object:
1. Switch to face selection mode: Click Edit>Select>Faces.
2. Select the face of the object you want to detach. You can select multiple faces to detach.
3. Click Modeler>Surface>Detach Faces.
The selected face is now detached, resulting in two 2D sheet objects.
Detaching Edges
The Modeler>Edge>Detach Edges command enables you to remove an edge of a wire object,
resulting in two separate wire objects.
To detach an edge of an object:
1. Switch to edge selection mode: Click Edit>Select>Edges.
2. Select the edge of the object you want to detach. You can select multiple edges to detach.
3. Click Modeler>Edge>Detach Edges.
The selected edge is now detached, resulting in multiple wire objects.
Note Only edges from wire bodies can be used in a detach edge
operation.
Creating a Cross-Section
You can take a cross-section of a 3D object to create a new 2D object. This is done using the
Modeler>Surface>Section command.
Use this command to create cross-sections of 3D objects on the xy, yz, or xz plane. The cross-
sections are created as 2D closed polyline objects.
To create a cross-section of an object:
1. Make sure the working coordinate system you want to use for the cross-sectioning plane is
set.
2. Select the object from which you want to create a cross-section.
3. Click Modeler>Surface>Section.
4. Select the section plane you plan to use to divide the object: XY, YZ, or ZX.
5. Click OK.
A closed polyline object is created from the object that was sliced by the selected plane. The
original, sectioned object is unmodified.
Related Topics
Connecting Objects
Use the Modeler>Surface>Connect command to perform the following operations:
l Connect two or more 1D polyline objects. Maxwell will modify the first polyline you select to be
a 2D sheet object that connects to the second and any subsequently selected polylines. The
second and subsequent polylines selected are deleted.
l Connect two or more 2D sheet objects. Maxwell will modify the first 2D object you select to be
a 3D solid object that connects to the second and any subsequently selected objects. The
second and subsequent objects selected are deleted.
To connect objects:
1. Select the objects you want to connect.
2. Click Modeler>Surface>Connect.
A new object is created that connects the objects you selected. The first object you selected
was modified to create the new object and all subsequently selected objects were deleted.
Moving Faces
You can move the faces of a 3D object in a normal direction using the Modeler>Surface>Move
Faces commands. Moving object faces enables you to resize, reshape, or relocate an object.
Related Topics
To move a 3D object’s face a specified distance in a direction normal to its original plane, use the
Modeler>Surface>Move Faces>Along Normal command. The faces that adjoin the original face
are extended or shortened along their own planes to meet the new face. Note that the adjoining
faces will not be sheared or bent.
This command is useful for extruding faces, resizing holes, and removing rounded corners, as
shown below.
To move an object face in a normal direction:
To move every face of an object normal to its surface, use the Edit>Arrange>Offset command.
Related Topics
To move the faces of a 3D object a specified distance along a vector use the
Modeler>Surface>Move Faces>Along Vector command. Each selected face is moved along the
vector, normal to its original plane. The faces that adjoin the original face are extended or shortened
along their own planes to meet the new face. Note that the adjoining faces will not be sheared or
bent.
This command is useful for relocating holes in an object, as shown below.
To move an object face along a vector:
1. Click Select Faces on the shortcut menu.
2. Select the face of the object you want to move.
3. Click Modeler>Surface>Move Faces>Along Vector.
4. Specify the vector along which the face is to be moved:
Any point in the drawing region can be selected; however, selecting an anchor point on the
object's edge or within the object makes it easier to select the vector.
b. Select a second point in one of the following ways:
l Click the point.
l Type the coordinates of a point relative to the anchor point in the dX, dY, and dZ boxes,
where d is the distance from the previously selected point.
This point defines the direction and distance from the anchor point to move the face.
To move every face of an object normal to its surface, use the Edit>Arrange>Offset command.
Related Topics
Related Topics
Select Edges.
Moving Faces Along the Normal
Moving Faces Along a Vector
Offsetting Objects
Uniting Objects
To join two or more objects into one object, use the Modeler>Boolean>Unite command. The new
object has the name, color, boundary, and material assignment of the first object selected. The
objects are united at the point of intersection.
You can unite objects that do not touch.
To unite two or more objects:
1. Select the objects you want to join.
2. Click Modeler>Boolean>Unite ..
The objects are united.
Note By default, the objects being joined to the first object selected are not preserved for later
use. If you want to keep a copy of the objects being joined to the first object selected, do
one of the following:
l Copy the objects, and then paste them back into the design after uniting them.
l Select Clone before unite in the Modeler Options dialog box. This option instructs
the modeler to always keep a copy of the original objects being joined.
Subtracting Objects
1. Select the object from which you want to subtract other objects.
2. Hold down the Ctrl key and select the objects you want to subtract.
3. Click Modeler>Boolean>Subtract .
The Subtract dialog box appears.
Objects listed in the Tool Parts list are subtracted from the object or objects listed in the Blank
Parts list.
4. Optionally, select an object name in either list, and use the left and right arrow buttons to move
the object name to the opposite list.
l Alternatively, type the name of object you want to subtract in the empty box below the Tool
Parts list, and then type the name of the object from which you want to subtract it in the
empty box below the Blank Parts list.
5. Optionally, select Clone tool objects before subtract. This instructs Maxwell to always
keep a copy of the original objects being subtracted.
6. Click OK.
The new object retains the name, color, and material of the first object selected.
Note By default, the objects being subtracted from the first object selected are not preserved for
later use. If you want to keep a copy of the objects being subtracted from the first object
selected, do one of the following:
l Copy the objects, and then paste them back into the design after subtracting them.
l Select Clone before subtract in the Modeler Options dialog box. This option
instructs Maxwell to always keep a copy of the original objects being subtracted.
1. Select the objects from which you want to take the intersection.
Warning If the objects you selected do not overlap, the result is a null object, and all objects
vanish.
2. Click Modeler>Boolean>Intersect .
The original objects vanish, leaving only the new object that was formed from their
intersection.
Note By default, the original intersecting objects are not preserved for later use. If you want to
keep a copy of the objects that intersect the first object selected, do one of the following:
l Copy the objects, and then paste them back into the design after creating the new
instructs the modeler to always keep a copy of the original objects that intersect the
first object selected.
1. Right-click in the modeler window, and select Select Faces on the shortcut menu.
2. Select the object face you want to copy. If you select multiple faces, each becomes a new
object.
3. Click Modeler>Surface>Create Object From Face.
The face is copied, resulting in a new 2D sheet object.
Hint This command is useful for assigning a boundary to the intersection of two faces. To do this,
first select the faces, and then create an object from them using the procedure above. Next,
make sure the Clone before intersect option is clear in the Modeler Options window, and
then use the Modeler>Boolean>Intersect command to modify the object so that it includes
only the intersection of the two faces. Then assign the boundary to the new object.
Related Topics
Related Topics
Splitting Objects
To delete parts of an object that lie on the xy, yz, or xz plane, use the Modeler>Boolean>Split
command.
1. Select the object you want to split. You can select more than one.
2. Click Modeler>Boolean>Split .
The Split dialog box appears.
3. Select the Split plane that you plan to use to split the object.
4. Select XY, YZ, or XZ as the Split plane.
5. Select one of the following Keep fragments options to specify which object fragments you
want to keep (those on the positive side of the selected plane, those on the negative side of the
plane, or all pieces on both sides of the plane):
l Positive side
l Negative side
l Both
Select this option if you do not want to preserve objects that are not crossing the split plane
and still part of the selection.
l Split objects crossing split plane
Select this option so that objects of the selection that do not cross the split plane are
preserved after the split operation is performed.
Note In previous versions of Maxwell, the split operation only affected the selected
objects that crossed the selected split plane. Other objects were ignored during
the operation. In complex geometries, you may want to select everything and
perform a split. In some cases, operations are still performed on selected objects
that do not cross the split plane (i.e., both parts are retained, yielding the original
object and an invalid object). Also, depending on the options specified, some
objects not crossing the split may be deleted.
The Split objects crossing split plane option allows you to identify selected
objects that do not cross the split plane and ignore them for the operation. For a
multiple selection, only those objects that cross the split plane are split; others are
kept intact. By design, splits in existing designs from previous versions are not
changed.
7. Click OK.
The objects are divided along the split plane.
Separating Bodies
To separate an object with multiple lumps into individual bodies:
1. Select the object you want to separate.
2. Click Modeler>Boolean>Separate Bodies.
The object is separated.
Related Topics
Vertices are only going to be replaced by new rounded surfaces if all the edges connecting to the
original vertex are selected; otherwise, the vertex is preserved but moved (if necessary). The edges
are replaced by quarter-cylindrical surfaces, of which the radius can be customized (see the Fillet
Radius property). Vertices are replaced by more complicated new faces. You can control the
setback distance.
The fillet command is disabled if an edge is not selected.
To switch to edge selection mode:
l Right-click the desktop, and select Select Edges from the shortcut menu.
2. Click Model>Fillet, or click the Fillet the selected edges icon on the 3D Modeler
Blending toolbar.
The Fillet Properties dialog box appears.
3. Enter a value for the Fillet Radius in the text field and select units from the drop down menu.
The default is millimeters.
4. Enter a value for the setback distance.
The setback distance controls the shape of the vertex. It is the distance of the cross curve from
the vertex at the end of the edge. If it is less than the fillet radius it has no effect. You will get an
error if it is greater than the length of the edge.
Note The setback feature works only on corners where three or more edges meet and only if all
edges meeting at the vertex are selected.
5. Click OK to apply the change to the edge.
The dialog closes and the object is rounded by the radius value relative to the edge you
selected.
2. Click Modeler>Chamfer or click the Chamfer the selected edges icon on the 3D
Modeler Blending toolbar.
The Chamfer Properties dialog box appears.
3. Type a value in the Left Distance text box, and select the units from the pull-down list.
4. Click OK to apply the change to the edge.
The Chamfer Properties dialog box closes, and the object is flattened by the radius value
relative to the edge you selected.
To flatten an object’s edge for an asymmetric chamfer:
1. Select one or more edges and click Modeler>Chamfer to open the Chamfer Properties
dialog.
2. Use the Chamfer type drop down menu to select the type:
You control an asymmetric chamfer by selecting a type that defines the chamfer asymmetry as
Left-Distance Right Distance, as Left Distance-Angle, or as Right Distance Angle. Notice that
red directional arrows on the selected edges provide the direction against which left distance
and right distance are determined.
Only symmetric and left distance-right distance chamfers are supported for edges formed by a
curved surface.
Angle-distance chamfers are not supported in such cases and do not appear on the Chamfer
Type drop down menu.
3. Click OK to apply the chamfer to the selected edges.
Imprinting an Object
The Boolean>Imprint command lets you imprint the geometry of one object upon another. For
example, you could draw a polyhedron intersecting a cylinder, and then imprint the intersecting lines
on the cylinder.
You can select the faces of the imprinted surface separately and assign properties as needed.
3. Click OK.
This closes the dialog and performs the boolean imprinting.
After you perform the imprinting, the History tree retains the Imprint Object command and the create
command for the imprinted object
If you select the Imprint command in the History tree, you can suppress the command via the
Properties window. If you select the Create <object> icon for the object, you can edit the properties
of that object. The changes applied to the object carry over to the imprinting.
Related Topics
If the surface is curved, the dimensions of the projection will be affected.You can select the faces of
the imprinted object separately, and edit properties as needed.
If projected shape extends beyond the face of the receiving object, the shape wraps.
1. Select the intersecting objects.
2. Click Modeler>Boolean>Imprint Projection>Along Normal or
Modeler>Boolean>Imprint Projection>Along Direction...
If you select Along Normal, the projection occurs along the normal. If you select Along
Direction, you need to specify two points that describe the direction. Once you have defined a
line by clicking two points, you see a dialog for specifying the distance for the projection.
3. Specify a distance and select units from the drop down menu and click OK.
This closes the dialog and performs the boolean imprinting.
After you perform the imprinting, the History tree shows the Imprint Object command and the create
command for the imprinted object
If you select the Imprint Projection command in the History tree, you can suppress the command via
the Properties window. If you select the Create <object> icon for the object, you can edit the
properties of that object. The changes applied to the object carry over to the imprinting.
Related Topics
Related Topics
Related Topics
l Zoom in or out.
l Show or Hideobjects.
Related Topics
Related Topics
Possible orientations are Top, Bottom, Right, Left, Front, Back, Trimetric, Dimetric, and Isometric.
These last three differ as shown below.
The Name that you assign will appear on the Apply Orientation command menu. You can specify
whether to Include Zoom/Pan and whether to Save Global.
Related Topics
Change the model view with Alt-double click on areas in the modeler window.
This mode is designed for stereo shutter glasses. It should remain disabled when not in use as
it causes blurring of the screen. This mode requires special graphics hardware and drivers for
OpenGL page flipping. If you hardware does not support this mode, you will receive an error.
l Drag Optimization(Default is disabled)
l Show Ansoft logo in prints (Default is disabled)
l Default Color Key height - the maximum number of values displayed (Default is 16)
l Under When there is a selection, you may set the following:
l Selection always visible (Default is enabled)
l Set transparency of selected objects (Default is enabled with value set at 0.1)
l Set transparency of non-selected objects (Default is enabled with value set at 0.9)
l Under Default Rotation About, you may select one of the following:
l Screen Center (Default)
l Current Axis
l Model Center
l Cursor
Related Topics
1. Click View>Pan .
2. Drag the mouse in the direction you want to pan the view.
The view will pan until you release the mouse button.
3. To exit Pan mode, click Pan on the View menu again or press ESC.
Hint Alternatively, pan the view using one of the following methods:
l Hold down the SHIFT key as you drag the mouse.
l Right-click in the view window, and then click View>Pan on the shortcut
menu.
1. Click View>Zoom .
2. To zoom in, drag the mouse towards the top of the view window. The contents of the view
expand as you drag.
To zoom out, drag the mouse towards the bottom of the view window. The contents of the
view decrease in size as you drag.
When zooming on a view of model objects, the absolute size of the model does not change.
When zooming on a 2D report, axis labels and ticks will adjust automatically during the zoom
operation and will rescale to their final value after the zoom operation is complete.
3. To end Zoom mode, click View>Zoom again, or press Esc.
Hint Alternatively, zoom in or out on the view using one of the following methods:
l Hold down the ALT+SHIFT keys as you drag the mouse.
l Right-click in the view window, and then click View>Zoom on the shortcut
menu.
Related Topics
Related Topics
l Right-click in the view window, and then click View>Fit All on the shortcut menu.
When Fit All is used in a report view, the window is automatically rescaled to fit all traces in the
window and the axis label and ticks are rescaled.
Related Topics
To fit one or more selected objects, 3D Components, or User Defined Models in the Modeler window
or to fit traces selected in the Reporter:
1. When you are working on a model view, select the objects, 3D Components, or User Defined
Models you want to fit in the view. When you are working on a report, select the traces you
want to fit.
l To fit the selection in the active view window: Click View>Fit Selection>Active View.
l To fit the selection in every open view window of the active design: Click View>Fit
Selection>All Views.
Hint Alternatively, fit the selection in the active view window by clicking View>Fit
Selection on the shortcut menu.
To fit one or more objects or components selected in the History tree:
1. Select the objects or components of interest, and right click to display the menu.
2. Select View>Fit in Active View or Fit in All Views:
The view adjusts to fit the select objects.
Related Topics
l Active View to hide the selected object in the active view window. You can also use CTRL-
You can also use the Hide icons in the toolbar to hide selected objects in all views or the active
view.
Related Topics
Showing Objects
Showing Only Selected Objects in All or Active Views
Active View Visibility
Showing Objects
To show one or more objects that are currently hidden:
l 3D Modeler Objects
l ColorKeys
l MotionSetup Indicators
l Boundary Indicators
l Excitations Indicators
l Parameter Indicators
l FieldsReporter
3. Under the tab you need, select the Visibility option for the objects you want to show in the
active view window.
l For designs with large numbers of objects, you can resize the dialog for easier selection.
l By default, objects are listed in alphabetical order. You can invert the order by clicking the
Name bar above the Name fields. A triangle in the bar indicates the direction of the listing.
l You can also use the Name field to type in an object name and apply the visibility via the
You can also use the toolbar icons to Show selected objects in all views and Show
selected objects in active views.
Related Topics
Hiding Objects
Showing Only Selected Objects in All or Active Views
Active View Visibility
2. Select the tab for the objects you want to show or hide. The dialog contains tabs for 3D
Modeler objects, Color Key objects, Boundaries, Excitations, and Fields Reporter objects.
l For designs with large numbers of objects, you can resize the dialog for easier selection.
l By default, objects are listed in alphabetical order. You can invert the order by clicking the
Name bar above the Name fields. A triangle in the bar indicates the direction of the listing.
l You can also use the Name field to type in an object name and apply the visibility via the
Related Topics
Showing Objects
Showing Only Selected Objects in All or Active Views
Hiding Objects
You can also right click, and use the shortcut menu:
3. You can right click to display the shortcut menu and select View>Show in Active View or
Show in All Views.
You can also use the toolbar icons to Show selected objects in all views and Show
selected objects in active views.
l For designs with large numbers of objects, you can resize the dialog for easier selection.
l By default, objects are listed in alphabetical order. You can invert the order by clicking the
Name bar above the Name fields. A triangle in the bar indicates the direction of the listing.
l You can also use the Name field to type in an object name and apply the visibility via the
Show and Hide buttons.
3. Under the tab, clear the Visibility option for the objects you want to hide in the active view
window.
The objects you designate are hidden.
Note Hiding boundaries also turns off a check for boundary overlaps during boundary
assignment. In the case of very large models with many boundaries, hiding boundaries can
prevent delays during boundary assignment. Full model validation will subsequently check
for boundary overlaps.
Object visibility is saved with the project.
Related Topics
Showing Objects
Showing Only Selected Objects in All or Active Views
Hiding Objects
You can also use the F6 key or the shade icon to toggle the display to wireframe.
l Smooth Shaded. The objects in the view window are displayed as shaded objects with
smooth edges.
You can also use the F7 key or the shade icon to toggle the display to smooth shaded.
Related Topics
To set a default rendering mode for all objects created in the active design and in future designs:
1. Click Tools>Options>Modeler Options.
The Modeler Options dialog box appears.
2. Click the Display tab.
3. Select one of the following from the Default render mode pull-down list.
l Wire Frame. The objects in the view window are displayed as skeletal structures, enabling
smooth edges.
4. Click OK.
The rendering mode is applied to all new objects you create.
l Relative 0.002mm surface deviation and 2 degree normal deviation for 2D design
Legacy projects with non default settings are approximately converted to new settings with warning.
Overall faceting time may be around 20% more but number of triangles should reduce.
The default gives satisfactory results (i.e. cpu/memory consumption vs. graphical display) for various
model complexities.
When you change Curved Object Visualization settings and apply them to a design, those settings
are saved with design unless you change it again. That means when you open the design again, it
will apply saved visualization settings and NOT the default settings. Because this affects the CPU
and memory required to open the project, typically, you should not save a project with other than the
default settings.
To set the Curved Object Visualization settings for the active modeler window:
Related Topics
2. The Add button contains a drop down menu with choices for Specify center, normal, and
Use selection. Of you want to use selection, you must first select a face or a cut plane.
l If you first select a face or cut plane, and then click Add>Use Selection, the clip plane is
added on that face.
a. If you select Add>Specify center, normal, this launches a Measure dialog and enters a
mode for you click to first define the start location, shown as a triad. When you move the
cursor, a rectangle represents the clip plane, and a vector the current direction.
After the second click, the clip plane is active. The handle is visible as a circle with a sphere
at the center, and an arrow pointing the normal for the plane. The Clip Planes dialog
shows the clip plane name, that it is enabled, shows the cap (which is the plane surface),
and shows the handle.The Flip selection lets you reverse the direction of the clip plane. If
you uncheck Show cap and/or Show Handle, they disappear from the display.
3. With Show Handle enabled, you can use the handle to manipulate the location and orientation
of the clip plane. The handle changes appearance and function relative to the position of the
cursor. Dragging the cursor makes use of the current function.
4. The Options tab for the Clip Planes dialog contains four options.
l Force opaque for the unclipped portion.
The button shows the current color. Click the button to display a color selection dialog.
Select a default or custom color and click OK.
l Plane handle radius.
This slider lets you resize the radius of the handle to the most convenient size. The radius
resizes dynamically. When you close and reopen the modeler window, the last selected
size persists.
You can save your choices as new defaults.
Related Topics
The psi, phi, and theta components of the selected orientation are listed in the boxes on the
left.
Related Topics
To create and apply a new viewing direction to the active view window:
1. Click View>Modify Attributes>Orientation.
The Update View Orientation dialog box appears.
2. To create a viewing direction that is based on a default viewing direction, click the existing
orientation name in the viewing directions list.
To create a viewing direction based on the current view in the Modeler window, click Get
Current View Direction.
l To modify the selected orientation’s vector components, select Input vector components
under Add Orientation to List, and then modify the values in the Vx, Vy, or Vz text boxes,
and the Up vector boxes for Ux, Uy, and Uz.
l To modify the selected orientation’s input angles, select Input angles under Add
Orientation to List, and then modify the values in the psi, theta, and phi text boxes.
3. Type a name for the new orientation in the Name box.
4. Click Add/Edit.
The new orientation is added to the list of viewing directions.
5. Click Make Default if you want the new viewing direction to be the initial viewing direction
when a Modeler window is opened in the current project or future projects.
6. Click Close.
Related Topics
Removing an Orientation
To remove a viewing direction from the list in the orientation settings dialog box:
1. Click View>Modify Attributes>Orientation.
The Update View Orientation dialog box appears.
2. Click the name of the viewing direction you want to delete from the orientation list.
3. Click Remove.
4. Click Close.
The viewing direction is removed from the list.
Note This operation cannot be
undone.
Related Topics
distant light vectors are in effect for every new view window.
To modify the lighting:
1. Click View>Modify Attributes>Lighting.
The Lighting Properties dialog box appears.
2. Select Do not use lighting to turn off ambient and distant lighting.
Clear this option to activate ambient and distant lighting.
3. To surround the model with light, click the Ambient Light Properties color button, and then
select a color for the surrounding light from the Color palette.
4. To modify the distant light on a model, do one of the following:
a. Add a new distant light by clicking Add.
b. Copy an existing distant light that you intend to modify by first selecting it from the Distant
Light Vectors table, and then clicking Clone.
c. Select a default distant light to modify by selecting it in the Distant Light Vectors table.
5. For the selected distant light vector, specify the vector direction:
a. To modify the direction by specifying Cartesian coordinates, do one of the following:
l Enter the new Cartesian coordinates in the X, Y, and Z boxes.
l Use the Vx, Vy, and Vz sliders to specify the Cartesian coordinates dynamically.
b. To modify the direction by specifying the spherical coordinates, do one of the following:
l Enter the new spherical coordinates in the φ and θ boxes.
6. To revert to the default ambient and distant light settings, click Reset.
7. Click Save as default if you want the new lighting settings to be the defaults for all Modeler
windows, either in the current project or future projects.
8. Click OK.
The lighting settings are saved with the design.
Note New lighting applied to other designs after this point, including new default settings, do not
affect these lighting settings.
l Click the Background Color button, and then select a color from the Color palette.
l Click OK.
l Use the RGB sliders under Change View Color Dynamically to specify the color's red,
green, and blue values.
3. To assign a background color that gradually changes from one color to another, do the
following:
a. Select Gradient Background.
b. Specify the background color at the top and bottom of the view window in one of the
following ways:
l Under Select Background Type, click the Top Color button, and select a color from
the Color palette. Click OK. Then click the BottomColor button, and select a color from
the Color palette. Then click OK.
l Under Change View Color Dynamically, click Top Color or Bottom Color, and use
the RGB sliders to specify the color's red, green, and blue values.
4. Click Reset to revert to the default background colors.
5. Click Save As Default if you want the new background color to be the background color for
all Modeler windows in either the current project or future project.
6. Click OK.
The background color you set is saved with the design.
Note New background color settings assigned to other designs after this point, including new
default settings, do not affect this design.
l Show to display the x-, y-, and z-axes in the active view window.
l Small to display the x-, y-, and z-axes in a smaller size in relative to the edges of the active
view window.
The triad is a secondary depiction of the coordinate system that appears at the lower right of the
Modeler window. It shows the orientation of the currently selected working coordinate system. It can
be shown or hidden separately from the selected coordinate system.
To show the triad:
1. Click View>Coordinate System>Triad, then click one of the following:
l Hide to hide the triad x-, y-, and z-axes at the lower right of the active view window.
l Show to display the triad x-, y-, and z-axes in the lower right active view window.
For polar grids, the location of points on the grid are defined by intersections of planes that are
perpendicular to the local radius and angle coordinates. The division (the distance between
neighboring parallel planes perpendicular to the same radius and angle) can be set.
l Grid Extent
l Density
l Spacing
l Visibility
l Snap settings
l Grid plane
2. Select one of the following Grid styles for the active view window:
Dot Displays each grid point as a dot.
Line Displays lines between grid
points.
3. To show a minimal grid around existing objects, check Auto adjust grid extents. To display
a grid as a plane, uncheck Auto adjust grid extents.
4. Click OK.
To hide the grid, click the Grid toolbar icon: . Click it again to show the grid.
Alternatively:
1. Click View>Grid Settings.
The Grid Spacing window appears.
Related Topics
To specify the plane on which you want to display the grid in the active view window, do one of the
following:
l Click Modeler>Grid Plane, and then select a grid plane: XY, YZ, or XZ.
l Select a grid plane from the pull-down list on the 3D Modeler Draw toolbar.
Related Topics
Related Topics
1. Click View>Active View Visibility . Alternatively, you can select the Active View
Visibility icon from the toolbar.
The Active View Visibility dialog box appears.
2. Click the FieldsReporter tab.
3. In the Visibility column, select the field overlay or mesh plots you want to display. Clear the
plots you want to hide from view.
4. Click Done.
Only the selected plots are visible.
l Select Faces.
l Select Edges.
l Select Vertices.
l Select By Area
l Select by Variable
Selecting Objects
By default, the modeler is in object selection mode. Click an object in the view window or an object
name in the history tree to select it. All other objects become relatively transparent.
When the mouse hovers over an object in the view window, the object is highlighted. This indicates
that it will be selected when you click it. Selected objects become the color specified under the
Display tab of the Modeler Options dialog box.
Tooltips, as you hover the cursor over an entity, indicate the type/ID of entity (object name in the case
of objects, Face_id in the case of faces, and so on). This feature helps you distinguish between face-
of-sheet-object pick versus sheet-object pick.
If the modeler is not currently in object selection mode, you can switch to it using one of the following
methods:
l Press the shortcut key O.
l Click Edit>Select>Objects.
l Select Object from the pull-down list on the 3D Modeler Selection Mode toolbar.
Related Topics
Select By Area
Selecting Objects and Surfaces that Lie Inside Other Objects
Clearing a Selection
1. If you are selecting objects in the Modeler window make sure that the modeler is in object
selection mode by pressing the shortcut key O. You can always select objects in the History
tree.
2. Select multiple objects in one of the following ways:
l Hold down Ctrl, and click the objects in the view window that you want to select.
l Hold down Ctrl, and click the object names in the history tree that you want to select.
l In the History tree, select a range of objects by first clicking one object to select it, and then
l Press Ctrl+Shift+A.
Related Topics
1. Make sure that Maxwell is in object selection mode by pressing the shortcut key O.
or in the toolbar, select Object from the drop-down menu to the right of the icon, then
click the icon.
The Select Object dialog box appears.
3. In the Name list, click the name of the object you want to select. Use the Ctrl key to select
more than one.
l Alternatively, type the name of an object you want to select in the empty text box, click the
Related Topics
Select By Area
You can select items by area in the Modeler window clicking and rubber-band dragging around
objects. Rubber-band selection works differently depending on the drag direction.
l From right to left: Selects all the items that are wholly or partly enclosed within the rubber
band.
l From left to right: Selects all the items wholly enclosed within the rubber band.
Select By Area works with Selection mode for Objects, Faces, Edges, and Vertices, but not for
Select Multi. By default, only items with external surfaces are selected.
However you can control which objects to include or exclude from area selection based on material,
object names, or object types.
To do this:
1. Click Edit>Select By Area Filter to display this dialog:
2. Check Material filters to enable the Include and Exclude radio buttons. Use the text field to
specify filters by name, or use the ellipsis [...] button to display the Materials manager for
selections.
3. Check Object name filters to enable the Exclude and Include check boxes, and text fields
in which you can specify object names.
4. Check Object type filters to enable the check boxes for including Solids, Sheets, and/or
Lines.
5. Check Select front entities only to select only objects that are in front.
6. If you click Save As Default, the settings persist for the project until you change the settings
and Save as Default again.
7. Click OK to close the dialog.
Now, when you left-click and drag around an area, those objects which meet the filter criteria are
highlighted in the Modeler window, and those objects are shown as selected in the History tree.
Related Topics
The history tree organizes objects in several categories. Right click on the group for solids, sheets,
lines, non-model objects, or unclassified objects to see a shortcut menu command that lets you
Select All members of that category.
Under each folder, you can also Select All for objects of the same the material or parts of the same
assignment at once. When you right-click on a solid folder, the menu lets you check whether to
organize objects by assignment. For example, this history tree has Solids organized by object.
Related Topics
The 3D UI Options dialog appears. The When there is a selection region contains check
boxes for setting the transparency for selected and non-selected objects.
2. Click the check box for the value you want to change.
This enables the value field. The default transparency for selected objects is 0.1, which makes
them almost opaque. The default transparency for non-selected objects is 0.9, which makes
them highly transparent.
3. Enter a new value, and click OK to apply the new transparency values.
Create an object list when you want to define a list of objects. Creating an object list is a convenient
way to identify and select a group of objects for a field plot or calculation. Objects in a list can still be
treated as separate objects. The same object can be included in several different lists.
To create an object list:
1. If you are selecting in the Modeler window, make sure that the modeler is in object selection
mode by pressing the shortcut key O. This is not necessary for selecting in the History tree.
2. Select the objects you want to include in the list.
3. Click Modeler>List>Create>Object List.
The object list is created with the default name Objectlistn. It is listed in the history tree under
Lists. Selecting an object list displays the properties of that list in the Properties window. One
of the properties is a list of objects contained in the list.
To rename the Object list, edit the Name property in the Properties window for the list. Object
lists are sorted in alphanumeric order.
The object list is treated as one volume when you are plotting and performing fields calculations. It is
listed in the Geometry window of the Fields Calculator when you select Volume.
There is an automatically created list called AllObjects. Selecting it selects all objects. If a list contains
mixed types of geometry, for example, volume and sheet objects, the volume calculation only uses
the geometry of the highest dimension in plots or integral, and so forth.
Example: To plot the E-field on a surface formed by the intersection of the xy-plane and several
objects, first define a list of these objects. Then, when plotting fields, select the object list name from
the Geometry window of the Fields Calculator. Fields are plotted only at the intersection of the plane
and the objects in the list.
Related Topics
You can assign objects after you have created object lists. Creating an object list is a convenient way
to identify and select a group of objects for a field plot or calculation. Objects in a list can still be
treated as separate objects. The same object can be included in several different lists.
To reassign objects to an existing object list:
1. If you are selecting in the Modeler window, make sure that the modeler is in object selection
mode by pressing the shortcut key O. This is not necessary for selecting in the History tree.
2. Select the objects you want to reassign.
3. Click Modeler>List>Reassign
A dialog with the existing object lists is displayed. (They appear in the history tree under Lists.)
One of the Properties in for the List shows the objects contained in the list.
4. Select the list to which you want to assign the select object and click OK.
The object is reassigned to the selected list, replacing previous list members. The Objects
Property in for the List shows the objects contained in the list.
The object list will be treated as one volume when you are plotting and performing fields calculations.
It will be listed in the Geometry window of the Fields Calculator, when you select Volume.
Related Topics
The objects that are included in that list are highlighted in the modeler, and the properties
appear in the desktop.
To view the properties of the object list (including a list of the objects included):
1. In the model history tree, expand the Lists tree.
2. Under Lists, right-click the list object you want to view, and click Properties.
The Properties window appears for that object list. The objects included are listed in the
Objects row.
3. Click OK or Cancel to close the Properties window.
To use an object from a list in another operation:
1. In the model tree, expand the Lists tree.
2. Right-click the list you want to select, and click Select Assignment.
The objects that are included in that list are highlighted in the modeler, and the properties
appear in the desktop.
3. Select any other objects you want to use in the operation.
4. Complete the operation.
For example, you could select an object list and another object, and then specify one of the boolean
commands (such as unite or subtract).
Selecting Faces
If the modeler is in face selection mode, click an object face in the view window to select it. To select
multiple faces, hold the Ctrl key as you click the faces. You also have the option to create face lists,
which define a list of object faces, or you can make face selections from a Face ID list in the By Face
dialog.
Switch to face selection mode using one of the following methods:
l Click Edit>Select>Faces.
l Select Face from the pull-down list to the right of the select objects icon in the 3D
Modeler Selection toolbar.
l Right-click in the view window, and then click Select Faces. (Not available when working on a
2D Design)
l Press the shortcut key F. (Not available when working on a 2D Design)
You can also select faces in the Select Multi mode.
When the mouse hovers over a face in the view window, that face is highlighted, which indicates that
it will be selected when you click. Selected faces become the color specified under the Display tab of
the Modeler Options dialog box. All other objects and faces become relatively transparent.
To select faces touching the current selection:
l Click Edit>Select>Select Connected Faces.
l Click Edit>Select>Select Face Chain. This option allows faces that are part of a
"protrusion" to be selected.
You can also use the By Face dialog to select from a list of faces associated with an object:
1. To use the dialog, no objects should be selected to start.
2. Click Edit>Select>By Face or in the toolbar, select Face or Multi from the drop-down
Related Topics
This option allows you to select all faces of an object after first selecting the object or a single face.
Note This options is not available when working on a 2D
Design.
1. Optionally, select the object (or objects, faces, edges or vertices) with the faces you want to
select.
2. Switch to face selection mode by pressing the shortcut key F.
3. If an object is not selected, click a face on the object of interest.
4. Click Edit>Select>All Object Faces.
l Alternatively, right-click in the view window, and then click All Object Faces on the
shortcut menu.
l As another alternative, you can use the face selection toolbar icons.
All the faces of the object are selected. If you selected multiple objects, all faces of those
objects are selected.
Related Topics
Selecting Faces
Selecting the Face or Object Behind
Creating a Face List
Face Selection Toolbar Icons
1. Make sure that the modeler is in face selection mode by pressing the shortcut key F.
2. Click Edit>Select>By Name or in the toolbar, select Face from the drop-down menu to
the right of the object selection icon and click the icon.
The Select Face dialog box appears.
3. In the Object name list, click the name of the object with the face you want to select.
The object’s faces are listed in the Face ID column.
4. Click the face you want to select in the Face ID column. You can select more than one.
The face is selected in the view window.
5. Click OK.
Related Topics
Selecting Faces
Creating a Face List
To select a face that is aligned with a global plane, use one of the following two methods.
1. Make sure that the modeler is in face selection mode by pressing the shortcut key F.
2. In the History Tree, expand the Planes icon. Left-click on a plane (Global:XY, Global:YZ, or
Global:XZ) to display the selected global plane.
3. On the Edit menu, point to Select, and then click Faces on Plane.
The selected faces are highlighted.
Alternative method:
Related Topics
Selecting Faces
Creating a Face List
Select Multi (a mode for selecting objects, faces, edges or vertices)
While working on analyzing complex objects, it is sometimes useful to examine faces, edges and
vertices. In particular it is useful to find the connected faces for a face or edge or vertex, connected
edges for a face/edge/vertex and connected vertices for a face/edge/vertex. The additional selection
modes are available under Edit->Select and via the toolbar icons.
Selecting an object face enables the face selection icons in the toolbar.
"protrusion" to be selected.
l Select connected faces selects faces connected to the current selection.
l Select connected edges selects the edges of the selected face or faces.
Related Topics
Create a face list when you want to define a list of object faces. Creating a face list is a convenient
way to identify and select a specific set of surfaces for a field plot or calculation. The same face can
be included in several different lists.
To create a face list:
1. Make sure that the modeler is in face selection mode by pressing the shortcut key F.
2. Select the object faces you want to include in the face list.
3. Click Modeler>List>Create>Face List.
The face list is created. It is listed in the history tree under Lists. The default name is Facelistn.
The lists appear in alphanumeric order. To change the name of a face list (for example, to a
name describing the listed faces as ports or boundaries), select the list in the History Tree and
Edit Properties. Editing the Name property changes the name. If necessary, the list order in
the History tree changes for the new name.
The face list is treated as one selection of surfaces when you are plotting and performing fields
calculations. The face list will be listed in the Geometry window of the Fields Calculator when you
select Surface.
Selecting Edges
If the modeler is in edge selection mode, simply click an object's edge in the view window to select it.
To select multiple edges, hold the CTRL key as you click the edges.
When the mouse hovers over an edge in the view window, that edge is highlighted, indicating it is
click-able. Selected edges become the color specified under the Display tab of the Modeler
Options dialog box. All other objects become relatively transparent.
Switch to edge selection mode using one of the following methods:
l Click Edit>Select>Edges.
l Select Edge from the pull-down list in the Modeler Selection Mode toolbar.
l Select connected edges selects the edges that touch the current selection.
Related Topics
This option allows you to select all edges of an object or face after first selecting the object or face.
1. Select the object or face with the edges you want to select.
You may also select a single edge of the object or face.
2. Click Edit>Select>All Object Edges or Edit>Select>All Face Edges.
l Alternatively, right-click in the view window, and then click All Object Edges or All Face
Related Topics
Selecting Faces
Selecting the Face or Object Behind
Creating a Face List
Face Selection Toolbar Icons
Selecting Vertices
If the modeler is in vertex selection mode, simply click an object's vertex in the view window to select
it. To select multiple vertices, hold the Ctrl key as you click the vertices.
When the mouse hovers over a vertex in the view window, that vertex is highlighted, which indicates
that it will be selected when you click. Selected vertices become the color specified under the
Display tab of the Modeler Options dialog box. All other objects become relatively transparent.
Switch to vertex selection mode using one of the following methods:
l Click Edit>Select>Vertices.
l Select Vertex from the pull-down list in the Modeler Selection toolbar.
l Select connected edges selects the edges that touch the current selection.
l Select vertices selects the vertices of edges that touch the current selection.
Related Topics
l Select Multi from the pull-down list in the 3D Modeler Selection toolbar.
l To select an edge, click near an edge (and 10 pixels away from vertex).
l To select an object, click little farther from edge, between 10 and 20 pixels.
Tooltips, as you hover the cursor over an entity, indicate the type/ID of entity (object name in the case
of objects, Face_id in the case of faces, and so on). This feature helps you distinguish between face-
of-sheet-object pick versus sheet-object pick.
By holding down the Ctrl key, you can make multiple selections.
Related Topics
You can control the behavior of this mode by clicking Edit>Select Multi Mode Settings. This
displays a dialog with check boxes for Object, Face, Edge, and Vertex. Unchecking a box cancels
the selection behavior for that category.
You can also control the behavior of this mode by clicking the icons for Object, Face, Edge, and
Vertex to the right of the Multi mode selection menu. To add the Multi Mode selection menu and
icons to the toolbar:
1. Select Tools>Customize.
This displays the Customize dialog with the Toolbars tab selected.
2. Select 3D Modeler Selection mode from the toolbars list by checking it.
This adds the Mode selection menu and icons to the toolbar.
You can also add the Mode selection menus from the Commands tab by selecting 3D Modeler
Selection from the Category list, and dragging the icons to the toolbar.
3. When Multi is selected as the mode, you can enable or disable Object, Face, Edge, or Vertex
selection by clicking the associated icon.
Related Topics
If your design contains submodels, you can set the selection mode to Submodel.
l From the menu bar, click Edit>Select>Submodel
Related Topics
Clearing a Selection
To clear an object, face, edge, or vertex selection, do one of the following:
When there are multiple faces behind, the one selected is relatively close to where you right-
click.
l Press the shortcut key B.
When there are multiple faces behind, the one selected is relatively close to the cursor.
l Press Ctrl+B.
This option is useful when you are trying to select a face, edge, vertex, or object that is in the
interior of a model, or when you do not want to change the model view to select an item.
Related Topics
This is useful when you want to select objects using the mouse. Since the mouse cannot
select invisible objects, you can select the interior surfaces or objects by clicking on them.
l Use the Edit>Select>By Name command to select objects or surfaces inside the model.
l Use the Next Behind command on the shortcut menu. This selects the object that lies behind
the one you initially selected. This command does nothing if no objects have previously been
selected.
Related Topics
l Right-click an object or surface, and use one of the Select commands on the shortcut menu.
l Select Faces
l Next Behind: Use this command to select the object or face that lies behind the currently
selected object or face. This command chooses objects or faces depending on the
graphical pick mode. Next Behind does nothing if no object has previously been selected
or if the object you select has nothing behind it. You can also use the keyboard shortcut B.
l All Object Faces
l Faces on Plane
The snap mode defines how items are selected by the mouse. By default, Grid and Vertex snaps
are enabled.
The Message window contains a reference that you can select and use to go to the affected
object.
If you execute the command again, without clearing the current selection(s), the additional
object can be highlighted. You can resize and move the dialog. When you next open it, it uses
that size and location.
This moves the reference point marker to the new location. The Measure Data dialog
updates. The coordinates boxes in the Status bar change to accept relative distance
information. If you choose, rather than setting the reference point with the cursor, you can
press Tab to activate a text cursor in the status bar fields, and enter coordinates directly.
Related Topics
Related Topics
2. Type the point's r-, theta-, and z-coordinates in the R, Theta, and Z boxes.
Hint Press Tab to move from one coordinate box to the next. Press Shift+Tab to move to
the previous coordinate box.
l Alternatively, click the point in the view window.
3. When drawing objects other than polylines and helices, the second point you select is relative
to the first point. Type the second point's distance from the previously selected point in the dR,
dTheta, and dZ boxes.
Related Topics
Note Even though you are inputting spherical coordinates, all data is internally stored in
Cartesian coordinates.
To define a point in spherical coordinates:
1. After clicking the desired drawing command, select Spherical from the pull-down list on the
status bar.
2. Type the point's r-, theta-, and phi-coordinates in the R, Theta, and Phi boxes.
Hint Press Tab to move from one coordinate box to the next. Press Shift+Tab to move to
the previous coordinate box.
l Alternatively, click the point in the view window.
3. When drawing objects other than polylines and helices, the second point you select is relative
to the first point. Type the second point's distance from the previously selected point in the dR,
dTheta, and dPhi boxes.
Related Topics
l Type the point's coordinates in the appropriate boxes on the status bar.
Note When drawing objects other than polylines and helices, by default, the second
point you select is relative to the first point; Relative is automatically selected in
the Absolute/Relative pull-down list in the status bar. Be sure to select
Absolute from the Absolute/Relative pull-down list in the status bar if you want
the second point to be relative to the working coordinate system.
Related Topics
Related Topics
To change the reference point, move the cursor to the desired point and press Ctrl+Enter.
You can move the cursor to one of the following points:
l In the same plane as the reference point (in-plane movement mode).
Changes you make to the movement mode persist until you change them again.
l Click In Plane in the movement mode pull-down list in the 3D Modeler Draw toolbar.
The next point you select will be on the same plane as the reference point.
The cursor's location, displayed with a black diamond that indicates it has snapped to the grid, is on
the same plane as the reference point.
l Click Out of Plane in the movement mode pull-down list in the 3D Modeler Draw toolbar.
A dashed line is displayed between the reference point and the cursor's location, which is now
on a line that is perpendicular to the drawing plane and that intersects the reference point.
The cursor's location, displayed with a black diamond that indicates it has snapped to a grid, is on a
line that is perpendicular to the drawing plane and that intersects the reference point.
l Click 3D in the movement mode pull-down list in the 3D Modeler Draw toolbar.
If one of an object's snapping centers is within snapping range, the cursor snaps to the nearest
point in 3D space occupied by the object.
If any of the objects has a snapping center not within snapping range, the 3D movement mode
is identical to the in-plane movement mode.
The cursor's location, displayed by a circle that indicates it has snapped to a face center, is
(0.5, 0.5, 1.0), a point in 3D space.
l Select Along X Axis from the Movement mode pull-down list on the Modeler Draw
toolbar.
The next point you select will be on the same plane as the reference point in the positive or
negative x direction.
l Select Along Y Axis from the Movement mode pull-down list on the Modeler Draw
toolbar.
The next point you select will be on the same plane as the reference point in the positive or
negative y direction.
l Select Along Z Axis from the Movement mode pull-down list on the Modeler Draw
toolbar:
The next point you select will be on the same plane as the reference point in the positive or
negative z direction.
l If you want the cursor to snap to a point on the grid, select Grid or the icon .
l To snap to the center point of an edge, select Edge Center or the icon . The center
point may be on a 1D, 2D, or 3D object edge.
l To snap to the center of an object face, select Face Center or the icon .
l To snap to the nearest quarter point on an edge, select Quadrant or the icon .
Note By default, the mouse is set to snap to the grid, a vertex, an edge center, a face center, and
the nearest quadrant. To modify the default snap settings for the active design and all new
designs, modify the selections on the Snap panel under the 3D Modeler options.
Related Topics
After you select Measure, a cascading menu appears for Position, Edge, Face and Object.
You can also select using the equivalent toolbar icons:
2. Select Position to obtain location and distance formation between a specified reference point
and the cursor location.
The Measure Information dialog box appears.
With Measure>Position selected, the information displayed includes:
l The location of the reference point. (Position1)
l The X distance.
l The Y distance.
l The Z distance.
l The angle between the current reference point and the current cursor location.
Note As you move the cursor, the Measure Information dialog displays the current
cursor location and measurement information from the reference. Clicking on a
new vertex updates the reference to the new location.
To pause the dynamic tracking, either right-click and select Pause, or press P.
While paused, you can move the cursor without changing the Measure Data. You can also cut
and paste.
l The length of a polyline (in edge selection mode, you can still see this if you select the
The Measure Information dialog displays the coordinates of each point, the distance
between the points and the angle between Origin-P1, Origin-P2 line.
l Select two faces, the Measure Information dialog displays the angle/distance between
them.
l The function is similar when you select two edges and when you select an edge and a face.
l You can also measure distance between vertex/face, vertex/edge. In these cases, use the
Select Multi mode.
4. To exit the Measure mode, click Close on the Measure Information dialog.
Related Topics
This enables the Measure Position mode and opens the Measure Data dialog. The dialog lists
the coordinates of the current reference point (Position1)and the cursor location (Position2). If
you click, it shows the last position as a red square, and the current position as a black cursor.
It also lists the distance between those points, the X, Y, and Z distances, and the angle
between them. You can Pause dynamic tracking in order to copy text information from the
Measure Data dialog, and then Resume dynamic updating.
The shortcut menu displays the Hints item. When Hints are on (the default), a text display in
the lower right of the 3D Modeler window, explaining how to set the reference point, and ways
to control the movement mode.
l The reference point is displayed as a mini x-y-z-axis:
The reference point display moves to the selected point. This becomes the coordinate for
Position1 in the Measure Data dialog.
3. Drag the cursor to the second point.
The value of the Position2 dynamically changes as you drag the cursor. You do not need to
click. The values shown include:
l Distance.
l X distance
l Y Distance.
l Z Distance.
4. You can click P or right-click and select Pause from the shortcut menu to stop dynamic
tracking. You can then copy text from the Measure Data dialog.
5. To resume dynamic tracking, either press P or right click and select Resume.
6. To close the dialog box and exit Measure mode, click the Close button. You can also use the
ESC key to exit Measure mode.
Related Topics
Every coordinate system (CS) has an x-axis that lies at a right angle to a y-axis, and a z-axis that is
perpendicular to the xy plane. The origin (0,0,0) of every CS is located at the intersection of the x-, y-,
and z-axes.The default Global coordinate system and any additional coordinate systems that you
create for a project appear in the History tree of the modeler window.
l The globalcoordinate system (CS) is the fixed, default CS for each new project. It cannot be
edited or deleted.
l A relativeCS is user-defined. Its origin and orientation can be set relative to an existing CS.
Relative CSs enable you to easily draw objects that are located relative to other objects. If you
modify a relative CS, all objects drawn on that CS will be affected and change position
accordingly. You can define a relative CS to be offset and/or rotated from an existing CS. This
feature provides a way for objects made of the same anisotropic materials to have different
orientations.
When you set a new relative coordinate system, you specify whether to express the
coordinates as Absolute or Relative Coordinates. Absolute uses the specified values in terms
of the global coordinate system. Relative interprets the values as differences from the current
working CS.
You have choices for expressing the coordinates as Cartesian, Cylindrical, or Spherical.
These are evaluated as cartesian for the coordinate system properties.
l A faceCS is also user-defined. Its origin is specified on a planar object face. Face CSs enable
you to easily draw objects that are located relative to an object’s face.
Switch between global, relative, object, and face CSs by changing the workingCS. Simply click the
CS you want to use in the history tree. The working CS is indicated by a red W that appears at the
lower-left corner of the CS name in the history tree. The Properties dialog box lists the CS
associated with an object as the Orientation. By default, this is Global, but if you have created the
object under a different coordinate system, that will be the orientation. You can click on the current
orientation to see a drop down list of other orientation that you can assign for an object.
User-defined CSs are saved with the active project. When you open a project, it uses the CS
designated as working CS when you last saved.
Related Topics
Related Topics
distance from another CS’s origin. By moving a CS’s origin, you can enter coordinates relative
to an existing object, without having to add or subtract the existing object’s coordinates.
l You can create a rotated relative CS, that is, a relative CS whose axes are rotated away from
another CS’s axes. By rotating the axes of a CS, you can easily add an object that is turned at
an angle relative to another object.
l You can also create a relative CS that is both offset and rotated.
To create a relative CS with an origin that lies a specified distance from another CS's origin:
1. In the history tree, click the CS upon which you want to base the new relative CS, making it the
working CS.
2. Click Modeler>Coordinate System>Create>Relative CS>Offset.
l At the lower right of the modeler window, use the drop down menu to select the system for
To select a point that does not lie in the current plane, use the Movement Mode commands
on the shortcut menu.
The new relative CS is created. Its origin has moved from the previous working CS, but its
axes remain the same. It is listed in the history tree under Coordinate Systems. It
automatically becomes the working CS; objects that you draw hereafter will be based on the
coordinates of this relative CS. Default planes are created on its xy, yz, and xz planes.
Related Topics
To create a new relative CS with its axes rotated away from another CS's axes:
1. In the history tree, select the CS upon which you want to base the new relative CS, making it
the working CS.
l At the lower right of the modeler window, use the drop down menu to select the system for
l Type the coordinates of a point that is relative to the previously selected point in the dX, dY,
and dZ boxes, where d is the distance from the previously selected point.
You do not need to specify the z-axis. It is automatically calculated so that the axes form a
right-handed Cartesian coordinate system.
The new relative CS is created. It has the same origin as the previous working CS, but its axes
are rotated. It is listed in the history tree under Coordinate Systems. It automatically
becomes the working CS; objects that you draw hereafter are based on the coordinates of this
relative CS. Default planes are created on its xy, yz, and xz planes.
Related Topics
To create a new relative CS that is both offset and rotated from an existing CS:
1. In the history tree, select the CS upon which you want to base the new relative CS, making it
the working CS.
2. Point to Modeler>Coordinate System>Create>Relative CS.
l At the lower right of the modeler window, use the drop down menu to select the system for
l Type the coordinates of a point that is relative to the origin in the dX, dY, and dZ boxes,
l Type the coordinates of a point that is relative to the previously selected point in the dX, dY,
and dZ boxes.
You do not need to specify the z-axis. It is automatically calculated so that it is at a right angle
to the y-axis.
The new relative CS is created. It is listed in the history tree under Coordinate Systems. It
automatically becomes the working CS; objects that you draw hereafter are based on the
coordinates of this relative CS. Default planes are created on its xy, yz, and xz planes.
Related Topics
4. Specify the x-axis by selecting a point on the object face in one of the following ways:
Related Topics
You can instruct Maxwell to automatically create a new face CS every time you draw on an object's
face.
1. Click Tools>Options>Modeler Options.
The Modeler Options dialog box appears.
2. In the Operation tab, select Automatically switch to face coordinate system.
3. Click OK.
Now, when you select a face, and then click any drawing command, a new face CS is created. The
modeler automatically sets the new face CS as the working CS. The object you draw is oriented
according to the new face CS.
Note The modeler does not automatically create a new face CS if a face CS has already been
assigned to the selected face.
Related Topics
For example, in this case, the cursor shows Edge Center triangles as valid selection points for an
Modeler>Coordinate Systems>Create Object CS>Offset command.
Only operations listed in the history tree before the Object CS’s creation will affect the Object CS,
and in turn, affect objects dependent upon that Object CS. An Object CS, or objects created on it, is
not affected by operations that occur after it is created. Also see the Move CS to End command.
For example, suppose you create a box, then an Object CS on a face of the box, and then a cylinder
on the Object CS. If you then edit the box’s dimensions in the Properties dialog box, the cylinder will
move accordingly. But if you rotate the box using the Edit>Arrange>Rotate command, the box will
move, but the cylinder will not move because the operation occurs later in the history tree.
Related Topics
the CS. When you hover the mouse over a valid point, a coordinate system preview is
shown.
Related Topics
l The GUI is in multi select mode where you define the direction by picking any of vertex,
selections. The preview includes the three CS axes and the XY plane.
l In 2D modeler, you are prompted to select only X axis. The Y axis is defined based on 2D
modeler type. This resembles Relative CS behavior. Face picking is not available in 2D
modeler as it defines the direction out of plane.
Related Topics
l In 2D modeler, you are asked to select only the origin and X axis. The Y axis is computed as
for Object CS>Rotated. Face picking is not available in 2D modeler as it defines the direction
out of plane.
Related Topics
If you have at least one History operation after a Face or Object CS in the History tree, selecting a
Face or Object CS enables the Move CS to End command in the Modeler>Coordinate System
cascade menu and the History Tree shortcut menu.
Executing the command moves the selected CreateObject CS to the end position in the History tree
and updates associated items (other CS, object history, any dependent parts etc.).
Related Topics
There are two ways to modify a coordinate system: you can select the coordinate system in the
history tree in the modeler window, and open its properties dialog. This approach does not also allow
you to change whether the coordinate system is Absolute or Relative, or to change how you express
the coordinates (as Cartesian, Cylindrical, or Spherical).
If you want to also modify the whether the coordinate system is Absolute or Relative, and to change
how your express the coordinate, do the following:
1. Click Modeler>Coordinate System>Edit.
The Select Coordinate System dialog box appears.
2. Click the CS you want to modify.
3. Click Select.
This selects that coordinate system and enables the editable fields at the lower right of the
Modeler window. After you click the cursor in the first field, you can type in values, and tab to
the next fields.
4. You can select Absolute or Relative as the Coordinate system If you selected a relative CS,
follow the directions for creating a relative CS.
If you selected a face CS, follow the directions for creating a face CS.
5. You select the coordinate system from the drop down menus as Cartesian, Cylindrical, or
Spherical.
6. Select the units from the drop down menu.
The value you give here is translated to Cartesian coordinates in the Properties for the
Coordinate system.
Related Topics
l Cylindrical, that is, the point’s radius, measured from the origin, in the R text box, the angle
from the x-axis in the Theta text box, and the distance from the origin in the z direction in the Z
text box.
l Spherical, that is, in the point’s radius, measured from the origin, in the Rho text box, the
angle from the x-axis in the Theta text box, and the angle from the origin in the z direction in
the Phi text box.
Related Topics
2. Click Edit>Delete .
l Alternatively, press Delete.
The CS is deleted and all objects drawn on it are deleted. Further, any CS that depended on
the deleted CS is deleted and any objects that were drawn in the dependent CS are also be
deleted.
Related Topics
l Click Modeler>Grid Plane, and then select a grid plane: XY, YZ, or XZ.
Introduction 8-1
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Introduction 8-2
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
2. Assign the values in the Parameters tab, and then click OK to finish setting parameters.
Introduction 8-3
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
RMxprt UDPs
RMxprt UDPs are 2D and 3D geometries created for finite element analysis of electrical machines.
RMxprt UDPs consist of the following types:
l UDPs for Band and Regions
l Core regions
Band UDP
Property Description
DiaGap Band diameter in gap center, DiaGap < DiaYoke for outer
band
DiaYoke Band diameter on yoke side, DiaYoke < DiaGap for inner
band
Length Band Length
SegAngle Angle per segment of band (0.1 ~ 5 degrees)
Fractions Number of circumferential fractions, 1 for circular region
HalfAxial 0: full model; 1: half model in axial direction.
InfoCore 0: band; 1: tool; 2: master; 3: slave; 100: region
These parameters are used in the following 2D inner band and 2D outer band examples:
Introduction 8-4
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Parameters such as SegAngle, Length and HalfAxial are shown in the following 3D figures:
Introduction 8-5
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Creating a Band
Maxwell provides you with a .dll file to define the parameters of a band.
1. Click Draw>User Defined Primitive>RMxprt>Band.
The User Defined Primitive Operation dialog box appears.
Introduction 8-6
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
The Parameters tab permits you to see and edit the parameters. An Info tab contains
information about the user defined primitive, its purpose, the company/author who created it,
the date created and the version number.
2. Specify the values for the parameters.
3. Click OK.
An outer region can be assigned by setting the InfoCore property to 100 either when creating the
band or after creating it. The method for assigning during band creation is discussed in Creating a
Band. The method for assigning after the band is created is as follows:
1. For assigning an outer region after the band is created, click CreateUserDefinedPart in the
history tree under the specific band, as shown in Figure 8-11 . You can change the InfoCore
property to 100 under Command tab.
Introduction 8-7
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
2. For an outer region, set DiaGap < DiaYoke. For a shaft, set DiaGap > DiaYoke.
Creating a Tool
When you are defining parameters, the InfoCore property can be assigned to 1, which means the
band is used as a tool. This property can be assigned either when creating the band or after creating
it. The method for assigning during band creation is discussed in Creating a Band. For assigning
after the band is created, click CreateUserDefinedPart in the history tree under the specific band,
as shown in Figure 8-11 . You can then change the InfoCore property to 1 under Command tab.
Note To be assigned as a tool, the band must be an outer band, which means the band’s
DiaGap value must be less than DiaYoke value.
A tool is mainly used for subtraction in the model.
For example, if a half model of NonSalientPoleCore UDP is needed, a tool is necessary to be used
to subtract half of NonSalientPoleCore.
First, create a tool.
1. Click Draw>User Defined Primitive>RMxprt>Band.
2. Change DiaGap and DiaYoke values to set the DiaGap value to be less than the DiaYoke
value.
3. Set InfoCore value to 1 and change the Color of the tool to another one in order to distinguish
Introduction 8-8
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Introduction 8-9
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Introduction 8-10
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Figure 8-15 Change the value of Fractions of Non-Salient Pole Core (gray)
The last step is to subtract the non-salient pole core using the tool.
1. Choose NonSalientPoleCore1 and Band1 (tool) simultaneously by pressing Ctrl on the
keyboard.
Introduction 8-11
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Introduction 8-12
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
3. Choose NonSalientPoleCore1 as the Blank Parts and Band1 as the Tool Parts.
4. Click OK to finish subtraction.
The final Non-Salient Pole Core is shown in the coordinate system window in the following figure:
Introduction 8-13
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
l Selecting one of the planar faces of an existing band in the coordinate window and assigning
Introduction 8-14
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
3. Select a planar face of the band by right-clicking the face. Then select
AssignBoundary>Master (or Boundary>Slave after the Master boundary has been set
up). When assigning a master boundary, a Master Boundary window appears. Otherwise a
Introduction 8-15
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
4. Build up a tiny coordinate system of the face by setting the U vector and V vector to indicate
the direction of the face. The U vector needs to be set using an arrow on the coordinate, and
then the V vector is set automatically on the face (you can choose Reverse Direction of
default V vector). Note that the U vectors and V vectors of a related master and slave must
Introduction 8-16
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
5. When creating a slave boundary, you also need to set its master boundary and its magnetic
field strength (either Hm or –Hm).
6. Click OK to finish master or slave boundary creation.
Most core UDPs, which are covered in UDPs for Slot Cores and Coils, UDPs for Pole Cores and
Coils, and UDPs for Other Cores and Coils, can be changed to core regions. The ways to change
them into regions are similar. This section gives a general introduction of how to change those core
UDPs into core regions.
Inner and outer cores are defined as follows:
l An inner core is a core for which the DiaGap value is greater than the DiaYoke value.
l An outer core is a core for which the DiaGap value is less than the DiaYoke value.
Because the properties and parameters of an inner core region should be the same as the
corresponding inner core, an inner core region is usually created by replicating an inner core and
changing the new object’s InfoCore property to 100. The detailed steps are as follows:
Introduction 8-17
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
1. Select the inner core in the history tree. Then right-click to choose Edit>Copy.
2. Right-click the same object in the history tree to choose Edit>Paste. This process is shown in
the following figure:
3. Click CreateUserDefinedPart, and set InfoCore property to 100 in the pop-up window.
Introduction 8-18
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
4. Click OK.
Because the properties and parameters of an outer core region should be the same as the
corresponding outer core, an outer core region is usually created by replicating an outer core and
changing the new object’s InfoCore property to 100. The detailed steps are as follows:
1. Select the outer core in the history tree. Then right-click to choose Edit>Copy.
Introduction 8-19
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
2. Right-click the same object in the history tree to choose Edit>Paste. This process is shown in
the following figure:
3. Click CreateUserDefinedPart, and set InfoCore property to 100 in the pop-up window.
4. Click OK.
Introduction 8-20
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
l VentSlotCore UDP
l RacetrackSlotCore UDP
l NonSalientPoleCore UDP
l LapCoil UDP
l ConCoil UDP
l WaveCoil UDP
l SquirrelCage UDP
l DoubleCage UDP
SlotCore UDP
The SlotCore UDP is used to create a stator or rotor core with a distributed AC winding, or a DC
commutating winding, or a squirrel-cage winding for the following machine types:
l Single-phase or multi-phase induction machines
motors
l Brushless DC machines, and others
Property Description
DiaGap Core diameter on gap side, DiaGap < DiaYoke for outer cores.
DiaYoke Core diameter on yoke side, DiaYoke < DiaGap for inner
cores.
Length Core length.
Skew Skew angle in core length range.
Slots Number of slots.
SlotType Slot Type: 1 to 6.
Hs0 Slot opening height.
Hs01 Slot closed bridge height.
Hs1 Wedge height.
Hs2 Slot body height.
Bs0 Slot opening width.
Bs1 Slot wedge maximum width.
Bs2 Slot body bottom width, 0 for parallel teeth.
Rs Slot body bottom fillet.
Introduction 8-21
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Property Description
Fillet Type 0: a quarter circle; 1: a tangent connection; 2&3: arc bottom.
HalfSlot 0 for symmetric slot; 1 for half slot.
SegAngle Deviation angle for slot arches (10~30, <10 for true surface).
LenRegion Region length.
InfoCore 0: Core; 100: region.
Introduction 8-22
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Introduction 8-23
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Six common slot types and their related parameters are shown in the following figures:
Introduction 8-24
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Introduction 8-25
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Slot cores or coils with a SlotType parameter can choose one of these slots.
Set the value of DiaYoke and DiaGap as DiaYoke<DiaGap to create inner cores or
DiaGap<DiaYoke for outer cores. You can set the values either when creating the core or after
creating it, as described in Creating a Band and Creating an Outer Region, respectively.
Set the InfoCore value to 0.
VentSlotCore UDP
The VentSlotCore UDP can create the same core that the SlotCore UDP does. However, the
VentSlotCore UDP can create cores with radial vents and axial holes. If you want to create a slotted
core without radial vents or axial holes, use the SlotCore UDP to have less data input.
Introduction 8-26
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Property Description
DiaGap Core diameter on gap side, DiaGap < DiaYoke for outer cores.
DiaYoke Core diameter on yoke side, DiaYoke < DiaGap for inner
cores.
Length Core length.
Skew Skew angle in core length range.
Slots Number of slots.
SlotType Slot Type: 1 to 6.
Hs0 Slot opening height.
Hs01 Slot closed bridge height.
Hs1 Wedge height.
Hs2 Slot body height.
Bs0 Slot opening width.
Bs1 Slot wedge maximum width.
Bs2 Slot body bottom width, 0 for parallel teeth.
Rs Slot body bottom fillet.
Fillet Type 0: a quarter circle; 1: a tangent connection; 2&3: arc bottom.
HalfSlot 0 for symmetric slot; 1 for half slot.
VentHoles Number of axial vent holes per row.
HoleDiaIn Diameter of inner vent holes.
HoleDiaOut Diameter of outer vent holes.
HoleLocIn Diameter of inner vent hole center layout circle.
HoleLocOut Diameter of outer vent hole center layout circle.
VentDucts Number of radial vent ducts.
DuctWidth Axial width of radial vent ducts.
DuctPitch Center-to-center distance between two adjacent ducts.
SegAngle Deviation angle for slot arches (10~30, <10 for true surface).
LenRegion Region length.
InfoCore 0: Core; 100: region.
Introduction 8-27
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Introduction 8-28
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Note For parameters such as Skew, Fillet Type, SegAngle, HalfSlot and parameters related
to slots, refer to SlotCore UDP parameters.
Set the value of DiaYoke and DiaGap as DiaYoke<DiaGap to create inner cores or
DiaGap<DiaYoke for outer cores. You can set the values when creating the core or after creating it,
as described in Creating a Band and Creating an Outer Region, respectively.
Set the InfoCore value to 0.
RacetrackSlotCore UDP
The RacetrackSlotCore UDP is used to create a stator core with a single-phase concentric AC
winding for single-phase induction machines. The stator may have up to three different slot sizes.
Property Description
DiaGap Core diameter on gap side, DiaGap < DiaYoke for outer cores.
DiaYoke Core diameter on yoke side, DiaYoke < DiaGap for inner
cores.
Length Core length.
Skew Skew angle in core length range.
Slots Number of slots.
SlotType Slot Type: 1 to 6.
Hs0 Slot opening height.
Hs01 Slot closed bridge height.
Hs1 Wedge height.
Hs2 Slot body height.
Bs0 Slot opening width.
Bs1 Slot wedge maximum width.
Bs2 Slot body bottom width, 0 for parallel teeth.
Rs Slot body bottom fillet.
Fillet Type 0: a quarter circle; 1: a tangent connection; 2&3: arc bottom.
Poles Number of poles.
WidYoke Racetrack width for 2/4-pole cores.
MidSlots Number of middle-size slots for 2/4-pole cores.
MidHs2 Middle-size slot body height for 2/4-pole cores.
Introduction 8-29
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Property Description
MidBs2 Middle-size slot body bottom width for 2/4-pole cores.
SmlSlots Number of small-size slots for 2/4-pole cores.
SmlHs2 Small-size slot body height for 2/4 pole cores.
SmlBs2 Small-size slot body bottom width for 2/4-pole cores.
SegAngle Deviation angle for slot arches (10~30, <10 for true surface).
LenRegion Region length.
InfoCore 0: Core; 100: region.
These parameters are used in the following outer Racetrack SlotCore example:
Introduction 8-30
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Note For parameters such as Skew, Fillet Type, SegAngle and parameters related to slots,
refer to SlotCore UDP parameters.
Generally, Racetrack Slot Cores are used as outer cores. Set the value of DiaYoke and DiaGap as
DiaGap<DiaYoke for outer cores. You can set the values when creating the core or after creating it,
as described in Creating a Band and Creating an Outer Region, respectively.
Set the InfoCore value to 0.
NonSalientPoleCore UDP
The NonSalientPoleCore UDP is used to create non-salient rotor cores for non-salient rotor
synchronous machines. This core type may include surface tangential vent ducts, axial vent ducts, as
well as a damper.
Property Description
DiaGap Core diameter on gap side, DiaGap < DiaYoke for outer cores.
DiaYoke Core diameter on yoke side, DiaYoke < DiaGap for inner
Introduction 8-31
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
cores.
Length Core length.
Skew Skew angle in core length range.
IndexingSlots Number of indexing slots for slot pitch calculation.
ActualSlots Number of actual slots: ActualSlots <= IndexingSlots.
SlotType Slot Type: 1 to 7.
Hs0 Slot opening height.
Hs1 Slot wedge height.
Hs2 Slot body height.
Bs0 Slot opening width.
Bs1 Slot wedge maximum width.
Bs2 Slot body bottom width, 0 for parallel teeth.
Rs Slot body bottom fillet.
Fillet Type 0: a quarter circle; 1: a tangent connection; 2&3: arc bottom.
Poles Number of poles.
TangentDucts Number of surface tangential vent ducts.
TDuctWidth Axial width of surface tangential vent ducts (or damper rings).
TDuctDepth Radial depth of surface tangential vent ducts (or damper rings).
TDuctPitch Pitch of surface tangential vent ducts (or damper bar
extension).
AxialDucts Number of axial vent ducts per pole.
ADuctWidth Width of axial vent ducts in main tooth.
ADuctDepth Depth of axial vent ducts in main tooth.
SegAngle Deviation angle for slot arches (10~30, <10 for true surface).
LenRegion Region length.
InfoCore 0: Core; 100: region.
These parameters are used in the following inner Non-Salient SlotCore example:
Introduction 8-32
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Introduction 8-33
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Note For parameters such as Skew, Fillet Type, SegAngle and parameters related to slots,
refer to SlotCore UDP parameters.
Generally, Non-Salient Pole Cores are used as inner cores. Set the value of DiaYoke and DiaGap
as DiaGap>DiaYoke for inner cores. You can set the values when creating the core or after creating
it, as described in Creating a Band and Creating an Outer Region, respectively.
Set the InfoCore value to 0.
In general, this process is realized by a subtraction of two objects. Several steps are needed to finish
the procedure.
1. Click Project>Insert Maxwell 2D Design to create a Maxwell2D Design in a project.
Introduction 8-34
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
3. Create a damper. Make a copy of the NonSalientPoleCore, and then paste it and rename it to
damper.
Introduction 8-35
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
4. Change the InfoCore value to 1 to make a damper. Also change the Color of the damper to
distinguish it from the NonSalientPoleCore.
Introduction 8-36
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Introduction 8-37
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
5. You can also change the damper’s SlotType and slot parameters if necessary. For instance,
SlotType is reset to 1 and slot parameters are reassigned as in the following figure.
Introduction 8-38
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
After you modify the parameters, the objects in the coordinate system window appear as in the
following example:
Introduction 8-39
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Figure 8-51 Results after changing the slot-related parameters of the damper
6. Select both objects (Damper and NonSalientPoleCore) in the history tree simultaneously by
pressing Ctrl on the keyboard. Click Modeler>Boolen>Subtract. A Subtract window
appears.
7. Move NonSalientPoleCore to Blank Parts and Damper to Tool Parts, and check the Clone
tool objects before operation box. Click OK to finish subtraction.
Introduction 8-40
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
8. The final history tree and coordinate system window are shown in the following example:
Introduction 8-41
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
This process relies on subtraction of two objects and is very similar to Creating a Non-Salient Pole
Core with a Q-Axis Damper. The major difference is that you create a squirrel cage instead of
copying a NonSalientPoleCore to create a damper.
1. Click Project>Insert Maxwell 2D Design to create a Maxwell2D Design in a project.
2. Click Draw>User Defined Primitive>RMxprt>NonSalientPoleCore to draw a Non-
Salient Pole Core UDP. To show it in a 2D dimension, set the Length to 0. Also set
AxialDucts to 0 for subtraction, as shown in Figure 8-55 .
3. Click Draw>User Defined Primitive>RMxprt>SquirrelCage to draw a squirrel cage UDP.
Set the Length to 0, change its Color to a different one, and rename it to “Damper.” Then
objects in the coordinate system window appear as in the following figure:
4. You can also change the damper’s SlotType and slot parameters if necessary. For instance,
SlotType is reset to 1 and slot parameters are reassigned as in the following figure.
Introduction 8-42
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
5. After you modify the parameters, the objects in the coordinate system window appear as in
the following figure:
Figure 8-57 Results after changing the slot-related parameters of the damper
Introduction 8-43
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
6. Select both objects (Damper and NonSalientPoleCore) in the history tree simultaneously by
pressing Ctrl on the keyboard. Click Modeler>Boolean>Subtract. A Subtract window
appears.
7. Move NonSalientPoleCore to Blank Parts and Damper to Tool Parts, and check the Clone
tool objects before operation box. Click OK to finish subtraction.
8. The final history tree and coordinate system window are shown in the following figure:
LapCoil UDP
The LapCoil UDP is used to create a coil for lap-type distributed AC windings or lap-type DC
commutating windings in a slotted core created by the SlotCore or VentSlotCore UDP. This UDP
can also create a coil cross-section used as a terminal for current assignment.
Property Description
DiaGap Core diameter on gap side, DiaGap < DiaYoke for outer cores.
DiaYoke Core diameter on yoke side, DiaYoke < DiaGap for inner cores.
Length Core length.
Skew Skew angle in core length range.
Slots Number of slots.
Introduction 8-44
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Property Description
SlotType Slot Type: 1 to 7.
Hs0 Slot opening height.
Hs1 Slot wedge height.
Hs2 Slot body height.
Bs0 Slot opening width.
Bs1 Slot wedge maximum width.
Bs2 Slot body bottom width, 0 for parallel teeth.
Rs Slot body bottom fillet.
Fillet Type 0: a quarter circle; 1: a tangent connection.
Layers Number of winding layers.
CoilPitch Coil pitch measured in slots.
EndExt One-side end extended length.
SpanExt Axial length of end span; 0 for no span.
SegAngle Deviation angle for slot arches (5~15, <5 for true surface).
LenRegion Region length.
InfoCoil 0: winding; 1: coil; 2 terminal1; 3: terminal2; 4:insulation; 100:
region.
A single coil is much easier to be described with a slot core as reference. In the following figures,
coils are in gray and slot cores are orange. The lap coil’s InfoCoil property is set to 1 to use a single
coil to show parameters of lap coil.
Introduction 8-45
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Figure 8-61 Axial Single Lap Coil with Coil Pitch set to 4
A whole lap winding is created by default or by manually setting the property of InfoCoil to 0. You
can assign the value of this property either when creating the lap coil or after creating it, as described
in Creating a Band and Creating an Outer Region, respectively.
An example of a whole lap winding with an orange slot core is shown in the following figure:
Introduction 8-46
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
1. Create a single lap coil by manually setting the property of InfoCoil to 1. Figure 8-59 ,Figure
8-60 , and Figure 8-61 show the single lap coil from different angles.
2. For the terminals of the lap coil, set the property of InfoCoil to 2 or 3 (terminal1 or terminal2).
Figure 8-63 shows terminal1 in the coordinate system.
You can assign the value of this property either when creating the lap coil or after creating it, as
described in Creating a Band and Creating an Outer Region, respectively.
Introduction 8-47
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
A 3D open insulation is created by manually setting the property of InfoCoil to 4. In the history tree,
the object changes from a solid to a sheet.
You can assign the value of this property either when creating the lap coil or after creating it, as
described in Creating a Band and Creating an Outer Region, respectively.
A 3D open insulation is shown in Figure 8-64 . Note that it is a sheet instead of a solid: it is empty if
you observe it carefully.
Introduction 8-48
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
ConCoil UDP
The ConCoil UDP is used to create a coil for concentric distributed AC windings or concentric DC
field windings in a slotted core created by the SlotCore, VentSlotCore, RacetrackSlotCore, or
NonSalientPoleCore UDP. This UDP can also create a coil cross-section used as a terminal for
current assignment.
Property Description
DiaGap Core diameter on gap side, DiaGap < DiaYoke for outer cores.
DiaYoke Core diameter on yoke side, DiaYoke < DiaGap for inner
cores.
Length Core length.
Skew Skew angle in core length range.
Slots Number of slots.
SlotType Slot Type: 1 to 7.
Hs0 Slot opening height.
Hs1 Slot wedge height.
Introduction 8-49
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Property Description
Hs2 Slot body height.
Bs0 Slot opening width.
Bs1 Slot wedge maximum width.
Bs2 Slot body bottom width, 0 for parallel teeth.
Rs Slot body bottom fillet.
Fillet Type 0: a quarter circle; 1: a tangent connection.
LayerLoc 0: whole; 1: middle; 2: top; 3: bottom.
CoilPitch Coil pitch measured in slots.
EndExt One-side end extended length.
LayerExt Span layer extension in the axial direction.
LayerDiff Span layer difference in the radial direction.
AltEnd 0: same end layers; 1: alternate end layers.
LenRegion Region length.
InfoCoil 0: coil; 1 terminal1; 2: terminal2; 100: region.
The following four 2D figures show the parameter LayerLoc with different values. Slot cores are
used as references to help better understand concoils.
Introduction 8-50
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Introduction 8-51
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
The following four 3D figures illustrate parameters of ConCoil such as LayerExt, LayerDiff and
AltEnd.
Introduction 8-52
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Figure 8-70 3D ConCoil with a different LayerExt than shown in Figure 8-69 .
Figure 8-71 3D ConCoil with a different LayerDiff than shown in Figure 8-69 .
Introduction 8-53
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Figure 8-72 3D ConCoil with a different AltEnd than shown in Figure 8-71 .
Note For parameters such as Skew, Fillet Type and parameters related to slots, refer to
SlotCore UDP parameters.
You create a single concentric coil by manually setting the property of InfoCoil to 0.Figure 8-65
through Figure 8-69 show the single concentric coil.
For the terminals of a concentric coil, set the property of InfoCoil to 1 or 2 (terminal1 or terminal2).
Figure 8-71 shows terminal 1 of a concentric coil.
You can assign the value of this property either when creating a concentric coil or after creating it, as
described in Creating a Band and Creating an Outer Region, respectively.
Introduction 8-54
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
WaveCoil UDP
The WaveCoil UDP is used to create a wave-type coil in a slotted core created by the SlotCore or
VentSlotCore UDP.
Property Description
DiaGap Core diameter on gap side, DiaGap < DiaYoke for outer cores.
DiaYoke Core diameter on yoke side, DiaYoke < DiaGap for inner
cores.
Length Core length.
Skew Skew angle in core length range.
Slots Number of slots.
SlotType Slot Type: 1 to 7.
Hs0 Slot opening height.
Hs1 Slot wedge height.
Hs2 Slot body height.
Bs0 Slot opening width.
Bs1 Slot wedge maximum width.
Bs2 Slot body bottom width, 0 for parallel teeth.
Rs Slot body bottom fillet.
Introduction 8-55
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Property Description
Fillet Type 0: a quarter circle; 1: a tangent connection.
Layers Number of winding layers.
CoilPitch Coil pitch measured in slots.
EndExt One-side end extended length.
SpanExt Axial length of end span; 0 for no span.
SegAngle Deviation angle for slot arches (5~15, <5 for true surface).
PolePitch Pole pair pitch measured in slots.
LenRegion Region length.
InfoCoil 0: winding; 1: one coil; 100: region.
Introduction 8-56
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
You can create a whole wave winding by manually setting the property of InfoCoil to 0.
You can assign the value of this property either when creating a wave coil or after creating it, as
described in Creating a Band and Creating an Outer Region, respectively.
Introduction 8-57
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
In Maxwell, wave coil is set to a single wave coil by default when being created (InfoCoil is equal to
1).
You can assign the value of this property either when creating a wave coil or after creating it, as
described in Creating a Band and Creating an Outer Region, respectively.
Examples are shown in Figure 8-74 and Figure 8-76 .
SquirrelCage UDP
The SquirrelCage UDP is used to create a squirrel-cage winding in a core created by the SlotCore
or VentSlotCore UDP for single-phase or multi-phase induction machines..
Property Description
DiaGap Core diameter on gap side, DiaGap < DiaYoke for outer cores.
DiaYoke Core diameter on yoke side, DiaYoke < DiaGap for inner
cores.
Length Core length.
Skew Skew angle in core length range.
Slots Number of slots.
SlotType Slot Type: 1 to 7.
Hs0 Slot opening height.
Hs01 Slot closed bridge height.
Hs1 Slot wedge height.
Hs2 Slot body height.
Bs0 Slot opening width.
Bs1 Slot wedge maximum width.
Bs2 Slot body bottom width, 0 for parallel teeth.
Rs Slot body bottom fillet.
Fillet Type 0: a quarter circle; 1: a tangent connection.
HalfSlot 0: symmetric slots; 1: half slots.
BarEndExt One-side bar end extended Length.
RingLength One-side axial ring length.
RingHeight Radial ring height.
RingDiaGap Ring diameter on gap side.
CastRotor 0: insert-bar; 1: cast-rotor.
Introduction 8-58
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Property Description
SegAngle Deviation angle for slot arches (10~30, <10 for true surface).
LenRegion Region length.
InfoCoil 0: bars & rings; 1: bars; 2: rings; 100: region.
Introduction 8-59
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
A whole squirrel cage winding is set by default when being created (InfoCoil is equal to 0). An
example is shown in Figure 8-78 as a blue object.
You can assign the value of this property either when creating a squirrel cage or after creating it, as
described in Creating a Band and Creating an Outer Region, respectively.
You can create bars of a squirrel cage by manually setting the property of InfoCoil to 1. Figure 8-79
shows bars of a squirrel cage.
You can assign the value of this property either when creating a squirrel cage or after creating it, as
described in Creating a Band and Creating an Outer Region, respectively.
Introduction 8-60
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
You can create two rings of a squirrel cage by manually setting the property of InfoCoil to 2. Figure
8-80 shows rings of a squirrel cage.
You can assign the value of this property either when creating a squirrel cage or after creating it, as
described in Creating a Band and Creating an Outer Region, respectively.
Introduction 8-61
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
DoubleCage UDP
The DoubleCage UDP is used to create a double squirrel-cage winding in a slotted core created by
the SlotCore UDP or VentSlotCore UDP for induction machines with a double squirrel-cage rotor.
The created double squirrel-cage winding can also be used as a subtract tool to derive a core with
top and bottom slots.
Property Description
DiaGap Core diameter on gap side, DiaGap < DiaYoke for outer cores.
DiaYoke Core diameter on yoke side, DiaYoke < DiaGap for inner
cores.
Length Core length.
Skew Skew angle in core length range.
Slots Number of slots.
SlotType Slot Type: 1 to 7.
Hs0 Slot opening height.
Hs01 Slot closed bridge height.
Introduction 8-62
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Property Description
Hs1 Slot wedge height.
Hs2 Slot body height.
Bs0 Slot opening width.
Bs1 Slot wedge maximum width.
Bs2 Slot body bottom width, 0 for parallel teeth.
Rs Slot body bottom fillet.
Fillet Type 0: a quarter circle; 1: a tangent connection.
HalfSlot 0: symmetric slots; 1: half slots.
BarEndExt One-side bar end extended Length.
RingLength One-side axial ring length.
RingHeight Radial ring height.
RingDiaGap Ring diameter on gap side.
DoubleCage 0: normal squirrel cage; 1: double squirrel cage.
BSlotType Bottom slot type: 1 to 4.
BHs0 Slot opening height.
BHs1 Slot wedge height.
BHs2 Slot body height.
BBs0 Slot opening width.
BBs1 Slot wedge maximum width.
BBs2 Slot body bottom width, 0 for parallel teeth.
BRs Slot body bottom fillet.
CastRotor 0: insert-bar; 1: cast-rotor.
SegAngle Deviation angle for slot arches (10~30, <10 for true surface).
LenRegion Region length.
InfoCoil 0: bars & rings; 1: bars; 2: rings; 100: region.
The main difference between double cage and squirrel cage is that a double cage has double slots
instead of single slots. The following 2D figure shows the bottom slot, which is connected to the
normal slot. The parameters for a bottom slot are similar to those of a normal slot. Other parameters
are exactly the same as a squirrel cage.
Note For parameters such as Skew, Fillet Type, SegAngle and parameters related to slots,
refer to SlotCore UDP parameters.
Introduction 8-63
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
A whole double-cage winding is set by default when being created (InfoCoil is equal to 0). An
example is shown in Figure 8-82 as a blue object.
You can assign the value of this property either when creating a squirrel cage or after creating it, as
described in Creating a Band and Creating an Outer Region, respectively.
Introduction 8-64
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
You can create bars of a double cage by manually setting the property of InfoCoil to 1. Figure 8-83
shows bars of a double cage.
You can assign the value of this property either when creating a double cage or after creating it, as
described in Creating a Band and Creating an Outer Region, respectively.
You can create two rings of a double cage manually by setting the property of InfoCoil to 2. The
following figure shows rings of a double cage.
You can assign the value of this property either when creating a double cage or after creating it, as
described in Creating a Band and Creating an Outer Region, respectively.
Introduction 8-65
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
l DCMCore UDP
l ShadedPoleCore UDP
l UnivMCore UDP
l SRMCore UDP
l SynRMCore UDP
l ClawPoleCore UDP
l PMCore UDP
l IPMCore UDP
l PMDamperCore UDP
SalientPoleCore UDP
The SalientPoleCore UDP is used to create a salient-pole core, a field winding, and a damper for
salient-pole synchronous machines. It can also create a coil cross-section used as a terminal for
current assignment.
Property Description
DiaGap Core diameter on gap side, DiaGap < DiaYoke for outer cores.
Introduction 8-66
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Property Description
DiaYoke Core diameter on yoke side, DiaYoke < DiaGap for inner cores.
Length Core length.
Skew Skew angle in core length range.
Slots Number of slots.
SlotType Slot Type: 1 to 4.
Hs0 Slot opening height.
Hs01 Slot closed bridge height.
Hs1 Slot wedge height.
Hs2 Slot body height.
Bs0 Slot opening width.
Bs1 Slot wedge maximum width.
Bs2 Slot body bottom width, 0 for parallel teeth.
Rs Slot body bottom fillet.
Fillet Type 0: a quarter circle; 1: a tangent connection; 2&3: arc bottom.
SlotPitch Slot pitch in mechanical degrees, refer to offset point.
CenterPitch Center slot pitch in mechanical degrees, refer to offset point.
Poles Number of poles.
Width Shoe Pole shoe width.
HeightShoe Pole shoe height (maximum).
FilletShoe Pole shoe tip fillet radius.
WidthBody Pole body width.
HeightBody Pole body height.
AirGap2 Second air gap length.
Offset Pole arc offset.
Off2_x The second pole arc offset perpendicular to the pole-center line.
Off2_y The second pole arc offset parallel with the pole-center line.
Off2_a The angle between the first pole arc and the second pole line.
CoilEndExt One-side coil end extended length.
EndRingType 0: whole press board; 1: pole press board; 2: pole ring; 3: whole ring.
BarEndExt One-side damper bar end extended Length; for types 2 & 3 only.
RingLength One-side axial ring length, or conductor press board thickness.
RingHeight Radial ring height, for types 2 & 3 only.
SegAngle Deviation angle for slot arches (10~30, <10 for true surface).
LenRegion Region length.
InfoCore 0: core; 1: core & coils; 2: coil; 3: damper; 4: terminal1; 5: terminal2; 6:poles; 7:
yoke; 100: region.
Introduction 8-67
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
These parameters are used in the following figures. In figures with both gray and red objects, the
gray objects are used as references.
Introduction 8-68
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Set the value of DiaYoke and DiaGap as DiaYoke<DiaGap to create inner cores or
DiaGap<DiaYoke for outer cores.
An example of an inner salient pole core is shown in Figure 8-85 . For an outer salient pole core, see
Figure 8-88 .
You can set the values either when creating the core or after creating it, as described in Creating a
Band and Creating an Outer Region, respectively.
Set the InfoCore value to 0.
Introduction 8-69
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
You can create a coil of a salient pole core by manually setting the property of InfoCoil to 2. An
example is shown in Figure 8-89 .
Its terminals are created manually by setting the property of InfoCoil to 4 or 5 (Terminal1 or
Terminal2). Figure 8-90 shows terminal 1 of the coil.
You can assign values for these properties either when creating a salient pole core or after creating
it, as described in Creating a Band and Creating an Outer Region, respectively.
Introduction 8-70
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
You can create a damper of a salient pole core by manually setting the property of InfoCoil to 3. An
example is shown in Figure 8-87 as a red object.
Introduction 8-71
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Figure 8-91 ,Figure 8-92 , Figure 8-93 , and Figure 8-94 illustrate the shapes of the damper
(InfoCore set to 3) with different EndRingType values. Gray objects are used as references.
You can assign the value of these properties either when creating a salient pole core or after creating
it, as described in Creating a Band and Creating an Outer Region, respectively.
Introduction 8-72
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
You can create poles or the yoke of SalientPoleCore UDP through assigning the InfoCore
parameter to 6 or 7, respectively.
Introduction 8-73
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
You can assign the value of this property either when creating a Salient Pole Core or after creating it,
as described in Creating a Band and Creating an Outer Region, respectively.
Examples of poles and the yoke are shown in Figure 8-95 and Figure 8-96 , respectively.
Introduction 8-74
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
DCMCore UDP
The DCMCore UDP is used to create a stator core with or without a compensating winding, a shunt
and/or a series field winding, and a commutating pole with a commutating winding for DC machines.
It can also create coil terminals for all windings for current assignment.
Property Description
DiaGap Core diameter on gap side, DiaGap < DiaYoke for outer cores.
DiaYoke Core diameter on yoke side, DiaYoke < DiaGap for inner cores.
Length Core length.
Skew Skew angle in core length range.
FrameWidth Overall width of a racetrack frame.
FrameThick Frame thickness.
FrameLength Frame length.
Poles Number of poles.
PoleType Pole type: 1 to 2.
Dmax Diameter of shoe tip with maximum air gap length.
Bp0 Pole arc width with uniform air gap; 0 for eccentric air gap.
Bp1 Total pole width (the width between shoe tips).
Bp2/Rp0 Bp2 (max shoe width for pole type 1), or Rp0 (shoe fillet radius for pole type 2).
Bp3/Rp1 Bp3 (min shoe width for pole type 1), or Rp1 (pole fillet radius for pole type 2).
Hp Pole body height.
Bm Pole body width.
FieldWndgs Number of field windings, 2 for both series and shunt windings.
EndExt Coil one-side end extended length.
SlotsPerPole Compensating slots per pole distributed under pole arc surface.
Bc0 Opening width of compensating slots.
Hc0 Opening height of compensating slots.
Bc2 Width of compensating slots.
Hc2 Height of compensating slots.
CmpEndExt One-side end extended length of compensating coils.
ComPoleWidth Width of the commutating poles.
ComPoleHeight Height of the commutating poles.
ComPoleLength Length of the commutating poles.
ComShoeWidth Shoe width of the commutating poles.
ComShoeHeight Shoe height of the commutating poles.
ComShoeLength Shoe length of the commutating poles.
Introduction 8-75
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Property Description
ComGap2 Air gap length between commutating poles and the frame.
CmtEndExt One-side end extended length of commutating coils.
LenRegion Region length.
InfoCore 0: core & coils; 1: poles; 2: frame; 3: com poles; 4: shunt coil; 5: series coil; 6:
com coil; 100: region.
Info Term 0: whole coil; 1: terminal1; 2: terminal2.
The DC Machine core is complex compared with other UDPs. When creating a DCM core in a
Maxwell 3D design, it looks at first like the following figure in the coordinate system window.
In order to better describe the parameters in this UDP, a slot core was added inside the DCM core
and their lengths were set to be 0. Also the DiaGap of slot core was changed to 92 to show the air
gap between two UDPs. The model now looks like the following example:
Introduction 8-76
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Figure 8-98 DCM Core Sheet (gray) with Slot Core Sheet (red)
The following figures show two different overviews of the gray, transparent DCM core and the
referencing red slot core from different angles.
Figure 8-99 Transparent DCM core (gray) with Slot Core from different angles
Introduction 8-77
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Figure 8-100 Transparent DCM core (gray) with Slot Core from different angles
Introduction 8-78
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Introduction 8-79
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Introduction 8-80
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Introduction 8-81
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
This core is used only as outer core, which means the value of DiaYoke is larger than that of
DiaGap. Also, set both InfoCore and Info Term values to be 0. You can set the value either when
creating the core or after creating it, as described in Creating a Band and Creating an Outer Region,
respectively.
An example of an outer DC machine core is shown in the following figure:
Introduction 8-82
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
You can create the main poles of a DC Machine core by manually setting the property of InfoCore to
1 and Info Term to 0. The result is shown as the gray object in Figure 8-105 and Figure 8-106 .
You can create the frame of a DC Machine core by manually setting the property of InfoCore to 2
and Info Term to 0. The result is shown as the gray object in Figure 8-107 .
You can create the commutating poles of a DC Machine core by manually setting the property of
InfoCore to 3 and Info Term to 0. The result is shown as the gray object in Figure 8-108 .
You can assign the values of these properties either when creating a DC Machine core or after
creating it, as described in Creating a Band and Creating an Outer Region, respectively.
You can create a shunt coil of a DC Machine core by manually setting the property of InfoCore to 4
and Info Term to 0. The result is shown as a blue object in Figure 8-106 .
You can also create its terminals by setting the property of InfoCore to 4 and Info Term to 1 or 2 (for
terminal1 and terminal2, respectively).
You can assign the values of these properties either when creating a DC Machine core or after
creating it, as described in Creating a Band and Creating an Outer Region, respectively.
Introduction 8-83
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
You can create a series coil of a DC Machine core by manually setting the property of InfoCore to 5
and Info Term to 0. An example is shown in the following figure.
You can also create its terminals by setting the property of InfoCore to 5 and Info Term to 1 or 2 (for
terminal1 and terminal2, respectively).
You can assign the values of these properties either when creating a DC Machine core or after
creating it, as described in Creating a Band and Creating an Outer Region, respectively.
You can create a commutating coil of a DC Machine core by manually setting the property of
InfoCore to 6 and Info Term to 0. The result is shown as a blue object in Figure 8-108 .
You can also create its terminals by setting the property of InfoCore to 6 and Info Term to 1 or 2 (for
terminal1 and terminal2, respectively).
You can assign the values of these properties either when creating a DC Machine core or after
creating it, as described in Creating a Band and Creating an Outer Region, respectively.
Introduction 8-84
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
ShadedPoleCore2 UDP
The ShadedPoleCore2 UDP is used to create the stator core for shaded-pole induction motors.
Property Description
DiaGap Core diameter on gap side, or inner diameter.
HighCore Core height in d-axis direction.
WidthCore Core width in q-axis direction.
Introduction 8-85
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Property Description
WidthPole WidthPole = DiaGap + 2 * (pole bridge thickness).
Length Core length in the axial direction.
WidthYoke1 Width of the winding-core yoke.
WidthYoke2 Width of the parallel yokes.
Slots Number of slots per pole (1 or 2).
Hs0 Slot opening height.
Bs0 Slot opening width.
Bs1 Slot diameter.
DiaCond Diameter of the short-circuit solid conductor.
AngleOff Angle offset in mechanical degrees from the first slot to d-axis.
SlotPitch Slot pitch in mechanical degrees for two slots.
Dist1 Outer-slot center-to-center distance when Slots = 2.
DiaS2 Additional outer-slot diameter.
Dist2 Additional outer-slot distance.
InfoEnd 0: Separated end connectors; 1: Jointed end connectors.
GapDelta Maximum gap - minimum gap.
AngleBegin Begin angle of maximum gap in mechanical degrees.
AngleEnd End angle of maximum gap in mechanical degrees.
RadFillet Radius of outer-corner fillet.
RadDelta Step depth in outer-corner fillet.
DiaHole Diameter of holes for shaft bearing covers.
SpanHole Hole span in d-axis direction.
LenRegion Region length.
InfoCore 0: Core; 1: All; 2: Coil; 3: Cond1; 4: Cond2; 5: Hole filler; 100:
Region.
InfoTerm 0: Whole coil; 1: Terminal1; 2: Terminal2.
Introduction 8-86
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
This core is used only as an outer core. There is no DiaYoke parameter in this UDP, so to create an
outer shaded pole core, set both InfoCore and Info Term values to be 0. You can set the values
either when creating the core or after creating it, as described in Creating a Band and Creating an
Outer Region, respectively.
An example of the core for a ShadedPoleCore2 is shown in the following figure.
Introduction 8-87
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
A coil of a shaded pole core is created by manually setting the property of InfoCore to 2 and Info
Term to 0. An example of the coil for a ShadedPoleCore2 UDP is shown in Figure 8-115 .
You can create its terminals by setting the property of InfoCore to 2 and Info Term to 1 or 2 (for
terminal1 and terminal2 respectively). Figure 8-116 gives an example of a terminal.
You can assign the values of these properties either when creating a shaded-pole core or after
creating it, as described in Creating a Band and Creating an Outer Region, respectively.
Introduction 8-88
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
You can create a jointed conductor by manually setting the parameter InfoCore to 3 and Info Term
to 0. At the same time, set InfoEnd to 1 to make the conductor connected. An example of a jointed
conductor is shown in the following figure.
Introduction 8-89
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Introduction 8-90
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
You create terminals of a conductor by changing the Info Term to 1 or 2 for terminal1 or terminal2,
respectively. At the same time, InfoCore should be 3 or 4. Figure 8-119 shows the results of setting
the parameters.
Normally a Shaded Pole Core UDP has only one pair of holes. In order to create a poly-hole Pole
Core UDP, you need to use subtraction and move commands. Detailed steps are as follows.
Introduction 8-91
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
4. Then right-click the same object in the history tree to choose Edit>Paste. This process is
shown in the following figure:
Introduction 8-92
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Introduction 8-93
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
9. Enter a reference point by clicking at the origin. Another option is to enter (0, 0, 0) in the
keyboard entry area of the status bar, and press Enter.
10. Enter a target point along the Z-axis by clicking the mouse along the axis. Another option is to
enter (30, 0, 0) in the keyboard entry area, and press Enter, which is shown in the following
Introduction 8-94
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
figure.
11. Choose the core (ShadedPoleCore1) and the hole filler (ShadedPoleCore2) to make a
subtraction.
12. Select both the core and hole filler by pressing Ctrl on the keyboard.
Introduction 8-95
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
14. In the Subtract window, put core (ShadedPoleCore1) in the Blank Parts and hole filler
(ShadedPoleCore2) in Tool Parts.
Introduction 8-96
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
15. Click OK to finish subtraction. The core look likes the following figure:
Another option is to copy and paste multiple cores, change them to hole fillers and move them to
different positions to create a core with more than 2 pairs of holes. The following figure shows a
sample hole:
Introduction 8-97
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
UnivMCore UDP
The UnivMCore UDP is used to create the stator core and the field winding of a universal motor. It
can also create a coil terminal for current assignment.
Property Description
DiaGap Core diameter on gap side, or inner diameter.
DiaYoke Core diameter on yoke side, or outer diameter.
Length Core length.
Skew Skew angle in core length range.
Poles Number of poles.
PoleType Pole type: 1 to 2.
WidthCore Overall width of a racetrack core.
Embrace Pole embrace (the ratio of pole arc to pole pitch).
Offset Pole arc offset.
WidthPole Minimum width at pole root.
Ty Yoke thickness.
Ts Shoe-tip thickness.
R1 Radius of the screw holes in pole center.
R2 Radius of the side fillet arc at pole root.
R3 Radius of the side fillet arc center layout circle.
R4 Radius of the shoe connecting arc, 0 for auto-design.
R5 Inner radius of the screw holes in between two poles.
R6 Outer radius of the screw holes in between two poles.
EndExt Coil one-side end extended length.
LenRegion Region length.
InfoCore 0: core; 1: coils; 2: one coil; 3: terminal1; 4: terminal2; 100:
region.
Introduction 8-98
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
circles that it is tangential to are marked in red. When the value of R4 is 0, the length
of it is automatically designed.
Introduction 8-99
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
This core is used only as an outer core. You can set the value of DiaYoke and DiaGap as
DiaYoke>DiaGap to create an outer universal motor core. You can set the values either when
creating the core or after creating it, as described in Creating a Band and Creating an Outer Region,
respectively.
Set the InfoCore value to 0.
The following figure shows the results.
You can create all coils of a universal-motor core manually by setting the property of InfoCoil to 1.
You can assign the value of this property either when creating a universal-motor core or after
creating it, as described in Creating a Band and Creating an Outer Region, respectively.
The following figure gives an example of all coils for this UDP.
Introduction 8-100
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
You can create a coil of a universal-motor core manually by setting the property of InfoCoil to 2,
shown in Figure 8-131 as a red object.
You can create its terminals by setting the property of InfoCoil to 3 or 4 (for terminal1 and terminal2
respectively).Figure 8-134 shows what a terminal looks like.
You can assign the value of this property either when creating a universal-motor core or after
creating it, as described in Creating a Band and Creating an Outer Region, respectively.
Introduction 8-101
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
SRMCore UDP
The SRMCore UDP is used to create the stator core, a stator winding, and the rotor core for
switched reluctance motors. It can also create a coil terminal for current assignment.
Property Description
DiaGap Core diameter on gap side, DiaGap<DiaYoke for outer cores.
DiaYoke Core diameter on yoke side, DiaYoke<DiaGap for inner cores.
Length Core length.
Poles Number of poles.
ThkYoke Yoke thickness.
Embrace Pole embrace (the ratio of pole arc to pole pitch).
EndExt Coil one-side end extended length.
LenRegion Region length.
InfoCore 0: core; 1: core & coils; 2: coil; 3: terminal1; 4: terminal2; 100:
region.
Introduction 8-102
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Introduction 8-103
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
You can set the value of DiaYoke and DiaGap as DiaYoke<DiaGap to create inner cores or
DiaGap<DiaYoke for outer cores. You can set the values either when creating the core or after
creating it, as described in Creating a Band and Creating an Outer Region, respectively.
Set the InfoCore value to 0.
Examples of inner SRM core are shown in Figure 8-135 and Figure 8-138 . For outer core, refer to
Figure 8-136 and Figure 8-139 .
Introduction 8-104
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
You can create a core and all coils of an SRM Core manually by setting the value of InfoCoil to 1.
Introduction 8-105
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
You can assign the value of this property either when creating an SRM core or after creating it, as
described in Creating a Band and Creating an Outer Region, respectively.
Core and all coils can be created only when the core is an outer core (value of DiaYoke > DiaGap).
Examples of this core are shown in Figure 8-137 and Figure 8-140 .
You can create a coil of an SRM core manually by setting the value of InfoCoil to 2. An example is
shown in Figure 8-141 .
You can create a terminal manually by setting the property of InfoCoil to 3 or 4, for terminal1 or
terminal2 respectively. An example is shown in Figure 8-142 .
You can assign the value of this property either when creating an SRM core or after creating it, as
described in Creating a Band and Creating an Outer Region, respectively.
Introduction 8-106
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
SynRMCore UDP
The SynRMCore UDP is used to create the rotor core for synchronous reluctance machines.
Introduction 8-107
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Property Description
DiaGap Core diameter on gap side, or outer diameter.
DiaYoke Core diameter on yoke side, or inner diameter.
Length Core length.
Poles Number of poles
PoleType 1: ALA; 2: arc; 3: hyperbolic; 4: hyperbolic line.
Barriers Barriers per Pole, for PoleType 2&3 only.
H Bridge thickness, for PoleType 2&3 only.
W Rib width, for PoleType 2&3 only.
R Barrier fillet radius, for PoleType 2&3 only.
R0 Radius of the bottom barrier arch, for PoleType 2
only.
Rb Barrier bottom minimum radius.
Y0 Yoke bottom thickness.
B0 Barrier bottom thickness, for PoleType of 2&3 only.
LenRegion Region length.
InfoCore 0: core; 1: one barrier; 100: region.
Introduction 8-108
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
You can set the value of DiaYoke and DiaGap as DiaYoke<DiaGap to create inner cores. You can
set the value either when creating the core or after creating it, as described in Creating a Band and
Creating an Outer Region, respectively.
Set the InfoCore value to 0.
Figure 8-144 gives an example of an inner core for SynRM.
You can create a SynRMCore with different barriers through several steps, as follows.
1. Create a SynRMCore as shown in Creating an Inner Core for a Synchronous Reluctance
Machine.
Introduction 8-109
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
2. Change the value of Barriers to 1. The result is shown in the following figure.
3. Change the value of DiaGap to be larger and make the value of Y0 smaller to make enough
space for other barriers. You can modify these values by clicking on CreateUserDefinedPart
in the history tree under the SynRMCore, as shown in the following figure.
As an example, the values of DiaGap and Y0 are changed to 130 and 5, respectively.
Introduction 8-110
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
4. Make a copy (or multiple copies if more than 1 barrier is needed) of the current SynRMCore
object.
In the history tree, click SynRMCore1, press Ctrl+C, and then press Ctrl+V to duplicate the
SynRMCore. After these processes, the history tree looks like the following figure (only for 1
copy situation):
Introduction 8-111
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Introduction 8-112
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
6. Change the value of Rb of SynRMCore2 (barrier) to make it larger, and thus make the barrier
away from the center of the core.
As an example, the value of Rb of SynRMCore2 is changed from 15 to 25 by clicking on
CreateUserDefinedPart in the history tree under the SynRMCore2, as shown in the
following figure.
Introduction 8-113
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Introduction 8-114
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
7. Then rotate the coordinate system. Objects in it should look like those in the following figure:
Introduction 8-115
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Introduction 8-116
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
9. Click OK to finish subtraction. A SynRMCore with different barriers is shown in the following
figure.
Introduction 8-117
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
To make the barriers look different, you can change the parameters of barriers like W and B0. Also,
repeating the processes can make multiple barriers.
ClawPoleCore UDP
The ClawPoleCore UDP is used to create the claw-pole rotor core, a field winding and/or a PM for
claw-pole alternators. It can also create a coil terminal for current assignment.
Property Description
DiaGap Core diameter on gap side, DiaGap<DiaShaft for outer cores.
DiaShaft Core diameter on shaft side, DiaShaft<DiaGap for inner cores.
Length Core length.
Poles Number of poles.
EmbraceTip Embrace of pole tip.
EmbraceRoot Embrace of pole root.
ThickTip Thickness of pole tip.
ThickRoot Thickness of pole root.
ThickShoe Thickness of side shoes.
DepthSlot Depth of slot between two poles.
ThickYoke Thickness of yoke.
Introduction 8-118
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Property Description
LengthPole Length of pole from tip to tip.
LengthMag Length of magnet or the second air-gap.
SegAngle Deviation angle for skewed pole sides (1~10, <1 for true
surface).
LenRegion Region length.
InfoCore 0: core; 1: core & coil; 2: coil; 3: magnet; 4: terminal; 100: region.
These parameters are used in the following figures. Figure 8-156 is in transparent to show
parameters EmbraceTip and EmbraceRoot which otherwise are hard to show. For LengthMag
parameter, refer to Figure 8-161 .
Introduction 8-119
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Introduction 8-120
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Set the value of DiaShaft and DiaGap as DiaShaft<DiaGap to create an inner claw pole core. You
can set the value either when creating the core or after creating it, as described in Creating a Band
and Creating an Outer Region, respectively.
Set the InfoCore value 0.
Examples of inner claw-pole core are shown in Figure 8-155 , Figure 8-156 , and Figure 8-157 .
You can create a coil of a claw pole core manually by setting the value of InfoCoil to 2. An example
is shown inFigure 8-158 .
You can create a terminal of a claw pole core manually by setting the value of InfoCoil to 4. Figure 8-
159 gives an example of this terminal.
You can assign the value of this property either when creating a claw-pole core or after creating it, as
described in Creating a Band and Creating an Outer Region, respectively.
Introduction 8-121
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
To create a magnet, you need to set the value of LengthMag larger than 0 (by default, it is 0) and
value of InfoCore to be 3. An example is shown in the following figure.
Introduction 8-122
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
You can assign the value of these properties either when creating a claw-pole core or after creating
it, as described in Creating a Band and Creating an Outer Region, respectively.
PMCore UDP
The PMCore UDP is used to create a PM stator/rotor core and a PM for PM commutating DC
machines, PM adjustable-speed synchronous machines, or PM brushless DC motors.
Property Description
DiaGap Core diameter on gap side, DiaGap<DiaYoke for outer cores.
DiaYoke Core diameter on yoke side, DiaYoke<DiaGap for inner
cores.
Length Core length.
Poles Number of poles.
PoleType Pole type: 1 to 5.
Embrace Pole embrace (not for type 4).
ThickMag Max thickness of magnets.
WidthMag Magnet width (for types 4 & 5).
Offset Pole arc offset (for types 1, 2 & 3).
Bridge Bridge thickness (for type 5 only).
Rib Rib width (for type 5 only), Rib=0 for rectangle ducts.
LenRegion Region length.
InfoCore 0: core; 1: magnets; 2: magnet; 100: region.
Introduction 8-123
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Introduction 8-124
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Set the value of DiaYoke and DiaGap as DiaYoke<DiaGap to create inner cores or
DiaGap<DiaYoke for outer cores. In addition, r to create an outer core, the Pole Type must be 1 or
2. You can set the values either when creating the core or after creating it, as described in Creating a
Band and Creating an Outer Region, respectively.
Set the InfoCore value to 0.
An inner PM core and an outer PM core are shown in Figure 8-164 and Figure 8-165 , respectively.
Introduction 8-125
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
You can create all magnets of a PM core manually by setting the value of InfoCore to 1. An example
is shown in the following figure.
You can assign the value of this property either when creating a PM Core or after creating it, as
described in Creating a Band and Creating an Outer Region, respectively.
Introduction 8-126
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
You can create a magnet of a PM core manually by setting the value of InfoCore to 2. An example is
shown in the following figure.
You can assign the value of this property either when creating a PM core or after creating it, as
described in Creating a Band and Creating an Outer Region, respectively.
Introduction 8-127
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
IPMCore UDP
The IPMCore UDP is used to create an IPM core and a PM for IPM synchronous machines or IPM
brushless DC motors.
Property Description
DiaGap Core diameter on gap side, or outer diameter.
DiaYoke Core diameter on yoke side, or inner diameter.
Length Core length.
Poles Number of poles.
PoleType Pole type: 1 to 6.
D1 Limited diameter of PM ducts.
O1 Bottom width for separate or flat-bottom duct (for types 3~6).
O2 Distance from duct bottom to shaft surface (for types 2~6).
B1 Duct thickness.
Rib Rib width.
HRib Rib height (for types 3~5).
DminMag Minimum distance between side magnets (for types 3~5).
ThickMag Magnet thickness.
Introduction 8-128
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Property Description
WidthMag Total width of all magnet per pole.
LenRegion Region length.
InfoCore 0: core; 1: magnets; 2: ducts; 3: one-pole magnet; 100:
region.
Most parameters of IPMCore UDP are shown in the following figure except those common
parameters like DiaGap, DiaYoke and Length.
Set the value of DiaYoke and DiaGap as DiaYoke<DiaGap to create an inner IPM core. You can
set the value either when creating the core or after creating it, as described in Creating a Band and
Creating an Outer Region, respectively.
Set the InfoCore value to 0.
An example is shown in the following figure.
Introduction 8-129
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
You can create all magnets of an IPM core manually by setting the value of InfoCoil to 1.
You can assign the value of this property either when creating an IPM Core or after creating it, as
described in Creating a Band and Creating an Outer Region, respectively.
An example is shown in the following figure.
Introduction 8-130
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
You can create one-pole magnets of an IPM core manually by setting the property of InfoCoil to 3.
You can assign the value of this property either when creating an IPM core or after creating it, as
described in Creating a Band and Creating an Outer Region, respectively.
The following figure shows an example of one-pole magnets.
PMDamperCore UDP
The PMDamperCore UDP is used to create the PM rotor core with damper for line-start PM
synchronous machines.
Property Description
DiaGap Core diameter on gap side, or outer diameter.
DiaYoke Core diameter on yoke side, or inner diameter.
Length Core length.
Skew Skew angle in core length range.
Slots Number of damper slots per pole.
Introduction 8-131
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Property Description
SlotType Slot type: 1 to 4.
Hs0 Slot opening height.
Hs01 Slot closed bridge height.
Hs1 Slot wedge height.
Hs2 Slot body height.
Bs0 Slot opening width.
Bs1 Slot wedge maximum width.
Bs2 Slot body bottom width, 0 for parallel teeth.
Rs Slot body bottom fillet.
FilletType 0: a quarter circle; 1: tangent connection; 2&3: arc bottom.
Poles Number of poles.
PoleType Pole type: 1 to 8.
D1 Limited diameter of PM ducts.
O1 A locating dimension of PM ducts, for pole types 3, 4, 7 & 8.
O2 A locating dimension of PM ducts, for pole types 1, 3, 5, 6, 7 &
8.
B1 Barrier width, for pole types 1, 2 & 3.
Rib Rib to hold PM ducts, for pole types 1 to 7.
ThickMag Magnet thickness.
WidthMag Total width of all magnet per pole.
BarEndExt One-side damper bar end extended length.
RingLength One-side axial ring length.
RingHeight Radial ring height.
SegAngle Deviation angle for slot arches (10~30, <10 for true surface).
LenRegion Region length.
InfoCore 0: core; 1: magnets; 2: damper; 100: region.
Introduction 8-132
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Introduction 8-133
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Set the value of DiaYoke and DiaGap as DiaYoke<DiaGap to create an inner PM damper core.
You can set the value either when creating the core or after creating it, as described in Creating a
Band and Creating an Outer Region, respectively.
Set the InfoCore value to 0.
An example is given in the following figure.
Introduction 8-134
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
You create a damper of a PM damper core manually by setting the value of InfoCoil to 2.
You can assign the value of this property either when creating a PM damper core or after creating it,
as described in Creating a Band and Creating an Outer Region, respectively.
Examples are shown in Figure 8-174 as a red object and Figure 8-176 .
Introduction 8-135
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
You can create all magnets of a PM damper core manually by setting the value of InfoCoil to 1.
You can assign the value of this property either when creating a PM damper core or after creating it,
as described in Creating a Band and Creating an Outer Region, respectively.
An example is shown in the following figure. Note that this example is realized when the value of
PoleType is 3.
You can create a magnet of a PM damper core by setting the InfoCore value to -1, -2 or -3
according to the number of magnets for each pole of the core.
For instance, when Pole Type is equal to 3 (which is shown in Figure 8-177 ), there is only 1 magnet
for a pole. In this situation, setting the value of InfoCore to be -1 can create a magnet. An example is
shown in the following figure.
Introduction 8-136
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
When there are 2 magnets for a pole of a PM damper core (for example, when Pole Type is 5),
setting the value of InfoCore to be -1 can create one of these 2 magnets while setting the value of
InfoCore to be -2 can create another one.
For instance, Figure 8-179 shows all magnets of a PM damper core when Pole Type is 5, whereas
Figure 8-180 and Figure 8-181 present one of two magnets for a pole, by setting InfoCore value to
be -1 and -2 respectively.
Introduction 8-137
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Similarly, when a pole of PM damper core has 3 or more magnets (such as when InfoCore is 6), you
can create a single magnet by setting the value of InfoCore to -1, -2, -3 and so on.
You can assign the value of these properties either when creating a PM damper core or after
creating it, as described in Creating a Band and Creating an Outer Region, respectively.
Introduction 8-138
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
l DiskSlotCore UDP
l DiskCoil UDP
l DiskPMCore UDP
l LinearMCore UDP
l TransCore UDP
l TransCoil UDP
l TransTwist UDP
DiskSlotCore UDP
The DiskSlotCore UDP is used to create a stator/rotor core for axial-flux machines. It can also create
a squirrel-cage winding of the axial-flux type.
Property Description
DiaOuter Core outer diameter.
DiaInner Core inner diameter.
Thickness Core axial thickness per side.
Gap Gap between core & xy plane (>0: upper; <0: lower; =0: double-
sided).
Skew Skew angle.
Slots Number of slots.
SlotType Slot type: 1 to 6.
Hs0 Slot opening height.
Hs01 Slot closed bridge height.
Hs1 Slot wedge height.
Hs2 Slot body height.
Bs0 Slot opening width.
Bs1 Slot wedge maximum width.
Bs2 Slot body bottom width, 0 for parallel teeth.
Rs Slot body bottom fillet.
FilletType 0: a quarter circle; 1: tangent connection.
HalfSlot 0: symmetric slots; 1: half slots.
RingLength One-side radial ring length.
RingHeight Axial ring height.
SegAngle Deviation angle for slot arches (10~30, <10 for true surface).
InfoCore 0: core only; 1: squirrel cage only.
Introduction 8-139
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Note l For parameters such as Skew, Fillet Type, SegAngle, HalfSlot and parameters
related to slots, refer to SlotCore UDP parameters.
l Figures are shown in pairs to compare parameters when the InfoCore value varies.
Introduction 8-140
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Introduction 8-141
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
You can create an axial-flux slot core of a DiskSlot Core manually by setting the value of InfoCore to
0.
For an upper core, set the value of Gap to be larger than 0, as shown in Figure 8-182 and Figure 8-
185 ; for a lower core, set this value to be smaller than 0, which is shown in Figure 8-187 .
You can assign the value of this property either when creating a DiskSlot core or after creating it, as
described in Creating a Band and Creating an Outer Region, respectively.
Introduction 8-142
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
You can create squirrel-cage winding of a DiskSlot core manually by setting the property of
InfoCore to 1. An example of squirrel-cage winding is shown in Figure 8-184 .
You can assign the value of this property either when creating an axial-flux slot core or after creating
it, as described in Creating a Band and Creating an Outer Region, respectively.
DiskCoil UDP
The DiskCoil UDP is used to create a lap-type coil in an axial-flux slotted core created by the
DiskSlotCore UDP for axial-flux machines. It can also create a coil terminal for current assignment.
Property Description
DiaOuter Core outer diameter.
DiaInner Core inner diameter.
Thickness Core axial thickness per side.
Gap Gap between core & xy plane (>0: upper; <0: lower; =0: double-
sided).
Skew Skew angle.
Slots Number of slots.
SlotType Slot type: 1 to 7.
Hs0 Slot opening height.
Introduction 8-143
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Property Description
Hs1 Slot wedge height.
Hs2 Slot body height.
Bs0 Slot opening width.
Bs1 Slot wedge maximum width.
Bs2 Slot body bottom width, 0 for parallel teeth.
Rs Slot body bottom fillet.
FilletType 0: a quarter circle; 1: tangent connection.
Layers Number of winding layers.
CoilPitch Coil pitch measured in slots.
EndExt One-side radial end extended length.
EndClr Clearance between two end spans; 0 for no span.
SegAngle Deviation angle for end span (5~15, <5 for true surface).
InfoCoil 0: winding; 1: coil; 2: terminal.
Note l For parameters such as Skew, Fillet Type, SegAngle, HalfSlot and parameters
related to slots, refer to SlotCore UDP parameters.
l Figure 8-189 can be used in comparison to Figure 8-188 to show CoilPitch
parameter.
l A DiskSlot core is used as reference in Figure 8-190 to show EndExt and EndClr
parameters.
Introduction 8-144
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Introduction 8-145
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
You can create a whole winding of a DiskCoil Core manually by setting the property of InfoCoil to 0.
For an upper core, set the value of Gap to be larger than 0, which is shown in Figure 8-191 ; for a
lower core, set this value to be smaller than 0, which is shown in Figure 8-192 .You can assign the
Introduction 8-146
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
value of this property either when creating the DiskCoil or after creating it, as described in Creating a
Band and Creating an Outer Region, respectively.
You can create a lap coil of a DiskCoil manually by setting the value of InfoCoil to 1. An example is
shown in Figure 8-189 .
You can create a terminal of a DiskCoil manually by setting the value of InfoCoil to 2. An example is
shown in Figure 8-193 .
You can assign the value of this property either when creating a DiskCoil or after creating it, as
described in Creating a Band and Creating an Outer Region, respectively.
Introduction 8-147
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
DiskPMCore UDP
The DiskPMCore UDP is used to create a PM core of the axial-flux type for axial-flux PM machines.
Property Description
DiaOuter Core outer diameter.
DiaInner Core inner diameter.
Thickness Core axial thickness per side.
Gap Gap between core & xy plane (>0: upper; <0: lower; =0: double-
sided).
Skew Skew angle.
Poles Number of poles.
Embrace Pole embrace.
ThickMag Magnet axial thickness per side.
InfoCore 0: core only; 1: all PMs; 2: one PM only.
Note There are two objects in each of the following figures. Both objects in each figure are
DiskPMCore. The value of InfoCore of one DiskPMCore is 1 (red object), the other’s is 0
(gray object).
Introduction 8-148
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Introduction 8-149
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
You can create an axial-flux PM core of a DiskPM core manually by setting the value of InfoCore to
0.
For an upper core, set the value of Gap to be larger than 0; for a lower core, set this value to be
smaller than 0.
An example of an upper core is shown in Figure 8-196 , whereas a lower core is in Figure 8-197 .
You can assign the value of this property either when creating a Disk PM core or after creating it, as
described in Creating a Band and Creating an Outer Region, respectively.
Introduction 8-150
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
You can create all magnets of a disk PM core manually by setting the value of InfoCoil to 1. An
example of all magnets is shown in Figure 8-194 and Figure 8-195 as a red object.
You can assign the value of this property either when creating a disk PM core or after creating it, as
described in Creating a Band and Creating an Outer Region, respectively.
You can create a single magnet of a disk PM core manually by setting the property of InfoCoil to 2.
An example of one magnet is shown in Figure 8-198 .
You can assign the value of this property either when creating a disk PM core or after creating it, as
described in Creating a Band and Creating an Outer Region, respectively.
LinearMCore UDP
The LinearMCore UDP is used to create the mover core and the armature winding for linear motors.
It can also create a coil terminal for current assignment.
Property Description
WidthCore Core width in motion direction.
ThickCore Core thickness.
Length Core length.
SlotPitch The distance between two slots.
Introduction 8-151
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Property Description
Slots Number of slots.
SlotType Slot type: 1 to 7.
Hs0 Slot opening height.
Hs1 Slot wedge height.
Hs2 Slot body height.
Bs0 Slot opening width.
Bs1 Slot wedge maximum width.
Bs2 Slot body bottom width, 0 for parallel teeth.
Rs Slot body bottom fillet.
Layers Number of winding layers.
CoilPitch Coil pitch measured in slots.
EndExt One-side end extended length.
SpanExt Axial length of end span; 0 for no span.
SegAngle Deviation angle for slot arches (10~30, <10 for true
surface).
InfoCore 0: core only; 1: core & all coils; 2: one coil only.
Note l For parameters such as SegAngle and parameters related to slots, refer to SlotCore
UDP parameters.
l The InfoCore values of the following two figures are both 1 to better describe other
parameters such as EndExt and SpanExt.
Introduction 8-152
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
You can create a linear machine core manually by setting the value of InfoCore to 0.
An example of a linear machine core is shown in Figure 8-201 .
You can assign the value of this property either when creating a linear-machine core or after creating
it, as described in Creating a Band and Creating an Outer Region, respectively.
Introduction 8-153
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
You can create a core and all coils manually by setting the value of InfoCore to 1. An example of a
core and all coils of a linear-machine core is shown in Figure 8-202 .
You can assign the value of this property either when creating a linear machine core or after creating
it, as described in Creating a Band and Creating an Outer Region, respectively.
Figure 8-202 A core and all coils of a linear machine core (InfoCore set to 1)
You can create a one coil only manually by setting the value of InfoCore to 2.
An example of a coil of a linear machine core is shown in Figure 8-203 .
You can assign the value of this property either when creating a linear machine core or after creating
it, as described in Creating a Band and Creating an Outer Region, respectively.
Introduction 8-154
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
TransCore UDP
The TransCore UDP is used to create a three-leg transformer core for three-phase transformers.
Property Description
DiaLeg Outer diameter of leg cross-section.
DistLeg Leg center to center distance.
DistYoke Yoke center to center distance.
Stages Number of stages of leg cross-section.
ThickCore Core thickness, only used for Stages = 1.
WidthYoke Yoke width, =0 for same cross-section as
leg's.
InfoCore 0: whole core; 1: legs only; 2: yokes only.
Note Figure 8-204 , Figure 8-205 , and Figure 8-206 show a TransCore UDP with different
values of Stages and WidthYoke.
Introduction 8-155
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Introduction 8-156
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Figure 8-207 Parameters of TransCore in axial direction (when Stages is 1 and WidthYoke
is not 0)
Introduction 8-157
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
You can create a three-leg transformer core manually by setting the value of InfoCore to 0.
Examples of a three-leg transformer core are shown in Figure 8-204 , Figure 8-205 , Figure 8-206 ,
and Figure 8-207 .
You can assign the value of this property either when creating a three-leg transformer or after
creating it, as described in Creating a Band and Creating an Outer Region, respectively.
You can create three legs of the core manually by setting the value of InfoCore to 1.
An example of three legs is shown in Figure 8-208 .
You can assign the value of this property either when creating a three-leg transformer core or after
creating it, as described in Creating a Band and Creating an Outer Region, respectively.
You can create two yokes of the core manually by setting the value of InfoCore to 2.
An example of two yokes is shown in Figure 8-209 .
Introduction 8-158
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
You can assign the value of this property either when creating a three-leg transformer core or after
creating it, as described in Creating a Band and Creating an Outer Region, respectively.
TransCoil UDP
The TransCoil UDP is used to create a coil in a three-leg transformer core created by the TransCore
UDP for three-phase transformers. It can also create a coil terminal for current assignment.
Property Description
DistLeg Leg center to center distance.
CoilType Coil type: 1 for solenoid coil; 2 for pancake
coil.
WidthIn Coil width between two inner sides.
DepthIn Coil depth between two inner ends.
RadiusIn Coil inner fillet radius.
ThickCoil Coil thickness of one side.
HighCoil Coil height.
Layers Number of layers.
GapLayer Gap between two layers.
InfoCore 0: all coils; 1: one coil only.
Introduction 8-159
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Note The key to making the cross-section of each layer of a coil to be a circle is to set the value of
WidthIn equal to that of DepthIn and at the same time set the value of RadiusIn to be half
of that of WidIn. That is, WidthIn=DepthIn=2*RadiusIn.
The cross-section of a layer could be a non-circle if the value of WidthIn is not equal to that
of DepthIn or RadiusIn’s value is not half of WidthIn’s. Figure 8-212 shows a situation
where a layer is a non-circle.
Introduction 8-160
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
You can create coils for three legs manually by setting the value of InfoCore to 0.
Examples of coils for TransCoil UDP are shown in Figure 8-210 , Figure 8-211 , and Figure 8-213 .
You can assign the value of this property either when creating a TransCoil UDP or after creating it,
as described in Creating a Band and Creating an Outer Region, respectively.
Introduction 8-161
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
You can create a one-leg coil manually by setting the value of InfoCore to 1.
An example of a one-leg coil for a TransCoil UDP is shown in Figure 8-214 .
You can assign the value of this property either when creating a TransCoil UDP or after creating it,
as described in Creating a Band and Creating an Outer Region, respectively.
TransTwist UDP
Property Description
CoreType 1: shell-type; 2: core-type.
WidthOut Core outer width.
DepthOut Core outer depth in coil turn direction.
RadiusOut Core outer fillet radius.
WidthIn Core window width.
DepthIn Core window depth in coil turn direction.
RadiusIn Core window fillet radius.
DistCenters Window center-to-center distance, for shell-type only.
HeightCore Core height.
Coils Number of coils: 1 or 2.
WiresCoil Wires per coil: 1, 2, 3, or 4 (no twist for 1 wire).
Introduction 8-162
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Property Description
TurnsCoil Number of turns per coil.
TurnsTwist Total twist turns in one coil turn; 360 degrees in one twist turn.
DiaWire Wire diameter.
Segments Polygon segments for wire cross section: <=2 for true circle.
InsType Insulator type: 1: round insulator; 2: filleted square insulator.
ThickIns Outer minimum thickness of insulator.
GapWires The gap between two round wire profiles.
GapEndTurns The gap between two end turns of round insulator profiles.
GapCoreIns The gap between core and round insulator profiles inside two windows and at two
ends.
LeadExt Lead extension from lead terminal to core end terminal.
InfoCore 0: All; 1: Core; 2: Insulator; 3-6: Wires of coil#1; 7-10: Wires of coil#2.
InfoTerm 0: 3D wire; 1: 2D go-term; 2: 2D re-term (for InfoCore = 3-10 only).
Introduction 8-163
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Note l Figure 8-215 and Figure 8-216 give an overview of the TransTwist UDP. The
difference between them is Figure 8-216 has 4 colorful wires inside the insulator
whereas Figure 8-215 has nothing in its insulator.
l InFigure 8-215 and Figure 8-216 and also other figures like Figure 8-220 , objects in
different colors are all TransTwist UDP but with different InfoCore values. For
example, in Figure 1-6 , the gray object is a TransTwist UDP whose InfoCore value
is 1(core), while red, blue, green and yellow objects (wires) are also TransTwist
UDPs whose InfoCore values are 3, 4, 5, and 6 respectively. Also, the value of the
InfoCore of pink tube that covers the wires is 2 (insulator). To draw this kind of
figure, copy and paste the TransTwist UDP (or manually create multiples of this
UDP) and then change their InfoCore values and colors.
l The reason for making colorful figures here is to show the parameters of the
TransTwist UDP more clearly.
l The difference between Figure 8-218 and Figure 8-219 is the parameter
TurnsCoil, which means the number of turns for each coil (only one coil in each
figure). There are 2 turns for the coil in Figure 1-4 whereas there is only 1 turn for the
coil in Figure 8-219 .
l The purpose ofFigure 8-221 is to show the concept of the parameter Coils. Note
that when the value of Coils is 2 in this figure, the two coils are disconnected. For a
comparison, see the one coil shown in Figure 8-220 .
l The purpose of Figure 8-222 is to show the parameter of GapEndTurns, which is
useful only when the value of TurnsCoil is larger than 2.
l The results of parameter TurnsTwist are difficult to show in a figure. It is used to
define the number of twist turns in one coil turn for each coil (or wire). As shown in
Introduction 8-164
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Figure 8-224 , the green wire is twisted 0.5 turn at the bottom of the core. Then, for
the entire coil turn, it may be twisted 3 to 3.5 twist turns (0.5 to 1 turn on the top of the
core, and 1 turn on each side of the core).
Figure 8-218 3D parameters of TransTwist UDP (gray Object: InfoCore set to 1, Red
Object: InfoCore set to 2)
Introduction 8-165
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Figure 8-219 3D parameters of TransTwist UDP (gray Object: InfoCore set to 1, Red
Object: InfoCore set to 2)
Introduction 8-166
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Figure 8-220 Gaps-related parameters of TransTwist UDP (gray Object: InfoCore set to 1,
Red Object: InfoCore set to 2, Colorful Wires: InfoCore set to 3 to 6)
Figure 8-221 Coil-related parameters of TransTwist UDP (gray Object: InfoCore set to 1,
Red Object: InfoCore set to 2)
Figure 8-222 GapEndTurns of TransTwist UDP (gray Object: InfoCore set to 1, Red
Object: InfoCore set to 2)
Introduction 8-167
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Figure 8-223 Wires-related parameters of TransTwist UDP (gray Object: InfoCore set to 1,
Red Object: InfoCore set to 2, Colorful Wires: InfoCore set to 3 to 6)
Figure 8-224 LeakEndExt of TransTwist UDP (gray Object: InfoCore set to 1, Red Object:
InfoCore set to 2, Colorful Wires: InfoCore set to 3 to 6)
Introduction 8-168
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
You can create a core and all twist coils manually by setting the value of InfoCore to 0, which is set by
default in Maxwell.
An example of a core and all twist coils is shown in Figure 8-225 .
You can assign the value of this property either when creating the UDP or after creating it, as
described in Creating a Band and Creating an Outer Region, respectively.
You can create a twist wire of a TransTwist manually by setting the value of InfoCore to 3 to 6 (or 7-
10 for coil #2) and Info Term to 0. Examples are shown in Figure 8-216 , Figure 8-219 , Figure 8-
223 , and Figure 8-224 as red, green, blue and yellow objects.
You can create a terminal of a wire manually by setting the value of InfoCore to 3 to 6 (or 7-10 for
coil #2) and Info Term to 1 or 2 (for 2D go-term and 2D re-term respectively). An example is shown
in Figure 8-226 below.
You can assign the value of this property either when creating a TransTwist or after creating it, as
described in Creating a Band and Creating an Outer Region, respectively.
Introduction 8-169
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
You can create an insulator of all coils manually by setting the value of InfoCore to 2 and Info Term
to 0. An example is shown in Figure 8-227 .
You can assign the value of this property either when creating a TransTwist or after creating it, as
described in Creating a Band and Creating an Outer Region, respectively.
Introduction 8-170
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Introduction 8-171
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Helix UDPs
Helix UDPs are shapes of inductance design and are widely used in electronic devices and signal
integrity area.
Helix UDPs consist of the following types:
l PolygonHelix UDP
l RectHelix UDP
PolygonHelix UDP
The shape of the cross-section of a PolygonHelix is a polygon.
Property Description
PolygonSegments Number of cross-section polygon segments, 0 for
circle.
PolygonRadius Outer radius of cross-section polygon.
StartHelixRadius Start radius from polygon center to helix center.
RadiusChange Radius change per turn.
Pitch Helix pitch.
Turns Number of turns.
SegmentsPerTurn Number of segments per turn, 0 for true surface.
RightHanded Helix direction, non-zero for right handed.
Note Figure 8-1 is an overview of the PolygonHelix UDP. “Polygon” means the cross-section of
the helix is a polygon, which by default is a square (PolygonSegments set to 4).
Polygon helices in Figure 8-2 and Figure 8-3 have the default settings of this UDP,
whereas each of the polygon helices in Figure 8-4 to Figure 8-8 has only one parameter
value that is different from the defaults shown in Figure 8-2 and Figure 8-3 .
Figure 8-4 Different RadiusChange value (non-zero); the value in Figure 8-2 is 0.
Figure 8-5 Different SegmentsPerTurn value (24); the value in Figure 8-2 is 36.
Figure 8-6 Left-handed (RightHanded set to 0) helix; Figure 8-3 shows a right-handed
helix.
Figure 8-7 Different PolygonSegments value (6); the value in Figure 8-3 is 4.
Figure 8-8 Different Turns value (3); the value inFigure 8-3 is 2.
You can create a right-handed polygon helix manually by setting the value of RightHanded to 1 (or
any non-zero value), which is set by default in Maxwell.
You can create a left-handed polygon helix by setting RightHanded to 0.
Examples of right- and left-handed polygon helices are shown in Figure 8-3 and Figure 8-6 ,
respectively.
You can assign the value of this property either when creating the UDP or after creating it, as
described in Creating a Band and Creating an Outer Region, respectively.
RectHelix UDP
The shape of the cross-section in a RectHelix is a rectangle.
Property Description
RectHeight Cross-section rectangle height in z direction.
RectWidth Cross-section rectangle width in r direction.
StartHelixRadius Start radius from rectangle center to helix
center.
RadiusChange Radius change per turn.
Pitch Helix pitch.
Turns Number of turns.
SegmentsPerTurn Number of segments per turn, 0 for true
surface.
RightHanded Helix direction, non-zero for right handed.
Note l The major difference between the RectHelix UDP and the PolygonHelix UDP is the
shape of the cross-sections of the helices. In RectHelix, the shape of its cross-section
is a rectangle whereas that of PolygonHelix is a polygon.
l Except for RectHeight and RectWidth, parameters are the same as those in the
Polygon Helix UDP. The one figure in this section describes RectHeight and
RectWidth.
l For all other parameters, refer to Polygon Helix UDP.
You can create a right-handed rectangle helix manually by setting the value of RightHanded to 1 (or
any non-zero value), which is set by default in Maxwell.
You can create a left-handed rectangle helix by setting RightHanded to 0.
Examples of right-handed and left-handed rectangle helices are shown in Figure 8-8 and Figure 8-
11 , respectively.
You can assign the value of this property either when creating the UDP or after creating it, as
described in Creating a Band and Creating an Outer Region, respectively.
l Code Implementation uses a Band UDP to illustrate what functions or procedures are needed
Many intrinsic structures are written in C++ for UDPs. These intrinsic structures are provided in the
UserDefinedPrimitiveStructures.h file (under directory: AnsysEM\Maxwell
[x.x]\Win64\UserDefinedPrimitives\Examples\Headers).
Here are some common intrinsic structures that you need to know before starting coding for UDPs:
UDPPosition
Defines the most common and basic structure in a coordinate system, which is used to describe a
point in the system.
struct UDPPosition
{
double x;
double y;
double z;
};
UDPPolylineDefinition
Defines the structure of polyline in a UDP, which is used to create sheets or lines in a UDP.
struct UDPPolylineDefinition
{
int noOfPoints;
struct UDPPosition* arrayOfPosition;
int noOfSegments;
struct UDPPolylineSegmentDefinition* arrayOfSegmentDefinition;
int isClosed;
int isCovered; /* Only if it is closed, then it can be covered
*/
};
UDPPrimitiveParameterDefinition
Defines the parameter/property definition of each UDP, such as DiaGap, DiaYoke and Length in the
Properties window of each UDP. A definition for a parameter includes the name of the parameter,
description of the parameter, unit of parameter, and default value of it.
struct UDPPrimitiveParameterDefinition
{
char* name; /* Name of the parameter */
char* description; /* some description of the parameter */
UDPUnitType unitType; /* No unit/length/angle */
double defaultValue;
};
UDPPolylineSegmentDefinition
Defines line segments used to form a polyline.
struct UDPPolylineSegmentDefinition
{
UDPPolylineSegmentType segmentType;
int segmentStartIndex;
Vector structures are used in UDP coding, mainly for rotation, moving or other kinds of
transformations of geometry.
struct UDPVector
{
double x;
double y;
double z;
};
Intrinsic function declarations are inside the same file (UserDefinedPrimitiveStructures.h) as intrinsic
structure definitions. Functions are declared by ‘typedef’ keyword and function pointer. Some
function declarations are shown below as examples:
Add a message to the message window, with desired severity level
This declaration is used in the DisplayInfo function in UDPs.
typedef void (*UDPAddMessageFP)
(
UDPMessageSeverity, /* Message severity */
const char*, /* message string */
void* /* callbackData */
);
Function pointers used to create primitives
/* The return type for all primitives (except for spiral and
helix) is the ID of
* the body created -1 is an invalid ID, which means the
operation failed.
*
* Spiral and helix are like sweep operations and operate on a
profile.
* The return value indicates if the operation succeeded,
* return value 0 means operation failed, any other value
* means operation succeeded.
*/
/* 1D/2D ENTITIES */
typedef long (*UDPCreatePolylineFP)
(
const struct UDPPolylineDefinition* , /* polylineDefinition */
void* /* callbackData */
);
/* 3D ENTITIES */
);
Transform operations
The following two functions are used for transformations.
/* Transform operations (Translate i.e.move, rotate, mirror
and
* scale) modify the part body. The resultant body
* id is same as the part id. The return value indicates
* if the operation succeeded, return value 0 means operation
* failed, any other value means operation succeeded.
*/
/* Translate function is used to do translational motion for a
given object. */
typedef long (*UDPTranslateFP)
(
long, /* partID */
const struct UDPVector*, /* translation vector */
void* /* callbackData */
);
When coding for a UDP, you should declare an instance of UDPFunctionLib in the UDP and then
use functions directly when needed.
For example:
UDPFunctionLib* functionLib;
functionLib->addMessage(kUDPInfoMessage, msg0, callbackData);
struct UDPFunctionLib
{
/* Utility functions */
UDPAddMessageFP addMessage;
UDPNameAFaceFP nameAFace;
UDPNameAEdgeFP nameAEdge;
UDPNameAVertexFP nameAVertex;
UDPGetFaceIDFromPositionFP getFaceIDFromPosition;
UDPGetEdgeIDFromPositionFP getEdgeIDFromPosition;
UDPGetTempDirPathFP getTempDirPath;
UDPGetInstallDirPathFP getInstallDirPath;
UDPGetSysLibDirPathFP getSysLibDirPath;
UDPGetUserLibDirPathFP getUserLibDirPath;
UDPGetPersonalLibDirPathFP getPersonalLibDirPath;
UDPSetProgressFP setProgress;
/* Primitives */
/* 1D/2D ENTITIES */
UDPCreatePolylineFP createPolyline;
UDPCreateRectangleFP createRectangle;
UDPCreateArcFP createArc;
UDPCreateCircleFP createCircle;
UDPCreateEllipseFP createEllipse;
UDPCreateRegularPolygonFP createRegularPolygon;
UDPCreateEquationBasedCurveFP createEquationBasedCurve;
UDPCreateEquationBasedSurfaceFP createEquationBasedSurface;
UDPCreateSpiralFP createSpiral;
UDPGetProjectPathFP getProjectPath;
UDPReservedForFutureFP reserved1D2DPrimitive7;
UDPReservedForFutureFP reserved1D2DPrimitive8;
UDPReservedForFutureFP reserved1D2DPrimitive9;
UDPReservedForFutureFP reserved1D2DPrimitived10;
/* END - RESERVED FOR FUTURE 1D/2D PRIMITIVES */
/* 3D ENTITIES */
UDPCreateBoxFP createBox;
UDPCreateSphereFP createSphere;
UDPCreateCylinderFP createCylinder;
UDPCreateConeFP createCone;
UDPCreateTorusFP createTorus;
UDPCreatePolyhedronFP createPolyhedron;
UDPCreateHelixFP createHelix;
/* Operations */
/* Booleans */
UDPUniteFP unite;
UDPSubtractFP subtract;
UDPIntersectFP intersect;
/* Sweeps */
UDPSweepAlongVectorFP sweepAlongVector;
UDPSweepAroundAxisFP sweepAroundAxis;
UDPSweepAlongPathFP sweepAlongPath;
/* Transformation */
UDPTranslateFP translate;
UDPRotateFP rotate;
UDPMirrorFP mirror;
UDPScaleFP scale;
/* Duplicate */
UDPDuplicateAlongLineFP duplicateAlongLine;
UDPDuplicateAroundAxisFP duplicateAroundAxis;
UDPDuplicateAndMirrorFP duplicateAndMirror;
/* Connect */
UDPConnectFP connect;
/* Offset */
UDPOffsetFP offset;
/* Section */
UDPSectionFP section;
/* Split */
UDPSplitFP split;
/* Clone */
UDPCloneFP clone;
/* Delete part */
UDPDeletePartFP deletePart;
/* Fillet/Chamfer */
UDPFilletFP fillet;
UDPChamferFP chamfer;
/* Detach Faces/Edges */
UDPDetachFacesFP detachFaces;
UDPDetachEdgesFP detachEdges;
UDPCreateObjectFromEdgeFP createObjectFromEdge;
UDPSheetThickenFP sheetThicken;
UDPSweepFaceAlongNormalFP sweepFaceAlongNormal;
/* cover/uncover */
UDPCoverLineFP coverLine;
UDPCoverSurfaceFP coverSurface;
UDPUncoverFacesFP uncoverFaces;
UDPSeparateBodiesFP separateBodies;
UDPMoveFacesFP moveFaces;
UDPWrapSheetFP wrapSheet;
UDPImprintFP imprint;
UDPImprintProjectionFP imprintProjection;
UDPTransformFP transform;
Code Implementation
This section provides several sample functions and structures to show how to write real code for a
UDP. All codes are from a sample source file written for Band UDP.
There are two files, UDPBase.h and UDPBase.cpp files, that include basic structures and functions
for all UDPs. All UDPs should be built based on these two files.
A structure is needed for parameters and default values at the beginning of each UDP. In the
following code, UDPPrimitiveParameterDefinition, an intrinsic structure of UDP shown in Head File
for Intrinsic Structure Definition, is used to create an array of parameters for a UDP.
ValidateParameters()
else numSegs = 0;
return 0;
}
First initialize parameters using IniParameters(), and then check the validity of values for
parameters. These two functions are inside the UDPBase class and do not need to be implemented.
// set oriParams pointer, and make a copy of data to
paramValues
void CUDPBase::IniParameters(double* paramValues0, int num)
{
oriParams = paramValues0; // set oriParams pointer
numOfParams = num;
delete[] paramValues;
paramValues = new double [num];
This section covers the three functions that you need to implement in the new UDP classes. The
functions could be used as templates for new UDP classes.
These functions are very straightforward. You should follow the examples to add or remove
parameters for a new UDP.
GetParameters()
segAng = 3;
numFras = 1;
infoHalf = 0;
PutParameters()
ValidateParameters()
return 0;
}
In this part, functions are used to create the UDP. You need to write two functions for UDP creation.
l The first function is the main function to create this UDP. It calls two other functions, one of
l The following function is used to create a UDP based on different InfoCore values. For
instance, a region is created when InfoCore is equal to 100 while a tool is created when
InfoCore is equal to 2.
For functions to create specific object like region, tool and master, refer to Source Code Files
for more detail.
long CBand::CreatePrimitive(UDPFunctionLib* functionLib, void*
callbackData)
{
if (!checkOK) return 0;
// create region
if (infoCore == 100) {
long region = CreateRegion();
return region==-1 ? 0 : 1;
}
// create tool
if (infoCore == 1) {
long tool = CreateTool();
return tool==-1 ? 0 : 1;
}
// create master
if (infoCore == 2) {
long master = CreateMaster();
return master==-1 ? 0 : 1;
}
// create slave
if (infoCore == 3) {
long slave = CreateMaster(false);
return slave==-1 ? 0 : 1;
}
// create band
long band = CreateBand();
return band==-1 ? 0 : 1;
}
Parameters mapping function is used when the UDP version changes or some new parameters are
added into a UDP.
l You should implement the following function MapParametersDefinitionVersions(). It calls two
return 1;
}
l The following function is the MapParameters() function, which has already been implemented
in the UDPBase class.
// map parameter values of old version to new version based on
keywords,
// which is written in UDPBase class and does not need to be
implemented by user
void CUDPBase::MapParameters(UDPPrimitiveParameterDefinition*
params, int oldNum)
{
if (!primParams) return;
int i, j, j0=0;
for (i=0; i<numOfParams; i++) {
oriParams[i] = primParams[i].defaultValue;
if (j0<oldNum && strcmp(primParams[i].name, params
[j0].name)==0) {
oriParams[i] = params[j0++].defaultValue;
continue;
}
for (j=0; j<oldNum; j++) {
if (strcmp(primParams[i].name, params[j].name) == 0) {
oriParams[i] = params[j].defaultValue;
j0 = j+1;
break;;
}
}
}
}
l UDPBase.cpp
l Band.h
l Band.cpp
UDPBase.h
// File: UDPBase.h
#if !defined (UDP_BASE_H)
#define UDP_BASE_H
#include <math.h>
#include <string.h>
#include <stdio.h>
#include "../Headers/UserDefinedPrimitiveDLLInclude.h"
//***************************************
// Basic functions
//***************************************
// get version number * 100
int getVerNum(char *ver);
//***************************************
// Base class for any UDP
//***************************************
class CUDPBase
{
protected:
double minD;
int numOfParams;
double *oriParams;
double *paramValues;
bool checkOK; // 1: check OK; 0: check failed
UDPFunctionLib* functionLib;
void* callbackData;
protected:
bool GetValue(int i, char *s, double& v);
bool PutValue(int i, char *s, double& v);
bool GetValue(int i, char *s, int& v);
bool PutValue(int i, char *s, int& v);
bool GetValue(int i, char *s, bool& v);
bool PutValue(int i, char *s, bool& v);
// display messages
void DisplayInfo(char *msg=0);
// create lines
long CreateLine(UDPPosition startPos, UDPPosition endPos);
long CreatePolyLine(UDPPosition *pos, int numPos);
long CreateZAxisPath(double z0, double z1);
// create sheets
long CreateSheet(UDPPosition *pos, int numPos, int isSheet=1);
// create solids
// edit objects
long RotateAroundZVector(long obj, double angle, double x0=0,
double y0=0);
long DuplicateAroundAxis(long obj, UDPCoordinateSystemAxis
axis, int num,
double angle=0);
long AddObject(long objBase, long objAdd);
long SubObject(long objBase, long objSub);
public:
CUDPBase();
~CUDPBase() {delete[] paramValues;}
UDPBase.cpp
#include <math.h>
#include <stdlib.h>
#include "../Headers/UDPBase.h"
//***************************************
// Basic functions
//***************************************
int getVerNum(char *ver)
{
if (!ver) return 0;
double verD = 0;
sscanf(ver, "%lf", &verD);
return int(verD*100 + 0.5);
}
edge[j0].segmentStartIndex = i0;
edge[j0++].segmentType = edge[j].segmentType;
//***********************************************
// Member function definition for base class
//***********************************************
CUDPBase::CUDPBase() {
minD = 0;
paramValues = 0;
checkOK = 0;
functionLib = 0;
callbackData = 0;
}
return 0;
}
void CUDPBase::MapParameters(UDPPrimitiveParameterDefinition*
params, int oldNum)
{
if (!primParams) return;
int i, j, j0=0;
for (i=0; i<numOfParams; i++) {
oriParams[i] = primParams[i].defaultValue;
if (j0<oldNum && strcmp(primParams[i].name, params
[j0].name)==0) {
oriParams[i] = params[j0++].defaultValue;
continue;
}
for (j=0; j<oldNum; j++) {
if (strcmp(primParams[i].name, params[j].name) == 0) {
oriParams[i] = params[j].defaultValue;
j0 = j+1;
break;;
}
}
}
}
PutParameters();
checkOK = 1;
return 1;
}
char msg[BUFSIZ];
for (int i=0; i<numOfParams; i++) {
double err = primParams[i].unitType==kUDPLengthUnit ? minD :
1e-6;
if (fabs(paramValues[i] - oriParams[i]) <= err) continue;
sprintf(msg, "%s is modified from %g to %g",
primParams[i].name, oriParams[i], paramValues[i]);
functionLib->addMessage(kUDPInfoMessage, msg, callbackData);
}
}
// create a polyline
return IDs[0];
}
return sheet;
}
return obj;
}
return obj;
}
long id = IDs[0];
if (bSuccess == 1) {
IDs[num - 1] = obj;
bSuccess = functionLib->unite(IDs, num, callbackData);
}
delete[] IDs;
return objBase;
}
Band.h
// File: Cores.h
#include "../Headers/UDPBase.h"
//***************************************
// Basic class for Band
//***************************************
class CBand : public CUDPBase
{
protected:
double diaGap; // diameter at the gap side
double diaYoke; // diameter at the yoke side
double length; // core length or model depth: length = 0 for
2D
protected:
virtual void GetParameters();
virtual void PutParameters();
virtual char *ValidateParameters();
long CreateBand();
long CreateTool();
long CreateMaster(bool isMaster=true);
long CreateRegion(double r0=0, int fras=0);
public:
virtual long CreatePrimitive(UDPFunctionLib* functionLib,
void* callbackData);
};
Band.cpp
#include "../Headers/Band.h"
paramDefinition)
{
*paramDefinition = primParams;
return numOfParameters;
}
return 1;
}
//***************************************************
// Member function definition for class CBand
//***************************************************
void CBand::GetParameters()
{
diaGap = diaYoke = 0;
length = 0;
infoCore = 0;
infoOut = -1;
segAng = 3;
numFras = 1;
infoHalf = 0;
void CBand::PutParameters()
{
for (int i=0; i<numOfParams; i++) {
if (PutValue(i, "DiaGap", diaGap)) continue;
if (PutValue(i, "DiaYoke", diaYoke)) continue;
if (PutValue(i, "Length", length)) continue;
char* CBand::ValidateParameters()
{
if (!paramValues) return 0;
return 0;
}
{
if (obj == -1) return obj;
if (functionLib==0 || callbackData==0) return obj;
if (length == 0) return obj;
return obj;
}
long CBand::CreateBand()
{
long band = -1;
double r0 = diaGap / 2;
if (numSegs == 0) band = CreateRegion(r0);
else {
double angle = 2*PI / numSegs;
int n = numSegs / numFras;
double x0 = r0 * cos(angle);
double y0 = r0 * sin(angle);
UDPPosition pos[] = { 0, 0, 0,
r0, 0, 0,
x0, y0, 0};
band = CreateSheet(pos, 3);
band = SweepAlongZAxis(band);
band = DuplicateAroundAxis(band, kUDPZAxis, n, angle*180/PI);
}
if (diaYoke <= diaGap) return band;
long CBand::CreateTool()
{
UDPPosition p0 = {0, 0, -length/2};
double r0 = 0.55 * diaYoke;
// create region
if (infoCore == 100) {
long region = CreateRegion();
return region==-1 ? 0 : 1;
}
// create tool
if (infoCore == 1) {
long tool = CreateTool();
return tool==-1 ? 0 : 1;
}
// create master
if (infoCore == 2) {
long master = CreateMaster();
return master==-1 ? 0 : 1;
}
// create slave
if (infoCore == 3) {
long slave = CreateMaster(false);
return slave==-1 ? 0 : 1;
}
// create band
long band = CreateBand();
return band==-1 ? 0 : 1;
}
9 - Assigning Materials
You can add, remove, and edit materials in two main ways:
l Using the Tools>Edit Libraries>Materials menu command.
Editing definitions from the project window does not modify the configured libraries for any particular
design. To consider the current design, use the Tools>Edit Libraries option. Doing so ensures that
new libraries are added to the configured list for the current design. If you edit materials from this
command for the current and then export them, they will also be available to assign to objects in other
designs.
To assign a material to an object, follow the general procedure:
1. Select the object to which you want to assign a material.
tab. A drop-down menu shows an Edit... button that opens the Select Definition window.
The menu also lists materials included in the current project. Selecting one of these materials
provides another way to assign materials to an object.
l Right-click Model in the project tree, and then click Assign Material on the shortcut menu.
l Right-click the object in the history tree, and then click Assign Material on the shortcut
menu.
3. Select a material from the list.
Note You can search the listed materials by name or property
value.
The list displays the currently set values for many of a material’s properties such as Relative
Permeability, Bulk Conductivity, and Composition. If the material you want to assign is not
listed, you can add a new material to the global or local material library, and then select it.
4. Click OK.
The material you chose is assigned to the object.
Note In the history tree, by default, Maxwell groups objects by material. To change the default,
select the object icon and right-click to display the Group Objects by Material check box.
Related Topics
Removing Materials
Validating Materials
Sorting Materials
Viewing and Modifying Material Attributes
Copying Materials
Filtering Materials
Exporting Materials to a Library
Calculating Properties for Core Loss (BP Curve)
Defining Variable Material Properties
Defining Material Properties as Expressions
Defining Functional Material Properties
Importing and Converting Materials
Searching for Materials
Permanent Magnets
Nonlinear Materials
Working with Material Libraries
Working with Materials in RMxprt
Setting the Temperature of Objects
Setting the Deformation of Objects
1. From either the Select Definition dialog box or the Edit Libraries dialog box, click Add
Material.
The View/Edit Material dialog box appears.
2. Type a name for the material in the Material Name text box, or accept the default.
3. Select one of the following from the Material Coordinate System Type pull-down list:
l Cartesian (default)
l Cylindrical
l Spherical
l All Properties to display all properties available. This enlarges the table of properties to
show all properties possible for the selected Physics type(s). You can use the scroll bars or
size the dialog to see all properties.
Selecting All Properties also enables the three Physics check boxes: Electromagnetic,
Thermal, and Structural. These check boxes are used to filter the properties displayed in
the table by physics type. Clearing a check box hides properties of that physics type.
5. You can also enable the View/ Edit Modifier check box for Thermal Modifier.
Checking this box causes the Thermal Column to display at the right side of the Properties of
the Material table. Selecting Edit rather than None causes display of the Edit Thermal
Modifier dialog.
6. Type a new name for the material in the Material Name text box or accept the default.
7. Select a material property type – Simple (i.e., linear), Anisotropic, Nonlinear, Vector, or
Custom – for each property from the Type pull-down list; Composition value Solid or
Lamination.
Available selections vary with the property and solution type, and with the View/Edit selection
as described above.
8. For example, for an Eddy Current active design, if the material is Simple (i.e., linear), enter
values for the following material properties in the Value boxes:
l Relative Permeability (See also Relative Permeability in the Technical Notes.)
l Relative Permittivity
l Bulk Conductivity
l Mass Density
If the material is a ferrite, enter a value greater than 0 in the Magnetic SaturationValue box.
You may also choose to enter values in the Lande G Factor and Delta HValue boxes.
Because Delta H values are measured at specific frequencies, you should also enter a -
Measured Frequency value (default 9.4 Ghz).
Note You may enter a variable name or mathematical expression in the Value
box.
9. To modify the units for a material property, click the Units box, and then select a new unit
system.
10. Below the list, in the Calculate Properties for pull-down list, do the following if your project
contains a permanent magnet:
a. Select Permanent Magnet.
The Properties for Permanent Magnet dialog box appears.
b. Select which parameters you want to define (Mu, Hc, Br, Mp).
c. Type values in the text boxes, and select the units.
d. Click OK.
Note An error message displays if your project type does not support permanent
magnets.
11. For transient and 3D eddy current projects, you may also be able to set the core loss from the
Calculate Properties for pull-down list.
12. Click Validate Material.
13. Click OK.
The new material is added to the local material library.
Related Topics
Select a material property type from the Type pull-down list. Of the possibilities, only those
applicable to the named material will be listed. Some material properties only use the Simple type.
Others include several types.
l If the material property is Anisotropic, its characteristics are defined by its anisotropy tensor.
You must define three diagonals for: relative permittivity, dielectric loss tangent, bulk
conductivity, relative permeability, and magnetic loss tangent. Each diagonal represents a
tensor of your model along an axis.
These tensors are relative to the coordinate system specified as the object’s Orientation
property. By specifying different orientations, several objects can share the same anisotropic
material but be oriented differently.
l The Relative Permeability property can also be assigned a Nonlinear property type. Refer to
Relative Permeability for a Maxwell or RMxprt Material for details on using nonlinear relative
permeability.
l Magnetostriction and Inverse magnetostriction are Custom properties. Refer to
Magnetostriction and Inverse Magnetostriction Materials for details on using these properties.
Related Topics
where is the real part of the complex permeability (same as the usual relative permeability),
is the imaginary part of the complex permeability, and j is the imaginary unit.
The relationship above can also be written as the following:
two respective B-H curves should be entered. For the third direction (lamination stacking direction),
one of the specified two B-H curves should also be applicable. The composition field should be set to
lamination, and the stacking factor and stacking direction should be specified (see also lamination
model).
General
If the material property is anisotropic, its characteristics are defined by its anisotropy tensor. You
must define three diagonals for anisotropic permeability. Each diagonal represents a tensor of your
model along an axis.
These tensors are relative to the coordinate system specified as the object’s Orientation property. By
specifying different orientations, several objects can share the same anisotropic material but be
oriented differently.
1. In the Relative Permeability row in the View/Edit Material window, select Anisotropic
from the Type pull-down list.
Three rows named T(1,1), T(2,2) and T(3,3) are added below the Relative Permeability
row.
2. Enter the relative permeability along one axis of the material’s permeability tensor in the Value
box of the T(1,1) row.
3. Enter the relative permeability along the second axis in the Value box of the T(2,2) row.
4. Enter the relative permeability along the third axis in the Value box of the T(3,3) row.
If the relative permeability is the same in all directions, use the same values for each axis.
These values can also be defined as variables.
Related Topics
where is the real part of the complex permittivity (the same as the usual relative dielectric
constant), is the imaginary part of the complex permittivity, and j is the imaginary unit.
The relationship above can also be written as the following:
If the material property is anisotropic, its characteristics are defined by its anisotropy tensor. You
must define three diagonals for anisotropic permittivity. Each diagonal represents a tensor of your
model along an axis.
These tensors are relative to the coordinate system specified as the object’s Orientation property. By
specifying different orientations, several objects can share the same anisotropic material but be
oriented differently.
1. In the Relative Permittivity row in the View/Edit Material window, select Anisotropic from
the Type pull-down list.
Three rows named T(1,1), T(2,2) and T(3,3) are added below the Relative Permittivity row.
2. Enter the material’s relative permittivity along one tensor axis in the Value box of the T(1,1)
row.
3. Enter the relative permittivity along the second axis in the Value box of the T(2,2) row.
4. Enter the relative permittivity along the third axis in the Value box of the T(3,3) row.
If the relative permittivity is the same in all directions, use the same values for each axis.
These values can also be defined as variables.
Related Topics
Electric conductivity can be simple or anisotropic. In either case, the corresponding values are
entered in S/m (Siemens per meter).
If the material property is anisotropic, its characteristics are defined by its anisotropy tensor. You
must define three diagonals for anisotropic conductivity. Each diagonal represents a tensor of your
model along an axis.
These tensors are relative to the coordinate system specified as the object’s Orientation property. By
specifying different orientations, several objects can share the same anisotropic material but be
oriented differently.
1. In the Bulk Conductivity row in the View/Edit Material window, select Anisotropic from
the Type pull-down list.
Three rows named T(1,1), T(2,2) and T(3,3) are added below the Bulk Conductivity row.
2. Enter the conductivity along one axis of the material’s conductivity tensor in the Value box of
the T(1,1) row.
3. Enter the conductivity along the second axis in the Value box of the T(2,2) row.
4. Enter the conductivity along the third axis in the Value box of the T(3,3) row.
The values of the conductivity along the first and second axis apply to all axes that lie in the xy cross-
section being modeled. The values of the conductivity along the third axis applies to the z-
component. These values affect current flowing in dielectrics between the conductors.
These values can also be defined as variables.
Related Topics
To represent a dielectric that dissipates the power of a high-frequency electric field, enter a dielectric
loss tangent, , property value for the material. The smaller the loss tangent, the less lossy the
material.
If the material property is anisotropic, its characteristics are defined by its anisotropy tensor. You
must define three diagonals for electric loss tangent. Each diagonal represents a tensor of your
model along an axis.
These tensors are relative to the coordinate system specified as the object’s Orientation property. By
specifying different orientations, several objects can share the same anisotropic material but be
oriented differently.
If electric loss tangent is anisotropic, do the following:
1. In the Dielectric Loss Tangent row in the View/Edit Material window, select Anisotropic
from the Type pull-down list.
Three rows named T(1,1), T(2,2) and T(3,3) are added below the Dielectric Loss Tangent
row.
2. Enter the ratio of the imaginary relative permittivity to the real relative permittivity in one
direction in the Value box of the T(1,1) row.
3. Enter the ratio of the imaginary relative permittivity to the real relative permittivity in the second
direction in the Value box of the T(2,2) row.
4. Enter the ratio of the imaginary relative permittivity to the real relative permittivity in the third
orthogonal direction in the Value box of the T(3,3) row.
If the electric loss tangent is the same in all directions, use the same values for each direction.
These values can also be defined as variables.
The dielectric loss tangent may vary with frequency. To simulate the variances, define a function for
the dielectric loss tangent.
Related Topics
Imaginary Permeability
Eddy Current
Some materials exhibit a permeability that includes both a real and imaginary component. The
imaginary component is used to model magnetic losses in a time-varying field using the relationship:
where:
is the real component of the relative permeability.
is the imaginary component of the relative permeability.
is the permeability of free space.
As shown below, a complex relative permeability causes the B field to lag behind the H field – similar
to the behavior of a nonlinear, lossy material. The power loss during this cycle (the color shaded
area) is approximately equal to the hysteresis loss (the area within the blue lines). The hysteresis
curve for a material with a constant, real permeability (the straight yellow line) is shown as a
reference.
When the nature of losses is also due to magnetic hysteresis, Maxwell allows you to model such
effects using complex permeability by allowing the specification of the tangent of magnetic loss.
When a linear material exhibits hysteresis effects, it should be characterized using a complex
permeability, as below:
If the material property is anisotropic, its characteristics are defined by its anisotropy tensor. You
must define three diagonals for anisotropic magnetic loss tangent. Each diagonal represents a
tensor of your model along an axis.
These tensors are relative to the coordinate system specified as the object’s Orientation property. By
specifying different orientations, several objects can share the same anisotropic material but be
oriented differently.
1. In the Magnetic Loss Tangent row in the View/Edit Material window, select Anisotropic
from the Type pull-down list.
Three rows named T(1,1), T(2,2) and T(3,3) are added below the Magnetic Loss Tangent
row.
2. Enter the ratio of the imaginary relative permeability to the real relative permeability in one
direction in the Value box of the T(1,1) row.
3. Enter the ratio of the imaginary relative permeability to the real relative permeability in the
second direction in the Value box of the T(2,2) row.
4. Enter the ratio of the imaginary relative permeability to the real relative permeability in the third
direction in the Value box of the T(3,3) row.
If the magnetic loss tangent is the same in all directions, use the same values for each direction.
These values can also be defined as variables.
Related Topics
Related Topics
1. In the View/ Edit materials dialog you must enable the View/ Edit Modifier check box for
Thermal Modifier.
This causes the Properties of the Material table to expand to include a Thermal Modifier
column. By default, the Thermal Modifier property is set to None.
2. Selecting Edit... from the drop down menu, rather than None causes the Edit Thermal
Modifier dialog to appear.
3. Select Expression radio button to display the Parameters Modifier text field or the
Quadratic radio button to display the tabs for Basic Coefficient Set and Advanced
Coefficient Set.
l With Expression selected, you can write an equation for a thermal modifier in the
Related Topics
Adding Datasets
View/ Edit materials dialog
Related Topics
Related Topics
To get the fields for the vector magnetic coercivity vector, a non-zero value must first be specified for
the magnitude of the vector. The magnitude can also be functional. The magnitude of the magnetic
coercivity is expected to be < 0. If you use a positive value, the direction used will be the opposite of
the unit vector specified.
Lamination Modeling
Lamination modeling allows you to specify a stacking factor and stacking direction, which represents
the direction perpendicular to the plane of the lamination. Cartesian, cylindrical, or spherical
coordinate systems can be used to specify the stacking direction.
This lamination model is an alternative way of specifying anisotropic behavior when using
laminations (which is a special case that is frequently done). For the frequently encountered case of
isotropic laminations (where the global model is anisotropic due to the existence of laminations but
the laminations themselves are isotropic), the above picture shows a possible setup. Choose a
nonlinear behavior for the material of the lamination with a user specified B-H curve, while the global
anisotropy is modeled by specifying a stacking factor and the stacking direction, which is
perpendicular to the plane of laminations. In this way, Maxwell can consider a global anisotropy with
two orientations — one in the plane of the lamination, and the other in the corresponding orthogonal
direction.
Note If a stacking factor less than 1 is applied to a magnetic core, the flux density plotted will
represent the AVERAGE flux density in both the air and the steel (and not the flux density
in the steel laminations). The average flux density is reduced as the stacking factor is
reduced.
Note Lamination modeling is supported for magnetostatic and transient solutions only, where
the stacking value is between 0 and 1. Please use appropriate materials with suitable
lamination definitions for the solver. Other solvers will ignore the lamination definition in the
material.
Note When a stacking factor (SF) is used, users need to modify the electrical steel core loss
coefficients based on the stacking factor as shown below. As the stacking factor decreases
< 1, the core loss coefficients increase.
Kh_scaled = Kh / SF
Kc_scaled = Kc / SF
Ke_scaled = Ke / sqrt(SF)
Related Topics
Stacking Direction
Stacking Direction
When defining a lamination model, the stacking direction must be specified. The direction depend
upon the Material Coordinate System Type chosen as follows:
Name Value
None No core loss is to be calculated for this material.
Electrical The following parameters appear:
Steel l Kh
l Kc
l Ke
Selecting Electrical Steel also enables the Calculate Properties for Core Loss
Coefficient pull-down list at the bottom of the dialog box. Selecting Core Loss
Coefficient opens the BP Curve window.
Power The following parameters appear:
Ferrite l Cm
l X
l Y
l Remanence Br
l Kc
Selecting Hysteresis Model also enables the Calculate Properties for Hysteresis
Loop pull-down list item at the bottom of the dialog box. Selecting the Hysteresis
Loop opens the Properties for Hysteresis Loop window.
DC-biased effects
The core loss computation is based on the traditional three core loss coefficients Kh, Kc and Ke,
plus the optional Kdc. In order to properly consider the impact of DC-biased hysteresis loss, a
general rule to automatically compute Kdc is applied to improve the core loss from the classic
Steinmetz equation. If the user leaves the default value of Kdc as zero, this indicates that Kdc will be
determined automatically by the software; otherwise, the software will use the user-input Kdc value
to consider the impact of DC-bias.
Note The use of Kdc when computing DC-biased effects has no effect on the hysteresis model-
based core loss computation approach since in such a case, the hysteresis model has
inherently consider the impact of DC-biased effects on hysteresis loss.
panel together with the input of Kc, which is defined by choosing Electrical Steel as the Core
Loss Model on the Properties of the Material panel. Please note that any values entered
for Kh and Ke will be ignored.
Note This approach requires use of a material that has a vector magnitude direction set to
(0,0,0) to enable the hysteresis loss calculation; and must also have its Core Loss
Setting checked in the Set Core Loss dialog to include the eddy current
component of core loss.
l Define the hysteresis loop by the input of a normal nonlinear BH curve together with the
selection of Hysteresis Model as the Core Loss Model and the input of values for Intrinsic
Coercivity Hci, Remanence Br (optional) and Kc.
Note The second approach is able to more accurately model minor loop loss
behavior.
l The eddy effect must always be turned off for laminated objects.
l Core Loss Setting should be activated on the Set Core Loss panel, General tab under
Excitations.
Related Topics
the dialog box is also enabled. This allows the coefficients Kh, Kc, Ke, and Kdc to be derived
from a manufacturer-provided core loss curve.
Note The Kdc core loss quantity is not used for the Eddy Current solution
type.
4. If you selected Electrical Steel, do the following:
a. Select Core Loss Coefficient from the Calculate Properties for pull-down list at the
bottom of the dialog box.
The BP Curve dialog box appears.
b. Do one of the following to specify a BP curve:
l Import the curve from a saved file.
l Enter the coordinates manually.
Note The accuracy in inputting the data for B-P Curve for the electrical steel material
has significant effect on the correctness of the analyses to the electromagnetic
devices. You should input the data for B-P Curve according to accurate data
provided by material manufacturers. Typically core material suppliers provide
the average loss over a cycle for a peak B, of sinusoidal nature. Therefore for
BP curve input in Maxwell, B(Tesla) should be peak and P should be average.
c. Select the units in which the B-P curve is measured from the Core Loss Unit pull-down
list.
d. Type values and select units for the following:
l Mass Density
l Frequency
l Thickness
l Conductivity
As the input data changes, the following parameters are dynamically updated with both
the specified unit and the standard unit (w/m^3):
l Kh - Hysteresis Coefficient
l Kc - Classical Eddy Coefficient
l Ke - Excess Coefficient
l Kdc - Coefficient Considering DC Bias Effects (not used for Eddy Current solution type)
e. Click OK.
The View / Edit Material dialog box reappears. The property values for Kh, Kc, Ke, and
Kdc are updated as new default values.
5. If you selected Power Ferrite, do the following:
a. Select a type for Cm, X, Y, and Kdc from the Type column.
b. Type vAlues for the coefficients Cm, X, Y, and Kdc in the Value column.
6. Click OK to close the View / Edit Material dialog box.
7. Click OK to close the Edit Libraries dialog box.
Related Topics
When a DC component exists in the flux density, the core loss is modified to the following:
where
l B
m is the amplitude of the AC flux component,
l f is the frequency,
where
l B
dc is the DC flux component, and
l K
dc is the coefficient considering the DC flux bias effects.
Related Topics
where
where Pvi,Bmi – the i-th point of the data on the measured loss characteristics curve.
The other two loss coefficients are obtained as
Related Topics
l Append Rows (In the dialog box that appears, specify the number of rows to append to the
Related Topics
Assigning Materials
l All Properties to display all properties available. This enlarges the table of properties to
show all properties possible. You can use the scroll bars or size the dialog to see all
properties.
4. You can modify the material as follows:
a. Provide a new name for the material in the Material Name text box.
b. Under Type, specify whether a material property is Simple,Anisotropic, Vector and
Vector Mag, or for Relative Permeability, Nonlinear, as required for that property.
For Simple, you provide a value or variable.
For Anisotropic, you provide tensor values.
For Vector, you provide a Vector Mag, or Unit Vector X, Y, and Z Component values.
For Non-Linear, you provide a Data Set.
c. Provide new material property values in the Value boxes.
d. Change the units for a material property.
Note Maxwell's global material library cannot be modified. Materials from the library
can be modified, but not saved back to the system library. They can be saved to
a User Library or Personal Library.
5. Click OK to save the changes and return to the Select Definition or Edit Libraries dialog
box.
Warning If you modify a material that is assigned in the active project after generating a
solution, the solution becomes invalid.
Related Topics
Validating Materials
Defining Variable Material Properties
Copying Materials
Removing Materials
Validating Materials
Maxwell and RMxprt can validate a material's property parameters for an ANSYS Electromagnetics
software product. For example, it checks if the range of values specified for each material property is
reasonable.
If a material's property parameters are invalid, an error message will appear in the lower-right corner
of the View/Edit Material window. If the parameters are valid, a green check mark will appear there.
To validate the material attributes listed in the View/Edit Material window:
l Select a name from the Properties of the Material list, and then click Validate Material.
Copying Materials
1. In the Select Definition dialog box or the Edit Libraries dialog box, select the material you
want to copy.
2. Click Clone Material(s).
The View/Edit Material dialog box appears.
3. To modify the material's attributes, follow the directions for modifying materials.
4. Click OK to save the copy in the active project's material library.
Removing Materials
1. In the Select Definition dialog box or the Edit Libraries dialog box, select a material you
want to remove from the active project's material library.
2. Click Remove Material(s).
A message appears asking if you want to continue.
3. Click Yes.
The material is deleted from the project material library.
Note The following materials cannot be deleted:
l Materials stored in ANSYS Electromagnetics global material
library.
l Materials that have been assigned to objects in the active
project.
In a project library, you may want to use the Project>Remove Unused Definitions
command to remove selected materials definitions that your project does not require.
Sorting Materials
You can change the order of the materials listed in the Select Definition dialog box or the Edit
Libraries dialog box. You can sort the list of materials by name, library location, or material property
value.
To change the order of the listed materials:
l Click the column heading by which you want to order the materials.
If the arrow in the column heading points up, the material data are listed in ascending order (1 to 9, A
to Z) based on the values in the column you chose. If you want the material data to be listed in
descending order (9 to 1, Z to A), click the column heading again. The arrow then points down.
Note By default, not all of the available properties are displayed in the materials table. Only the
properties commonly used by the product are displayed. To view the complete table of
properties, see Filtering Materials.
The Material Filters tab of the Edit Libraries dialog box allows you to specify the default for
whether to filter for This Product or All Products.
Filtering Materials
If you want to remove certain materials or material properties from the list in the Select Definition
window, use the filter options under the Material Filters tab.
You can filter out materials based on the product or library with which they are associated. You can
also filter out material properties and types of material properties. And you can remove the filtering in
order to see all available material properties.
To filter materials or material properties listed in the Select Definition window, using the choices in
the Materials tab:
1. The field under Libraries lists the libraries for the project. Selecting the listed library highlights
it and cause the table to display the materials in that library.
2. Above the Libraries area, you can check or uncheck boxes to show or hide Project definitions
and all libraries.
l With both unchecked, nothing appears in the materials table. With both checked, the table
the project.
l With All Libraries checked, the table displays all materials, but may not show all available
properties.
To filter out or show additional material properties in the Materials tab:
1. Click the Material Filters tab.
2. Under Show Materials and Properties for, select one of the radio buttons:
l Active Design to display properties used in the active design.
l All Materials and Properties to display all available materials and properties. Selecting
this enlarges the table of properties shown under the Materials tab to show all properties
possible. You can use the scroll bars or size the dialog to see all properties.
3. Under Show Material Types, click Select All to select all of the products listed. Click Clear
to clear all product selections.
4. Click the Materials tab to save your selections.
Click Cancel to revert back to the last saved selections.
Related Topics
Validating Materials
Copying Materials
Removing Materials
Related Topics
Editing Libraries
Editing Libraries
There are two different methods of editing libraries.
l Using right-click on Materials in the project window and selecting the Edit Library shortcut to
Related Topics
Related Topics
Adding Datasets
View/ Edit materials dialog
Set Ambient Temperature
2. Maxwell allows you to enable/disable temperature dependency independently for each design
in the same project. To include temperature dependency and enable the editing features,
check Include Temperature Dependence.
This makes the table objects selectable. The headers for the Object Name column and the
Material column include sort direction arrows. You can invert the sort direction in each column
by clicking the header. If the list is longer than the display, you can use a scroll bar on the right
of the table.
With the dialog enabled, you can use the Select by name field. Enter the name of the object
you want and click Select.
Selected objects are highlighted. You can make multiple selections.
3. To set the initial Temperature for a selected Temperature Dependent object or objects,
type the value or an existing variable name in the text field; then select the unit of measure
Related Topics
Related Topics
Permanent Magnets
A permanent magnet is defined as a material that generates a magnetic flux due to permanent
magnetic dipoles in that material.
Related Topics
In many applications, however, the permanent magnet's behavior can be approximated using a
linear relationship between B and H. In these cases, there is no need to create a nonlinear material.
Simply enter the appropriate values of Br or Hc for the material when defining its properties.
The value of the remanent Br of the individual element after the magnetization field is computed is
determined in such a way: after having located the operating point on the original non-remanent B-H
curve, draw a line which is parallel to the original recoil curve with the slope of and passes the
operating point, the intersection of this line with B-axis is the remanent Br as the result of the applied
magnetization field.
(1)
(1)
and
(1)
where T0 is the reference temperature, and α1, α2, β1, and β2 are coefficients which can be
identified from supplier datasheets. In general, the thermal modifiers P(T) and Q(T) also can be
described by any user-defined function of temperature T, in addition to the above second order
polynomials.
Consequently, once a Bi-H curve is constructed by a function using certain techniques, such as
curve fitting at the reference temperature T0, any Bi-H curves at other temperatures can be
dynamically reconstructed in terms of the temperature dependence of Br(T) and Hci(T). Finally, the
B-H curve in the second and the third quadrants can be further derived through the conversion using
equation (1).
Since the model specifies two temperature dependent parameters: remanent flux density Br (α) and
intrinsic coercivity Hci(β), the thermal modifier P(T) is specified in the field associated with the input of
relative permeability (or Bi-H curve), and the thermal modifier Q(T) is specified in the field associated
with the magnitude of coercivity for Hci.
Related Topics
Demagnetization Curve
Calculating the Properties for a Permanent Magnet
Calculating the Properties for a Non-Linear Permanent Magnet
Calculating Properties Using a Hysteresis Loop in Maxwell
Temperature Dependent Nonlinear Permanent Magnets
Demagnetization Curve
The part of the maximum hysteresis loop of the permanent-magnetic material in the second
quadrant is called the demagnetization curve as shown in the next figure. It is the basic
characteristics curve of the permanent-magnetic material. On the demagnetization curve, the
magnetic flux density has positive values, but the magnetic field intensity has negative values. It
means that the permanent-magnetic material is applied with demagnetization magnetic field
intensity. Since Hm and Bm are in opposite directions, when the magnetic flux goes through the
permanent-magnetic material, the magnetic potential difference along the direction of the magnetic
flux does not drop, but rises. Therefore, the permanent-magnetic material is a magnetic source,
similar to the electric source in the electric circuit.
The two extreme positions on the demagnetization curve are the two significant parameters to
represent the magnetic characteristics of the permanent-magnetic material. On the demagnetization
curve, the value of the magnetic flux density corresponding to zero magnetic field intensity H is
termed residual flux density Br, on the other hand, the value of the magnetic field intensity
corresponding to zero magnetic flux density B is termed coercive field force Hc. The produce of the
magnetic flux density and the magnetic field intensity at any point on the demagnetization curve is
termed magnetic energy product (BH), which is proportional to the magnetic energy density
possessed by the permanent magnet at the given operating situation. At the two extreme positions
(B = Br, H = 0) and (B = 0, H = Hc), the magnetic energy product is equal to zero. Somewhere at an
intermediate position, the magnetic energy reaches its maximum value and is termed maximum
magnetic energy product (BH)max, which is another significant parameter to represent the magnetic
characteristics of the permanent-magnetic material. To some permanent-magnetic materials with
linear demagnetization curve, it is obvious that at (B = Br / 2, H = Hc / 2), the magnetic energy
product reaches its maximum value, i.e. (BH)max = Br Hc / 4.
Recoil Lines
The relationship between the magnetic flux density and the magnetic field intensity represented by
the demagnetization curve only exists when the magnetic field intensity varies in the same direction.
In fact, when the permanent magnet electric machine is working, the demagnetization field intensity
varies repeatedly in both directions. When demagnetization field is applied to the magnetized
permanent magnet, the magnetic flux density decreases along the curly segment BrP on the
demagnetization curve as shown in the figure
If the external demagnetization field intensity Hp is removed when the magnetic flux density reaches
the point P, the magnetic flux density will increase not along the original demagnetization curve, but
along another curve PVR. If the external demagnetization field intensity is reapplied, the magnetic
flux density will decrease along the new curve RUP. By repeatedly applying the demagnetization
field intensity, a localized loop is formed and is termed local hysteresis loop. On the local hysteresis
loop, the rising segment and the dropping segment are quite close to each other, therefore can be
approximated by the straight line PR, which is termed recoil line with P as the starting point. If
demagnetization field with intensity Hq not exceeding the original value Hp is applied thereafter, the
magnetic flux density will vary reversibly along the recoil line PR. If Hq > Hp, the magnetic flux density
drops to a new starting point Q. It will vary along the new recoil line QS, but not the previous one PR.
This sort of irreversible variation in magnetic flux density causes instability in the characteristics of
electric machines and complicates the design computation of permanent magnet electric machines,
therefore should be avoided as possible.
default)
Hc (enabled by Coercive field force Hc in the units specified. Provide a value and select units
default) from the drop-down menu.
Br/Mp (disabled by Checking this enables the radio buttons that let you specify either Br or Mp.
default)
Br Residual flux density Br, in Tesla.
If enabled, provide a value and select units from the drop-down menu.
Mp Permanent Magnetization Mp, in A/m.
If enabled, provide a value and select units from the drop-down menu.
3. Click OK to close the dialog and return to the View/Edit Materials window.
The values for Relative Permeability and Magnitude under Magnetic Coercivity are
updated as new default values.
Related Topics
If you select Anisotropic, each of its components can be selected Nonlinear and can be
specified by a BH Curve.
l For a Normal BH curve, the slope of the curve can not be less than that of free space
anywhere along the curve.
l For an Intrinsic BH curve, the slope of the curve can not be less than 0.
Note l The Intrinsic BH curve is supported only in Maxwell 2D/3D magnetostatic
button label changes to Bi-H Curve as visual indication of the type of curve
currently defined for the material.
When you OK the dialog, an error message displays if a slope is out of tolerance, identifying
the data points between which the slope is less than that of free space.
The operations to input a nonlinear demagnetization curve are the same as entering a BH
curve for Steel material. When a BH curve goes through the second quadrant or third
quadrant, the curve is treated as a demagnetization curve.
4. To model temperature dependency for a nonlinear permanent magnet you must:
l Use an Intrinsic BH curve to model the Relative Permeability
l Specify a Thermal Modifier for both Relative Permeability and the Magnitude of
Magnetic Coercivity. Apply a thermal Modifier by selecting the Thermal Modifier check
box. Checking this box causes the Thermal Modifier column to display at the right side of
the Properties of the Material table. Selecting Edit rather than None causes display of
the Edit Thermal Modifier dialog.
3. Click OK to close the dialogue and return to the View/Edit Materials window.
The values for Relative Permeability and Magnitude under Magnetic Coercivity are
updated as new default values.
Related Topics
updates as you enter values. Buttons allow you Add, Append, and Delete table rows as
needed.
Note l The value of B must increase along the curve.
l The accuracy of input data for the curve has significant effect on the
8. Optionally, you can export data for the descending and ascending curve of the hysteresis loop.
You can also export the BH curve as well as the smoothed BH curve.
9. Click OK to close the Properties for Hysteresis Loop dialog.
The values of Magnetic Coercivity Magnitude, Hci, and Br are updated in the View/Edit
Material dialog.
Note In the View/Edit Material dialog, if the Magnetic Coercivity Magnitude is changed to a
non-zero value by modifying the Relative Permeability B-H Curve property, the Core
Loss Model property is reset from Hysteresis Model to None.
10. Click OK to close the View / Edit Material dialog box.
11. Click OK to close the Edit Libraries dialog box.
Related Topics
2. Choose a Property type from the drop-down menu: Linear, Nonlinear, or Anisotropic and
do one of the following:
a. For Linear, enter values for Magnetostrictive Coefficient, H max, and H min.
Enter a stress value in the Edit text box and click Add, then click Edit Dataset to open
the Edit Dataset dialog, in which you enter coordinate values for the Magnetic Field
(H) and strain (Lambda).
When finished, click OK to close the dialogs and return to the Magnetostriction dialog.
c. For Anisotropic, select either Linear or Nonlinear from the Rolling Direction and
Transverse Direction drop-down menus. Rolling Direction refers to the alignment of
the crystalline structure (and associated magnetic domains) in the direction along which
the material (such as the steel laminations used in transformers) passed through the
rollers during manufacture. Transverse Direction is at right angle to the Rolling
Direction. Magnetostriction property values typically differ in each direction.
Note The type you select for each of the directions need not be the same. For
example, you could select Linear for Rolling Direction and Nonlinear for the
Transverse Direction, and vice versa.
l For Linear, enter values for Magnetostrictive Coefficient, H max, and H min;
and for Rolling Direction only, enter the X, Y, and Z coordinate values.
Note The X, Y, and Z components of the Rolling Direction correspond to
the Material Coordinate System Type set in the View/Edit
Material dialog.
l For Cartesian: X=X, Y=Y, Z=Z
l For Cylindrical: X=R, Y=Phi, Z=Z
l For Spherical: X=Rho, Y=Theta, Z=Phi
l For Nonlinear, click the Multi-curves button to add one or more Stress
dependent Lambda-H Curves.
Enter a stress value in the Edit text box and click Add, then click Edit Dataset to
open the Edit Dataset dialog, in which you enter coordinate values for the
Magnetic Field (H) and strain (Lambda).
When finished, click OK to close the dialogs and return to the Magnetostriction dialog.
3. Click OK to close the Magnetostriction dialog and return to the View/Edit Materialsdialog.
Related Topics
2. Choose a Property type from the drop-down menu: Linear, or Nonlinear, and do one of the
following:
a. For Linear, enter values for Inverse Coefficient, Sigma max, and Sigma min,
where sigma represents mechanical stress.
to add one or more Stress dependent B-H curves, or H dependent B-Sigma curves.
l For B-H curves versus Stress (as shown above) – Enter a stress value in the
Edit text box and click Add; then click Edit Dataset to open the Edit Dataset
dialog, in which you enter coordinate values for the Magnetic Field (H) and
Magnetic Induction(B).
l For B-Sigma curves versus H (as shown below) – Enter a magnetic field
strength value in the Edit text box and click Add;
then click Edit Dataset to open the Edit Dataset dialog, in which you enter
coordinate values for the Stress (Sigma) and Magnetic Induction(B).
When finished, click OK to close the dialogs and return to the Inverse
Magnetostriction dialog.
3. Click OK to close the dialog and return to the View/Edit Materials window.
Related Topics
Nonlinear Materials
Magnetostatic
If a material has a permeability that varies with the flux density, a B vs. H curve (B-H curve) such as
the one below is needed to describe the material's nonlinear behavior.
where µr(B), the relative permeability, depends on the magnitude of the B-field at each point in the
material. Therefore, to model the magnetic behavior of the material, a curve relating the B-field
directly to the H-field is used to describe the nonlinear relationship.
See also Advanced Nonlinear Options for Magnetostatic Solutions or Magnetization for Transient
Solutions for more information about permeability and magnetization settings.
Perfect Conductors
Perfect conductors are used in Maxwell to approximate the following:
l Magnetic field effects at a conductor surface when current flow is restricted to the conductor
surface. This condition can exist in conductors with very high conductivity.
l The magnetic field at the surface of a conductor carrying high frequency current, modeled in
the eddy current solver when the frequency is very high. Perfect conductors are used in
conjunction with Impedance Boundaries in the Eddy Current solvers to handle the following
conditions:
a. The skin depth in the conductor is less than two orders of magnitude smaller than the
dimensions of the structure. In models like this, the meshmaker may not be able to create
a fine enough mesh in the conductor to compute eddy currents.
b. The magnetic field decays much more rapidly inside the conductor in the direction that’s
normal to the surface than it does in directions that are tangential to the surface.
c. The AC current source is relatively far away from the surface where eddy currents occur,
compared to the size of the skin depth.
l Conductors in the Electrostatic solver where the voltage is constant in the conductor and there
l In conjunction with boundaries requiring the material on one side of the boundary to be the
Because of the special treatment of perfect conductors, no field solution is performed in these
objects, saving time and computer resources when the approximation does not significantly change
the field solution outside the conductor.
In order to define an object as a perfect conductor, do one of the following:
l Assign the Perfect Conductor material to the object in the Material Manager.
l Set the object to have a material with a conductivity greater than the conductivity defined in the
faces, planes of symmetry and periodicity, and edges of the problem region.
l Define excitations of voltage, charge, coil, and current.
l For magnetic transient projects, set up a winding and an external circuit connection.
Each field solver requires you to specify excitations of electric or magnetic fields and references for
computing these fields.
l Magnetostatic Boundaries and Excitations
You must specify at least one of the boundary conditions or excitations listed in these sections, so
that the simulator can compute accurate values for fields and parameters.
Related Topics
Related Topics
Defining Excitations
The specific excitations you can define depend on the solver you have chosen for your project.
l Magnetostatic Excitations
l 3D Transient Excitations
To assign an excitation:
1. Select the section of the geometry on which you want to apply the excitation.
2. Click Maxwell>Excitations>Assign, or right-click Excitations in the project tree and click
Assign.
A submenu appears.
3. Select an excitation type from the submenu. The choices vary depending on the solver type
you have chosen. Choices include:
l Voltage
l Voltage Drop
l Charge
l Current Density
l Current
4. Enter the name for the excitation type or accept the default.
5. Enter the desired parameter values, units, and other settings for the excitation in the dialog.
You can also enter a mathematical function to determine values for voltage, current density,
charge density, and other parameters. The Permanent Magnet Field excitation also requires
l Define the value of a boundary or excitation quantity (such as the voltage, magnetic field, or
current density) using a mathematical relationship — such as one relating its value to that of
another quantity.
l Define the value of a boundary or excitation as a function of position.
l Current Density Excitation (Magnetostatic or Eddy Current solver type)
l If the parametric analysis capability was purchased, identify which boundary or excitation
quantities are to be varied during a parametric sweep. These variables are always set to
constant values in the parametric analysis.
Eddy Effect setting, the solver computes the induced eddy currents.
For eddy current solvers only, you may need to specify the following additional setting:
l The Displacement Current on the objects in the model.
Typically, background objects are excluded from eddy and displacement current settings.
To set eddy effects:
1. Select the elements of the geometry on which you want to apply the excitation.
2. Click Maxwell3D>Excitations>Set Eddy Effects.
The Set Eddy Effect dialog box appears.
3. For each object in the list, select or clear the check boxes for Eddy Effect and Displacement
Current. When selecting multiple entries, the changes are synchronized for all selected rows.
Note Multi-select is supported by holding the CTRL or Shift key while
clicking.
4. Click the Select Object By Name button to enter the name of a specific object for selection.
5. Optionally, click the Use suggested values button to set the Eddy Effects for all elements
recommended by Maxwell3D.
6. Click OK.
The Deselect All button will deselect all selected objects in the list.
Related Topics
Related Topics
Note The following procedure assumes that a source design, in which the
demagnetization or magnetization computations of the magnet has been
modeled, is available for linking.
1. Do one of the following:
l If you are adding a new design-based permanent magnet field excitation, select
Maxwell 2D or 3D>Excitations>Assign> Permanent Magnet Field. Alternatively,
in the Project Manager you can right-click Excitations to open its context menu, then
select Assign>Permanent Magnet Field.
l If you are adding a new object-based permanent magnet field excitation, select one or
more objects (magnets) that you wish to include in the permanent magnet field
excitation, then either select Maxwell 2D or 3D>Excitations>Assign> Permanent
Magnet Field, right-click Excitations in the Project tree to open its context menu and
select Assign>Permanent Magnet Field.
l If you are editing an existing permanent magnet field excitation, right-click on the
excitation in the project tree and select Properties from the context menu.
2. In the Permanent Magnet Field dialog, enter (or edit) the Name for the excitation - or accept
the default.
3. Choose either Demagnetization or Magnetization for the excitation type, then click Setup
Link.
4. By default, the Setup Link dialog opens on the General tab with only the This project radio
button selected.
Note If a link had previously been set up, the Setup Link dialog opens in View Only
mode with all settings disabled.
are filled in with default values, and their drop down menus contain any available designs and
solutions. You can use the drop down menus to choose from the available designs and
solutions.
The “Default” solution is the product-dependent solution of the first Setup. That is the setup
listed first in the source design's project tree (alphanumerical order). A product-specific
solution of this setup becomes the default solution. In most products, it is “LastAdaptive.”
7. Use the check box to specify whether to Simulate source design as needed.
8. Use the check box to specify whether to Preserve source design solution. Note that in the
extractor mode, the source project will be saved upon exit. Extractor mode means that the
software is opened during the link solely for the purpose of solving.
9. The Variable Mapping tab lets you view any variables contained in the selected Project.
When there are variables in the source design, you can choose to “map” these variables to
constant values, expressions or variables in the target designs. Variable mapping becomes
more important when the datalink type requires source and target design to be geometrically
identical and source design is geometrically parameterized.
For linked designs with variables of the same name, you can click Map Variable by Name to
automatically map same named variables.
10. For object-based permanent magnet field excitations only, the Object Mapping tab lets you
map objects in the target design to objects in the source design.
11. Click OK to close the Setup Link dialog box and return to the Permanent Magnet Field
dialog.
12. Optionally, the Defaults tab allows you either to save the user-defined data for the excitation
as the default for initializing new excitations of this type, or to clear any existing user-defined
defaults and revert to standard defaults.
13. When finished, click OK to accept the settings and close the dialog.
Related Topics
Limitations
l A design can only be the target for either magnetization or demagnetization, but not
both.
l A design can compute either magnetized or demagnetized operating points, but not
both.
l Object-based and design-based links cannot coexist.
l Object-based links are not supported when there is any object assigned with a
hysteresis-based material model.
View/Edit Material during material setup so that Maxwell knows the direction is computed,
rather than specified by user.
Note An object coordinate system (CS) must be created and assigned to each
magnet object in the history tree.
Related Topics
only a normal nonlinear BH curve in the 1st quadrant without defining the Hysteresis model,
the transient solver will use the “classic” approach to simulate magnetization process.
Using the classic magnetization approach, if the geometry in the source and target designs is the
same, Maxwell maps the computed magnetization data element–by–element. However, the
geometry in the source and target designs need not be identical, in which case the geometries in the
two designs will be mapped by the solver using the object name. For example, magnetization data
on “Box1” in the source design will be applied to the object called “Box1” in the target design. The
user must ensure that the source and target object names are identical. The source design will
compute magnetization data on the selected objects, while the target design will use the dynamic
data in its simulation.
Using the hysteresis model-based magnetization approach, after the completion of the last time step
before stop, the hysteresis model for each element will generate the element-based
demagnetization curve originated at the last operating point. As a result, the output from the
magnetization modeling process is an element-based demagnetization curve, rather than a
constant. Consequently an additional demagnetization process is required based on the element-
based demagnetization curve. In this approach, use of the same mesh between the source and the
two target designs is required due to the use of the element-based demagnetization curve as the
output of magnetization simulation.
Note l If an object is defined as hysteresis model, but not selected for magnetization, the
object is no longer considered as a hysteresis material because magnetization and
hysteresis modeling cannot be conducted in the same design.
l Hysteresis based magnetization is always considered as isotropic magnetization,
that is, its direction is determined by the orientation of the computed field.
l For objects that have been selected for magnetization, but not defined as hysteresis
models, the existing classic approach (simple data in the diagram above) will be
used. Mixing hysteresis model-based magnetization method with the classic
magnetization method is supported.
l For the classic approach, no demagnetization step is required; while for the
hysteresis model-based magnetization approach, a demagnetization step is normally
required. For the demagnetization step, the input is the element-based
demagnetization curve derived from the magnetization run.
l When Clean Stop is invoked for projects in which a TDM transient source design is
linked to a transient target design, after completion of the source design the solution
process can continue from the target design. In such a case, the target design must
be non-TDM.
Design Criteria
l The source design must have objects assigned with non-linear, non-permanent-magnet
material properties.
l The same design cannot be the source for both magnetization and demagnetization links.
4. Solve the design and the solution will include the element-based magnetization data, and/or
Hysteresis-based demagnetization curve if the design uses nonlinear materials with non-zero
Hc defined.
Second Design: Set up a Demagnetization design using the output of the Hysteresis-
based magnetization computation
4. Set up a link to the Hysteresis-based magnetization computation source design (the first
design you set up), which provides the hysteresis-based magnetization solution data. Check
Simulate source design as needed and Preserve source design solution. If the source
design is not set up to Compute magnetized operating points, an error message will be
issued.
5. Right-click Excitations in the Project tree and select Set Magnetization Computation on
the context menu to open the Set Demagnetization/Magnetization Computations dialog,
6. Open the Solve Setup dialog and select Import mesh on the Advanced tab to open the
Setup Link dialog.
7. In the Setup Link dialog, for the Source Design, choose the Hysteresis-based
magnetization computation (the first design you set up).
8. Solve the design and the solution will include the element-based demagnetization distribution
curve (which is based on the Hysteresis-based magnetization data). If the source design has
not been solved, solving the current (demagnetization) design causes the source design to be
solved first.
Note To ensure that new data from the source design is used if the source design has
been modified, right-click the Analysis icon of the source design in the project tree,
and click Clear Linked Data. This flushes existing linked data so that solving the
current design will force the source design to be solved first.
1. Create a third Maxwell 2D or 3D magnetic transient design to be used at the Target design
(highlighted above).
2. In the Project tree, right-click Excitations and select Assign> Permanent Magnet Field.
3. In the Permanent Magnet Field dialog, select Demagnetization, then click Setup Link.
4. Set up a link to the Demagnetization design (the second design created above), which
provides the dynamic demagnetization distribution solution data (based on the Hysteresis-
based magnetization solution data from the first design). Be sure to check Simulate source
design as needed and Preserve source design solution.
5. Open the Solve Setup dialog and select Import mesh on the Advanced tab to open the
Setup Link dialog.
6. In the Setup Link dialog, for the Source Design, choose the Demagnetization design (the
second design created above).
7. Solve the Target design. If the source designs for Hysteresis-based magnetization
computation and Demagnetization are not yet solved, solving the current (target) design
causes the two source designs to be solved in sequence first.
Note To ensure that new data from the source designs is used if the source designs have
been modified, right-click the Analysis icon of each source design in the project tree,
and click Clear Linked Data. This flushes existing linked data so that solving the
current design will force the source designs to be solved first.
Related Topics
Related Topics
Related Topics
All boundaries and excitations are duplicated with their associated geometries until you clear
this option.
Hint Use this option to copy and paste boundaries.
For example, do the following to use the same boundary on multiple objects:
1. Select the face to which you want to assign the boundary.
2. Click Modeler>Surface>Create Object From Face to create a new object from the
existing face.
3. Assign the boundary to the new face object.
4. Copy and paste the new face object to copy and paste the boundary.
Related Topics
l All Boundaries
l All Excitations
l All Ports
l By Name
3. If you select By Name, enter a name in the Select By Name window, and click OK.
4. To clear the selection of all boundaries and excitations, click Deselect All.
5. Click Close to close the Visualization Options window.
Reassigning Boundaries
You can reassign a boundary to another surface. This is useful when you modify objects with
assigned boundaries, invalidating the boundaries. For example, if you unite two objects with
assigned boundaries, the second object's boundary becomes invalid because united objects
maintain the characteristics of the first object selected. In this case, you would need to reassign the
boundary or delete it.
To reassign a boundary:
1. Select the object or object face to which you want to assign an existing boundary.
2. Click Maxwell>Boundaries>Reassign.
The Reassign Boundary window appears.
Hint Alternatively, select the object or object face to which you want to assign an existing
boundary. Right-click the existing boundary in the project tree, and then click
Reassign on the shortcut menu.
3. Select the boundary you want to reassign, and click OK.
Note When reassigning a boundary that includes vectors in its definition, Maxwell
attempts to preserve the vectors with the new assignment, but this is not always
possible.
Reassigning Excitations
To reassign an excitation:
1. Select the object or object face to which you want to assign an existing excitation.
2. Click Maxwell>Excitations>Reassign.
The Reassign Excitation window appears.
Hint Alternatively, select the object or object face to which you want to assign an existing
excitation. Right-click the existing excitation in the project tree, and then click
Reprioritizing Boundaries
Each boundary you assign overwrites any existing boundary with which it overlaps. You can change
the priority of a previously assigned boundary to be greater than a more recently assigned boundary.
The order of boundaries and excitations is important because, for any given triangle of the mesh,
only one boundary or excitation can be visible to the solvers. The highest priority boundary condition
applied on a certain surface overwrites the lower priority one(s) applied on the same surface. If any
surfaces with boundary conditions have a partial overlap, then in the overlap region, the precedence
rule applies. The highest priority boundary condition takes precedence over the lower one(s) such
that for all mesh nodes on any surface carrying a boundary condition, only one boundary condition is
actually enforced and visible to the solver.
Excitations cannot be reprioritized. Only boundaries can be reprioritized.
To reprioritize boundaries:
1. Click Maxwell>Boundaries>Reprioritize.
The Reprioritize Boundaries window appears.
Note The order the boundaries initially appear in the Reprioritize dialog box list indicates
the order in which they were defined. The lowest priority assignment always
appears at the top of the list.
2. Drag the boundary you want to change to the desired order of priority (to select the entity, click
in the left-most column).
Note The order of boundaries and excitations in the project tree is alphabetical. The order
does not correspond to the order in which boundaries and excitations are visible to
the solvers.
3. Click OK.
1. In the project tree, under either Boundaries or Excitations, right-click a specific boundary or
excitation, and select Properties.
The Properties window for that boundary/excitation appears.
2. Make the desired changes, and click OK.
Note For stranded conductors, it is assumed that the current density is uniform on the
cross-section of the respective conductors. Thus, the stranded option for current
excitations should mostly be used only in cases where the cross-section of
conductors is constant, consistently with the assumption that the respective object
is a coil built with strands of wire. For this reason, conductors (coils) could be
created by either sweeping around an axis using zero segments or sweeping
along a path having only true surface segments in order to create a smooth
surface coil having a completely uniform cross-sectional area over its entire
length.
l The current density in a conductor.
l The voltage differential across a conduction path.
l The magnetic field on an outside surface.
l A permanent magnet.
If currents or current densities are the only sources of static magnetic fields in your model, set at least
one of the following as the outer boundary:
Related Topics
Magnetostatic Boundaries
The magnetostatic field solver allows you to define the following types of boundaries:
Used to
Boundary Type H-Field Behavior
model...
Default Boundary Field behaves as follows: Ordinary field
Conditions l Natural boundaries — H behavior.
(Natural and is continuous across the Initially, object
Neumann) boundary. interfaces are
l Neumann boundaries — natural
H is tangential to the boundaries;
boundary and flux cannot outer
cross it. boundaries, and
excluded objects
are Neumann
boundaries.
Zero Tangential H Flux is perpendicular if tangent External
Field components are zero or if a magnetic fields.
zero tangential H-field
boundary was applied.
Tangential H Field The tangential components of External
H are set to pre-defined values. magnetic fields.
Integrated Zero For applications such as a Cases such as
Tangential H Field motor with the shaft excluded, the boundary
there remains a hole in the around the hole
middle. In such cases, on the that remains
hole's boundary, neither the when a motor's
Tangential H Field boundary shaft is
(where integration of the excluded.
tangential H field is non-zero),
nor the Zero Tangential H Field
boundary (where the tangential
H field is zero everywhere) can
Normal) — H is normal to
the boundary; its
tangential components
are zero.
Matching The H-field on the slave Planes of
(Master and boundary is forced to match the symmetry in
Slave) magnitude and direction (or the periodic
negative of the direction) of the structures where
H-field on the master boundary. H is oblique to
the boundary.
l Neumann boundaries are assigned to the outside edges of the problem region.
To leave a surface set to its default boundary condition, do nothing. Deleted boundary conditions and
excitations automatically reset to the default boundary conditions.
This type of boundary defines external magnetic fields in a model. Assign it only to the outer surfaces
of the problem region.
Warning When using tangential magnetic field boundary conditions, always double-check that
Ampere's law is not violated.
Note The specific boundary types you can define depend on the solver you have chosen for your
project.
l Electrostatic Boundary Conditions
This type of boundary is applied when the integral of the tangential H field is zero.
Warning When using integrated zero tangential magnetic field boundary conditions, always
double-check that Ampere's law is not violated.
To define an integrated zero tangential H field boundary:
1. Select the section of the geometry on which you want to apply the boundary condition
(typically a face).
2. Click Maxwell 3D>Boundaries>Assign>Integrated Zero Tangential H Field.
The Integrated Zero Tangential H Field window appears.
3. Enter a name for the boundary in the Name box, or accept the default.
4. Click OK to assign the boundary to the selected object.
The new boundary is added to the boundary list in the project tree.
This boundary condition is used to model very thin sheets of perfectly Insulating material between
touching conductors. Current cannot cross an insulating boundary.
To set an insulating boundary:
1. Select the section of the geometry on which you want to apply the boundary condition
(typically a face).
2. Click Maxwell>Boundaries>Assign>Insulating.
The Insulating Boundary window appears.
3. Enter a name for the boundary in the Name box, or accept the default.
4. Click OK to assign the boundary to the selected object.
This boundary condition defines a plane of geometric or magnetic symmetry in a structure. Assign it
only to the outer surfaces of the problem region.
To set a symmetry boundary:
1. Select the section of the geometry on which you want to apply the boundary condition
(typically a face).
2. Click Maxwell>Boundaries>Assign>Symmetry.
The Symmetry Boundary window appears.
3. Enter a name for the boundary in the Name box, or accept the default.
4. Select one of the following as the type of symmetry:
Odd H is tangential to the boundary; its normal components are
zero.
(Flux
Tangential)
Even H is normal to the boundary; its tangential components are
(Flux Normal) zero.
5. Optionally, click Use Defaults to revert to the default values in the window.
6. Click OK to assign the boundary to the selected object.
Warning When using even symmetry boundaries, double-check that Ampere's law is not
violated.
Master and slave boundaries enable you to model planes of periodicity where the H-field at every
point on the slave boundary surface is forced to match the H-field of every corresponding point on
the master boundary surface. The transformation used to map the H-field from the master to the
slave is determined by specifying a coordinate system on both the master and slave boundaries.
To set a master boundary:
1. Select the face to which you want to assign the master boundary.
2. Click Maxwell>Boundaries>Assign>Master.
The Master Boundary window appears.
3. Enter a name for the boundary in the Name box, or accept the default.
4. In the Coordinate System section, do the following to define the coordinate system:
Note You must specify the coordinate system in the plane on which the boundary exists.
First draw the U vector of the coordinate system. Maxwell uses the U vector you
draw and the normal vector of the boundary face to calculate the v-axis. Then
specify the direction of the V vector.
a. Select New Vector from the U Vector pull-down list.
The Create Line message appears, asking you to draw the U vector of the coordinate
system in the plane of the selected face, and the Master Boundary dialog box disappears
while you draw the U vector.
b. Select the U vector's origin, which must be on the boundary's surface, in one of the
following ways:
l Click the point.
Maxwell computes the H-field on this boundary and maps it to the slave boundary using the
transformation defined by the master and slave coordinate systems.
Assigning a slave boundary is the second step in creating matching boundaries. The field on the
master boundary is mapped to the slave boundary.
Note You must define a master boundary before creating the slave boundaries that are
associated with it. Assign slave boundaries only to the outer surfaces of the problem
region.
To set a slave boundary:
1. Select the section of the geometry on which you want to apply the boundary condition
(typically a face).
2. Click Maxwell>Boundaries>Assign>Slave.
The Slave Boundary window appears.
3. Enter a name for the boundary in the Name box, or accept the default.
4. Select the master boundary to which the slave is to be assigned from the Master Boundary
pull-down list.
5. To specify the coordinate system, do the following in the Coordinate System section:
Note You must specify the coordinate system in the plane on which the boundary exists.
First draw the U vector of the coordinate system. Maxwell uses the U vector you
draw and the normal vector of the boundary face to calculate the v-axis. Then
specify the direction of the V vector.
a. Select New Vector from the U Vector pull-down list.
The Create Line message appears asking you to draw the U vector of the coordinate
system in the plane of the selected face, and the Slave Boundary dialog box disappears
while you draw the U vector.
b. Select the U vector's origin in one of the following ways:
l Click the point.
Hs = Click this radio button if the slave boundary field has the same magnitude as but the
-Hm opposite direction from the master boundary field.
7. Optionally, click Use Defaults to revert to the default values in the window.
8. Click OK to assign the boundary to the selected object.
Note The origin must be a vertex point of one of the
objects.
Magnetostatic Excitations
The following excitations of magnetic fields are available for magnetostatic problems:
This type of excitation sets the voltage on a surface to a specific value. Use it to set up a voltage drop
across a conduction path to cause current to flow.
To set a voltage excitation:
1. Select the section of the geometry on which you want to apply the excitation (typically a 2D
object).
2. Click Maxwell>Excitations>Assign>Voltage.
The Voltage Excitation window appears.
3. Enter a name for the excitation in the Name box, or accept the default.
4. In the Parameters section, enter a value for the voltage in the Value box, and select the units
from the pull-down list.
5. Optionally, click Use Defaults to revert to the default values in the window.
6. Click OK to assign the excitation to the selected object.
Warning For current to flow, you must define a minimum of two voltage excitations or a
voltage drop. Each excitation must be set to a different voltage. Current flows from
surfaces at higher voltages to surfaces at lower voltages.
This type of excitation sets the voltage drop across a sheet object to a specific value. The voltage
drop applies only to sheet objects:
To set a voltage drop:
1. Select the section of the geometry on which you want to apply the excitation (typically a 2D
object).
2. Click Maxwell>Excitations>Assign>Voltage Drop.
The Voltage Drop Excitation window appears.
3. Enter a name for the excitation in the Name box, or accept the default.
4. In the Parameters section, enter the voltage drop on the surface in the Value box, and select
the units from the pull-down list.
5. To change the direction of the voltage drop, click Swap Direction.
6. Optionally, click Use Defaults to revert to the default values in the window.
7. Click OK to assign the excitation to the selected object.
This command specifies the x-, y-, and z-components of the current density in a conduction path. If
the current density is a function of position, the value is entered in ampere/m2, even if you change the
units in the problem.
To define the current density:
1. Select the section of the geometry (i.e., the conductor) on which you want to apply the
excitation (typically a 3D object).
2. Click Maxwell>Excitations>Assign>Current Density.
The Current Density Excitation window appears.
3. Enter a name for the excitation in the Name box, or accept the default.
4. In the Parameters section, specify the following options:
a. Enter the X Component, Y Component, and Z Component values to define the
respective components of the current density vector.
b. Do the following in the two Coordinate System pull-down lists:
l From the first pull-down list, select either Global or RelativeCSx (where x = 1,2,3… if
any relative coordinate systems have been defined).
l From the second pull-down list, select Cartesian, Cylindrical, or Spherical.
5. Optionally, click Use Defaults to revert to the default values in the window.
6. Click OK to assign the excitation to the selected object.
To complete the current density definition, you also need to specify any related current density
terminals, which must be assigned to a 2D object or face of the respective conduction path.
To define a current density terminal:
1. Select the 2D object or face to which to assign the terminal.
2. Click Maxwell>Excitations>Assign>Current Density Terminal.
The Current Density Terminal Excitation window appears.
3. Enter a name for the excitation in the Name box, or accept the default.
4. Click OK to assign the excitation to the selected object.
Specifies the total current in a conduction path. The conduction path may be contained completely
within the problem region (for example, a coil), or may touch the edges of the problem region.
To set a current excitation:
1. Select the section of the geometry (i.e., the conductor) on which you want to apply the
excitation (typically a face or other 2D planar object).
2. Click Maxwell>Excitations>Assign>Current.
The Current Excitation window appears.
3. Enter a name for the excitation in the Name box, or accept the default.
4. In the Parameters section, specify the following options:
a. Enter a value for the current in the Value box, and select the units from the pull-down list.
b. Select Solid or Stranded as the Type of conductor. For a stranded conductor, a
uniformly distributed current density is assumed.
c. Click Swap Direction to change the direction of the current flow.
5. Optionally, click Use Defaults to revert to the default values in the window.
6. Click OK to assign the excitation to the selected object.
l The voltage difference between conducting surfaces and objects. Define the electric potential
l A voltage excitation.
l An odd symmetry (flux normal) boundary.
Note If a conductor is not assigned any excitation, it is automatically assigned a floating
excitation with zero charge.
Related Topics
Electrostatic Boundaries
The following boundary conditions are available for 3D electrostatic problems:
Boundary
E-Field Behavior Used to model...
Type
Default Field behaves as follows: Ordinary E-field behavior on boundaries.
Boundary l Natural boundaries — The normal Object interfaces are initially set to
Conditions component of D changes by the natural boundaries; outer boundaries are
(Natural and amount of surface charge density. initially set to Neumann boundaries.
Neumann) No special conditions are
imposed.
l Neumann boundaries — E is
layer.
l Neumann boundaries are assigned to the outside edges of the problem region.
To leave a surface set to its default boundary condition, do nothing. Deleted boundary conditions and
excitations automatically revert to the default boundary conditions.
This boundary condition defines a plane of geometric or electric symmetry in a structure. Assign it
only to the outer surfaces of the problem region.
To set a symmetry boundary:
1. Select the section of the geometry on which you want to apply the boundary condition
(typically a face).
2. Click Maxwell>Boundaries>Assign>Symmetry.
The Symmetry Boundary window appears.
3. Enter a name for the boundary in the Name box, or accept the default.
4. Select one of the following as the type of symmetry:
Odd E is normal to the boundary; its tangential components are
(Flux Normal) zero.
Even E is tangential to the boundary; its normal components are
(Flux zero.
Tangential)
5. Optionally, click Use Defaults to revert to the default values in the window.
6. Click OK to assign the boundary to the selected object.
Master and slave boundaries enable you to model planes of periodicity where the E-field at every
point on the slave boundary surface is forced to match the E-field of every corresponding point on the
master boundary surface. The transformation used to map the E-field from the master to the slave is
determined by specifying a coordinate system on both the master and slave boundaries.
To set a master boundary:
1. Select the face to which you want to assign the master boundary.
2. Click Maxwell>Boundaries>Assign>Master.
The Master Boundary window appears.
3. Enter a name for the boundary in the Name box, or accept the default.
4. In the Coordinate System section, do the following to define the coordinate system:
Note You must specify the coordinate system in the plane on which the boundary exists.
First draw the U vector of the coordinate system. Maxwell uses the U vector you
draw and the normal vector of the boundary face to calculate the v-axis. Then
specify the direction of the V vector.
a. Select New Vector from the U Vector pull-down list.
The Create Line message appears, asking you to draw the U vector of the coordinate
system in the plane of the selected face, and the Master Boundary dialog box disappears
while you draw the U vector.
b. Select the U vector's origin, which must be on the boundary's surface, in one of the
following ways:
l Click the point.
Assigning a slave boundary is the second step in creating matching boundaries. The field on the
Master boundary is mapped to the slave boundary.
Note You must define a Master boundary before creating the slave boundaries that are
associated with it. Assign slave boundaries only to the outer surfaces of the problem
region.
To set a slave boundary:
1. Select the section of the geometry on which you want to apply the boundary condition
(typically a face).
2. Click Maxwell>Boundaries>Assign>Slave.
The Slave Boundary window appears.
3. Enter a name for the boundary in the Name box, or accept the default.
4. Select the master boundary to which the slave is to be assigned from the Master Boundary
pull-down list.
5. To specify the coordinate system, do the following in the Coordinate System section:
Note You must specify the coordinate system in the plane on which the boundary exists.
First draw the U vector of the coordinate system. Maxwell uses the U vector you
draw and the normal vector of the boundary face to calculate the v-axis. Then
specify the direction of the V vector.
a. Select New Vector from the U Vector pull-down list.
The Create Line message appears asking you to draw the U vector of the coordinate
system in the plane of the selected face, and the Slave Boundary dialog box disappears
while you draw the U vector.
b. Select the U vector's origin in one of the following ways:
l Click the point.
7. Optionally, click Use Defaults to revert to the default values in the window.
8. Click OK to assign the boundary to the selected object.
Note The origin must be a vertex point of one of the
objects.
4. The Parameters section of the Insulating Boundary tab allows you to set the relative
permittivity and thickness of the insulating boundary. Values can be defined using variables
and also support Optimetrics.
a. Enter the desired value for Relative Permittivity, or accept the default value of 1.
b. Enter the desired value for Thickness, or accept the default value of 0.
Note that changing data values will invalidate the solutions.
5. Optionally, click Use Defaults to revert to the default values in the window.
6. Click OK to assign the boundary to the selected object.
Electrostatic Excitations
The following excitations are available for electrostatic problems:
Voltage excitations are identical to voltage boundaries in previous versions of Maxwell. Maxwell no
longer has voltage boundaries in the electric solvers. Instead, a voltage excitation can be assigned to
any surfaces, 2D objects, or solids. These assignments could include spatial functions. This type of
excitation sets the electric potential (voltage) on a surface to a specific value.
Note When calculating capacitance, a voltage source should be assigned to an
entire object, not just a single face located on that object.
To set a voltage excitation:
1. Select the section of the geometry on which you want to apply the excitation.
2. Click Maxwell>Excitations>Assign>Voltage.
The Voltage Excitation window appears.
3. Enter a name for the excitation in the Name box, or accept the default.
4. In the Parameters section, enter the electric potential in the Value box, and select the units
from the pull-down list. You can enter a numerical value or a spatial function.
5. For a spatial function, select a coordinate system from the Coordinate System pull-down list.
6. Optionally, click Use Defaults to revert to the default values in the window.
7. Click OK to assign the excitation to the selected object.
This type of excitation defines the total charge on a surface or object. The potential on the charge is
computed during the solution.
To define a charge excitation:
1. Select the section of the geometry on which you want to apply the excitation.
2. Click Maxwell>Excitations>Assign>Charge.
The Charge Excitation window appears.
3. Enter a name for the excitation in the Name box, or accept the default.
4. In the Parameters section, enter the charge in the Value box.
5. Optionally, click Use Defaults to revert to the default values in the window.
6. Click OK to assign the excitation to the selected object.
This type of excitation models conductors at unknown potentials and specifies the total charge on the
conductor.
To define a floating conductor:
1. Select the section of the geometry on which you want to apply the excitation. This can be a 2D
surface or a 3D solid.
2. Click Maxwell>Excitations>Assign>Floating.
The Floating Excitation window appears.
3. Click the General tab.
4. Enter a name for the excitation in the Name box, or accept the default.
5. In the Parameters section, enter the charge on the boundary in the Value box.
6. Optionally, click Use Defaults to revert to the default values in the window. You can also click
the Defaults tab to save new default settings or to revert to the standard default values.
7. Click OK to assign the excitation to the selected object.
l Using the sink excitation, define a collection of surfaces or 2D objects as a sink. We apply sink
excitations when only current excitations are defined in a conduction path and there is no
voltage excitation. In fact, in this case, a sink excitation has to be defined and it ensures that
the total current flowing through the outside surface of a conduction path is exactly zero.
Include at least one of the following as a reference for computing the electric potential:
l A voltage excitation.
l A sink excitation.
Related Topics
DC Conduction Boundaries
The following boundary conditions are available for DC conduction electric problems:
Boundary
E-Field Behavior Used to model...
Type
Default Field behaves as follows: Ordinary E-field behavior on
l Neumann boundaries are assigned to the outside edges of the problem region.
To leave a surface set to its default boundary condition, do nothing. Deleted boundary conditions and
excitations automatically revert to the default boundary conditions.
This boundary condition is used to model very thin sheets of perfectly insulating material between
touching conductors. Current cannot cross an insulating boundary.
An insulating boundary is only available for electrostatic solutions that include a DC conduction
analysis.
To set an insulating boundary:
1. Select the section of the geometry on which you want to apply the boundary condition
(typically a face).
2. Click Maxwell>Boundaries>Assign>Insulating.
The Insulating Boundary window appears.
3. Enter a name for the boundary in the Name box, or accept the default.
4. Click OK to assign the boundary to the selected object.
This boundary condition defines a plane of geometric or electric symmetry in a structure. Assign it
only to the outer surfaces of the problem region.
To set a symmetry boundary:
1. Select the section of the geometry on which you want to apply the boundary condition
(typically a face).
2. Click Maxwell>Boundaries>Assign>Symmetry.
The Symmetry Boundary window appears.
3. Enter a name for the boundary in the Name box, or accept the default.
4. Select one of the following as the type of symmetry:
Odd Current flows in opposite directions on either side of the symmetry
(Flux Normal) plane.
Even Current flows in the same direction on both sides of the symmetry
(Flux plane.
Tangential)
5. Optionally, click Use Defaults to revert to the default values in the window.
6. Click OK to assign the boundary to the selected object.
Warning When using even symmetry boundaries, double-check the following two points:
l Do not violate Ampere's law!
Master and slave boundaries enable you to model planes of periodicity where the H-field at every
point on the slave boundary surface is forced to match the H-field of every corresponding point on
the master boundary surface. The transformation used to map the H-field from the master to the
slave is determined by specifying a coordinate system on both the master and slave boundaries.
To set a master boundary:
1. Select the face to which you want to assign the master boundary.
2. Click Maxwell>Boundaries>Assign>Master.
The Master Boundary window appears.
3. Enter a name for the boundary in the Name box, or accept the default.
4. In the Coordinate System section, do the following to define the coordinate system:
Note You must specify the coordinate system in the plane on which the boundary exists.
First draw the U vector of the coordinate system. Maxwell uses the U vector you
draw and the normal vector of the boundary face to calculate the v-axis. Then
specify the direction of the V vector.
a. Select New Vector from the U Vector pull-down list.
The Create Line message appears, asking you to draw the U vector of the coordinate
system in the plane of the selected face, and the Master Boundary dialog box disappears
while you draw the U vector.
b. Select the U vector's origin, which must be on the boundary's surface, in one of the
following ways:
l Click the point.
Assigning a slave boundary is the second step in creating matching boundaries. The field on the
Master boundary is mapped to the slave boundary.
Note You must define a Master boundary before creating the slave boundaries that are
associated with it. Assign slave boundaries only to the outer surfaces of the problem
region.
To set a slave boundary:
1. Select the section of the geometry on which you want to apply the boundary condition
(typically a face).
2. Click Maxwell>Boundaries>Assign>Slave.
The Slave Boundary window appears.
3. Enter a name for the boundary in the Name box, or accept the default.
4. Select the master boundary to which the slave is to be assigned from the Master Boundary
pull-down list.
5. To specify the coordinate system, do the following in the Coordinate System section:
Note You must specify the coordinate system in the plane on which the boundary exists.
First draw the U vector of the coordinate system. Maxwell uses the U vector you
draw and the normal vector of the boundary face to calculate the v-axis. Then
specify the direction of the V vector.
a. Select New Vector from the U Vector pull-down list.
The Create Line message appears asking you to draw the U vector of the coordinate
system in the plane of the selected face, and the Slave Boundary dialog box disappears
while you draw the U vector.
b. Select the U vector's origin in one of the following ways:
l Click the point.
7. Optionally, click Use Defaults to revert to the default values in the window.
8. Click OK to assign the boundary to the selected object.
Note The origin must be a vertex point of one of the
objects.
DC Conduction Excitations
The following excitations are available for electric DC conduction problems:
For a DC conduction solution, if a current excitation is assigned, at least one sink or voltage
excitation must also be defined. However, you cannot define both a voltage excitation and a sink
excitation at the same time.
This type of excitation sets the electric potential (voltage) on a surface or object to a specific value.
To set a voltage excitation:
1. Select the section of the geometry on which you want to apply the excitation.
2. Click Maxwell>Excitations>Assign>Voltage.
The Voltage Excitation window appears.
3. Enter a name for the excitation in the Name box, or accept the default.
4. In the Parameters section, enter the electric potential in the Value box, and select the units
from the pull-down list. You can enter a numerical value or a spatial function.
5. For a spatial function, select a coordinate system from the Coordinate System pull-down list.
6. Optionally, click Use Defaults to revert to the default values in the window.
7. Click OK to assign the excitation to the selected object.
Related Topics
Note For stranded conductors, it is assumed that the current density is uniform on the
cross-section of the respective conductors. Thus, the stranded option for current
excitations should mostly be used only in cases where the cross-section of
conductors is constant, consistently with the assumption that the respective object
is a coil built with strands of wire. For this reason, conductors (coils) could be
created by either sweeping around an axis using zero segments or sweeping
along a path having only true surface segments in order to create a smooth
surface coil having a completely uniform cross-sectional area over its entire
length.
l The current density in a conductor.
l The magnetic field on an outside surface.
If currents or current densities are the only sources of AC magnetic fields in your model, set at least
one outer boundary to the following:
Related Topics
Boundary Used to
H-Field Behavior
Type model…
Default Field behaves as follows: Ordinary field
Boundary l Natural boundaries — H is continuous across the boundary. behavior.
Conditions l Neumann boundaries — H is tangential to the boundary and Initially, object
(Natural flux cannot cross it. interfaces are
and natural
Neumann) boundaries;
outer
boundaries and
excluded
objects are
Neumann
boundaries.
Zero Flux is perpendicular if tangent components are zero or if a zero External AC
Tangential tangential H-field boundary condition was applied. magnetic fields.
H Field
Tangential The tangential components of H are set to pre-defined values. External AC
H Field magnetic fields
Integrated For applications such as a motor with the shaft excluded, there Cases such as
Zero remains a hole in the middle. In such cases, on the hole's the boundary
Tangential boundary, neither the Tangential H Field boundary (where around the hole
H Field integration of the tangential H field is non-zero), nor the Zero left when a
Tangential H Field boundary (where the tangential H field is zero motor's shaft is
everywhere) can be applied because – for the hole boundary case excluded.
– integration of the tangential H field is zero, but the tangential H
field is not zero everywhere. Integrated Zero Tangential H Field
Boundary Used to
H-Field Behavior
Type model…
can be used for such applications.
Insulating Same as Neumann, except that current cannot cross the Perfectly
boundary. insulating
sheets between
conductors.
Symmetry Field behaves as follows: Planes of
l Odd Symmetry (Flux Tangential) — H is tangential to the geometric and
boundary; its normal components are zero. magnetic
l Even Symmetry (Flux Normal) — H is normal to the symmetry.
boundary; its tangential components are zero.
Matching The H-field on the slave boundary is forced to match the Planes of
(Master magnitude and direction (or the negative of the direction) of the H- symmetry in
and Slave) field on the master boundary. periodic
structures
where H is
oblique to the
boundary.
Radiation No restrictions on the field behavior. Unbounded
eddy currents.
Impedance Includes the effect of induced currents beyond the boundary Conductors
surface. with very small
skin depths.
These boundary conditions are automatically defined for an eddy current model:
l Natural boundaries are assigned to the surfaces between objects.
l Neumann boundaries are assigned to the outside edges of the problem region.
To leave a surface set to its default boundary condition, do nothing. Deleted boundary conditions and
excitations automatically reset to the default boundary conditions.
This type of boundary defines external magnetic fields in a model. Assign it only to the outer surfaces
of the problem region. Regardless of the model's drawing units, magnetic field values are entered in
s/m.
Warning When using tangential magnetic field boundary conditions, always double-check that
Assigning an Integrated Zero Tangential H Field Boundary for the Eddy Current Solver
This type of boundary is applied when the integral of the tangential H field is zero.
Warning When using integrated zero tangential magnetic field boundary conditions, always
double-check that Ampere's law is not violated!
To define an integrated zero tangential H field boundary:
1. Select the section of the geometry on which you want to apply the boundary condition
(typically a face).
2. Click Maxwell 3D>Boundaries>Assign>Integrated Zero Tangential H Field.
The Integrated Zero Tangential H Field window appears.
3. Enter a name for the boundary in the Name box, or accept the default.
4. Click OK to assign the boundary to the selected object.
The new boundary is added to the boundary list in the project tree.
This boundary condition is generally used to model very thin sheets of perfectly insulating material
between touching conductors, as well as infinitely thin cracks inside conductors. Current cannot
cross an insulating boundary.
To set an insulating boundary:
1. Select the section of the geometry on which you want to apply the boundary condition
(typically a face).
2. Click Maxwell>Boundaries>Assign>Insulating.
The Insulating Boundary window appears.
3. Enter a name for the boundary in the Name box, or accept the default.
4. Click OK to assign the boundary to the selected object.
Note An insulating boundary condition can be used to control the flow of induced eddy
currents inside conductors that contain sheet objects with an applied insulating
boundary condition. In case you apply the insulating boundary condition on sheet
objects (inside conductors), always make sure that the respective entities are
selected as faces and not as objects before attempting to assign the insulating
boundary condition to them.
This boundary condition defines a plane of geometric or magnetic symmetry in a structure. Assign it
only to the outer surfaces of the problem region.
To set a symmetry boundary:
1. Select the section of the geometry on which you want to apply the boundary condition
(typically a face).
2. Click Maxwell>Boundaries>Assign>Symmetry.
The Symmetry Boundary window appears.
3. Enter a name for the boundary in the Name box, or accept the default.
4. Select one of the following as the type of symmetry:
Odd H is tangential to the boundary; its normal components are
(Flux zero.
Tangential)
Even H is normal to the boundary; its tangential components are
(Flux Normal) zero.
5. Optionally, click Use Defaults to revert to the default values in the window.
6. Click OK to assign the boundary to the selected object.
Warning When using even symmetry boundaries, always double-check that Ampere's law
is not violated!
Related Topics
Master and slave boundaries enable you to model planes of periodicity where the H-field at every
point on the slave boundary surface is forced to match the H-field of every corresponding point on
the master boundary surface. The transformation used to map the H-field from the master to the
slave is determined by specifying a coordinate system on both the master and slave boundaries.
To set a master boundary:
1. Select the face to which you want to assign the master boundary.
2. Click Maxwell>Boundaries>Assign>Master.
The Master Boundary window appears.
3. Enter a name for the boundary in the Name box, or accept the default.
4. In the Coordinate System section, do the following to define the coordinate system:
Note You must specify the coordinate system in the plane on which the boundary exists.
First draw the U vector of the coordinate system. Maxwell uses the U vector you
draw and the normal vector of the boundary face to calculate the v-axis. Then
specify the direction of the V vector.
a. Select New Vector from the U Vector pull-down list.
The Create Line message appears, asking you to draw the U vector of the coordinate
system in the plane of the selected face, and the Master Boundary dialog box disappears
while you draw the U vector.
b. Select the U vector's origin, which must be on the boundary's surface, in one of the
following ways:
l Click the point.
Assigning a slave boundary is the second step in creating matching boundaries. The field on the
master boundary is mapped to the slave boundary.
Note You must define a master boundary before creating the slave boundaries that are
associated with it. Assign slave boundaries only to the outer surfaces of the problem
region.
To set a slave boundary:
1. Select the section of the geometry on which you want to apply the boundary condition
(typically a face).
2. Click Maxwell>Boundaries>Assign>Slave.
The Slave Boundary window appears.
3. Enter a name for the boundary in the Name box, or accept the default.
4. Select the master boundary to which the slave is to be assigned from the Master Boundary
pull-down list.
5. To specify the coordinate system, do the following in the Coordinate System section:
Note You must specify the coordinate system in the plane on which the boundary exists.
First draw the U vector of the coordinate system. Maxwell uses the U vector you
draw and the normal vector of the boundary face to calculate the v-axis. Then
specify the direction of the V vector.
a. Select New Vector from the U Vector pull-down list.
The Create Line message appears asking you to draw the U vector of the coordinate
system in the plane of the selected face, and the Slave Boundary dialog box disappears
while you draw the U vector.
b. Select the U vector's origin in one of the following ways:
l Click the point.
Hs = Click this radio button if the slave and master boundaries have the same magnitude
Hm and direction.
Hs = Click this radio button if the slave boundary field has the same magnitude as but the
-Hm opposite direction from the master boundary field.
7. Optionally, click Use Defaults to revert to the default values in the window.
8. Click OK to assign the boundary to the selected object.
Note The origin must be a vertex point of one of the
objects.
To simulate problems that allow fields to radiate infinitely far into space, you can define surfaces to
be radiation boundaries. The system absorbs the field at the radiation boundary, essentially
ballooning the boundary infinitely far away from the structure. In a far field region, field components
are expressed by:
where:
which is used as a radiation boundary. The radiation boundary condition should be placed far
enough from the source of radiation so that the approximation of the far field in the region of the
boundary holds.
The second-order radiation boundary condition is an approximation of free space. The accuracy of
the approximation depends on the distance between the boundary and the object from which the
radiation emanates.
A radiation surface does not have to be spherical. However, it should be exposed to the background,
convex with regard to the radiation source, and located at least one-quarter of a wavelength away
from the radiating sources. In some cases you may want to use smaller distances.
To assign a radiation boundary:
1. Select the section of the geometry on which you want to apply the boundary condition
(typically a face).
2. Click Maxwell>Boundaries>Assign>Radiation.
The Radiation Boundary window appears.
3. Enter a name for the boundary in the Name box, or accept the default.
4. Optionally, click Use Defaults to revert to the default values in the window.
5. Click OK to assign the boundary to the selected object.
This boundary condition is used to simulate the effect of induced currents in a conductor without
explicitly computing them. Since the conductor must be excluded from the model (saving time
needed to mesh and solve for currents), assign the impedance boundary condition to an outside
edge of the problem region or to an excluded object.
To define an impedance boundary:
1. Select the section of the geometry on which you want to apply the boundary condition
(typically a face).
2. Click Maxwell 3D>Boundaries>Assign>Impedance.
The Impedance Boundary window appears.
3. Enter a name for the boundary in the Name box, or accept the default.
4. Do one of the following:
l If the Use Material check box is unchecked, enter the conductivity (in inverse ohm-meters)
in the Conductivity field, and the conductor's relative permeability in the Permeability
field.
l If you wish to select a material from the library, check the Use Material check box, then use
the button to select the desired material.
If you select a material that has nonlinear permeability, the non-linear coefficient is computed
automatically.
The nonlinear relative permeability of the material is determined by the B-H curve. If the
desired B-H curve of the permeability belongs to an existing material, you can directly use that
existing material.
Otherwise, you can edit a new material with the desired B-H curve.
Refer to Relative Permeability for a Maxwell or RMxprt Material for details on using nonlinear
relative permeability.
5. Optionally, click Use Defaults to revert to the default values in the window.
The Defaults tab allows you to control default values. The Save Defaults button saves the
values currently defined on the General tab as the defaults to be assigned to new impedance
boundaries. Revert to Standard Defaults clears existing user-defined values and replaces
them with the standard default values.
Related Topics
Impedance Boundary
Impedance Boundary
Impedance boundaries allow you to simulate the effect of induced currents in a conductor without
explicitly computing them. Use this boundary condition for models where:
l The skin depth in the conductor is less than two orders of magnitude smaller than the
dimensions of the structure. In models like this, the meshmaker may not be able to create a
fine enough mesh in the conductor to compute eddy currents.
l The magnetic field decays much more rapidly inside the conductor in the direction that’s
normal to the surface than it does in directions that are tangential to the surface.
l The AC current source is relatively far away from the surface where eddy currents occur,
l For internal boundaries: assign a perfect conductor to the object in the Material Manager, and
also exclude the object from the solution by unchecking Solve Inside under the object
attributes. The solver does not find solutions inside a perfect conductor.
Then, when defining boundaries, assign an impedance boundary to the individual surfaces of the
problem region (for external boundaries) or to the entire object (for internal boundaries). By entering
the conductivity, s, and the relative permeability, mr, of the object, you specify the skin depth of
induced eddy currents. The simulator uses this skin depth value when computing the
electromagnetic field solution. It assumes that the H-field falls off exponentially inside the conductor.
The ohmic loss due to induced currents can then be computed from the tangential components of the
H-field along the impedance boundary — the surface of the object that you are interested in.
Note An impedance boundary only approximates the effect of eddy currents acting at a shallow
skin depth. It does not directly compute them. In general, the fields modeled using an
impedance boundary will closely match the field patterns that would actually occur in the
structure. However, at discontinuities in the surface (such as corners), the field patterns
may be different.
Related Topics
A typical situation where impedance boundaries can be used to reduce the complexity of a model is
shown below. Suppose you want to compute eddy current losses in the conductor next to the current
source shown below on the left. If the source carries AC current at a frequency of 1 MHz, the skin
depth in the conductor is 6.6 x 10–5 meters. This is several orders of magnitude smaller than the
conductor’s thickness. Since the conductor where currents are induced is also relatively far away
from the current source, an impedance boundary can be used to model the induced currents — as
shown on the right.
The conductor itself must be excluded from the model. Instead, the outside boundary of the model is
moved to the inside surface of the conductor. This outside surface is defined as an impedance
boundary, using the conductivity and permeability specified previously. Since the simulator does not
have to actually compute a solution inside the conductor, the field solution is computed more quickly
and uses less memory. After solving, you can compute the ohmic loss for the surface using the
solution calculator and plot the loss density on the boundary.
Note When entering current, the arrow associated with current in the selected object shows the
direction as if a positive value is entered for the current. If a negative value is entered the
actual current flow direction is opposite to what the arrow shows. Click Reverse Direction
if you want to reverse the direction of the arrow.
Note When a source conductor touches an outer boundary, Maxwell assumes current will flow
perpendicular to the boundary. If you do not want current to cross the outer boundary, an
insulating boundary should be used.
This command specifies the x-, y-, and z-components of the AC current density in a conduction path.
If the current density is a function of position, the value is entered in ampere/m2, even if you change
the units in the problem.
To define the current density:
1. Select the section of the geometry (i.e., the conductor) in which you want to apply the
excitation (typically a 3D object).
2. Click Maxwell>Excitations>Assign>Current Density.
The Current Density Excitation window appears.
3. Enter a name for the excitation in the Name box, or accept the default.
4. In the Parameters section, specify the following options:
a. Enter the X Component, Y Component, and Z Component values to define the
respective components of the current density vector.
b. Do the following in the two Coordinate System pull-down lists:
l From the first pull-down list, select either Global or RelativeCS1 (where x = 1,2,3… if
c. Enter the phase angle, θ, of the current density in the Phase field.
5. Optionally, click Use Defaults to revert to the default values in the window.
6. Click OK to assign the excitation to the selected object.
To complete the current density definition, you also need to specify any related current density
terminals, which must be assigned to a 2D object or face of the respective conduction path.
Note Select the names of the sheet objects to serve as the current density terminals. This object
must form an exact cross-section of the current density conduction path.You must create
2D objects which represent locations where current flows into and out of the problem
region, or branches at any location in the conduction path. In current loops, any exact 2D
cross-section may serve as a terminal.
Related Topics
Assigning a Current Density Terminal Excitation for the Eddy Current Solver
Related Topics
Specifies the total AC current in a conduction path. The conduction path may be contained
completely within the problem region (for example, a coil), or may touch the edges of the problem
region.
To specify the total AC current:
1. Select the 2D section of the geometry on which you want to apply the excitation.
2. Click Maxwell>Excitations>Assign>Current.
The Current Excitation window appears.
3. Enter a name for the excitation in the Name box, or accept the default.
4. Enter the current strength in the Value box.
5. Enter the phase for the current in the Phase box.
6. Select either Solid or Stranded to define the Type for the conductor. For a stranded
conductor, a uniformly distributed current density is assumed without considering eddy
effects.
7. Optionally, click Swap Direction to change the direction of the current flow.
8. Optionally, click Use Defaults to revert to the default values in the window.
9. Click OK to assign the excitation to the selected object.
from Winding.
The terminal is removed from the winding and moved up one level in
the project tree (directly beneath Excitations).
Note If you wish to define a winding for a Transient solution type, refer to
"Assigning a Winding Setup for a Transient Solver" on page 10-75 .
You can use the pre-defined coil terminal(s) to define one or more current or voltage windings.
To define a winding for your model:
1. Click Maxwell>Excitations>Add Winding. to open the Winding dialog box.
2. Enter a name for the winding in the Name box, or accept the default.
terminal excitations are removed from the winding and deleted from the excitations.
1. For a solid winding, the resistance term can represent: the resistance of a portion of the
winding which is not modeled (for instance, end-effects), the leads connecting the winding to
the source, or the source resistance. (The main winding resistance is calculated directly by the
solver.) For a stranded winding, the resistance term is the complete DC resistance of the
winding (since the solver does not determine resistance of a stranded winding) as well as the
resistance of the end-effects, leads, source, etc. For both solid and stranded windings, the
inductance term can represent: the extra inductance for a portion of the winding of the winding
which is not modeled (for instance, end-effects), the leads connecting the winding to the
source, or the source inductance. (The main winding inductance itself is calculated directly by
the solver.)
The Maxwell Circuit design editor is used to setup the external circuit excitation for windings in
Maxwell 2D and 3D Eddy current solutions. Because the Eddy current solver is a frequency domain
solver, only linear circuit components are supported, which include Resistance, Inductance,
Capacitance, and Transformer. In addition, only sinusoidal sources should be used as sources.
Sinusoidal Current Source and Sinusoidal Voltage Source, designed for transient solutions, can also
be used for eddy current solutions. For example, to use the sinusoidal current source, you should set
the parameters as follows:
l Set I0, Td, and Df to zero, where I0 is offset current in Amps, Td is the delay time in seconds,
l Use IFreq to set the signal frequency. Note that setting IFreq is not necessary as it will be
Note that “Phase” is the signal phase delay. The complex source in the eddy current solver is
represented in phasor form as:
In the complex expression, θ is defined as phase, while in Maxwell Circuit, Phase is defined as phase
delay. Thus:
As a result, you should enter the negative of phase of the complex signal as the Phase value.
An example of an external circuit excitation for the winding for an Eddy current solver is shown
below.
Note For frequency domain eddy current solutions, only linear circuit components are supported,
which include Resistor, Inductor, Capacitor, and Transformer. Only sinusoidal sources
should be used as sources.
b. If external windings have already been set up, continue with step 7.
2. On the Winding Information tab, click Create Circuit to add a circuit design to the project.
The new circuit design automatically opens for editing in the Maxwell Circuit Editor. The circuit
includes one inductor for each external winding in the original Maxwell transient design. The
example below is for a design having one external winding.
3. Add the components needed to complete the external circuit design such as shown the
example below.
4. When the circuit design is finished, click Maxwell Circuit>Export Netlist and export the
netlist .sph file to the desired location.
5. Return to the Maxwell design and click Maxwell 3D>Excitations>External Circuit>Edit
External Circuit to open the Edit External Circuit dialog. You can also right-click on
Excitations in the Project tree and select External Circuit>Edit External Circuit.
6. On the Winding Information tab, click Import Circuit to import the circuit.
7. To view a list of inductors in the imported circuit, click the Available Inductors tab.
8. To view the sources used in the externally connected windings, click the Source Type tab.
9. If variables are used in the imported circuit, they and their design values are listed on the
Parameter Values tab. You can link to variables within the imported circuit as follows:
a. On the Parameter Values tab, click in the Value column of the parameter to be
mapped.
b. Enter a new local variable name and press the Enter key to open the Add Variable
dialog.
c. Select a Unit Type and Unit, and enter a Value for the variable and click OK. The new
Maxwell variable is now mapped to the variable in the imported circuit, and can be
varied directly by Maxwell or used for Optimetrics analyses.
10. If the imported file is a .sph file, you can click the Circuit Path tab to view the original project
and design names.
11. Click OK to close the Edit External Circuit dialog box.
Related Topics
circuit winding.
Note For stranded conductors, it is assumed that the current density is uniform on the
cross-section of the respective conductors. Thus, the stranded option for current
excitations should mostly be used only in cases where the cross-section of
conductors is constant, consistently with the assumption that the respective object
is a coil built with strands of wire. For this reason, conductors (coils) could be
created by either sweeping around an axis using zero segments or sweeping
along a path having only true surface segments in order to create a smooth
surface coil having a completely uniform cross-sectional area over its entire
length.
l A permanent magnet.
You may need to set at least one outer boundary to the following:
l The default boundary conditions.
Related Topics
Transient Boundaries
The transient field solver allows you to define the same types of boundary conditions as
magnetostatic ones.
Boundary Used to
H-Field Behavior
Type model...
Default Field behaves as follows: Ordinary field
Boundary l Natural boundaries — H is continuous across the boundary. behavior.
Conditions l Neumann boundaries — H is tangential to the boundary and Initially, object
(Natural flux cannot cross it. interfaces are
and natural
Neumann) boundaries;
outer
boundaries, and
excluded objects
are Neumann
boundaries.
Zero The tangential components of H are set to zero. Flux is External
Tangential perpendicular. magnetic fields.
H Field
Integrated For applications such as a motor with the shaft excluded, there Cases such as
Zero remains a hole in the middle. In such cases, on the hole's boundary, the boundary
Tangential neither the Tangential H Field boundary (where integration of the around the hole
H Field tangential H field is non-zero), nor the Zero Tangential H Field that remains
boundary (where the tangential H field is zero everywhere) can be when a motor's
applied because – for the hole boundary case – integration of the shaft is
tangential H field is zero, but the tangential H field is not zero excluded.
everywhere. Integrated Zero Tangential H Field can be used for
such applications.
Insulating Same as Neumann, except that current cannot cross the boundary. Thin, perfectly
insulating sheets
between
touching
conductors.
Symmetry Field behaves as follows: Planes of
l Odd Symmetry (Flux Tangential) — H is tangential to the geometric and
boundary; its normal components are zero. magnetic
l Even Symmetry (Flux Normal) — H is normal to the symmetry.
boundary; its tangential components are zero.
Matching The H-field on the slave boundary is forced to match the magnitude Planes of
(Master and direction (or the negative of the direction) of the H-field on the symmetry in
and Slave) master boundary. periodic
structures
where H is
oblique to the
boundary.
l Neumann boundaries are assigned to the outside edges of the problem region.
To leave a surface set to its default boundary condition, you do not need to set any boundary
conditions. Deleted boundary conditions and excitations automatically reset to the default boundary
conditions.
1. Select the section of the geometry on which you want to apply the boundary condition
(typically a face).
2. Click Maxwell>Boundaries>Assign>Zero Tangential H Field.
The Zero Tangential H Field window appears.
3. Enter a name for the boundary in the Name box, or accept the default.
4. Click OK to assign the boundary to the selected object.
This type of boundary is applied when the integral of the tangential H field is zero.
Warning When using integrated zero tangential magnetic field boundary conditions, always
double-check that Ampere's law is not violated!
To define an integrated zero tangential H field boundary:
1. Select the section of the geometry on which you want to apply the boundary condition
(typically a face).
2. Click Maxwell 3D>Boundaries>Assign>Integrated Zero Tangential H Field.
The Integrated Zero Tangential H Field window appears.
3. Enter a name for the boundary in the Name box, or accept the default.
4. Click OK to assign the boundary to the selected object.
This boundary condition is used to model very thin sheets of perfectly insulated material between
touching conductors. Current cannot cross an insulating boundary.
To set an insulating boundary:
1. Select the section of the geometry on which you want to apply the boundary condition
(typically a face).
2. Click Maxwell>Boundaries>Assign>Insulating.
The Insulating Boundary window appears.
3. Enter a name for the boundary in the Name box, or accept the default.
4. Click OK to assign the boundary to the selected object.
Note An insulating boundary condition can operate on the source current. It can also be
used to control the flow of induced eddy currents.
This boundary condition defines a plane of geometric or magnetic symmetry in a structure. Assign it
only to the outer surfaces of the problem region.
To set a symmetry boundary:
1. Select the section of the geometry on which you want to apply the boundary condition
(typically a face).
2. Click Maxwell>Boundaries>Assign>Symmetry.
The Symmetry Boundary window appears.
3. Enter a name for the boundary in the Name box, or accept the default.
4. Select one of the following as the type of symmetry:
Odd H is tangential to the boundary; its normal components are
(Flux zero.
Tangential)
Even H is normal to the boundary; its tangential components are
(Flux Normal) zero.
5. Optionally, click Use Defaults to revert to the default values in the window.
6. Click OK to assign the boundary to the selected object.
Warning When using even symmetry boundaries, always double-check that Ampere's law
is not violated!
Related Topics
Master and slave boundaries enable you to model planes of periodicity where the H-field at every
point on the slave boundary surface is forced to match the H-field of every corresponding point on
the master boundary surface. The transformation used to map the H-field from the master to the
slave is determined by specifying a coordinate system on both the master and slave boundaries.
To set a master boundary:
1. Select the face to which you want to assign the master boundary.
2. Click Maxwell>Boundaries>Assign>Master.
The Master Boundary window appears.
3. Enter a name for the boundary in the Name box, or accept the default.
4. In the Coordinate System section, do the following to define the coordinate system:
Note You must specify the coordinate system in the plane on which the boundary exists.
First draw the U vector of the coordinate system. Maxwell uses the U vector you
draw and the normal vector of the boundary face to calculate the v-axis. Then
specify the direction of the V vector.
a. Select New Vector from the U Vector pull-down list.
The Create Line message appears, asking you to draw the U vector of the coordinate
system in the plane of the selected face, and the Master Boundary dialog box disappears
Assigning a slave boundary is the second step in creating matching boundaries. The field on the
master boundary is mapped to the slave boundary.
Note You must define a master boundary before creating the slave boundaries that are
associated with it. Assign slave boundaries only to the outer surfaces of the problem
region.
To set a slave boundary:
1. Select the section of the geometry on which you want to apply the boundary condition
(typically a face).
2. Click Maxwell>Boundaries>Assign>Slave.
The Slave Boundary window appears.
3. Enter a name for the boundary in the Name box, or accept the default.
4. Select the master boundary to which the slave is to be assigned from the Master Boundary
pull-down list.
5. To specify the coordinate system, do the following in the Coordinate System section:
Note You must specify the coordinate system in the plane on which the boundary exists.
First draw the U vector of the coordinate system. Maxwell uses the U vector you
draw and the normal vector of the boundary face to calculate the v-axis. Then
specify the direction of the V vector.
a. Select New Vector from the U Vector pull-down list.
The Create Line message appears asking you to draw the U vector of the coordinate
system in the plane of the selected face, and the Slave Boundary dialog box disappears
while you draw the U vector.
b. Select the U vector's origin in one of the following ways:
7. Optionally, click Use Defaults to revert to the default values in the window.
8. Click OK to assign the boundary to the selected object.
Note The origin must be a vertex point of one of the
objects.
Transient Excitations
After defining the coil terminals for the model, you can use these terminals to define one or more
windings using the Maxwell>Excitations>Add Winding option. Transient problems use the
following sources of magnetic fields:
Note A winding is a flexible excitation. Six different combinations can be used: Current, Voltage,
and External Circuit — each with a solid or stranded conductor. The Coil Terminal type of
excitation is needed to set up a winding.
Note When a source conductor touches an outer boundary, Maxwell assumes current will flow
perpendicular to the boundary. If you do not want current to cross the outer boundary, an
insulating boundary should be used.
Winding.
The terminal is removed from the winding and moved up one level in the
project tree (directly beneath Excitations).
Related Topics
Note If you wish to define a winding for an Eddy Current solution type, refer to
"Assigning a Winding Setup for an Eddy Current Solver" on page 10-63
.
You can use the pre-defined coil terminal(s) to define one or more current or voltage windings.
To define a winding for your model:
1. Click Maxwell>Excitations>Add Winding. to open the Winding dialog box.
2. Enter a name for the winding in the Name box, or accept the default.
3. In the Parameters section:
a. Select Current, Voltage, or External from the Type pull-down list. The winding type
selected enables only those fields (Initial Current, Current, Resistance, Inductance,
Voltage) applicable for the chosen type.
Note Maxwell transient designs can be dynamically coupled to Simplorer
components through the Simplorer user interface. You can enable this
feature on the Advanced Product Coupling tab of the Design Settings dialog
box. Source windings set to External are available as conservative pins in
Simplorer. For more information, refer to the Online Help for Simplorer
Version 8 and later.
b. Select the Solid or Stranded radio button to specify the type of conductor.
c. Enter values in the following fields (enabled according to winding type), and select the
desired units. You can also type a function as an expression for any of these fields
except Initial Current.
For a current winding For a voltage winding1 For an external winding
Current Resistance Initial Current
Inductance
Voltage
Phase
d. Enter a value in the Number of parallel branches text box.
4. Optionally, click Use Defaults to revert to the default values in the window.
5. Click OK to assign the excitation to the selected object.
A winding is now defined for your model.
Note For an external winding, you must also set up an external circuit connection.
Note To add a coil terminal to this winding, do the following:
1. In the project tree, right-click the winding, and select Add Terminals.
The Add Terminals dialog box appears, listing all coil terminals that do not already
belong to that winding.
2. Select the coil terminal (s) you want to add. To select multiple terminals, press CTRL
and click each terminal.
3. Click OK.
To assign a coil terminal excitation and add it to this winding, do the following:
1. Select the section of the geometry on which you want to apply the coil terminal
excitation.
2. In the project tree, right-click the winding, and select Assign Coil Terminal.
The Coil Terminal Excitation dialog box appears.
3. Click OK to assign the coil terminal excitation.
The coil terminal excitation is assigned and is added to the winding.
To delete all coil terminal excitations that belong to this winding, do the following:
l In the project tree, right-click the winding, and select Delete All Terminals.
All coil terminal excitations are removed from the winding and deleted from the
excitations.
Related Topics
1. For a solid winding, the resistance term can represent: the resistance of a portion of the
winding which is not modeled (for instance, end-effects), the leads connecting the winding to
the source, or the source resistance. (The main winding resistance is calculated directly by the
solver.) For a stranded winding, the resistance term is the complete DC resistance of the
winding (since the solver does not determine resistance of a stranded winding) as well as the
resistance of the end-effects, leads, source, etc. For both solid and stranded windings, the
inductance term can represent: the extra inductance for a portion of the winding of the winding
which is not modeled (for instance, end-effects), the leads connecting the winding to the
source, or the source inductance. (The main winding inductance itself is calculated directly by
the solver.)
The Maxwell Circuit design editor is used to setup the external circuit excitation for windings in
Maxwell 2D and 3D transient solutions.
Note External circuits intended for use with the Time Decomposition Method (TDM) can only
support basic circuit elements that are solution-independent. This is because, for TDM, all
time steps (or all time steps in a subdivision) are solved simultaneously - and thus the circuit
topology and its parameters must be known before solving. Therefore some circuit
elements, such as solution-dependent switches, diodes, capacitors, and inductors which
are not directly connected to windings in series, are not supported.
To set up an external circuit connection for an External winding type:
1. Click Maxwell 3D>Excitations>External Circuit>Edit External Circuit to open the Edit
External Circuit dialog box. You can also right-click on Excitations in the Project tree and
select External Circuit>Edit External Circuit.
a. If no external winding connections have been set up for your model, the Winding
Information tab lists the external winding(s) in the design. Continue with step 2.
b. If external windings have already been set up, continue with step 7.
2. On the Winding Information tab, click Create Circuit to add a circuit design to the project.
The new circuit design automatically opens for editing in the Maxwell Circuit Editor. The circuit
includes one inductor for each external winding in the original Maxwell transient design. The
example below is for a design having one external winding.
3. Add the components needed to complete the external circuit design such as shown the
example below.
4. When the circuit design is finished, click Maxwell Circuit>Export Netlist and export the
netlist .sph file to the desired location.
5. Return to the Maxwell design and click Maxwell 3D>Excitations>External Circuit>Edit
External Circuit to open the Edit External Circuit dialog. You can also right-click on
Excitations in the Project tree and select External Circuit>Edit External Circuit.
6. On the Winding Information tab, click Import Circuit to import the circuit.
7. To view a list of inductors in the imported circuit, click the Available Inductors tab.
8. To view the sources used in the externally connected windings, click the Source Type tab.
9. If variables are used in the imported circuit, they and their design values are listed on the
Parameter Values tab. You can link to variables within the imported circuit as follows:
a. On the Parameter Values tab, click in the Value column of the parameter to be
mapped.
b. Enter a new local variable name and press the Enter key to open the Add Variable
dialog.
c. Select a Unit Type and Unit, and enter a Value for the variable and click OK. The new
Maxwell variable is now mapped to the variable in the imported circuit, and can be
varied directly by Maxwell or used for Optimetrics analyses.
10. If the imported file is a .sph file, you can click the Circuit Path tab to view the original project
and design names (which are removed after you import a non-sph file).
11. Click OK to close the Edit External Circuit dialog box.
Note For Transient designs, the user-set time steps can be modified when external
circuits are used to drive the windings of a transient finite element model. Following
is a list of situations that will lead to a time step change:
l All power electronic switching instances that do not coincide with user-
specified solve times request a new solution time from the transient solver. The
respective switching generating a new solve time request for the transient
solver can be time, position, or speed dependent.
l When current and/or voltage sources with a piecewise linear variation are
used, a new solution time is requested from the transient solver at each (time)
definition point used in the corresponding source definition table.
l When the change in any winding inductance value is excessive, a new time
Related Topics
Use of the AC_Model component when setting up an external circuit design can improve transient
analysis time to steady state significantly.
In the above example the AC_Model is associated with ALL three of the phase windings. The AC_
Model modifies currents for the AC windings at the beginning of each period without interrupting the
transient process - thus improving the analysis time.
In addition to using the Maxwell Circuit Editor to set up an external circuit, you also can use Matlab®
Simulink® to set up an external circuit for both Maxwell 2D and 3D transient designs.
l Supported Simulink versions are: R2012b, R2013a, R2013b, R2014a, R2014b, and R2015a.
In addition to winding sources, motion sources can also be linked in the external circuit.
l Winding sources ("External" type only): voltage, current, and flux linkage.
l Motion sources: speed, position, and force/torque
To set up an external circuit using Simulink:
1. In the Maxwell Project Manager, right-click Excitations and select Setup Co-Simulation
with Simulink to open the Setup Co-Simulation with Simulink dialog box. You can also
open the dialog box from the main Maxwell 2D or 3D>Excitations menu. If an external
Simulink circuit has already been created and linked, To Simulink and From Simulink
connections information is shown. Otherwise, these table cells are empty.
2. On the Maxwell-Simulink Link tab, click the Edit Circuit button to launch Simulink. The
Maxwell sources are listed in the in the Maxwell Link Assignment Dialog box. If a circuit
has already been created, the circuit also displays in the Simulink circuit editor window.
3. Add and Link SIMULINK - IN and SIMULINK- OUT connections to the desired Maxwell
parameters to set up the Maxwell component ports. You can also Unlink connections as
needed. Click OK once the ports are set up. The ports will show in the Simulink circuit editor
window.
If changes are needed, click Edit Circuit to reopen the Maxwell Link Assignment dialog
box.
4. Modify (or create) the circuit in the Simulink circuit editor window as needed, and save the
Simulink circuit project.
5. In the Maxwell Setup Co-Simulation with Simulink dialog, click the Import Circuit button
to import the Simulink circuit project into the Maxwell project. The linked connections appear in
the Edit External Circuit dialog. The Circuit Path tab shows the path to the location from
which the Simulink circuit file was imported.
Note You can also modify an existing Simulink circuit by opening the circuit file directly
in Simulink, and then importing the modified circuit file back into the Maxwell
design.
6. When you start the Maxwell design analysis, the co-simulations are started between Maxwell
and Simulink .
Note l Making changes to the Maxwell winding and motion setups invalidate the
external circuit.
l Making changes to the external Simulink circuit setup invalidates the
solutions.
Related Topics
Related Topics
Related Topics
Related Topics
Related Topics
l For magnetic transient designs, if needed, set up a winding and an external circuit connection.
Each field solver requires you to specify excitations of electric or magnetic fields and references for
computing these fields.
l Magnetostatic Boundaries and Excitations
You must specify at least one of the boundary conditions or excitations listed in these sections so that
the simulator can compute accurate values for fields and parameters.
Related Topics
Defining 2D Excitations
The specific excitations you can define depend on the solver you have chosen for your design.
l Magnetostatic Excitations
l 2D Transient Excitations
To assign an excitation:
1. Select the section of the geometry on which you want to apply the excitation.
2. Click Maxwell 2D>Excitations>Assign, or right-click Excitations in the project tree and
click Assign.
A submenu appears with choices that depend upon the solver type.
3. Select one of the following excitation types from the submenu:
l Voltage
l Charge
l Floating
l Charge Density
l Current Density
l Current
l Coil
l End Connection
4. Enter the name for the excitation type or accept the default.
5. Enter the desired parameter values, units, and other settings for the excitation in the dialog.
You can also enter a mathematical function to determine values for voltage, current density,
charge density, and other parameters. The Permanent Magnet Field excitation also requires
you set up a link to a source project.
Note When entering current, or coil terminals, the arrow associated with current in the
selected object shows the direction as if a positive value is entered for the current. If
a negative value is entered the actual current flow direction is opposite to what the
arrow shows. Click Swap Direction if you want to reverse the direction of the
arrow.
6. Click OK to create the new excitation.
The new excitation is added to the excitation list in the project tree.
Related Topics
current density) using a mathematical relationship — such as one relating its value to that of
another quantity.
l Define the value of a boundary or excitation as a function of position.
l If the parametric analysis capability is installed, identify which boundary or excitation quantities
are to be varied during a parametric sweep. These variables are always set to constant values
in the parametric analysis.
Eddy Effect setting, the solver computes the induced eddy currents.
l For 2D Transient, source settings override the eddy effect settings. Objects assigned as
“solid” sources will have eddy effects turned on, while objects assigned as “stranded” sources
will have eddy effects turned off (regardless of the eddy effect settings). The eddy effect
settings will be respected for non-sources.
Typically, background objects are excluded from eddy current settings.
To set eddy effects:
1. Select the section of the geometry on which you want to apply the excitation.
2. Click Maxwell2D>Excitations>Set Eddy Effects.
The Set Eddy Effect dialog box appears showing only objects which are valid for eddy effect
calculation, specifically objects with conductivity greater than 1.
3. For each object in the list, select or clear the check boxes for Eddy Effect. When selecting
multiple entries, the changes are synchronized for all selected rows.
Note Multi-select is supported by holding the CTRL or Shift key while
clicking.
4. Click the Select By Name button to enter the name of a specific object for selection. Multiple
objects may be selected using the * and ? wildcards.
5. Optionally, click the Use suggested values button to set the Eddy Effects for all elements
recommended by Maxwell2D.
6. Click OK.
The Deselect All button will deselect all selected objects in the list.
Related Topics
Related Topics
Related Topics
Related Topics
l All Boundaries
l All Excitations
l By Name
3. If you select By Name, enter a name in the Select By Name dialog box, and click OK.
4. To clear the selection of all boundaries and excitations, click Deselect All.
5. Click Close to close the Boundary Visualization Options dialog box.
Reassigning 2D Boundaries
You can reassign a boundary to another surface. This is useful when you modify objects with
assigned boundaries, invalidating the boundaries. For example, if you unite two objects with
assigned boundaries, the second object's boundary becomes invalid because united objects
maintain the characteristics of the first object selected. In this case, you would need to reassign the
boundary or delete it.
To reassign a boundary:
1. Select the object or object face to which you want to assign an existing boundary.
2. Click Maxwell 2D>Boundaries>Reassign.
The Reassign Boundary dialog box appears.
Hint Alternatively, select the object or object face to which you want to assign an existing
boundary. Right-click the existing boundary in the project tree, and then click
Reassign on the shortcut menu.
3. Select the boundary you want to reassign, and click OK.
Note When reassigning a boundary that includes vectors in its definition, Maxwell
attempts to preserve the vectors with the new assignment, but this is not always
possible.
Related Topics
Reassigning 2D Excitations
Reassigning 2D Excitations
To reassign an excitation:
1. Select the object or object face to which you want to assign an existing excitation.
2. Click Maxwell 2D>Excitations>Reassign.
The Reassign Excitation dialog box appears.
Hint Alternatively, select the object or object face to which you want to assign an existing
excitation. Right-click the existing excitation in the project tree, and then click
Reassign on the shortcut menu.
3. Select the excitation you want to reassign, and click OK.
Note When reassigning an excitation that includes vectors in its definition, Maxwell
attempts to preserve the vectors with the new assignment, but this is not always
possible.
Related Topics
Reassigning 2D Boundaries
Related Topics
Related Topics
2D Magnetostatic Boundaries
2D Magnetostatic Excitations
Technical Notes: Magnetostatic Field Calculation
Specifying the Solver Type
Permanent Magnet Excitations
2D Magnetostatic Boundaries
The magnetostatic field solver allows you to define the following types of boundaries:
Boundary
H-Field Behavior Used to model...
Type
Default Field behaves as follows: Initially, object interfaces are natural
Boundary l At the interface between objects, the boundaries; outer boundaries, and
boundaries, B field is normal. As a rule, this behavior needs to be modified at least for some
portions of the outer boundary to insure uniqueness of the solution.
To leave a surface set to its default boundary condition, do nothing. Deleted boundary conditions and
excitations automatically reset to the default boundary conditions.
This boundary condition defines a plane of geometric or magnetic symmetry in a structure. Assign it
only to the outer surfaces of the problem region.
To set a symmetry boundary:
1. Select the section of the geometry on which you want to apply the boundary condition
(typically an edge).
2. Click Maxwell2D>Boundaries>Assign>Symmetry.
The Symmetry Boundary dialog box appears.
3. Enter a name for the boundary in the Name box, or accept the default.
4. Select one of the following as the type of symmetry:
Odd Magnetic Field is tangential to the boundary; its normal components
(Flux are zero.
Tangential)
Even Magnetic Field is normal to the boundary; its tangential components
(Flux Normal) are zero.
5. Optionally, click Use Defaults to revert to the default values in the dialog box.
6. Click OK to assign the boundary to the selected object.
1. Select the section of the geometry on which you want to apply the boundary condition
(typically an edge).
2. Click Maxwell2D>Boundaries>Assign>Balloon.
The Balloon Boundary dialog box appears.
3. Enter a name for the boundary in the Name box, or accept the default.
4. Click OK to assign the boundary to the selected object.
Master and slave boundaries enable you to model planes of periodicity where the Magnetic Field at
every point on the slave boundary surface is forced to match the Magnetic Field of every
corresponding point on the master boundary surface.
To set a master boundary:
1. Select the edge to which you want to assign the master boundary.
2. Click Maxwell2D>Boundaries>Assign>Master.
The Master Boundary dialog box appears.
3. Enter a name for the boundary in the Name box, or accept the default.
4. To reverse the direction of the vector, select the Swap Direction check box.
5. Click OK.
Assigning a slave boundary is the second step in creating matching boundaries. The field on the
master boundary is mapped to the slave boundary.
Note You must define a master boundary before creating the slave boundaries that are
associated with it. Assign slave boundaries only to the outer surfaces of the problem
region.
To set a slave boundary:
1. Select the section of the geometry on which you want to apply the boundary condition
(typically an edge).
2. Click Maxwell2D>Boundaries>Assign>Slave.
The Slave Boundary dialog box appears.
3. Enter a name for the boundary in the Name box, or accept the default.
4. Select the master boundary to which the slave is to be assigned from the Master Boundary
pull-down list.
5. In the Relation section, select one of the following to specify the field behavior on the
boundary:
Bs Click this radio button if the magnetic fields on the slave and master boundaries have
= the same magnitude and direction.
Bm
Bs Click this radio button if the magnetic fields on the slave boundary have the same
=- magnitude as but the opposite direction from the master boundary.
Bm
6. Optionally, click Use Defaults to revert to the default values in the dialog box.
7. Click OK to assign the boundary to the selected object.
2D Magnetostatic Excitations
The following excitations of magnetic fields are available for magnetostatic problems:
This command (depending upon solution type, either X-Y or R-Z) specifies the applicable
components of the current density in the cross-section of an object. If the current density is a function
of position, the value is entered in ampere/m2, even if you change the units in the problem.
To define the current density:
1. Select the section of the geometry (i.e., the conductor) on which you want to apply the
excitation (typically a 2D object).
2. Click Maxwell2D>Excitations>Assign>Current Density.
The Current Density Excitation dialog box appears.
3. Enter a name for the excitation in the Name box, or accept the default.
4. In the Parameters section, specify the following options:
a. Enter a value for the current density in the Value box. The value may be a single numeric
quantity or a functional quantity.
b. If a functional quantity is entered in the Value box, which depends on the applicable
coordinates, select a Coordinate System from the pull-down list.
5. Optionally, click Use Defaults to revert to the default values in the dialog box.
6. Click OK to assign the excitation to the selected object.
l Define the electric potential on each surface and object using a voltage excitation.
Include at least one of the following as a reference for computing the electric potential:
l A voltage excitation.
Related Topics
2D Electrostatic Boundaries
2D Electrostatic Excitations
Technical Notes: Electric Field Calculation
Specifying the Solver Type
2D Electrostatic Boundaries
The following boundary conditions are available for electrostatic problems:
Boundary
E-Field Behavior Used to model...
Type
Default Field behaves as follows: Ordinary E-field behavior on boundaries.
Boundary l Natural boundaries — The normal Object interfaces are initially set to natural
This boundary condition defines a plane of geometric or electric symmetry in a structure. Assign it
only to the outer surfaces of the problem region.
To set a symmetry boundary:
1. Select the section of the geometry on which you want to apply the boundary condition
(typically an edge).
2. Click Maxwell2D>Boundaries>Assign>Symmetry.
The Symmetry Boundary dialog box appears.
3. Enter a name for the boundary in the Name box, or accept the default.
4. Select one of the following as the type of symmetry:
Odd E is normal to the boundary; its tangential components are
(Flux Normal) zero.
Even E is tangential to the boundary; its normal components are
(Flux zero.
Tangential)
5. Optionally, click Use Defaults to revert to the default values in the dialog box.
6. Click OK to assign the boundary to the selected object.
Master and slave boundaries enable you to model planes of periodicity where the E-field vector at
every point on the slave boundary surface is forced to match the E-field vector of every
corresponding point on the master boundary surface. The transformation used to map the E-field
from the master to the slave is determined by specifying the orientation of a local, predefined
coordinate system, indicated by an arrow, on both the master and slave boundaries.
To set a master boundary:
1. Select the edge to which you want to assign the master boundary.
2. Click Maxwell2D>Boundaries>Assign>Master.
The Master Boundary dialog box appears.
3. Enter a name for the boundary in the Name box, or accept the default.
4. To reverse the direction of the vector, select the Swap Direction check box.
5. Optionally, click Use Defaults to revert to the default values in the dialog box.
6. Click OK.
Assigning a slave boundary is the second step in creating matching boundaries. The field on the
Master boundary is mapped to the slave boundary.
Note You must define a Master boundary before creating the slave boundaries that are
associated with it. Assign slave boundaries only to the outer surfaces of the problem
region.
To set a slave boundary:
1. Select the section of the geometry on which you want to apply the boundary condition
(typically an edge).
2. Click Maxwell2D>Boundaries>Assign>Slave.
The Slave Boundary dialog box appears.
3. Enter a name for the boundary in the Name box, or accept the default.
4. Select the master boundary to which the slave is to be assigned from the Master Boundary
pull-down list.
5. In the Relation section, select one of the following to specify the field behavior on the
boundary:
Es = Click this radio button if the slave and master boundaries have the same magnitude
Em and direction.
Es = Click this radio button if the slave boundary field has the same magnitude as but the
-Em opposite direction from the master boundary field.
6. Optionally, click Use Defaults to revert to the default values in the dialog box.
7. Click OK to assign the boundary to the selected object.
2D Electrostatic Excitations
The following excitations are available for electrostatic problems:
Voltage excitations are identical to voltage boundaries in previous versions of Maxwell. A voltage
excitation can be assigned to any surfaces or 2D objects. These assignments could include spatial
functions.
This type of excitation sets the electric potential to a specific value.
To set a voltage excitation:
1. Select the section of the geometry on which you want to apply the excitation.
2. Click Maxwell2D>Excitations>Assign>Voltage.
The Voltage Excitation dialog box appears.
3. Enter a name for the excitation in the Name box, or accept the default.
4. In the Parameters section, enter the electric potential in the Value box, and select the units
from the pull-down list. You can enter a numerical value, parameter (design or project
variable) or a spatial function.
5. For a spatial function, select a coordinate system from the Coordinate System pull-down list.
6. Optionally, click Use Defaults to revert to the default values in the dialog box.
7. Click OK to assign the excitation to the selected object.
This type of excitation defines the total charge on a surface or object. The potential distribution on the
object with charge excitation is computed during the solution.
To define a charge excitation:
1. Select the section of the geometry on which you want to apply the excitation.
2. Click Maxwell2D>Excitations>Assign>Charge.
The Charge Excitation dialog box appears.
3. Enter a name for the excitation in the Name box, or accept the default.
4. In the Parameters section, enter the numerical value, parameter (design or project variable)
or a spatial function in the Value box.
5. Optionally, click Use Defaults to revert to the default values in the dialog box.
6. Click OK to assign the excitation to the selected object.
This type of excitation models conductors at unknown potentials and specifies the total charge on the
conductor.
To define a floating conductor:
1. Select the section of the geometry on which you want to apply the excitation. This can be a 2D
or 1D geometry entity. If it is a 2D object, it doesn’t have to be a conductor (but it will behave
like one when the solution becomes available).
2. Click Maxwell2D>Excitations>Assign>Floating.
The Floating Excitation dialog box appears.
3. Click the General tab.
4. Enter a name for the excitation in the Name box, or accept the default.
5. In the Parameters section, enter the charge value or parameter in the Value box.
6. Optionally, click Use Defaults to revert to the default values in the dialog box. You can also
click the Defaults tab to save new default settings or to revert to the standard default values.
7. Click OK to assign the excitation to the selected object.
l The voltage difference between surfaces and objects. Define the electric potential on each
surface and object using a voltage excitation.
Include at least one of the following as a reference for computing the electric potential:
l A voltage excitation.
Related Topics
2D AC Conduction Boundaries
2D AC Conduction Excitations
Technical Notes: AC Conduction Field Calculation
Specifying the Solver Type
2D AC Conduction Boundaries
The following boundary conditions are available for AC conduction electric problems:
Boundary
E-Field Behavior Used to model...
Type
Default Field behaves as follows: Object interfaces are initially set
Boundary l Natural boundaries - The normal component to natural boundaries; outer
Conditions of J and the tangential component of E are boundaries are initially set to
(Natural continuous across discontinuity surfaces. No Neumann boundaries.
and special conditions are imposed.
Neumann) l Neumann boundaries - E and J vectors are
vectors are tangential to the boundary. Flux cannot cross a Neumann boundary.
To leave a surface set to its default boundary condition, do nothing. Deleted boundary conditions and
excitations automatically revert to the default boundary conditions.
This boundary condition defines a plane of geometric or electric symmetry in a structure. Assign it
only to the outer surfaces of the problem region.
To set a symmetry boundary:
1. Select the section of the geometry on which you want to apply the boundary condition
(typically an edge).
2. Click Maxwell2D>Boundaries>Assign>Symmetry.
The Symmetry Boundary dialog box appears.
3. Enter a name for the boundary in the Name box, or accept the default.
4. Select one of the following as the type of symmetry:
Odd Voltages have opposite sign on the two sides of the symmetry
(Flux Normal) plane.
Even Voltages have same sign on the two sides of the symmetry plane.
(Flux
Tangential)
5. Optionally, click Use Defaults to revert to the default values in the dialog box.
6. Click OK to assign the boundary to the selected object.
1. Select the section of the geometry on which you want to apply the boundary condition
(typically an edge).
2. Click Maxwell2D>Boundaries>Assign>Balloon.
The Balloon Boundary dialog box appears.
3. Enter a name for the boundary in the Name box, or accept the default.
4. Click OK to assign the boundary to the selected object.
Master and slave boundaries enable you to model planes of periodicity where the E-field at every
point on the slave boundary surface is forced to match the E-field of every corresponding point on the
master boundary surface.
To set a master boundary:
1. Select the edge to which you want to assign the master boundary.
2. Click Maxwell2D>Boundaries>Assign>Master.
The Master Boundary dialog box appears.
3. Enter a name for the boundary in the Name box, or accept the default.
4. To reverse the direction of the vector, select the Swap Direction check box.
5. Click OK.
Maxwell computes the E-field on this boundary and maps it to the slave boundary.
Assigning a slave boundary is the second step in creating matching boundaries. The field on the
Master boundary is mapped to the slave boundary.
Note You must define a Master boundary before creating the slave boundaries that are
associated with it. Assign slave boundaries only to the outer surfaces of the problem
region.
To set a slave boundary:
1. Select the section of the geometry on which you want to apply the boundary condition
(typically an edge).
2. Click Maxwell2D>Boundaries>Assign>Slave.
The Slave Boundary dialog box appears.
3. Enter a name for the boundary in the Name box, or accept the default.
4. In the Parameters section, select the master boundary to which the slave is to be assigned
from the Master Boundary pull-down list.
5. Under Relation, select one of the following to specify the field behavior on the boundary:
Es = Click this radio button if the slave and master boundaries have the same magnitude
Em and oscillate in phase.
Es = Click this radio button if the slave boundary field has the same magnitude as the
-Em master boundary field and oscillate 180 degrees out of phase.
6. To reverse the direction of the vector, select the Swap Direction check box.
7. Optionally, click Use Defaults to revert to the default values in the dialog box.
8. Click OK to assign the boundary to the selected object.
2D AC Conduction Excitations
The following excitations are available for electric AC conduction problems:
Note All field quantities oscillate with the same frequency, equal to the frequency specified in the
solution setup. The phase of quantities computed in the solution space however will be
different in general.
This type of excitation sets the electric potential (voltage) on a surface or object to a specific value.
To set a voltage excitation:
1. Select the section of the geometry on which you want to apply the excitation.
2. Click Maxwell2D>Excitations>Assign>Voltage.
The Voltage Excitation dialog box appears.
3. Enter a name for the excitation in the Name box, or accept the default.
4. In the Parameters section, enter the electric potential in the Value box, and select the units
from the pull-down list. You can enter a numerical value or a spatial function.
5. For a spatial function, select a coordinate system from the Coordinate System pull-down list.
6. Enter a value in the Phase text box, and select a unit from the pull-down list.
7. Optionally, click Use Defaults to revert to the default values in the dialog box.
8. Click OK to assign the excitation to the selected object.
l The voltage difference between surfaces and objects. Define the electric potential on each
surface and object using a voltage excitation.
Include at least one of the following as a reference for computing the electric potential:
l A voltage excitation.
Related Topics
2D DC Conduction Boundaries
2D DC Conduction Excitations
Technical Notes: DC Conduction Field Calculation
Specifying the Solver Type
2D DC Conduction Boundaries
The following boundary conditions are available for DC conduction electric problems:
Boundary
E-Field Behavior Used to model...
Type
Default Field behaves as follows: Object interfaces are initially set
Boundary l Natural boundaries — Normal component to natural boundaries; outer
Conditions of J and tangential component of E are boundaries are initially set to
(Natural and continuous across discontinuity surfaces. Neumann boundaries.
Neumann) No special conditions are imposed.
l Neumann boundaries — E and J vectors
model.
Master and The E-field on the slave boundary is forced to Planes of symmetry in periodic
Slave match the magnitude and direction (or the structures where E is oblique to
(Matching) negative of the direction) of the E-field on the the boundary.
master boundary.
vectors are tangential to the boundary. Flux cannot cross a Neumann boundary.
To leave a surface set to its default boundary condition, do nothing. Deleted boundary conditions and
excitations automatically revert to the default boundary conditions.
This boundary condition defines a plane of geometric or electric symmetry in a structure. Assign it
only to the outer surfaces of the problem region.
To set a symmetry boundary:
1. Select the section of the geometry on which you want to apply the boundary condition
(typically an edge).
2. Click Maxwell2D>Boundaries>Assign>Symmetry.
The Symmetry Boundary dialog box appears.
3. Enter a name for the boundary in the Name box, or accept the default.
4. Select one of the following as the type of symmetry:
Odd Voltages have opposite signs on the two sides of the symmetry
(Flux Normal) plane.
Even Voltages have same signs on the two sides of the symmetry plane.
(Flux
Tangential)
5. Optionally, click Use Defaults to revert to the default values in the dialog box.
6. Click OK to assign the boundary to the selected object.
2. Click Maxwell2D>Boundaries>Assign>Resistance.
The Resistance Boundary dialog box appears.
3. Enter a name for the boundary in the Name box, or accept the default.
4. In the Parameters section, do the following:
a. Enter the Conductivity.
b. Enter the Thickness, and select a unit.
Master and slave boundaries enable you to model planes of periodicity where the E-field at every
point on the slave boundary surface is forced to match the E-field of every corresponding point on the
master boundary surface.
To set a master boundary:
1. Select the edge to which you want to assign the master boundary.
2. Click Maxwell2D>Boundaries>Assign>Master.
The Master Boundary dialog box appears.
3. Enter a name for the boundary in the Name box, or accept the default.
4. To reverse the direction of the vector, select the Swap Direction check box.
5. Optionally, click Use Defaults to revert to the default values in the dialog box.
6. Click OK.
Assigning a slave boundary is the second step in creating matching boundaries. The field on the
master boundary is mapped to the slave boundary.
Note You must define a Master boundary before creating the slave boundaries that are
associated with it. Assign slave boundaries only to the outer surfaces of the problem
region.
To set a slave boundary:
1. Select the section of the geometry on which you want to apply the boundary condition
(typically an edge).
2. Click Maxwell2D>Boundaries>Assign>Slave.
The Slave Boundary dialog box appears.
3. Enter a name for the boundary in the Name box, or accept the default.
4. Select the master boundary to which the slave is to be assigned from the Master Boundary
pull-down list.
5. In the Relation section, select one of the following to specify the field behavior on the
boundary:
Es Click this radio button if the E field on the slave and master boundaries have the
= same magnitude and direction.
Em
Es Click this radio button if the E field on the slave boundary field has the same
=- magnitude as but the opposite direction from the master boundary field.
Em
6. Optionally, click Use Defaults to revert to the default values in the dialog box.
7. Click OK to assign the boundary to the selected object.
2D DC Conduction Excitations
The following excitations are available for electric DC conduction problems:
This type of excitation sets the electric potential (voltage) on a surface or object to a specific value.
To set a voltage excitation:
1. Select the section of the geometry on which you want to apply the excitation.
2. Click Maxwell2D>Excitations>Assign>Voltage.
The Voltage Excitation dialog box appears.
3. Enter a name for the excitation in the Name box, or accept the default.
4. In the Parameters section, enter the electric potential in the Value box, and select the units
from the pull-down list. You can enter a numerical value or a spatial function.
5. For a spatial function, select a coordinate system from the Coordinate System pull-down list.
6. Optionally, click Use Defaults to revert to the default values in the dialog box.
7. Click OK to assign the excitation to the selected object.
l The current in the cross-section (object), which can be either stranded or solid.
l The current to be divided among several parallel conductors.
l The current density in an object.
l The external magnetic field.
If currents or current densities are the only sources of AC magnetic fields in your model, set at least
one outer boundary to the following:
l The default boundary conditions.
Related Topics
Boundary
H-Field Behavior Used to model…
Type
Default Field behaves as follows: Initially, object interfaces
Boundary l Natural boundaries — Tangential H and normal B are natural boundaries;
Conditions are continuous across surfaces without current outer boundaries and
(Natural density distribution; tangential H has a jump if the excluded objects are
and surface has current density distribution. Neumann boundaries.
Neumann) l Neumann boundaries — Magnetic Field is
Boundary
H-Field Behavior Used to model…
Type
normal to the boundary; its tangential components
are zero.
Balloon Models the case where the structure is “infinitely” far away Magnetically isolated
from other magnetic fields or current sources. structures.
Master and The Magnetic Field on the slave boundary is forced to Planes of symmetry in
Slave match the magnitude and direction of the Magnetic Field periodic structures
(Matching) on the master boundary. If a 'plus" sign is used, the fields where Magnetic Field is
oscillate in phase, if a minus sign is used the fields will oblique to the boundary.
oscillate 180 degrees out of phase.
These boundary conditions are automatically defined for an eddy current model:
l Natural boundaries are assigned to the surfaces between objects. Tangential H and normal B
are continuous across surfaces without current density distribution; tangential H has a jump if
the surface has current density distribution.
l Neumann boundaries are assigned to the outside edges of the problem region. Magnetic
This boundary condition is used to simulate the effect of induced currents in a conductor without
explicitly computing them. Since the conductor must be excluded in the model (saving time needed
to mesh and solve for currents), assign the impedance boundary condition to an outside edge of the
problem region or to an excluded object. Exclude the object from the problem region and make the
object a perfect conductor in the Material Manager.
To define an impedance boundary:
1. Select the section of the geometry on which you want to apply the boundary condition
(typically an edge).
2. Click Maxwell2D>Boundaries>Assign>Impedance.
The Impedance Boundary dialog box appears.
3. Enter a name for the boundary in the Name box, or accept the default.
4. Enter the conductivity (in inverse ohm-meters) in the Conductivity field.
5. Enter the conductor's relative permeability in the Permeability field.
6. Optionally, click Use Defaults to revert to the default values in the dialog box.
7. Click OK to assign the boundary to the selected object.
Related Topics
Impedance Boundary
2D Impedance Boundary
Impedance boundaries allow you to simulate the effect of induced currents in a conductor without
explicitly computing them. Use this boundary condition for models where:
l The skin depth in the conductor is less than two orders of magnitude smaller than the
dimensions of the structure. In models like this, the meshmaker may not be able to create a
fine enough mesh in the conductor to compute eddy currents.
l The magnetic field decays much more rapidly inside the conductor in the direction that’s
normal to the surface than it does in directions that are tangential to the surface.
l The AC current source is relatively far away from the surface where eddy currents occur,
also exclude the object from the solution by unchecking Solve Inside under the object
attributes. The solver does not find solutions inside a perfect conductor.
Then, when defining boundaries, assign an impedance boundary to the individual surfaces of the
problem region (for external boundaries) or to the entire object (for internal boundaries). By entering
the conductivity, s, and the relative permeability, µr, of the object, you specify the skin depth of
induced eddy currents. The simulator uses this skin depth value when computing the
electromagnetic field solution. It assumes that the Magnetic Field falls off exponentially inside the
conductor. The ohmic loss due to induced currents can then be computed from the Magnetic
Vector Potential along the impedance boundary - on the surface of the object that you are
interested in - according to the formula below or by using the quantity EdgeLossDensity in the 2D
calculator.
where:
= z component of the Magnetic Vector Potential
Related Topics
A typical situation where impedance boundaries can be used to reduce the complexity of a model is
shown below. Suppose you want to compute eddy current losses in the conductor next to the current
source shown below on the left. If the source carries AC current at a frequency of 1 MHz, the skin
depth in the conductor is 6.6 x 10–5 meters. This is several orders of magnitude smaller than the
conductor’s thickness. Since the conductor where currents are induced is also relatively far away
from the current source, an impedance boundary can be used to model the induced currents — as
shown on the right
The conductor must be excluded from the model by making it a perfect conductor. The outside
boundary of the model is moved to the inside surface of the conductor. This outside surface is
defined as an impedance boundary, using the conductivity and permeability specified previously.
Since the simulator does not have to actually compute a solution inside the conductor, the field
solution is computed more quickly and uses less memory. After solving, you can compute the ohmic
loss for the surface using the solution calculator and plot the loss density on the boundary.
Related Topics
This boundary condition defines a plane of geometric or magnetic symmetry in a structure. Assign it
only to the outer surfaces of the problem region.
To set a symmetry boundary:
1. Select the section of the geometry on which you want to apply the boundary condition
(typically an edge).
2. Click Maxwell2D>Boundaries>Assign>Symmetry.
The Symmetry Boundary dialog box appears.
3. Enter a name for the boundary in the Name box, or accept the default.
4. Select one of the following as the type of symmetry:
Odd Magnetic field is tangential to the boundary; its normal components are
(Flux zero.
Tangential)
Even Magnetic field is normal to the boundary; its tangential components are
(Flux Normal) zero.
5. Optionally, click Use Defaults to revert to the default values in the dialog box.
6. Click OK to assign the boundary to the selected object.
Related Topics
Master and slave boundaries enable you to model planes of periodicity where the Magnetic Field at
every point on the slave boundary surface is forced to match the Magnetic Field of every
corresponding point on the master boundary surface. The transformation used to map the Magnetic
Field from the master to the slave is determined by specifying a coordinate system on both the
master and slave boundaries.
To set a master boundary:
1. Select the edge to which you want to assign the master boundary.
2. Click Maxwell2D>Boundaries>Assign>Master.
The Master Boundary dialog box appears.
3. Enter a name for the boundary in the Name box, or accept the default.
4. To reverse the direction of the vector, select the Swap Direction check box.
5. Optionally, click Use Defaults to revert to the default values in the dialog box.
6. Click OK.
Assigning a slave boundary is the second step in creating matching boundaries. The field on the
master boundary is mapped to the slave boundary.
Note You must define a master boundary before creating the slave boundaries that are
associated with it. Assign slave boundaries only to the outer surfaces of the problem
region.
To set a slave boundary:
1. Select the section of the geometry on which you want to apply the boundary condition
(typically an edge).
2. Click Maxwell2D>Boundaries>Assign>Slave.
The Slave Boundary dialog box appears.
3. Enter a name for the boundary in the Name box, or accept the default.
4. Select the master boundary to which the slave is to be assigned from the Master Boundary
pull-down list.
5. In the Relation section, select one of the following to specify the field behavior on the
boundary:
Bs Click this radio button if the magnetic fields on the slave and master boundaries have
= the same magnitude and the fields oscillate in phase.
Bm
Bs Click this radio button if the magnetic fields on the slave boundary have the same
= - magnitude as the master boundary field but the fields oscillate 180 degrees out of
Bm phase.
6. Optionally, click Use Defaults to revert to the default values in the dialog box.
7. Click OK to assign the boundary to the selected object.
Specifies the total AC current in a conduction path. The conduction path may be contained
completely within the problem region (for example, a coil), or may touch the edges of the problem
region.
To specify the total AC current:
1. Select the 2D section of the geometry on which you want to apply the excitation.
2. Click Maxwell2D>Excitations>Assign>Current.
The Current Excitation dialog box appears.
3. Enter a name for the excitation in the Name box, or accept the default.
4. Enter the current strength in the Value box.
5. Enter the phase for the current in the Phase box.
6. Select the Solid or Stranded radio button to specify the type of conductor.
7. Select either Positive or Negative as the Ref. Direction for the conductor.
8. Optionally, click Use Defaults to revert to the default values in the dialog box.
9. Click OK to assign the excitation to the selected object.
Specifies the total AC current in a parallel conduction path consisting of at least two conductors.
To specify the total AC current:
1. Select the 2D sections of the geometry on which you want to apply the excitation. At least two
section must be specified
2. Click Maxwell2D>Excitations>Assign>Parallel Current.
The ParallelCurrent Excitation dialog box appears.
3. Enter a name for the excitation in the Name box, or accept the default.
4. Enter the current strength in the Value box.
5. Enter the phase for the current in the Phase box.
6. Select the Solid or Stranded radio button to specify the type of conductor.
Note For parallel solid conductors, the current split will be based upon the overall field
solution including eddy effects (the currents in individual parallel conductors will
have complex values, which are proportional with the respective admittances, and in
general will have different phase angles between them). If stranded conductors are
specified, the current is split based upon the relative areas of the selected
conductors.
7. Select either Positive or Negative as the Ref. Direction for the conductor.
8. Optionally, click Use Defaults to revert to the default values in the dialog box.
9. Click OK to assign the excitation to the selected object.
This command specifies the applicable component (depending on XY or RZ solution type) of the AC
current density. If the current density is a function of position, the value is entered in ampere/m2,
even if you change the units in the problem.
To define the current density:
1. Select the section of the geometry (i.e., the conductor) in which you want to apply the
excitation (typically a 2D object).
2. Click Maxwell2D>Excitations>Assign>Current Density.
The Current Density Excitation dialog box appears.
3. Enter a name for the excitation in the Name box, or accept the default.
4. In the Parameters section, specify the following options:
a. Enter the current strength in the Value box. The value may be a single numeric value or a
spatial function.
b. If the value is specified as a spatial function, select the Coordinate System from the pull-
down list.
c. Enter the phase angle, θ, of the current density in the Phase field, and select a unit from
the pull-down list.
5. Optionally, click Use Defaults to revert to the default values in the dialog box.
6. Click OK to assign the excitation to the selected object.
3. On the General tab, enter a name for the excitation in the Name box, or accept the default.
4. In the Parameters section, enter the number of conductors for the coil in the Number of
Conductors box.
5. Select one of the following for the Polarity:
l Positive
l Negative
l Function
6. If you selected Function as the Polarity, enter a function in the text box.
7. Optionally, on the Defaults tab, click Save Defaults to save the current settings or click
Revert to Standard Defaults to revert to the default values in the dialog box.
8. Click OK to assign the coil to the selected object.
Note To add this coil to an existing winding, do the following:
1. In the project tree, right-click the coil terminal, and select Add to Winding.
The Add to Winding dialog box appears.
2. Select the winding to which you ant to add the coil terminal, and click OK.
Note To remove a coil terminal from an existing winding, do the following:
l In the project tree, right-click the coil terminal, and select Remove from
Winding. The terminal is removed from the winding and moved up one level in
the project tree (directly beneath Excitations).
l Alternatively, all coils assigned to a winding may be deleted by right-clicking
the winding in the project tree and selecting Delete All Coils.
Note If you wish to define a winding for a 2D transient solution type, refer
to "Assigning a Winding Setup for a 2D Transient Solver" on
page 11-50 .
You can use the pre-defined coil terminal(s) to define one or more current or voltage windings.
To define a winding for your model:
1. Click Maxwell 2D>Excitations>Add Winding to open the Winding dialog box.
2. Enter a name for the winding in the Name box, or accept the default.
3. In the Parameters section:
a. Select Current, Voltage, or External from the Type pull-down list. The winding type
selected enables only those fields (Initial Current, Resistance, Inductance, Voltage,
Phase) applicable for the chosen type.
b. Select the Solid or Stranded radio button to specify the type of conductor.
c. Enter values in the following fields (enabled according to winding type), and select the
desired units:
For a current winding For a voltage winding1 For an external winding
Current Resistance (no settings required)
Phase Inductance
Voltage
Phase
Note You can also type a function as an expression for any of these fields except Initial
Current.
d. Enter a value in the Number of parallel branches text box.
4. Optionally, click Use Defaults to revert to the default values in the dialog box.
5. Optionally, on the Defaults tab, click Save Defaults to save the current settings or click
Revert to Standard Defaults to revert to the default values in the dialog box.
6. Click OK to assign the excitation to the selected object.
The definition of a winding is final only after specifying the coils which belong to it.
Note To add a coil terminal to this winding, do the following:
1. In the project tree, right-click the winding, and select Add Coils. The Add
Terminals dialog box appears, listing all coil terminals that do not already belong to
that winding.
2. Select the coil terminal (s) you want to add. To select multiple terminals, press CTRL
and click each terminal.
3. Click OK.
To assign a coil terminal excitation and add it to this winding, do the following:
1. Select the section of the geometry on which you want to apply the coil terminal
excitation.
2. In the project tree, right-click the winding, and select Assign Coil.
The Coil Excitation dialog box appears.
3. Enter a name for the excitation in the Name box, or accept the default.
4. In the Parameters section, enter the number of conductors for the coil in the
Number of Conductors box.
Note: This value represents only the number of conductors inside of the selected
geometry. If the Coil Terminal is cut due to symmetry, then only enter the Number of
Conductors in the portion modeled.
5. Select one of the following for the Polarity:
• Positive
• Negative
• Function
6. If you selected Function as the Polarity, enter a function in the text box.
7. Optionally, click Use Defaults to revert to the default values in the dialog box.
8. Click OK to assign the coil terminal excitation. The coil terminal excitation is assigned
and is added to the winding.
To delete all coil terminal excitations that belong to this winding, do the following:
l In the project tree, right-click the winding, and select Delete All Coils. All coil
terminal excitations are removed from the winding and deleted from the excitations.
Related Topics
1. For a solid winding, the resistance term can represent: the resistance of a portion of the
winding which is not modeled (for instance, end-effects), the leads connecting the winding to
the source, or the source resistance. (The main winding resistance is calculated directly by the
solver.) For a stranded winding, the resistance term is the complete DC resistance of the
winding (since the solver does not determine resistance of a stranded winding) as well as the
resistance of the end-effects, leads, source, etc. For both solid and stranded windings, the
inductance term can represent: the extra inductance for a portion of the winding of the winding
which is not modeled (for instance, end-effects), the leads connecting the winding to the
source, or the source inductance. (The main winding inductance itself is calculated directly by
the solver.)
The Maxwell Circuit design editor is used to setup the external circuit excitation for windings in
Maxwell 2D and 3D Eddy current solutions. Because the Eddy current solver is a frequency domain
solver, only linear circuit components are supported, which include Resistance, Inductance,
Capacitance, and Transformer. In addition, only sinusoidal sources should be used as sources.
Sinusoidal Current Source and Sinusoidal Voltage Source, designed for transient solutions, can also
be used for eddy current solutions. For example, to use the sinusoidal current source, you should set
the parameters as follows:
l Set I0, Td, and Df to zero, where I0 is offset current in Amps, Td is the delay time in seconds,
l Use IFreq to set the signal frequency. Note that setting IFreq is not necessary as it will be
Note that “Phase” is the signal phase delay. The complex source in the eddy current solver is
represented in phasor form as:
In the complex expression, θ is defined as phase, while in Maxwell Circuit, Phase is defined as phase
delay. Thus:
As a result, you should enter the negative of phase of the complex signal as the Phase value.
An example of such a setup for is shown below.
An example of an external circuit excitation for the winding for an Eddy current solver is shown
below.
Note For frequency domain eddy current solutions, only linear circuit components are supported,
which include Resistor, Inductor, Capacitor, and Transformer. Only sinusoidal sources
should be used as sources.
a. If no external winding connections have been set up for your model, the Winding
Information tab lists the external winding(s) in the design. Continue with step 2.
b. If external windings have already been set up, continue with step 7.
2. On the Winding Information tab, click Create Circuit to add a circuit design to the project.
The new circuit design automatically opens for editing in the Maxwell Circuit Editor. The circuit
includes one inductor for each external winding in the original Maxwell transient design. The
example below is for a design having one external winding.
3. Add the components needed to complete the external circuit design such as shown the
example below.
4. When the circuit design is finished, click Maxwell Circuit>Export Netlist and export the
netlist .sph file to the desired location.
5. Return to the Maxwell design and click Maxwell 2D>Excitations>External Circuit>Edit
External Circuit to open the Edit External Circuit dialog. You can also right-click on
Excitations in the Project tree and select External Circuit>Edit External Circuit.
6. On the Winding Information tab, click Import Circuit to import the circuit.
7. To view a list of inductors in the imported circuit, click the Available Inductors tab.
8. To view the sources used in the externally connected windings, click the Source Type tab.
9. If variables are used in the imported circuit, they and their design values are listed on the
Parameter Values tab. You can link to variables within the imported circuit as follows:
a. On the Parameter Values tab, click in the Value column of the parameter to be
mapped.
b. Enter a new local variable name and press the Enter key to open the Add Variable
dialog.
c. Select a Unit Type and Unit, and enter a Value for the variable and click OK. The new
Maxwell variable is now mapped to the variable in the imported circuit, and can be
varied directly by Maxwell or used for Optimetrics analyses.
10. If the imported file is a .sph file, you can click the Circuit Path tab to view the original project
and design names.
11. Click OK to close the Edit External Circuit dialog box.
Related Topics
circuit.
l Permanent magnet(s).
You will need to set at least one outer boundary to the following:
l Value (vector potential) boundary conditions.
Related Topics
2D Transient Boundaries
2D Transient Excitations
Technical Notes: Transient Simulation
Specifying the Solver Type
Permanent Magnet Excitations
2D Transient Boundaries
The transient field solver allows you to define the same types of boundary conditions as
magnetostatic ones.
Boundary
H-Field Behavior Used to model...
Type
Default Field behaves as follows: Initially, object interfaces have
Boundary l Natural boundaries — Tangential H and natural boundaries; outer
Conditions normal B are continuous across surfaces boundaries, and excluded
(Natural and without current density distribution. objects have Neumann
Neumann) Tangential H has a jump if the surface has boundaries.
current density distribution.
l Neumann boundaries — Magnetic field is
Master and The Magnetic Field on the slave boundary is Planes of symmetry in periodic
Slave forced to match the magnitude and direction (or structures where Magnetic
(Matching) the negative of the direction) of the Magnetic Field is oblique to the
Field on the master boundary. boundary.
are continuous across surfaces without current density distribution. Tangential H has a jump if
the surface has current density distribution.
l Neumann boundaries are assigned to the outside edges of the problem region. Magnetic field
This boundary condition defines a plane of geometric or magnetic symmetry in a structure. Assign it
only to the outer surfaces of the problem region.
To set a symmetry boundary:
1. Select the section of the geometry on which you want to apply the boundary condition
(typically an edge).
2. Click Maxwell2D>Boundaries>Assign>Symmetry.
The Symmetry Boundary dialog box appears.
3. Enter a name for the boundary in the Name box, or accept the default.
4. Select one of the following as the type of symmetry:
Odd Magnetic Field is tangential to the boundary; its normal components are
(Flux zero.
Tangential)
Even Magnetic Field is normal to the boundary; its tangential components are
(Flux Normal) zero.
5. Optionally, click Use Defaults to revert to the default values in the dialog box.
6. Click OK to assign the boundary to the selected object.
Related Topics
Master and slave boundaries enable you to model planes of periodicity where the Magnetic Field at
every point on the slave boundary surface is forced to match the Magnetic Field of every
corresponding point on the master boundary surface.
To set a master boundary:
1. Select the edge to which you want to assign the master boundary.
2. Click Maxwell2D>Boundaries>Assign>Master.
The Master Boundary dialog box appears.
3. Enter a name for the boundary in the Name box, or accept the default.
4. To reverse the direction of the vector, select the Swap Direction check box.
5. Optionally, click Use Defaults to revert to the default values in the dialog box.
6. Click OK.
Maxwell computes the Magnetic Field on this boundary and maps it to the slave boundary using the
transformation defined by the master and slave coordinate systems.
Assigning a slave boundary is the second step in creating matching boundaries. The field on the
master boundary is mapped to the slave boundary.
Note You must define a master boundary before creating the slave boundaries that are
associated with it. Assign slave boundaries only to the outer surfaces of the problem
region.
To set a slave boundary:
1. Select the section of the geometry on which you want to apply the boundary condition
(typically an edge).
2. Click Maxwell2D>Boundaries>Assign>Slave.
The Slave Boundary dialog box appears.
3. Enter a name for the boundary in the Name box, or accept the default.
4. Select the master boundary to which the slave is to be assigned from the Master Boundary
pull-down list.
5. In the Relation section, select one of the following to specify the field behavior on the
boundary:
Bs Click this radio button if the magnetic field on the slave and master boundaries have
= the same magnitude and direction.
Bm
Bs Click this radio button if the magnetic field on the slave boundary has the same
=- magnitude as but the opposite direction from the master boundary field.
Bm
6. Optionally, click Use Defaults to revert to the default values in the dialog box.
7. Click OK to assign the boundary to the selected object.
2D Transient Excitations
Transient problems use the following types of excitations:
Note A winding is a versatile type of excitation. Six different combinations can be used: Current,
Voltage, and External Circuit — each with a solid or stranded conductor. The Coil Terminal
type of excitation needs to be defined prior to setting up a winding.
In addition, permanent magnet materials serve as sources of magnetic fields.
This command specifies the applicable component (depending on the XY or RZ type of application)
of the transient current density in an object. If the current density is a function of position, the value is
entered in ampere/m2, even if you change the units in the problem.
To define the current density:
1. Select the section of the geometry (i.e., the conductor) in which you want to apply the
excitation (typically a 2D object).
2. Click Maxwell2D>Excitations>Assign>Current Density.
The Current Density Excitation dialog box appears.
3. Enter a name for the excitation in the Name box, or accept the default.
4. In the Parameters section, specify the following options:
a. Enter the current strength in the Value box. The value may be a single numeric value or a
spatial function.
b. If a spatial function is entered for the Value, select the Coordinate System from the pull-
down list.
5. Optionally, click Use Defaults to revert to the default values in the dialog box.
6. Click OK to assign the excitation to the selected object.
l Negative
l Function
6. If you selected Function as the Polarity, enter a function in the text box.
7. Optionally, click Use Defaults to revert to the default values in the dialog box.
8. Click OK to assign the coil to the selected object.
Note To add this coil to an existing winding, do the following:
1. In the project tree, right-click the coil terminal, and select Add to
Winding.
The Add to Winding dialog box appears.
2. Select the winding to which you ant to add the coil terminal, and click
OK.
Note To remove a coil terminal from an existing winding, do the following:
l In the project tree, right-click the coil terminal, and select Remove from
Winding.
The terminal is removed from the winding and moved up one level in the
project tree (directly beneath Excitations).
l Alternatively, all coils assigned to a winding may be deleted by right-clicking
the winding in the project tree and selecting Delete All Coils.
Related Topics
Related Topics
Note If you wish to define a winding for a 2D Eddy Current solution type, refer
to "Assigning a Winding Setup for a 2D Eddy Current Solver" on
page 11-38 .
You can use the pre-defined coil terminal(s) to define one or more current or voltage windings.
To define a winding for your model:
1. Click Maxwell 2D>Excitations>Add Winding to open the Winding dialog box.
2. Enter a name for the winding in the Name box, or accept the default.
3. In the Parameters section, select Current, Voltage, or External from the Type pull-down
list.
Note Maxwell transient designs can be dynamically coupled to Simplorer components
through the Simplorer user interface. You can enable this feature on the Advanced
Product Coupling tab of the Design Settings dialog box. Source windings set to
External are available as conservative pins in Simplorer. For more information,
refer to the Online Help for Simplorer Version 8 and later.
4. Select the Solid or Stranded radio button to specify the type of conductor.
5. Enter values in the following fields, and select the desired units:
For a current winding For a voltage winding1 For an external winding
Current Initial Current Initial Current
Resistance
Inductance
Voltage
Note You can also type a function as an expression for any of these items except initial
current.
6. Enter a value in the Number of parallel branches text box.
7. Optionally, click Use Defaults to revert to the default values in the dialog box.
8. Click OK to assign the excitation to the selected object
The definition of a winding is final only after specifying the coils which belong to it.
Note To add a coil terminal to this winding, do the following:
1. In the project tree, right-click the winding, and select Add Coils.
The Add Terminals dialog box appears, listing all coil terminals that do not already
belong to that winding.
2. Select the coil terminal (s) you want to add. To select multiple terminals, press CTRL
and click each terminal.
3. Click OK.
To assign a coil terminal excitation and add it to this winding, do the following:
1. Select the section of the geometry on which you want to apply the coil terminal
excitation.
2. In the project tree, right-click the winding, and select Assign Coil.
The Coil Excitation dialog box appears.
3. Enter a name for the excitation in the Name box, or accept the default.
4. In the Parameters section, enter the number of conductors for the coil in the
Number of Conductors box.
Note: This value represents only the number of conductors inside of the selected
geometry. If the Coil Terminal is cut due to symmetry, then only enter the Number of
Conductors in the portion modeled.
5. Select one of the following for the Polarity:
• Positive
• Negative
• Function
6. If you selected Function as the Polarity, enter a function in the text box.
7. Optionally, click Use Defaults to revert to the default values in the dialog box.
8. Click OK to assign the coil terminal excitation.
The coil terminal excitation is assigned and is added to the winding.
To delete all coil terminal excitations that belong to this winding, do the following:
l In the project tree, right-click the winding, and select Delete All Coils.
All coil terminal excitations are removed from the winding and deleted from the
excitations.
Related Topics
Setting up a Y Connection
1. For a solid winding, the resistance term can represent: the resistance of a portion of the
winding which is not modeled (for instance, end-effects), the leads connecting the winding to
the source, or the source resistance. (The main winding resistance is calculated directly by the
solver.) For a stranded winding, the resistance term is the complete DC resistance of the
winding (since the solver does not determine resistance of a stranded winding) as well as the
resistance of the end-effects, leads, source, etc. For both solid and stranded windings, the
inductance term can represent: the extra inductance for a portion of the winding of the winding
which is not modeled (for instance, end-effects), the leads connecting the winding to the
source, or the source inductance. (The main winding inductance itself is calculated directly by
the solver.)
The Y Connection function available in 2D Transient solution types allows multiple windings to be
connected in a classical Y (sometimes referred to as wye) configuration with the negative terminals
connected to a common node as illustrated below.
Setup Y Connection requires voltage winding definitions be set and the negative voltage terminal
for each winding will be connected to form the common node of the circuit.
Each voltage source specified in the winding description drives the positive side of the coil. Y
Connections are commonly used in motor and transformer applications driven by 3-phase voltage;
however, any number of windings may be connected to a common node in Maxwell2D.
Note Only one Y connection is allowed in a given Maxwell
design.
To define a Y-connection:
1. Click Maxwell2D>Excitations>Setup Y Connection.
The Setup Y Connection dialog appears.
2. In the Winding list on the left, select the windings to be grouped into a Y connection.
3. Click the Group button to create a Y Connection group with the selected windings.
4. Click OK when all required grouping have been created.
Related Topics
Note Use of external circuits is indicated when more complex excitation circuits such as rectifiers,
inverters, etc., containing components such as diodes, transistors, complex sources, etc.
are needed. There is no need to use an external circuit for simple current or voltage sources
supplying the windings.
Note External circuits intended for use with the Time Decomposition Method (TDM) can only
support basic circuit elements that are solution-independent. This is because, for TDM, all
time steps (or all time steps in a subdivision) are solved simultaneously - and thus the circuit
topology and its parameters must be known before solving. Therefore some circuit
elements, such as solution-dependent switches, diodes, capacitors, and inductors which
are not directly connected to windings in series, are not supported.
An external circuit netlist can be complex as shown in the example below.
b. If external windings have already been set up, continue with step 7.
2. On the Winding Information tab, click Create Circuit to add a circuit design to the project.
The new circuit design automatically opens for editing in the Maxwell Circuit Editor. The circuit
includes one inductor for each external winding in the original Maxwell transient design. The
example below is for a design having one external winding.
3. Add the components needed to complete the external circuit design such as shown the
example below.
4. When the circuit design is finished, click Maxwell Circuit>Export Netlist and export the
netlist .sph file to the desired location.
5. Return to the Maxwell design and click Maxwell 2D>Excitations>External Circuit>Edit
External Circuit to open the Edit External Circuit dialog. You can also right-click on
Excitations in the Project tree and select External Circuit>Edit External Circuit.
6. On the Winding Information tab, click Import Circuit to import the circuit.
7. To view a list of inductors in the imported circuit, click the Available Inductors tab.
8. To view the sources used in the externally connected windings, click the Source Type tab.
9. If variables are used in the imported circuit, they and their design values are listed on the
Parameter Values tab. You can link to variables within the imported circuit as follows:
a. On the Parameter Values tab, click in the Value column of the parameter to be
mapped.
b. Enter a new local variable name and press the Enter key to open the Add Variable
dialog.
c. Select a Unit Type and Unit, and enter a Value for the variable and click OK. The new
Maxwell variable is now mapped to the variable in the imported circuit, and can be
varied directly by Maxwell or used for Optimetrics analyses.
10. If the imported file is a .sph file, you can click the Circuit Path tab to view the original project
and design names.
11. Click OK to close the Edit External Circuit dialog box.
Note The user-set time steps can be modified when external circuits are used to drive the
windings of the transient finite element model. Following is a list of situations that will lead
to a time step change:
l All power electronic switching instances that do not coincide with user-specified solve
times request a new solution time from the transient solver. The respective switching
generating a new solve time request for the transient solver can be time, position, or
speed dependent.
l When current and/or voltage sources with a piecewise linear variation are used, a
new solution time is requested from the transient solver at each (time) definition point
used in the corresponding source definition table.
l When the change in any winding inductance value is excessive, a new time step
(smaller) is calculated and a new solution generated (re-calculated) accordingly.
If a user-specified save field time is missed because of the above reasons, the next solved
time step fields are saved instead.
Related Topics
In addition to using the Maxwell Circuit Editor to set up an external circuit, you also can use Matlab®
Simulink® to set up an external circuit for both Maxwell 2D and 3D transient designs.
l Supported Simulink versions are: R2012b, R2013a, R2013b, R2014a, R2014b, and R2015a.
Refer to "Setting Up an External Circuit Using Simulink " on page 10-81 for detailed information.
Related Topics
l For Maxwell 2D designs only, two or more motion bands may be assigned, each with its own
independent motion characteristics. Multiple motion bands are used primarily for certain types
of motors where multiple rotors may rotate about a common central axis; however, other
applications are possible as shown in the following examples.
Note The two moving bands may not touch each other. There must be some stationary region
between the two bands, even if it is filled only with vacuum.
Note The moving bands may not touch each other. There must be some stationary region
between the bands, even if it is filled only with vacuum.
Related Topics
For both rotational and translational problems, the band object must always enclose all of the moving
objects. For rotational problems, this means the band object should be a solid cylinder or a solid
wedge — not a hollow shell or segment of a shell. If the band object encloses all moving aspects, it is
easier to identify the moving objects and reduces errors related to mis-identifying them.
Note An inner region enclosed by the band can normally be used as a “fake” moving object for
two reasons:
l The first is to avoid creating holes inside the band which would result in the band
l The second is due to the torque/force computation being carried out by one layer of
elements inside the band region that directly touches moving objects. If an inner
region is not included, the torque/force computation will be very sensitive to mesh
noise - thus leading to an inaccurate solution.
To assign the band of motion:
1. Select the band object.
2. Click Maxwell>Model>Motion Setup>Assign Band.
The Motion Setup window appears.
3. On the Type tab: select either Translation or Rotation as the Motion Type.
l For Rotation about a fixed point you may select the Non-Cylindrical check box.
For Periodic motion, you must define master and slave boundary conditions. Both band and
the object(s) inside it move, and both should touch the master and slave boundaries as shown
in the example below.
5. On the Data tab: type a value in the Initial Position box, and select the units from the pull-
down list.
6. To set the motion limits, do the following in the Translate Limit or Rotate Limit section:
Note For Periodic motion, you do not need to define motion limits because the solver does
not consider the limits for periodic motion; thus the Translate Limit section is not
present.
a. For rotational motion, click the Rotate Limit check box.
b. For translational (non-Periodic) or rotational motion, type a value in the Negative box,
and select the units from the pull-down list.
c. For translational (non-Periodic) or rotational motion, type a value in the Positive box, and
select the units from the pull-down list.
7. On the Mechanical tab, do one of the following to specify the object velocity (dynamic or
constant):
Note When you select Consider Mechanical Transient, you are telling the solver to use
the calculated force and user-specified mass, damping, and other parameters to
dynamically determine how the object moves, rather than giving it a constant
velocity.
Note l For Maxwell 2D/3D designs for motor applications, the computed output
mechanical power at given constant speed may not reach the desired rated
power. Therefore, it is useful to apply constant power as the mechanical load.
In Maxwell 2D/3D designs created by RMxprt, the mechanical transient is set
up according to the rated mechanical output power, and equivalent damping is
added to accelerate the process approaching to the rated output power. This
setup is visible when Consider Mechanical Transient is checked.
l 2D/3D designs generated from RMxprt include the setup data, but Consider
Mechanical Transient is unchecked initially. To ensure that the setup data is
preserved, make sure that you check Consider Mechanical Transient
before saving the project.
l To dynamically change how the object moves, click the Consider Mechanical Transient
check box, complete the following fields, and select any corresponding units:
l Initial Velocity (translational) or Initial Angular Velocity (rotational)
l Mass (translational) or Moment of Inertia (rotational)
Use the Calculate button to have Maxwell calculate the Mass or Moment of Inertia with
the following restrictions:
l For 2D problems, the moving bodies are assumed to be of model-unit thinness.
l Rotating bodies must be symmetric about the axis of rotation. Partial models (e.g., half
l Damping (linear motion) – A value for damping for linear motion can be calculated by
the windage and friction loss in Watts divided by the speed in m/sec (at which those
losses are defined); this is Damping with resulting units of (W / (m/sec)^2) or (N*m *
sec/m).
l Load Force (translational) or Load Torque (rotational)
Note l For translational motion, the load force is positive if it is applied in the
same direction as the moving vector and negative if applied in the
opposite direction.
l For rotational motion, the load torque sign is determined based on the
moving vector, using the right-hand rule. Point your thumb in the direction
of the moving vector. If the load torque is applied in the same direction as
your fingers, then the load torque is positive. If it is applied in the opposite
direction, then the load torque is negative.
l To set a constant velocity (and disable the mechanical transient), clear the Consider
Mechanical Transient check box, type a value in the Velocity or Angular Velocity box,
and select the units from the pull-down list.
8. For translational motion, a Post-Processingtab is available to set the coordinate system for
post processing calculation.
9. Click OK.
l A MotionSetupx is created and added to the Model folder in the Project Manager
window.
l For Maxwell 3D projects only, if cylindrical Rotation was specified and a CylindricalGap
mesh operation does not already exist, a CylindricalGap mesh operation is automatically
added to the Mesh Operations folder. Only one CylindricalGap mesh operation is
permitted.
Related Topics
2. Edit the desired properties in the Motion Setup dialog box. Refer to Assigning a Band of
Motion for detailed information on the various Motion Setup dialog box settings.
Related Topics
Related Topics
Related Topics
Related Topics
Related Topics
l For a 3D Maxwell project, enter the desired dx, dy , and dz translation values, the offset
angle, and the tilting angle for the rotating part eccentricity axis and rotation axis. The
unit of measure for translation values is the model’s unit, which is set using
Modeler>Units.
5. Click the Finish button at the bottom of the page. The page closes and the wizard adds a new
design in the same project, in which the Maxwell geometry has been updated in accordance
with the eccentricity setup values you entered as follows:
For 2D designs
l Design variables are created for each of the data entered in the wizard.
For rotating part eccentricty:
_Eccentricity_translation_of_moving_parts
For rotation axis eccentricity:
_Eccentricity_translation_of_rotating_axis
l The moving parts in the design motion setup are shifted according to the data defined
for Rotating Part Eccentricity in the Wizard. New coordinate systems are generated
as the object coordinate systems for moving parts, according to the same operations.
l The band is translated according to the data defined for Rotation Axis Eccentricity in
the wizard.
l The Moving Vector entry in the design’s motion setup is replaced with the new
direction (represented by an axis of a new coordinate system) generated according to
the data defined for Rotation Axis Eccentricity in the Wizard.
l Using the wizard to modify a design that has already been set up for
eccentricity is not recommended.
For 3D designs
l Design variables are created for each of the data entered in the wizard.
For rotating part eccentricty:
_Eccentricity_offset_angle_of_moving_parts
_Eccentricity_translation_of_moving_parts
_Eccentricity_tilting_angle_of_moving_parts
For rotation axis eccentricity:
_Eccentricity_offset_angle_of_motion_axis
_Eccentricity_translation_of_motion_axis
_Eccentricity_tilting_angle_of_motion_axis
l The moving parts in the design motion setup are rotated and shifted according to the
data defined for Rotating Part Eccentricity in the Wizard. New coordinate systems
are generated as the object coordinate systems for moving parts, according to the same
operations.
l The band is rotated and translated according to the data defined for Rotation Axis
Eccentricity in the wizard.
l The Moving Vector entry in the design’s motion setup is replaced with the new
direction (represented by an axis of a new coordinate system) generated according to
the data defined for Rotation Axis Eccentricity in the Wizard.
l New design coordinate systems are created.
For the motion moving vector:
_Eccentricity_motion_axis_CS
_Eccentricity_motion_axis_tilting_axis_CS
For the moving parts:
_Eccentricity_moving_part_tilting_axis_CS
_Eccentricity_moving_part_translation_CS
_Eccentricity_moving_part_CS_<part name> – one for each moving part
Note l All the above operations of rotation and translation, as well as the
creation of new coordinate systems, are dependent on the eccentricity
design variables.
l You can modify these design variables to adjust the eccentricity.
l The newly added coordinate systems should not be changed manually
by the user.
l Using the wizard to modify a design that has already been set up for
eccentricity is not recommended.
Note When modeling motion eccentricity, the position and direction of the moving objects and/or
band are adjusted based on the eccentricity setup. In such cases, all the adjustments are
referenced to the original position and direction of the geometry of each object, As a result,
after you finish the eccentricity setup and click the Finish button, all the geometries in the
design created by the wizard are updated to new positions based on the eccentricity setup.
If you want to edit geometry, you should do so in the original design. After editing the
geometry, you can then re-do the eccentricity setup to create a new design.
Related Topics
Assigning a Matrix
To solve for a capacitance, inductance, or impedance matrix:
1. Click Maxwell3D or Maxwell2D, and then select Parameters>Assign>Matrix.
The Matrix dialog box appears.
2. Click the Setup tab.
3. Type a name for the matrix in the Name box.
4. To specify the sources to be included in the matrix, select or clear the Include check box for
any sources listed.
5. For Maxwell2D designs, the return path for each source may be specified. By default, the
return path is at infinity; however, any conductor with a source specified can act as the return
path.
6. Click the Post Processing tab (present for magnetostatic and eddy current solution types).
7. If more than one source is listed on the left side, you can click the Post Processing tab and
Group them to organize multiple sources into a single group. The calculations defined in the
Post Processing tab do not impact the field solution and can be set up or changed after the
solution has been completed.
To Group multiple sources together:
l For outer terminals, the solver can only handle a conduction path with two terminals, and only
l If they are current density terminals, the first terminal is listed and can be selected.
l When setting up an inductance matrix, the source must be a current excitation. Voltage
path current is always opposite of the source current. If a conductor with excitation is specified
as the return path, the polarity setting of the excitation in the nominal problem setup is not
respected.
Related Topics
Reassigning Parameters
To reassign the geometry a parameter applies to:
1. Select the new object to which you want to assign an existing parameter.
2. Click Maxwell3D or Maxwell2D, and then select Parameters>Reassign.
The Reassign Parameter window appears.
3. Select the force or torque you want to reassign from the Reassign Geometry for list.
4. Click OK.
The parameter is reassigned to the new object.
l Boundaries
l Excitations
l Mesh Operations
l Analysis Setup
Related Topics
Related Topics
Related Topics
Further regions refined under this operation and their close neighbors do not participate in solution
adaptive refinement. This is another reason to use this seeding operation with caution.
You can also specify Initial Mesh Settings to apply to all objects; however, if you apply separate
surface approximation mesh operations to specific objects, the object settings take precedence over
the general setting.
Related Topics
Optionally for 3D transient simulations of rotational models only, if you wish to apply a clone
mesh operation, check Clone Mesh. This option is unchecked by default. If the model is not
suitable to make a clone mesh or the clone mesh process fails, Maxwell automatically falls
back to the regular TAU 3D mesher. Because the clone mesh is generated in the initial mesh,
the initial mesh is deleted and regenerated once this option is changed and you click OK.
Related Topics
l The model has a non-skewed stator with more than two teeth.
Note When Clone Mesh is used, the only additional mesh operation that can be used is
surface approximation. If any other mesh operation is used, the clone mesh
operation will be ignored.
The solid bodies adjacent to the band are detected to identify the clone object. If the object has
more than two teeth that are close to the band, the teeth will be verified to see they have the
identical geometric features. If the teeth are skewed, TAU will fall back to the regular mesh.
Otherwise the region from the radius of teeth to the outer edge of the object will be further
classified and verified to see if the object has the multiple 3D identical sub-regions.
If a 3D clone region has been identified, TAU will classify the 3D rotational model into a static
region and a moving region by the band object radius. The Static region includes the clone
region and skewed coils regions at one side or two sides. Clone mesh method will then be
used to generate the mesh in the clone region, while the TAU regular mesh method will be
used to generate the mesh at other skewed regions.
The moving region includes skewed coils regions in which the TAU regular mesh method is
used to generate the mesh, and also the non-skewed sweep regions in which the TAU sweep
mesh method is used to make the mesh.
3D Clone Mesh
A 3D clone region may have only one simple object, or several sections of clone objects with
the gap between as shown in the following images.
To ensure the identical volume mesh in each sub-region, the volume mesh is generated in the
Master region, then by using a copy-and-paste method to duplicate the mesh at all child
regions. In the 3D master region, if the region is also symmetric, then a symmetric mesh is
generated. “Sweeping mesh” technology is used to make the volume mesh in the master
region. In the half of the master region, a surface mesh is generated at the axis side. The
volume mesh is generated by sweeping the surface mesh in the axis direction to fulfill the
clone master region.
The volume mesh will be mirrored to the other half of the master region to produce the
symmetric mesh in the master region.
The volume mesh in the master region is then duplicated and translated to the child regions
with copy and paste technology in TAU to complete the 3D clone region mesh.
3D TAU Mesh
Beyond the 3D clone region, normally the regions have skewed coils. Therefore TAU regular
mesher will be used to make the mesh.
3D Sweep Mesh
The rotational model for a moving region may have different structures. It may have all skewed
coils and rotors. In this case, the TAU regular mesh will be used to make the mesh.
At the axis direction, the moving region can be classified into several specific regions. If the
region has skewed objects, it is called a “regular section,” and the TAU regular mesh is
applied. If the region can be geometrically sweeping at the axis direction, the region is called a
“sweep region,” and the TAU sweep mesh method is applied.
For the “sweep section,” a surface mesh is generated at the side, then the volume mesh is
made by sweeping the surface mesh in the axis direction. This ensures a uniform mesh in the
rotational direction, while maintaining the long aspect ratio in the axis direction to keep the
mesh size small.
The volume mesh for the rest of the regions is made by the TAU regular mesher.
Related Topics
2. Type a name for the mesh operation in the Name text box or accept the default name.
3. Type the skin depth within which to refine the mesh in the Skin Depth text box.
Alternatively, calculate the skin depth based on the object's material permeability and
conductivity and the frequency at which the mesh will be refined:
a. Click Calculate Skin Depth.
The Calculate Skin Depth dialog box appears.
d. Click OK.
Maxwell calculates the skin depth and enters its value in the Skin Depth text box.
4. In the Number of Layers of Elements text box, type the number of layers to add
perpendicular to the object's surface.
Maxwell will add an equivalent number of mesh points to each layer. For example, if Maxwell
added 10 points to satisfy the Surface Triangle Length, it will add 10 points to each layer.
Note Caution should be used with this mesh operation, as very thin layers may cause a
reduction in mesh quality or unnecessarily cause the generation of a very large mesh.
Furthermore, regions refined under this operation and its close neighbors do not
participate in solution adaptive refinement. This is another reason to use this seeding
operation with caution.
Related Topics
3. Type a name for the group of settings in the Name box, or accept the default name.
4. Under Curved Surface Meshing, you can select Use Slider or specify Manual Settings.
The slider includes a visual representation of the resolution you choose, ranging from Coarse
Resolution with a Small Mesh Size through a nine position scale to a fine resolution with a
Large Mesh Size.
5. If you choose Manual Settings, the dialog changes to show text fields.
6. If you select Surface Deviation (length), type the distance between the true surfaces of the
selected faces and the meshed faces in the text box, and select the units.
7. If you select Normal Deviation (angle), type the angular distance between the normal of the
true surface and the corresponding mesh surface, and select the units.
8. If you select Aspect ratio, type a value in the box. This value determines the shape of the
triangles. The higher the value, the thinner the triangles. Values close to 1 result in well-
formed, wide triangles.
9. Click OK.
The settings are applied to the initial mesh generated on the selected surface. The group of
settings is listed in the project tree under Mesh Operations.
You can also specify Initial Mesh Settings to apply to all objects; however, if you apply separate
surface approximation mesh operations to specific objects, the object settings take precedence over
the general setting.
Related Topics
Surface Approximation
Object surfaces in Maxwell may be planar, cylindrical or conical, toroidal, spherical, or splines. The
original model surfaces are called true surfaces. To create a finite element mesh, Maxwell first
divides all true surfaces into triangles. These triangulated surfaces are called faceted surfaces
because a series of straight line segments represents each curved or planar surface.
For planar surfaces, the triangles lie exactly on the model faces; there is no difference in the location
or the normal of the true surface and the meshed surface. When an object's surface is non-planar,
the faceted triangle faces lie a small distance from the object's true surface. This distance is called
the surface deviation, and it is measured in the model's units. The surface deviation is greater near
the triangle centers and less near the triangle vertices.
The normal of a curved surface is different depending on its location, but it is constant for each
triangle. (In this context, "normal" is defined as a line perpendicular to the surface.) The angular
difference between the normal of the curved surface and the corresponding mesh surface is called
the normal deviation and is measured in degrees.
The aspect ratio of triangles used in planar surfaces is based on the ratio of circumscribed radius to
the in-radius of the triangle. It is unity for an equilateral triangle and approaches infinity as the triangle
becomes thinner.
You can modify the surface deviation, the maximum permitted normal deviation, and the maximum
aspect ratio of triangles settings on one or more faces at a time in the Surface Approximation
dialog box. (Click Maxwell>Mesh Operations>Assign>Surface Approximation.)
The surface approximation settings are applied to the initial mesh.
Note For the initial mesh, all the vertices of the triangles lie on the true surfaces. During mesh
refinement, all the points are first added to the faceted surface for all products, not to the
true surfaces. Then, for all Maxwell projects, and for curvilinear meshing enabled HFSS
and HFIE projects, the points on the faceted surfaces will be moved to the curved surface
locations when such movement does not degrade the quality of the mesh.
surfaces more accurately. More accurate representation will increase the mesh size and
consume more CPU time and memory. The default settings are adequate for most
circumstances.
l If you want to obtain a faster solution by using a cruder representation of curved surfaces,
set the coarser setting for the whole object, not just a single face.
l It is difficult for Maxwell to satisfy aspect ratio demands if the aspect ratio value is set close
to 1 because an arbitrary shape cannot be filled with only equilateral triangles. Therefore,
setting the aspect ratio to 1 can lead to unreasonably large meshes. Maxwell limits the
aspect ratio to 4 for planar objects and 1.2 for curved objects.
Related Topics
Cloning a Mesh
(Cloning a Mesh applies to Maxwell2D Designs only)
The clone mesh operation allows users to use the mesh data from a user-specified parent region of a
Maxwell 2D design to apply identical meshes to its cloned regions. In the example shown below,
three cloned regions have been generated with an angular spacing of 90 degrees from the user-
drawn parent region.
Note For non-Transient solution types, this operation is applied only on the initial mesh. If you do
adaptive refinement, the meshes will no longer match; the operation is not reapplied during
adaptive refinement.
Clone mesh operations are performed after all other mesh operations are done.
1. To begin a clone mesh operation, select Maxwell 2D>Mesh Operations>Assign>Clone
Mesh... to open the Clone Mesh dialog box.
l Outer Radius
l End Angle
l Symmetry in Region - treat the region (parent and clone) as symmetric inside the region
3. Specify how to clone the parent region by defining the following parameters:
l Gap Angle (default=0) - angular spacing between clones
4. Like other mesh operations, the user can enter a Name, which can be enabled and disabled.
Multiple clone mesh operations (with different names) can be created.
5. When finished, click OK.
6. To edit the clone mesh setup data, use the dialog or the Properties window.
The model resolution parameter is used by the meshmaker to distinguish large features from small
features in the model. This setting controls how large a feature must be to be resolved by the
meshmaker. For example, if you set the model resolution length to 20 mm, any model features
smaller than 20 mm are not represented in the mesh. Neither the model nor the model files are
changed. The resolution only controls how the mesh for the model is represented.
While removing small details, if the meshmaker finds that the representation of the model is not
accurate enough, it returns an error condition. The meshmaker then starts with the most accurate
representation and prunes away the details smaller than the model resolution length. It returns an
error if the specified model resolution length forces the final representation to deviate too greatly
from the model.
You can set Model Resolution on one or more objects to remove unnecessary details from the mesh
representation. This can be used to reduce the mesh complexity of the selected objects.
A cautionary note is needed concerning the use of model resolution. It can sometimes make model
faces fail to be represented in the mesh, which can effectively remove some of your boundary
conditions. This can only happen if faces are closer together than the model resolution distance you
specify.
To modify the model resolution:
1. Select the object or objects on which to specify a Model Resolution operation.
2. Click Maxwell 3D>Mesh Operations>Assign>Model Resolution.
The Model Resolution Mesh Operation dialog box appears.
Alternatively, you can display the same dialog if you:
a. Right-click on either Mesh Operations in the Project Tree, or right-click in the Modeler
window to display the respective shortcut menu.
b. Click on Assign>Model Resolution in the Project Tree menu or click on Assign Mesh
Operation>Model Resolution on the shortcut menu.
The Model Resolution Mesh Operation dialog contains text fields for the mesh operation
Name and radio buttons with choices for the following
l Auto Simplify Using Effective Thickness
The mesher calculates the resolution length based on each object’s effective thickness.
One mesh operation can be assigned to many objects, and each will be simplified based
on its own dimensions. Use the Auto Simplify selection:
l To remove many details while retaining an object’s overall shape and size
l For objects of generally uniform thickness
l To assign one mesh operation to many objects
l Use Model Resolution length
This enables fields for you to specify the resolution value and units. Use this selection for:
l Tighter control of mesh accuracy.
l Objects of non-uniform thickness. For example, the thin section of the object shown
Related Topics
Reverting to the initial mesh is useful when you want to evaluate how a different solution frequency
affects the mesh generated during an adaptive analysis. You lose all solution data for a solve setup
and all of its sweeps when you revert to the initial mesh for that setup. You can do this for all solve
setups at once by selecting the command through Analysis in the menu system or project tree, or for
a specific solve setup via its right mouse click menu in the project tree.
Related Topics
l In the project tree, under Analysis, right-click the desired solution setup, and select Apply
Mesh Operations.
The same solve machine rules that apply to solving any other setup also apply here. The mesh
operation will be sent to the default solve machine, or the Maxwell Server Setup dialog may appear
to allow you to interactively specify a solve machine if "Prompt for analysis machine when launching
analysis" is selected under Tools>Options>General Options>Analysis Options tab.
l If a current mesh has been generated, Maxwell refines it using the defined mesh operations.
l If a current mesh has not been generated, Maxwell applies the mesh operations to the initial
mesh.
l If an initial mesh has not been generated, Maxwell generates it and applies the mesh
Related Topics
specific features (for example, stacks of large planar parallel facets with small gaps) and situations
where the initial TAU mesh is four times larger than the Classic. For Maxwell 2D designs TAU mesh
is the default.
In a few cases, you may decide to override the automatic or default choice and designate the mesher
to use. To do so:
1. Select Maxwell>Mesh Operations>Initial Mesh Settings... or in the Project tree, right-click
on Mesh Operations, and select Initial Mesh Settings from the shortcut menu.
The Initial Mesh Settings dialog box appears with the General tab selected.
2. In the Mesh Method pane:
For Maxwell 3D, you can select:
l Auto (the default) – the solver automatically selects the mesher. In most cases, this will
be TAU.
l TAU.
3. For Maxwell 3D only, you can also uncheck or check Apply curvilinear elements to all
curved surfaces. For models with curved surfaces, checking this increases accuracy, though
it costs more memory.
4. Under Curved Surface Meshing, you can select Use Slider or specify Manual Settings.
The slider includes a visual representation of the resolution you choose as ranging from
Coarse Resolution with a Small Mesh Size through a nine position scale to a a Fine
resolution with a Large mesh size.
For example moving the slider to the left changes the figure as follows:
5. If you choose Manual Settings, the dialog changes to show text fields.
This setting is for experienced users who have a good understanding of how particular values
will affect their models. In general, the Auto setting provides good results.
11. Click OK to apply your choices.
The settings will be applied to the initial mesh generated.
Related Topics
Related Topics
Two major regions: a static region and a moving region are classified by the Band gap.
In the Clone region, the Master region is calculated and analyzed. If the Master region has the
symmetric feature, the symmetric mesh is generated.
As shown above, a uniform mesh will be generated in one half of the Master region first, then the
mesh is mirrored about the symmetric central line to generate the symmetric mesh in the Master
region.
Because all the child regions have identical geometric features, the mesher uses copy-paste to
replicate the Master mesh at each of the child regions, rotating it to the appropriate angles.
This ensures the identical mesh in the different regions, especially for the teeth.
Related Topics
The TAU 2D regular mesher uses a top down meshing algorithm that starts the mesh from a uniform
base mesh, then adapts the mesh in the necessary regions, and does the boundary recovery later.
Mesh quality is controlled and maintained during the entire meshing process. To maintain a uniform
mesh, 1:2 splitting method is used for the transitions from small elements to large elements.
In most cases, users do not need to add any additional seed refinement mesh operations. The mesh
can be directly used to do the transient simulation. For solvers with adaptive passes, a few passes
can be saved for the convergence although the initial mesh is larger since it is high quality and
uniform.
Related Topics
make the edge selections. Remesh technology is then used to generate the mesh on the edges
based on the thickness of the first layer to maintain the mesh quality.
The aspect ratio in the layer mesh is defined by the element length in the tangential and normal
directions. The ratio will be in the range of 1 to 40 based on the smallest thickness in the layers.
Different layer mesh methods are using depending on the ratios. If the ratio is smaller than 4.0, the
middle points of the edges are used to advance layers forward as shown below.
If the ratio is more than 4.0, edge points are used to advance layers.
Related Topics
Related Topics
Related Topics
3. In the Edge Cut Based Refinement dialog box, you can rename the mesh operation, and
specify the layer thickness. The recommended layer thickness is the band gap distance.
4. Click OK.
Related Topics
3. In the Rotational Layer Based Refinement dialog box, you can rename the mesh
operation, specify the number of layers (maximum of 3), and the total thickness of all the layers
combined.
4. Click OK.
Related Topics
5. Right-click to open the context menu, and select Assign Mesh Operation>Inside
Selection>Rotational Layer Mesh.
6. In the Rotational Layer Based Refinement dialog box, you can rename the mesh
operation, specify the number of layers (maximum of 3), and the total thickness of all the layers
combined.
7. Click OK.
Related Topics
To reassign which bodies the mesh operations are applied to, first select all the bodies you would like
to assign the bodies to. Then right click the mesh operation in the Project Manager and select
“Reassign.” The mesh operation will now be reassigned to the selected objects.
Related Topics
Note This will not alter any existing meshes that have already made use of one or more mesh
refinement operations. However, deleted mesh operations will not be used again after
reverting to the initial mesh.
1. Select the object or objects to which you want to reassign the mesh operation.
2. Under Mesh Operations, right-click the mesh refinement you had previously completed.
A shortcut menu appears.
3. Select Reassign from the shortcut menu.
The mesh operation is reassigned to the currently selected objects.
To view the objects to which a mesh operation is assigned:
1. In the Project tree, select the mesh operation.
2. Right-click the mesh refinement you had previously completed.
A shortcut menu appears.
3. Select Select Assignment from the shortcut menu.
The objects to which the operation is assigned are selected.
Related Topics
l Adaptive mesh refinement parameters if you want the mesh to be refined iteratively in areas of
highest error.
General Includes general solution settings. Also contains a button for setting HPC and
Analysis Options, which allows you to select or create an analysis configuration.
Convergence Includes settings for convergence.
Expression Contains an optional list of expressions that you can specify for convergence
Cache criteria.
Solver Includes settings for nonlinear residual and matrix solver type.
Frequency Includes setting for varying the frequency of an Eddy Current or AC Conduction
Sweep solution.
NOTE: This tab is present only for Eddy Current and AC Conduction solutions.
Defaults Enables you to save the current settings as the defaults for future solution setups
or to revert the current settings to Maxwell's standard settings.
General Includes general solution settings. Also contains a button for setting HPC and
Analysis Options, which allows you to select or create an analysis configuration.
Save Enables you to create a time point list for saving field solutions.
Fields
Advanced Supports user control program, import mesh options, and starting/continuing from a
previously solved setup.
Solver Includes settings for nonlinear residual solver type, for enabling the solver to fast
reach steady-state, and for selecting the Time Decomposition Method.
Expression Contains an optional list of expressions that you can specify for evaluating solutions.
Cache
Defaults Enables you to save the current settings as the defaults for future solution setups or
to revert the current settings to Maxwell's standard settings.
General Includes general solution settings. Also contains a button for setting HPC and
Analysis Options, which allows you to select or create an analysis configuration.
Solver Includes settings for initial condition, temporal tolerance, computing power loss data,
and importing a mesh.
Expression Contains an optional list of expressions that you can specify for evaluating solutions.
Cache
Defaults Enables you to save the current settings as the defaults for future solution setups or
to revert the current settings to Maxwell's standard settings.
Related Topics
Analysis Parameters
Setting Analysis Parameters for Non-Transient Solutions
Setting Analysis Parameters for Transient Solutions
Setting Analysis Parameters for Electric Transient Solutions
Disabling and Enabling an Analysis Setup
Analysis Parameters
During adaptive analysis the system iteratively refines the starting mesh in order to reduce the size of
individual elements in areas of high error — thus improving the accuracy of the solution.
l It then analyzes the accuracy of the solution by calculating an energy value based on the error
in the solution. The exact mechanism for evaluating the error varies by solution type. For
example, in magnetostatic it can use Curl H to find the current density and then subtract all
input currents and other sources. For a perfect solution the result would be zero, for a real,
finite mesh the result is some amount of residual current density. An energy value calculated
from this residual current density is called the error energy. The “Energy Error %” is the error
energy as a percentage of the total energy (calculated with the original sources).
l If more than 1 pass has been completed, the software also calculates the change in total
energy from the previous pass. The percentage difference is the “Delta Energy (%)”. Adaptive
refinement continues until both the “Energy Error %” and the “Delta Energy (%)” are below
the target Percent Error specified by the user (or until it reaches the Maximum Number of
Passes requested).
l When the error targets are not satisfied the mesh is refined. This is generally done by
subdividing the elements with the highest error energy into smaller elements.
l The user can optionally request to “Use Output Variable Convergence”. This is an additional
stopping criterion. The Energy Error % and the Delta Energy must still be below the target
Percent Error, but the software will also compute the specified Output Variable for each
adaptive pass and will calculate the percentage change in that value for each pass after the
first (this is the “Output Var. Delta (%)”). The solution will continue until the energy error
criteria are met and the Output Var. Delta is below the target “Max. Delta Per Pass” specified
by the user for output variable convergence (or until Maximum Number of Passes).
Related Topics
l Convergence
l Expression Cache
l Solver
l Defaults
l Adaptive Setup
l Parameters
By default, Setup1 appears as the name of the first analysis you set up.
To change the name of the setup, type the new name in the Name text box on the General tab of the
Solve Setup dialog box.
To disable the setup, uncheck the Enabled check box. Refer to Disabling and Enabling an Analysis
Setup for additional information.
To specify adaptive settings, click the General tab in the Solve Setup dialog box and use the
options in the Adaptive Setup section. Adaptive settings include the following:
l Maximum Number of Passes. The Maximum Number of Passes is the maximum
number of mesh refinement cycles you would like Maxwell to perform. This value is a stopping
criterion for the adaptive solution; if the maximum number of passes has been completed, the
adaptive analysis stops. If the maximum number of passes has not been completed, the
adaptive analysis continues unless the convergence criteria are reached.
Note The size of the finite element mesh — and the amount of memory required to
generate a solution — increases with each adaptive refinement of the mesh. Setting
the maximum number of passes too high can result in Maxwell requesting more
memory than is available or taking excessive time to compute solutions.
l Percent Error. The Percent Error allows you to control the desired solution accuracy.
Smaller values produce more accurate (but slower) solutions; larger values produce less
accurate (but faster) solutions. At each step in the adaptive process, the energy and error
energy are computed, and you can view the most recent solutions as soon as they are
completed. After the mesh is refined, the matrix is calculated on the refined mesh. The relative
change between the previous matrix and the current matrix is then computed and reported as
the matrix delta; the target matrix delta is the Percent Error. A small delta indicates that
further mesh refinement will probably not change the solution.
Parameter Settings
On the General tab of the Solve Setup dialog box, if you want to solve for fields only and no other
parameters, then click the Solve Fields Only check box.
When this check box is cleared, the following options are available:
l Solve Matrix. Select After last pass or Only after converging.
many tetrahedra are added at each iteration of the adaptive refinement process. The
tetrahedra with the highest error are refined.
l Minimum Number of Passes – The minimum number of adaptive passes even if the
l Minimum Converged Passes – The minimum number of adaptive passes to continue after
the convergence criteria are reached.
Optionally, convergence criteria can also be based on the value of an output variable. This condition
is in addition to the normal stopping criteria. To base the convergence criteria on an output variable
value, refer to Defining Expressions for Non-Transient Solutions.
For 2D Eddy Current solutions only, improved accuracy may be obtained by including loss in the
convergence criteria. To include the loss calculation in convergence, select the Use Loss
Convergence check box.
Note Maxwell 2D versions prior to version 12 did not use loss in the convergence
calculation.
Related Topics
This adds the selected expression and the associated context to a table in the Expression
Cache tab. You can define additional expressions with contexts and add them in the same
way.
6. When finished adding expressions, click Done to close the Add to Expression Cache dialog
box.
The Expression Cache tab lists the expressions you have added in a table.
l The Title field is editable, by default showing the name as built from the expression (with
underscores removed).
l The Expression field shows the full expression. If necessary, you can resize the Solution
Setup dialog box. You can also resize each columns in the table.
l The Context column shows None for Modal solutions, or the appropriate geometry for
Fields calculations.
l The Intrinsics column shows a clickable button that opens an Edit Calculation Range
dialog box. If the Intrinsics column button shows None you cannot edit the value. If the
button shows variables, click the ellipsis [...] in the Edit column to display a list of the
variable values from which you can select. Click OK to close the Edit Calculation Range
dialog box and apply your selections to the Expression Cache.
7. To designate one or more expressions for convergence, click the field for the Convergence
column for each expression.
This opens an Adaptive Convergence dialog box. Check Use this expression for
convergence to enable the radio buttons. You can then specify the Maximum Delta (an
absolute change in value between passes) or the Maximum Percent Delta (a percentage
change in value between passes) criteria. The Maximum Delta provides a way around a
potential issue if your expression is essentially zero and the numeric noise from pass to pass
causes the maximum percentage delta to remain high. In that case adaptive refinement
continues until you get to the maximum number of passes.
8. Optionally, buttons allow you to Edit and Remove selected expressions, and to Remove All
expressions in the table.
9. For Eddy Current only check boxes allow you to save the expression cache either with
Evaluate Cache vs. Pass, Evaluate Cache vs. Freq, or both.
10. When finished defining expressions, click OK to close the Solution Setup dialog box.
Related Topics
For magnetostatic solutions, you can define the following settings on the Solver tab of the Solve
Setup dialog box:
l Enter a value in the Nonlinear Residual text box.
l For 3D magnetostatic designs only, you can Enable Iterative Solver.
l Advanced Option settings allow you to perform more sophisticated simulations of the
magnetostatic field.
l Use pre-computed permeability data (for general soft magnetic materials) uses a
same geometry in the linked source design is to be used in the analysis. Selecting this
option enables the Setup Link button, and automatically opens the Setup Link dialog
in which you setup the link. Refer to "Import Mesh for Non-Transient Solutions" on
page 15-19 for details on using this setting.
l If an advanced option has previously been set up, you can click the Setup Link button
to open the Setup Link dialog and edit the link settings.
Note The data link used to link source and target designs uses data caching
technology. Therefore, if the design changes, to make sure the new data
(from the source design) is used in the target design, right-click the Analysis
field of the target design in the project tree, and select Clear Linked Data.
This flushes existing data.
Related Topics
7. Use the check box to specify whether to Preserve source design solution. Note that in the
extractor mode, the source project will be saved upon exit. Extractor mode means that the
software is opened during the link solely for the purpose of solving.
8. The Variable Mapping tab lets you view any variables contained in the selected Project.
When there are variables in the source design, you can choose to “map” these variables to
constant values, expressions or variables in the target designs. Variable mapping becomes
more important when the datalink type requires source and target design to be geometrically
identical and source design is geometrically parameterized.
For linked designs with variables of the same name, you can click Map Variables by Name to
automatically map same named variables. In this example the variables “height” and “weight”
are mapped to the Source, whereas the “current” variable does not have a same named
counterpart, and retains its value in the source design.
9. Optionally, you can override the solved mu with a user-specified control program, which you
can specify on the Advance tab of the Setup Link dialog. Additionally, because the non-
linear characteristics of many magnetic materials are too complex to be defined through the
definition of a BH-Curve, an advanced feature allows the permeability characteristic of the
target design to be obtained by mathematical manipulation of the permeability from the source
design via a user-defined control program. To use this feature:
a. Check Enable user program.
b. Specify the Absolute path of program to the user control program.
c. Specify any Additional arguments needed by the user control program.
Note For detailed information on using this feature, refer to Using the Advanced
Permeability Option.
10. Click OK to accept the setup and close the Setup Link dialog and return to the Solve Setup
dialog.
11. After setting up the link, you can select the Including magnets check box if magnets are
included in the distribution.
12. When you are finished specifying solution settings, click OK to close the Solve Setup dialog
box and finalize the solution setup.
Note The usual way to create the linked designs is by copying and pasting an existing
design from the project of your choice once the design is complete. Occasionally an
existing design (possibly from a different project) can be used as a source.
The data link automatically attempts to solve the linked (source) design if necessary
(if no solution exists), then automatically copies the mesh and necessary data
(calculated distribution of permeability), and finally performs the requested
calculation in the target design. This data link allows you to calculate the magnetic
field to be performed in a design with, for example, modified sources while keeping
the permeability in a "frozen" state calculated in a different design (the same
geometry and mesh but with different sources).
The non-linear characteristics of many magnetic materials are too complex to be defined through the
definition of a BH-Curve. This feature enhances the existing permeability-link by enabling the
permeability characteristic of the target design to be obtained by mathematical manipulation of the
permeability from the source design. The nonlinear “apparent” permeability from the source design
is frozen (linearized) and used by the target design. Because the permeability in the target design is
linear, the apparent and the incremental permeabilities will be identical and the apparent and
incremental inductances will also match.
This manipulation is done via a user-supplied control program. A user-specified executable is
launched at the beginning of target design simulation and the linked permeability data (i.e., the
“frozen” mu) from the source design is overridden by the values calculated by the user control
program. The target design solver is then launched and uses the overridden value in its calculation.
The user control executable program is launched with two file names as arguments:
1. Per mesh element permeability value. This is the solved mu (i.e., the apparent
permeability not the incremental permeability) from the source design. Note that the format of
this file is different between 2D and 3D designs.
2. Per mesh element information. Information includes the centroid location (x, y, z), Bx, By,
Bz at the centroid and Hx, Hy, Hz at the centroid. The format of this file is the same between
2D and 3D designs.
Note Refer to Advanced Permeability Option File Formats for information on these file
formats.
1. To setup the advanced user control program option for permeability, select Setup Link on the
Solver tab to open the Setup Link dialog.
l Field post processing of target design will use the user-overridden mu.
l Editing boundary/excitation setup in the target design invalidates the current solution in target
design.
l Linked data remains valid when boundary/excitation is changed. On next simulation of the
target design, the prior user-overridden permeability will be used.
l Edit of the link setup (this includes the path to the user control program, or “removing” the user
control program will invalidate the current solution and also the cached linked data. On the
next simulation of the target design, the “frozen” permeability will be extracted again from the
source design. If the link setup has opted to enable the user control program, the currently
designated user program will be launched. If the link setup has opted not to override the linked
data, the extracted mu from the source design will be used as-is.
l Clear Linked Data in the target design invalidates the current solution and cached linked
data in the target design.
l On the next simulation of the target design, the frozen permeability will be extracted again
from the source design. The user executable will be launched to allow the permeability to be
overridden.
l Editing the source design has no effect on the existing solution in the target design. Users
need to Clear Linked Data in target design if a new simulation in the target design is desired.
l After the simulation of the target design, the user-overridden “mu” becomes part of the
solution of the target design and this target design can then be used as the source of another
design. This is explained in more detail with the following work flow.
This is the solved mu (i.e., the apparent permeability not the incremental permeability) from the 3D
source design.
In the above example, SolidID, h, and E_DATA are keywords. “6” is the object ID. “14” is the number
of elements in the object with ID “6”. “230”, “231”, etc. are element IDs.
Note that there could be multiple "blocks" of the above data if there are multiple non-linear objects in
the design, as illustrated below.
The following solved mu indicates a total of 16 mesh elements that belong to two objects.
Per mesh element centroid location (x, y, z), Bx, Bx, By, Hx, Hy, Hz at the centroid.
(All values in SI units.)
SolidID 6 14
h 230 x y z Bx By Bz Hx Hy Hz
.
.
.
E_DATA
Related Topics
1. Enter a frequency value in the AdaptiveFrequency text box, and select the desired units.
2. For 2D and 3D designs, enter a value in the Nonlinear Residual text box.
3. For 3D designs, you can optionally Enable an Iterative Solver.
4. For 3D designs, you can optionally choose to Use higher order shape functions. Enabling
the higher order option gains better accuracy for eddy current regions.
5. For 3D designs, you can optionally choose to Use pre-computed permeability data. Refer
to Using the Permeability Link Option for Eddy Current Solutions for details on this option.
6. If desired, you can Import Mesh.
Related Topics
For projects with materials whose permeability is nonlinear, setting the permeability link in a 3D Eddy
Current design enables it to use the permeability data calculated in a source 3D magnetostatic
design. In this scenario, the nonlinear analysis is only performed in the 3D magnetostatic source
design. In the 3D Eddy Current target design, the nonlinear material is treated as linear material
using the “frozen” permeability data from the source design. The target design will be solved based
on the mesh and permeability data imported from the source design. Small signal analysis is a typical
application for this feature.
Prerequisites
l Source design - Maxwell 3D Magnetostatic
l Target design - Maxwell 3D Eddy Current
l The geometry of the source and target designs must be identical.
To set up and use the pre-computed permeability link for projects with nonlinear material:
1. Create a 3D Magnetostatic source design using nonlinear material.
2. Solve the 3D Magnetostatic design.
3. Create a 3D Eddy Current target design, whose geometry and materials are identical to the
source magnetostatic design.
4. On the Eddy Current Solve Setup dialog, Solver tab, select Use pre-computed
permeability data, to use the permeability data that has been frozen from a previously solved
3D magnetostatic source design. Selecting this option enables the Setup Link button, and
the Setup Link dialog opens, allowing you to specify the 3D magnetostatic source project,
design, and solution containing the desired information. The mesh between the two linked
designs is the same.
By default, the Setup Link dialog opens on the General tab with only the This project radio
button selected.
Note If a link had previously been set up, the Setup Link dialog opens in View Only
mode with all settings disabled.
9. Click OK to accept the setup and close the Setup Link dialog and return to the Solve Setup
dialog.
10. When you are finished specifying solution settings, click OK to close the Solve Setup dialog
box and finalize the solution setup.
11. Solve the target 3D Eddy Current design.
Note If the geometry of the source and target designs is not identical, an error message
displays.
Related Topics
l Import Mesh.
1. Enter a frequency value in the AdaptiveFrequency text box, and select the desired units.
2. If desired, you can Import Mesh.
The Import mesh check box can be selected in the “target” design if the mesh for the same
geometry is to be used in the analysis. This setup is designed to be generally applicable to all
solutions.
If the Import mesh feature is selected, the Setup Link button becomes active, the Setup Link
dialog box automatically appears, and the mesh will be imported from the source design to the target
design.
Note The usual way to create geometrically equivalent designs is by copying all geometry
objects from one design and then using Import From Clipboard in the other design.
1. By default, the Setup Link dialog opens on the General tab with only the This project radio
button selected.
Note If a link had previously been set up, the Setup Link dialog opens in View Only
mode with all settings disabled.
The “Default” solution is the product-dependent solution of the first Setup. That is the setup
listed first in the source design's project tree (alphanumerical order). A product-specific
solution of this setup becomes the default solution. In most products, it is “LastAdaptive.” In a
Transient solution type, it is “Transient.”
4. Use the check box to specify whether to Simulate source design as needed.
5. Use the check box to specify whether to Preserve the source design solution. Note that in
the extractor mode, the source project will be saved upon exit. Extractor mode means that the
software is opened during the link solely for the purpose of solving.
6. The Variable Mapping tab lets you view any variables contained in the selected Project.
When there are variables in the source design, you can choose to “map” these variables to
constant values, expressions or variables in the target designs. Variable mapping becomes
more important when the datalink type requires source and target design to be geometrically
identical and source design is geometrically parameterized.
For linked designs with variables of the same name, you can click Map Variables by Name to
automatically map same named variables. In this example the variables “height” and “weight”
are mapped to the Source, whereas the “current” variable does not have a same named
counterpart, and retains its value in the source design.
7. You can select the Additional mesh refinements tab to either Apply mesh operation in
target design on the imported mesh (default), or Ignore mesh operations in target
design.
8. Click OK to accept the setup and close the Setup Link dialog box.
If you selected the Use pre-computed permeability data option (refer to Permeability Options for
Magnetostatic Solutions or to Using the Permeability Link Option for Eddy Current Solutions), or
Import mesh, do the following to specify the source project, design, and solution containing the
information you want to use. You can also view and map variables and, for Import Mesh, specify
additional mesh refinements.
General Tab
1. By default, the Setup Link dialog opens on the General tab with only the This project radio
button selected.
Note If a link had previously been set up, the Setup Link dialog opens in View Only
mode with all settings disabled.
source path to: radio buttons and the ellipsis [...] button and its associated text field.
l To specify a source project file other than the current project click the ellipsis [...] button to
open a file browser window. When you have selected the project, click the Open button to
accept the project file for the setup. You can use the check box to Open as read only.
Use the radio buttons to specify whether to save the source path relative to The project
directory of the selected project or This project.
3. When you select a source project file, the Source Design and the Source Solution fields
are filled in with default values, and their drop down menus contain any available designs and
solutions. You can use the drop down menus to choose from the available designs and
solutions.
The “Default” solution is the product-dependent solution of the first Setup. That is the setup
listed first in the source design's project tree (alphanumerical order). A product-specific
solution of this setup becomes the default solution. In most products, it is “LastAdaptive.” In a
Transient solution type, it is “Transient.”
4. Use the check box to specify whether to Simulate source design as needed.
5. Use the check box to specify whether to Preserve the source design solution. Note that in
the extractor mode, the source project will be saved upon exit. Extractor mode means that the
software is opened during the link solely for the purpose of solving.
more important when the datalink type requires source and target design to be geometrically
identical and source design is geometrically parameterized.
For linked designs with variables of the same name, you can click Map Variables by Name to
automatically map same named variables. In this example the variables “height” and “weight”
are mapped to the Source, whereas the “current” variable does not have a same named
counterpart, and retains its value in the source design.
Advance Tab
Note This tab is present only when using "Permeability Options for
Magnetostatic Solutions" on page 15-9 .
If you are setting up a link for the magnetostatic solver Use pre-computed permeability
data option, you can select the Advance tab to override the solved mu value from the source
file with a user-specified control program. Refer to "Permeability Options for Magnetostatic
Solutions" on page 15-9 for details on using this feature:
Related Topics
The iterative solver provides an alternative to the direct solver. When you select the Enable
Iterative Solver option, Maxwell invokes the iterative solver. Maxwell automatically switches to the
direct solver if the iterative solver fails in convergence.
Note For C-matrix calculations, the direct solver usually is more efficient (in terms of cpu time)
than the iterative solver. In such cases, even if Enable Iterative Solver is turned on, the
solver still automatically chooses the direct solver.
For more detail, see the technical notes for Iterative Matrix Solver.
To enable the iterative solver:
1. On the Solution Setup dialog box Solver tab, check the Enable Iterative Solve check box.
This enables the Relative Residual input field.
2. Enter a value for the Relative Residual. The residual measures the convergence of the
iterative solver. The default value is 1e-6 for the magnetostatic and electrostatic solvers and
1e-4 for the eddy current solver.
Related Topics
l Save Fields
l Advanced
l Solver
l Expression Cache
l Defaults
By default, Setup1 appears as the name of the first analysis you set up.
To change the name of the setup, type the new name in the Name text box on the General tab of the
Solve Setup dialog box.
To disable the setup, uncheck the Enabled check box. Refer to Disabling and Enabling an Analysis
Setup for additional information.
To set up a 2D transient analysis, define the following parameters on the General tab of the Solve
Setup dialog:
To set up a 3D transient analysis, define the following parameters on the General tab of the Solve
Setup dialog box:
1. Enter the Stop Time, which is the value at which the solution will stop, and select the units.
2. Enter the Time Step for the analysis, which defines the time increments, and select the units.
The time step can also be defined as the function of time, speed, and position.
Note When you have an external circuit, the Time Step is controlled from the circuit
simulator, and the time step settings in the solution setup dialog are ignored. This
can be controlled using the Maxwell 3D>Excitations>External Circuit>Set
Minimum Time Step command.
Time Step settings in the solution setup dialog box are also ignored for transient-
transient simulation in which case Simplorer controls the time step.
l Import mesh
Related Topics
Nonlinear Materials
"Setup Link for Transient Solutions" on page 15-30
Using a 2D Eddy Current Solution as the Initial Condition for a Transient Solution
User control programs are externally created executables that are called after each time step and
allow you to control the source input, circuit elements, mechanical quantities, time step, and stopping
criteria, based on the updated solutions.
The output variable values are output to a file with a fixed name of outputvar.ctl. The file contents
use the following format:
<output variable name> <output variable value>
<output variable name> <output variable value>
...
The solver maintains a copy of the previous solution in a file called previous.ctl because you may
need first derivative information for its control purpose.
The user control program uses the file with fixed name user.ctl to output control parameters to
control the execution of the transient solver. Each file must use a predefined syntax which is flexible
enough to cover a wide range of items. The process can be summarized as:
1. The transient solver reads control parameters from user.ctl.
2. The transient solver solves the current time step.
3. The transient solver copies the previous solution to previous.ctl and writes out solution
information to solution.ctl.
4. The transient solver calls the user control program.
5. The user-control program writes control information to file user.ctl.
6. Return to the transient solver if the control program succeeds with exit status 0 or fails with exit
status non-zero.
7. Return to step 1 for the next time step.
Use the following steps to access and invoke a user-control program to use with the transient solver.
To specify a control program to use to generate the solution:
1. Select the Use Control Program check box.
The control program field becomes active, allowing you to enter the name of the user control
program.
2. Click the ... button to select the user control program you want to use during the solution
generation process.
The Open window appears.
3. Select the control program, and click Open to return to the Advanced tab of the Solve Setup
dialog box.
4. Enter the arguments to pass to the control program in the Arguments text box. The solver
calls the program in the following format:
program_name specified_arguments
5. Click Configure. This option can be used to initialize data before the solver is called.
The control program is called, with the -configure flag prepended to any arguments specified
in the Arguments box.
6. Select or clear the Call after last time step for post processing check box. This option
instructs the software to invoke the specified user control program after the solution has
completed the final time step. This option prepends the -post flag to the list of arguments. The
solver calls the program in the following format:
program_name -post specified_arguments
The control program is called if the solve finishes normally without any errors or if you choose
Stop during the solution process. It is not called if you choose Abort during solution
generation.
7. Click OK to accept the configuration or Cancel to ignore the settings. You return to the Solve
Setup window.
The user control programs have their own file formats, which should be followed when creating
control program files.
The solution.ctl and previous.ctl files are created by the transient solver and uses the following
format:
begin_data
time <current_time>
forceT <tangential force>
forceN <normal force>
torque <torque>
speed <speed>
position <position>
windingI <winding_name> <current_value>
windingV <winding_name> <voltage_value>
windingEMF <winding_name> <back_emf_value>
windingFlx <winding_name> <flux_linkage_value>
...
...
barI <current_value>
barV <voltage_value>
solidI <object_name> <current_value_for_an_active_solid_
conductor>
...
...
condPwrLoss <total_power_loss_in_solid_conductor>
end_data
The user.ctl file is created by the user control program and uses the following format:
begin_data
windingSrc <winding_name> <source_value>
windingR <winding_name> <resistance_value>
windingL <winding_name> <inductance_value>
...
...
...
loadTorque <value>
loadForce <value>
damping <value>
stop <0 or 1>
timeStep <value>
loadInertia <value>
end_data
Note The "loadTorque" and "loadForce" keywords are interchangeable for the solver, and are
assigned to the same variable. Whether the load is a force or a torque is determined by the
motion type. It is recommended that users set values only for those parameters being
used.
Enabling the Start/Continue from a previously solved setup option allows the source design
solution to be linked to a set of different target designs, where the user can continue the solution
based on a different parameter/circuit setup. For example, you can use this option to link a 2D Eddy
Current solution as the initial condition for a transient solution.
If the Start/Continue from a previously solved setup check box is selected, the Setup Link
button becomes active, and the Setup Link dialog box automatically appears in which the user can
link the current design to a project solution set based on a different parameter/circuit setup. Refer to
"Setup Link for Transient Solutions" on the next page for details on setting up this link.
Note Power loss and Force density distribution cannot be computed when Start/Continue
from a previously solved setup is enabled.
Related Topics
Using a 2D Eddy Current Solution as the Initial Condition for a Transient Solution
Setup Link for Transient Solutions
The Import mesh check box can be selected in the "target" design if the mesh for the same
geometry is to be used in the analysis. This setup is designed to be generally applicable to all
transient solutions. This feature is not necessarily related to the dynamic demagnetization
distribution capability.
If the Import mesh feature is selected, the Setup Link button becomes active, the Setup Link
dialog box, which includes an Additional mesh refinements tab automatically appears, and the
mesh will be imported from the source design to the target design. Refer to "Setup Link for Transient
Solutions" below for details on setting up this link.
Note The usual way to create geometrically equivalent designs is by copying all geometry
objects from one design and then using Import From Clipboard in the other design.
If you selected Start/Continue from a previously solved setup, or Import mesh, do the
following to specify the source project, design, and solution containing the information you want to
use. You can also view and map variables and, for Import Mesh, specify additional mesh
refinements.
1. If the Setup Link dialog is not already open, click Setup Link (located at the bottom of the
Solve Setup dialog box Advanced tab) to open the Setup Link dialog box.
2. By default, the Setup Link dialog opens on the General tab with only the This project radio
button selected.
Note If a link had previously been set up, the Setup Link dialog opens in View Only
mode with all settings disabled.
Related Topics
Using a 2D Eddy Current Solution as the Initial Condition for a Transient Solution
"Start/Continue from a Previously Solved Setup" on page 15-29
"Import Mesh for Transient Solutions" on the previous page
where σ0 is the transformed conductivity from speed n to speed zero, which is to be set in
the eddy current simulation, σ is the real conductivity in transient simulation, and sn is the
slip, defined as:
Prerequisites
l Source design - Maxwell 2D Eddy Current (Last Adaptive solution only)
l Target design - Maxwell 2D Transient
l The source and target designs must be identical (identical geometries, boundaries,
excitations, windings, etc).
To setup and use a 2D Eddy Current solution as the initial condition for a 2D Transient solution:
1. Create a 2D Eddy Current source design, and ensure that Solve Matrix: After last pass is
selected on the General tab of the Eddy current Solve Setup dialog.
2. Solve the 2D Eddy current design.
3. Create a 2D Transient target design, whose geometry, boundary conditions, excitations,
windings, etc., are identical to the the source Eddy current design.
4. On the Solve Setup dialog, Advanced tab for the transient target design, click
Start/Continue from a previously solved setup to open the Setup Link dialog.
5. On the Setup Link dialog General tab, select the source Eddy current design and solution.
Refer to "Setup Link for Transient Solutions" on page 15-30 for details on setting up this link.
6. Solve the target 2D transient design.
Note l If the source and target designs are not identical, an error message displays.
l If the 2D Eddy current source design has not been solved, an error message
displays.
Related Topics
l The Title field is editable, by default showing the name as built from the expression (with
underscores removed).
l The Expression field shows the full expression. If necessary, you can resize the Solve
Setup dialog box. You can also resize each columns in the table.
l The Context column for non-field types lists the parameter type specifying the force, torque
or matrix setup. For these types the context also can be given as part of the expression. For
example, the expression Force1.Force_x with a context of None is equivalent to an
expression of Force_x with a context of Force1.
For field quantities the Context can be the geometry on which to evaluate the field quantity - a
point or line. If you use a line you need to use some range function to reduce the
dimensionality to a single value (or use the Calculation Range tab to specify a single point
along the line). Note that, if you create a named expression in the field calculator that already
evaluates to a single value, then the Context here will likely be None.
l The Intrinsics column shows a clickable button that opens an Edit Calculation Range
dialog box. If the Intrinsics column button shows None you cannot edit the value. If the
button shows variables, click the ellipsis [...] in the Edit column to display a list of the
variable values from which you can select. Click OK to close the Edit Calculation Range
dialog box and apply your selections to the Expression Cache.
The Intrinsics field lists the values you may have set in the Calculation Range tab when you
added the expression. This is used to set the values of “other” sweeps. Usually there are no
other sweeps because the values of the variables are set in the definition of each variation. In
some cases you may need to specify the values of “other” sweeps. For field values with a line
for the context, you can specify the (normalized) distance along the line For eddy current field
quantities you can also specify the phase for the calculation.
7. In the Evaluation Time Step panel, set how often the solver is to output field solutions. Select
Constant to output solutions at a preset time interval (e.g., every 0.1 s); or Number of solve
steps to output solutions each preset number of time steps (e.g., every 3 time steps).
8. Optionally, buttons allow you to Edit and Remove selected expressions, and to Remove All
expressions in the table.
9. When finished defining expressions, click OK to close the Solution Setup dialog box.
Related Topics
You can save the time-dependent expression as the default for the non-linear residual by
clicking the Save Defaults button on the Defaults tab of the Solve Setup dialog. A new solve
setup will then use the user-saved default if the expression can be evaluated. A value of “0”
will be used when the expression cannot be evaluated. as, for example, if the expression
depends on a variable that is not yet defined in the design/project.
Changing the definition of the residual will NOT invalidate any existing solution; and the next
simulation will continue from the stop time of the last simulation.
Changing the definition of a variable used for the residual value will NOT invalidate any
existing solution. The next simulation will be for a different “design variation”.
Changing the definition of a dataset used for the residual will NOT invalidate any existing
solution. The next simulation will continue from the stop time of the last simulation.
If a variable is used, you can choose to plot a family of curves based on the solved variations of
the variable.
2. Select or clear the Output error check box. When this check box is selected, the transient
solver generates the output error data, which is then sent back to the desktop. The data can
be viewed or used in the post processor, just as other transient solution data (such as power
loss or winding).
Note Output error is the percentage error in the total energy of the solution. This is a
measure of the accuracy of the finite element approximation and can be used to
judge if the mesh is good enough. Output error is calculated by finding the residual
energy (the left-over energy calculated from the field after subtracting out the
sources) divided by the total energy including the sources. Computing output error
uses significant computation time.
3. For 3D Transient analysis only, select the desired Scalar Potential shape function: either
Second Order (default), or First Order, from the pull-down list. (You can also select the
desired Scalar Potential on the Solver tab in the Properties window.)
Use of the First Order scalar shape function, rather than the Second Order shape function,
may be desirable for any of the following cases:
l If computational time is a main concern and solution accuracy is secondary. This might
be useful for the initial design stage, before switching to using the more time consuming,
and more accurate, second order scalar shape function.
l If the contour of the geometry is very complicated, it may not be possible to use the
higher second order shape function due to the inability of relatively larger element size
to properly represent the original geometry shape
l If the gradient of the magnetic field changes sharply, it may not be possible to use the
higher second order shape function with large element size. Using a larger element size
may not be able to adequately model the large change of material property with large
element size, and nonlinear convergence may be difficult to achieve.
4. For 2D Transient analysis only, select the algorithm for the Time Integration Method using
the pull-down list.
Related Topics
"Time Decomposition Method for Maxwell Transient Designs" on the facing page
(allowed for previous couple of time step solutions required due to the time integration scheme
itself). Traditional core loss computation is supported because core loss computation is done
in post-processing.
Strictly speaking, TDM cannot support hysteresis modeling. But for soft hysteresis materials,
especially for lamination core loss computation, the hysteresis loop, or the coercivity Hc, is
very small. In such a case, the impact of hysteresis on the nonlinear operating point can be
ignored. This means we can decouple the nonlinear iteration process with consideration of
hysteresis impact. For the first step of the nonlinear iteration process, distributed parallel TDM
can still be applied. After the nonlinear iteration has converged, that is, the nonlinear problem
has been linearized for all time steps (or all time steps in the sub-division), the second step is
applied to take into account the impact of hysteresis. In such a case, the solution process is
sequential – to consider the impact of hysteresis behavior from the previous time-step solution
on the solution at current time step. It can be expected that the results with TDM enabled and
with TDM disabled might differ slightly due to ignoring the impact of hysteresis on the
nonlinear operating point. However, from a practical application point of view, the solutions
can be considered as sufficiently accurate –especially for lamination core loss computation.
l The purpose of the demagnetization process in a transient simulation is to find the worst
operating point during the entire transient simulation. After a new worst operating point is
discovered, a linearized representation of the permanent magnet characteristic will be used to
construct a new recoil line, which is applied to the simulation for subsequent time steps. Thus,
strictly speaking, TDM cannot support demagnetization modeling because all time steps (or all
time steps in a subdivision) are solved simultaneously. However, as a reasonable
approximation, we can solve all time steps in one subdivision simultaneously based on
distributed parallel TDM – and then search for the worst operating point among the solutions
of these just-solved time steps. Thereafter, this new worst operating point is used to construct
a new recoil line which is applied to all time steps in the next subdivision. This means the
impact of previous solutions on subsequent searches for the worst operating point is taken into
account subdivision-by-subdivision, rather than time step-by-time step.
It can be expected that the results of the discovered final worst operating point might differ
slightly between TDM- enabled solutions and TDM-disabled solutions. However, from a
practical application point of view, the solutions can be considered as sufficiently accurate.
This error can be reduced with the use of few time steps in one subdivision.
l For TDM analyses, invoking Clean Stop stops the analysis after completion of the current
time subdivision, instead of after completion of the current time step. As a result, continuation
of the solution process will start from the next time subdivision after clicking Analysis. In such
a case, the stop time cannot be modified when TDM is used.
l When Clean Stop is invoked for projects in which a TDM transient source design is linked to a
transient target design, after completion of the source design the solution process can
continue from the target design. In such a case, the target design must be non-TDM.
l TDM Restart does not work when you Use Automatic Settings when Editing Distributed
Machine Configurations for Maxwell.
Related Topics
"Setting HPC and Analysis Options for Maxwell and RMxprt Designs" on page 4-47
"Editing Distributed Machine Configurations for Maxwell and RMxprt" on page 20-9
"Defining Settings on the Solver Tab for Transient Solutions" on page 15-34
Do one of the following in the Evaluation Time Step section on the Output Variables tab of the
Solve Setup dialog box:
l Select Using Constant, type a value, and select the units. Select this option if you want to
use a constant value for when you calculate output variable values.
l Select Evaluate every Nth time step, and type a value. Select this option if you want to
evaluate the output variable after a certain number of solution time steps (i.e., instead of
calculating the output variable every fixed time interval, you want to calculate it every certain
number of time steps). For example, if you want to evaluate the output variable every third
time step, type 3 in this text box.
By default, Setup1 appears as the name of the first analysis you set up.
To change the name of the setup, type the new name in the Name text box on the General tab of the
Solve Setup dialog box.
To disable the setup, uncheck the Enabled check box. Refer to Disabling and Enabling an Analysis
Setup for additional information.
To set up a transient analysis, define the following parameters on the General tab of the Solve
Setup dialog box:
1. Enter the Stop Time, which is the value at which the solution will stop, and select the units.
2. Enter the Initial Time Step, which is the time step used to start the simulation and begin the
adaptive process.
3. Also enter the Maximum Time Step to set the allowable range the adaptive process use to
alter the time step.
4. Check Save Fields to enable saving the fields data.
4. Under the Trace tab, select from the Category, Quantity, and Function lists to create
expressions.
Selecting a listed category lists the Quantities and Functions available for each category. If you
have defined one or more output variables, you can see them by selecting the Output
Variables category. The Output Variables button opens a dialog box that lets you define
output variables. See Specifying Output Variables.
When you have created an expression, it appears in the Expression field of the Trace tab. If
desired, you can use the Range Function button to select range functions to apply to the
expression.
Under the Calculation Range tab, you can view the values of available sweep variables.
Clicking the ellipsis [...] button in the Edit column opens a list of values from which you can
select.
5. When finished defining the expression that you want to add to the cache, click the Add
Calculation button.
This adds the selected expression and the associated context to a table in the Expression
Cache tab. You can define additional expressions with contexts and add them in the same
way.
6. When finished adding expressions, click Done to close the Add to Expression Cache dialog
box.
The Expression Cache tab lists the expressions you have added in a table.
l The Title field is editable, by default showing the name as built from the expression (with
underscores removed).
l The Expression field shows the full expression. You can resize the Solution Setup dialog
box, and also each column in the table, to view the contents of the fields.
l The Context column for non-field types lists the parameter type specifying the force, torque
or matrix setup. For these types the context also can be given as part of the expression. For
example, the expression Force1.Force_x with a context of None is equivalent to an
expression of Force_x with a context of Force1.
For field quantities the Context can be the geometry on which to evaluate the field quantity - a
point or line. If you use a line you need to use some range function to reduce the
dimensionality to a single value (or use the Calculation Range tab to specify a single point
along the line). Note that, if you create a named expression in the field calculator that already
evaluates to a single value, then the Context here will likely be None.
l The Intrinsics column shows a clickable button that opens an Edit Calculation Range
dialog box. If the Intrinsics column button shows None you cannot edit the value. If the
button shows variables, click the ellipsis [...] in the Edit column to display a list of the
variable values from which you can select. Click OK to close the Edit Calculation Range
dialog box and apply your selections to the Expression Cache.
The Intrinsics field lists the values you may have set in the Calculation Range tab when you
added the expression. This is used to set the values of “other” sweeps. Usually there are no
other sweeps because the values of the variables are set in the definition of each variation. In
some cases you may need to specify the values of “other” sweeps. For field values with a line
for the context, you can specify the (normalized) distance along the line For eddy current field
quantities you can also specify the phase for the calculation.
7. In the Evaluation Time Step panel, set how often the solver is to output field solutions. Select
Constant to output solutions at a preset time interval (e.g., every 0.1 s); or Number of solve
steps to output solutions each preset number of time steps (e.g., every 3 time steps).
8. Optionally, buttons allow you to Edit and Remove selected expressions, and to Remove All
expressions in the table.
9. When finished defining expressions, click OK to close the Solution Setup dialog box.
Related Topics
If you selected Import mesh or Static Field, do the following to specify the project, design,
and solution containing the mesh information you want to use:
1. Click Setup Link in the Solve Setup dialog box).
l In the project tree, right-click Setup under Analysis, and select Reset to Time Zero from the
shortcut menu.
Generally, set the RAM value as high as possible to obtain the fastest solutions.
These settings are not an absolute limit on the amount of RAM to be used. When solving small
problems, Maxwell tries to respect this limit by choosing to run more slowly with a smaller amount of
RAM. When solving a large problem, Maxwell may be unable to use less RAM than the specified
limit. In this case, the amount of memory used exceeds the specified limit but tries to minimize how
far it goes beyond.
1. In the project tree, under Analysis, right-click the setup you want to rename.
A shortcut menu appears.
2. Select Rename from the shortcut menu.
The setup name text is highlighted in the project tree.
3. Type the new name for the setup, and press Enter.
You can also rename the solution setup by changing the text in the Name text box of the Solve
Setup dialog box.
Related Topics
Related Topics
You can also disable an analysis setup by selecting Properties from the shortcut menu to
open the Edit Properties window. In the upper right corner of the Edit Properties window,
uncheck the Enabled box. Then click OK.
To reactivate an Analysis setup:
1. Expand the tree hierarchy under the Analysis icon in the project tree.
2. Right-click on the icon for the setup definition. In the shortcut menu that appears, click Enable
Setup.
You can also reactivate the analysis setup by selecting Properties from the shortcut menu for
the sweep to open the Edit Properties window. Check the Enabled box in the upper right
corner, and click OK to apply the change and close the window.
The General and Variable Mapping tabs are common to all Setup Link dialog boxes.
Depending on the type of link being set up, other tabs such as Additional Mesh Refinements, and
Advance may also appear. Details of the use of the various tab settings may be found in the topics
linked above.
For "AdaptivePass" plot context, plots are updated at the end of each solution pass. For
"LastAdaptive" or "Transient" the plot is updated at the end of the transient or adaptive
solution.
This option balances report and field plot updating with solution time. For example, reports
may be updated after each adaptive pass but field plots will not be updated until the solution is
complete.
l Immediately - update reports and plots as soon as data comes from the solver.
This option will have the greatest impact on the overall solution time but will have the most
rapid updating of reports and field plots. Caution should be used in selecting this option. Some
types of reports and field plots may take a long time to update, especially as the mesh size
increases.
l Never - only manual intervention updates reports.
This option will prevent updates from impacting the solution time.
l On Completion - as with Never, but a single update is done when the solve completes. This
option should be considered when using dynamic links to other products to provide best
solution time with the final data available for the link.
To change the setting for the current project, see Desktop Performance options.
16 - Maxwell Coupling
Coupling is provided in specific contexts between Maxwell and the following products:
l ANSYS Workbench
Coupling without using ANSYS Workbench is supported between ANSYS Fluent and
Maxwell 3D magnetostatic and Eddy current designs in Maxwell. A transient ANSYS Fluent
simulation can use a Maxwell solution to simulate the magnetic effect in the electric arc of
contactors.
For more information, see "Coupling Maxwell Magnetostatic and Eddy Current Designs with
ANSYS Fluent."
l LMS Virtual.Lab™
Maxwell supports one-way coupling with Siemens® LMS Virtual.Lab™.
Related Topics
Maxwell-Specific Considerations
l If there is thermal feedback, each frequency point in an eddy current sweep will be solved
invalidated when users continue the Maxwell solution in a way such that the Maxwell mesh
is being regenerated.
l Once the Maxwell solution has been integrated with a thermal effect, the adaptive process
of a static simulation will be disabled. Users must then manually invalidate the temperature
data in the existing solution before the adaptive process will be re-enabled.
l Maxwell solutions can incorporate feedback from both thermal and stress.
Related Topics
3. To setup the Steady-State Thermal system's geometry, you must first export the Maxwell
geometry using sat or step format as follows:
a. Select the Modeler>Export menu item.
b. Select the desired model geometry format (sat or step), and the save location in the
dialog box and save the file for use by ANSYS Workbench.
4. Import the file via the Geometry module of the Steady-State Thermal system.
a. To access the Geometry module, double click on the Geometry cell in the Steady-State
Thermal system to launch DesignModeler.
b. Select File>Import External Geometry File and browse for the geometry file exported
from Maxwell.
c. After the geometry file is imported, right-click on the root folder of the modeler project tree
and select Generate. (When the geometry file is of a Maxwell 2D RZ design, users can
5. Close DesignModeler and refresh the Model cell of the Steady-State Thermal system by
right-clicking the Model cell and selecting Refresh.
6. The geometry mode of the Steady-State Thermal system can be changed via the ANSYS
Mechanical user interface.
a. Launch Mechanical by double clicking the Setup cell of the Steady-State Thermal
system.
b. Select Geometry in the project tree and the Definition of Geometry will be shown in the
Detail window.
c. Select either Plane Stress or Axisymmetric as the value for the property 2D (or 3D)
Behavior.
7. To set up the coupling, drag the Solution cell of the Maxwell system and drop it on the Setup
cell of the Steady-State Thermal system.
8. Note that the Maxwell Solution cell is tagged with a “Lighting Bolt” symbol. Right-click on the
Maxwell Solution cell and select Update. This will initiate a Maxwell simulation if it is not
already solved. Once Maxwell's solution is available, the “Lighting Bolt” changes to a “Green
Check”symbol.
9. To “push” the coupling into Steady-State Thermal, right-click on the Steady-State Thermal
Setup cell and select Refresh.
10. After refresh is finished, you can launch ANSYS Mechanical by double-clicking the Setup
cell to finish the coupling setup.
11. In the ANSYS Mechanical application project tree, an Imported Load
(Maxwell2DSolution), or (Maxwell3DSolution), item should already be inserted. Select the
Imported Load folder to view its details. Because the inserted Maxwell2D (or 3D) system
supports thermal feedback, the Details window shows information regarding how the
temperature result should be exported, and what type of mesh mapping should be used.
12. To finish the coupling setup, you must insert either an imported Heat Generation or an
imported Heat Flux boundary condition. Heat Generation is used when mapping loss from
objects in Maxwell; and Heat Flux should be used to map the loss from the edges of objects in
Maxwell. Users can insert multiple Heat Generation or Heat Flux loads via the Imported
Load (Maxwell2DSolution), or Imported Load(Maxwell3DSolution) objects.
13. To insert a Heat Generation, use Body select by clicking the icon in the Mechanical
Toolbar. Then click on the objects where the EM loss should be imported. After all the desired
objects are selected, right-click on Imported Load (Maxwell2DSolution)> Insert > Heat
Generation, or Imported Load(Maxwell3DSolution) > Insert > Heat Generation.
A sub-item named Imported Heat Generation will appear in the project tree.
14. Click on the Imported Heat Generation tree item to view its details.
15. In the Transfer Definition section, users can set up the source Maxwell solution by pulling
down the Ansoft Solution combo box and select one of the listed Maxwell solutions.
16. Right-clicking on Imported Heat Generation > Import Load will import loss from the
Ansoft Solution selected for this load. After import has completed, the Import Heat
Generation item becomes a folder, and an entry called Imported Load Transfer Summary
is listed. Select the Imported Load Transfer Summary entry and the scaling factors used to
export the load from Maxwell will be displayed in the Comment window.
17. Selecting Import Heat Generation should show an overlay-plot of the imported load. The
loss mapping from Maxwell can be verified by comparing this overlay-plot with an Ohmic-Loss
field overlay plot in Maxwell.
18. Create a Convection boundary to complete the thermal setup. Use Edge select by clicking
the icon at the Mechanical Toolbar and then Edit > Select All. With the edges
selected, right-click on the Steady-State Thermal project tree item and insert a Convection.
With the Convection item selected, change its Film Coefficient to 5 W/m2 via the Detail
window. Right-click on the Solution tree item and select Solve. After the thermal solution is
finished, users can insert a Temperature plot by right-clicking on Solution and selecting
Insert > Thermal > Temperature. Right-click on the newly inserted Temperature item and
select Evaluate All Results.
19. To export the thermal result to Maxwell, right-click on the Imported Load
(Maxwell2DSolution), or Imported Load(Maxwell3DSolution) and select Export
Results.
20. To fully utilize the automation capabilities provided in ANSYS Workbench, select Imported
Load (Maxwell2DSolution), or Imported Load(Maxwell3DSolution); and in its Detail
window, select Yes for Export after Solve. With this option selected, users can continue the
iteration between Maxwell/Thermal simulations from the Workbench schematic.
To “push” the exported thermal results back to Maxwell, right-click on Maxwell's Solution cell
on the Workbench schematic and select Enable Update. Then, right-click again on Maxwell's
Solution cell and select Update. This will trigger Maxwell to re-simulate its solution with
thermal results.
To continue the solve iterations, repeat the following steps as needed:
a. Right-click on Thermal's Setup cell and select Refresh.
b. Right-click on Thermal's Setup cell and select Update.
c. Right-click on Maxwell's Solution cell and select Enable Update.
d. Right-click on Maxwell's Solution cell and select Update.
Maxwell-Specific Considerations
l Users must select object/s (i.e., geometry) in Maxwell upon which displacement data from
l Displacement data that has already been exported from ANSYS Mechanical Stress is
invalidated when the Maxwell design is edited such that the previously simulated solution is
considered as invalid or non-current. These edits include:
a. Modifying the geometries or selecting “Revert To Initial Mesh.”
b. Modifying the boundary/excitation settings, such as changing the value of a “Current
excitation” in a magnetostatic design.
l Maxwell solutions can incorporate feedback from both thermal and stress.
l Once the Maxwell solution has been integrated with displacement/temperature, the
adaptive simulation process of a static simulation is disabled. Users must then manually
invalidate the displacement/temperature data in the existing solution before the adaptive
simulation process is re-enabled.
l Simulation iteration is controlled by user.
Related Topics
where
3. To setup the Static Structural system's geometry, you must first export the Maxwell
geometry using sat or step format as follows:
a. Select the Modeler>Export menu item.
b. Select the desired model geometry format (sat or step), and the save location in the
dialog box and save the file for use by ANSYS Workbench.
4. Import the file via the Geometry module of the Static Structural system.
a. To access the Geometry module, double click on the Geometry cell in the Static
Structural system to launch DesignModeler.
b. Select File>Import External Geometry File and browse for the geometry file exported
from Maxwell.
c. After the geometry file is imported, right-click on the root folder of the modeler project tree
and select Generate. (When the geometry file is of a Maxwell 2D RZ design, users can
5. Close DesignModeler and refresh the Model cell of the Static Structural system by right-
clicking the Model cell and selecting Refresh.
6. The geometry mode of the Static Structural system can be changed via the ANSYS
Mechanical user interface.
a. Launch Mechanical by double clicking the Setup cell of the Static Structural system.
b. Select Geometry in the project tree and the Definition of Geometry will be shown in the
Detail window.
c. Select either Flexible or Rigid as the value for the property 2D (or 3D) Stiffness
Behavior.
7. To setup the coupling, drag the Solution cell of the Maxwell system and drop it on the Setup
cell of the Static Structural system.
8. Note that the Maxwell Solution cell is tagged with a “Lighting Bolt” symbol. Right-click on the
Maxwell Solution cell and select Update. This will initiate a Maxwell simulation if it is not
already solved. Once Maxwell's solution is available, the “Lighting Bolt” changes to a “Green
Check”symbol.
9. To “push” the coupling into Static Structural, right-click on the Static Structural Setup cell
and select Refresh.
10. After refresh is finished, you can launch ANSYS Mechanical by double-clicking the Setup
cell to finish the coupling setup, which is similar to that described in “Coupling Maxwell
Designs with ANSYS Thermal via Workbench”.
stress Stress
The coupling framework is built on top of the existing Thermal Feedback. The Stress system will
have additional Export Definition and Mapping Settings like Thermal.
1. Right click on the Solution cell of Stress (Static Structural) and select Update.
a. The Setup of Thermal will be Updated with “em” loss from Maxwell.
b. The Solution of Thermal will be Updated and temperature will be exported to Maxwell.
c. The Setup of Stress will be Updated with thermal force from Thermal and force density
from Maxwell.
d. Displacement will be exported to Maxwell after Stress finishes simulation.
2. Right click on the Solution cell of Maxwell and select Enable Update.
3. Right click on the Solution cell of Maxwell and select Update.
a. Maxwell re-simulates the 3rd pass with its mesh and the temperature/displacement
feedback.
c. Both Revert to Initial Temperature and Revert to Zero Displacement menus are present in
the analysis setup context menu.
Note that the delta temperature and displacement is being reported in the profile.
Note that since Maxwell is not enabled to support feedback, the “Export Result” properties
should be available in the thermal system.
l The Maxwell system is enabled for thermal feedback, but users choose not to “Export
Result’ in the thermal system. This is to disable the automatic “Export Results”.
Related Topics
2. On the General tab, check the objects for which force calculations are desired.
3. The Advanced tab provides additional settings to allow you to control collection of data from
the force calculations.
l For transient designs that include rotational motion, the Collect samples at completion
setting allows you to choose the Number of cycles from the end for which data is collected.
For example, if one cycle equals 1 second, and you solve for 3.5 seconds, setting the
Number of cycles from the end to 2 results in data being collected for the period from 1.5
seconds to 3.5 seconds. Alternatively, you can select Collect samples within a window,
for which you can set a data collection Start at time and a data collection Stop option -
either stop data collection after a user-specified number of cycles or at a user-specified stop
time.
l For transient non-rotational motion designs, the Advanced tab allows you to set the data
collection Start time and Stop time.
l For Eddy current designs, the Advanced tab allows you to set the Rotation Axis and the axis
direction so that the Maxwell solver can generate a full model if a partial model is used in the
design. You can create relative coordinate systems to add more axes.
Once Maxwell is linked to the Harmonic product, it can export the harmonic force results to
the Workbench Harmonic design. Harmonic Eddy force solutions are kept as part of
Maxwell design solutions. If Workbench harmonic design settings are changed, the
Maxwell solutions will be invalidated.
4. Click OK to close the dialog.
Related Topics
Let be the Maxwell stress tensor (refer to reference [1] for detail of the Maxwell stress tensor).
Then the force acting on an object can be calculated by:
(1)
Note that
is the force per unit area transmitted across the surface. Namely, it is the surface force density, which
is denoted as:
(3)
Also, from (1), you can define a volume force density by stress tensor as:
(4)
For a magnetostatic field (similar forms for electric field), the explicit form of the Maxwell stress
tensor is:
(5)
The volume force density can be calculated by (4) and using the virtual work principle (refer to
reference [2] for details).
Reference [1] J.D. Jackson, Classical Electrodynamics, 3rd edition, Wiley, 1999.
Reference [2] A. Bossavit: "Eddy-currents and forces in deformable conductors", in Mechanical
Modellings of New Electromagnetic Materials (Proc. IUTAM Symp., Stockholm, April 1990, R.K.T.
Hsieh, ed.), Elsevier (Amsterdam), 1990, pp. 235-42.
Maxwell solvers can be coupled with ANSYS Mechanical either one-way or two-way. Maxwell
solvers provide volumetric force density/surface force density as load of Mechanical solvers. Force
density is calculated by Maxwell stress tensor.
Maxwell stress tensor for magnetic fields:
Where
The force on a surface can be calculated as:
Where V is volume of the element, and N is the number of surfaces (sides in 2D) of this element.
Maxwell can calculate the harmonic force on each tooth of a rotating machine. This feature enables
the one-way coupling between Maxwell and Harmonic Response of ANSYS. The force is object
based, not element based. The harmonic momentum reference to the geometric center of the object
is also provided at the same time. This feature is also extended to any individual object.
There are two options to calculate the force of an individual tooth:
a. Split the stator/rotor to form separate tooth object, and integrate forces on all out surfaces
of this tooth except the splitting surfaces.
b. Draw an arc (2D) or a cylindrical face (3D) near the tooth in the air gap, and integrate
forces on this face.
In the general case, the definition of the Non-uniform Discrete Fourier Transform (NDFT) is the
same as the definition with constant time interval, taking into consideration that the samples can be
taken at irregular intervals in time (tn). That is to say that the samples x(k) of the irregular Fourier
transform are taken at multiples of a quantity , which is a fixed quantity in the Fourier domain.
The fixed quantity in the regular case corresponds to . The extension from regular to
irregular sampling, therefore, depends on the duration of the signal x(t) and not on the fact that the
samples are taken at regular or irregular intervals.
A finite sample measured at N points in a period of T:
Data collection:
The solver records the components of force and momentum at all teeth at every time step.
With symmetry-multiplier (period in 3D)>1, Maxwell solvers automatically generate harmonic force
for the full model from the partial model
Where r is the vector to be rotated, r* is the vector after rotation. The rotation matrix in 3D:
Vectors that need to be rotated: position (r), force (F) and moment (M)
Related Topics
3. On the Link to LMS tab, enter the path to the Output directory you want to use for the
Virtual.Lab files generated by Maxwell.
4. Export settings to allow you to control collection of data for export to Virtual.Lab. You can
choose to include No steps or All steps. The Steps from end setting allows you to choose
the number of steps from the end for which data is collected. Alternatively, you can select a
Range of steps, for which you can set a data collection Start step and a data collection End
step.
5. Click OK to close the dialog box.
6. Solve the Maxwell project.
The two Virtual.Lab .unv files generated by Maxwell will be in the output directory you
specified.
The following conditions must be observed for the Maxwell partial model:
Related Topics
a. Leave the translation and rotation data fields at their default zeros if the objects in the
coupled designs have the desired location / orientation or change the values as needed;.
Note You can change the location of the source design origin and orientation
(rotation) to perform different HFSS simulations without re-solving the
Maxwell design.
b. Click the Setup Link button to specify the location of the source, Maxwell design.
Select OK to exit the Setup Link dialog.
l Select Finish to finalize the Near Field link setup.
The suggested sequence of steps to create the link between the HFSS and Maxwell3D designs is
as follows:
1. Create and solve the Maxwell3D design which contains the ferrite object and the
corresponding non-uniform biasing fields.
2. Create the HFSS design which can have entirely different geometry but which contains the
ferrite object(s) present in the linked Maxwell3D design;
Note Make sure that in the coupled designs (HFSS and Maxwell) the ferrite objects have
the same position and orientation in the global coordinate system.
3. In HFSS design, assign appropriate ferrite material property to object.
4. In HFSS design set the magnetic bias source (only one allowed per HFSS design):
l Select the object(s) to be assign the non-uniform magnetic bias.
Related Topics
directory will be permanently deleted. Click Yes to use that directory and delete all files
contained in it. Click No if you do not want to select that directory. When you click No, the
dialog box stays open for you to enter a different directory.
l If the directory you entered does not exist, Maxwell creates the directory. If the directory is
6. In the input.txt file that is specific to the UDF, provide the information that is required by the
UDF. For more information about the required information and format, see Sample Input.txt
File Format.
The UDF is invoked during the transient simulation. When there is a need to exchange data,
the UDF invokes the Maxwell solver.
Related Topics
Related Topics
Related Topics
Related Topics
Related Topics
supported.
One-way coupling
l The Maxwell solver calculates force density which includes magnetostriction force data. The
force density data including magnetostriction force data is output to the Workbench
Mechanical system .
Two-way coupling
l Maxwell provides force density data to the Mechanical system as it does for one-way coupling.
l The Workbench Mechanical system solves and sends stress/strain data (plus displacement
data) to Maxwell, which will be used in the Maxwell solution for the next iteration.
Related Topics
Note You must manually Enable Stress Feedback and select the desired
stress feedback objects in the Maxwell design.
The Maxwell transient solver generates force density data, which can be used by Workbench
Mechanical.
3. Update the Workbench Mechanical Setup cell to import the force density data generated by
Maxwell.
Maxwell maps the Maxwell mesh to the Workbench Mechanical mesh; and the calculated
force density values for the time points you set up on the Maxwell transient Solve Setup
dialog Save Fields tab are loaded into Workbench Mechanical.
4. In Workbench Mechanical, select the desired source time point you want to use for the force
density calculations.
Workbench Mechanical solves the structural project using the force density at the selected
source time, then outputs displacement and stress/strain data to be used as feedback by the
Maxwell transient solver.
6. To re-solve using the feedback data, set the Solution cell of the Maxwell panel to Enable
Update, then perform an Update for the Solution cell. (You can also use the feedback iterator
to automatically update the Maxwell Solution cell.)
The Maxwell 3D/2D transient solver uses the feedback displacement and stress/strain data to
re-solve from time 0.
Related Topics
then click OK to complete the integration process. Then OK the information dialogue.
You can confirm that ANSYS 18.1 is “aware” of the ANSYS Electromagnetics Electronics Desktop
application via the ANSYS Workbench Options dialog, which shows the Electronics Desktop install
path.
The Journal Recording Language option permits you specify the default journal recording language.
l The default language is IronPython. You can change the recording language to VB.
l Changes in the recording language option apply to any ANSYS Electromagnetics desktop
launched after the change.
l Any open ANSYS Electromagnetics desktop will continue recording in the language that was
in effect when it was launched.
Objects, such as instances of ANSYS Electromagnetics projects, that are placed on a Workbench
Project Schematic are referred to as systems. ANSYS Electromagnetics circuit/system products:
RMxprt, Circuit, and Simplorer, appear on Workbench Project Schematics as systems with two
“cells” – Setup and Solution. ANSYS Electromagnetics field products: HFSS, Maxwell, and Q3D
Extractor add an additional Geometry cell. If you invoke ANSYS DesignXplorer to use variables
for refining a design, a Parameters cell is added with a link to the associated Workbench Parameter
Set. Refer to the ANSYS 18.1 Workbench help for details on working with systems, cells, and
parameter sets.
ANSYS Electromagnetics desktop products integrate with Workbench commands, services, and
DesignXplorer in a similar manner. Here are some of the ways in which ANSYS Electromagnetics
products integrate with Workbench:
l Adding new analysis systems
l Editing models
l Analyzing models
l Scripting
In addition to these major features, Workbench also allows you to Archive, Save, Backup, Duplicate,
and Delete ANSYS Electromagnetics projects used in a Workbench project. Progress information
and messages from integrated ANSYS Electromagnetics projects are also displayed in Workbench.
Note Detailed information for how to use ANSYS Workbench 18.1 for these operations can be
found in the ANSYS 18.1 documentation and online help.
or by selecting it from the context menu in the Workbench Project Schematic window:
Related Topics
Related Topics
environment. Changes made to the ANSYS Electromagnetics project are saved to the project
instance in the Workbench project folder.
Related Topics
You can use Workbench’s Update command to run analyses in the integrated ANSYS
Electromagnetics project. Progress information is also shown in Workbench.
Related Topics
Note Because Workbench and ANSYS Electromagnetics Desktop have different unit systems,
units defined in Desktop are Dimensionless in the Workbench Parameters table and thus
cannot be changed. Refer to the ANSYS Design Modeler User’s Guide > Project
Schematic Operations > Parameters in Project Schematic > Parameter Units topic for
additional information.
Parameters from the ANSYS Electromagnetics project are exposed to Workbench through the
DesignXplorer setup. The ANSYS Electromagnetics system’s cell status on the Workbench project
is updated as changes are made in the ANSYS Electromagnetics application desktop.
Related Topics
Scripting in Workbench
Scripts that include ANSYS Electromagnetics projects can be recorded and played back via
Workbench.
Related Topics
A geometry from the Component Systems in the Toolbox in Workbench Schematic can be shared as
shown in the image below.
In this example, HFSS coax model Solution provides heat loss data as a thermal load to the ANSYS
Thermal Setup. The resulting analysis shows a thermal “hotspot”, providing the user with the
information needed to adjust the design’s material to fix the problem.
You enable this feature by checking Enable Feedback in the dialog for Setting the Temperature of
Objects.
Related Topics
Feedback Iterator
In this example, the Maxwell 3D electromagnetic force density Solution is used as the load in
ANSYS Structural to determine how these forces deform the motor’s stator and coils.
The User Defined Model (UDM) format makes it possible to exchange parameters.
Note The parameters shown in the previous example all have a DS prefix. This is the default for
the Workbench Tools>Options for Geometry Import. If you want to import parameters
with different prefixes or names, you should assign an appropriate prefix, or clear the
Filtering Prefixes field, depending on your needs.
See here for further description of the UDM feature and function.
ANSYS Electromagnetics CAD integration makes it possible to consume geometry from multiple
upstream source which can be any CAD or ANSYS Electromagnetics product. This feature
supports direct interfaces with all major CAD systems.
l Pro/E Wildfire
l UG NX
l CATIA V5
l SolidWorks
l Autodesk Inventor
Platforms Supported
l Windows 64 bit
l Linux
l CAD parameters
l Material assignment
Though the ANSYS Electromagnetics CAD Integration, the linked UDM includes the same
parameters.
Note The parameters shown in these examples all have a “DS” prefix. This is the default for the
Workbench Tools>Options for Geometry Import. If you want to import parameters with
different prefixes or names, you should assign an appropriate prefix, or clear the Filtering
Prefixes field, depending on your needs.
Once you import a geometry with parameters to an Electromagnetics application in the desktop, you
need to map them to local variables. That is, in the target Electromagnetics application, select the
geometry associated with the parameters. Update the geometry, and view the Parameters tab in the
Property window. The Values column will show the values of the imported parameters. You then
type names for local variables in the values column.
Once you have local variables for the imported Design Modeler parameters, you are ready to use
Design Xplorer for multiple design parameters.
Related Topics
Refresh pulls the current state of CAD model (geometry, parameters, materials etc) and updates the
corresponding data in the ANSYS Electromagnetics application.
If you edit UDM (CAD) parameters in the ANSYS Electromagnetics modeler window you can run
the Send Parameters and Generate command
The command passes the edited parameters to the linked CAD application and then pulls
corresponding CAD geometry.
Related Topics
l Part orientation
l Color
l Display Wireframe
Related Topics
Related Topics
l DX analysis
l Parametric Analysis with DSO
l Animation
l Geometry
l Field Plots
For Explicit Subtraction
l ANSYS Mechanical does not do implicit subtraction
Related Topics
The Healing options are: None, Auto and Manual. By default healing is off (None) and should be
turned on only if required.
Related Topics
l Make sure parameters is checked and parameter key (filter) is appropriate to bring CAD
parameters.
This (default) parameter key filtering means that only parameters whose names start with DS
will come through. Notice that the Parameter Key value (default DS) is set via the Workbench
Tools>Options... dialog, under Parameters, in the Filtering Prefixes and Suffixes field.
l The Mixed import resolution option is used to resolve parts with mixed dimension (typically
from Pro/E)
Related Topics
The following figure shows how the information is transferred between simulators.
l Material assignment
l Associative because IDs persist between ANSYS Electromagnetics model and ANSYS
Related Topics
Related Topics
In this case, the figure below shows how a chamfer operation on geometries is imported.
Related Topics
Detailed Behavior
The geometry-to-ED link can be created, for example, by dragging the ANSYS Electromagnetics
Desktop project geometry cell to the ED cell of a downstream system. When the downstream
system's ED cell is refreshed, the upstream system generates a MatML formatted XML file which is
used by Workbench to update the downstream system. This file is stored in the workbench project
files according to design point. Note that Workbench ED cell material names are case-sensitive, as
are material names within the ANSYS Electromagnetics Desktop designs.
For the material assignments to work with the ED in the downstream model, the downstream
geometry cell must have the Material Properties checkbox selected/checked. A convenient way to
do this is to have this property checked by default, by setting it in Tools>Options>Geometry
Import. Designs created after this default option is set will have Material Properties checked
automatically for the geometry cell.
When the downstream model cell is refreshed or updated, the material properties from the ED in the
same system are used in the model's materials, based on the material assignments set during the
geometry cell refresh. Note that if material assignment fails, the Workbench default material
Structural Steel will be used.
Workbench resolves name conflicts by changing the name of any materials being transferred over
from the upstream system. For example, if the upstream ANSYS Electromagnetics Desktop design
uses a material named “Structural Steel”, this will conflict with the existing downstream default
material with the same name. The update will result in the ANSYS Electromagnetics Desktop
material being named “Structural Steel 2", which will silently break the material assignment, because
the resulting model will refer to "Structural Steel" as it originally did, and use the default workbench
property values, instead of using the properties which were supplied by ANSYS Electromagnetics
Desktop. If this occurs, rename the material in the ANSYS Electromagnetics Desktop project (in
such a way that there is no more conflict), reset the downstream ED cell, reset the downstream
geometry cell, and then refresh those cells in the downstream system.
Note that some materials may not satisfy all of the requirements for the downstream system physics.
For example, vacuum has no thermal conduction coefficient, but downstream steady state thermal
systems require a non-zero value for this property. Material properties in the Workbench ED cell of
the downstream system can be edited/modified after the refresh to ensure that validity criteria can be
met. Any property added to a material in the downstream ED will be preserved in subsequent ED
cell updates. However, any existing property (i.e., a property that was given by the upstream system
material definition) that is edited in the downstream ED will be overwritten by a subsequent ED cell
update.
Related Topics
l UDM can also have external coordinate systems and corresponding planes
l UDM parts can be parameterized and manipulated in ANSYS Electromagnetics modeler just
Related Topics
UDM name
Coordinate system used to position UDM
May have external reference to file
l Info tab has:
Related Topics
Related Topics
UDM Properties
UDM Properties have four tabs – Definitions, Parameters, Options and Info.
Option tab:
l may have options if any
UDM Parameters
UDM Part Edits
Related Topics
UDM Parameters
l You must run the Send Parameters and Generate command to synchronize parameters
with geometry
Related Topics
UDM Properties
UDM Part Edits
l Operations which use UDM parts as tool, such as sweep or boolean (but allowed when clone
l Part orientation
Related Topics
UDM Properties
UDM Parameters
l Any Design/project variables associated with model are brought in as UDM parameters.
Geometry computation for UDM (and also UDP) can be specified in the Modeler options as either
done on.
l Engine side (default):
Related Topics
Feedback Iterator
Background Information
Prior to the introduction of the Feedback Iterator, ANSYS Workbench supported a two-way loose-
coupling protocol with ANSYS Electromagnetics products.
l System Coupling uses the word “coupling” to mean low-level solver coupling. Existing
The one way portion (Upstream source component to Downstream target component) is
handled via existing Workbench data/transfer connection mechanism.
The round trip is handled by a separate protocol agreed upon by the participating systems
when the downstream system exports a set of file to a location specified by the upstream
system (via its one way transfer). This exported data is then incorporated by the upstream
system in its next update.
If the user chooses to run the next coupled solve iteration, the user invokes the Enable Update
command as shown below and then updates all systems involved. These steps (Enable
Update, Update Project) are continued as long as needed
The Feedback Iterator system automates this process as detailed in the following related topics:
The Feedback Iterator System
Feedback Iterator in Use
Feedback Iterator Component Properties
Feedback Iterator GUI Operations
Callback Interface
Example Scenarios for Feedback Iterator
The Feedback Iterator appears in the Workbench Toolbox user interface under Component
Systems.
If you drag and drop an instance of the Feedback Iterator into Workbench Schematic, the default
system name is Feedback Iterator.
While the examples deal with Maxwell and Steady-State Thermal. the Feedback Iterator add-in
functions the same way with Maxwell or HFSS as sources and Fluent or Structural as targets –
essentially all systems that participate in Electromagnetics two-way loose coupling.
l The Maxwell and HFSS design Profile tabs display absolute/relative delta
data, while the delta temperate in Workbench means the relative delta
(expressed as %).
l Target Delta Displacement %: specifies the maximum Target Delta Displacement %
which signifies convergence. Default value is 5%. Value must be 0.01 or greater.
The Feedback Iterator properties also display the most recently achieved Latest Delta
Temperature % and Latest Delta Displacement % values, allowing the user to manually abort
when suitably satisfied with the achieved deltas.
Note Both the Temperature and Displacement Convergence properties sections are always
shown irrespective of which feedback types are actually enabled for the project.
When we run a two-way feedback simulation from WB, and keep the Maxwell or HFSS Profile tab
open (right-click on Results in the Project Manager and select Solution Data, then select Profile tab),
you will see that the 3D solver keeps track of two feedback related quantities:
These signify the maximum difference on the solution mesh of the quantity in question from one
feedback iteration to the next (thus the value is only available from iteration #2 onward). This data is
the basis for the convergence controls in the Feedback Iterator. These controls allow the user to
base the termination of the feedback iterations based on a target max delta T and/or max delta
displacement. Thus the target max delta forms the convergence condition.
Right-clicking on the Feedback Iterator component and selecting Update allows you to run iterations
automatically. Iterations continue to run either until convergence criteria are met, or until the Max
Iterations value is reached.
Callback Interface
The callback interface allows you to react to each step of the iteration process as implemented by the
Feedback Iterator component. This is useful for you to implement special iterations or even solve
transient simulations (with a limited scope). To this end, there are four main API features provided:
l Callback functions which the Feedback Iterator calls at various points in each iteration
l Utility functions that the Callback functions can use to extract properties of the containers
being processed
l Output functions that allow you to debug the script or supply additional messages
l Limited state management allowing the script to store and retrieve state across callback
Related Topics
State is managed somewhat simply but in a limited fashion. All the API methods take a final
dictionary argument. This dictionary is limited to using string keys and number or string values.
Within this limitation, simply add new keys, read old keys, clear the dictionary, etc., and it will be
persisted across functions calls and even across Updates. When the Iterations Completed
property is rest, the dictionary is also cleared out.
iterationNumber An integer representing the current iteration. This always starts from 1.
ContainerList A python list of containers (DataContainerReference). This is the entire list of the
coupled containers managed by the Feedback Iterator. You typically loop
through them and using the utility methods listed below, identities them.
Container A single container that is being processed. This is a DataContainerReference
State A read/write python dictionary that is used to maintain state across function calls
and iterations.
Only return values from BeforeIterationEx are processed. Returns from all other functions are
discarded.
1. BeforeIteration(IterationNumber, ContainerList, State): This method is called before each
iteration. Ideally used to initialize the state dictionary, open editors as required, or initialize
setups as needed for each iteration.
2. BeforeIterationEx(IterationNumber, ContainerList, State): Similar to the BeforeIteration
method except that this allows you to control the number of iterations via the return value.
l Return: “more” to request one more iteration
l Any other return (including none) will be treated as a return of “last” and terminate
iterations.
3. AfterIteration(IterationNumber, ContainerList, State): This method is called after each
iteration. This can be used to copy result files over, check results, implement any possible
convergence calculations, logging of results, etc.
4. BeforeContainerRefresh(IterationNumber, Container, ContainerList, State): Is called before
each of the coupled containers is refreshed. The “Container” argument represents the
container about to be refreshed.
5. AfterContainerRefresh(IterationNumber, Container, ContainerList, State): Is called after
each of the coupled containers is refreshed. The “Container” argument represents the
container just refreshed.
6. BeforeContainerUpdate(IterationNumber, Container, ContainerList, State): Is called before
each of the coupled containers is Update (after a refresh). The “Container” argument
represents the container about to be updated.
7. AfterContainerUpdate(IterationNumber, Container, ContainerList, State): Is called after each
of the coupled containers is updated. The “Container” argument represents the container just
updated.
If the callback scripts uses other files to send commands to various containers (vb, js, apdl, python,
etc.), all of those files are best saved under the user_files directory. This allows you to use the
FBGetUserFilePath(str) to get the absolute path of the file and allows the files to be packaged with
any created archive.
Utility Functions
Output/Debugging Functions
Currently, there is no special progress or interruption control. The progress monitor of the individual
components is displayed as they are updated, and any control they choose to provide (interrupt,
abort or both) are available. If the user chooses to abort any of the client component updates, the
current iteration is aborted and the Completed Iterations property remains unchanged from the
previous iteration.
When the user modified any of the coupled client components either in Workbench by changing
some non-extrinsic property, design point etc or in an external editor, the coupled clients and master
will be marked as modified. Additionally, the Completed Iterations property will be set to 0.
Iterating to Convergence
The following temperature convergence example uses a Feedback Iterator with a Maxwell design
coupled with a Steady-State Thermal component. Iterating to convergence operates similarly for
HFSS projects.
The example uses defaults of 5% for the convergence targets and a value of 100 max iterations.
Recall that the max iterations value is set as a “safety” measure to ensure that iterations do not
continue indefinitely if the solution does not converge. As we progress through the iterations, we
observe the following:
End of Iteration #1
The first iteration, since it has no previous iteration, cannot return a meaningful delta value.
At the end of this iteration, the Latest Delta value will still be listed as Not Available.
Convergence Achieved
In this example, convergence has been achieved by the third iteration.
When the convergence criteria are met, the simulation stops. If you attempt to do an update after
convergence has been achieved, the simulation will not be launched since the current solutions
satisfy the convergence criteria.
You can also monitor the iteration progress by opening the Maxwell editor and from the Results
menu, select the Solution data dialog. Choose the Profile tab and keep the dialog open. As you solve
each iteration, you can observe the reported Delta-T (with thermal feedback) and/or delta-
displacement (with displacement feedback) and abort the iterations (or stop single iteration updates)
when the values reach acceptable convergence levels.
2. Select one of the following from the Model Type pull-down list depending upon the Design
Type(2D or 3D):
l Linear Motion
l Rotational Motion
l Transformer
l Matrix
l Lookup Table
Note The Table window is the last step for the Lookup Table model type. For all other model
types, there is one more step: the Terminals window.
12. For model types Linear Motion, Rotational Motion, Transformer and Matrix, click Next.
The Terminals window appears, allowing you to set up terminals, which are nodes with
"through" and "across" data. Most of the values have been automatically filled in, based on
your design. You can keep the defaults or change the selections and values for the various
parameters.
1. Enter a Scaling Factor in the text box. The scaling factor is applied to all output quantities
and can be used, for example, to scale data from partial models that take advantage of
symmetry.
2. Optionally, specify the Model depth for 2D XY models for scaling.
3. Optionally for 2D XY Rotational Motion model type, specify the Skew angle.
When a stator core or rotor core is skewed for a 2D Rotational Motion model, the flux
linkages and torque of the look-up table will be modified based on the skew angle .
For any output of the look-up table, , where is rotor position, the modified output will
be:
a. Select a Source for the Flux or Charge, depending on whether your design is
mechanical or electrical.
b. Enter a Resistance.
c. Enter the number of Turns in the coil winding.
d. Enter the number of Branches.
l To specify a mechanical terminal:
voltage) and position. The parametric solution should cover the range of motion and
conductor current (or voltage).
l Rotational Motion - Models using rotational rotor position sweep.
l Transformer - For one coil only, models nonlinear mutual (magnetizing) inductance with a
linear leakage inductance branch. Therefore, this model is only valid for 1-phase
transformers. The parametric solution should cover the range of current for one coil only in
an open-circuit test. Nonlinear mutual inductances for 3-phase (or more) transformers are
better solved using the transient solver.
l Matrix - Models an inductance or capacitance matrix for one or more conductors, as a
function of current or voltage. The parametric solution should cover the range of each
conductor’s current or voltage.
l Lookup Table - This option creates a lookup table model in either Simplorer or Saber
formats.
Note In Maxwell, global variable names begin with the $ character. However, when you are
creating an ECE .sml model, this character causes the circuit to fail when importing it to
SIMPLORER. To resolve this, when the circuit is exported, the $ character is replaced by
the _ character. For example, the project variable $MyVar is converted to _MyVar.
To export a circuit from an imported table:
1. Click Maxwell3D>Export Equivalent Circuit>From Imported Table or
Maxwell2D>Export Equivalent Circuit>From Imported Table.
The Select File dialog box appears.
2. Find and select the file containing the table you want to use.
3. Click Open.
The General window appears, allowing you to specify basic information about the circuit
model.
4. Select one of the following from the Model Type pull-down list:
l Linear Motion
l Rotational Motion
l Matrix
l Lookup Table
your design. You can keep the defaults or change the selections and values for the various
parameters.
1. Enter a Scaling Factor in the text box. The scaling factor is applied to all output quantities
and can be used, for example, to scale data from partial models that take advantage of
symmetry.
2. Optionally, specify the Model depth for 2D XY models for scaling.
3. Optionally for 2D XY Rotational Motion model type, specify the Skew angle.
When a stator core or rotor core is skewed for a 2D Rotational Motion model, the flux
linkages and torque of the look-up table will be modified based on the skew angle .
For any output of the look-up table, , where is rotor position, the modified output will
be:
a. Select a Source for the Flux or Charge, depending on whether your design is
mechanical or electrical.
b. Enter a Resistance.
c. Enter the number of Turns in the coil winding.
d. Enter the number of Branches.
l To specify a mechanical terminal:
a. Select the Force (or Torque) variable from the pull-down list.
b. Select the Position variable from the pull-down list.
c. Optionally for Rotational Motion model type, select Use rotational velocity.
5. Click Finish to export the equivalent circuit.
l Amperes
This setting provides flexibility in setting up current sources with different numbers of turns and
branches.
In Maxwell, current source values are specified in Ampere-turns, meaning that if a given source is
driven with 2 Amps through 100 turns, then the source value must be set to 200. Inductance is
calculated per-turn; therefore, to calculate EMF, the flux must be scaled by the number of turns to
give the total flux.
You can create two kinds of circuit models:
l A model format where the data table is based on current in Amp-turns and flux per turn. This
model internally converts currents and fluxes using the specified turn ratio. This model format
was the only one available in versions of Maxwell before Maxwell 11.
l A model format where the data table is based on current in Amps and total flux. This model
does no internal scaling of values, since the data is already in a form the outside circuit
expects. This model format is available in Maxwell 11 and later versions.
For either model type, you can view the inductance setup to obtain information about the specified
groups, turns, and branches.
l In an inductance setup, specify the number of turns consistent with the source setup. Make
l If you want to be able to modify the number of turns in the exported circuit.
When using this format, the grouping is taken from the inductance setup. The number of turns and
branches per group from the inductance setup are used as a default but can be modified either
before exporting the circuit or in the exported circuit.
l In an inductance setup, specify the number of turns consistent with the source setup.
l If you do NOT need to modify the number of turns in the exported circuit.
When using this format, the groups, turns, and branches are taken from the inductance setup and
are used as is. You will not be able to modify them during circuit export or in the exported circuit.
l Force or torque.
Where possible, the columns are set with reasonable defaults based on the information from the
design. In many cases, you should not have to change anything.
Additional information about the columns:
l Under I/O, the choices are Input, Output, or Unused. Unused means that the quantity will
Torque, and Other. These choices affect the terminal setup in the next window. Other is
typically used for extra inputs/outputs.
l Under Extrapolate, the choices are all standard extrapolations plus None. For inputs, the
Periodic repeat the data outside the range of the parametric sweep.
HalfPeriod mirror then repeat the waveform outside the range of parameter sweep.
Constant extrapolate a constant value from the last point in the interpolation.
Odd repeat a reflection of the waveform outside the range of the parametric sweep.
l Mechanical Terminals
For models with motion, the mechanical terminal setup determines which force (or torque) causes
the motion and which position (or rotation) is affected.
When setting up coil terminals, flux and current are used for magnetic models, and charge and
voltage are used for electric models.
In the coil terminal setup, there is one row for each flux (or charge) group. In the Current (or
Voltage) column, each cell is a selection box where you can choose the current (or voltage) that
applies to that flux (or charge) group. Usually the software can choose the correct current by default,
based on the source setup in the design. The Resistance column is set to 0 by default; you can enter
any value here. The Turns and Branches columns only appear for magnetic models where current
variables represent Ampere-turns. These columns are initialized with the turns and branches
specified in the inductance matrix setup.
In the Current column, in addition to each current, there is another choice, <Dependent>. This
feature allows you to solve some problems using fewer parametric rows. This is explained using the
following example:
Suppose you are working on a three phase machine. You create three sources, CurrentA,
CurrentB, and CurrentC. In previous versions of Maxwell (before version 11), you would have
to create three current variables, iA, iB, and iC, and sweep all three of these variables — even
though for this type of machine iC is always equal to -(iA + iB). This means that if you want to
sweep through 10 values of current, the parametric table would have 1000 rows. In Maxwell
11 and beyond, you can create only variables iA and iB and then set the value of CurrentC to
-(iA + iB). The parametric table will have 10 values each for iA and iB, so it will only have 100
rows. When exporting the circuit, you would set the current for Flux[CurrentA] to iA, Flux
[CurrentB] to iB, and Flux[CurrentC] to <Dependent>. In the circuit model, the PWL table will
contain two input currents (iA and iB), but it will contain all three fluxes. So it will look up all
three flux values based on only the two current values. As long as you always connect a
current of -(iA + iB) to CurrentC, this model will be valid.
Note A dependent source can have a different number of turns from the sources that it depends
on (in the example above, CurrentA, CurrentB, and CurrentC can all have different
numbers of turns). But, in this case, you would have set up the current variables as
Amperes instead of Ampere-turns — otherwise there would be no way to obtain the
correct scaling of currents iA and iB for both their own current sources and for CurrentC.
Therefore, this is another case where specifying current variables in Amperes (rather than
in Ampere-turns) is useful.
19 - Scripting in Maxwell
Maxwell uses the Microsoft® Visual Basic® Scripting Edition (VBScript) scripting language to record
macros. VBScript is based on the Microsoft Visual Basic programming language.
Using scripts is a fast, effective way to accomplish tasks you want to repeat.
You can write a script using any text editor, or you can record a script from within the Maxwell
interface. After recording the script from within Maxwell, you can then modify it using a text editor.
For information on how to create, edit, and use scripts in Maxwell, see the Scripting online help,
which you can access from Maxwell via the following menu options:
l Help >Maxwell Scripting Help
Recording a Script
You can choose either to record a script to a file, or to record a script to the Project. Once you start to
record a script, your subsequent actions are added to the script. Each interface command has one or
more associated script commands that are recorded to the script.
To record a script to the project:
1. Click Tools>Record Script to Project to open the Save Script to Project dialog box.
2. In the Save Script to Project dialog box, type the name of the script and click OK.
3. Perform the steps that you want to record.
4. When you have finished recording the script, click Tools>Stop Script Recording. The script
is recorded to a text file in .vbs (VBScript) file format and placed in the Project Manager
Definitions>Scripts folder.
To record a script to a file:
1. Click Tools>Record Script to File.
The Save As dialog box appears.
2. Use the file browser to locate and select the folder in which you want to save the script.
3. Type the name of the script in the File name text box and choose the file type (IronPython
Script .py, or Visual Basic Script .vbs), and then click Save to save script in the folder you
selected and begin recording.
4. Perform the steps that you want to record.
5. When you have finished recording the script, click Tools>Stop Script Recording.
Editing a Script
You can edit a script that was saved to a file, or edit a script that was saved to the project.
To edit a script that was saved to the project:
1. In the Project Manager Definitions>Scripts folder, right-click on the script you want to run to
open the context menu.
2. Select Edit Script to open the script in the text editor.
3. When finished editing, select Script> Save Script.
To edit a script that was saved to a file:
1. Open the script file in any text editor.
2. When finished editing, save the script.
Running a Script
To run a script from the Project Manager:
1. In the Project Manager Definitions>Scripts folder, right-click on the script you want to run to
open the context menu.
2. Select Run Script.
To run a script from Maxwell:
1. Click Tools>Run Script.
The Open dialog box appears.
2. Use the file browser to locate the folder in which you saved the script, and then double-click
the folder's name.
3. Type the name of the script in the File name text box, or click its name, and then click Open.
Maxwell executes the script.
Note To supply script arguments when running from Tools>Run Script, use the edit field
at the bottom of the file selection dialog. You can access the script arguments using
the AnsoftScriptHost.arguments collection from vbscript. This is a standard COM
collection.
To run a script form a command line:
1. Type one of the following command line options at the command line:
-runscriptandexit or -runscript
2. Press Enter.
You can also pass the -scriptargs parameter to the script and specify arguments.
Note If you run the script from DOS prompt as a .vbs file (that is, you do not launch Maxwell, but
simply launch vbs directly, or use wscript.exe or cscript.exe), the arguments will be in the
WSH.arguments collection, not the AnsoftScriptHost.arguments collection. To handle this,
write the following:
Stopping a Script
To stop a script:
l Click Tools>Stop Script.
20 - Running Simulations
After you specify how Maxwell is to compute the solution, you need to begin the solution process. In
general, the Analyze command applies to the selected setup and associated sweeps, if any, or to a
select sweep. To use this command, right-click on a setup or sweep in the Project tree, and click the
command on the context menu. The Analyze All command applies to all enabled setups at or below
the level invoked in the Project tree. To use this command, either click Maxwell 2D or Maxwell
3D>Analyze All or right-click on the Analysis icon in the Project tree and select Analyze All from
the popup menu.
What do you want to do?
l Solve a single setup with or without sweeps
l Enable a queue so that multiple simulations can run sequentially as resources become
available.
l Run more than one simulation, whether multiple setups, or multiple sweeps under a single
l Abort an analysis
Related Topics
Related Topics
Related Topics
Remote Analysis
It is possible to solve a project on a different machine from the one on which you set up your designs.
This is particularly useful when you want to take advantage of a more powerful machine but it is not
convenient to access that machine. This process involves configuring the machine that is to perform
the solving (the remote machine), as well as the machine from which the simulation is to be launched
(the local machine). This can also be extended into distributed analysis, where a specified analysis, if
supported, is concurrently solved on multiple remote machines.
Note Communication between machines in remote analysis and distributed analysis can
drastically affect performance. Use of a high-speed network system, like Gigabit or
Infiniband, is recommended for optimal performance.
l Prerequisites for Remote and Distributed Analysis
l Configuring the Local Machine to Solve Remotely
l Remote Analysis Options
l Running Remote Analysis
The Tools>Options>Export Options Files command writes xml files containing the Options settings
at all levels to the specified directory. The Tools>Options>Export Options feature is intended to
make it easier for different users to use ANSYS Electromagnetics tools installed on shared
directories or network drives. The Example Uses for Export Options Features section outlines some
use cases enabled by this feature.
l Altair’s PBS
l GridEngine
2. Maxwell must be accessible from all remote machines as well as accessible on the local
machine.
3. If you use RSM, it must be accessible from all remote machines. In addition, the Maxwell
engines must be registered with each initialization of RSM. To do this, on each remote
machine:
l On Windows on the local and remote machines, click
Select whether to run simulation processes as the user running RSM (Service User), or a Specified
User. If you select Specified user, you must provide the User Name, Password, and any
Domain/Workgroup on which this user is defined. If the name or password is incorrect, the Message
window issues a warning message, and the solver attempts to perform the analysis as the Service
User.
simulations continues. When the simulation is complete, you will see a message in the Message
window.
Related Topics
Troubleshooting
Problem: When you try to solve from local to remote machine, an MAXWELLCOMENGINE
process starts on the remote machine, but the Maxwell user interface hangs indefinitely.
This occurs if the remote solve option is enabled after the COM daemon is started, or when the
option "Don't allow exceptions" is selected for the Windows firewall.
Resolution: Remote solve needs either firewall exceptions to be ON or firewall to be completely
turned off.
Problem: When you try to solve from a local to a remote machine, you receive the following error
message:
[error] Unable to locate or start COM engine on 'nomachine' : Unable to reach AnsoftRSMService.
Check if the service is running and if the firewall allows communication. (10:57:13 PM Aug 13, 2009)
Resolution:This message can happen if the machine is not present, the network connection is
down, if there are firewall issues or if the service is not running.
6. Make sure the COM engine is registered with the ANSYS Electromagnetics RSM Service.
From the Windows menu, choose Start>All Programs>ANSYS
Electromagnetics>ANSYS Electromagnetics Suite [version]>Register with RSM to
register the engines.
Error: "Unable to locate or start COM engine on <remote node>: Engine is not registered with the
ANSYS Electromagnetics RSM service which is running on this machine.”
l To register the engine, from the Windows menu, select Start>All Programs>ANSYS
Distributed Analysis
Distributed analysis allows users to split certain types of analyses and solve each portion of an
analysis simultaneously on multiple machines. Simulation times can be greatly decreased by using
this feature.
Maxwell supports the following forms of distributed analysis:
l Distributing rows of a parametric table, either as a regular DSO, or as Large Scale DSO
performed through command line. Large Scale DSO generates a reduced set of outputs.
l Distributing a single or discrete interpolating sweep.
Note Communication between machines in remote analysis and distributed analysis can
drastically affect performance. Use of a high-speed network system, like Gigabit or
Infiniband, is recommended for optimal performance.
Related Topics
This opens the HPC and Analysis Options dialog. You can define and select configurations
for Maxwell 2D, 3D, and RMxprt design types separately. You can view a list of Available
configurations, and a report of the configuration details. From the current, list, you can select a
configuration to Make Active. You can also Add a new configuration, Edit an existing one, or
Export as a ANSYS Configuration file (*.acf). You can also Import a configuration file. This
lists existing configurations, and shows all machines in the selected configuration, enabled or
not. You can Copy an existing configuration, typically to edit the name and contents for other
purposes.
In the Options tab you can enable queuing, set the design type, set licensing options and
specify default process priority.
For a more detailed discussion of this dialog, see Setting HPC and Analysis Options.
2. To define a new configuration, on the Analysis Settings dialog, click the Add button to open
the Analysis Configuration dialog. See Editing Distributed Machine Configurations.
Related Topics
This opens the Analysis Configuration dialog directly. You can also access this dialog from
the HPC and Analysis Options dialog by clicking the Add..,, Edit..., or Copy... buttons.
If you select Add... from the HPC and Analysis Options dialog , the fields are empty. If you
select Edit... or use Tools>Edit Active Analysis Configuration, or click Copy from the
HPC and Analysis Options dialog, the fields show the selected configuration.
2. If you Add a new configuration, you must specify the name of the new or edited configuration.
It cannot be empty and cannot be a previously used name or a reserved word.
3. If the solver supports automatic settings, you can select the Use Automatic Settings check-
box to assign resources automatically, or you can uncheck the box to specify job distribution
manually in the Job Distribution tab, as discussed below. For Maxwell, this setting currently
is supported only for 2D and 3D Transient designs.
Selecting Use Automatic Settings removes the Job Distribution tab, setting those
parameters automatically based on the best use of available resources for the current
analysis.
For 2D and 3D Transient designs, the Use Automatic Settings option distributes one
excitation to each machine listed in the configuration. When this option is enabled, a minimum
of 2 cores must be assigned. Each machine uses all cores assigned to it while solving its
excitation. Unlike automatic frequency setup, the machines are assigned sequentially without
regard to machine capability.
4. The Machines Tab contains the machine list for the analysis configuration.
Here you can provide machine information, either by specifying Machine Details, or by
importing a list of machines from a file. You can then remove, order, test, and enable
machines on the list. Control buttons let you Add machine to List or Remove machines
from the list.
Numbers of Tasks and Cores
If automatic settings are either not used or not available, note that each machine has an
associated number of tasks and number of cores. The number of tasks specifies the total
number of compute jobs that will be run on that machine simultaneously. Each separate solver
or engine instance is one task. The total cores specifies the total number of cores that will be
used on the given machine. This is how you specify multiprocessing. For example, if you want
to run two threads for each task, you specify Total Cores = 2 x Number of Tasks. The number
of cores must always be greater than or equal to the number of tasks. If the number of cores is
not an exact multiple of the number of tasks, some tasks will use more cores than others. For
example, if Number of Tasks is 4 and Total Cores is 10, 2 tasks will use 3 cores, and 2 tasks
will use 2 cores.
RAM Limit (%)
Here you can specify the maximum percentage of the machine's RAM to be used for
processing.
Import Machines from File...
You can import a machine list from a file, and an enhanced the file format handles the new
flexibility. Each line of the file can contain a machine specifier of the form:
<MachineName>:<NumTasks>:<NumCores>.
Note: this same format is used with the "-machinelist file=" command line option.
Local Machine Radio Button
To streamline the common case of running jobs on the current machine, use the dedicated
radio button to specify the local machine.
5. For each machine to manually add to the list, under Remote Machine Details, specify an IP
address, a DNS name, or a UNC name.
The remote machines must have the same ANSYS Electromagnetics Suite version installed
in the same OS and version, and have the RSM service active.
Once you have specified the remote machine details, either directly or by Importing Machine
from a File, you select a machine from the table to enable the buttons to Remove a machine,
or to Move a machine up or down on the list.
The displayed list shows the order in which you entered them irrespective of the load on the
machines. To control the list order, select one or more machines, and use the Move up or
Move down buttons. Move up and Move down are enabled when you select one or more
adjacent machine names.
Enabled Machines
Each machine on the current list has an Enabled checkbox. Here you can enable or disable
the listed machines according to circumstance. Above the table, the dialog gives a count of the
total enabled tasks, and the total enabled cores.
For distributed tasks, the software will allocate the total cores on a given machine to that
machine's tasks. If a machine with 8 cores is running 2 distributed tasks, the software will
automatically allocate 4 cores to each task. If it is running 4 distributed tasks, each gets 2
cores. And if it is running 3 distributed tasks, the first two tasks get 3 cores and the last task
gets 2 cores.
For a given variation (for example, frequency or geometry), you should make assignments so
that each task has the same number of cores. This is because the solvers attempt to make
each task computationally balanced. For example, with two machines, one with eight cores,
and another with four, assuming that the memory is proportionally equivalent, you could
assign two tasks for machine 1, and one task for machine 2, giving all tasks the same number
of cores.
In general, Maxwell uses machines in the distributed analysis machines list in the order in
which they appear. If you select a distributed configuration (rather than Local) from the
Toolbar menu and you launch multiple analyses from the same UI, Maxwell selects the
machines that are running the fewest number of engines in the order in which the machines
appear in the list. For example, if the list contains 4 machines, and you launch a simulation that
requires one machine Maxwell chooses the first machine in the list. If another simulation is
launched while the previous one is running, and this simulation requires two machines,
Maxwell chooses machines 2 and 3 from the list. If the first simulation then terminates and we
launch another simulation requiring three machines, Maxwell chooses 1, 4, and 2 (in that
order).
Test Machines
Test Machines- When multiple users on a network are using distributed solve or remote solve, they
should check the status of their machines before launching a simulation to ensure no other ANSYS
Electromagnetics processes are running on the machine. To do this, you can select one or more
machines and click the Test Machines button. A Test Machines dialog opens.
The test goes through the current machine list and gives a report on the status of each machine. A
progress bar shows how far testing has gone. An Abort button lets you cancel a test. When the test is
complete, you can Close the dialog. If you need to disable or Enable machines from the list based on
the report, you can do so in the Distributed Analysis Machines dialog.
Use the check boxes to enable/disable available distribution types. The job distribution list box allows
you to specify which job distribution types to allow for the current analysis configuration. At solve
time, the ANSYS Electromagnetics software automatically select the best distribution type from the
enabled distribution types. By enabling/disabling distribution types, you can control the job
distribution.
Enabling a distribution type does not necessarily mean it will be used. It must also be allowed by the
solve setup. For example, the Transient Solver distribution type that enables use of the Time
Decomposition Method, will only be used with Maxwell 2D and Maxwell 3D transient designs. Note
that the enabled distribution types will apply to all setups of the given design type, so it is possible for
different setups in a design to be solved using different distribution types.
The distribution types that you enable here are listed in the HPC and Analysis Settings dialog in the
Configuration details pane when select that configuration from the list.
If your solver permits, and you have selected Use Automatic Settings, the Job Distribution notes
that Optimetrics Variations will be solved sequentially. Other distribution types will be distributed
automatically.
For products that support two-level distribution, when the design is appropriate, you can turn on two
level distributed solves, and specify the number of engines to use for level 1.
Distribution Levels
The radio buttons let you specify Single level only or Enable two level distribution.
If you select Single level only, one distribution type will be applied at each stage of the solution
process. If multiple types are available, the higher level solution will generally be distributed. All
machine tasks will be used by the single-level distribution.
Single Level Distributions
Supported distribution types are Optimetrics Variations, Frequencies, and Transient Solver. Solver
distributions require MPI.
l Parallel distribution types such as Optimetrics Variations and Frequencies are considered as
not required. If these types are not able to distribute, the simulation can be run sequentially.
l Transient Solver distribution types are considered as required. If these types are enabled the
software will assume that distribution is necessary to extend the simulation scale or add
fundamental solution capabilities.
When multiple distribution types are available, the higher level solution will generally be distributed.
For example, Optimetrics Variations will be distributed when both Optimetrics Variations and
Transient Solver are selected.
Two Level Distributions
Selecting Enable two level enables the Distributed Solutions at first level selection box.
The first level will distribute the specified number of solutions. Each solution will use a subset of
machine tasks to distribute the second level. The Transient Solver distribution type must be available
for the second level; otherwise single-level distribution will be applied.
Types that can be distributed at Level 1 are Optimetrics Variations. Transient Solver distributions can
be distributed as Level 2.
The following is an example of a two-level distribution:
l A parametric setup distributing Optimetrics Variations as level 1 and Transient Solver as level
2.
The Options grid contains the available option Names and editable Values.
These options settings will be in effect only when all the following are true:
l A design is being solved whose design type matches this analysis configuration's
l This analysis configuration is the active configuration for its design type
l You have not specified corresponding batch options on the command line. Command line
batchoptions can be used to override the options specified by the active configuration.
Selecting an available option causes a display of a description of the option.
Relation to Batchoptions
Analysis configuration option settings can be overwritten by specifying the option name and value
inside a -batchoption string. See -batchoptionhelp for a list of batchoption names and possible
values. You can also view all available and frequently used batchoptions in the Job Management
Submit Job To: dialogue, by clicking the Add... button under Analysis Options. This opens the Add
Batchoption dialog, which gives access to all batchoptions.
Related Topics
Related Topics
l Deployment/Configuration
l Job outputs
l Job Monitoring
Related Topics
General Prerequisites
l Maxwell must be installed on the cluster which runs either a supported scheduler or ANSYS
RSM.
l The cluster is compatible with large Scale DSO Requirements
l There is a folder on a shared drive where the input projects are located.
l Every node of the cluster supports the disk space (in temp directory) and memory
Windows or LINUX.
l On each machine of the cluster, 'desktopjob' application is registered with Ansoft RSM service
using the command shown below:
Windows: <installation-directory>/<platform> desktopjob.exe -regserver
Linux: <installation-directory>/<platform>desktopjob -regserver
Note Detailed cluster configuration instructions are
here.
Scheduler Environment
l No extra configuration is needed.
Related Topics
Click Select Scheduler to display the selection dialog. A drop down lists potential schedulers, (which
can include RSM, lsf, or sge, depending on the environment).
If you select a scheduler that is not supported in your environment, you receive a warning message.
After selecting a scheduler, you can click Refresh to display information for that scheduler.
Once you have selected a scheduler supported in your environment, you can go through the
following steps to submit a Large Scale DSO job.
1. Setup and prepare model on local workstation
l Launch Desktop. Open project, for example, '/home/projects/spool/test.mxwl'
ParametricSetup1 and run Validate for Large Scale DSO. Fix any validation errors.
Distributed Machine Configurations.) For example, say the machine-list is: 3 cores from
'm1' and 3 cores from 'm2', for a total of 6 engines. You select the list on the Compute
Resources tab described below.
l In a Linux scheduler environment, a cluster must have a designated 'postprocessing node'.
Open a remote-desktop session (or equivalent such as vnc session) on the designated
'post-processing node'. Say the name of this node is 'm1'. Launch Desktop graphically on
'm1'.
3. Open a remote-desktop session (or equivalent such as vnc session) on the node
corresponding to the first machine of job's machine-list, 'm1' in this case. Launch Desktop
graphically on 'm1'.
4. (Optional step) Double-check that the model is prepared correctly
l Open project '/home/projects/spool/test.adsn'
l Right-click on ParametricSetup1 and run 'Large Scale DSO/Validate'. Fix any validation
errors
l Save project, in case of edits. Close project
5. Run Tools>Job Management>Submit Job... The standard Job Submission panel pops up.
The panels for LSF and GE have some differences. See separate sections for Job
Management User Interface for LSF and Job Management User Interface for SGE.
l Enter all fields. Make sure to select 'ParametricSetupn' for analysis and check the Use large
l To see the command-line submitted to the scheduler, click Preview Submission. This
See the discussion on Running Maxwell from a Command line for a discussion of the solve
information available through batch extract.
l If you intend to Monitor the job through a user interface, you must check Monitor job. You
can then monitor this job through the Tools>Job Management>Monitor Jobs...
command or by checking the dialog that opens when you submit the job.
6. The Compute Resources tab displays other parameters. Depending on the resources
available for a scheduler environment, some of the fields may be disabled.
8. You can monitor this job either automatically (by checking the option) or through the
Tools>Job Management>Monitor Jobs... command.
The dialog contains fields reporting the Job status, Job ID, Messages, and Progress. You can filter
the messages for Errors, Warnings, and Info. You can Clear Progress Messages. You can refresh
the job Manually or Automatically at specified intervals.
You can also perform a Clean Stop for a simulation between time steps, or Abort Job.
The process for submitting and monitoring Large Scale DSO jobs in LSF/SGE environments. is
generally similar.
1. Setup and prepare model on local workstation
Launch Desktop. Open project '/home/projects/spool/test.adsn'
Suppose the variations to solve come from ParametricSetup1 setup, Right-click on
ParametricSetup1 and run 'Large Scale DSO/Validate'. Fix any validation errors
Save project, in case of edits
Close project
2. Copy the input project (or folder, if the project references external files) from personal
workstation to shared-drive on cluster (say project is copied to
/home/projects/spool/test.adsn)
In the scheduler environment, a cluster must have a designated 'postprocessing node'. Open
a remote-desktop session (or equivalent such as vnc session) on the designated 'post-
processing node'. Say the name of this node is 'm1'. Launch Desktop graphically on 'm1'.
l (Optional step) Double-check that the model is prepared correctly
Open project '/home/projects/spool/test.adsn'
Right-click on ParametricSetup1 and run Large Scale DSO/Validate. Fix any validation
errors
Save project, in case of edits. Close project
3. Run Tools>Job Management>Submit Job.... The standard Job Submission panel pops
up, which is documented as part of the scheduler-gui-integration feature.
4. Enter all fields. Make sure to select 'ParametricSetup1' analysis and turn ON 'Use large scale
DSO' checkbox
5. Click on 'Preview' to check (and/or copy to clipboard) job's command-line. Click on 'Submit
Job'
6. Monitor this job through the Tools>Job Management>Monitor Jobs... command.
See separate sections for Job Management User Interface for LSF and Job Management User
Interface for SGE.
Options:
-help: Print this help text
-cmd: Specify command to run. Available choices: dso
-ng: Run analysis in non-graphical mode
-monitor: Output progress and messages to standard output/error
-waitforlicense: Queue the job until the availability of licenses
-preserve: Preserve local storage space of the distributed job for investigation into job's run. If
local storage directory (aka, temp directory) is provisioned by scheduler, ensure it is also
configured to preserve job's local storage. (Note: this storage should be deleted manually)
Specify machines for distributed analysis. Machine list is specified either inline (as a comma
separated machine names) or through a file. Multiple cores are specified by repeating the
name of machine or by embedding number of cores in the machine name, using a colon
separator.
Example 1:
-machinelist "list=m1,m1,m1,m2,m2,m3"
Example 2:
-machinelist "list=m1:3,m2:2,m3"
Example 2:
-machinelist "file=machines.txt"
l In the context of a scheduler such as LSF:
Specify the portion of total machines for distributed analysis. Use remaining for overhead or
shared memory multiprocessing.
Example:
-machinelist "Num=10"
-usefolderasinput: Choose this option if the job's input represents the entire folder rather than just
the project file.
-maxfolderInMB: Specify the maximum size (MBytes) of input folder that is allowed for a valid job.
By default, the maximumsize allowed for input is 10MB. Specify a value of 0 to remove this size
restriction and enable inputs of any size. Note: this option applies when '-usefolderasinput' is used.
-workdir: Specify the shared drive folder for status and result files generated by analysis. By default,
the results folder of input project is used as the work directory.
-batchsolve: Solve the specified parametric setup. Syntax for the setup:
<design-name>:Optimetrics:<parametric-setup>
Related Topics
extracted columns of data are saved as CSV files. Typically, there is one CSV file per-trace, per-
variation. (Note: Non-Rectangular plots of the design (for e.g. statistical eye, digital plot) are not
extracted). The outputs can be either imported as datasets for post-processing in the desktop also as
function of parametric variations, or used directly in downstream applications (for example, Excel, or
custom programs that parse .csv files).
has Freq values and the second column has values for trace's s-parameter component
l Trace of a far field report: Suppose there is a farfield report with a trace ('magrE'), whose
primary sweep is 'phi' and secondary sweep is 'theta'. Further suppose that two values of
'theta' are chosen and 'all' values of 'phi' are chosen. For this trace, the data portion of CSV file
contains three columns of data: the first column has phi values, the second column has magrE
values for the first value of theta, the third column has magrE values for second value of theta.
The magrE output columns are titled as 'magrE_crv1', 'magrE_crv2' respectively
l (Advanced) 'Special' sweeps: In the case of a trace with 'special' primary sweep (such as the
trace of a time domain quantity), one CSV file is created per curve of trace, per variation.
These CSV files always have two columns, irrespective of the number of values chosen for
secondary/higher sweeps.
Related Topics
1. Ensure that the Maxwell project is on the shared drive. For this example, the relay_
nominal.mxwl file is on "\\sjo7na1\mxwlprojs\relay_nominal.mxwl"
2. Set up a parametric table you wish to use.
3. On the Options tab, ensure that Save Fields and Mesh is unchecked.
4. Outputs from Large Scale DSO come from predefined rectangular plots that are created
before the Analysis command is issued. Non-rectangular plots of the design (digital plots, for
example) are not extracted. Follow the steps below:
a. Because these DSO outputs come solely from Rectangular Plots, delete all other
postprocessing setups.
b. Use the Report window to define outputs for the desired rectangular plots.
c. Click on the Families tab and ensure that all variables are set to Nominal, as shown
below.
Note For Large Scale DSO, outputs are not extracted correctly unless all variables on
the Families tab are set to nominal.
d. Click the New Report button to create the report.
5. Right-click on the parametric sweep, and select Validate for Large Scale DSO.
A dialog reports any errors. The following are some typical messages:
[error] Please remove all the calculations in Parametric
Setup/Calculation page.
[error] Please turn off "Save Fields And Mesh" in Parametric
Setup/Options page.
[error] No rectangular plot exist in the design. Please create
a rectangular report.
6. Correct any errors, if necessary to pass validation.
7. Save and Close the project.
This section includes examples of submitting a Large Scale DSO job using Ansoft RSM and a
Scheduler.
1. Before submitting the job make sure that the input project is not open in any Desktop window.
2. For this example, suppose that there are two quad-core machines on your cluster with the
names "m1" and "m2". Further suppose that there are two engines per machine, for a total of
four parallel engines. Let the number of processors allocated to each engine be 1.
3. From a command prompt, issue the following command:
<installation-directory>/<platform>desktopjob.exe -cmd dso -
machinelist "list=m1:2,m2:2" -batchoptions
\\sjo7na\mxwlprojs\mxwloptions.txt -batchsolve "relay_
nominal"Optimetrics:ParametricSetup1"
\\sjo7na\mxwlprojs\relay_nominal.mxwl
where the file \\sjo7na\mxwlproj\mxwloptions.txt has the following contents:
$begin Config
'Maxwell/Preferences/NumberOfProcessors'=1
'Maxwell/Preferences/NumberOfProcessorsDistributed'=1
'Maxwell/Preferences/NumberOfProcessorsPostProc'=1
'Maxwell/Preferences/UseHPCforMP'=0
'Maxwell/Preferences/SaveBeforeSolving'=0
'Maxwell/Preferences/MemLiimitHard'=0
'Maxwell/Preferences/MemLimitSoft'=0
'Maxwell/Preferences/HPCLicenceType'='pack'
#end 'Config'
4. Assume the above job is assigned ID "jobID".
Related Topics
Once the job is done, output is available in the ~\relay_nominal.mxwl\jobid\results folder. Each
variation creates a subfolder, which in turn has one csv file per trace of each report. See the detailed
information regarding job monitoring and the location of the analysis logs.
The figure below shows the results for 10 variations as located in 10 folders.
Within each folder will be csv files corresponding to the traces for each variation.
You have three options for post-processing csv files.
l Import Large Scale DSO Dataset Solution
l Use Microsoft Excel or any other application that has csv post processing functionality.
l Parse the csv output into your custom program, for any downstream flow.
Related Topics
This opens the Import Large Scale DSO Dataset Solution dialog.
From here you can browse to the results of a Large Scale DSO job and select a job folder.
Click the ellipsis button [...] to open the browser window. Navigate to the results directory to
see the results, organized by the scheduler prefix and job ID number. To select a results
dataset, double-click on the results folder name. See Large Scale DSO Results Database
Organization.
Click, OK to import the Dataset. If you have selected the solution folder correctly the dialog
closes. If not, an error dialog opens.
2. To View/Delete created dataset solutions:
In the Project tree, right click on Results and from the menu click Dataset Solutions....
The dialog lists any existing datasets. You can delete one or more by selecting from the list and
selecting Delete. The ImportLarge Scale DSO Solution button opens the dialog for
importing a dataset solution.
3. To create a Dataset Report
After you have imported one or more DSO solutions, you can create a Dataset Report. Right
click on Results and from the menu select Create Dataset Report, and the type of report.
This opens a reporter window from which you can create a report. If you have previously
created an eye diagram report and it is included in the DSO solution data extraction, you can
use Create Dataset Report > Eye Diagram to recreate this report.
4. Cloning from a Dataset Solution
If you re-open a project that was solved using large scale DSO, you can quickly clone a report
for a solved large scale DSO solution by right-clicking in the Project tree on the report, and
choosing Clone from Dataset Solution..., provided this report is qualified for Large Scale DSO
data extraction. The provides a way that you can reuse the existing report definition and save
the work of creating new report.
per-variation. (Note: Non-Rectangular plots of the design (for e.g. statistical eye, digital plot) are not
extracted)
The results of a Large Scale DSO job are located in the '<workdir>/<jobid>/results' folder. If 'workdir'
is not specified on the job command-line, it is same as the input project's results folder. For example
the default 'workdir' corresponding to '\\shared\projects\relay.mxwl' is
'\\shared\projects\relay.mxwlresults'. Within this results folder, there is one folder per variation. The
name of the variation's folder is an integer number corresponding to variation's index in the
parametric table. For example, a variation-folder named '4' has results for the fifth row of parametric
table, while a variation-folder named '0' has results for the first row of the table.
Below is a sample results folder showing the contents corresponding to results of first variation.
There are ten CSV files corresponding to ten predefined traces.
Related Topics
jobs is monitored using standard cluster monitoring tools. Such job-neutral resource
monitoring is ideal as it uses negligible network bandwidth, CPU/Memory.
l Detailed monitoring of analysis of a variation: For any detailed monitoring you must examine
the information provided in the job's log files. Specifically, the large-scale-dso job writes
detailed logs conveying information regarding the machines where engines are running and
the local storage location of per-engine distributed database. With such information, you can
login to individual machines for deeper probing of each distributed engine. Following logs are
available:
l Per-node logs:
There is one 'desktopjob.log' file per node assigned to the job. This log contains information
regarding the node such as name, local storage folder, number of engines started on this
node, etc. It is located in <workdir>/<jobid>/r<nodeIndex>. E.g. "<workdir>/<jobid>/r0" has
desktopjob.log corresponding to the engines running on the first node of job, while
"<workdir>/<jobid>/r2" has logs corresponding to engines running on third node
l Per-engine logs:
There is one desktopjob.log file per distributed engine. It is located in
<workdir>/<jobid>/r<nodeIndex>/r<coreIndex>. For example, "<workdir>/<jobid>/r0/r0" has
logs corresponding to first engine running on first node, while "<workdir>/<jobid>/r1/r2" has
logs corresponding to third engine running on second node. Engine unique information (such
as local storage of this engine) is logged here
l Parametric analysis log:
This log file is located in '<workdir>/<jobid>/r<nodeIndex>/r<coreIndex>' folder and
corresponds to Desktop's local-machine parametric 'batchsolve'. It is available only at the end
of analysis and contains information regarding the variations solved by this engine and any
info/warning/error messages.
l Root desktopjob.log:
This is the top-level log that logs job distribution information such as hierarchical activation and
the list of nodes assigned to this job
l GM specific extraction
In R14, GM extraction is OFF, by default. It can be turned on through setting environment
variable “ANSOFT_ENABLE_GM_EXTRACTION” to a value of 1
Related Topics
submitted project must be located on a shared drive (for example, a sub-folder of user’s home
directory). The shared-drive must accessible using the same path on every node of cluster
l 'Temp directory' configuration
Temp directory is either on ‘local storage’ or on storage that has equivalent speed
characteristics i.e. the I/O rates of the storage should be invariant to network traffic
Temp directory on a host has sufficient space to hold results database for the variations that
are solved on it. Note:
This storage is freed at the end of the analysis
The amount of required space depends on the number of engines per node and the
cumulative variations solved on this node
The amount of required space depends on the project’s compression-options. For e.g. if ‘Save
Fields’ of a parametric setup is OFF, the space requirement is smaller by the amount of space
taken up by field solution data
l ANSYS Electromagnetics RSM environment: In the case of supported scheduler
environments, there is no extra configuration needed. In the case of Ansoft RSM environment,
following additional steps are needed:
Ansoft RSM must be running on all the nodes of cluster. The credentials of ‘RSM service’
allow read/write to shared drive. Reason: the remote engine processes are launched using
the credentials of RSM service
Registration of 'desktopjob.exe' with RSM service: ‘desktopjob’ program must be registered
with ANSYS Electromagnetics RSM using 'desktopjob -regserver". To ensure that the
registration is successful, check that the ‘desktopjob’ entry in '<RSM-installation-
folder>/AnsoftRSMService.cfg' file is valid.
Note Linux-specific critical note: Edit AnsoftRSMService.cfg and replace ‘desktopjob.bin’ with
‘desktopjob’
Major limitation: In the Ansoft RSM environment, Large Scale DSO can only be enabled for one
product.
Troubleshooting hints (Ansoft RSM environment only): “shared drive read/write” requirement is a
new constraint introduced in Large Scale DSO. So if a user runs into a situation where Regular DSO
jobs run and Large Scale DSO jobs fail, one possible cause for the failure: RSM service does not
have privileges to read and write to project folder located on shared-drive.
of cluster (i.e. local installation) OR installed on a single shared-drive available to all nodes of
cluster (i.e. network installation)
l Registration of 'desktopjob.exe' with RSM service:
l Network installation: desktopjob.exe is registered with RSM service once, on any of the nodes
of cluster
l Local installation: Since each node has it's own RSM installation, desktopjob.exe must be
Related Topics
Related Topics
Job Abort: When a Large Scale DSO job is aborted, all results are lost (this will be fixed in R14 patch)
Job re-start: There is no provision for stopping and re-starting a job. A new job does not reuse solved
results - always solves all rows in the table. So an abort or failure of a job re-starts from the
beginning, unless a new parametric table with the unsolved rows is created
Job outcome
Job status: The exit code of job doesn’t indicate success or failure correctly. The error messages
from multiple log files needs to be combined to determine the reason for failure. In many situations,
the reason for a failure is apparent only after re-running the job after turning ON the 'debug logging'
In some Linux scenarios, the analysis appears to finish successfully with valid results, except that the
exit code is ‘134’. In this case, although the exit is abnormal, the failed exit code can be ignored
Load Balancing: For models with 'unbalanced variations table' (i.e. variations that take considerably
different amount of time to solve are clustered in few regions of table), job will take longer time to
solve than a Regular DSO as the job's overall completion time is determined by the slowest solving
region.
Workaround: rearrange the rows in the parametric table so that each region takes a similar time to
solve
GM Specifics: the model used for ‘Report-based extractor’ jobs is NOT compatible with the ‘ANSYS-
extractor-for-GM’ jobs. A valid model for ANSYS-extractor-for-GM cannot contain any of: reports,
overlay plots, optimetrics calculations.
Related Topics
With the advent of economical availability and timely provisioning of compute resources, product
designers have access to large compute clusters to run their simulations. And they are throwing
larger and larger number of compute resources at simulation jobs, in order to obtain results faster.
The parametric DSO needs to meet this challenge and target linear speedup for 'large-scale parallel'
jobs. The Large Scale DSO feature is targeted towards 100% reliability and linear speedup of large-
scale parallel DSO jobs.
nature of parametric runs. The solve of each variation is made fully independent of another
variation, by replacing Regular DSO's centralized database with per-engine distributed
databases
l Distributed databases: For each distributed-parallel engine, the database of the input model
is cloned to local storage of engine's compute node (as illustrated in the following picture).
Parallel analysis is performed on these cloned models and the analysis results also go the
corresponding location on local storage. As each engine has its own database, there is no
‘shared database’ contention between any two engines. There is negligible network traffic as
analysis/computations are contained in a single machine and use just the ‘local resources’.
l Hierarchical activation of engines: In the Large Scale DSO algorithm, engine activation is
done hierarchically, where the overhead of launching of engines is also shared across the
nodes. Such hierarchical activation improves reliability of the activation phase of large-scale
parallel jobs. A new 'desktopjob' program encapsulates hierarchical activation, as illustrated in
the below pictures. In this approach, the 'root' desktopjob (Root DJ) activates a 'level-one'
child desktopjob (DJ(L1)) for each unique node allocated to the DSO job. Each level-one
desktopjob activates one or more 'leaf' desktopjobs (DJ(L2)) equal to the number of
distributed engines per node. A leaf desktopjob in turn runs Desktop in batch mode, to perform
local-machine parametric analysis to solve the variations assigned to this engine.
l Decentralized Load balancing: A parametric table is divided into regions of equal number
of variations, with the number of regions equal to the number of engines. In the below
illustration, the analysis of 30 parametric variations is distributed among 5 engines. Each
engine solves it's assigned region as a ‘local machine’ parametric analysis. Large Scale DSO
job is considered done once all engines are done with their assigned variations.
l Distributed results postprocessing: As engine is done with the solve of a variation, it
extracts results for the solved variation before progressing to the analysis of next variation.
The extracted results are saved to the local storage. When the engine is done with analysis of
all variations, the extracted results are transferred from local storage to the results folder of the
input project.
Related Topics
'HFSS/SelectedDSOConfiguration'='Local'
'Desktop/Settings/ProjectOptions/DoAutoSave'=1
'LargeScaleDSO/MaxFolderInMB'=100 "
Major differences between interactive scheduler mode and batch mode or normal interactive mode
are:
l In interactive scheduler mode, DSO configuration settings and design type options in the UI
override command line options and batchoptions.
l When not in interactive scheduler mode, DSO configuration settings and design type options
specified on the command line (including batchoptions) override UI settings.
machines. You can modify the tasks, cores or RAM limit for any machine, or specify that a machine is
enabled or disabled.
These settings are shared between interactive scheduler mode and other modes.
Example:
-batchoptions 'HFSS/HPCLicenseType'='Pack'
l NumCoresPerDistributedTask
l RAMLimitPercent
l RAMLimitPerCoreInGB
l SolveAdaptiveOnly
l TotalNumOfCores
Any other batchoptions will result in a warning message and will be ignored.
Example
ansysedt -batchoptions " 'TempDirectory'='C:\\TEMP'
'HFSS/SelectedDSOConfiguration'='Local'
'Desktop/Settings/ProjectOptions/DoAutoSave'=1
'LargeScaleDSO/MaxFolderInMB'=100 "
Batchoptions
Batchoptions may be specified in the command line used to launch the product. Any batchoptions
specified in the command line will override the associated registry settings. Batchoptions will also
override options specified using HPC and Analysis Options dialog or other dialogs used to specify
options.
l The matrices computed for the S-parameters, impedances, and propagation constants.
l A profile of status of the adaptive analysis, including the number of valid passes completed.
The Solutions dialog box appears with the Browse tab selected. It displays data about the
number of valid passes completed. It contains a tree structure showing the solutions listed
according to Setup, Solution, and Variation. A table lists the Setup, the solution, the sweep
variable, and the state of the solution.
l You can use the Properties button to display a dialog that lets you change the way the Setup,
Solution, and Variation are listed in the tree structure of the Solutions dialog.
l The Statistics tab of the Solutions dialog displays path information, as well as format,
number of files, and size.
l You can delete one or more solutions by selecting from the table and clicking Delete. Click on
a solution to select it, and use Ctrl-click to select multiple solutions, or Shift-click to select a
range of solutions. You can also select all solutions using the Select All button.
Note If Maxwell loses its license, it waits for the license to be regained, checking every 2
minutes or until you abort.
Related Topics
Aborting Analyses
Deleting Solution Data
Post Processing and Generating Reports
Creating Reports
Modifying Reports
Creating a Quick Report
Plotting the Mesh
Plotting Field Overlays
A user may submit jobs using the command line tools or other tools provided by the scheduler. The
Desktop includes a GUI to help the user submit jobs to a job scheduler. This generic Job Submission
GUI is shared across the ANSYS Electromagnetics products.
The general procedure is to specify the scheduler and head node, describe and submit the job, and
monitor the results.
The Submit Job To dialog contains three tabs:
l Analysis Specification--specify the Product path, Project name, the setups, and analysis
options such as batchoptions, or, for advanced users, Environment variables. The Project can
be an archive. The project file pathname must be a UNC path that is accessible from each
compute host used for ANSYS Electromagnetics jobs.
The Product path and Project fields support mapped drives. This is done through a checkbox
in the Specify Product Path dialog displayed when you click the ellipsis [...] button. A checkbox
lets you "Use converted UNC path if mapped drive specified." If you select a project or product
on a mapped drive, and check the option, the converted UNC path equivalent to the mapped
drive pathname is used.
l Compute Resources--specify whether to use automatic settings, resource selection
parameters, and if, you do not use automatic settings, job distribution parameters.
l Scheduler Options--specify for Job name and priority.
There are two ways that the GUI may be used to submit jobs.
l The first mode requires that the Desktop (UI) process run on a host which is also a submission
host for the job scheduler. This mode is called local mode or working mode.
l The second mode is useful for cases in which the submission hosts are not able to run
graphical processes, such as the Desktop. The second mode is only supported on Linux in the
ANSYS Electromagnetics Suite 18.1 release. In the second mode, an administrator
configures the RSM Service to act as an interface to the job scheduler, and starts the RSM
Service on a submission host for the cluster. The user runs the Desktop (UI) process on
another host (which may be called the postprocessing host). To submit a job, the user
specifies the host where the RSM Service is running, and the Desktop process connects to
the RSM Service over the network to submit the job. In this mode, some configuration is
required, and the RSM Service typically must run as a privileged user (e.g., root), so that it can
launch processes as any user.
l The Export button exports most of the settings of this dialog (all tabs) to a file.
l The Import button updates most of the settings in this dialog (all tabs) from a file.
l The Import Configuration button updates the DSO settings in this dialog from any DSO
configuration as shown in the Configurations tab of the HPC and Analysis Options dialog.
The Design Type of the DSO configuration must match the design type of one of the designs
in the project, so the "Project" must be specified before using the Import Configuration
button. The batchoptions are also set from the specified DSO configuration or from the Design
Type options settings, which are shown in the Options tab of the HPC and Analysis
Options dialog.
The Export and Import buttons may be used to save and then restore a frequently used collection
of job submission settings. The Save Settings as Default button may also be used to save the
current settings, but it always overwrites any previously saved settings. Using the Export button, the
user may save multiple sets of settings, or may transfer the settings to another machine.
The Select Scheduler dialog also has Export and Import buttons. These buttons may be used to
save the settings in this dialog to a file or restore them from a file.
An Exported configuration is named Submit_Job_Settings by default and has an .areg suffix. A file
browser window opens in the project folder and lets you name an exported file and location, and
select an .areg file to import.
Related Topics
Scheduler Terminology
What a Scheduler Does
Installation of ANSYS Electromagnetics Tools
ANSYS Electromagnetics Jobs
Submitting and Monitoring ANSYS Electromagnetics HPC Jobs
Job Submission Scripting
Scheduler Terminology
l Core: unit of processing
l Processor: consists of one or more cores
l Machine/Host/Node: consists of one or more processors, memory, disk, etc.
l Resource: Machines, licenses, etc. that are used by a Job
l Job: Application (also called: program, executable), with command line options, that uses
resources to produce useful results. For example, maxwell.exe –ng –BatchSolve …
l Serial Job: job that runs on a single core
l Parallel Job: job that runs on multiple cores (belonging to same or different machines)
l Compute Cluster: network of machines on which Jobs run. Typically, consists of head node(s)
and many compute nodes
l Service: Program that runs in the background (e.g., RSM Service). ‘Listens’ on a ‘port’. OS
provides programming interface by which Applications communicate with service, once
machine and port number are known. Launching an executable on remote machine, requires
a service to run on remote machine.
ANSYS Electromagnetics Suite Terminology
l Desktop: The main application used to accomplish a task, such as Maxwell. The desktop may
run as a GUI or it may run as a batch command.
l Engine: Application (the executable) that is launched by analysis commands, to generate
analysis results.
l Multi-processing: A single engine uses multiple cores on the same machine.
l Distributed-processing: Multiple engines are launched simultaneously (on same machine or
different machines). Uses ansoft_distrib (and related) license.
Related Topic
What a Scheduler Does
Command Line Enhancements for ANSYS Electromagnetics Suite Desktop Products
High Performance Computing (HPC) Integration
Head node(s) typically maintains queues. Compute nodes are typically on a high speed network, to
improve scalability of parallel jobs. Services running on nodes interact with each other to manage
resources. End user tools communicate with services to submit/abort/suspend/etc. jobs.
Related Topic
High Performance Computing (HPC) Integration
Command Line Enhancements for ANSYS Electromagnetics Desktop Products
Example
Install the ANSYS Electromagnetics Suite in directory C:\Program Files\AnsysEM\ on each node of
the cluster. The same directory pathname must be used on all hosts.
Related Topics
Firewall Configuration
If firewall is turned OFF between the machines of the cluster, there is no need for any configuration.
If firewall is turned ON, you, or a system administrator, should perform the steps below.
l Windows cluster: Configure firewall by adding exceptions that allow ANSYS
Electromagnetics Suite programs and services to communicate with each other. If you are
using standard Windows Firewall, this is automatically done for you, by the ANSYS
Electromagnetics installation program. On the other hand, if you are using a 3rd-party firewall
software, it needs to be configured in a similar manner.
l Linux cluster: Open up the firewall for range of ports denoting ephemeral (or dynamic) ports.
Check with your system administrator on how this can be done on each machine of cluster.
Related Topics
Linux Example
Install the ANSYS Electromagnetics Suite in a common directory that is accessible using the path:
/opt/AnsysEM/AnsysEM18.1 on each execution node of the cluster.
Related Topics
Related Topics
l Using the Desktop UI commands for Scheduler selection, Job submission and Job
monitoring/control. You specify the Windows HPC Scheduler User Interface for Submit Job
by clicking Tools>Job Management>Select Scheduler...
Before you can use Submit Job, you must click Select Scheduler as the one-time initial step. This
opens the Select Scheduler dialog
node.
In the "Choose scheduler" combobox, select the scheduler. If Windows HPC Integration with
the generic job submission GUI is not enabled, this item will not appear in the dropdown list.
Head node: this is the node on the cluster where scheduler commands are allowed to run.
l Choose Use a computer on network if the cluster is configured in a manner as to disallow
job-submission from the post-processing node. Specify node name appropriately. the ellipsis
button[...] opens a dialog for you select from the network.
After specifying the job submission node, you can click Refresh. This verifies that the head node
may be contacted, and displays the scheduler name, a brief description (including the head node
name), and the version of the Windows HPC head node.
Pressing Cancel discards changes made in this dialog. Pressing OK verifies that the head node can
be contacted before accepting the changes. If no problem occurs, the dialog will be closed. If there is
a problem contacting the head node, the dialog will not be closed and the changes are not accepted.
Once you select a scheduler, you can access the interface for job submission, monitoring and
control. Click OK to close the dialog.
See the ANSYS Electromagnetics Suite Windows Installation Guide for additional information on
supported schedulers.
specify command line that runs ANSYS Electromagnetics Desktop in non-graphical mode to
perform analysis of an ANSYS Electromagnetics project.
ANSYS Electromagnetics Project File and Project Directory for use with Windows HPC
Scheduler
ANSYS Electromagnetics Suite tools write their results to a subdirectory of the directory containing
the ANSYS Electromagnetics project file. The Project Directory (the directory containing the project
file) must be accessible to all of the cluster hosts that may run ANSYS Electromagnetics jobs. The
user account for the job must have permission to read the project directory, and to create and modify
files and subdirectories of this directory. The pathname of the project file must be accessible to all
cluster hosts using the same path name, which is generally expressed as a UNC pathname.
Example:
The project file is on the user’s workstation (with hostname user1_PC) in directory
C:\user1\projects\new\project1.mxwl, and the directory C:\user1\projects is shared with sharename
projects.
Correct
When submitting the job, you should use the following pathname to specify the project file:
\\user1_PC\projects\new\project1.aedt
Incorrect
If a local pathname is used, the cluster hosts will not be able to find the user’s project on the
workstation
user1_PC: ' C:\user1\projects\new\project1.aedt'
Related Topics
Jobs may be submitted to the Windows HPC Scheduler using any of the following methods:
l Using the Submit HPC Job dialog
Client Utilities from the Microsoft HPC Pack, must be installed on the submit host to use any of these
methods to submit a job to a cluster. The Submit HPC Job dialog will be unable to contact the
cluster head node if the client utilities are not installed.
This document covers the first method. See the Microsoft documentation for information on the other
three methods.
l Submitting and Monitoring Jobs for Windows HPC
Jobs may be submitted from any Microsoft Windows host meeting the following requirements:
l For submitting jobs to the Windows HPC scheduler, the Desktop process must run on a node
that is configured for submission of jobs to the Windows HPC cluster. That is, the Windows
HPC Client Utilities must be installed on the node, and network communication from the
Desktop node to the head node of the cluster must be allowed. For ANSYS Electromagnetics
Suite 18.1, Windows HPC Server 2008 R2 (or later) client utilities are required. Using a
computer on the network is not supported for submission of jobs to the Windows HPC cluster.
l When submitting jobs to a Windows HPC cluster, the user must also specify the head node of
the cluster to which the jobs will be submitted. When the user selects the "Windows HPC"
scheduler in the "Choose scheduler" list, the Head Node edit control is enabled. The user may
enter the Windows HPC cluster head node name into the edit box. Alternatively, the head
node may be selected using a "Browse for Computer" browser by pressing the "..." button.
l The Windows HPC Pack client utilities are installed on the submission host.
l Network communication between the submission host and the Windows HPC Cluster head
node is permitted; there is a network connection between these hosts that is not blocked by
any firewall or the like.
l The submission user is permitted to submit jobs to the Windows HPC Cluster.
Job Monitoring
Windows HPC Jobs may be monitored using the Monitor Job dialog which is brought up by the
Tools > Job Management > Monitor Jobs... command. This dialog may also be brought up by
checking the Begin monitoring this job now checkbox when a job is successfully submitting using
the job submission dialog. In addition to the above requirements to allow job monitoring the following
is also necessary:
l Network communication between the submission host and all Windows HPC Cluster nodes
where the job may run is permitted; there is a network connection between these hosts that is
not blocked by any firewall or the like
Cluster Configuration
Any job running on a Windows HPC Cluster that is distributed over multiple compute hosts requires
network communication between processes running on these hosts. The cluster must be configured
to allow this communication. Any firewall or other security software must be disabled or configured to
allow communication between any of the compute hosts were a job could run.
where a job runs, the batchoptions for the job will not be processed correctly, resulting in job failure.
One way to ensure that this directory is created on each compute host is for the submission user to
login to each compute host and run the product GUI one time.
In order to submit jobs using the Windows HPC, you must click Tools>Job Management>Select
Scheduler to open the Select Scheduler dialog and specify Windows HPC as the Scheduler.
For Windows HPC, the user must select the Use this computer radio button and then specify the
head node of the cluster.
After specifying the job submission node, you can click Refresh. This verifies that the head node
may be contacted, and displays the scheduler name, a brief description (including the head node
name), and the version of the Windows HPC head node.
Pressing Cancel discards changes made in this dialog. Pressing OK verifies that the head node can
be contacted before accepting the changes. If no problem occurs, the dialog will be closed. If there is
a problem contacting the head node, the dialog will not be closed and the changes are not accepted.
After setting the job submission node, select Tools>Job Management>Submit Job... to open the
Submit Job To: dialog. This contains three tabs:
l Analysis Specification--specify the Project name, the setups, and analysis options such as
Configuration, or specifying parameters in the fields resource selection, for job parallelization
and enabled forms of parallelization.
l Scheduler Options--contains fields for Job name and priority. The customization options
shown by checking advanced are not used for Windows HPC.
In the Analysis Specification tab, enter the pathnames of the product path and of the project file in
the “Project” edit box. These must be UNC paths that are accessible from each compute host used
for ANSYS Electromagnetics jobs. The Project can be an archive. The submission user must have
permission to write to the directory containing the project file.
You can select which setups are analyzed in the Analyze Setups section of this dialog. There are
radio buttons to select:
l All setups in the project
l All setups in a specified design: you selects the design from the dropdown list
l Single setup
If you specify multiple setups, they will be processed sequentially in the order displayed in the edit
box.
The Analysis options include:
l Monitor job. You must enable this option to monitor the job from the user interface.
l Wait for license- whether to wait until a license if available before starting a simulation.
l Batch options. You can optionally specify -Batchoptions in the text field. See detailed
discussion of -Batch Options beginning under Running Maxwell from a Command Line.
The Add... button opens the Add Batchoption dialog.
This dialog provides access to all -Batchoption commands. The drop down menu lets you select
specific categories, and you can choose to display only frequently used commands. You can edit and
remove any batch options you specify.
Select a Registry Key. in order to show the current Value for the type. The lower field explains the
meaning of the Type Value.
Any batchoptions for which you select Add will be visible in the Submit Job dialog.
If you have the Show advanced options box checked in the Submit Job dialog, the Environment
field and the Use batch extract fields display.
The Environment field lets you specify any Environment variables. Click the ellipsis button [...] to
display the Additional Job Options dialog.
Click the Add... button to open the New Environment Variable dialog.
Here you can provide a Variable name and Variable value. Click OK to display the Variable in the
Additional Job Options dialog. Select a Variable to enables the Remove and Edit.. buttons. You can
also click Add Debug Environment Variables.
Any Variables that you add will be displayed in the Environment field of the Submit Job dialog, if you
have also enabled Show Advanced options.
Selecting Show advanced options for Windows HPC also show the Use batch extract fields.
See the discussion on Running Maxwell from a Command line for a discussion of the solve
information available through batch extract.
The Preview Submission button opens a window that shows the text commands that will be sent to
the scheduler.
For HFSS configurations, the Submit Job dialog includes a Use automatic settings checkbox that
simplifies the Compute Resources tab.
For Use automatic settings, you can specify Resource selection parameters. The ellipsis button [...]
opens the Compute Resource Selection Parameters dialog. If you do not specify any parameters,
the default is Using machines from the entire pool.
The Method field of the Submit Job To dialog has a drop down menu with two or three selections,
depending on whether Use automatic settings is selected:
Note If you select Use automatic settings, the solver does not support automatic distribution of
variations. The Use automatic settings option does not support Optimetrics variations. It
does distribute frequencies, domains, and use of multiple level domains.
If you do not select Use automatic settings, these two Methods are listed:
l Individual Nodes
l Number of Tasks and Cores ("Use automatic settings" is unchecked for this option. Checking
"Use automatic settings" means that you do not have to specify tasks or core parameters.)
l NotifyOnStart: If True, send email notification when job starts. Email notifications must be
configured and enabled for the cluster by the administrator. (The cluster head node must run
Windows HPC Server 2008 or above.)
l NotifyOnCompletion: If True, send email notification when job ends. Email notifications must
be configured and enabled for the cluster by the administrator. (The cluster head node must
run Windows HPC Server 2008 or above.)
You can also use the text field to specify a node list.
Job Parallelization
For Windows HPC jobs, you may either specify a node list, or specify the job parallelization
parameters, but not both.The Job parallelization fields let you specify
l Total number of tasks: The number of nodes requested for the job is the total number of tasks
divided by limit on the number of tasks per node, rounded up if it is not an integer.
l Cores per distributed task. This determines the amount of multiprocessing per task.
l Whether to limit the number of tasks per node to a value. If the "Limit number of tasks per
node" checkbox is not checked, then the job is submitted with a job unit type of "Core".
Job Distribution
l Enabled types, such as Optimetrics Variations, Frequencies, etc.
Preview Submission
The Preview Submission button opens a window that shows a text description of the job to be
submitted and the task used to start the product on one of the nodes.
The JOB PARAMETERS section contains information on parameter that apply to the job as a
whole.
l The "Job resource parameters" section indicates whether the job has exclusive use of nodes,
the job unit type, and the minimum and maximum number of units requested for the job.
l The "Job attributes" section displays the job name and job priority.
l The "User Specified Compute Resource Attributes" displays the Resource selection settings.
The TASK PARAMETERS section contains information on parameters that apply to the Desktop
task, which is the main task of the job.
l The "Desktop task resource parameters" section indicates the job unit type (which is the same
as in the JOB PARAMETERS), and the minimum and maximum number of units requested
for the Desktop task.
l The "Command Line section" displays the desktop task command line, including all
arguments.
l The "Environment variables" section displays the environment variables that are set for the
Desktop task; the same environment variables will also apply to all other tasks of the job.
l The "Working directory" section indicates the working directory in which the Desktop task will
run.
Monitor Job
If you have checked the Monitor Job option on the Submit Job To dialog, AnalysisSpecification
tab, you can invoke the Monitor Job window by clicking Tools>Job Management>Monitor
Jobs... This dialog may also be brought up by checking the Begin monitoring this job now
checkbox when a job is successfully submitting using the job submission dialog.
Check boxes above the message field let you filter the messages to include/exclude Errors,
Warnings and Info. You can choose to Clear Progress Messages.
You can use check boxes at the lower left to Refresh manually, or automatically at a specified
interval.
You also have command buttons to perform a Clean Stop of a simulation between time steps, or to
Abort Job for a simulation.
Related Topics
The job templates are managed by the Windows HPC cluster administrator. Every cluster has at
least one job template, the "Default" job template. Every job has an associated job template. If no job
template is specified, then the "Default" job template is used. The job template controls two related
aspects of the job submission process. When a job is submitted, there are a number of job
parameters which may be specified. Each parameter has a set of valid values. For example, the
Priority parameter has five valid values, Highest, AboveNormal, Normal, BelowNormal, and Lowest.
The job template controls the default value of each parameter; this is the value that the parameter
has if it is not specifically overridden by the submitter. For example, in the Default job template, the
default value of the Priority parameter is Normal. The job template may also limit the allowed values
of each parameter to a subset of the valid values. For example, a job template for privileged users
could allow all five Priority values, which a job template for unprivileged users could limit the allowed
Priority values to Normal, BelowNormal and Lowest.
Each job template is a Windows object with access controlled by an ACL (access control list).
Instead of the usual "Read" or "Read & Execute" permissions, there is a "Submit Job" permission
which corresponds to the right to submit a job with this job template. The cluster administrator may
create job templates to limit or control access to cluster resources. For example, a job template with
limited allowed job run times, or access to a limited set of compute nodes could be created by the
cluster administrator. Specific users or user groups could be forced to use this limited job template by
omitting access to the other job templates or by adding a deny access entry for the specified user or
group to the other job templates. See the Windows HPC Server 2008 Job Templates white paper
from Microsoft for additional details:
http://www.microsoft.com/en-us/download/confirmation.aspx?id=5659
Job templates may also be created to allow users to run jobs with limited knowledge of the
appropriate job parameters. The cluster administrator creates a job template which has reasonable
default values for the type of job to be run, and informs users which job template to use for each type
of job. The template could also limit some parameters to only the subset of all values that are useful
for the type of job associated with the template.
Related Topics
The Job Unit Type is the smallest unit of processing resources used to schedule the job. This is one
of the most important job properties. There are three options for the Job Unit Type: cores, nodes or
sockets.
l Cores: Jobs are scheduled in units of cores, which may be also described as a CPU cores,
logical processors, or CPUs. This is the smallest unit of granularity available. This selection
allows the scheduler to start multiple tasks on a processor, if the total number of cores needed
by the tasks is less than or equal to the number of cores on the processor. This selection may
also allow the scheduler to distribute more of the computational load to processors with more
cores than to processors with fewer cores.
l Nodes: Jobs are scheduled in units of nodes, hosts or machines. This is the coarsest level of
granularity that may be selected. When this option is selected, only one task will run on any
give node at any given time. This is useful in cases where it is not desirable to run multiple
tasks on a single host. For example, if each task is multi-threaded, running multiple tasks on
the same node may not be needed to fully utilize the computing resources on the node. This
may also be preferred if the tasks are memory intensive, and multiple tasks would be
competing for the limited memory resources.
l Sockets: A socket (which may also be called a NUMA node) is a collection of cores sharing a
direct connection to memory. A socket will contain at least one core, and it may contain several
cores. The socket concept may not necessarily correspond to a physical socket. Scheduling
at the socket level may be useful in cases in which each task requires extensive use of the
memory bus, and scheduling multiple tasks on the same socket would result in excessive bus
contention.
Related Topics
In previous releases, when submitting jobs to a Windows HPC cluster using the Submit Job To
dialog, the exclusive node usage property of the job is on the Compute Resources tab always set
to “true”.
For many cases, this requirement prevents problems. One type of problem that can occur is related
to processor affinity. In general, EBU jobs manage processor affinity on their own, and request a
single core for each Windows HPC task. If the cluster does set the affinity for the job, then the EBU
job cannot use all of the resources allocated to the job because the cluster sets the affinity to allow
only a single processor for each Windows HPC task.
Recent versions of Windows HPC allow three choices for the Cluster AffinityType setting:
l No Jobs: Affinity is not set for any jobs
l Non Exclusive Jobs (default): Affinity is not set for exclusive jobs
l All Jobs: Affinity is set for all jobs
If the AffinityType is set to “No Jobs”, then we can allow non-exclusive jobs in many cases, but non-
exclusive jobs will be disallowed if you specify an explicit host list (because all resources on all
specified hosts are used), if you specify nodes and cores (to ensure that the job has exclusive access
to the specified number of nodes), or if you specify multi-threading (to prevent a single task from
being split across hosts). If the AffinityType is set to “Non Exclusive Jobs”, then exclusive jobs will be
disallowed for all cases, the same as the restrictions for the previous release.
The previous job submission dialog always has the “exclusive” checkbox disabled for Windows HPC
jobs, so that “exclusive” jobs cannot be submitted to a Windows HPC cluster. The “exclusive”
checkbox is now enabled for Windows HPC jobs. This allows you to submit exclusive jobs to a
Windows HPC cluster. If this checkbox is checked, but the submission parameters and Windows
HPC cluster AffinityType do not allow submission of an exclusive job, then an error message is
displayed when you submit or preview the job.
A Windows HPC Cluster administrator is able to modify the Affinity Type setting for the cluster. The
administrator should start the Windows HPC Cluster Manager. The first step is to select the
Configuration button on the lower left pane, then select the Deployment To-do List in the upper left
pane. Then, the upper right pane displays the Deployment To-do List, as shown below.
Next, the "Configure job scheduler policies and settings" should be selected. This is under the
heading "Optional deployment tasks".
The cluster administrator may now select a radio button to select the desired Affinity Type:
l All jobs
l Non-Exclusive jobs
l No jobs
In order to submit non-exclusive jobs, the "No jobs" option should be selected. The "Non-Exclusive
jobs" option may be selected, but this will not allow non-exclusive ANSYS Electromagnetics jobs to
be submitted to the cluster. The "All jobs" option is not supported for ANSYS Electromagnetics jobs.
The OK or Apply buttons may be used to apply the selected option to the cluster.
Examples with "Submissions with Nodes are for exclusive usage by this job" Unchecked
and Checked
Most of the following screen shots are for the same project file submitted to a Windows HPC cluster
with the AffinityType set to "No Jobs". The scheduler resource selection parameters are the same for
all of these screen shots:
l MinCoresPerNode=4
l MaxCoresPerNode=4
The first set of screen shots show submission of a job to a Windows HPC cluster in which the "Use
automatic settings" checkbox is not checked, and the resource selection method is "Specify Number
of Tasks and Cores". The exclusive setting for the job is controlled by the "Nodes are for exclusive
usage by this job" checkbox. In previous releases, this checkbox was always disabled and checked
for Windows HPC jobs. Now, it is enabled, and the user may select whether it is checked or
unchecked. If it is checked, then the behavior is the same as previous releases. If it is unchecked,
then the job is submitted with the exclusive parameter for the job set to false.
The following screen shot shows this configuration with a Submit Job with Task and Cores specified
and nodes as non-exclusive
The next figure shows Preview for the job submission indicating that the exclusive parameter for the
job is false.
Jobs may only be submitted using this resource selection method with the exclusive parameter set to
false if all three of the following conditions are met:
1. The cluster AffinityType is "No Jobs",
2. There is no multiprocessing (i.e., the number of cores per task is one), and
3. There is no limit on the number of tasks per node.
If any of these requirements are not met, then the job is not submitted or previewed, and an error
message appears. The following figure shows this configuration.
The following figure and screen shot ErrorMsgTasksAndCoresNonExMP.png shows the error
message box shown to the user.
The next example shows submission of a job to a Windows HPC cluster in which the "Use automatic
settings" checkbox is checked, and the resource selection method is "Specify Number of Nodes and
Cores". The exclusive setting for the job is controlled by the "Nodes are for exclusive usage by this
job" checkbox. In previous releases, this checkbox was always disabled and checked for Windows
HPC jobs. Now, it is enabled, and the user may select whether it is checked or unchecked. If it is
checked, then the behavior is the same as previous releases. If it is unchecked, then the job is not
submitted or previewed because only exclusive jobs are allowed when using this resource selection
method, and an error message box is shown to the user in this case. The following figure shows this
configuration:
The next example show submission of a job to a Windows HPC cluster in which the "Use automatic
settings" checkbox is checked, and the resource selection method is "Specify Number of Cores and
(Optional) RAM". The exclusive setting for the job is controlled by the "Nodes are for exclusive usage
by this job" checkbox. In previous releases, this checkbox was always disabled and checked for
Windows HPC jobs. Now, it is enabled, and you may select whether it is checked or unchecked. If it
is checked, then the behavior is the same as previous releases. The following figure shows this
configuration.
The following figure shows the Job Preview for this case, indicating that the exclusive parameter for
the job is true.
If the exclusive checkbox is unchecked, then the job is submitted with the exclusive parameter set to
false. The following figure shows this configuration.
The following figurescreen shot PreviewCoresAndRAMNonEx.png shows the Job Preview for this
case, indicating that the exclusive parameter for the job is false.
The last example resembles the previous one, except that the Windows HPC cluster AffinityType is
set to "Non Exclusive Jobs" in this case. The job is submitted with the "Use automatic settings"
checkbox in the checked state, and the resource selection method set to "Specify Number of Cores
and (Optional) RAM". Because the AffinityType is not "No Jobs", only exclusive jobs may be
submitted to this cluster. If the exclusive checkbox is not checked, then the job is not submitted or
previewed, and an error message box is displayed to the user. The following figure shows this
configuration.
Related Topics
Normally, a user will be prompted for the credentials used to submit a job. One way to simplify this
process is to use the "cluscfg setcreds" command to set the user’s credentials in the credentials
cache. If this is done, then no password needs to be supplied for a job submitted for the specified
user. Here is a cluscfg command that may be used to set the user credentials in the credentials
cache:
cluscfg setcreds /password:* /scheduler:cluster_name
/user:domain\user_name
Here:
l cluster_name = the name of the cluster (hostname of the head node)
l domain = optional domain name; if omitted, the following \ should also be omitted
l user = user name
When this form of the command is used, the user is prompted for the password and also asked if the
password should be remembered (cached).
See the following web page for more information on the cluscfg setcreds command:
http://technet.microsoft.com/en-us/library/cc947669(WS.10).aspx
Related Topics
Related Topic
General Terminology for LSF
Installation of ANSYS Electromagnetics Tools on LSF Cluster
Integration of ANSYS Electromagnetics Products with LSF
LSF Job Submission Guidelines
Job Management User Interface for LSF
LSF Command Used to Launch Remote Engine Processes
Submitting ANSYS Electromagnetics LSF Batch Jobs
Current Working Directory with LSF
Quoting ANSYS Electromagnetics Command or Arguments for LSF
Monitoring LSF Batch Jobs
Terminating LSF Batch Jobs
See the ANSYS Electromagnetics Suite 18.1 Windows Installation Guide and the ANSYS
Electromagnetics Suite 18.1 Unix/Linux Installation Guide for additional information on supported
schedulers.
Windows:
Install on every node of cluster
Set up ‘temp directory’ to a path that is same on all nodes. For example, c:\temp
Linux:
Install on a single node, on a shared drive.
Set up ‘temp directory’ to a path that is same on all nodes. For example, /tmp
Ensure that the product is available using the same path on all nodes
Permissions:
All users of the cluster should have read/write permissions to temp directory
All users should have read/execute permissions to installation directory
When a desktop scheduler GUI is run the same node as the job submission node, no other
configuration is necessary: installation is sufficient. You select the scheduler through the desktop
GUI. You need to ensure that scheduler commands are available in the path before you launch
desktop.
Note There is no need to install RSM unless the you are using the scheduler GUI on a post
processing node that is different than the than the job submission node. In this case, RSM
must be configured with the scheduler type and path.
A post processing nodes is a node in the cluster that can run the ANSYS Electromagnetics
desktop in graphical mode. A job submission node is a node in the cluster in which job
submission commands are available.
Turn OFF firewall between cluster nodes.
The case of the SchedulerName string is significant on Linux because Linux file names are case
sensitive. The case of the SchedulerName string is not significant on Microsoft Windows. In ANSYS
Electromagnetics Suite, the possible scheduler names are: lsf and sge. The ConfigString entry is a
scheduler specific configuration string, described below.
In addition, the AnsoftRSMService must be started with appropriate environment variables set.
Generally, the environment variables must be set the same as they would be set for using the
scheduler via command lines.
LSF Details
For the LSF scheduler proxy library, the ConfigString entry in the ansoftrsmservice.cfg configuration
file is ignored. It may be empty or omitted entirely.
The AnsoftRSMService must be started with the environment set as it would be set for submitting
jobs to the LSF cluster.
l For Linux, the cshrc.lsf or the profile.lsf file may be sourced to set up the environment,
containing the LSF commands; this directory should be before any other directory containing
files with the same name as any LSF commands.
Example ansoftrsmservice.cfg configuration file:
$begin 'AnsoftCOMDaemon'
$begin 'Managed COM Servers'
Desktop talks to the Scheduler Proxy which in turn uses Scheduler commands. It is possible to add a
proxy dll to support new schedulers without changing Desktop.
Related Topic
Integration with Platform’s Load Sharing Facility (LSF)
General Terminology for LSF
What a Scheduler Does
Integration of ANSYS Electromagnetics Products with LSF
Job Management User Interface for LSF
LSF Job Submission Guidelines
Known Issues for LSF
Troubleshooting for LSF
Workarounds for LSF
Command Line Enhancements for ANSYS Electromagnetics Desktop Products
With LSF you do not need to setup ‘Distributed Analysis Machines’ or ‘Remote Machine’ in the
Tools>General Options>Analysis Options tab. Instead, you submit a Maxwell job to LSF,
requesting appropriate resources for this job (number of processors, memory per processor, etc.).
For example:
bsub –n 1 maxwell.exe –Batchsolve –ng –local OptimTee.mxwl
bsub –n 4 maxwell.exe –Batchsolve –ng –Distributed
Optinew.mxwl
The Maxwell job is queued by LSF until the requested resources are available. Upon resource
availability LSF starts maxwell.exe with the specified command line on one of the allocated
machines. During analysis, Maxwell dynamically obtains the allocated ‘Distributed Analysis
Machines’ from LSF. Maxwell interfaces with LSF to launch engines on remote machines without
going through Ansoft RSM.
Related Topics
l ANSYS Electromagnetics project should be available in a shared drive that is accessible to all
machines in the cluster
l ANSYS Electromagnetics project should be available using the same path on all machines of
cluster
l Ensure sufficient space in project directory and temp directories
l Ensure sufficient memory per engine
l Choose the number of compute resources (Distributed Analysis machines and Multi
Processing cores) so as to achieve desired scale factor and effective resource utilization
Stop a Maxwell job cleanly - ensures that the results obtained until now are preserved
bkill –s TERM <jobid>.
Stop a Maxwell job abruptly – results are most likely lost. You have to manually remove the project
lock file
bkill <jobid>
Related Topics
The Job Management UI is accessed by running ANSYS Electromagnetics product Desktop on the
designated 'Postprocessing node' of the cluster. The Desktop provides UI commands for Scheduler
selection, Job submission and Job monitoring/control. You access the Scheduler User Interface by
clicking Tools>Job Management>Select Scheduler...
Before you can use Submit Job, you must click Select Scheduler as the one-time initial step. This
opens the Select Scheduler dialog.
l The Analysis Specification tab has parameters to specify the product path, input project
model, the analysis setup and analysis options (including batchoptions) that affect analysis
algorithms.
l The Compute Resources tab specifies the amount of compute resources and how to select
specific resources from the available pool (for example, <queue_name> is an LSF parameter
that restricts job's candidate nodes to nodes in this queue).
l The Scheduler Options tab has analysis-independent parameters specific to the job, such
as name and priority.
Analysis Setups:
Specify All setups in the project, all in a design, or a single setup. If the setup includes a
parametric sweep, the Use large scale DSO check box is enabled.
Analysis Options:
l You have check boxes for whether to Monitor Job through the GUI, and whether to Wait for
license.
l You can also specify Batchoptions. Click the Add... button to open a dialog for selecting the
Batchoptions.
The lower Value field shows the legal values for the selected registry key. You can type the
desired value into the upper text field under value. Click the Add button to accept the selection
of the registry key with the specified value. Click Done close the Add Batchoption dialog.
At the upper left, a drop down menu lets you specify which registry key categories to display,
whether All, or selected category.
A check box lets you choose between displaying only frequently used entries (the default), or
by unchecking, all options available for the selected group.
Note that for Large Scale DSO problems, you also have the option to specify predefined
configurations.
The added registry keys and values are listed in the Batchoptions field of the Submit Job
dialog.
Selecting from the list enables buttons for removing or editing registry key values. Selecting a
registry key and clicking Edit... opens the Edit Batchoptions dialog.
Here you can edit the Value field and update the value for the selected registry key.
Environment:
If you check the Show advanced options check box, you can see the Environment field. This
permits specifying Environment Variables.
Click the ellipsis button [...] to open the Additional Job Options dialog.
The Add button permits you to specify your environment variables. Once, added, you can select
Remove or Edit. The Add Debug Environment Variables button adds variables of use in
working with support.
l The Save Settings as Default button lets you save a current set of values as defaults the
next time you invoke the Scheduler GUI. This can simply subsequent job submissions.
See the discussion on Running Maxwell from a Command line for a discussion of the solve
information available through batch extract.
If you check Use automatic settings the options include Number of Cores and (Optional) RAM or
Number of Nodes and Cores. If you select Number of Cores and (Optional) RAM, you can specify:
Total number of cores, check whether Nodes are for exclusive usage by the job, and whether to use
a RAM constraint in GB per core.
If you chose to Specify the Number Nodes and Cores, the options are: Total number of nodes,
whether the nodes are for exclusive use by the job, and the total number of cores.
Job Distribution
For non-automatic setups, click the Modify button in the Job Distribution panel to display the Job
Distribution dialog.
Resource Selection:
If you do not specify parameters for resource selection, LSF may submit jobs to any machine in the
entire pool that is available.
l Resource selection parameters.
Clicking the ellipsis button [...] opens a dialog for parameters specific to LSF, in this case
Queue. The Specify Parameter check box in the dialog enables a parameter, and you can
select the Value for the Queue parameter from a drop down menu or specify values for the
other LSF parameters.
Submit job actually sends the batch command to the LSF cluster. A dialog reports a successful
submit and presents a check box for monitoring.
Also present are buttons that allow you to Save Settings As Default, Preview Submission, and
Submit Job
If you check Show advanced options, you can also Customize Job submission.
The Job submission options permit you to customize a job submission in terms of addition job
submission options, or override a job submission command.
When the "Override job submission" radio button is checked, the user specified options replace most
of the job submission options, whereas when the "Additional job submission options" radio button is
checked, the user specified options are appended to the bsub command.
You can see the effects of any custom additions by clicking Preview Submission.
Related Topics
In this dialog, you can select the job to monitor from a pull down list of Recent jobs. If desired, you can
use the check boxes to filter the messages listed in terms of whether to monitor Errors, Warnings, or
Info messages.
The lower left has corner of the dialog has options for manual refresh or automatically at a specified
interval. You can choose to Clear Progress Messages. After refresh, the messages for the job are
displayed.
You also have command buttons to perform a Clean Stop of a simulation between time steps, or to
Abort a simulation.
Related Topics
When using direct integration with LSF, the LSF lsrun command is used to launch remote engine
processes. This command does not allow the LSF scheduler to track the resources used by these
processes. As a result, the resource usage reported by the LSF bacct command will not include
resources used by the remote engine processes.
The LSF bsub command may be used to submit ANSYS Electromagnetics jobs. The typical
command format is:
bsub bsub_argsansys_exeansys_args
where:
l bsub_args are the options of the bsub command,
and
l ansys_args are the arguments to the ANSYS Electromagnetics Desktop executable.
Related Topic
Job Management User Interface for LSF
The current working directory of the ANSYS Electromagnetics Desktop process must exist on all
compute hosts where analysis may be run. This is needed because the ANSYS Electromagnetics
job uses the LSF lsrun or blaunch commands to start the remote analysis engines. When these LSF
commands start a remote process they always change the working directory to the working directory
of the process submitting the command. If the directory does not exist on a remote host, then the
lsrun or blaunch command will fail on that host, and the remote analysis engine will not be started on
that host.
If the ANSYS Electromagnetics tool executable pathname (ansys_exe) or any of the arguments of
the ANSYS Electromagnetics tool command (ansys_args) contain characters which are interpreted
by the command shell, then these special characters must be properly quoted to ensure that the
correct command is launched by LSF. This is very common on Windows systems, where many
executable file pathnames contain embedded space characters. A similar problem may occur on any
platform if any of the ansys_args require single quote, double quote or space characters. Note that
the ANSYS Electromagnetics desktop command is processed by the shell twice. It is processed by
the shell when the bsub command is processed, and again when the job is started.
bsub Arguments
The LSF bsub command has a large number of options that may be used to control the submission
process. Only a few options which are often used with ANSYS Electromagnetics jobs are mentioned
here. The following options may be used to submit serial or parallel LSF jobs.
-nmin_proc, max_procor -nmin_proc
Submits a parallel job, specifying the number of processors (or slots) required for the job. Here, min_
proc is the minimum number of processors, and max_proc is the maximum number of processors. If
no maximum is specified, then exactly min_proc processors are requested. If PARALLEL_SCHED_
BY_SLOT=Y in lsb.params, this option specifies the number of slots required to run the job, not the
number of processors. If the -n command line option is not specified, then the job is submitted as a
serial batch job.
-R "span[ptile=n]"
There are many ways to use the -R "res_req" option to the bsub command. We only cover -R "span
[ptile=n]" here, because this option is very useful for ANSYS Electromagnetics jobs. When this
option is specified, the LSF scheduler will allocate n processors (or slots) on each host to this job,
even if more processors are available on the host.
-x
All hosts running this job operate in exclusive execution mode. The job will only run on a host having
no other jobs running on that host. No other batch jobs will be started on a host while this job is
running on that host. The -mhost_name option of the lsrun or lsgrun commands may be used to
force an interactive job to run on a host in exclusive mode. The -mhost_name option of the brun
command may be used to force a batch job to run on a host in exclusive mode.
See the LSF documentation for a complete list of options for the bsub command.
Related Topic
Job Management User Interface for LSF
The LSF bpeek command may be used to monitor LSF batch jobs, if the Desktop command line for
the job includes the -monitor command line option. Also see Integrated Job Monitoring for Job
Management Interface for LSF.
To cancel or terminate an ANSYS Electromagnetics LSF batch job, we recommend the use of the
LSF bkill command with the -s SIGTERM command line option. Using this option to will allow the
ANSYS Electromagnetics batch job to shut down in an orderly fashion. Using the LSF bkill
command without the -s SIGTERM option or simply terminating the job processes may cause some
of the following problems:
l Some engine processes are not shut down, and continue to run
l Linux only: MainWin core service processes (watchdog, mwrpcss and/or regss) are not
stopped
Some of these may interfere with submission of additional ANSYS Electromagnetics LSF batch
jobs. For example, it may be necessary to manually remove the project lock file to submit another
batch job for the same project. On Linux, MainWin core service processes may also interfere with
starting subsequent ANSYS Electromagnetics batch jobs. Normally, these processes should
timeout and end 15 seconds after the ANSYS Electromagnetics product shuts down. Any MainWin
core service processes (watchdog, mwrpcss and/or regss) that continue to run for more than 15
seconds after the product has stopped may be hung. The hung processes may need to be manually
killed, after ensuring that these processes are associated with an ANSYS Electromagnetics job that
has finished or terminated.
Related Topics
The following Linux and Windows examples all use Maxwell as the ANSYS Electromagnetics
product, but similar command lines will work for all ANSYS Electromagnetics products.
Serial job:
bsub -n 1 /opt/AnsysEM/AnsysEM18.0/ansysedt -ng -BatchSolve
~/projects/OptimTee.aedt
The -n 1 option indicates that this job runs on one core.
Distributed processing and multi-processing job using 4 cores, with 2 cores for multi-
processing:
bsub -n 4 -R "span[ptile=2]" ~/projects/OptimTee.csh
when the bsub command is processed by the command processor. It will be processed again when
the maxwell command is started by the scheduler.
The first three examples show the entire maxwell command line enclosed in double quotes ("), while
the double quote (") characters within the maxwell command line are replaced by escaped double
quotes (\"). This ensures that the quoted arguments of the maxwell command are processed
correctly. The remaining examples show how to use a batch file so that the maxwell command line
will be processed by the command processor only once. The maxwell command is placed in a batch
file, and then the batch file pathname is placed in the bsub command line. Then, the maxwell
command is only processed by the command processor when the job is started. When using this
approach, the batch file should be accessible from all of the cluster hosts.
Serial job:
bsub -n 1 "\"C:\Program
Files\AnsysEM\AnsysEM18.0\Win64\ansysedt.exe\"
-Ng -BatchSolve \\host\share\projects\OptimTee.aedt"
l The -n 1 option indicates that this job runs on one core.
l The entire maxwell command is in double quotes, and the double quotes enclosing the
maxwell pathname are escaped. Each of these double quotes is replaced by the sequence \".
-Ng -BatchSolve
-Distributed \\host\share\projects\OptimTee.aedt
l The -n 4 option indicates that the four cores are needed for the job.
l The -Distributed option indicates that this is a DSO job, so that multiple engines will be started.
Because 4 cores are allocated to the job, the job will run 4 engines.
l The maxwell command is placed in the batch file \\host\share\projects\OptimTee.bat. In the
bsub command line, the maxwell command is replaced by the batch file pathname.
Distributed processing and multi-processing job using 4 cores, with 2 cores for multi-
processing:
bsub -n 4 -R "span[ptile=2]"
\\host\share\projects\OptimTee.bat
l When an LSF job is killed, the MainWin services (watchdog, regss, and mwrcpss) could keep
running. The result is that later jobs cannot start on the machine. The fix is to kill off these
processes before starting a new job
l Analysis fails abruptly when running out of resources (cpu/memory/disk)
Related Topic
Integration with Platform’s Load Sharing Facility (LSF)
General Terminology for LSF
What a Scheduler Does
Installation of ANSYS Electromagnetics Tools on LSF Cluster
Integration of ANSYS Electromagnetics Products with LSF
LSF Job Submission Guidelines
Troubleshooting for LSF
Command Line Enhancements for ANSYS Electromagnetics Desktop Products
l Ensure sufficient resources (cpu/memory/disk) are allocated to job: check space in temp
l Ensure job submitter has permissions to read/write to project directory and read/execute
You can obtain this using LSF commands: use bacct if job’s output is not redirected to a file.
For example,
“bacct –l <jobid>”
l Batch log generated by ANSYS Electromagnetics product (typically, projectname.log, in the
same directory as the ANSYS Electromagnetics project file)
l Debug logs generated by ANSYS Electromagnetics product, during the running of LSF job.
You can set these Environment variables using the Submit Job dialog, by turning on
Advanced options to display the Environment field. Click the ellipsis button [...] access the Add
Debug Environment Variables button.
Set ANSOFT_DEBUG_MODE to 1
l Some users reported ‘core’ dumps during Maxwell analysis, though analysis results are fine.
Workaround: Limit size of core dumps to 0 through the following job submit option:
bsub -C 0 -n <number-of-cores> -q <queue-name>
Note Letter ‘C’ must be upper-
case
Related Topics
ANSYS Electromagnetics software has been tested with the following version of PBS Pro:
l PBS Pro 10.1.0.91350
l PBS/Torque 2.5.12
Clicking the Refresh button connects and loads information from the scheduler, including the variant
(PBSPro or PBS/Torque) and version information.
The example below shows the data displayed for PBSPro:
and the following example shows the data displayed for PBS/Torque:
After setting the job submission node, select Tools>Job Management>Submit Job... to open the
Submit Job To: dialog. This contains three tabs:
l Analysis Specification--specify the Product path, Project name, the setups, job monitoring,
and analysis options such as batchoptions, or, for advanced users, Environment variables.
l Compute Resources--this tab can be populated either by automatic settings, by predefined
Analysis Configuration, or specifying parameters in the fields for resource selection, for job
parallelization and enabled forms of parallelization.
l Scheduler Options--contains fields for Job name and priority. The customization options
shown by checking advanced are not used for Windows HPC.
In the Analysis Specification tab, enter the pathnames of the product path and of the project file in
the “Project” edit box. These must be UNC paths that are accessible from each compute host used
for ANSYS Electromagnetics jobs. The submission user must have permission to write to the
directory containing the project file. The Project can be an archive.
You can select which setups are analyzed in the Analyze Setups section of this dialog. There are
radio buttons to select:
l All setups in the project
l All setups in a specified design: you selects the design from the dropdown list
l Single setup:
If you specify multiple setups, they will be processed sequentially in the order displayed in the edit
box.
The Analysis options include:
l Monitor job. You must enable this option to monitor the job from the user interface.
l Wait for license- whether to wait until a license if available before starting a simulation.
l Batch options. You can optionally specify -Batchoptions in the text field. See detailed
discussion of -Batch Options beginning under Running Maxwell from a Command Line.
The Add... button opens the Add Batchoption dialog.
This dialog provides access to all -Batchoption commands. The drop down menu lets you select
specific categories, and you can choose to display only frequently used commands. You can edit and
remove any batch options you specify.
Select a Registry Key. in order to show the current Value for the type. The lower field explains the
meaning of the Type Value.
Any batchoptions for which you select Add will be visible in the Submit Job dialog.
If you have the Show advanced options box checked in the Submit Job dialog, the Environment
field and the Use batch extract fields display.
The Environment field lets you specify any Environment variables. Click the ellipsis button [...] to
display the Additional Job Options dialog.
Click the Add... button to open the New Environment Variable dialog.
Here you can provide a Variable name and Variable value. Click OK to display the Variable in the
Additional Job Options dialog. Select a Variable to enables the Remove and Edit... buttons. You
can also click Add Debug Environment Variables.
Any Variables that you add will be displayed in the Environment field of the Submit Job dialog, if you
have also enabled Show Advanced options.
See the discussion on Running Maxwell from a Command line for a discussion of the solve
information available through batch extract.
The Preview Submission button opens a window that shows the text commands that will be sent to
the scheduler.
l Method - drop down list with selections for Number of tasks and cores, or Number of cores
and (optional) RAM, or Node List. Each method has a different set of associated parameters.
l Task and Core parameters. The parameters offered depend on Method selection.
l RAM parameters
l Job distribution.
If you select Use automatic settings with the Number of Cores and (Optional) RAM, the parameters
include Total number of cores, exclusive usage option, and RAM parameters. .
Note If you select Use automatic settings, the solver does not support automatic distribution of
variations. The Use automatic settings option does not support Optimetrics variations. It
does distribute frequencies, domains, and use of multiple level domains.
If you select Use automatic settings and Number of Cores and (Optional) RAM, and do not select
Use RAM constraint, the text field is disabled
RAM Constraint
If you check Use RAM Constraint, you can specify a GB RAM constraint.
In response to a set of minimal constraints, the Scheduler may increase the resources assigned
beyond the minimal values in order to meet the full set of requirements. Notice that a preview of the
Submit Job Results shows the number of resources assigned, and that the scheduler generated
code includes an MPI specification.
If you select Use automatic settings and Number of Nodes and Cores as the Method, the choices are
for Number of Nodes and Cores.
With Individual nodes selected, then you may enter a list of nodes with the number of cores and RAM
limit percentage. In this case, the qsub command requests exclusive access to each of these nodes
for the job. If the server for the job is the default server, then the node names are validated against
the execution nodes for the default server. If any of the requested nodes are not available for new
jobs, then the job is not submitted and an error message is returned. If the specified (or default)
queue is an execution queue, and any of the requested nodes are not available to this queue, then
the job is not submitted and an error message is returned. If the server is not the default server, then
the node names are not validated by the scheduler proxy. The total number of tasks and the cores
per distributed task may not be specified in this case.
If you specify multiple individual nodes, you can use the Move Up and Move Down buttons to control
the order. Use the Remove button to delete the selected node.
Related Topics
Integration with PBS (Portable Batch System) Professional from Altair Engineering
The user may specify the following compute resource selection parameters using the grid control in
the GUI:
l Queue
l QueueAtServer
l NodeAttributes
These parameters are described in more detail below.
Queue
The user can select a queue for the job from the list of queues configured for the default server. Only
queues that are enabled and that do not have the from_route_only attribute set to true are
listed.
The image below shows the Compute Resource Selection Parameters dialog with no
parameters specified:
The example below shows the user selecting the queue workq from a dropdown list containing all of
the queues available at the default server.
Either the Queue or the QueueAtServer parameter may be specified, but both may not be specified.
If neither the Queue parameter nor the QueueAtServer parameter is specified, then the job is
submitted to the default queue at the default server.
QueueAtServer
The user may specify a queue at the default server or at another server. The user may enter any text
into this field. The user may enter a string in one of the following forms:
1. queue_name
2. @server_name
3. queue_name@server_name.
Using the first form, the job is submitted to the queue with name queue_name at the default server.
Using the second form, the job is submitted to the default queue at the server with name server_
name. Using the third form, the job is submitted to the queue with name queue_name at the server
with name server_name. The destination value of the -q destination option on the qsub
command line is the user specified string. This string will not be validated by the scheduler proxy
library.
The example below shows how to enter a destination in which only a queue is specified:
The example below shows how to enter a destination in which only a server is specified:
Finally, the example below shows how to enter a destination in which both the queue and server are
specified:
Either the Queue or the QueueAtServer parameter may be specified, but both may not be
specified. If neither the Queue parameter nor the QueueAtServer parameter is specified, then the
job is submitted to the default queue at the default server.
NodeAttributes
You can specify additional node attributes for the job using the NodeAttributes parameter. Any text
can be entered into this field. If you specify multiple attribute, they should be separated by the colon
character.
l For PBSPro, the contents of this field are appended to each chunk in the select resource
specification of the job submission command. You can specify any resources that are valid for
chunks inside a select resource specification.
l For PBS/Torque, the contents of this field are appended to each chunk in a nodes resource
specification of the job submission command. In addition, only nodes that match all node
features (or properties) included in the NodeAttributes string can be used by this job.
These are the only nodes considered when the software distributes cores to nodes. The image
below shows how to specify two node attributes separated by a colon character.
The image below shows Job Preview output, which indicates how the node attributes appear in the
job submission command for a PBS/Torque cluster.
Related Topics
Integration with PBS (Portable Batch System) Professional from Altair Engineering
PBSPro
If the environment variable PBS_DEFAULT is set, the value of this environment variable will be used
as the name of the default server, instead of obtaining the default server name from the PBSPro
configuration file. The default pathname of the PBSPro configuration file is: /etc/pbs.conf. The
environment variable PBS_CONF may be used to specify a different pathname for the PBSPro
configuration file.
PBS/Torque
If the environment variable PBS_DEFAULT is set, the value of this environment variable will be used
as the name of the default server, instead of obtaining the default server name from the PBS/Torque
server file. The name of the PBS/Torque server file is server_name, and it is installed in the
TORQUEHOME directory. By default, TORQUEHOME is /var/spool/torque. To specify a
different TORQUEHOME directory, the environment variable ANSOFT_TORQUEHOME should be
set to the pathname of the desired directory.
Related Topics
Integration with PBS (Portable Batch System) Professional from Altair Engineering
This section outlines some of the limitations or restrictions when submitting jobs.
'ConfigString'='/share/pbs/default/bin'
$end 'Scheduler'
$end 'AnsoftCOMDaemon'
l There is no support for GPUs when submitting jobs via the GUI.
l Support for PBSPro and PBS/Torque is only available on Linux; Windows is not supported.
l Staging of input or output files is not supported for jobs submitted using the GUI.
l All jobs submitted via the GUI are independent jobs. Neither job dependencies nor job arrays
are supported.
l If the user -specified server is not the default server, there is no check for sufficient resources
before submitting the job.
l If the user specified server is not the default server, the limit on the number of tasks per node is
ignored for both PBSPro and PBS/Torque. For PBS/Torque, only one task will be allocated
for each node. For PBSPro, the scheduler may allocate any number of tasks to a node,
provided that the node has sufficient cores for all of the tasks.
l For jobs submitted to a routing queue, the check for sufficient nodes and cores by the
scheduler proxy only verifies that there are sufficient nodes and cores associated with the
server.
l The queue attributes “resources_max” and “resources_min” are not checked when
determining whether there are adequate resources to run the job.
PBSPro Limitations
l For the current version to get the correct machine list for the job from the scheduler, the PATH
in the submission user’s default environment must include the directory containing the
PBSPro commands.
l No explicit support for failover is included for this release.
l HPC Basic Profile Jobs are not supported.
l Globus vnodes are not supported. When the scheduler proxy checks for sufficient nodes and
cores for the job, only nodes of type PBS are considered.
l For jobs submitted to an execution queue, the only vnode attribute used to determine if a
vnode is available to the job is the queue attribute.
PBS/Torque Limitations
l When the scheduler proxy checks for sufficient nodes and cores for the job, only nodes of type
cluster are considered.
l The exclusive checkbox has no effect for PBS/Torque.
l For PBS/Torque, even if a job is submitted to an execution queue at the default server, there is
no check for sufficient nodes and cores available to the queue. All of the server’s execution
nodes are assumed to be available for the job.
l For PBS/Torque, there are significant limitations when submitting a job in which the number of
tasks and number of cores per task are specified. Unlike PBSPro, there is no capability to
specify that the cores should be allocated in “chunks”. Instead, the submission command
includes the number of groups of nodes and the number of processors per node (ppn) for
each node in the group. To determine the size of each group and the ppn setting for each
group, the server nodes are examined from largest number of cores to smallest. This may not
be optimal because some of these nodes may not be usable by the queue specified for the job,
or because the nodes with the largest number of cores may be busy. Similar issues could
occur for PBSPro, but they should be less likely, because only the nodes usable by the queue
are considered.
Related Topics
Integration with PBS (Portable Batch System) Professional from Altair Engineering
If you have checked the Monitor Job option on the Submit Job To dialog, AnalysisSpecification
tab, you can invoke the Monitor Job window by clicking Tools>Job Management>Monitor
Jobs... This dialog may also be brought up by checking the Begin monitoring this job now
checkbox when a job is successfully submitting using the job submission dialog.
Check boxes above the message field let you filter the messages to include/exclude Errors,
Warnings and Info. You can choose to Clear Progress Messages.
You can use check boxes at the lower left to Refresh manually, or automatically at a specified
interval.
You also have command buttons to perform a Clean Stop of a simulation between time steps, or to
Abort Job for a simulation.
Related Topics
Integration with PBS (Portable Batch System) Professional from Altair Engineering
The job script is a shell script containing the ANSYS Electromagnetics batch command or
commands to be run. If a batch command line contains any characters that are special to the shell
running the script, then these special characters should be quoted, as needed. The job script may
also contain PBS directives on lines before the first executable line of the script. Any qsub options on
the command line will take precedence over the PBS directives in the job script.
When a PBS batch job is started, the job script runs as the job user in a new shell. In this shell
environment, the path must include the directory containing the PBS commands
Note You should ensure that the PATH variable set in the shell startup script, i.e., .cshrc, .profile,
.bashrc, etc. includes the directory containing the PBS commands. For example:
export PATH=/opt/pbs/default/bin:$PATH
If the PATH variable is not set correctly, the job runs only locally, the batch log file shows
the list of allocated hosts as empty, and the error file shows an error (sh: qstat: command
not found.)
Further PBS directives need to be on top of the job script file. This is discussed in the PBS
documentation.
In the PBS documentation, serial batch jobs are also called single-node jobs. In general, any job
submitted without specifying the -l nodes=value command line argument, will run as a serial or
single-node job.
See the section on Monitoring ANSYS Electromagnetics PBS Batch Jobs for options that can
facilitate monitoring of ANSYS Electromagnetics batch jobs.
In the PBS documentation, parallel batch jobs are also called multi-node jobs. When an ANSYS
Electromagnetics batch job is run as an PBS parallel job, the PBS scheduler will select the hosts for
the distributed analysis job based on the qsub command line arguments, the PBS resource
directives from the job script, and the status of the hosts when the job is run. The desktop process will
be started on one of these hosts. The desktop process will obtain the list of hosts allocated to the job
from the PBS scheduler, and start analysis processes on these hosts, as needed, using the PBS
scheduler facilities. To run a PBS parallel job, the job must be submitted with a -l nodes=value qsub
command line argument or with a -l nodes=value PBS directive in the job script.
See the section on Monitoring ANSYS Electromagnetics PBS Batch Jobs for options that can
facilitate monitoring of ANSYS Electromagnetics batch jobs.
Related Topics
qsub Arguments
The PBS qsub command has a large number of options for control of the submission process. In this
section, we review the -l nodes=valuecommand line option with ANSYS Electromagnetics parallel
batch jobs.
This option or directive has the following format:
-l nodes=node_spec[+node_spec...][#suffix]
where node_spec is one of the following
nodename[:pc_spec[:pc_spec...]]
Host name of the specified node, followed by optional ppn or cpp specifiers.
[N][:property[:property...]][:pc_spec[:pc_spec...]]
Optional number of nodes, followed by optional node properties, followed by optional ppn or
cpp specifiers. If the number N is omitted, then the default value of 1 host is used.
The optional global suffix, #suffix, which applies to all hosts has one of the following values:
#excl
This suffix requests shared (i.e., non-exclusive) access to the allocated nodes.
The total number of requested processes is determined by adding up the product of the number of
nodes and the number of processes per node for each node_spec. In general, this should match the
number of distributed engines specified in the ANSYS Electromagnetics desktop -Machinelist
num=num_distributed_enginescommand line option.
The number of CPUs per process (cpp) specified in the PBS qsub command line or in the PBS
directives in the script file should generally match the number of processors per engine specified in
the Desktop -batchoptions value.
See the PBS documentation for a complete list of options for the bsub command, and further
information on running multi-node jobs.
Related Topics
Integration with PBS (Portable Batch System) Professional from Altair Engineering
The suggestions below may be used for ANSYS Electromagnetics Batch jobs run under PBS.
Related Topics
Integration with PBS (Portable Batch System) Professional from Altair Engineering
qsub Arguments
Example PBS qsub Command Lines
All of the following examples show how to submit Linux maxwell jobs on PBS, but similar command
lines and job scripts will work for all ANSYS Electromagnetics products. Most of the following
examples are PBS "Single-node jobs." The last example is a PBS "multi-node jobs"; this examples
demonstrate how to specify the allocation of threads, tasks and nodes to a job.
Serial job:
qsub ~/pbs_scripts/OptimTee.sh
Job Script File:
#!/bin/sh
/opt/AnsysEM/AnsysEM18.0/ansysedt -ng -BatchSolve
~/projects/OptimTee.aedt
Serial job that needs a minimum of 4GB memory and two hours of real (wallclock) time:
qsub ~/pbs_scripts/OptimTee.sh
Job Script File:
#!/bin/sh
#PBS -l walltime=2:00:00
#PBS -l mem=4gb
/opt/AnsysEM/AnsysEM18.0/ansysedt -ng -BatchSolve
~/projects/OptimTee.aedt
-machinelist num=4
~/projects/OptimTee.aedt
l The #PBS -l ncpus=4 directive indicates that four cores or CPUs are allocated to this job.
l The -Distributed option indicates that this is a DSO job, so that multiple engines will be started.
Because 4 cores are allocated to the job, the job will run 4 engines. The -Distributed option
may now have additional options, such as includetypes=xxx, excludetypes=xxx, maxlevels=n,
and numlevel1=n, where n indicates and integer, and xxx indicates a list of distribution types or
"default".
Distributed processing and multi-processing job using 8 cores on two nodes, running 4
engines (two per node) with 2 cores for multi-processing:
qsub ~/pbs_scripts/OptimTee.sh
Job Script File:
#!/bin/sh
#PBS -l nodes=2:ppn=2:cpp=2#excl
/opt/AnsysEM/AnsysEM18.0ansysedt -ng -BatchSolve -Distributed
-machinelist num=4 -batchoptions
~/projects/OptimTee.aedt
l The PBS directive #PBS -l nodes=2:ppn=1:cpp=2#shared indicates that two nodes are
requested [2], two processes (engines) run on each node [ppn=2], and each process will use
two cores [cpp=2]. The hosts allocated to this job may not be used for any other jobs while this
job is running [#excl].
l The -machinelist num=4 option indicates that this is a DSO job and that a total of four
engines will be started.
Related Topics
Integration with PBS (Portable Batch System) Professional from Altair Engineering
qsub Arguments
Monitoring ANSYS Electromagnetics PBS Batch Jobs
Example PBS qsub Command Lines
This release has been tested with the following versions of GE:
l SGE (Sun) 6.2u6
l Univa: 8.1.3
ANSYS Electromagnetics products support Grid Engine (GE) for Serial analysis, Multi Processing
and Distributed Analysis. Models with parametric sweeps can use Large Scale DSO. With GE, the
ANSYS Electromagnetics job doesn't require graphics. ANSYS Electromagnetics job progress can
be monitored through GE(SGE) commands or in the dialog opened through Tools>Job
Management>Monitor Jobs....
In addition to the command line interface, you can also use a Job Management user interface to
submit jobs.
Related Topics
Windows:
Install on every node of cluster
Setup ‘temp directory’ to a path that is same on all nodes. For example, c:\temp
Linux:
Install on a single node, on a shared drive.
Setup ‘temp directory’ to a path that is same on all nodes. For example, /tmp
Ensure that the product is available using the same path on all nodes
Permissions:
All users of the cluster should have read/write permissions to temp directory
All users should have read/execute permissions to installation directory
When a desktop scheduler GUI is run the same node as the job submission node, no other
configuration is necessary: installation is sufficient. You select the scheduler through the desktop
GUI. You need to ensure that scheduler commands are available in the path before you launch
desktop.
Note There is no need to install RSM unless the you are using the scheduler GUI on a post
processing node that is different than the than the job submission node. In this case, RSM
must be configured with the scheduler type and path.
A post processing nodes is a node in the cluster that can run the ANSYS Electromagnetics
desktop in graphical mode. A job submission node is a node in the cluster in which job
submission commands are available.
Turn OFF firewall between cluster nodes.
Scenario 1: The post-processing node and job-submission node roles are served by
distinct machines.
In this case, perform the following configuration:
The job-submission node should be configured to run the RSM service, which serves as a proxy to
scheduler. The RSM Service should be running as 'root' in order to facilitate jobs running using the
credentials of the job's owner. A configuration file in the RSM installation folder should be
edited to specify information regarding the scheduler that manages jobs on this cluster. A block
labeled 'Scheduler' must be included within the 'AnsoftCOMDaemon' block. This block contains two
string entries:
l SchedulerName: this contains the unique part of the scheduler proxy library name
The case of the SchedulerName string is significant on Linux because Linux file names are case
sensitive. The case of the SchedulerName string is not significant on Microsoft Windows. In ANSYS
Electromagnetics Suite, the possible scheduler names are: lsf and sge. The ConfigString entry is a
scheduler specific configuration string, described below.
In addition, the AnsoftRSMService must be started with appropriate environment variables set.
Generally, the environment variables must be set the same as they would be set for using the
scheduler via command lines.
SGE Details
For SGE, the ConfigString entry must contain the search path for the SGE commands. It may
contain a single directory, the directory containing the SGE commands. Alternatively, it may be a
path, with directories separated by the colon character ":", where the SGE command directory
appears before any other directory containing files with the same name as any SGE commands.
Example ansoftrsmservice.cfg configuration file:
$begin 'AnsoftCOMDaemon'
$begin 'Managed COM Servers'
$end 'Managed COM Servers'
$begin 'Scheduler'
'SchedulerName'='sge'
'ConfigString'='/opt/sge6.2u4/bin/lx24-amd64'
$end 'Scheduler'
$end 'AnsoftCOMDaemon'
Scenario 2: The post-processing node and job-submission node roles are served by the
same machine.
The Select Scheduler... command (as described in the Job Management User Interface for SGE
section) is used to gather details about the scheduler. In this case, the Desktop process should be
started in an environment suitable for submitting jobs to the scheduler.
The environment should be configured so that all SGE commands are found using the standard
search path. In particular, search for the following commands in the search path should result in the
SGE command being found: "qsub", "qdel", "qstat", and "qconf". No other command with the same
name should appear before the SGE command in the search path.
Related Topic
Job Management User Interface for SGE
Command Line Enhancements for ANSYS Electromagnetics Desktop Products
The Job Management UI is accessed by running ANSYS Electromagnetics product Desktop on the
designated 'Postprocessing node' of the cluster. The Desktop provides UI commands for Scheduler
selection, Job submission and Job monitoring/control. You access the Scheduler User Interface by
clicking Tools>Job Management>Select Scheduler.
Before you can use Submit Job, you must click Select Scheduler as the one-time initial step. This
opens the Select Scheduler dialog.
Once you select a scheduler, you can access the interface for job submission, monitoring and
control. Click OK to close the dialog.
You access the Job submission UI by clicking Tools>Job Management>Other
Schedulers>Submit Job.... This command launches a multi-tab Submit Job To: dialog similar to
the one shown below.
l The Analysis Specification tab has parameters to specify the input project model, the
analysis setup and analysis options (including batchoptions) that affect analysis algorithms.
l The Compute Resources tab specifies the amount of compute resources and how to select
specific resources from the available pool (for example, ParallelEnvironment is an SGE
parameter).
l The Scheduler Options tab has analysis-independent parameters specific to the job, such
as name, priority.
Project:
You can use the ellipsis button [...] to use a navigation window to browse. The path should be
visible to all nodes in the cluster. The Project can be an archive.
Analysis Setups:
Specify All setups in the project, all in a design, or a single setup. If the setup includes a
parametric sweep, the Use large scale DSO check box is enabled.
Analysis Options:
l You have check boxes for whether to Monitor Job through the GUI, and whether to Wait for
license.
l You can also specify Batchoptions. Click the Add... button to open a dialog for selecting the
Batchoptions.
The lower Value field shows the legal values for the selected registry key. You can type the
desired value into the upper text field under value. Click the Add button to accept the selection
of the registry key with the specified value. Click Done close the Add Batchoption dialog.
At the upper left, a drop down menu lets you specify which registry key categories to display,
whether All, or selected category.
A check box lets you choose between displaying only frequently used entries (the default), or
by unchecking, all options available for the selected group.
Note that for Large Scale DSO problems, you also have the option to specify predefined
configurations.
The added registry keys and values are listed in the Batchoptions field of the Submit Job
dialog.
Selecting from the list enables buttons for removing or editing registry key values. Selecting a
registry key and clicking Edit... opens the Edit Batchoptions dialog.
Here you can edit the Value field and update the value for the selected registry key.
Environment:
If you check the Show advanced options check box, you can see the Environment field.
This permits specifying Environment Variables. Click the ellipsis button [...] to open the
Additional Job Options dialog.
The Add button permits you to specify your environment variables. Once, added, you can select
Remove or Edit. The Add Debug Environment Variables button adds variables of use in
working with support.
l The Save Settings as Default button lets you save a current set of values as defaults the
next time you invoke the Scheduler GUI. This can simply subsequent job submissions.
See the discussion on Running Maxwell from a Command line for a discussion of the solve
information available through batch extract.
This tab lets you provide Resource selection and Job parallelization parameters. Once you have
specified parameters, you can Save Settings as Defaults, Preview a Submission, and Submit a job.
You can also populate this page yourself by specifying Resource selection, Job Parallelization
parameters, and Job distribution parameters.
This tab lets you provide Resource selection and Job parallelization parameters. You can elect to
User automatic settings for job distribution, specify a Method and resource selection parameters,
or job distribution parameters.
Note If you select Use automatic settings, the solver does not support automatic distribution of
variations. The Use automatic settings option does not support Optimetrics variations. It
does distribute frequencies, domains, and use of multiple level domains.
You can also uncheck Use automatic settings. Doing so requires you to also specify Cores per
distributed task and enables the Job distribution fields.
Resource Selection:
If you do not specify parameters for resource selection, SGE may submit jobs to any machine in the
entire pool that is available.
l Resource selection parameters.
Clicking the ellipsis button [...] opens a dialog for parameters specific to SGE, in this case
ParallelEnvironment. The Specify Parameter check box in the dialog enables a parameter,
and you can select the Value for the ParallelEnvironment parameter from a drop down menu.
Job Distribution
l Enabled types, such as Optimetrics Variations, Frequencies, etc.
Preview submission
This opens a screen showing the qsub command to be used to submit the job.
Submit job actually sends the batch command to the SGE cluster.A dialog reports a successful
submit and presents a check box for monitoring.
When the "Override job submission" radio button is checked, the user specified options replace most
of the job submission options, whereas when the "Additional job submission options" radio button is
checked, the user specified options are appended to the bsub command.
Text in the enabled field is appended to the bsub command. You can see the effects of any custom
additions by clicking Preview Submission.
Related Topics
In this dialog, you can select the job to monitor from a pull down list of recent jobs.
The lower left has corner of the dialog has options for manual refresh or to Automatically refresh
every specified number seconds. After refresh, the messages for the job are displayed.The lower left
has corner of the dialog has options for manual refresh or to Automatically refresh every specified
number seconds. After refresh, the messages for the job are displayed.
You can choose to Clear Progress Messages. The Clean Stop button lets you stop the simulation
cleanly between time steps.
The Abort Job button lets you abort a job.
Related Topics
The number of engines run on a host will depend on the total number of distributed engines, and the
number of hosts allocated to the job. The memory required on a host depends on the number of
engines running on the host and on the memory needed for each engine. The qsub command -l
resource=value,... or -q queue_list command line options specify that the parallel batch job run on
machines with sufficient memory and other resources.
Related Topics
The suggestions below may be used for SGE serial jobs and for SGE parallel jobs.
Related Topics
The -monitor command line option enables batch job output to the standard output and standard
error streams. The warning, info, and progress messages are sent to the standard output stream.
The error and fatal messages are sent to the standard error stream.
The SGE scheduler redirects the standard output and standard error streams of batch jobs to files
specified in the qsub -o [[hostname]:]path,... and the -e [[hostname]:]path,... command line
options, respectively. If either option is not specified, then the associated stream is redirected to the
default file pathname.
The qsub -j y[es] | n[o] controls whether the standard output and standard error streams are
merged. If the y or yes value is specified, then the standard error stream is merged into the standard
output stream. If the -e host_and_path option is also specified in this case, the host_and_path setting
is ignored. If the n or no value is specified, or if this option is not specified, then the standard error
stream and standard output stream are not merged.
You can monitor the progress of a job by checking the standard output file for progress, info and
warning messages, and checking the standard error file for error and fatal messages.
Related Topics
All of the following examples show how to submit Linux Maxwell jobs on SGE, but similar command
lines will work for other ANSYS Electromagnetics products.
Serial job using a script, with a runtime limit specified in the script:
qsub ~/sge/scripts/OptimTee.csh
l The -b y option is absent, so the script ~/sge/scripts/OptimTee.csh will be run when the job
starts.
l The script file OptimTee.csh may contain SGE directives in addition to the command(s) to run.
In this example, a directive with a hard runtime limit if 15 minutes is included in the script.
Script file contents:
#!/bin/csh
#$ -l h_rt=00:15:00
/opt/AnsysEM/AnsysEM18.0/ansysedt -ng -BatchSolve
~/projects/OptimTee.aedt
l The SGE directive #$ -l h_rt=00:15:00 is equivalent to including -l h_rt=00:15:00 on the qsub
command line.
Related Topics
The following subsections contain recommendations on how to set up an SGE cluster for efficiently
running ANSYS Electromagnetics serial and parallel jobs. These recommendations require the
cluster administrator to make configuration changes.
Submitting Exclusive Jobs
Consumable Memory Limits
l shortcut : excl
l type : BOOL
l relop : EXCL
l requestable : YES
l consumable : YES
l default : 0
l urgency : 0
2. Set the value of "exclusive" to TRUE for each execution host using the command qconf -me
hostname, where hostname is the name of the host. The values of all host configuration
parameters may be displayed using the command qconf -se hostname. The "complex_values"
line should look similar to:
complex_values exclusive=TRUE, but other values may also be included.
3. When submitting a job, the job will be "exclusive" if the value "excl" is included in the resource
list specified by the qsub -l option. If the resource list does not include "excl" then the job will
not be exclusive, and other jobs may run on the same host or hosts as this job.
4. Example qsub command line for exclusive serial job:
qsub -b y -l excl /opt/AnsysEM/AnsysEM18.0/ansysedt -ng
-BatchSolve ~/projects/OptimTee.aedt.
Although serial jobs use only one slot, no other jobs will run on the host where this job is
running, even if additional slots are present.
5. Example qsub command line for exclusive parallel job using eight engines, each using a single
thread of execution:
qsub -b y -l excl -pe pe1 8 /opt/AnsysEM/AnsysEM18.0/ansysedt
-ng -BatchSolve -Distributed -machinelist num=8
~/projects/OptimTee.aedt
None of the hosts used for this job will be allowed to run other jobs while this job is running.
l shortcut : phys_mem
l type : MEMORY
l relop : <=
l requestable : YES
l consumable : YES
l default : 0
l urgency : 0
2. Set the value of "physical_memory" to an appropriate value for each execution host using the
command qconf -me hostname, where hostname is the name of the host. The appropriate
value is the actual physical memory on each host. Because the type is MEMORY, the K, M,
and G suffixes may be used to represent kilobytes, megabytes and gigabytes. The values of all
host configuration parameters may be displayed using the command qconf -se hostname. The
"complex_values" line should look similar to:
complex_values physical_memory=16G,
but other values may also be included, and the memory value should be appropriate for the
host.
3. When submitting a job, the physical memory requirement per slot may be specified in the
resource list as follows: -l phys_mem=mem_needed. The number of slots assigned to the job
on a specific host will be limited by the number of slots available on the host, and also by the
physical_memory available on the host.
so that no processor is overloaded, one slot is generally allocated per thread, so 8 slots would be
needed for this example (4 engines * 2 threads per engine = 8 threads). The four engines could all
run on a single host, or they could be distributed across 2, 3 or 4 hosts, depending on available slots.
Each engine represents a single process, so the two slots for each engine must be allocated on the
same host.
This section describes how to set up an SGE cluster so that a specified number of slots per host may
be requested when a job is submitted. This procedure will require the cluster administrator
privileges. This capability may be used to submit parallel jobs in which one engine runs on each host,
and the number of slots per host matches the number of threads used by each engine.
1. Let n be the largest number of slots available on any host used for the jobs. Create a separate
parallel environment for each value of the number of slots per host from 1 to n. For example,
pe_sph1 is a parallel environment in which one slot is allocated to the job per host, pe_sph2 is
a parallel environment in which two slots are allocated to the job per host, etc. The command
qconf -ap pe_namemay be used to create each new parallel environment. The allocation_rule
parameter should be set to the number of slots per host, an integer from 1 to n. The control_
slaves parameter should be set to TRUE, as described above. The slots parameter should be
set to the maximum number of slots managed by this parallel_environment, which is typically
set to a large number, such as 999. The other parameters should be set to values appropriate
for the cluster. For example, the pe_sph2 parallel environment might have the following
parameters:
l pe_name : pe_sph2
l slots : 999
l user_lists : NONE
l xuser_lists : NONE
l start_proc_args : /bin/true
l stop_proc_args : /bin/true
l allocation_rule : 2
l control_slaves : TRUE
l job_is_first_task : FALSE
l urgency_slots : min
l accounting_summary : TRUE
2. When submitting a job, use the parallel environment where the slots per host matches the
number of threads per engine.
The batchoptions setting -machinelist num=n is required. This should be set to match the number of
slots per host. With any analysis, a portion of the analysis may not be distributed across multiple
engines.
Example qsub command line for running distributed processing with four engines and
multiprocessing with two threads per engine:
qsub -V -b y -pe pe_sph2 8 "/opt/AnsysEM/AnsysEM18.0/ansysedt
-ng -BatchSolve -Distributed -machinelist num=4 -batchoptions
"projects/OptimTee.aedt"
The -Voption indicates that the all environment variables in the submission environment should be
copied to the job environment.
l The -b y option indicates that Maxwell is launched directly from the command line, instead of
using a script.
l The -pe sph2 8 command_line option indicates that this is a parallel job running under the pe_
sph2parallel environment so that two slots are allocated to this job from each host, and that 8
slots in total are allocated to this parallel job.
l The -Distributed option indicates that this is a DSO job, so that multiple engines will be started.
The -Distributed option may now have additional options, such as includetypes=xxx,
excludetypes=xxx, maxlevels=n, and numlevel1=n, where n indicates and integer, and xxx
indicates a list of distribution types or "default".
l The -machinelist num=4option indicates that a total of four engines will be started.
l The entire Maxwell command is in double quotes, and the double quotes enclosing the -
batchoptions value are escaped. Each of these double quotes is replaced by the sequence
"\"".
Related Topics
ANSYS Electromagnetics parallel batch jobs use the SGE qrsh command to launch engine
processes on remote hosts. If the qrsh command is not working correctly, then the parallel job is
unable to launch engine processes on remote hosts. If this problem occurs, the batch log for the job
typically includes one or more error messages indicating that a COM engine was unable to be
started on a remote host. If this occurs, the user or cluster administrator should verify that the SGE
qrsh command is working correctly, and correct the problem if the SGE qrsh command is not
working correctly.
The qrsh command may be tested by running a simple command on a specified host, such as qrsh -
l hostname=host1 hostname or qrsh -l hostname=host1 ls /tmp, where host1 is the remote
host name. The first test should simply echo back the hostname of the remote machine. The second
test should list the contents of the /tmp directory on the remote machine.
The failures of the SGE qrsh command are associated with the following global sge configuration
parameters, listed below with values that may cause the failures:
qrsh_command /usr/bin/ssh -t
rsh_command /usr/bin/ssh -t
rlogin_command /usr/bin/ssh -t
If these parameter settings are removed, then the SGE built-in mechanisms are used for qrsh, rsh,
and rlogin. No problems with the built-in versions have been reported. The SGE qconf -sconf global
command may be used to view these parameter settings. The SGE qconf -mconf global command
may be used to modify or remove these parameter settings.
By default, SGE creates a temporary directory for each SGE batch job, and deletes this temporary
directory and its contents when the job finishes. SGE sets the TMP and TMPDIR environment
variables of the job environment to point to this temporary directory. ANSYS Electromagnetics
desktop software starts the MainWin Core Services on startup, if they are not already running. After
the ANSYS Electromagnetics desktop software finishes, the MainWin Core Services time out and
automatically shut down. The MainWin Core Services use the TMP and/or TMPDIR directories to
store temporary data. If this temporary data is removed before the services shut down, then the
services do not shut down automatically. Normally, SGE will remove the temporary directory and its
contents before the services time out. The result is that these extraneous service processes run
forever. If this problem occurs, each ANSYS Electromagnetics batch job starts an additional set of
these services that never shut down. This can result in an excessive number of processes running on
the host where the ANSYS Electromagnetics desktop is started. The names of the service
processes are:
l watchdog
l regss
l mwrpcss
Script contents:
#! /bin/bash
Related Topics
The ARC scheduling system operates in two distinct modes: basic and advanced. In basic mode,
jobs run on a single cluster node only, which can be the local machine or a single remote machine. In
advanced mode, jobs can run on one or more remote machines. This requires installation and
configuration of the cluster services on each of the cluster machines. See the ANSYS Remote Solve
Manager (RSM) documentation for details on configuring the ARC cluster.
In addition to configuring the ARC scheduling system, the EKM portal must be configured to allow
submission of jobs to the ARC scheduler. EKM queues may be configured for submission of jobs to a
basic or advanced ARC scheduling system.
You can submit jobs to an ARC scheduler using EKM in a manner similar to submitting jobs to any
other cluster supported by EKM.
Here is a brief outline of the steps for submitting a job:
1. Login to the EKM portal.
2. Select Jobs in the dropdown list box in the upper left corner.
3. In the Jobs screen, press the Start Job button just below the dropdown list box in the upper
left corner.
5. In the Create Job popup dialog, select the Tag, Job Name, and Working Directory. Press the
Next button to continue.
6. In the Add Files popup dialog, specify the files for the job, which may be from the local
system, the server, or the EKM data repository. Press Next to continue.
7. In the Specify Execution Settings popup dialog, specify the analysis parameters and the
compute resources for the job. Press the Finish button to submit the job.
For additional details on configuring an ANSYS RSM Cluster, see the ANSYS Remote Solve
Manager (RSM) documentation.
Distributed Jobs
An ANSYS Electromagnetics batch job which distributes the analysis over several hosts may also be
called a distributed job. To submit a distributed job, the following ANSYS Electromagnetics desktop
command line options should be used:
l The -Distributed option should be present, and the -Local option should be absent. When
running as a batch job under one of the schedulers with direct integration, this option is a
directive to the job to 1) obtain the list of hosts allocated to the job, directly from the scheduler,
and to 2) use the scheduler to launch the analysis engines on the hosts allocated to the job.
l The -Machinelist num=num_distributed_enginesoption should be included, where num_
distributed_enginesis the total number of analysis engines to be started on the hosts assigned
to the job.
Other examples:
l Serial Job on a Single Processor
Related Topics
Introduction
ANSYS Electromagnetics Software Tools may be run as serial or parallel jobs on a cluster under
control of a scheduler. Serial jobs are run using a single analysis engine at any one time on a single
host. If the tool performs multiple analyses (for a frequency sweep or a parametric analysis, for
example), the analyses are performed one after the other. Parallel jobs are run using multiple
analysis engines running in parallel on the same host or on separate hosts. For parts of the analysis
(such as meshing), the parallel job may use only a single analysis engine on a single host. Other
parts of the analysis (such as a frequency sweep, parametric analysis or DDM, for example) may be
distributed to multiple analysis engines running in parallel.
l Serial Jobs
l Parallel Jobs
Serial Jobs
When an ANSYS Electromagnetics batch analysis runs as a serial job, the analysis engines run on
the same host as the desktop process. The desktop process does not need to interact with the
scheduler to get the names of hosts allocated to the job or to start processes on other hosts.
Parallel Jobs
For a parallel job, the desktop process starts multiple analysis engines that run in parallel. These
engines may be started on the host where the desktop process is running, or on other hosts
allocated to the job. The desktop process interacts with the scheduler to obtain information on the
hosts that are allocated to the job, and to start engines on the local host or on other hosts allocated to
the job. This document provides information on how to facilitate this interaction between the desktop
process and the scheduler controlling the cluster.
For some popular job schedulers in a standard configuration, ANSYS Electromagnetics provides an
"out of the box" integrated solution that will work with the scheduler. In this case, the ANSYS
Electromagnetics installation includes code that will determine if the analysis is running as a
scheduler job and communicate with the scheduler when needed. For other schedulers, the code to
obtain information about the hosts allocated to a job and to distribute portions of the job to hosts
assigned to the job is not provided in the installation. In order to facilitate using ANSYS
Electromagnetics software tools with other schedulers, the user may provide a way for ANSYS
Electromagnetics tools to interact with the scheduler. Currently, two general approaches are
available to users.
In the first approach, the user creates a shared library (on Linux) or a dynamically linked library (on
Microsoft Windows) to provide communication between the ANSYS Electromagnetics tool and the
scheduler. This library is loaded by the ANSYS Electromagnetics tool at runtime, and if the ANSYS
Electromagnetics tool is running as part of a scheduler job, the ANSYS Electromagnetics tool
interacts with the library to get information from the scheduler, and to start additional processes on
specified hosts. Each such library implements the same set of extern "C" functions needed to
mediate the interactions between the ANSYS Electromagnetics tool and the scheduler. The details
of these functions are described below.
In the second approach, the user creates an IronPython program to provide communication
between the ANSYS Electromagnetics tool and the scheduler. This program is loaded by the
ANSYS Electromagnetics tool at runtime, and if the ANSYS Electromagnetics tool is running as part
of a scheduler job, the ANSYS Electromagnetics tool uses the IronPython program to get
information from the scheduler, and to start additional processes on specified hosts. Each python
script contains a class implementing a specified interface, which contains functions needed to
mediate the interactions between the ANSYS Electromagnetics tool and the scheduler. The details
of the interface are described below. The IronPython interface is equivalent to the extern "C"
functions used in the first approach.
The following requirements must be met for serial and parallel jobs to run successfully. They apply
whether using "out of the box" scheduler integration or scheduler integration using a library or using
an IronPython program. When we refer to host requirements, the requirements apply to all hosts that
may be allocated to an ANSYS Electromagnetics serial or parallel batch job.
Installation Requirements
The ANSYS Electromagnetics installation directory tree must be accessible from all cluster hosts
using the same path. One way to achieve this is to place the ANSYS Electromagnetics installation on
a shared drive that is accessible to the cluster hosts using the same pathname. On Windows, this
may require the use of UNC names to refer to the installation directory. Another option is to install the
ANSYS Electromagnetics tool locally on each cluster host using the same local directory pathname.
used to run the job. The controlling process for a distributed job is called the Desktop process, and it
reads from and writes to the project file and other files in the same directory and its subdirectories.
Although only the Desktop process reads from and writes to this directory, the Desktop process may
be started on any of the hosts allocated to the job, so all hosts should have access to this directory
using the same pathname.
This section describes how to create a dynamically linked library to allow integration of Ansoft tools
with an arbitrary scheduler environment. Each scheduler proxy library is used for a single specific
scheduler environment. If the library is installed with a valid name and in the correct location, then it
will automatically be loaded and used by ANSYS Electromagnetics tools.
Installation Details
The scheduler proxy library must be installed in the schedulers subdirectory of the ANSYS
Electromagnetics installation directory. For example, if the ANSYS Electromagnetics installation
directory is C:\Program Files\AnsysEM\AnsysEM18.0\Win64, then the scheduler proxy library must
be installed in directory C:\Program Files\AnsysEM\AnsysEM18.0\Win64\schedulers.
The scheduler proxy library base name must match "libprefix_scheduler" on Windows and
"liblibprefix_scheduler" on Linux. The extension must be a valid extension for a dynamically loaded
library on the platform where it is used. The scheduler proxy library name prefix libprefix shall be
unique, so it does not conflict with other scheduler proxy libraries in the same directory. To avoid
confusion, the scheduler proxy library name should be all lower case on OSs where file names are
case sensitive.
Related Topics
This section contains the recommended compiler and linker settings for building a scheduler proxy
library.
l 32 Bit Microsoft Windows
Compiler Options
l Use of MFC: Use Standard Windows Libraries
Linker Options:
l Create a DLL [/DLL]
Linker Options:
l Create a DLL [/DLL]
Linux
The proxy library should be compiled and linked as shared library (*.so) file. The following compiler
and linker options are recommended when building using gcc/g++:
Compiler Options
l Generate 32 bit code: [-m32]
l Generate position independent code, suitable for use in a shared library: [-fpic]
Linker Options:
l Create a shared object file: [-shared]
l Generate position independent code, suitable for use in a shared library: [-fpic]
The scheduler proxy library must provide implementations of the following extern "C" functions:
l IsProductLaunchedInYourEnvironment
l GetTempDirectory
l GetMachineListAvailableForDistribution
l LaunchProcess
l GetUseRsmForEngineLaunch
l GetThisJobID
l GetSchedulerDisplayName
IsProductLaunchedInYourEnvironment
Purpose
Determine if the program is running in the context of the scheduler for which this library was
written.
Signature
extern "C" bool FN_PREFIX_IsProductLaunchedInYourEnvironment
();
Arguments
None.
Return Value
Returns true if the current process is running as a job of the scheduler. Otherwise, false is
returned.
Notes
For many schedulers, the presence of certain environment variables or their values may be checked
to determine if the current process is running as a job of the scheduler.
GetTempDirectory
Purpose
Get the pathname of the temporary directory provided by the scheduler for the current job. The
pathname is an empty string if the scheduler does not provide a temporary directory for the
current job.
Signature
extern "C" bool FN_PREFIX_GetTempDirectory(char * buffer,
unsigned int* length);
Arguments
buffer: Pointer to a character buffer to contain the temporary directory path name or NULL.
length: Pointer to a location to contain the length of the buffer. Must be a valid pointer to an
unsigned int.
Return Value
If argument buffer is NULL, then the required length of the buffer is stored in the location to
which argument length points, and true is returned.
If argument buffer is not NULL, then the value to which argument length points (the buffer
length) is checked. If it is large enough to contain the pathname of the temporary directory,
including the terminal null byte, then the pathname is copied to the buffer and true is returned.
If the buffer length is insufficient for the pathname of the temporary directory, then the buffer is
unchanged, and false is returned.
Notes
To get the pathname of the temporary directory, the infrastructure first calls this function with a NULL
buffer, and obtains the required length of the buffer for the pathname. After creating a buffer of the
appropriate size, the infrastructure calls this function again, passing the pointer to the buffer in the
buffer argument and a pointer to the size of the buffer in the length argument.
GetMachineListAvailableForDistribution
Purpose
Get the list of hosts allocated to the current job. A host will appear in the list multiple times if the
scheduler has allocated multiple processors or cores on the host to the job. The number of
times the host appears in the list is equal to the number of processors or cores of the host that
are allocated to the current job. The list is a text string containing a space separated list of
hostnames.
Signature
extern "C" bool FN_PREFIX_
GetMachineListAvailableForDistribution(char * buffer, unsigned
int* length);
Arguments
buffer: Pointer to a character buffer to contain the list of machines available for distribution
or NULL.
length: Pointer to a location to contain the length of the buffer. Must be a valid pointer to an
unsigned int.
Return Value
If argument buffer is NULL, then the required length of the buffer is stored in the location to
which argument length points, and true is returned.
If argument buffer is not NULL, then the value to which argument length points (the buffer
length) is checked. If it is large enough to contain the lists of hosts, including the terminal null
byte, then the list is copied to the buffer and true is returned. If the buffer length is insufficient
for the list of hosts, then the buffer is unchanged, and false is returned.
Notes
To get the list of hosts for distribution, the infrastructure first calls this function with a NULL buffer,
and obtains the required length of the buffer for the list. After creating a buffer of the appropriate size,
the infrastructure calls this function again, passing the pointer to the buffer in the buffer argument
and a pointer to the size of the buffer in the length argument.
The hostnames in the list provided by this function shall be used in calls to LaunchProcess(). These
host names must be in a format that is accepted by that function. See the section below on
LaunchProcess.
LaunchProcess
Purpose
Launch a local or remote process to run an analysis engine. This function is called by the
ANSYS Electromagnetics desktop application to launch an engine process on a specified
host. The hostname is one of the names in the list provided by the
GetMachineListAvailableForDistribution function. See the
GetMachineListAvailableForDistribution section above. If the hostname does not refer to the
local host, then this function shall use the scheduler to launch the engine on the specified host.
If the hostname refers to the local host, then the engine may be started as a child process, or it
may be started using the scheduler.
Signature
extern "C" int FN_PREFIX_LaunchProcess(const char* hostName,
const char* exePathName, const char* arg1, const char* arg2);
Arguments
hostName: The name of the host where the process is to be launched.
exePathName: The pathname of the analysis engine executable to be started.
arg1: The first argument of the analysis engine command line.
arg2: The second argument of the analysis engine command line.
Return Value
Returns 0 on success. Returns a non-zero value if an error occurs.
Notes
The hostName argument will be one of the hostnames provided by the function
GetMachineListAvailableForDistribution().
If the hostName argument is the same as the current host, then the analysis engine process may be
started as a child process. If the hostName argument is not the same as the current host, then the
analysis engine process will be started on the remote host using the facilities available in the
scheduler environment. The command line of the analysis engine process is exePathName arg1
arg2. The command line arguments arg1 and arg2 may contain newlines, tabs, spaces or other
characters that are interpreted by the command processor, such as single quote (') or double quote
(") characters, or dollar signs ($). Newlines or tabs may be replaced by spaces, if the newline or tab
characters cannot be easily handled. If the analysis engine command is processed by a shell, then it
may be necessary to quote any special characters in the exePathName or in the arguments so that
the special meaning is removed. If a scheduler command is used to request the scheduler to launch
the command to start the engine process, the analysis engine command may be processed by the
shell twice: once when the scheduler command is processed, and a second time when the analysis
engine process is started. If this is the case, then the quoting of special characters needs to account
for two passes through the command processor.
GetUseRsmForEngineLaunch
Purpose
This function is optional. If this feature is not needed, then the function need not be
implemented. Most schedulers should not need this feature.
For some schedulers, it may be desirable for the ANSYS Electromagnetics RSM service to
launch the engine processes instead of using the scheduler proxy library. For example, if the
scheduler proxy library is limited to launching one process per host, then the scheduler proxy
library may be used to launch one ANSYS Electromagnetics RSM service executable per
host, and the ANSYS Electromagnetics RSM executable will launch all of the engine
processes.
If the ANSYS Electromagnetics RSM service should be used to launch engine processes for
this scheduler, then this function shall be implemented and it shall return true.
If the ANSYS Electromagnetics RSM service should not be used to launch engine processes
for this scheduler, then this function is not required. If it is implemented, it should return false. If
it is not implemented, it will be treated the same as if it was implemented and returns false.
Signature
extern "C" bool FN_PREFIX_GetUseRsmForEngineLaunch(void)
Arguments
None.
Return Value
Returns true if the ANSYS Electromagnetics RSM service should be used to launch engine
processes for this scheduler. Returns false if the ANSYS Electromagnetics RSM service
should not be used to launch engine processes for this scheduler.
Notes
This function is optional. If not implemented, then it is treated the same as if it was implemented and
returns false.
GetThisJobID
Purpose
Get a string identifying the job currently running in the scheduler environment. This string is
displayed to the end user to identify the job.
Signature
extern "C" bool FN_PREFIX_GetThisJobID(char * buffer, unsigned
int* length);
Arguments
buffer: Pointer to a character buffer to contain the Job ID or NULL.
length: Pointer to a location to contain the length of the buffer. Must be a valid pointer to an
unsigned int.
Return Value
If argument buffer is NULL, then the required length of the buffer is stored in the location to
which argument length points, and true is returned.
If argument buffer is not NULL, then the value to which argument length points (the buffer
length) is checked. If it is large enough to contain the string identifying the current job, including
the terminal null byte, then the job ID is copied to the buffer and true is returned. If the buffer
length is insufficient for the job ID, then the buffer is unchanged, and false is returned.
Notes
To get the job ID, the infrastructure first calls this function with a NULL buffer, and obtains the
required length of the buffer for the job ID. After creating a buffer of the appropriate size, the
infrastructure calls this function again, passing the pointer to the buffer in the buffer argument and a
pointer to the size of the buffer in the length argument.
For many schedulers, the job ID may be obtained from the value of an environment variable.
GetSchedulerDisplayName
Purpose
Get a string identifying the scheduler associated with the current scheduler proxy library. This
string is displayed to the end user to identify the scheduler.
Signature
extern "C" bool FN_PREFIX_GetSchedulerDisplayName(char *
buffer, unsigned int* length);
Arguments
buffer: Pointer to a character buffer to contain the scheduler display name or NULL.
length: Pointer to a location to contain the length of the buffer. Must be a valid pointer to an
unsigned int.
Return Value
If argument buffer is NULL, then the required length of the buffer is stored in the location to
which argument length points, and true is returned.
If argument buffer is not NULL, then the value to which argument length points (the buffer
length) is checked. If it is large enough to contain the scheduler display name, including the
terminal null byte, then the scheduler display name is copied to the buffer and true is returned.
If the buffer length is insufficient for the scheduler display name, then the buffer is unchanged,
and false is returned.
Notes
To get the scheduler display name, the infrastructure first calls this function with a NULL buffer, and
obtains the required length of the buffer for the scheduler display name. After creating a buffer of the
appropriate size, the infrastructure calls this function again, passing the pointer to the buffer in the
buffer argument and a pointer to the size of the buffer in the length argument.
The scheduler display name is generally a fixed string.
l Returns a non-zero error code if the environment is incorrect. If a non-zero error code is
returned, an error message to display to the user is written to the msg argument.
int GetSchedulerInfo(std::string& msg, std::string& schedulerName, std::string&
schedulerDescription, std::string& schedulerVersion):
This function returns some basic information about the scheduler with which the scheduler
proxy library interacts.
l On success, 0 is returned, and the scheduler name, scheduler description, and scheduler
Each line in the dialog is defined by a single attribute definition in the attributeDefs argument.
An attribute definition defines the name and description of an attribute, as well as information
about the allowed values and the default value. In general, only the most commonly specified
job attributes are included in the attributeDefs argument.
l On success, 0 is returned, and the attribute definitions are written to the attributeDefs
argument.
l On failure, a non-zero error code is returned, and an error message to display to the user is
running the Desktop process). The request to abort the job should run in the context of this
user. If no user is specified, then the request to abort the job runs as the user of the process or
thread running the function.
l If the request is successfully submitted, then 0 is returned.
l If there is an error, then a non-zero error code is returned, and an error message to display
jobID argument.
l On failure, a non-zero error code is returned, and an error message to display to the user is
l the number of cores to allocated for the non-distributed portion of the analysis.
l It also contains a boolean parameter indicating whether nodes used for this job should be
either specify additional job submission options or to specify all submission options, replacing the
settings from the other Job Submission dialog controls.
The user specified submission options are included in this data structure, as well as a boolean
setting indicating whether the user specified options are in addition to the automatically
generated options, or whether they replace the automatically generated submission options.
The submissionUser argument contains information about the client user (the user running
the Desktop process). The job is submitted to the scheduler to run as this user.
The jobParametersCB argument is a pointer to an object that implements the
IJobParameters interface. This interface allows the scheduler proxy library to get additional
information about the job. Specifically, the GetWorkingDirectory() interface function returns
the working directory to be used for the job.
The cmdLineInfo argument contains the command line arguments. The first argument is the
command name.
jobID argument.
l On failure, a non-zero error code is returned, and an error message to display to the user is
l On failure, a non-zero error code is returned, and an error message to display to the user is
See the product specific help for details on running the product in batch mode, and for the command
line options to use for distributed analysis.
l Testing IsProductLaunchedInYourEnvironment
l Testing GetTempDirectory
l Testing GetMachineListAvailableForDistribution
l Testing LaunchProcess
l Testing GetUseRsmForEngineLaunch
Testing IsProductLaunchedInYourEnvironment
This function should be tested first. If the ANSYS Electromagnetics application is not able to
load and run this function, or if it returns false, then none of the other functions will be called. If
the batch analysis is running in a scheduler environment, and this function returns true, then
there will be an "info" message near the beginning of the batch log indicating that the analysis
is running as a scheduler job. This message will include the scheduler display name returned
by the function GetSchedulerDisplayName, and it will also include the job ID returned by the
function GetThisJobID. If the batch analysis is not running in a scheduler environment, then
none of the messages will include a scheduler display name or job ID.
If this message does not appear when running in a scheduler environment, ensure that the
scheduler proxy library is named correctly, that it is built correctly, that it is installed in the
correct directory, and that the function name prefix is the same is the library prefix converted to
upper case.
As described above, when running a batch job in a scheduler environment, the scheduler
display name and the job ID will appear in an "info" message near the beginning of the batch
log. The values returned by these functions are copied to this message verbatim, so they can
be directly compared to the expected values.
Testing GetTempDirectory
Unfinished. The temp directory displayed in the batch log is the default installation setting, not
the one from the scheduler. The scheduler temp directory is set in
AnsoftCOMApplication::MainFunction(), so it happens for COM engines, but not for the
desktop.
Testing GetMachineListAvailableForDistribution
This function is used for distributed analysis. The analysis may be distributed across several
machines if portions of the analysis are independent. For example, frequency sweeps,
parametric analysis and domain decomposition allow different portions of the analysis to be
distributed across machines. The analysis in a batch job will be distributed to multiple
processors or hosts if the analysis includes a setup that may be distributed (e.g., a frequency
sweep or parametric analysis) and the -Distributed option is included in the desktop
command line. The list of machines is displayed in an "info" message near the beginning of the
batch log. The list in the info message can be directly compared to the expected list of
machines.
To verify that the machine list is constructed correctly for a variety of cases, it may be
necessary to test several jobs with different resource requirements and verify that the machine
list is correct in each case. For example, one may run batch analyses with the following
resource requirements:
l One processor on one host
l Several processors on one host
l One processor on each of several hosts
l Several processors on each of several hosts
Testing LaunchProcess
This function is used to launch analysis engines in the case where the analysis is distributed across
multiple hosts. The analysis may be distributed across several machines if portions of the analysis
are independent. For example, frequency sweeps, parametric analysis and domain decomposition
allow different portions of the analysis to be distributed across machines. The analysis in a batch job
will be distributed to multiple processors or hosts if the analysis includes a setup that may be
distributed (e.g., a frequency sweep or parametric analysis) and the -Distributed option is included
in the desktop command line. The list of machines is displayed in an "info" message near the
beginning of the batch log. The batch log may also contain info messages when portions of the
analysis distributed to different machines start or finish. These messages usually include the name of
the host when the analysis ran or will run. One can verify that the analysis is actually running on the
expected host or hosts using the Linux ps command or the Windows Task Manager.
In general, one analysis engine is started for each occurrence of each host in the list of machines
available for distribution. For example, if the list of hosts is "hostA hostA hostA hostB hostB", then a
total of 5 engines would be started, three on hostA and two on hostB. In some cases, an additional
engine is started to perform the portion of the analysis which is not distributed; if this is the case, the
non-distributed engine is idle during the portion of the analysis which is distributed. If this occurs in
the case where the list of hosts is "hostA hostA hostA hostB hostB", then a total of 6 engines would
be started, but at most 5 engines would be active at any given time. When each analysis engine is
running, it may start additional child processes to do a portion of the analysis, but these are not
counted as additional analysis engines because the parent of the sub-engine is inactive (waiting for
the sub-engine results) when the sub-engine is active.
Testing should be sufficient to demonstrate that the scheduler proxy library can start multiple engine
processes on the desktop host, and can also start multiple engine processes on other hosts.
Testing GetUseRsmForEngineLaunch
In most cases, this function will not be implemented or tested. If this function is implemented and
returns true, then the ANSYS Electromagnetics desktop application will not start the analysis
engines using the LaunchProcess function directly. Instead, the ANSYS Electromagnetics desktop
application will start one AnsoftRSMService process on each host using the LaunchProcess
function, and the engine processes will be started by these AnsoftRSMService processes. One may
check for these processes using the Linux ps command or the Windows Task Manager. One
AnsoftRSMService process should run on each host. These processes will be named
ansoftrsmservice.exe or AnsoftRSMService.exe. These processes will be started on each host
before any analysis engine is started on the host, and will remain running until the job is complete.
There are several problems which could result in none of the proxy functions being called.
The scheduler proxy library must be installed in the schedulers subdirectory of the ANSYS
Electromagnetics installation directory. The installation directory is set in the registry entry HKEY_
CURRENT_
USER/Software/Ansoft/Product/Version/Desktop/InstallationDirectory,
where “Product” is the ANSYS Electromagnetics product name (for example, Maxwell) and
“Version” is the ANSYS Electromagnetics product version (for example, 14.0).
The scheduler proxy library name must match "*_scheduler.dll" on Windows and "lib*_scheduler.so"
on Linux. If the library name does not match this format, then the library will not be loaded. In
addition, the function name prefix must be the same as the library name prefix converted to upper
case. For example, if the library name prefix is "abc", then the function name prefix is "ABC". In this
example, the library name is "abc_scheduler.dll" on Windows, and "libabc_scheduler.so" on Linux. In
this example, the full name of the IsProductLaunchedInYourEnvironment function is ABC_
IsProductLaunchedInYourEnvironment on Windows and Linux, and it must have extern "C" linkage.
Verify that the compile and link flags follow the guidelines in the section "Build Information", above.
Incorrect compile or link flags may prevent the library from being loaded by the ANSYS
Electromagnetics product.
Verify that the conditions specified in the section "None of the Proxy Functions are Called" are met.
Verify that this function returns true when called in an environment running under the scheduler, and
that it returns false when called in an environment not running under the scheduler.
Troubleshooting GetSchedulerDisplayName
Troubleshooting GetThisJobID
Troubleshooting GetTempDirectory
Verify that, if argument buffer is NULL, then the required length of the buffer is stored in the location
to which argument length points, and true is returned. The required buffer length must include space
for the string null terminator.
Verify that, if argument buffer is not NULL and the value to which argument length points (the buffer
length) is large enough to contain the temporary directory pathname, including the terminal null byte,
then the temporary directory pathname is copied to the buffer and true is returned.
Troubleshooting GetMachineListAvailableForDistribution
Troubleshooting LaunchProcess
done, verify that the approach used to determine whether the hostName argument represents the
local machine is correct.
Troubleshooting GetUseRsmForEngineLaunch
In most cases, this function will not be implemented. If it is implemented, then follow the suggestions
below.
Verify that the IsProductLaunchedInYourEnvironment function returns true when
running in the scheduler environment.
If the RSM should be used for launching engines, verify that this function returns true. Otherwise,
verify that this function returns false.
Installation Details
The IronPython program must be installed in the schedulers subdirectory of the ANSYS
Electromagnetics installation directory. For example, if the installation directory is C:\Program
Files\AnsysEM\AnsysEM18.0\Win64\, then the IronPython program must be installed in directory
C:\Program Files\AnsysEM\AnsysEM18.0\Win64\schedulers.
The program file extension must be ".py". Select the program name so that it does not conflict with
other IronPython programs in the same directory. If the Operating System or file system treat file
names in a case sensitive manner, the file extension ".py" must be lower case.
Implementation Details
The program must contain the following:
Import the ISchedulerPluginExtension interface as follows:
from Ansys.Ansoft.SchedulerPluginDotNet import
ISchedulerPluginExtension
Define a class which implements the ISchedulerPluginExtension interface. In this document, this
class is named SamplePluginExtension, but any class name may be used. The class member
functions are described in the next section. The class definition will look similar to the following:
class SamplePluginExtension(ISchedulerPluginExtension):
def GetName(self):
return "SamplePluginExtension"
def GetDescription(self):
return "Example python script plugin extension"
. . .
Include the following line in the program so that the class that you have defined,
SamplePluginExtension, is loaded by the infrastructure:
ExtensionRegistrar.RegisterPluginExtension
(SamplePluginExtension())
The infrastructure will make the EntensionRegistrar object available in the environment where the
program is loaded.
Each of the functions to be implemented in the SamplePluginExtension class is described below.
l GetName
l GetDescription
l IsProductLaunchedInYourEnvironment
l GetSchedulerDisplayName
l GetThisJobID
l GetUseRsmForEngineLaunch
l GetTempDirectory
l GetMessageStringToRegisterForSigTerm
l GetMachineListAvailableForDistribution
l LaunchProcess
GetName [IronPython]
Purpose
Return a short string containing the name of the plugin extension. This string is used to identify
the scheduler plugin extension in logs or program output.
Signature
GetName(self)
Arguments (excluding self)
None.
Return Value
Returns a string containing the name of the plugin extension.
Notes
The plugin extension name is generally a fixed string.
GetDescription [IronPython]
Purpose
Return a string containing the description of the plugin extension. This string is used to identify
the scheduler plugin extension in logs or program output.
Signature
GetDescription(self)
Arguments (excluding self)
None.
Return Value
Returns a string containing the description of the plugin extension.
Notes
The plugin extension description is generally a fixed string.
IsProductLaunchedInYourEnvironment [IronPython]
Purpose
Determine if the program is running in the context of the scheduler for which this program was
written.
Signature
IsProductLaunchedInYourEnvironment(self)
Arguments (excluding self)
None.
Return Value
Returns True if the current process is running as a job of the scheduler. Otherwise, False is
returned.
Notes
For many schedulers, the presence of certain environment variables or their values may be checked
to determine if the current process is running as a job of the scheduler.
GetSchedulerDisplayName [IronPython]
Purpose
Get a string identifying the scheduler associated with the current plugin extension. This string
is used to identify the scheduler.
Signature
GetSchedulerDisplayName(self)
Arguments (excluding self)
None.
Return Value
Returns a string containing the description of the scheduler for which this plugin extension was
written.
Notes
The scheduler display name is generally a fixed string.
GetThisJobID [IronPython]
Purpose
Get a string identifying the job currently running in the scheduler environment. This string is
displayed to the end user to identify the job.
Signature
GetThisJobID(self)
Arguments (excluding self)
None.
Return Value
Returns a string containing the Job ID for the current job.
Notes
For many schedulers, the job ID may be obtained from the value of an environment variable.
GetUseRsmForEngineLaunch [IronPython]
Purpose
For some schedulers, it may be desirable for the AnsoftRSM program to launch the engine
processes instead of using the scheduler plugin extension directly. For example, if the plugin
extension is limited to launching one process per host, then the plugin extension may be used
to launch one AnsoftRSM executable per host, and the AnsoftRSM executable will launch all
of the engine processes.
If AnsoftRSM should be used to launch engine processes for this scheduler, then this function
shall return True.
If AnsoftRSM should not be used to launch engine processes for this scheduler, then this
function shall return False.
Signature
GetUseRsmForEngineLaunch(self)
Arguments (excluding self)
None.
Return Value
Returns True if AnsoftRSM should be used to launch engine processes for this scheduler.
Returns False if the plugin extension should be used to directly launch engine processes for
this scheduler.
Notes
If this function returns True, then the plugin extension will directly launch only one process on each
host.
GetTempDirectory [IronPython]
Purpose
Get the pathname of the temporary directory provided by the scheduler for the current job. The
pathname is an empty string if the scheduler does not provide a temporary directory for the
current job.
Signature
GetTempDirectory(self)
Arguments (excluding self)
None.
Return Value
Returns a string containing the pathname of the temporary directory provided by the scheduler
for the current job. Returns an empty string if no temporary directory is provided by the
scheduler for the current job.
Notes
If the return value is an empty string, then the temporary directory specified on the command line or
in the registry will be used.
GetMessageStringToRegisterForSigTerm [IronPython]
Purpose
Obsolete. This function should return an empty string.
Signature
GetMessageStringToRegisterForSigTerm(self)
Arguments (excluding self)
None.
Return Value
Returns an empty string.
Notes
This function should always return an empty string.
GetMachineListAvailableForDistribution [IronPython]
Purpose
Get the names of the hosts allocated to the current job. A host name will appear in the output
string multiple times if the scheduler has allocated multiple processors or cores on the host to
the job. The number of times the host name appears in the string is equal to the number of
processors or cores of the host that are allocated to the current job. The output is a text string
containing the host names separated by space characters.
Signature
GetMachineListAvailableForDistribution(self)
Arguments (excluding self)
None.
Return Value
A string containing the names of the hosts allocated to the job, separated by space
characterss. The number of times the host appears in the string is equal to the number of
processors or cores of the host that are allocated to the current job.
Notes
The hostnames in the string provided by this function shall be used in calls to LaunchProcess(). The
host names must be in a format that is accepted by that function. See the section below on
LaunchProcess.
LaunchProcess [IronPython]
Purpose
Launch a local or remote process to run an analysis engine. This function is called by the
ANSYS Electromagnetics desktop application to launch an engine process on a specified
host. The hostname is one of the names provided by the
GetMachineListAvailableForDistribution function. See the
GetMachineListAvailableForDistribution section above. If the hostname does not refer to the
local host, then this function shall use the scheduler to launch the engine on the specified host.
If the hostname refers to the local host, then the engine may be started as a child process, or it
may be started using the scheduler.
Signature
LaunchProcess(self, hostName, exePathName, arg1, arg2)
Arguments (excluding self)
hostName: The name of the host where the process is to be launched.
exePathName: The pathname of the analysis engine executable to be started.
arg1: The first argument of the analysis engine command line.
arg2: The second argument of the analysis engine command line.
Return Value
Click Select Scheduler to display the selection dialog. A drop down lists potential schedulers, (which
can include RSM, lsf, Windows HPC, or sge, depending on the environment).
If you select a scheduler that is not supported in your environment, you receive a warning message.
After selecting a scheduler, you can click Refresh to display information for that scheduler.
Once you have selected a scheduler supported in your environment, you can go through the
following steps to submit a batch job.
1. Setup and prepare the model on local workstation.
2. Copy the input project (or folder, if the project references external files) from a personal
workstation to a shared-drive on cluster (for example, project is copied to
/home/projects/spool/test.mxwl).
l In the RSM environment, you are required to specify a machine-list. (See the Remote
Analysis options panel.) For example, say the machine-list is: 3 cores from 'm1' and 3 cores
from 'm2', for a total of 6 engines. You select the list on the Compute Resources tab of the
Submit Job to RSM dialog, as described below.
3. Open a remote-desktop session (or equivalent such as vnc session) on the node
corresponding to the first machine of job's machine-list, 'm1' in this case. Launch Desktop
graphically on 'm1'.
4. Select Tools>Job Management>Submit Job... to open the Submit Job To dialog.
l The Analysis Specification tab has parameters to specify the input project model, the
analysis setup and analysis options (including batchoptions) that affect analysis algorithms.
l The Compute Resources tab specifies the amount of compute resources and how to select
specific resources from the available pool.
5. Use the ellipsis button [...] to open a browser to select the project. The Project can be an
archive.
6. In the Analysis setups field, you can select radio buttons for All setups in the project, All setups
in the design, or a Single setup. For instance, the Rotational_actuator.mxwl example includes
setups for Nominal, Parametric, and Optimization.
For Parametric setups, you have the option to select Use Large Scale DSO. For details on
how and when you use this feature, see Job Management Interface for Large Scale DSO.
7. The Analysis options includes checkboxes for Monitoring the job, whether to wait for a license,
and a field for adding Batchoptions. via a graphical interface, or as text.
l If you intend to Monitor the job through a user interface, you must check Monitor job. You
can then monitor this job through the Tools>Job Management>Monitor Jobs...
command or by checking the dialog that opens when you submit the job.
l The Batchoptions field allows you to add additional -batchoptions parameters, either as
text, or by using a dialog with selection menus. Click the Add button to view the Add
Batchoption dialog.
The Show registry key entries field lets you filter the entries displayed, by means of drop down
menu selection, and a checkbox to Display only frequently used entries.
l When you have selected a batchoption, you can type the value in the field, and click the
Add button to add the option to the batchcommand.
l In the Submit Job To: dialog, you can enable Show advanced options to display additional
fields for Environment variables, and whether to Use batch extract.
This field is for environment variables, for instance, for debugging features or other variable
controlled features. Click the ellipsis [...] button to open a dialog for Additional Job Options.
The Add... button opens a New Environment Variable dialog in which you can include a
variable name and value.
Clicking the Add Debug Environment Variables button automatically adds a set of debug
variables. This can be useful in working with ANSYS Application Engineering support.
Selecting a variable in the dialog enables the Remove and Edit buttons. The Edit button opens
a dialog where you can change the variable and value.
8. To see the command-line to be submitted to the scheduler, click Preview Submission. This
opens a dialogue showing the command to be sent to the scheduler.
See the discussion on Running Maxwell from a Command line for a discussion of the solve
information available through batch extract.
9. The Compute Resources tab of the Submit Job to: RSM dialog displays other
parameters. Depending on the resources available for a scheduler environment, some of the
fields may be disabled.
If you select Use automatic settings, the Job distribution field is removed.
Note If you select Use automatic settings, the solver does not support automatic distribution of
variations. The Use automatic settings option does not support Optimetrics variations. It
does distribute frequencies, domains, and use of multiple level domains.
Otherwise:
l Specify node list
Here you can specify a node list. In a computing environment where the available cores are
not uniform, you can use this to control which resources your job will use.
10. To submit the command with the specified parameters, click Submit Job.
Note The RSM environment does not support for queuing, so 'Submit Job' will
immediately start running the job.
A dialog displays in which you can check "Begin monitoring this job now."
11. You can monitor this job either automatically (by checking the option) or through the
Tools>Job Management>Monitor Jobs... command.
The dialog contains fields reporting the job status, job ID, messages issues, and progress. You
can filter the messages for Errors, Warnings, and Info. By option you refresh the job manually
or automatically at specified intervals.
12. To submit the command with the specified parameters, click Submit Job.
Note The RSM environment does not support for queuing, so 'Submit Job' will
immediately start running the job.
A dialog displays in which you can check "Begin monitoring this job now."
13. You can monitor this job either automatically (by checking the option) or through the
Tools>Job Management>Monitor Jobs... command.
The dialog contains fields reporting the job status, job ID, messages issues, and progress. You can
filter the messages for Errors, Warnings, and Info.
By option you refresh the job manually or automatically at specified intervals. You can choose to
Clear Progress Messages.
You also have command buttons to perform a Clean Stop of a simulation between time steps, or to
Abort a simulation.
the Submit Job dialog box to a .areg file. The path to this .areg file is thus the first argument to the
SubmitJob command. Additional arguments include the path to the project file, the design name (if
restricting the solve to a particular design), and the setup name (if further restricting the solve to a
single setup within a design).
For further automation, you can use the SelectScheduler scripting command to determine what
scheduler to use for submission, to include options for head node, username, and whether to require
password entry from the user. (If the username differs from the cached username, or the force
password flag is set, then the Select Scheduler dialog box appears.) If there are any issues with the
scheduler selection (for example, a password is required or the requested host wasn’t found), then
the Select Scheduler dialog box appears. This is the only part of job submission scripting that may
required user intervention. This same mechanism is used if, from within the SubmitJob command,
there is failure to connect to the scheduler. Even though there are allowances for graphical user
intervention if something goes wrong, if the password (if required) is cached and all settings are
correct, the entire submission process can run non-graphically and fully automated.
Limitations
All settings besides the arguments passed to the SubmitJob command must be stored in the .areg
file containing settings exported from the Submit Job dialog box. These include (but aren’t limited
to) batch options, environment variables, batch extract settings, and compute resource selections.
To run many job submission scripts with variation of these settings, there must be multiple .areg files
available.
Note that the same project can be submitted multiple times with a single script. Care must be taken in
this situation because each time a project is submitted, the state-keeping files used for monitoring
are removed so that the job can create them from scratch to ensure consistency. While this ensures
proper monitoring for a job that is just being submitted, it could interfere with monitoring (or even
correct solving if a lock file is deleted) of a job that is already in progress. Because of this, if the same
project is to be re-submitted from within a single script, the job should be monitored (waiting for
completion) before trying to submit it again. This monitoring/waiting can be done with a combination
of a single LaunchJobMonitor command followed by a loop that checks the result of a
RefreshJobMonitor command.
successful, there should be a message in the message windows stating that the job was
submitted, including the job ID(s). There could be multiple job IDs if multi-step submission is
used.
See the Scripting help (click Help>Maxwell Scripting Help) for details on the SelectScheduler,
SubmitJob, LaunchJobMonitor and RefreshJobMonitor commands.
Related Topics
For all jobs submitted to a Linux cluster, the project file is required to be in a directory that is
accessible from all execution hosts used by the job. For submission of jobs from a Windows host to a
Linux cluster, the project file must also be accessible from the Windows host where the GUI runs.
There must be a directory shared with both Windows and Linux hosts, and the project file may be in a
subdirectory (at any level) of the shared directory.
The job is submitted to the cluster from a Linux host configured for submission of jobs to the Linux
cluster. We call this Linux host the “Job Management” host. The information about the job to be
submitted is transmitted to the Job Management host over the network. As a result, the Windows
host where the GUI runs must have network access to the Job Management host. If this
communication is blocked, then job submission from a Windows host to the Linux cluster will not be
possible. Communication could be blocked if there is a firewall or if the Linux cluster is only on a
private network, for example.
The ansoftrsmservice must be running on the Linux Job Management host. Before the
ansoftrsmservice is started, it must be configured for submission of jobs to the cluster. The
SchedulerName and ConfigString fields in the Scheduler block of the ansoftrsmservice.cfg
configuration file must be specified. The contents of these fields are described in the table below:
Field Name Contents Examples
SchedulerName Identifier of Scheduler IBM Platform LSF: ’lsf’
PBSPro or Torque: ’pbs’
Supported Schedulers
This feature may be used with all Linux schedulers for which job submission from the GUI is
supported:
l IBM Platform LSF
l Univa Grid Engine (formerly Sun Grid Engine, Oracle Grid Engine)
l PBSPro
l Torque
The Options button activates a dialog that you can use to specify archive options for a job. The lower
portion of this dialog allows you to specify one or more directories shared between Windows and
Linux. The mapping of directories between Windows and Linux is shown in a grid which displays the
Windows path and the Linux path for each shared directory. There are also buttons to add a new
shared directory, to edit an existing shared directory, or to delete one or more shared directories.
The Windows path or the Linux path of any shared directory may be selected in the grid and directly
edited, as well.
If you specify a project in an archive, the dialog activated by the Options button may be used to
specify the Windows pathname of the project to be extracted from the archive. If this is done, the
Linux pathname of the target project is determined from the directories shared between Windows
and Linux and shown in the upper portion of this dialog.
If you specify a batchextract script, the Linux path of the batchextract script is determined from the
Windows path of the batchextract script and the directories shared between Windows and Linux.
Related Topics
You can select the job to monitor by using the pull-down menu of recently submitted jobs. The job
can be an archive.
The Monitor Job dialog contains fields reporting the job status, job ID, messages issues, and
progress. With the Show analysis checkbox enabled (the default), you will see the Profile and
Convergence tabs, similar to the Solution Data dialog.
You can filter the messages for Errors, Warnings, and Info.
You can choose either to refresh the job output manually, or automatically at specified intervals.
By clicking on the right arrow menu by the progress bars, you can perform a Clean Stop between
time steps. You can also perform Abort Job.
l Diagnostic report
l Environment variables
l ANSYSEM_DIAG_PROD_DIR contents
l ANSYSEM_DIAG_RESULTS_DIR contents
l How does the diagnostic tool work
Supported schedulers
The tool supports diagnosis of issues on Linux and windows clusters managed by the following
schedulers:
l LSF
l SGE
l PBS/Torque
l Windows HPC
For the above schedulers, the tool includes standard diagnostic scripts. Further, if password-ssh has
been enabled, it also supports generic Linux clusters using ssh. Please note that currently
diagnostics tool does not support PBSPro and LSF/Windows.
Standard job
Scheduler submission Comment
script
LSF test_lsf Supports both lsrun and blaunch
SGE test_sge Supports both qrsh and rsh
PBS/Torque test_torque Requires changing the PATH and PBS_BINARY_PATH
environment variable
Generic test_ssh Supports only ssh. Requires password-less ssh. Requires
Linux cluster creating a file with the names of hosts and saving it in
${HOME}/ansysem_hostfile
.../Win64/schedulers/diagnostics
To submit this diagnostic job, you must change the job description to suite your environment as
following:
1. Select a directory for saving the diagnostic results. This directory must be accessible at the
same path from all the hosts of the cluster.
2. Locate the directory for ANSYS EM installation. This directory also must be accessible at the
same path from all the hosts of the cluster.
3. Locate the winhpctest.xml in the diagnostics subdirectory of schedulers directory in the
ANSYS EM installation.
4. Start Windows HPC job manager, and choose “New job from XML File…” action.
5. Select the winhpctest.xml job file.
6. Change the value of both the following environment variables with the directories located in
the first two steps:
ANSYSEM_DIAG_PROD_DIR
ANSYSEM_DIAG_RESULTS_DIR
7. Now submit the job.
Note After making the above changes, you can also save the resulting XML file using "Submit
Job XML File…". Then you can submit the job using the job command as following:
job submit /jobfile: XMLfileName
Diagnostic report
The diagnostic report is an HTML file which (along with other related diagnostics results) is placed in
the following directory
Linux:
${HOME}/Ansoft/HPCDiag/Results/JOBID
Windows:
%ANSYSEM_DIAG_DIR%\Results\JOBID
Report file:
.../HTML/report.html
where JOBID is the job ID assigned by the scheduler. On Windows, the user must specify
ANSSEM_DIAG_DIR directory.
2. Make a copy of the diagnostics script into a directory that is accessible from a submit host for
the cluster.
3. Edit the script file to change the value of ANSYSEM_DIAG_PROD_DIR environment
variable to point it to the installation directory (See below).
4. Modify the job submission parameters as needed.
5. Optionally, copy any site-specific diagnostic tests provided by ANSYS support staff in the
../Custom directory of ANSYSEM_DIAG_RESULTS_DIR directory.
6. Run the diagnostics script from a submit host for the cluster
Environment variables
The following environment variables are applicable for both Linux and Windows environment.
ANSYSEM_DIAG_PROD_DIR
Environment
ANSYSEM_DIAG_PROD_DIR
variable
Description Location of the ANSYS EM installation. This must be available at the same path
from all the hosts of the cluster.
Windows \\filer\AnsysEM\AnsysEM18.0\Win64
example
Linux example /shared/ansysem/AnsysEM18.0/Linux64
Comments Windows: Required.
Linux: Optional. Export this environment variable if you make a copy of the
diagnostic script.
ANSYSEM_DIAG_RESULTS_DIR
Environment
ANSYSEM_DIAG_RESULTS_DIR
variable
Description Location of the diagnostic report and other results on a shared drive. This must be
available at the same path from all the hosts of the cluster
Example \\filer\Home\User\Ansoft\HPCDiag
Linux /shared/home/user/Ansoft/HPCDiag
example
Comments Windows: Required.
Linux: Optional. Export this environment variable if the home directory for the user
is not accessible from the cluster.
ANSYSEM_DIAG_CUSTOM_DIR
Environment
ANSYSEM_DIAG_RESULTS_DIR
variable
Description Location of the configuration of product tests and other custom site-specific tests.
This location must be on a shared drive that is available at the same path from all the
hosts of the cluster
Example \\filer\Home\User\Ansoft\HPCDiag\Custom
Linux /shared/home/user/Ansoft/HPCDiag/Custom
example
Comments Windows: Optional. You may want to specify it if the path
%ANSYSEM_DIAG_RESULTS_DIR%\..\Custom is not suitable
Linux: Optional. Export this environment variable if the home directory for the user is
not accessible from the cluster.
Related Topics
2. From the Change Priority menu (or the Default Process Priority pull-down menu), select
one of the following priorities:
Critical
Above Normal
Normal The
default.
Below Normal
Idle
3. Click OK.
Related Topics
Aborting Analyses
To end the solution process before it is complete:
l Right-click In the Progress window and click Abort.
Maxwell ends the analysis after the next solved pass or frequency point.
If you request a clean stop between the third and fourth adaptive pass, the solutions for the third and
fourth pass will be available once the fourth pass has finished solving.
ANSYS Electromagnetics Application as an LSF Job
If you have an ANSYS Electromagnetics application running as an LSF job, you can use the
command “bkill –s SIGTERM jobid” to terminate an ANSYS Electromagnetics application. Here
jobid is the LSF job id. The response will be “Job <jobid> is being signaled”. The response is the
same whether the job is actually being signaled or not.
This works correctly on a 32 bit version of Windows XP, using a 32 bit version of LSF.
In cases where the SIGTERM parameter is ignored, the command kills the LSF job, but does not
clean the lock files, and other files may not be in a consistent state. See http://www.vital-
it.ch/support/LSF/programmer/advanced.html for a detailed description under Signal Handling in
Windows.
Unix/Linux
For UNIX/Linux, you can use TERM commands. Sigterm handling for Unix is done in Desktop
library. You can abort a running batchsolve on Unix by sending a TERM signal to maxwell.exe
Related Topics
Re-solving a Problem
In some cases, if you modify a design after generating a solution, the solution in memory will no
longer match the design. In such cases you receive a warning message that "Solutions have been
invalidated. Undo to recover."
To generate a new solution after modifying a design, follow the procedure for running a simulation:
Also see Re-Solving with ANSYS Workbench Thermal Feedback.
In the Solution data Profile tab you will see a new entry for Maximum Delta T, for the change in
temperature from the previous simulation. The solver calculates delta in the first iteration by
comparing the temperature distribution output from thermal with the initial temperature setting in
Maxwell. Subsequent simulation iterations provide a number for the temperature delta.
This simulation feedback loop from ANSYS Electromagnetics to ANSYS Workbench and back can
continue until you decide that Temperature delta reported in the Solution Report low and stable for
the designs.
Related Topics
Selecting Network Data Explorer from the Setup shortcut menu automatically loads the data into
ndExplorer.
ndExplorer Overview
To open the ndExplorer, click Tools > Network Data Explorer. The ndExplorer window is divided
into the following panes:
l Control Pane across the top
l Data Selection Panes to the left — divided into Frequencies or Matrix Entries selection
Control Pane
The control pane is used to select the network data to be viewed as well as the manner in which it is
to be displayed.
l The File menu provides commands for Open, Close and Exit, as well as equivalents for
l Browse: Clear the current data sets and browse for a new file to load. Equivalent to
File>Open.
l Export: Quick buttons for export; same options as those accessed via the File menu.
l Check Causality: button to check causality for the active data set. Equivalent to
File>Check Causality. After a check, you can look in the Message pane in the lower-left to
see the result.
l The Plot>Log Frequency menu toggles the log representation of matrix data.
l Compare matrix data: Lets you choose a comparison data set (or none at all). Equivalent
to File>Compare. See Comparing Network Data for an example.)
l Quantity: The quantity to display (parameter or statistical).
l Parameter type: S, Y, or Z parameters, Port Impedance, or Gamma.
l Format: The display function to apply to the data: magnitude/phase, real/imaginary,
dB/phase, magnitude, phase, dB, real, or imaginary.
For Maxwell 2D solutions when the geometry is in XY mode, an additional Model Depth selection is
available.
The default Matrix selection is the alphabetically first defined matrix parameter. The Model Scale
setting default is 1. Model Depth setting default is 1 meter. Changing the settings updates the plots
and quantities in ndExplorer.
Different context menus appear in the data view pane, depending on your view selections.
affects all displays (table, plot, and statistics). When displayed by frequency, the entire
matrix is presented in the data view pane for each selected frequency; when by matrix cell,
the data for the individually chosen cells is shown across all frequencies.
l Frequencies unavailable for a variation are dimmed and are not highlighted when
selected.
l Checking Select all causes all items within the list box to be selected; the corresponding
l The file browser may be accessed via the File > Open command or by clicking the Browse
button.
The file browser allows you to open multiple files at a time. However, the displayed data always
corresponds to the data set indicated in the Network data file field on the control pane. You can use
its drop-down list to switch between primary datasets.
l Use the Files of type pulldown menu to select from the following file formats:
Touchstone Format, Touchstone 2 Format, Citifile, Neutral Format, or State Space File.
l All data sets are available for data comparison, and all data sets which are open for
comparison are also available as primary data sets.
l Opening one or more new files clears the current data sets. Additional data sets may be
opened through the Compare matrix data control field, but this option does not clear the
current data sets. For more information see Comparing Network Data.
Scripting is available.
l Solution Context – In the context of a solution (from the simulation setup in a design), you
For more information, see ndExplorer Script Commands in the Maxwell Scripting Guide
l Type of data
l Renormalize data
Touchstone Export
After clicking File > Export SYZ Data and specifying a file name and Touchstone format (*.sNp) in
the Save File As dialog, the Specify Export Options dialog opens:
NMF Export
After clicking File > Export SYZ Data and specifying a file name and the NMF format (*.nmf) in the
Save File As dialog, the Specify Export Options dialog opens:
l Compare Fit. The Edit description button opens a box for adding descriptive text.
This is an issue if the actual impedance value is much greater than (>>) or
much less than (<<) the reference impedance of the S-parameters.
l Since the resistances of power cables is typically in the milliohms range at
Touchstone Options
When Touchstone 1.0 or Touchstone 2.0 is selected as the format, the following
TouchstoneOptions are displayed:
Advanced Options
Click the Advanced button to display the advanced options.
l Maximum order
l Passivity Options
l Enable relative error tolerance (works best with TWA State-Space Fitting algorithm, not
This shows the current status of the data sources, and lets you specify whether to Display plot traces
for all data sources.
l Field width: The minimum number of characters used to display a number; values are
padded with blanks as necessary; use to increase the blank space displayed in the data
tables to force an increase in column width.
Thresholding is a way of reducing matrix entries to zero based on a threshold value. Thresholding
applies to the displayed data, e.g. Magnitude(S), but it is the original matrix value that is reset to zero.
Hence, thresholding is affected by the Parametertype and Format settings.
Set the threshold value by sliding the control or by explicitly entering a value. The data range for the
slider is determined by the following dialog options:
l Value range based on selected frequencies only: When selected, the slider value
range is determined from the selected frequencies only, otherwise, the entire data set is
used to determine the range.
l Min to average: When selected, the slider data ranges extends from the data minimum to
the mean.
l Min to max: When selected, the slider data range extends over the entire data range, i.e.
from the minimum to the maximum data values.
l Apply to selected frequencies only: When selected, the Saveedits button only modifies
the currently selected network data matrices, otherwise, the matrix data for all frequencies
and variations are adjusted.
Smoothing
The data smoothing dialog is accessed via the Smooth All Frequencies option on the Edit menu.
A least-squares polynomial fit of the specified order is used to interpolate new data points for the
magnitude and phase components of the S-parameters. You can also choose to enforce causality
and to create a new data set that contains the smoothed data.
Cell Filtering
The cells available in the data selection pane may be restricted using the Cell Filtering dialog by
selecting Edit > Cell Filter.
The Cell filtering dialog filters are applied immediately to the cell list. Filtering remains in effect even
after the dialog has been closed.
For an n-port model with a total of 2n pins in the standard arrangement, the choices are:
l Show all the available cells. There are n-squared choices.
l Lower triangle, show S(i, j) for all j < i. There are n(n-1)/2 choices.
l Impedance values are specified in ohms and may be complex, the accepted syntaxes are:
— real, e.g. 50
— real + imag i, e.g. 50+5i
— mag i, e.g. 5i
l Explicit units may be used with the impedance value (e.g. 0.5kOhm) but will always be
data sets with mismatching port numbers will no longer be available for data comparisons.
l Port properties may be restored to their load time values using the Reset All Port
always displayed in the units indicated in the column header, however, values may be
entered with specific units, e.g. “1.5in”. The default units may be changed via the Set
Display Format dialog (available on the Edit menu or the right-click context menu).
Once the changes have been committed by selecting OK, the modified matrix values may be saved
to a file using the File > Save As option.
You can also edit the names and reference impedances of the differential pair.
l Highlight Min/Max
l Select Transpose
The Plot>Log Frequency menu command also affects the display pane, and lets you toggle to log
frequency scale display of traces and values.
The Data Sources, Display Format, and Full Fort Names commands are the same as in the Edit
menu. The other commands accessed through this context menu are:
l Multiple Frequency Statistics
l Highlight Min/Max
l Select Transpose
l The Marker submenu options includes the commands for adding markers to plots:
l The Add Note command opens a dialog for adding a text note:
l The View submenu options include Zoom, Pan, Fit All, Visibility, etc.
The Visibility command lets you select traces, notes, or legends for visibility. You can also
search traces by name and use the Show and Hide buttons.
l A right click CopyImage is also available. The copied image may be pasted into external
documents.
l Holding the cursor over a trace will provide an identifying tool-tip. For multiple variations this
is the only way to distinguish between the curves for a particular cell.
l Selecting Edit>Properties opens a Properties dialog for the selected trace or plot object.
Selecting Table in the data view pane, switches the view to a tabular view of the trace object.
The Data Sources command and Magnitude Thresholding are the same as on the Edit menu.
The other commands are:
l Multiple Frequency Statistics
l Highlight Min/Max
l Select Transpose
The Multiple Frequency Statistics option determines the statistical composite to display when
multiple frequencies have been selected for the matrix display. The statistical data is always the first
matrix displayed, followed by matrices for each individual frequency. The Multiple Frequency
Statistics also indicates the data to be used in the colored matrix plot when multiple frequencies
have been selected.
l Average: Display the average of the matrix values across the selected frequencies.
l Minimum: Display the minimum matrix values across the selected frequencies.
l Maximum: Display the maximum matrix values across the selected frequencies.
Highlight Min/Max
This ndExplorer context menu option determines whether the minimum and maximum matrix entries
should be highlighted in the matrix table and color plot view.
Select Transpose
When selecting a cell in the table view of the Frequencies, this ndExplorer Edit menu option
determines if the transpose cell is to be highlighted as well.
This feature also works for the plot view of the frequencies
l Number of colors: number of color entries in the legend, i.e. the number of divisions
between the start/end of the data range.
l Use the data minimum and maximum: automatically select the data range using the
minimum and maximum values from either just the selectedfrequencies or
allfrequencies in the data set.
l Minimum & Maximum: when the range is not automatically determined, these fields
permit the user to manually enter hard values, e.g. for S parameter data magnitude data, a
minimum of 0 and a maximum or 1 could be used.
l Comparing Variations
Related Topics
Magnitude Thresholding
Smooth All Frequencies
Cell Filtering
Edit Port Properties
Display Differential Pairs as Post Process Selection
l The maximum value (and its transpose) is highlighted in red and the minimum value in blue.
Complex values (regardless of the data format) are compared using their modulus. When
multiple frequencies or variations are selected, the first in the data display is either the
average, minimum, or maximum of all the frequencies selected — the selection type is set
via the right-click menu option, Multiple Frequency Statistics.
l Use Parametertype in the control panel to choose the data type (S, Y, or Z) and Format to
specify how the data values are to be displayed (real, imaginary, dB, etc.).
l When the cursor is placed over a cell, tool-tip text reveals detail as to the content of the cell.
When multiple variations are selected, use the tooltips to identify the variation being
displayed. Clicking in a cell will select it and its transpose. Double clicking a cell takes the
user to a matrix cell view in which values for all frequencies for that particular cell are
displayed; the double-clicked frequency is highlighted with solid red shading.
l Selecting Plot in the data view pane switches the view to a colored graphical
representation of the tabular data.
value, only the real component is used to determine the display color. Use the
Parametertype selection in the control panel to choose the data type: S, Y, or Z parameter.
When multiple frequencies or variations are selected, either the minimum, maximum, or
average value is displayed (as chosen with the right-click menu option, Multiple
Frequency Statistics).
l The maximum value (and its transpose) is highlighted in red and the minimum value in
blue; the real value alone is used to determine these extremes.
l When the cursor is placed over a cell, tool-tip text reveals detail as to the content of the cell.
Clicking in a cell will select it and its transpose. Double clicking a cell takes the user to the
matrix cell plot in which all frequency values for that matrix cell are displayed as a graph.
l Double clicking the legend or choosing the right-click menu option Color Legend
Attributes allows you to select the data range and number of colors for each data type and
format. See Changing the Color Scheme for a Matrix Color Plot.
l Selecting Table in the data view pane, switches the view to a matrix representation of the
graphical data.
l Values for all frequencies are displayed for each matrix cell selected. The data type and
format are determined by the Parametertype and the Format settings in the control pane.
l When the cursor is placed over a table cell, tool-tip text reveals more detail as to the content
of the cell. Clicking in a cell will select it. Double clicking a cell takes the user to the matrix
table view in which all cell values for the corresponding frequency are displayed; the
double-clicked cell is highlighted with solid red shading.
l Clicking on a column header in the data table highlights the column. The corresponding
trace in the plot view is also highlighted.
l Selecting Plot in the data view pane, switches the view to a graph of the cell data. The
graph shares the same color coding as the columns; highlighted columns are highlighted in
the plot.
for each frequency selected. Only real (not complex) data formats are offered for statistical
analysis. Passivity is only available for S-parameter data (comparisons inactive). NTI
refers to the number of trivial items; for S-parameters, this includes all zeros and ones; for
all other data (and data comparisons), only zeros are counted as trivial. The minimum value
for each column is highlighted in blue; the maximum is highlighted with red.
l When the cursor is placed over a cell, tool-tip text indicates the frequency and statistics
displayed. Clicking a cell selects the cell. Multiple variations are displayed as separate
entries in the table; use the tool-tip to identify the variation for a particular frequency.
l Clicking a column header sorts the data using that column for comparison; clicking again
reverses the order of the sort.
l The various statistical measures (for the current Parametertype and Format) are
displayed for all frequencies. Passivity is only available for S-parameters (comparisons
inactive). NTI refers to the number of trivial items; for S-parameters, this includes all zeros
and ones; for all other data (and data comparisons), only zeros are counted as trivial.
l When the cursor is placed over a cell, tool-tip text indicates the frequency and statistics
displayed. Clicking a cell selects the cell. Multiple variations are displayed as separate
entries in the table; use the tool-tip to identify the variation for a particular frequency.
l Selecting Plot in the data view pane, switches the view to a graph of the statistical data.
The graph shares the same color coding as the columns; highlighted columns are
highlighted in the plot.
l A graph of each of the statistical measures selected (for the current Parametertype and
Format) is displayed across all frequencies.
l When the cursor is placed over a curve, tool-tip text indicates the statistical function, the
data format, the data type, and the variation of the graph being displayed.
l Selecting Table in the data view pane, switches the view to a tabular presentation of the
statistical data. The table columns share the same color coding as the plot traces.
2. Load a network data file to be compared with the currently active data. Multiple files may be
opened from the file browser dialog, however, only one file is compared against the primary
data set at any given time.
l The data displayed in all views is now of the primary Network data less the values for the
compare data set. The data format (magnitude, dB, etc.) is applied either before (pre) or
after (post) the subtraction depending on the corresponding setting in the
Displayformatsettings dialog (available on the Edit menu or the right-click context
menu).
l Multiple data-sets can be loaded for comparison though only one is active at any one time.
The compare data set may be changed by using the Compare matrix data control field;
comparisons may also be turned off by selecting Nocompare.
l The primary data source may be changed using the Network data file drop-down list
within the control pane. By so doing, a comparison data set may be made the primary data
set, either for viewing as is, or for comparing with other network data.
l The Compare matrix data dialog, accessed through the Select Compare Variations
menu option, may also be used to switch comparison data sets. When a comparison is
active, the data sets are restricted to one variation. The variation selected in the variation
list box applies to the primary data source alone, i.e. the one displayed in the
Networkdatafile field of the control pane.
Comparing Variations
1. Select Browse in the Compare matrix data control field or the Compare menu option on
the File menu.
2. Load the data for the same (or different) network data file. Please note, that currently only
".nmf" files support multiple variations.
3. Use Edit>Data Sources (Edit menu or the right-click menu, table view) to choose the
variations to compare.
l The Data Sources dialog displays a table of all the loaded data. Selecting a row changes
the comparison data set; the data view is updated when the dialog is dismissed with the OK
button. Note: it is not possible to compare a data set against itself, unless the data set has
been loaded twice. Selecting the active data set row clears the comparison.
l The variations being used may be changed through the drop-down lists in the Compare
Variation column. Please note that when comparisons are inactive, all the variations for the
active data source may be displayed (where relevant) in the data view; when comparisons
are active, only the one selected variation is displayed.
l Traces for a given cell or statistical measure are displayed for all data sets; you can use tool
tips to distinguish between them.
l If a single cell or statistical measure is displayed, different colors are used for each data
trace.
l If multiple cells or statistical measures are selected, a single color is used for all data traces
for each cell or statistical measure.
l If a data comparison is active, traces will be shown for all data sets compared against it
(with the exception of the comparison data set). This is true for both cell and statistical
traces.
l Data sets with no variation information are always displayed. With multiple variation data
sets, only those with values for the currently selected variations are displayed. (Note that
the variation for the comparison data set is fixed by the selection that is made in the Select
Compare Variations dialog.)
Click on the button to start the causality check. Depending on the size of the S-parameter data, the
causality check may take several minutes or longer to complete.
When the causality check is complete, a summary of the results appears in the Message window.
causality tolerance. In the message shown above, the Touchstone file tline_noncausal.s2p has a
maximum reconstruction error of 0.0191544 in the response involving ports 1 and 2.
When all results are conclusive but no matrix reconstruction error exceeds the tolerance, the
maximum causality error is reported as zero, and no matrix entry is listed.
If the data does not contain enough frequency points to determine whether the data is or is not
causal, the message will indicate the inconclusive result.
ndExplorer will report the data set as inconclusive if any cells are inconclusive, even if other entries
exhibit causality violations.
To see the results of the causality check, click in the Quantity field and select Causality plots.
To view a summary diagram of the causality results, set the Plot Type to Causality violation.
The default mode is a rectangular Plot of dimension N x N, with color-coding to indicate the
causality status of each port pairing:
In this plot, the cells go from (Port 1, Port 1) at the upper left to (Port N, Port N) at the lower right. The
result shows the causality over all frequencies in the data. In this example, the matrix is symmetric,
so that both S12 and S21 are noncausal, while S11 and S22 are causal.
To see the details for each frequency, click Table for the View instead of Plot.
To plot the reconstructed frequency response generated by the causality checker, leave the
Quantity at Causality plots and set the Plot type to Reconstructed data. The Format field
appears:
The default Format is dB. This plots the reconstruction error at each frequency divided by the
tolerance, 0.01 in this example. Here is the plot for the noncausal S12 data identified in the Causality
plot shown earlier.
The reconstruction error ratio for parameter S12 is positive for frequencies less than about 680MHz,
indicating a broad range of noncausal behavior.
To compare the real part of the reconstructed data to the real part of the actual data, set the Format
to Real.
For a causal frequency response, the actual data (solid line) will be within the upper and lower
bounds of the reconstruction (dotted lines) at all frequencies.
To compare the imaginary part of the reconstructed data to the imaginary part of the actual data, set
the Format to Imaginary.
For a causal frequency response, the actual data (solid line) will be within the upper and lower
bounds of the reconstruction (dotted lines) at all frequencies.
To view the frequency-dependent discretization error, set the Format to Discretization.
The discretization error is the error that is due to the fact that the data are available only at discrete
frequencies rather than for a continuous spectrum. A discretization error near or greater than the
causality tolerance renders the causality check inconclusive. Data at more frequencies could reduce
the discretization error and render the analysis conclusive. This set of data exhibits low discretization
errors (<<0.01) at all frequencies, and the causality check is conclusive (conclusively noncausal in
this example).
were used during the solution process, mesh statistics, and matrices computed during each
adaptive, non-adaptive, or sweep solution.
l View analysis results for Optimetrics solutions.
l Plot field overlays - representations of basic or derived field quantities on surfaces or objects.
l Create 2D or 3D reports of RLC matrices and basic and derived field quantities.
l Create animations of field quantities, the finite element mesh, and defined project variables.
l Use the Fields Calculator to perform computations using basic field quantities.
Note Except in the case of non-model boxes drawn in the global coordinate system (CS),
non-model objects cannot be used for any fields post processing operation You can
use non-model boxes drawn in the global CS for post processing operations,
including integration and solution domaining.
Related Topics
l Computing resources, or profile information, that were used during the solution process.
l Output Parameters and Matrix Data computed during each adaptive, non-adaptive, or sweep
solution.
l Mesh data.
Note Since adaptive mesh refinement is not performed for transient solutions,
convergence data is not available for Transient analysis.
l The state of solved solutions.
l Winding results for Eddy current solutions.
l End Connection results for Eddy current solutions.
l Loss results for Eddy current solutions.
To access the Solutions dialog box, in which the information above can be accessed, do one of the
following:
Related Topics
l Solution type dependent parameters such as Loss, Total Loss, Loss Error.
4. Select Table to display the convergence data in table format or Plot to plot the convergence
data on a rectangular (XY) plot.
5. Optionally you can Export the convergence data to a text file.
6. If you select Save Defaults, the current selection of either Table or Plot, and for Plot the
current X and Y axis selections, will be applied based on the design-type, each time you open
the desktop. You can also select Clear Defaults to reset to the original settings.
Related Topics
At any time during the solution process, you can view the number of adaptive passes (solve — error
analysis — refine cycles) that have been completed as well as the maximum and minimum number
of passes. When the solution is complete, you can view the number of adaptive passes that were
performed. If the solution converged within the specified stopping criteria, fewer passes than
requested may have been performed.
To view the number of passes:
l In the project tree, right-click the solution setup of interest, and then click Convergence on the
shortcut menu.
The Solutions dialog box appears with the Convergence tab selected.
The number of completed passes is listed in the Number of Passes area.
At any time during or after the solution process, you can view the values of the output variable.
To view the output variable convergence, use the Reporter to create a plot that displays the output
variable values.
Related Topics
tasks performed by Maxwell during the solution. The log indicates the length of time each task took
and how much physical memory/disk memory was required.
l In the project tree, right-click the solution setup of interest, and then click Profile on the
shortcut menu.
The Solutions dialog box appears with the Profile tab is selected. The displayed data depends on
the type of problem and solution setup. In general, it includes the following information:
Task Lists the type of task that was performed. The Tasks lists included Start, various
Mesh tasks, Simulation Setup, Port Adaptation, Adaptive Pass tasks, including
simulation setup, Matrix Assembly, Solver tasks, and Field Recovery, Sweep tasks,
and Solution Process summary and Totals for time.
Real Time The difference in time between the start of the task and the end of the task (elapsed
time).
CPU Time The amount of CPU time required to perform the task.
Memory The peak amount of physical memory (RAM) used by the individual executable
running the task. The memory is freed for other uses after each task is complete.
Information General information about the solution, for example, the number of tetrahedra used
in the mesh, disk use, solver information, sweep information, the elapsed time, and
the memory used by the MaxwellComEngine, and totals.
The elapsed time is the difference between the time in the Start line and the time in
the Total line — how long the task actually took between when Analyze was clicked
and when the simulation finished. The elapsed time is a little greater than the Real
Time given in the Total line. This is because the Total line contains the sum of all of
the real times reported by the individual processes and does not include the typically
small amount of time the Maxwell ComEngine uses before, after, and in between
calling the other executables.
The matrix solver writes specific information in some of these fields as outlined below:
Task The matrix solver task reports the type of solution performed by the solver, based
on the physics of the problem. It has the form "Solver pdsn" (e.g. Solver MRS2 or
Solver DCS4-L2), where
l p , the precision type is: M (mixed for direct solver) or D (double for iterative
solver).
processors on the local machine in the Maxwell options. If a solve does not
use all available processors (local or distributed), the number reported may
be less than the number available.
If a simulation uses the iterative solver, the Solver designation can include a level
indicator appended. to an Iterative solver designation (L2 in the example above).
The higher the Level number the lower the memory, you will never see L1 (this
would be equivalent to direct solver. And a first order solve will only display L2 since
it only has one level of order to go down for preconditioning. A second or mixed
order solve may display L3 depending on the mesh quality.
If the solver switches from the Iterative Solver to the Matrix solver, you see a Matrix
solver warning: Switch from Iterative Solver to Direct Solver.
Information: The matrix solver information line includes, for example, Disk = 0 KBytes, matrix
size 11137 , matrix bandwidth 20.3 )
l Disk: The amount of hard disk space used during the calculation of the matrix
solution. If the disk usage for matrix solver is non-zero in profile, it usually
indicates off-core matrix solver. If the matrix solver must solve off-core,
smaller blocks of the data to be solved are created on disk, each block is then
solved in physical memory, and then the matrix solution is reassembled. As a
result of this additional processing, the time required to calculate a solution is
higher.
l matrix size: The size of the matrix that was solved (the number of unknowns)
l matrix bandwidth: An FEM matrix is a sparse matrix. The solver only stores
the non-zero entries. The matrix bandwidth is the average number of non-
zeros per row. It gives an idea of the sparsity of a FEM matrix.Storage for the
sparse matrix is proportional to the total number of nonzeros = #rows x
bandwidth. The higher the bases order, the larger the bandwidth.
l In the case of the Iterative Solver, # Iterations
Related Topics
1. In the project tree, right-click the solution setup of interest, and then click Solutions on the
shortcut menu.
The Solutions dialog box appears. Select the Matrix tab. A typical example is shown below.
l Select the solved pass data you wish to view from the right pull-down list, either the
7. (Optional) To export the matrix data (as specified by the Type list):
a. Click Export Solution.
The Export Solution dialog box appears.
2. In the Equivalent Circuit Settings section, select the matrix you want to export from the
Matrix pull-down list.
3. (Optional) Type a scaling factor in the Scaling Factor text box. You may want to provide a
scaling factor if you are using symmetry to analyze a portion of the model.
4. For an induction matrix, type a Resistance for each source listed in the table.
5. (Optional) If desired, drag table rows to re-order the circuit pins.
6. (Optional) The results of the post processing calculation (defined on the Matrix dialog Post
Processing tab) on the matrix can be included by selecting PostProcessed.
7. In the Circuit Export section, select a setup from the Solution Setup pull-down list.
8. (Optional) Click the ... button to open the Set Design Variation dialog box to choose a
Variation.
9. Type the path and file name in the File name text box, or click the ... button to select the
desired location for the exported circuit.
10. (Optional) To view the netlist:
a. Click Preview.
The Circuit Model Preview dialog box appears. You can also click Export Circuit from
within this dialog box.
b. Click Close to close the netlist.
11. To export the circuit to the specified file, click Export Circuit.
12. Click OK to close the Export Circuit dialog box.
13. Click Close to close the Solutions dialog box.
For a matrix with entries Mij, i, j = 1,..., N, the coupling coefficient for row i and column j is given by the
following equation:
This coefficient indicates how much flux in one coil is linked with the other coil.
If all the flux in one coil reaches the other coil, k = 1 (and coupling is 100%).
Inductors with k > 0.5 are tightly coupled. Inductors with k < 0.5 are loosely coupled.
The mutual inductance (M) falls between 0 and (the geometric mean of the
inductances).
Related Topics
Assigning a Matrix
l Select the solved pass data you wish to view from the second pull-down list, either the last
Related Topics
Click on the blank cell above the object list to invert the order of objects, though in this case, the
cell does not display a directional triangle.
Related Topics
l Select the solved pass data you wish to view from the right drop-down list – either the
results are shown. The other quantities are shown as N/A (not applicable).
l For External type windings: Flux Linkage, Induced Voltage, and Current results are shown.
Optionally, click the [...] button, and choose a design variation solved during an optimization or
parametric analysis from the Set Design Variation dialog box.
3. In the Simulation pull-down lists:
l Select the solution setup from the left pull-down list.
l Select the solved pass data you wish to view from the right drop-down list – either the
l Select the solved pass data you wish to view from the right drop-down list – either the
Cleaning Up Solutions
You can use Clean Up Solutions to selectively make deletions, or remove all solutions from the
results.
To use Clean Up Solutions:
1. Depending upon the project type, click Maxwell3D, Maxwell2D, or RMxprt and then select
Results>Clean Up Solutions.
The Clean Up Solutions dialog box appears.
2. Under Solutions, select whether you want to delete only fields data, only fields and mesh
data, only linked data, or all solution data. Deleting all solution data erases all mesh, matrix,
and fields data for all adaptive passes and frequency sweeps for the selected Variations.
Optionally, you can Include Linked Data in the deletions.
Linked data can be mesh, field or some other post-processing data that the source design
generated. The target design for the link caches these data internally to minimize the need to
activate the source design.
3. Under Variations, select which solution data you want to delete:
l Select All Except Current Variation to delete all solution data that do not correspond to
the current project and design variable values for the current design.
l Select All Variations to delete all solution data for the current design.
l Select Select to specify the variations you wish to delete. Click Variations to select the
Related Topics
Creating Animations
An animated plot is a series of frames that displays a field, mesh, or geometry at varying variable
values. To create an animated plot, specify the variable values of the plot that you want to include.
Each plot associated with a variable value is a frame in the animation. You specify how many frames
to include in the animation.
Note Each animation frame requires memory for storage which depends upon the mesh size
and type of plot. Memory usage may become very large during plot animations. To reduce
memory usage, specify the minimum number of frames possible. See General Options for
more information.
You can export the animation to animated Graphics Interchange Format (GIF) or to Audio Video
Interleave (AVI) format.
Related Topics
6. In the table, select the row corresponding to the variable setting of interest.
7. Click OK.
The animation begins in the view window, displaying one frame for each variable value.
The play panel appears in the upper-left corner of the desktop, enabling you to stop, restart,
and control the speed and sequence of the frames.
Related Topics
The play panel appears in the upper-left corner of the desktop, enabling you to stop, restart,
and control the speed and sequence of the frames.
Related Topics
Animation Each dot on the slider represents a frame in the animation. Drag the slider to the right
slider to display the next frame in the animated plot. Drag the slider to the left to display the
previous frame in the animation.
Plays the plot's animation sequence backwards.
Drag the Speed slider to the top to increase the speed of the animation. Drag the
Speed slider to the bottom to decrease its speed.
Frame The current frame and phase at which the plot is being displayed is listed below the
information control buttons.
Enables you to export the animation to an animated Graphics Interchange Format
(GIF) or to Audio Video Interleave (AVI) format.
Show label If you select the Show checkbox, a label showing the swept variable value appears in
checkbox the animation. You can select the label with the mouse and drag it to another
location.
Background Click the background button to open a color palette dialog that lets you set the
button. background for the swept variable label.
The font button opens a font selection dialog that you can use to set the Font, Font
Style, and Size for the label. The Default is Arial Narrow 14pt.
Related Topics
Creating Animations
Exporting Animations
1. Create the animation you want to export.
2. In the Animation play panel, click Export.
The Export File dialog box appears.
3. Follow the procedure for saving a new file. Select Animated GIF File (.gif) or AVI File (.avi)
as the file type.
The Animation Options dialog box appears.
4. To replace colors in the file with 256 shades of gray, select Grayscale.
Grayscale animations use less memory than full color animations.
5. For AVI format export, specify the Compression factor (the default is 85) and one of the
following Compression types:
INTEL Indeo
Cinepak
Microsoft Video 1
None
Creating Reports
After Maxwell has generated a solution, all of the results for that solution are available for analysis.
One of the ways you can analyze your solution data is to create a 2D or 3D report, or graphical
representation, that displays the relationship between a design’s values and the corresponding
analysis results. You create reports using either the Create Quick Report command, or the
Create<type> Report commands. The Quick Report feature lets you select from a list of
predefined categories (such as S-parameters) from which to create a rectangular plot.
For each solution type (Electrostatic, Magnetostatic, AC Conduction(2D only), DC Conduction,
Eddy Current, Transient, or Electric Transient(3D only), the Results menus present a list of Create
<type> Report commands based on the solution data of direct interest for the design. For example,
for the Magnetostatic solution type, the Results menu contains templates for Magnetostatic
parameters and for Fields.These appear on the menus as Create Magnetostatic Report and
Create Fields Report. Each of these Create <type> Report menu items includes a further
cascading menu that lists the Display Types available for that report. For some reports you can
modify the Display Type from the Properties for that Report.
If you have created custom report templates (for example, including your company name or other
format changes), you can also create a report based on that template by selecting Maxwell 2D,
Maxwell 3D, or RMxprt>Results>Report Templates><templateName>. You can also access
previously defined templates using Report2D>Report Templates>Apply Settings. You can save
the properties for a modified report to provide the custom default settings for all new reports.
You can also use the Report2D>Export feature and select ReportData File (.rdat) format file which
you can then select for Create Report from File.
Related Topics
3. Select the one or more categories for the report from the list and click OK. The list of
categories varies with the solution type.
A rectangular plot for each selected category displays. The new plot or plots appear in the
Project tree under the Results icon. The default Report Name that appears is derived from the
report category specified in the Quick Report dialog. You can edit the plot names in the
project tree and the plot header text in the report synchronizes.
Related Topics
Creating Reports
Modifying Reports
Quick Report Categories
Creating Quick Reports in RMxprt
Category Description
Coupling Reports values of the coupling coefficient.
Coeff
Design Reports values of design variables.
Force Reports values of Force parameters such as Force Magnitude and Components,
Load Force.
Torque Reports values of Torque parameters such as Torque Magnitude and Components
L, Lnom Reports values of Inductance Matrix calculations.
MagFlux, Reports values of magnetic flux calculations.
MagFluxNom
C Reports values of Capacitance Matrix calculations.
R Reports values of Resistance Matrix calculations.
Z Reports values of Impedance Matrix calculations.
Loss Reports values of Loss parameters such as CoreLoss, EddyCurrentLoss,
ExcessLoss, HysteresisLoss, SolidLoss, StrandedLoss, and StrandedLossR..
Misc Reports values for the solution process such as DeltaT, Energy Error, and
Solution Temporal Error
Position Reports Position of moving objects.
Speed Reports Speed of moving objects.
Winding Reports Flux Linkages, currents and voltages in coils.
When you have selected the <type> and display type from the Results menu, the Report
dialog appears, with the Trace tab selected by default.
2. In the Context section make selections from the following field or fields, depending on the
design and solution type.
a. Solution field with a drop down selection list. This lists the available setups and sweeps. As
a minimum, the LastAdaptive solution and AdaptivePass solution is available to choose.
The AdaptivePass solution context can be selected to allow any value or parameter to be
plotted versus the adaptive pass. This function is usually used to evaluate the convergence of
the solution.
b. For Transient projects only. Domain field with a pull down selection list containing options
for plotting vs time (Sweep Domain) or plotting vs frequency (Spectral Domain).
c. For Eddy projects only. Domain field with a pull down selection list containing options for
plotting vs frequency (Sweep Domain) or plotting vs time (Time Domain).
d. Parameter field with a drop down selection list. Whether this field appears, and the
Parameters listed depend on the Solution type and the <type> selected.
e. Geometry field with a drop down selection list. For field reports, this applies the quantity to
a specific geometry.
3. In the Y Component section of the dialog make selections for the following:
a. Categories - depend on the Solution type and the design. For example, Magnetostatic
categories include: Torque, Output Variables, Inductance, and other user-selectable
solution parameters. Transient categories include: Loss, Output Variables, Variables, and
others. Eddy current categories include: Loss, Winding, End Connection, and others.
b. Quantities for Y are relative to the selected category. For example, Loss quantities include:
CoreLoss, EddyCurrentLoss, HysteresisLoss, and others. Winding quantities include:
Flux Linkage, Induced Voltage, and others - depending on the winding type.
Note The Quantity text field can be used to filter the Quantity list by typing in text, or by
using the four predefined selections. This is useful if the Category selected
produces a lengthy Quantities list. See Filtering Quantity Selections for the
Reporter.
When the matrix is very large, the number of quantities can be correspondingly
huge. Therefore, the Quantities field can optionally use a tree structure to divide
matrix quantities into groups by their first element name. The initial display
shows groups, without initially listing group members.
c. Function list to apply to the Y quantities.
d. The Y value field displays the currently specified Quantity and Function. You can edit this
field directly.
Note Color shows valid expression.
e. Range Function button -- opens the Set Range Function dialog. This applies currently
specified Quantity and Function.
4. In the X (Primary Sweep) section, make selections for the following:
a. Select the Primary sweep from the drop down menu. By default All of the chosen sweep’s
values are used. You can also select the browse [...] button to display a dialog box that lets
you select particular sweep values, specify a range of sweep values (for Time sweeps), or
Use all values (the default setting).
To select an X component that is different than the Primary Sweep, uncheck the Default
field to enable the X field and browse [...] button. Click the browse [...] button to display the
Select X Component dialog. This lets you specify the X component as you do the Y; that
is, in terms of Categories which define the selectable Quantities, and Functions to apply.
After making selections, OK the dialog to assign the X component.
b. The Families tab provides a way to select from valid solutions for sweeps where a
simulation has multiple variables defined (for example, for a parametric sweep). If so, the
variables other than the one chosen as the X (Primary sweep), are listed under the
Families tab with columns for the variable, the value, and an Edit column with an ellipsis
[...] button. See Using Families tab for Reports.
5. Update Report setting
l Real Time checked -- enable real time updates for all reports while the reports are being
edited.
l Real Time unchecked -- enables drop down menu to Update All Reports or Update
Report. Reports will only be updated with one of these user selectable update options or
upon exiting the report dialog. This can be useful if you expect a trace to take time to display.
You can then add additional traces without having to wait.
6. The Report dialog command buttons permit you create a new report with the settings you
provide, or to modify an existing report.
l Output Variables - opens the Output Variables dialog.
l Add Trace - this is enabled when you have created or selected a report. Add one or more
changes.
l New Report. Adds a report to the Project tree under the Results icon. The new Report is
the advanced mode for editing and viewing trace components. This mode is automatic if the
trace requires it. It also contains a field for setting the maximum number of significant digits
to display for numerical quantities.
l Close - closes the Report dialog.
Related Topics
Creating Reports
Modifying Reports
Creating a Quick Report
Using Families tab for Reports
Plotting a Quantity versus Adaptive Pass
The Families tab of the Report dialog provides a way to select from valid solutions for sweeps where
a simulation has multiple variables defined and solutions exist for multiple variable values (for
example, for a parametric sweep). If no variables are defined, or none have solutions for different
values, 0 families will be available. If so, the variables other than the one chosen as the X (Primary
sweep), are listed under the Families tab with columns for the variable, the solution value (which
may be All, Nominal, or a Specific value), and an Edit column with an ellipsis [...] button. Families
gives the number available. If an existing variable is specified as Nominal, only that value is currently
available. You can set any solved variables as Nominal, All, or select from values provided for
Available solutions.
When you select a variable with multiple solved values, a trace for each solved value appears in the
Report, with the variable value appended to the trace name in the Report legend.
for that variable. You can also select individual values by clicking on them.
l To select a range of values, hold down the shift key, and click again.
l To select intermittent additional values, hold the CTRL key and click additional. The values
you select are highlighted in the list, and are also listed in the Values column for that
variable.
l To select all, use the Select All button. This highlights the complete list, as well as listing all
3. To edit the available list, click the ellipsis [...] button to display the Edit Sweep dialog. For the
selected variable, this lets you specify:
l a single value as value and units
l a linear step with start value, stop value, and step value, and units for each.
l a linear count, with start value, stop value with units, and a count.
l a decade count
l an octave count
l an exponential count.
Once you have specified the changes you want, you can add you change to the list by clicking
Add>> or replace the current list by clicking Update>>.
4. Click OK to close the Edit Sweep dialog. You must still select the Edited radio button to be
able to select the from the edited list, rather than the Default selection. And you must make
selections here to move the new values to the variable value list in the Families tab.
.Select the Available variations radio button to list the choices that derive from variable
combination.
a. To select individual variations, check the select box.
b. Click the Select button at the top of the column to check or clear all variations at once.
c. To invert the list order, click the triangle beside the variable name.
The Families Display tab has three radio button selections.
a. All Families
b. Statistics which lists a table statistical functions that you can select to apply to the plot.
The functions include Min, Max, Avg, Mean, Variance, Std Dev, and Sum. You can use
the Select check boxes or the Select All and Clear All button.
c. Histogram which lets you select the number of bins to use for a histogram plot, and the
sampling frequency to use.
Related Topics
Creating Reports
Modifying Reports
Modifying the Background Properties of a Report
Modifying the Legend in a Report
Creating Custom Report Templates
Working with Traces
Editing the Display Properties of Traces
Discarding Report Values Below a Specified Threshold
Adding Trace Characteristics
Adding Data Markers to Traces
When a two port quantity Category is selected, four predefined filters are added to the combo box.
“Port1” is the first matrix element name found in the quantity list.
l Only Self Terms -- Only display quantities when the first and second port are same.
l Only Mutual Terms -- Only display quantities when the first and second port are different.
l (*,Port1) -- Only display quantities when the second element name is “Port1”. You can edit the
element name to display quantities for other elements.
l (Port1,*) – Only display quantities when the first element name is “Port1”. You can edit the
element name to display quantities for other element.
Modifying Reports
To modify the data that is plotted in a report:
l Add Trace - this is enabled when you have created or selected a report. Add one or more
changes.
l New Report. Adds a report to the Project tree under the Results icon. The new Report is
the advanced mode for editing and viewing trace components. This mode is automatic if the
trace requires it. It also contains a field for setting the maximum number of significant digits
to display for numerical quantities.
l Close - closes the Report dialog.
edited.
l Real Time unchecked -- enables drop down menu to Update All Reports or Update
Report. Reports will only be updated with one of these user selectable update options or
upon exiting the report dialog. This can be useful if you expect a trace to take time to display.
You can then add additional traces without having to wait.
5. In the Context section you make selections depending on the design and solution type.
a. Solution field with a drop down selection list. This lists the available setups and sweeps. As
a minimum, the LastAdaptive solution and AdaptivePass solution is available to choose.
The AdaptivePass solution context can be selected to allow any value or parameter to be
plotted versus the adaptive pass. This function is usually used to evaluate the convergence of
the solution.
b. For Transient projects only. Domain field with a pull down selection list containing options
for plotting vs time (Sweep Domain) or plotting vs frequency (Spectral Domain).
c. For Eddy projects only. Domain field with a pull down selection list containing options for
plotting vs frequency (Sweep Domain) or plotting vs time (Time Domain).
d. Parameter field with a drop down selection list. Whether this field appears, and the
Parameters listed depend on the Solution type and the <type> selected.
e. Geometry field with a drop down selection list. For field reports, this applies the quantity to
a specific geometry.
6. The Families tab provides a way to select from valid solutions for sweeps where a simulation
has multiple variables defined (for example, for a parametric sweep). If so, the variables other
than the one chosen as the X (Primary sweep), are listed under the Families tab with
columns for the variable, the value, and an Edit column with an ellipsis [...] button. See Using
Families tab for Reports.
7. In the Y Component section of the dialog make selections for the following:
a. Categories - those depend on the Solution type and the design. For example,
Magnetostatic categories include: Torque, Output Variables, Inductance, and other user-
selectable solution parameters. Transient categories include: Loss, Output Variables,
Variables, and others. The selected category provides the default name of the plot, for
instance Force Plot n. You can edit the plot names in the project tree and the plot header
text in the report synchronizes.
b. Quantities for Y are relative to the selected category. For example, Loss quantities include:
CoreLoss, EddyCurrentLoss, HysteresisLoss, and others.
Note The Quantity text field can be used to filter the Quantity list by typing in text, or by
using the four predefined selections. This is useful if the Category selected
produces a lengthy Quantities list. See Filtering Quantity Selections for the
Reporter.
When the matrix is very large, the number of quantities can be correspondingly
huge. Therefore, the Quantities field can optionally use a tree structure to divide
matrix quantities into groups by their first element name. The initial display
shows groups, without initially listing group members.
b. The Families tab provides a way to select from valid solutions for sweeps where a
simulation has multiple variables defined (for example, for a parametric sweep). If so, the
variables other than the one chosen as the X (Primary sweep), are listed under the
Families tab with columns for the variable, the value, and an Edit column with an ellipsis
[...] button. See Using Families tab for Reports.
You can also view and edit the properties of Reports and their traces via their Properties
windows. See Modifying the Background Properties of a Report.
You can also modify the display type of an existing plot from the Properties dialog for that plot. Select
the Report icon in the Project tree to display the Properties dialog. Selecting the Display Type field
displays a menu with selections available for that plot. Once you make a selection, the plot display
updates for the current selection.
Note Remember that for many excitations of interest for plotting, you can control the default
base names through the dialog described here: Setting Default Boundary/Excitation Base
Names.
This may save you the need to edit individual names in the plots.
Related Topics
Clicking the browse [...] button at the lower right corner of the Use all values pane opens the Edit
Sweep dialog for Modify Report. The lets you edit the current Primary sweep variable values,
including radio button selections for Single value, Linear step or count, and Decade, Octave, or
Exponential Counts.
You can specify start, stop and step values and units, and add specific values to the list of current
sweep values. The Add>> and Update>> buttons let you edit the value list.
You can use the mouse click, drag, and Alt-Click to select values. You can also edit individual values.
Related Topics
Creating Reports
Modifying Reports
Related Topics
l Header -- this lets you edit the Properties for the text displayed at the top of the report,
including the Title font, Company Name, Show Design Name, Subtitle Font. The plot title is
tied to the report's name and is not a Header property. If you change the report name in the
Project tree, plot title synchronizes. The Company Name and the Show Design Name
check box are grouped in the Properties dialog as Subtitle. Edits to the Subtitle Font
Property affects both of them.
l General -- this dialog (or General tab for other Report properties windows) lets you edit the
background color (the perimeter around the trace display) for the plot, the contrast color
(the trace display background), the Field width, the Precision, and whether to use scientific
notation for marker and delta marker displays. (X and Y notation display is set separately, in
the Axis property tabs.)
l Legend -- this lets you edit the Properties for whether to Show Trace Name, Solution
Name, and Variation Key. At least one of these three must be selected. You can also edit
the Font, the background color of the Legend box, the Border Color, the Border Width, Grid
Color (for the lines between Trace descriptions), and the Grid line width. Also see Modifying
the Legend in a Report
l Color Key -- for 3D plots, to control the appearance of the color key (colors, transparency,
ramp color, spectrum, IsoValType, levels, number of contours, and values shown.
l Stacked -- for stacked plots, properties for X scrollbar, thumb properties, and stack layout,
include: Color, Line Style, Line Width, Trace Type, whether to Show a symbol, Symbol
Frequency, Symbol style, whether to Fill symbol, symbol color, and whether to Show
arrows. See Editing the Display Properties of Traces.
l X, Y, or Z Axis-- the defaults for most of these values are set in the Report 2D Options
Axis tab.
l Display name -- check box for whether to display the axis name.
l Specify name -- check box for specifying the Axis name.
l Name -- this describes the axis to which the following properties/options refer. These are
selected in the Report dialog.
l Axis Color -- set the color by double clicking to display the Set color dialog. Select a
default or custom color and click OK.
l Axis Font -- click the cell to display the Edit Text Font dialog. The dialog lets you select
from a list of available fonts, styles, sizes, effects, colors, and script. The dialog also
contains a preview field. OK the selections to apply the font edits and to close the dialog.
l Show Units -- this specifies whether to display units.
l Window (section)
l Window Mode-- can be Axis range, Continuous moving window, or Step moving
window.
l Window Width (in) -- provide an integer value for the previous selection.
notation.
l Field Width -- enter a real value.
l Units -- click on the cell to select from a menu of available units if you have not checked
Auto Units.
l Infinity Visualization (section)
l Map Infinity Mode -- check box.
Each axis now can be set to treat infinity values in a user defined way. When you check the
Map Infinity Mode, any infinity values in the input data get the infinityMap value (negative
infinity get the value*-1 and positive infinity the positive value specified). This can be useful if
there are zeros, or very small values that can be treated as zero, in the data, for example, dB
Gain.
l Map Infinity To -- enter a real value for the Map Infinity Mode.
l Grid -- properties for grid labels and grid style, appearance, line styles, color, major and
minor lines, and scaling. For the 3D rectangular plots, there are separate tabs for the XY,
YZ and ZX axes.
3. Edit the properties, and click OK to apply the changes.
Related Topics
Modifying Reports
Working with Traces
Discarding Report Values Below a Specified Threshold
Modifying the Legend in a Report
Editing the Display Properties of Traces
Creating Custom Report Templates and Defaults
Setting Report2D options
The legend in a report is a list of the curves being plotted. For each curve, the legend gives the name,
shows the line color, and lists the setup and the adaptive pass used to generate the curve.
To show or hide a legend in a report:
1. Make the report the active view.
2. Use View>Active View Visibility or the Show/Hide icons on the toolbar to display or hide
the report.
Either command displays the Active View dialog.
3. Select the Legends tab.
This lists the legend (or legends) in the report.
4. Check the visibility check box, and OK the dialog to close it and apply the change.
To edit the display properties of a legend:
1. Select the legend in a report by clicking on the Curve Info panel to display a docked properties
window, or right-click on the legend and select Edit>Properties to display the floating
properties window.
This lets you edit the Properties for whether to Show Trace Name, Solution Name, and
Variation Key. At least one of these three must be selected.
You can also edit the Font by clicking the Font cell to display the Edit Text Font dialog. The
dialog lets you select from a list of available fonts, styles, sizes, effects, colors, and script. The
dialog also contains a preview field. OK the selections to apply the font edits and to close the
dialog
You can also edit the background color of the Legend box, the Border Color, the Border
Width, Grid Color (for the lines between Trace descriptions), and the Grid line width.
2. Click OK to close the Properties window and apply the selections.
To change the display name for traces, see Editing Trace Properties.
To move a legend in a report:
1. Click and hold on the legend.
The cursor changes to crossed lines with arrow tips.
Related Topics
Magnetostatic Project variables, user specified Output Variables and Design data are available
to plot. Depending upon the solution parameters requested, torque data may be
available to plot, as well as Inductance, and magnetic flux. Quantities such as
Lnom, and MagFluxNom may also be available for plotting. See Post processed
Quantities for more details.
Electrostatic Project variables, user specified Output Variables and Design data are available
to plot. Depending upon the solution parameters requested, torque data may be
available to plot, as well as Capacitance.
Eddy Current Project variables, user specified Output Variables and Design data are available
to plot. Depending upon the solution parameters requested, torque data may be
available to plot, as well as Inductance, Resistance, Impedance. Quantities such
as Lnom, MagFlux, and various Winding, Loss, and End Connection quantities
may also be available for plotting, depending on the design. See Post processed
Quantities for more details.
DC Project variables, Output Variables, and Design data are available for plotting, as
Conduction well as Resistance matrix data.
AC Project variables, Output Variables, and Design data are available for plotting, as
Conduction well as Torque, Winding, Loss, and solution process data.
(2D Only)
Transient Project variables, Output Variables, and Design data are available for plotting, as
well as Force, Torque, Loss, and solution process data.
Electric Project variables, Output Variables, and Design data are available for plotting, as
Transient well as Force, Torque, Loss, and solution process data.
(3D Only)
Fields Project variables, Output Variables, and Design data are available for plotting, as
well as calculator expressions.
You can also modify the display type of an existing plot from the Properties window for that plot.
Select the Report icon in the Project tree to display the Properties window. Selecting the Display
Type field displays a menu with selections available for that plot.
Once you make a selection, the plot display updates for the current selection.
4. On the Trace tab, X (Primary sweep) line, specify the quantity to plot along the x-axis in one of
the following ways:.
l Select the sweep variable to use from the drop down list.
l If sweeps are available, you can select the browse [...] button to display a dialog box that
lets you select particular sweep values, specify a range of sweep values (for Time sweeps),
or Use all values (the default setting). The quantity will be plotted against the primary
sweep variable listed.
5. On the Families tab, confirm or modify the sweep variables that will be plotted.
6. Click New Report.
This creates a new report in Project tree, displays the report with the defined trace, and
enables the Add Trace button on the Report dialog. The default name is based on the
Report Category you selected, (for example, Force Plot n or Output Variables Plot n). You can
edit the plot names in the project tree and the plot header text in the report synchronizes.
The function of the selected quantity will be plotted against the swept variable values or
quantities you specified on an x-y graph. The plot is listed under Results in the project tree
and the traces are listed under the plot. When you select the traces or plots, their properties
are displayed in the Properties window. These properties can be edited directly to modify the
plot.
7. Optionally, add another trace to the plot by following the procedure above, using Add Trace
rather than New Report.
You can also modify the display type of an existing plot from the Properties dialog for that plot. Select
the Report icon in the Project tree to display the Properties dialog. Selecting the Display Type field
displays a menu with selections available for that plot.
Once you make a selection, the plot display updates for the current selection.
Related Topics
Sweeping a Variable
Working with Traces
Adding Trace Characteristics
Delta Markers in 2DPlots
Modifying Background Properties of a Report
Discarding Report Values Below a Specified Threshold
Setting Report2D options
Plotting a Quantity versus Adaptive Pass
A rectangular stacked plot is a 2D, x-y graph of results, with each trace displayed on a separate plot.
1. On the Results menu (Maxwell menu or right-click on Results on the Project tree), click
Create <type> Report, and select Rectangular Stacked Plot.
The Report dialog appears.
2. In the Context section make selections from the following field or fields, depending on the
design and solution type.
a. Solution field with a drop down selection list. This lists the available solutions, whether
sweeps or adaptive passes.
b. For Transient projects only. Domain field with a pull down selection list containing options
for plotting vs time (Sweep Domain) or plotting vs frequency (Spectral Domain).
c. Parameter field with a drop down selection list. Whether this field appears, and the
Parameters listed depend on the Solution type and the <type> selected.
d. Geometry field with a drop down selection list. For field reports, this applies the quantity to
a geometry.
3. Under the Trace tab, Y component section, specify the information to plot along the y-axis:
a. In the Category list, click the type of information to plot.
b. In the Quantity list, click the value to plot.
c. In the Function list, click the mathematical function of the quantity to plot.
d. Value field displays the currently specified Quantity and Function. You can edit this field
directly.
Note Color shows valid
expression.
e. Range Function button -- opens the Set Range Function dialog. This applies currently
specified Quantity and Function.
4. On the Trace tab, X (Primary sweep) line, specify the quantity to plot along the x-axis in one of
the following ways:.
l Select the sweep variable to use from the drop down list.
l If sweeps are available, you can also select the browse [...] button to display a dialog box
that lets you select particular sweep values, specify a range of sweep values (for Time
sweeps), or Use all values (the default setting). The quantity will be plotted against the
primary sweep variable listed.
5. On the Families tab, confirm or modify the sweep variables that will be plotted.
6. Click New Report.
This creates a new report in Project tree, displays the report with the defined trace, and
enables the Add Trace button on the Report dialog. The default name is based on the
Report Category you selected, (for example, Force Plot n or Output Variables Plot n). You can
edit the plot names in the project tree and the plot header text in the report synchronizes.
The function of the selected quantity will be plotted against the swept variable values or
quantities you specified on an x-y graph. The plot is listed under Results in the project tree
and the traces are listed under the plot. When you select the traces or plots, their properties
are displayed in the Properties window. These properties can be edited directly to modify the
plot.
7. Optionally, add another trace to the plot by following the procedure above, using Add Trace
rather than New Report.
The new trace will appear as a separate plot “stacked” above the first plot. The stacked plots
share a common x-axis scale. However, each plot has its own independent y-axis scale.
You can also modify the display type of an existing plot from the Properties window for that plot.
Select the Report icon in the Project tree to display the Properties window. Selecting the Display
Type field displays a menu with selections available for that plot.
Once you make a selection, the plot display updates for the current selection.
Related Topics
Sweeping a Variable
Working with Traces
Delta Markers in 2DPlots
Modifying Background Properties of a Report
Plotting a Quantity versus Adaptive Pass
Adding Data Markers to Traces
You can Rotate, Zoom and Pan a plot. When you rotate, the Cartesian grid responds so that the
curve always remains in front and the grids behind.
Clicking on a plot entity selects it, highlighting the selected entity in bold.
Double-clicking anywhere in the plot brings up the Properties dialog. the properties are grouped
appropriately under various tabs, which correspond to plot entities:
l General: For general plot properties such as background color etc
l Header: Properties related to plot Header/Title
l Axis [X|Y|Z]: Properties related to the 3 axes
l Grid [XY|YZ|ZX]: Properties related to the 3 grids
l ColorKey: Properties related to ColorKey
l Contour: Properties related to contouring of all curves/surfaces
l Surface: Properties related to the curve
Selecting a property also displays it properties in the Property window. You can edit the properties to
customize the appearance of the plot.
1. On the Results menu (Maxwell menu or right-click on Results on the Project tree), click
Create <type> Report, and select 3D Rectangular plot from the report type menu.
The Report dialog appears.
2. In the Context section make selections from the following field or fields, depending on the
design and solution type.
a. Solution field with a drop down selection list. This lists the available solutions, whether
sweeps or adaptive passes.
b. Geometry field with a drop down selection list. For field and radiated field reports, this
applies the quantity to a geometry or radiated field setup.
3. Under the Trace tab, Z Component area, specify the information to plot along the z-axis:
a. In the Category list, click the type of information to plot.
b. In the Quantity list, click the value to plot.
c. In the Function list, click the mathematical function of the quantity to plot.
d. The Value field displays the currently specified Quantity and Function. You can edit this
field directly.
Note Color shows valid
expression.
e. Range Function button -- opens the Set Range Function dialog. This applies currently
specified Quantity and Function.
4. On the Trace tab, Y (Secondary Sweep) lines, specify the information to plot along the y-axis
in one of the following ways:
l Select the sweep variable to use from the Secondary Sweep drop down list.
l If sweeps are available, you can also select the browse [...] button to display a dialog box
that lets you select particular sweep values, specify a range of sweep values (for Time
sweeps), or Use all values (the default setting). The quantity will be plotted against the
primary sweep variable listed.
5. On the Trace tab, X (Primary Sweep) lines, specify the information to plot along the x-axis in
one of the following ways:
l Select the sweep variable to use from the Primary Sweep drop down list.
l If sweeps are available, you can also select the browse [...] button to display a dialog box
that lets you select particular sweep values, specify a range of sweep values (for Time
sweeps), or Use all values (the default setting). The quantity will be plotted against the
primary sweep variable listed.
6. On the Families tab, confirm or modify the sweep variables that will be plotted.
7. Click New Report.
This creates a new report in Project tree, displays the report with the defined trace, and
enables the Add Trace button on the Report dialog. The default name is based on the
Report Category you selected, (for example, Force Plot n or Output Variables Plot n). You can
edit the plot names in the project tree and the plot header text in the report synchronizes.
The function of the selected quantity or quantities will be plotted against the values you
specified on an x-y-z graph. The plot is listed under Results in the project tree.When you
select the traces or plots, axis or grid labels, plot header, color key, or variable labels, their
properties are displayed in the Properties window. The properties for each plot element can
be edited directly to modify the plot content and appearance. See Modifying the Background
Properties of a Report.
8. Optionally, add another trace to the plot by following the procedure above, using Add Trace
rather than New Report.
Related Topics
Sweeping a Variable
Working with Traces
Adding Trace Characteristics
Any quantity that can be plotted in the reporter may be plotted versus the adaptive solution pass,
primarily to evaluate the convergence of the quantity versus the mesh.
1. On the Results menu (Maxwell menu or right-click on Results on the Project tree), click
Create <type> Report, and select Rectangular plot from the report type menu.
The Report dialog appears.
2. In the Context section, select the AdaptivePass context for the Setup of interest. The Trace
tab X value drop down list will contain an option to plot against Pass.
3. Under the Trace tab, Y component section, specify the information to plot along the y-axis:
a. In the Category list, click the type of information (for example, Expression Cache or
Output Variable) to plot.
b. In the Quantity list, click the value to plot.
c. In the Function list, click the mathematical function of the quantity to plot.
d. Value field displays the currently specified Quantity and Function. You can edit this field
directly.
Note Color shows valid
expression.
e. Range Function button -- opens the Set Range Function dialog. This applies currently
specified Quantity and Function.
4. On the Families tab, confirm or modify the sweep variables that will be plotted.
5. Click New Report.
This creates a new report in Project tree, displays the report with the defined trace, and
enables the Add Trace button on the Report dialog.
The function of the selected quantity will be plotted against the swept variable values or
quantities you specified on an x-y graph. The plot is listed under Results in the project tree
and the traces are listed under the plot. When you select the traces or plots, their properties
are displayed in the Properties window. These properties can be edited directly to modify the
plot.
6. Optionally, add another trace to the plot by following the procedure above, using Add Trace
rather than New Report.
Related Topics
A data table is a grid with rows and columns that displays, in numeric form, selected quantities
against a swept variable or other quantities.
1. On the Maxwell3D or Maxwell2D menu, point to Results, and then click Create <type>
Report, or right click on the Results icon in the Project tree and click Create <type>
Report.
2. In the display type menu, click Data Table.
The Report dialog box appears.
3. In the Context section make selections from the following field or fields, depending on the
design and solution type.
a. Solution field with a drop down selection list. This lists the available solutions, whether
sweeps or adaptive passes.
b. Domain field with a drop down selection list. Whether this field appears, and the
domains listed depend on the Solution type and the <type> selected.
c. Geometry field with a drop down selection list. For field reports, this applies the quantity
to a geometry.
4. Under the Trace tab, Y component section, select the quantity you are interested in and its
associated function:
a. On the Category drop down list, click the type of information to plot.
b. On the Quantity list, click the values to plot. Use CTRL-click to make multiple selections.
c. In the Function list, click the mathematical function to apply to the quantity for the plot.
d. The Value field displays the currently specified Quantity and Function. You can edit this
field directly.
Note Color shows valid
expression.
e. Range Function button -- opens the Set Range Function dialog. This applies currently
specified Quantity and Function.
5. On the Trace tab, X (Primary Sweep) line, select the sweep variable from the drop down
list. By default All of the chosen sweep’s values are used. You can also select the browse [...]
button to display a dialog box that lets you select particular sweep values, specify a range of
sweep values (for Time sweeps), or Use all values (the default setting).
6. On the Families tab, confirm or modify the sweep variables that will be plotted.
7. Click New Report.
This creates a new report in Project tree, displays the report with the defined trace, and
enables the Add Trace button on the Report dialog. The default name is based on the
Report Category you selected, for example, Force Plot n or Output Variables Plot n. You can
edit the plot names in the project tree and the plot header text in the report synchronizes.
The Y quantity will be listed at each variable value or additional quantity value you specified.
The data table is listed under Results in the project tree. The plot is listed under Results in
the project tree and the traces are listed under the plot. When you select the traces or plots,
their properties are displayed in the Properties window. These properties can be edited
directly to modify the plot.
8. Optionally, add another trace to the plot by following the procedure above, using Add Trace
rather than New Report.
You can also modify the display type of an existing plot from the Properties dialog for that plot. Select
the Report icon in the Project tree to display the Properties dialog. Selecting the Display Type field
displays a menu with selections available for that plot.
Once you make a selection, the plot display updates for the current selection.
If you choose to print a data table:
l Selecting print "All" prints the whole table for current data page (if there is more than one data
page).
l Selecting print "Pages" prints user-specified pages.
l If the table is bigger than the screen view (that is, it has a scroll bar), printing first scrolls right,
l The table layout of each page follows the screen, but without the scroll bar being printed, and
Related Topics
Sweeping a Variable
Working with Traces
This is an x-y-z graph of results. Any data that you can current plot in 3D (as 3D cartesian or 3D
polar) is a candidate for a contour plot.
1. On the Results menu (HFSS menu or right-click on Results on the Project tree), click Create
<type> Report, and select Rectangular Contour plot from the report type menu.
The Report dialog appears.
2. In the Context section make selections from the following field or fields, depending on the
design and solution type.
a. Solution field with a drop down selection list. This lists the available solutions, whether
sweeps or adaptive passes.
b. Geometry field with a drop down selection list. For field and radiated field reports, this
applies the quantity to a geometry or radiated field setup.
3. Under the Trace tab Z Component area, specify the information to plot as contours:
a. In the Category list, click the type of information to plot.
b. In the Quantity list, click the value to plot.
c. In the Function list, click the mathematical function of the quantity to plot.
d. The Value field displays the currently specified Quantity and Function. You can edit this
field directly.
Note Color shows valid
expression.
e. Range Function button -- opens the Set Range Function dialog. This applies currently
specified Quantity and Function.
4. On the Trace tab Y (Secondary sweep) lines, specify the information to plot along the y-axis in
one of the following ways:
l Select the sweep variable to use from the Secondary Sweep drop down list.
l If sweeps are available, you can select the browse button to display a dialog that lets you
select particular values. The quantity will be plotted against the primary sweep variable
listed.
5. On the Trace tab X (Primary sweep) lines, specify the information to plot along the x-axis in
one of the following ways:
l Select the sweep variable to use from the Primary Sweep drop down list.
l If sweeps are available, you can also select the browse [...] button to display a dialog box
that lets you select particular sweep values, specify a range of sweep values (for Time
sweeps), or Use all values (the default setting). The quantity will be plotted against the
primary sweep variable listed.
6. On the Families tab, confirm or modify the sweep variables that will be plotted.
7. Click New Report.
This creates a new report in Project tree, displays the report with the defined trace, and
enables the Add Trace button on the Report dialog. The default name is based on the
Report Category you selected, for example, Force Plot n or Output Variables Plot n). You can
edit the plot names in the project tree and the plot header text in the report synchronizes.
The function of the selected quantity or quantities will be plotted against the values you
specified on an x-y-z graph. The plot is listed under Results in the project tree.When you
select the traces or plots, their properties are displayed in the Properties window. These
properties can be edited directly to modify the plot.
8. Optionally, add another trace to the plot by following the procedure above, using Add Trace
rather than New Report.
Related Topics
Sweeping a Variable
Working with Traces
Adding Trace Characteristics
Related Topics
When you move a cursor over a trace in a report, the cursor changes to show that you can make a
selection:
l For PC systems, the cursor changes to the color of the selectable trace.
l For Unix systems, the cursor changes to a solid black arrow, rather than the default black
outline.
In general, to add a trace to a report:
1. Select a report in the Project window and right-click and select Modify Report.
2. In the Report dialog specify the Y component information.
a. Specify the Category of information you want to plot from the drop down menu.
The Category drop down menu lists the available categories for the Solution type and the
current design. Selecting a category changes the Quantity and Function lists to represent
what is available for that category.
b. Specify the Quantity you want to plot by selecting from the Quantity list.
The selected quantity appears in the Value field, operated on any selected function.
c. Select the Function to apply to the specified quantity.
d. The Value field shows the trace being readied for plotting on the Y-axis. This field is
editable when the text cursor is present. You can modify the information to be plotted by
typing the name of the quantity or sweep variable to plot along an axis directly in the text
boxes.
Note Color shows valid
expression.
e. Range Function button -- opens the Set Range Function dialog. This applies currently
specified Quantity and Function.
3. In the Report dialog specify the X axis information (for example Primary Sweep).
4. Click Add Trace.
A trace is added to the traces list under its report icon in the Project tree. The trace represents
the function of the quantity you selected and will be plotted against other quantities or swept
variable values. Selecting a Trace in the Project tree displays the Properties window for that
Trace.
Trace icons can be selected, copied, and pasted for their definitions or their data. They can be
selected and deleted from the Project tree.
By default, the Trace name is the definition (the category, quantity and function). The trace will
be visible in the report when you click Add Trace.
Trace properties can be edited directly in the Properties window or edited in the Report
dialog. To change the name of definition of a trace, see Editing Trace Properties. To edit other
display properties of a trace, see Editing the Display Properties of Traces.
Related Topics
Removing Traces
Editing Trace Properties
Editing the Display Properties of Traces
You can edit trace properties such as the name, the Y Axis association, the component definition, the
context, or the variables select the trace in the Project tree.
To edit the Y Axis associated with the trace (2D Rectangular and Rectangular Contour
plots):
1. Select the trace in the Project tree.
2. In the docked Properties window for the trace, select the Y Axis to be associated with the trace
from the drop down menu. Up to 20 independent Y axes can be added to a plot.
Related Topics
Removing Traces
Editing the Display Properties of Traces
Discarding Report Values Below a Specified Threshold
Adding Trace Characteristics
Adding Data Markers to Traces
Setting Report2D options
Copy and Paste of Report and Trace Definitions
Copy and Paste of Report and Trace Data
Delta Markers in 2D Reports
l Line style -- a drop down menu lets you select Solid, Dot, Dash, or Dot-dash.
l Line width -- a text field lets you edit the numeric value.
l Trace type -- he drop down menu contains entries for Continuous, Discrete, Bar-Zero, Bar
Infinity, Stick Zero, Stick Infinity, Histogram, Step, Stair, and Digital.
Notice the difference between Stair and Digital is that each Stair centers on a data point with
transitions halfway between points, and Digital transitions from each data point to the next
value.
The next four properties work together to define whether to show a symbol on data points, the
symbol frequency, the symbol style, and whether to display the symbol as solid or hollow.
l Show Symbol -- whether to show a symbol at the data points on the line.
l Symbol Frequency -- how often to show symbols on the trace, based on the number of
data points per symbol used. For example, specify 1 for one symbol per data point. Specify
10 for one symbol for every 10 data points.
l Symbol Style -- use a drop down menu to select from box, circle, vertical ellipse, horizontal
ellipse, vertical up triangle, vertical down triangle, horizontal left triangle, horizontal right
triangle
l Fill Symbol -- use the check box to set the symbol display as a solid or as hollow.
l Symbol Arrows -- use the check box to use arrows on the curve ends.
Note So that curves with single points always appear, Box is the default symbol. For
Maxwell 12, None cannot be selected.
3. Edit the properties of interest and click OK to apply the changes and close the window.
Related Topics
The Reporter includes Report 2D>Marker> menu commands and toolbar icons
that let you add markers to traces. A marker appears as “mN” at the marked point, where N
increments from 1 as you place additional markers. Each marker can be selected and has editable
properties including name, font, background and color. As you place markers, one or more marker
legends may be displayed, depending on the View>Active View Visibility settings for the legends.
The main marker legend appears in the upper left of the plot, and lists the marker names and their X
and Y values in a table. You can control the number format for the table values via the Properties
window, General tab. Under Marker/Other Number format, you can specify field width, precision,
and whether to use scientific notation. This value is independent of the Axis tab number properties. A
separate marker legend appears for Delta Markers, as described for the Delta Marker command.
When you enter Marker mode, the cursor arrow is accompanied by an “m” while a circle on the
selected trace shows the current position for a potential marker.
To end Marker mode, right-click to display the shortcut menu, and select End Marker Mode.
The available Marker mode commands and associated icons are the following:
l Add Marker – this command lets you place a marker at an arbitrary point on a selected
trace.
l Add Delta Marker – enters delta marker mode, placing a circle on the selected trace.
Clicking on the trace sets an initial point and subsequent clicks on arbitrary points on the trace
place additional markers until you leave marker mode. These markers have their own legend,
which includes the following information for each pair of markers specified.:
l Export Marker Table – allows you to export the marker table data as a .csv or .tab file.
l Export Delta Marker Table – allows you to export the delta marker table data as a .csv or
.tab file.
l Add Maximum – places a marker at the Maximum value on the selected trace.
l Add Minimum – places a marker at the Minimum value on the selected trace.
l X Marker – this command adds up to 10 movable markers at the origin of the plot with a
vertical line rising from the X axis. Each added marker has its own color and editable
properties. You can change the X marker value either by dragging the marker, or by editing
the X marker property X value. To move an X marker, click on the X label and drag it to the
desired location. The label at the bottom of the line gives the X coordinate, and a flag on the
vertical line identifies the Y coordinate on the trace. A Lock Drag trace property lets you lock
the drag feature to leave the marker in place. If more than one X marker is present, marker
properties include a connecting line between adjacent markers and the delta X value between
the markers. The X markers are cleared by the Clear All command.
l Bring X Marker into view – this command is enabled if an X Marker is not visible in the plot.
It allows you to select from a list of existing X Markers to bring into view.
l Y Marker – this commands adds up to 10 movable markers at the origin of the plot with a
horizontal line extending from the Y axis. Each added marker has its own color and editable
properties. You can change the Y marker value either by dragging the marker, or by editing
the Y marker property Y value. To move a Y marker, click on the Y label and drag it to the
desired location. The label at the left of the line gives the Y coordinate, and a flag on the
horizontal line identifies the Y coordinate on the trace. A Lock Drag property lets you lock the
drag feature to leave the marker in place. If more than one Y marker is present, marker
properties include a connecting line between adjacent markers and the delta Y value between
the markers. The Y markers are cleared by the Clear All command. For more detail on Y
Markers and their use, see Y Markers in stacked XY plots.
l Bring Y Marker into view – this command is enabled if a Y Marker is not visible in the plot. It
allows you to select from a list of existing Y Markers to bring into view.
l Next Peak – moves a selected marker on the next peak on a trace. You must exit marker
mode and select a marker to enable this command.
l Next Minimum – moves a selected marker to the next minimum on a selected trace. You
must exit marker mode and select a marker to enable this command.
l Previous Peak – moves a selected marker on the previous peak on a selected trace. You
must exit marker mode and select a marker to enable this command.
Related Topics
Y Markers allow for easy analysis and comparison of curves at a particular y-coordinate. Y Markers
can be used to compare stacked curves.
Add Y Marker > Current Stack creates a Y marker for the stack on which the user performed right
mouse button click. The following figure shows that a Y Marker was added to the second stack only:
Add Y Marker >All Stacks creates one Y marker in each stack with the same value. Initially this
value is the minimum Y value of the Y ranges in all the stacks. This is shown is the figure below:
Notice that the Y Marker for All Stacks has a different appearance than the Y Marker for a particular
stack: that is, it has double parallel lines above and below the Y Marker textbox.
Synchronized Y Markers
All the "same" Y markers for all stacks are synchronized, that is to say that if one Y marker is dragged
or its value is changed, all the "same" Y markers in all the stacks will change their position too. The
figure below shows that when a Y marker in the bottom stack was dragged, the Y marker in top
stacks moved as well:
Also if a property of any one Y Marker is changed, all the "same" Y Markers show the change in
property as well. For example, the figure below shows that when the line color of a Y Marker in the
top stack was changed to a red color, a Y Marker in the bottom stack shows the same line color as
well:
Deleting a Y Marker
To delete a Y Marker, select a Y Marker in any stack and press the Delete key. This action will also
delete all the corresponding Y Markers in all the stacks. For example, when the Y Marker with value -
3.13 (red Y Marker) was deleted from the bottom-most stack, all of the corresponding Y Markers
were also deleted:
Note that on deleting a stack, Y Markers in other stacks are not affected.
If you change the Display Type property of this plot to Rectangular Stacked Plot, then a Rectangular
Stacked XY Plot is created with each curve in its own stack and a Y Marker is shown in each stack
with value -3.15 (blue Y Marker):
Similarly when you change a Rectangular Stacked XY Plot to a Rectangular XY Plot, then all the
"same" Y Markers in all the stacks are shown as a single Y Marker in the Rectangular XY Plot as
shown in following figures:
The Rectangular Stacked XY Plot in the previous figure, when converted to Rectangular XY Plot,
looks like the figure below:
Related Topics
To prevent real small numbers from skewing a plot, you can discard small values (below a
specifiable threshold).
1. Double-click on the X or Y axis of interest on an open plot display.
This opens the Properties window for the Axis
2. Under the Axis tab, use the scroll bar to find the Specify Discard Values property.
3. Click the check box to enable the property.
4. Enter a value in the Discard Below field. Units specified elsewhere in the Axis property are
applied to this value. The Discard Below text box is inactive if the Specify Discard Values
check box is not enabled.
5. Click OK to apply the Discard Values to the report.
Related Topics
There are several options for adding characteristics to a trace. When you click Report 2D>Trace
Characteristics, or right-click a selected trace, the short cut menu is displayed. The following
example shows the menu with expanded Recent selections.
If you recently used a characteristic, you can add it to a selected trace by selecting from a list of
recently used characteristics. A maximum of 10 is displayed in the menu, and they are sorted
alphabetically.
To add a recently used characteristic to a selected trace:
1. Select a trace in a report plot or legend.
2. Click Report 2D>Trace Characteristics, or right-click on the selected trace to display the
short cut menu.
3. Select Recent, and then select the function you want. The specified characteristic is added to
the trace.
Related Topics
You can add a trace characteristic to a selected trace by selecting from a list of favorites. A maximum
of 10 is displayed in the menu, and they are sorted alphabetically.
To add a favorite characteristic to a selected trace:
1. Select a trace in a report plot or legend.
2. Click Report 2D>Trace Characteristics, or right-click on the selected trace to display the
short cut menu.
3. Select Favorites, and then select the function you want. The specified characteristic is added
to the trace.
Related Topics
4. Click the Favorite check box in front of any function you want to add to Favorites. You can
define as many favorites as you need, but no more than 10 are displayed in the menu, and
they are displayed in alphabetical order.
5. Click Close. You can view the current favorites by selecting Favorites in the Category drop-
down list
Note You can remove favorites by clearing the Favorite check box for one or more
functions, and clicking Close.
Related Topics
You can add characteristics to a selected trace by selecting from the Add Trace Characteristics
dialog box.
To add additional characteristics to a selected trace:
1. Select a trace in a report plot or legend.
2. Click Report 2D>Trace Characteristics, or right-click on the selected trace to display the
short cut menu.
3. Select All. This displays the Add Trace Characteristics dialog box.
4. Select the Category. The available categories depend on the plot, and the selecting of a
category displays its associated functions.
Category Functions
Recent Displays the most recent functions used, sorted by the time they were
added.
Favorites Displays all favorites. The defaults are avg, max, min, and pk2pk.
All Displays all available functions.
Math avg, avgabs, integ, integabs, max, mean, min, pk2pk, pkavg, ripple, rms,
rmsAC, stddev, sum, variance, XatYMax, XatYMin, XatYVal,
XWidthAtYVal, YatXMax, YatXMin, YatXVal
PulseWidth pulsefall9010, pulsefront1090, pulsefront3090, pulsemax, pulsemaxtime,
pulsemin, pulsemintime, pulsetail50, pulsewidth5050, pw_minus, pw_
minus_avg, pw_minus_max, pw_minus_min, pw_minus_rms, pw_plus,
pw_plus_avg, pw_plus_max, pw_plus_min, pw_plus_rms
Overshoot/ overshoot, overshootAbs, undershoot, undershootAbs
Undershoot
TR & DC crestfactor, deadtime, delaytime, distortion, formfactor, fundamentalmag,
risetime, settlingtime
Error iae, ise, itae, itse
Period per, pmax, pmin, prms
AC gainmargin, phasemargin, gaincrossover, phasecrossover, lowercutoff,
uppercutoff, bandwidth, peakgain, peakgainfreq
Radiation lSidelobeY, rSidelobeY, lSidelobeX, rSidelobeX, xdb10Beamwidth,
xdb20Beamwidth
Eye EyeLevelZero, EyeLevelOne, EyeAmplitude, EyeHeight,
Measurements EyeSignalToNoise, EyeOpeningFactor, EyeWidth, EyeJitterP2P,
EyeJitterRMS, EyeRiseTime, EyeFallTime, MinEyeWidth,
MinEyeHeight
TDR Shunt_C_in_pF, Series_L_in_nH
For a selected function, the Add Trace Characteristics dialog displays the function’s
purpose in a text field.
5. Some categories and functions call for you to specify one or two additional values in a table.
You can save these values using the Save as Default button. The Default column shows a Y
if there is a saved default value for the function.
6. Select the Current sticky range overrides saved default check box if you do not want the
range value in the table to be changed when the function selection is changed: the current
range value becomes the “sticky range.” If the check box is not checked, the range value is
updated from the saved default values and becomes a new sticky range.
7. Click the AddTrace Characteristic button to add the specified characteristics to the trace.
8. Click Close.
Related Topics
Related Topics
Removing Traces
You can remove traces from the traces list in the following ways:
To remove one trace from the report:
l Select the trace you want to remove from the Project tree, and then click Delete.
Related Topics
You can copy and paste report and individual trace definitions within a single design or across
designs. The report or trace definition will be evaluated within the context of the target design or
report.
Note If the report or trace definition contains properties that do not exist in the target design (for
example, a port name) an error will be posted that indicates a solution does not exist for
this trace
Note You must copy and paste trace definitions between the same report
types.
To copy a Report Definition:
Right click on the report name in the project tree and select Copy Definition from the shortcut
menu.
To paste the Report Definition:
Right click on Results in the project tree of the target design and select Paste.
A new report is created and it contains the copied definitions.
To copy an individual Trace Definition(s):
Right click on the trace or traces under a report name in the project tree and select Copy Definition.
To paste the Trace Definition(s):
Right click on the report in the target design to which you would like to copy the trace or traces and
select Paste.
A new trace(s) is added to the report and it contains the copied trace definition(s).
Note If you copy and paste a report or trace definition to a design which contains a definition with
the same name, then an incremented number is appended to the pasted report or trace
name.
Related Topics
You can copy and paste report and individual trace data within a single design or across designs.
The report and trace definitions and all underlying data within the report or trace are copied and
pasted to the target design or report.
To copy all data from a report:
Right click on the report name in the project tree and select Copy Data, or use the menu bar
Edit>Copy Data, or right click within a plot to display a shortcut menu with Copy Data.
To paste copied report data:
Right click on Results in the project tree of the target design and select Paste.
To copy data from an individual trace(s) in a report:
Right click on the trace or traces under a report name in the project tree and select Copy Data.
To paste copied trace data:
Right click on the report in the target design to which you would like to copy the trace data and select
Paste.
Note If you copy and paste report or trace data which contains the same name definition as a
report or trace in the target design then an incremented number will be appended to the
pasted name
Related Topics
Note Limit lines are available only on Rectangular (XY) plots - not on XY-like plots such as Bode,
Rectangular Stacked, etc.)
You can create limit lines in the following ways:
l by specifying points to define the line(s)
Related Topics
If you require additional data points, you can use the buttons to Append Rows to the
Coordinates table. If you select a row in the Coordinates table, you can then use the buttons
to add a row above or a row below the selected rows, or to delete rows.
You can use Shift+click to select multiple adjacent rows, or Ctrl+click to select any
combination of rows for deletion.
Note Each limit line is associated with a particular Y axis (since it has to be scaled the same way
as all the curves associated with the axis, follow its log/linear scale, etc.). This Y axis
association defaults to the first available Y axis when the limit line is created. However, if
the plot contains multiple Y axes, it can be associated with a different Y axis later via its
properties tab.
2. When you click OK, the limit line you defined is added to the plot. The line divides the plot into
regions within the context of its length. By default, the region above the limit line is hatched.
Related Topics
1. To create limit lines from a selected curve you must first click on the desired plot curve and
then select From Selected Curve to open the Limit Line From Curve dialog.
2. The Limit Line From Curve dialog allows you to create limit lines over the Range of the
Entire Curve, or between specified X-axis Start and Stop points. Create Mode controls
whether limit lines are Above Curve, Below Curve, or Above and Below Curve. You can
also specify a Y Offset value, which sets a constant distance between the curve and limit line
(s); and a Y Shift %, which shifts the limit line(s) by the specified percentage of the Y-axis
values. In the example below the upper limit line has a Y Offset value of 0.01 and no Y Shift %,
while the lower limit line has a Y Shift % of 30 and no Y Offset,
3. When you click OK, the limit lines you defined are added to the plot. The lines divide the plot
into regions within the context of its length. By default, the region above a limit line is hatched.
Related Topics
You can select a limit line in a plot to edit the following properties on the Limit Line tab of the plot
properties dialog.
Related Topics
A plot feature can help you detect whether or not a curve violates the limits set by a limit
line. Consider the following plot, which shows two curves:
Suppose that the desired response cannot be below -30 dB at frequencies below 1.5 GHz and
below -50 dB above 1.5 GHz. If you add a limit line for these requirements in the plot, the plot
automatically calculates whether a curve violates this limit line requirement and displays it in the
legends window, as shown in following figure:
If a curve is selected, the plot shows the region of the curve that violates the limit line (shaded with
slanted red lines), as shown in following figure:
If no curve violates a limit line, the limit line hatching is limited to 10 pixels, as shown in the following
figure. This is done to retain focus on the curves instead of the limit lines.
Error Handling
If plot encounters an error while calculating Limit Line Violations, the legend window shows NaN
(Limit Line name) in front of the curve in the Limit Line Violations column. This ensure that you do not
get misleading information about no-violations when the issue is actually a limitation in our code.
Related Topics
1. If you are plotting a field quantity along a line, define a polyline object in the problem region.
2. In the Report dialog box, click the line geometry of interest in the Geometry list.
3. Specify the quantities you want to plot along the axes.
4. For the X (Primary Sweep), select the Distance variable.
The values at which the selected quantity or quantities will be plotted are listed to the right. By
default, a post-processing polyline object is divided into 100 equally spaced points.
Related Topics
Selecting a Function
The value of a quantity being plotted depends upon its mathematical function, which you select from
the Function list in the Report dialog box. The available, valid functions depend on the type of
quantity (real or complex) that is being plotted. The function is applied to the quantity which is
implicitly defined by all the swept and current variables. "Volume(Stator)" is the volume of the model
object named Stator for every swept combination of variables ("height" and so forth).
These functions can also be applied to previously specified Quantities and Functions as Range
Functions when using the Set Range Function dialog.
Some of these functions can operate along an entire curve. These are: deriv, min, max, integ, rms,
pk2pk, cang_deg and cang_rad. These functions have syntax as follows:
l deriv(quantity) implicitly implies derivative over the primary sweep
l deriv(quantity, SweepVariable) explicitly means derivative over the sweep variable specified
You can select from the following functions in the Trace tab Function list or type them directly into
the Yor X field, if necessary:
abs Absolute value of the simulation quantity which results in a number that is
always positive.
acos Arc cosine i.e. the inverse function of a cosine.
acosh Inverse hyperbolic arc cosine.
ang Magnitude of an angle.
ang_deg Angle (phase) of a complex number, cut at +/-180.
ang_rad Angle in radians.
arg Argument of a complex number. It is the angle the complex number makes
with the positive x axis. Same as ang_deg.
asin Arc sine i.e. inverse function of sine.
asinh Inverse hyperbolic sine.
atan Arc tangent. Takes a tangent value as an argument. Because there are two
angles in a circle that can have the same tangent value, and atan can return
only one value, it returns a value in the range between -90 degrees and +90
degrees (or between -pi/2 and pi/2 in radians).
atanh Inverse hyperbolic tan.
atan2(y,x) A two-argument version of the atan function. Takes the y and x coordinates
(including sign information) of a point as arguments and returns the angle
from the X-axis. Can return angle values for the full circle (-180 degrees to
+180 degrees or -pi to +pi in radians).
avgabs Returns the mean of the absolute value of the selected quantity.
bandwidth Returns the 3dB bandwidth of the selected simulation quantity. For
bandwidth, the calculation is based on 3dB below the maximum peak.
cang_deg Cumulative angle (phase) of the first parameter (a complex number) in
degrees, along the second parameter (typically sweep variable). Returns a
double precision value cut at +/-180.
cang_rad Cumulative angle of the first parameter in radians along a second parameter
(typically a sweep variable). Returns a double precision value.
cmplx(re, im)
A complex number, where re is the real part and im is the imaginary part.
conjg Conjugate of the complex number.
cos Cosine.
cosh Hyperbolic cosine.
crestfactor Returns the crest factor (peak/RMS) for the selected quantity.
cum_integ The cumulative integral function returns a set of values that have the same
length as the original set of points (the first element will always be zero).
if if(cond_exp,true_exp, false_exp).
im Imaginary part of the complex number.
int Truncated integer function.
integ Integral of the selected quantity. Uses trapezoidal area.
integabs Absolute value of integral.
ise Returns the integral of the squared deviation of the selected quantity from a
target value that is entered via an additional argument. To use this function,
you need to open the Add Trace Characteristics dialog and select the Error
category.
itae Returns the time-weighted squared deviation of the selected quantity from a
target value that is entered via an additional argument. To use this function,
you need to open the Add Trace Characteristics dialog and select the Error
category.
itse Returns the time-weighted squared deviation of the selected quantity from a
target value that is entered via an additional argument. To use this function,
you need to open the Add Trace Characteristics dialog and select the Error
category.
j0 Bessel function of the first kind (0th order).
j1 Bessel function of the first kind (1st order).
jn Bessel function of the first kind (nth order).
ln Natural logarithm.
log Natural logarithm (same as ln).
log10 Logarithm base 10.
lowercutoff Returns the lower 3dB frequency of the selected simulation channel in Hertz.
lsidelobeX The 'x' value for the left side lobe: the next highest value to the left of the max
value.
lsidelobeY The 'y' value for the left side lobe: the next highest value to the left of the max
value.
mag Magnitude of the complex number.
max Returns maximum value of the simulation quantity.
max_swp Returns maximum value of a sweep.
max2 Maximum value of the two simulation quantities. For example, max2(a,b) will
plot maximum of a and b for a particular instance.
mean Returns the average in the set of quantities selected.
mean = sum( all y-value) / (number of y-values)
min Returns the minimum value of the simulation quantity.
min_swp Returns the minimum value of a sweep.
min2 Minimum value of the two simulation quantities. For example, min2(a,b) will
plot minimum of a and b for a particular instance.
reached.
pulsetail50 Returns the pulse tail time of the selected quantity from the virtual peak to
50%.
pulsewidth5050 Returns the pulse width of the selected quantity as measured from the 50%
points on the pulse front and pulse tail.
pwl Piecewise Linear.
pwl_periodic Piecewise Linear for periodic extrapolation on x.
pwlx Piecewise Linear x with linear extrapolation on x.
pw_minus Pulse width of the first negative pulse.
pw_minus_avg Returns the average of the negative pulse width input stream.
pw_minus_max Returns the maximum pulse width of the negative pulse of input stream.
pw_minus_min Returns the minimum pulse width of the negative pulse of input stream.
pw_minus_rms RMS of the negative pulse width input stream.
pw_plus Pulse width of the first positive pulse.
pw_plus_avg Average of the positive pulse width input stream.
pw_plus_max Max. Pulse width of the positive pulse of input stream.
pw_plus_min Min. Pulse width of the positive pulse of input stream.
pw_plus_rms RMS of the positive pulse width input stream.
re Real part of the complex number.
rect Converts the complex number in polar to rectangular co-ordinates.
rem Fractional part of the selected simulation quantity i.e. remainder.
ripple Returns the ripple factor (AC RMS/Mean) for the selected quantity.
risetime Obtains the time taken to go from 10% to 90% of target point.
rms Returns the root mean square value of the selected quantity.
rmsAC Returns the AC RMS for the selected quantity.
root nth root function.
rSidelobeX Returns the X value of right side-lobe occurrence.
rSidelobeY Returns the Y value of right side-lobe occurrence.
settlingtime Returns the latest time at which the value of the selected simulation quantity
fell outside its tolerance band. The target value of the quantity and the +/-
bandwidth of the tolerance band are the additional args.
sgn Sign extraction.
sin Sine.
sinh Hyperbolic sine.
slidingmean Returns the moving average value of the selected simulation quantity
(specified by the first argument). The average is calculated over a period
(specified by the second argument).
slidingrms Returns the moving RMS value of the selected simulation quantity (specified
by the first argument). The RMS value is calculated over a period (specified
by the second argument).
sqr Square of the selected simulation quantity.
sqrt Square root of the selected simulation quantity.
stddev Returns the standard deviation of given values.
sum Returns the sum of the given values.
tan Tangent.
tanh Hyperbolic tangent.
undershoot Calculates peak undershoot given a threshold value and number of evenly
spaced points over entire time range.
uppercutoff Returns the upper 3dB frequency of the selected simulation channel in Hz.
variance Calculates the variance of the given values.
XAtYMax Threshold crossing time: report first time (x value) at which an output quantity
crosses YMax.
XAtYMin Threshold crossing time: report first time (x value) at which an output quantity
crosses a user definable threshold.
XAtYVal Returns the X value at the first occurrence of Y value.
XWidthAtYVal Returns the X width between the first 2 occurrence of Y value.
xdb10beamdwidth Width between left and right occurrences of values 'x' db10 from max. Takes
'x' as argument (3.0 default). To use this function, you need to open the Add
Trace Characteristics dialog and select the Radiation category.
xdb20beamwidth Width between left and right occurrences of values 'x' db20 from max. Takes
'x' as argument (3.0 default). To use this function, you need to open the Add
Trace Characteristics dialog and select the Radiation category.
YAtXMax Returns the X value at maximum value of Y.
YAtXMin Returns the Y value at minimum value of X.
YAtXVal Returns the Y value at the first occurrence of X value.
y0 Bessel function of the second kind (0th order).
y1 Bessel function of the second kind (1st order).
yn Bessel function of the second kind (nth order).
Related Topics
2. Select a quantity to plot from the Quantity list. The available quantities depend on the
selected category and the setup of the design.
Post-Processed Quantities
Both pre-processing and post-processing quantities are available when creating reports.
For example, when you create a Magnetostatic Report for the Magnetostatic Solver the following
are four of the quantities that appear in the Category list in the Report dialog box:
l L – The post-processed value of inductance (for example, the inductance of a 1-turn coil).
l MagFlux – The post-processed value of the total magnetic flux as seen by the coil (current
seen by the coil (current source) including all sources (current, magnets, etc.)
Similarly, for an Eddy Current Report, the following are three of the quantities that appear in the
Category list:
l Winding – If the design includes windings, Flux Linkage, Induced Voltage, Input Current,
Input Voltage, and Current quantities are available (depending on the winding type). See also
"Viewing Winding Results (Eddy Current)" on page 22-11 .
l Loss – Hysteresis Loss (Maxwell 2D Eddy current solutions only), Core Loss (Maxwell 3D
Eddy current solutions only), Solid Loss, Stranded Loss, and Stranded Loss R. See also
"Viewing Loss Results (Eddy Current) " on page 22-12 .
l End Connection (Maxwell 2D Eddy current solutions only) – Induced Voltage, and Current.
See also "Viewing End Connection Results (2D Eddy Current)" on page 22-11 .
Note All range functions are available in the list regardless of solution context. You must select a
function that is appropriate for the solution context and data type you are working with.
1. Click the Range Function button in the Reports dialog.
This opens the Set Range Function dialog. The functions available are the same as
described in the Selecting a Function section, with the exception of those for the Eye
Measurements category.
2. Click the Specified radio button on the Range function line.
This enables the Range Function fields.
3. Select the Category, and then an associated Function to apply. The available categories
depend on the plot, and Category enables the display of associated functions.
Category Functions for the Category
Math max, min, pk2pk, rms, integ, integabs, avgabs, rmsAC, ripple, pkavg,
XatYMin, XatYMax, XatYVal
PulseWidth pulsefall9010, pulsefront9010, pulsefront3090, pulsemax, pulsemaxtime,
pulsemin, pulsemintime, pulsetail50, pulsewidth5050, pw_plus, pw_
plus_max, pw_plus_min, pw_plus_avg, pw_plus_rms, pw_minus_max,
pw_minus_min, pw_minus_avg, pw_minus_rms
Overshoot, overshoot, undershoot.
Undershoot
TR & DC crestfactor, formfactor, distortion, fundamentalmag, delaytime, risetime,
deadtime, settlingtime,
Error iae, ise, itae, itse
Period per, pmax, pmin, prms
Radiation xdb10bandwidth, xdb20bandwidth, lSidelobeX, lSidelobeY, rSidelobeX,
rSidelobeY
Eye EyeLevelZero, EyeLevelOne, EyeAmplitude, EyeHeight,
Measurements EyeSignalToNoise, EyeOpeningFactor, EyeWidth, EyeJitterP2P,
EyeJitterRMS, EyeRiseTime, EyeFallTime
Given a selected Function, and Category, the Set Range Function dialog displays a text field
that explains the Purpose of the function. For a full list of functions and their definitions, see
Selecting a Function.
Selecting a function causes the display of a description in the Purpose field. If the function
requires a value (such as the XatYVal Math function or the pw_minus_max Pulse Width
function), the table below the function field displays the name, editable value field, unit, and
description.
4. Use the Over Sweep drop down menu to select from available sweeps.
5. To select from available Sweeps, or to edit them, click the ellipsis [...] button to display a dialog
box that lets you select particular sweep values, specify a range of sweep values (for Time
sweeps). By default, Use all values is selected.
l For sweeps other than Time, unchecking Use all values enables a list of available sweep
values. You can use the buttons to Clear All or Select All sweep values.
a. Select the Sweeps Default or Edited radio buttons to specify whether to accept the
default or edited sweeps.
b. To edit the sweeps further, select the ellipsis [...] button to display an Edit Sweep dialog
box. For frequency variables, this lets you specify a single value, linear step, linear
count, decade count, octave count, or exponential count. You can Add legal values to
the list of sweep values, Update the list for changes, or Delete selected entries.
c. When finished selecting/editing sweep values, close the dialog box. The sweep values
you select are displayed on the Over Sweep line.
l For Time sweeps:
a. Select the Specify range radio button to enable the Min and Max value fields.
b. Enter the desired Min and Max values, and choose the associated units of measure
from the drop down lists.
c. When finished, close the dialog box. The sweep values you select are displayed on the
Over Sweep line.
6. Click OK to apply the range function.
Related Topics
Selecting a Function
The Eye Measurement category of range functions provide the means to evaluate several
characteristics of eye diagrams. Each of the Eye Measurement functions includes the following
parameters. Specify the Value by editing the Value text field for the parameter name. Specify the unit
for the parameter by selecting from the Unit drop down menu.
Default Default
Name Description
Value Unit
Unit Interval 0 ns Unit interval of signal
Start Offset 0 ns Offset at beginning of signal
End Offset 0 ns Offset at end of signal
Autocrossing 1 Nonzero number means that crossing amplitude is
amplitude calculated automatically.
Crossing 0 mV Specify crossing amplitude used for eye measurement
amplitude data computation.
1. Select the report you want from the list in the dialog.
2. Select the FFT Window type from a drop down list.
Select the window type to apply. Windowing functions cause the FFT of the signal to have
non-zero values away from ω. Each window function trades off the ability to resolve
comparable signals and frequencies versus the ability to resolve signals of different strengths
and frequencies.
3. Select the function to apply to complex data.
The new report displays and appears in the Project tree. The new report name prefixes FFT to the
name of the original report. Trace names are also prefixed with FFT.
Related Topics
Window
Preferred Use
Function
Rectangular A low dynamic range function offering good resolution for signals of comparable
Window
Preferred Use
Function
Van Hann A moderate dynamic range function, designed for narrow band applications.
Blackman A high dynamic range function, with lower resolution, designed for wide band
applications.
Window
Preferred Use
Function
Hamming A moderate dynamic range function, designed for narrow band applications. It
minimizes the maximum sidelobe.
Lanczos The Lanczos window offers a windowed form of the infinite sinc filter, providing the
central lobe of a horizontally-stretched sinc, sinc(x/a) for -a £ x £ a.
Window
Preferred Use
Function
Weber
Welch This approach applies a parabola-shaped window to the frequency domain data. It
is based on the Bartlett method but splits the signal into overlapping segments,
which are then windowed. The intent is to balance the influence of data in the center
of the function.
Related Topics
dBc
im Imaginary part of the complex number
mag Magnitude of the complex number
normalize Divides each value within a trace by the maximum value of the trace. ex. normalize
(mag(x))
re Real part of the complex number
Related Topics
Related Topics
Windowing functions cause the FFT of the signal to have non-zero values away from ω. Each
window function trades off the ability to resolve comparable signals and frequencies versus
the ability to resolve signals of different strengths and frequencies. The window type list
includes:
Window
Preferred Use
Function
Rectangular A low dynamic range function offering good resolution for signals of comparable
strength. Poor when signals have very different amplitudes. w(n)=1.
Bartlett A high dynamic range function, with lower resolution, designed for wide band
applications.
Blackman A high dynamic range function, with lower resolution, designed for wide band
applications.
Window
Preferred Use
Function
Hamming A moderate dynamic range function, designed for narrow band applications. It
minimizes the maximum sidelobe.
Hanning A moderate dynamic range function, designed for narrow band applications.
(default)
Window
Preferred Use
Function
Kaiser Selecting the Kaiser plot also enables a field to specify an associated Kaiser
parameter. The larger the Kaiser parameter, the wider the window. The parameter
controls the trade off between width of the central lobe and the area of the side
lobes.
Window
Preferred Use
Function
Welch This approach applies a parabola-shaped window to the frequency domain data. It
is based on the Bartlett method but splits the signal into overlapping segments,
which are then windowed. The intent is to balance the influence of data in the center
of the function.
You can use the Save as Default to set the current values as a default, and the Use Defaults
Related Topics
Related Topics
l In the Project tree, right-click on Results and select Output Variables from the short-cut
menu.
l In the Solution Setup dialog, select the Expression Cache tab, click the Add... button to
display the Add to expression cache dialog, and click the Output Variables button.
l Click the Output Variables button the Reports dialog.
types, the Domain. Changing the Report type affects whether the Domain menu appears, and
may affect the functions listed in the Calculation section.
l Output Variables section, where you can specify the name and expression for a new output
variable. Existing variables appear in the list at the top of the window. Clicking the triangle in
the Name bar inverts the sort order.
At top of the Output Variables window, you can use a check box to Validate output
variable for selected context.
l Calculation section, where you can insert quantities into the Expression area of the Output
Variables section.
l Function section, where you can insert completed expressions into the Expression area of
the Output Variables section.
Related Topics
Related Topics
1. Click Maxwell3D, Maxwell2D, or RMxprt and then select Results>Output Variables or, in
the Project Tree, right-click on Results and select Output Variables from the short-cut
menu, or on the Modify Report dialog, click the Output Variables button.
The Output Variables window appears.
2. In the Output Variables section, enter a name for the new variable in the Name box.
3. To insert a quantity:
a. From the Report Type pull-down list, select the type of report from which you want to
select the quantity.
b. From the Solution pull-down list, select the solution from which you want to select the
quantity.
c. From the Category list, select the type of quantity you want to enter.
d. From the Quantity list, select the quantity or the geometry.
e. From the Function list, select a ready-made function (this option is the same as inserting
the function from the Function section).
f. If applicable, from the Domain list, select the solution domain.
g. Click Insert Into Expression.
The selected quantity is entered into the Expression area of the Output Variables
section.
4. To insert a function:
a. In the Function section, select a ready-made function from the pull-down list.
b. Click Insert Function into Expression.
The function appears in the Expression area of the Output Variables section.
5. When you are finished defining the variable in the Expression area, click Add to add the new
variable to the list.
6. Repeat steps 2 through 5 to add additional variables.
7. When you are finished adding output variables, click Done to close the Output Variables
window.
Note Remember the evaluated value of an expression is always interpreted as in SI units.
However, when a quantity is plotted in a report, you have the option to plot values in
units other than SI.
Related Topics
Some of these functions can operate along an entire curve. These are: deriv, min, max, integ, rms,
pk2pk, cang_deg and cang_rad. These functions have syntax as follows:
l deriv(quantity) implicitly implies derivative over the primary sweep
l deriv(quantity, SweepVariable) explicitly means derivative over the sweep variable specified
Related Topics
Related Topics
Report Data
The follow sections describe how you can view, update, export, import, override, and delete various
values used for display in plots and reports.
The topics for this section include:
Updating Reports (Post-Processing Data)
Deleting Reports
Exporting Plot Data
Deleting Reports
l To delete a single report, right-click on the report in the Results section of the Project
Manager window for the design, and click Delete on the menu.
Warning Solution data that have been deleted cannot be
recovered!
l To delete all reports, either select Maxwell 2D (or Maxwell 3D or RMxprt)>Results>Delete
All Reports, or right-click on the Results icon in the Project Manager window for the
design, and click Delete All Reports on the pop-up menu.
Warning Deletions occur as soon as you click this button and cannot be undone. If you
change your mind while in this window, click Cancel BEFORE clicking Do
Deletions.
Opening Reports
l To open a single report, right-click on the report in the Results section of the Project
Manager window for the design, and click Open Report on the menu.
l To open all reports, either select Maxwell 2D (or Maxwell 3D)>Results>Open All Reports,
or right-click on the Results icon in the Project Manager window for the design, and click
Open All Reports on the pop-up menu.
Exporting Reports
You can export reports in a variety of text and graphic formats. You must have an existing plot open
to see the corresponding Report2D or Report3D menu.
1. Click Report2D or Report 3D on the top menu, and then select Export. Alternatively, right-
click on the plot, and then click Export ... on the shortcut menu.
The Export Report dialog box opens.
2. Use the file browser to find the directory where you want to save the file.
3. Type the name of the file in the File name box.
4. Select one of the following file formats from the Save as type pull-down list:
l *.csv – Comma delimited data files.
5. Optionally, for 2D reports, you can choose to Export Uniform Points, which enables fields in
which you can specify the start, stop, and step values and units to output uniformly spaced
point data.
6. Click Save to export the report to the specified location in the selected data or graphical
format.
Related Topics
Related Topics
Exporting Reports
Creating a Report from a Report Data File
Report File Formats
File
Information
Extension
csv l Uses a comma (,) as the separation character.
l The x-axis value is in the first column. Each curve’s Y-values make up one
column, and the curves are in the same order as in the plot legend.
l The first row is the X-axis name [unit] and the information for each curve, which
is the same as the plot curve legend.
l Other rows are the X-axis value and the Y-value for each curve.
tab l Uses the tab character as the separation character.
l The x-axis value is in the first column. Each curve’s Y-values make up one
column, and the curves are in the same order as in the plot legend.
l The first row is the X-axis name [unit] and the information for each curve, which
is the same as the plot curve legend.
l Other rows are the X-axis value and the Y-value for each curve.
txt lThe txt file must begin with a header that contains the following:
• A first line made of 92 equal signs (=)
• A second line that begins with the company name and ends with the date in
MM/DD/YY format
• A third line that begins with a plot name and ends with the time in hh:mm:ss
format
• A fourth line, which is empty
• A fifth line made of 92 hyphens (-)
Note: Each header line must be 92 characters in length, except the empty line.
File
Information
Extension
l Each column has a fixed width, separated by white space.
l The x-axis value is in the first column. Each curve’s Y-values make up one
column, and the curves are in the same order as in the plot legend.
l The first row is the X-axis name [unit] and the trace name [unit] for each curve,
which is the same as the plot curve legend.
l The second row is an empty column and the variable values for each curve,
which is the same as the plot curve legend.
l Other rows are the X-axis value and the Y-value for each curve.
dat DAT is an ANSYS-specific format. ANSYS recommends that you do not generate
files using this format. Files imported with these formats should be exported only from
ANSYS products.
rdat RDAT is an ANSYS-specific format. ANSYS recommends that you do not generate
files using this format. Files imported with these formats should be exported only from
ANSYS products.
Related Topics
for company name, or color scheme). Once saved, this name will appear on the PersonalLib
menu.
4. The Save As Type field currently supports the Ansoft Report Format (.rpt) format.
5. Click Save to save the template to the PersonalLib menu.
All .rpt templates in the directory appear on the Results>Report Templates>PersonalLib menu.
Selecting a report from the PersonalLib menu opens a report that you can then Modify to add traces
or perform other edits. Templates in the SysLib directory appear on the Report Templates menu.
To save an edited report as a default:
1. In the Project Tree, right-click on the report name of interest to display the shortcut menu and
click Report Templates>Save Settings as default. You can also click Report2D>Report
templates>Save Settings as default or Report3D>Save Settings as default.
Related Topics
Modifying Reports
Setting Report2D options
Modifying the Background Properties of a Report
Modifying the Legend in a Report
Working with Traces
Editing the Display Properties of Traces
Discarding Report Values Below a Specified Threshold
5. Click Save. The file is exported to the specified location as a graphics file.
Related Topics
Exporting Reports
Related Topics
The Specify Name field shows a name based on the field quantity you selected, and the
Quantity list shows the field quantity selected.
4. To specify a name for the plot other than the default, select SpecifyName, and then type a
new name in the Name box.
5. To specify a folder other than the default in which to store the plot, select Specify Folder, and
then click a folder in the pull-down list. Plot folders are listed under Field Overlays in the
project tree.
Note All plots (field overlays) in the same folder have the same scale settings. To plot the
same field with a different scale, you can create or move the new plot to a separate
folder. By default, current density plots are stored in a folder called J, but you can
specify a different or new folder. Plots in different folders have a different plot keys.
6. Select the solution to plot from the Solution pull-down list.
7. Select the field type to plot in the Field Type pull-down list.
8. Under Intrinsic Variables, select the time at which the field quantity is evaluated.
9. Select the field quantity to plot from the Quantity list.
10. Select the volume or surface (region) in which to plot the field from the In Volume list.
This selection enables you to limit plots to the intersection of a volume with the selected object
or objects. You can select and deselect any items in the In Volume list. You can mix model
objects with non-model boxes. For example you might want to see a plot from part of two
model objects by restricting the region to a non-model box overlapping those parts.
Note Multiple selection should be used when there is a discontinuous field on a surface. If not,
the field on both sides of the surface is plotted and each interferes with the other.
Note l Non-convex 3D non-model solids are not supported for Field Overlay Plots and
Fields Calculator computations.
l Object lists containing non-model object(s) are supported for Field Overlay Plots but
are not supported for Fields Calculator computations.
11. If you selected a vector quantity, you can use the check box to select Streamline plot.
Streamlines are often used to indicate magnetic flux lines, etc. in plots.
Note l Before creating the Streamline plot, select both starting and ending edges (in 2D) or
both surfaces (in 3D).
l In the Creating Field Plot dialog box, select In Volume: region, which is the region
in which the streamlines will appear. Streamlines are outside of objects that are
excited (sources).
l To show more streamlines after the plot is created, on the Modify attributes...
dialog Plots tab, reduce the Seeds density value. If no streamlines appear, reduce
this by a factor of 10 (or 100) because the default seeding was too large. See Setting
Field Plot Attributes for adjusting the Streamline display parameters.
See Setting Fields Reporter Options for setting Streamline defaults.
12. Optionally, you may select the Plot on surface only check box to obtain a plot around the
outside edge of selected objects.
13. Click Done.
The field quantity is plotted on the surfaces or within the objects you selected. The plot uses
the attributes specified in the Plot Attributes dialog box.
The new plot appears in the view window. It is listed in the specified plot folder in the project
tree. If you have created a field plot on a simulation in progress, the field plot is updated after
the last adaptive solution.
If you want to update the field overlay before then, to view progress in the solution, select the
Field icon in the Project tree that contains the field plot of interest, right-click to display the
short cut menu, and select Update Plots.
To turn off the display of the plot, right click on the plot and select Plot Visibility from the
short-cut menu. Unchecking Plot Visibility turns off the plot display.
Related Topics
Description Quantity 2D 3D
Vector Potential Flux_Lines, A_ Magnetostatic, Eddy
Vector Current, Transient
Magnetic Field Mag_H, Magnetostatic, Eddy Magnetostatic, Eddy
Intensity ComplexMag_H, H_ Current, Transient Current, Transient
Vector
Magnetic Flux Mag_B, Magnetostatic, Eddy Magnetostatic, Eddy
Density ComplexMag_B,B_ Current, Transient Current, Transient
Vector
Current JatPhase, Mag_J, Magnetostatic, Eddy Magnetostatic, Eddy
ComplexMag_J, J_ Current, Transient, Current, Transient,
Vector, Jphi, Jz ACConduction, DCConduction, Electric
DCConduction Transient
Electric Flux DatPhase, Mag_D, Eddy Current, Eddy Current,
Density ComplexMag_D, D_ Electrostatic, Electrostatic,
Vector ACConduction DCConduction, Electric
Transient
Electric Field Mag_E, Electrostatic, Eddy Current,
Intensity ComplexMag_E, E_ ACConduction, Electrostatic,
Vector DCConduction DCConduction, Electric
Transient
Surface Charge QSurf Electrostatic,
Density DCConduction, Electric
Transient
Surface Current Jsurf Eddy Current
Density
(on an
impedance
boundary)
Voltage Voltage Electrostatic, Electrostatic,
ACConduction, DCConduction, Electric
DCConduction Transient
Energy in the energy Magnetostatic, Eddy Magnetostatic, Eddy
Field Current, Transient, Current, Transient,
Electric Electrostatic Electrostatic,
Magnetic DCConduction, Electric
Transient
Magnetic coEnergy Magnetostatic, Eddy Magnetostatic, Transient
CoEnergy Current, Transient
appEnergy Magnetostatic, Eddy Magnetostatic, Transient
Current, Transient
Description Quantity 2D 3D
Ohmic Loss Ohmic_Loss Magnetostatic, Eddy Magnetostatic, Eddy
Current, Transient, Current, Transient,
Electrostatic, DCConduction, Electric
ACConduction, Transient
DCConduction
Total Loss Total_Loss Transient (Magnetic)
Hysteresis Loss Hysteresis_Loss Eddy Current Eddy Current
Dielectric Loss Dielectric_Loss Eddy Current Eddy Current
Surface Loss SurfaceLossDensity Eddy Current
Density
Edge Force edgeForceDensity Magnetostatic, Eddy
Density Current (DC component
only), Transient,
Electrostatic
Temperature Temp Magnetostatic, Eddy Magnetostatic, Eddy
Current, Electrostatic Current, Electrostatic
Surface Force surfaceForceDensity Magnetostatic, Eddy Magnetostatic, Eddy
Density Current (DC component Current (DC component
only), Transient, only), Transient,
Electrostatic Electrostatic, Electric
Transient
Volume Force volumeForceDensity Magnetostatic, Eddy
Density Current, Transient,
Electrostatic, Electric
Transient
Displacement Displacement_ Magnetostatic, Eddy Magnetostatic, Eddy
Vector, Mag_ Current, Electrostatic Current, Electrostatic
Displacement
Sum of Ohmic, emloss Eddy Current
Hysteresis, and
Dielectric Loss
Loss on edgeLossDensity Eddy Current
Impedance
boundary
applied to a
conductor
Related Topics
The edge density is available only in Maxwell2D. It is available only on object outlines
adjacent to air or vacuum space. It is defined as:
Edge
Force
Density
where B and E are the magnetic flux density and electric field intensity at the midpoint of
the edge, respectively, and n is the outward normal direction of the edge. For
electrostatic, AC, and DC solvers, only the electric field is included; while for
magnetostatic, Eddy current, and magnetic transient solvers, only the magnetic field is
considered. For AC solver and Eddy current solver, edge force density is the averaged
(DC) force density.
In Maxwell2D, surface force density is defined as:
Surface
Force
Density
where N is the number of sides of the element, li is the length of side i of the element. For
the RZ case, ri and rc are the radius of side i and the radius of the element center,
respectively. and are the permeability and permittivity in the ith neighboring element.
In the XY plane, ri and rc are set to 1.
In Maxwell3D, surface force density is only available on object faces adjacent to air or
vacuum space. It is defined as:
where B and E are the magnetic flux density and electric field intensity at the center of the
surface face, respectively, and n is the outward normal direction of the surface face. For
electrostatic, AC, and DC solvers, only the electric field is included; while for
magnetostatic, Eddy current, and magnetic transient solvers, only the magnetic field is
considered. For AC solver and Eddy current solver, surface force density is the averaged
(DC) force density.
Volume force density is only available in Maxwell3D. It is calculated as:
Volume
Force
Density
and are the permeability and permittivity in the ith neighboring element. Ai is area of
side i of element. For electrostatic, AC, and DC solvers, only the electric field is included;
while for magnetostatic, Eddy current, and magnetic transient solvers, only the magnetic
field is considered. For AC solver and Eddy current solver, volume force density is the
averaged (DC) force density.
Lorentz force density is calculated instead of volume force density from Equation (7) in
pure conductors containing source current in magnetostatic, Eddy current, and magnetic
transient solvers:
Loss Quantities
(sinusoidal) electric fields. This loss is due to a phenomenon called "electric viscosity"
which causes the D and E fields to have a phase shift between them. In the D-E
plane, for linear materials, the relationship between these two fields describes an
ellipse. The dielectric loss is proportional to the area of the ellipse.
SurfaceLoss The surface loss density is associated with the induced eddy current on the
Density impedance boundary.
Emloss In 2D eddy emloss combines the ohmic loss, dielectric loss and hysteresis loss.
(2D Eddy)
Edge loss density represents losses associated with impedance boundary applied
on conductive surfaces on the boundary of the solution domain or on surface of
Edgeloss excluded objects. It assumes an exponential spatial decay (towards the interior of
density the respective material) of induced current magnitudes and of associated losses.
Integrating the loss along the edge produces the entire loss associated with the
"edge".
The core loss combines eddy current losses and hysteresis losses for a transient
solution type. It is a post-processing calculation, based on already calculated
Core
transient magnetic field quantities. It is applicable for the evaluation of core losses in
loss
steel laminations (frequently used in applications such as electric machines,
transformers) or in power ferrites.
The solid loss represents the resistive loss in a 2D or 3D volume and is calculated by:
Solid
Loss
For 2DXY designs, the length is given by Set Model Depth, while for RZ designs
the volume is based upon the rotation of the cross section around the symmetry axis.
There are two types of stranded loss quantities, StrandedLoss and
Stranded StrandedLossR:
Loss l StrandedLoss represents the resistive loss in a 2D or 3D volume and is
calculated by:
Named Expressions
Named expressions can contain any combination of scalar, vector, or geometry functions. When you
plot a field overlay or create a report based on a named expression, only corresponding quantities
are available.
For example, if you select a point for the Geometry and a Category that is a named expression
based on the point (or other scalar, non-3D value), then the Quantity list only lists expressions that
returns a single scalar value. If you have added named expressions that take the magnitude of the
ScalarX(), ScalarY(), or ScalarZ() of a vector point value, then you can create output variables for
those expressions only in this case.
Named expressions can be plotted in the following three ways:
To create a field overlay of a named expression, the expression must be a real value (scalar or
vector) that has values everywhere in space (or at least on every point in the geometry you plan to
use for the field overlay).
To create a 2D report from a named expression that evaluates in the Fields Calculator as a single
scalar value, the expression must result in a single-valued, real, scalar value. A single-valued item
could be the value on a single point in space or the result of a function that returns a single value
(such as an integration, max/value, min/value, or other function).
To create a 2D report from a named expression that is evaluated (in the Fields Calculator) along a
polyline, the expression must be a real scalar that has values everywhere in space (or at least
everywhere on the line object you want to use to sample the values).
Named expressions can be created in the Fields Calculator.
1. Select a point, line, surface, or object to create the plot on or within. You may also select a
plane or object list in the History Tree.
Note For 2D Designs, a plane selection must be consistent with the drawing plane or an
error will result.
If it does not exist, create it.
2. Click Maxwell3D or Maxwell2D and select Fields>Fields>Named Expression.
The Selecting calculated expression dialog box appears.
3. Select the derived quantity you want to plot, and then click OK.
The Create Field Plot dialog box appears.
4. To specify a name for the plot other than the default, select SpecifyName, and then type a
new name in the Name box.
5. To specify a folder other than the default in which to store the plot, select Specify Folder, and
then click a folder in the pull-down list. Plot folders are listed under Field Overlays in the
project tree.
6. Select the solution to plot from the Solution pull-down list.
7. Select the derived field quantity to plot from the Quantity list.
Note If you select a point for the Geometry and a Category that is a named expression
based on the point (or other scalar, non-3D value), then the Quantity list only lists
expressions that returns a single scalar value. If you have added named expressions
that take the magnitude of the ScalarX(), ScalarY(), or ScalarZ() of a vector point
value, then you can create output variables for those expressions only in this case.
Note If you select a polyline for the Geometry and a Category that is a named
expression based on the line, then the Quantity list only lists corresponding
expressions (i.e., will not list scalar values when a line is selected as the geometry).
8. Select the volume or surface (region) in which to plot the field from the In Volume list.
This selection enables you to limit plots to the intersection of a volume and the selected object.
9. Click Done.
The derived field quantity you created in the Fields Calculator is plotted on the surfaces or
objects you selected. The new plot is listed in the project tree under Field Overlays.
Related Topics
l Delete Marker
l Edit Marker
3. Click the desired point in the field overlay plot to add the marker at that location. Alternatively
you can select the position of the marker by entering the values manually in the edit fields at
the bottom of the window as shown below.
A table showing the marker coordinates and associated field value is also created and added
to the modeler window.
4. Repeat as desired to add additional markers.
5. Press the Esc key when finished adding markers.
1. Click on the marker you want to delete to select it. The row corresponding to the selected
marker will be highlighted in the marker table.
Press and hold the Ctrl key and click to select multiple markers.
2. On the main menu click Maxwell3D or Maxwell2D and then select
Fields>Fields>Marker>Delete Marker to delete the selected marker(s).
– Alternatively you can right-click anywhere in the modeler window, or on the Field Overlays
folder icon in the Project Manager, and select Fields>Marker>Delete Marker.
– You can also simply press the Delete key to delete the selected marker(s).
You can export a field plot marker table to either a comma- or tab-delimited file as follows:
1. On the main menu click Maxwell3D or Maxwell2D and then select
Fields>Fields>Marker>Export Marker Table.
Alternatively you can right-click anywhere in the modeler window, or on the Field Overlays
folder icon in the Project Manager, and select Fields>Marker>Export Marker Table.
2. In the Export As dialog box, choose the export format, either .csv or .tab, and save the file in
the desired location.
The exported file can then be imported into another application such as a spreadsheet.
To clear all field plot markers in the active modeler window do one of the following:
l On the main menu click Maxwell3D or Maxwell2D and then select
Fields>Fields>Marker>Delete All.
l Alternatively you can right-click anywhere in the modeler window, or on the Field Overlays
Related Topics
l To choose a default field quantity, select Standard from the Category pull-down list.
7. Under Intrinsic Variables, specify the time at which the field quantity will be evaluated.
8. Select the volume, or region, in which the field is to be plotted from the In Volume list.
This selection enables you to limit plots to the intersection of a volume and the selected object.
9. Click Apply, and then click Done.
The field quantity is plotted on the surfaces or within the objects you selected. The new plot is
listed in the specified plot folder in the project tree.
The plot uses the attributes specified in the Plot Attributes dialog box.
Related Topics
l Whether to add a grid (that is, a mesh overlay), and to set the grid
color.
l Specify the plot resolution as Coarse, Normal, Fine, or Very Fine.
This affects the use of memory for animating plots. For large plots with
more frames to animate, use Coarse or Normal to reduce memory
requirements and improve performance. For smaller plots with few
frames, if higher resolution is required, use Fine or Very Fine.
l The spacing of arrows (for vector plots).
4. Optionally, click Save as default if you want the tab's settings to apply to field overlay plots
created after this point.
5. Select Real time mode if you want the changes to take effect immediately in the view
window. If this option is cleared, click Apply when you want to see the changes.
6. Click Close to dismiss the dialog box.
Related Topics
You can choose Save as Default, if you want to use the current settings.
Select Real time mode if you want these, or subsequent changes to take effect immediately
in the view window.
If this option is cleared, click Apply when you want to see the changes.
5. Click the Scale Tab.
6. In the Num. Divisions field, enter the number of colors to use in the plot.
You can choose Save as Default, if you want to use the current settings.
Select Real time mode if you want the changes to take effect immediately in the view
window.
If this option is cleared, click Apply when you want to see the changes.
7. Click Close to dismiss the dialog box.
Related Topics
The color key (shown below) displays the range of plotted field values for a field overlay plot. It
displays the colors that correspond to the range of field values on the plot.
Related Topics
Click on the active field overlay plot's color key and drag it to a new location.
Related Topics
To change how field quantities are scaled on the field overlay plot:
2. Select the plot folder you want to modify, and then click OK.
Note All plots in the selected folder are
modified.
A dialog box with attribute settings for the selected folder appears.
3. Click the Scale tab.
4. Optionally, to change the number of divisions in the field plot scale, set the Num. Division
field to a new value. You can click Save as Default, if desired.
5. Select one of the following scale options:
Auto The full range of field values will be plotted on the selected surface or volume.
Selecting Auto enables the Auto Scale Options and disables the Min and Max
fields. By default, precision is not limited and auto-min is the actual computed min
on the plotted geometry.
Use Only the field values between the minimum and maximum values will be plotted.
Limits Field values below or above these values will be plotted in the colors assigned to
the minimum or maximum limits, respectively. Selecting Use Limits enables the
Min and Max fields and disables the Auto Scale Options.
Field values have a precision of at most 6 decimal places (field solution files are
saved in floating precision), so Min/Max numbers are displayed to this precision.
Specify This enables a Scale Values button.
Values
a. If you selected Use Limits, enter the lowest field value to be plotted in the Min. box and
the highest field value to be plotted in the Max. box.
b. If you selected Auto, the Auto Scale Options are enabled. You should only change this
for cases where auto-min is a small number. Use the Limits Max/Min precision to check
box to enable setting the drop down menu for the precision limit. The auto-min is the
greater of the following:
l Actual computed Min
l Max/pow(10, num digits of field precision)
c. If you selected Specify Values, you can click the Scale Values button. This opens a
dialog with an editable, scrollable list of the current scale values. To apply the changes you
make, click the OK button. To close the dialog without make changes, click Cancel.
d. Optionally, when dB is checked, the dB scale is used for the plot.
6. Optionally, use the Units drop down menu to select the default unit of measure for the plot.
The units specified here appear on the Color map for the fields plot, and for the properties
dialog for the field quantities.
7. If you selected Auto or Use Limits and without have dB checked, you can select one of the
following options:
Linear Field values are plotted on a linear scale.
Log Field values are plotted on a logarithmic scale. If field plots have negative and
positive values and when auto-scale is selected, the log-scale choice automatically
sets the Min value as the Max/Min Ratio. (If field plots have all negative values, Log
is not allowed.)
8. Specify the Number Format for the plot field values as Auto, Scientific or Decimal. You can
also specify Width and Precision if Number Format is Scientific or Decimal.
9. Select Real time mode if you want the changes to take effect immediately in the view
window.
If this option is cleared, click Apply when you want to see the changes.
10. Optionally, you can use the Save As Default button to save the following to registry:
l Whether to limit field precision,
Auto scale is always be default for new plots. For scalar-in-volume plots, iso-surface (rather
than cloud) is the default display
11. Click Apply, and then click Close to dismiss the window.
5. Use the Size slider to increase (move to the right) or decrease (move to the left) the length and
dimensions of the arrows. The arrows are resized relative to the size of the model geometry.
6. Select Map size to scale the size of the arrows to the magnitude of the field quantity being
plotted.
7. Select Arrow tail to include tails on all arrows.
8. Click the Plots tab.
Note Maxwell plots arrows on a grid that is superimposed on the surface or object you
selected for the plot.
9. Under Vector plot, use the Spacing slider to increase (move to the right) or decrease (move
to the left) the distance between arrows (grid points.)
10. If you want the arrows to be spaced equally, select Uniform, and enter values in the Min and
Max boxes.
11. Select Real time mode if you want the changes to take effect immediately in the view
window. If this option is cleared, click Apply when you want to see the changes.
12. Click Apply, and then click Close to dismiss the window.
To display or hide the mesh on field plots or to change the mesh's color:
Related Topics
b. Optionally, if you selected Fringe or Tone, select Outline to add a border line between
isovalues.
5. Use the Map transp. slider to increase (move to the right) or decrease (move to the left) the
transparency of the plot.
l If you select Map transp., the transparency of field values increases as the solution values
decrease.
6. If the plot is a scalar volume plot, do the following:
a. Select one of the following display types:
IsoValSurface Color is drawn on the isovalues.
Cloud Field values are represented by points that illustrate the spatial
distribution of the solution. The higher the solution value, the greater
the cloud density.
b. Optionally, if you selected Cloud, use the Cloud density slider to increase or decrease
the number of points that represent the density on the volume.
c. Optionally, if you selected Cloud, enter a point size for the clouds in the Point size box.
7. Use the Map transp. slider to increase (move to the right) or decrease (move to the left) the
transparency of the plot.
l If you select Map transp., the transparency of field values increases as the solution values
decrease.
8. Select Real time mode if you want the changes to take effect immediately in the view
window. If this option is cleared, click Apply when you want to see the changes.
9. Click Apply, and then click Close to dismiss the window.
decrease.
5. Select Real time mode if you want the changes to take effect immediately in the view
window.
If this option is cleared, click Apply when you want to see the changes.
6. Click Apply, and then click Close to dismiss the window.
For scalar point plots, a marker is used to represent a field quantity at a selected point. (For vector
point plots, arrows are used.) Modify the shape and size of markers in the plot attributes window.
1. Click Maxwell3D or Maxwell2D and selectFields>Modify Plot Attributes.
The Select Plot Folder window appears.
2. Select the plot folder you want to modify, and then click OK.
Note All plots in the selected folder are
modified.
A dialog box with attribute settings for the selected folder appears.
3. Click the Marker/Arrow tab in the plot attributes window.
4. Under Marker options, select one of the following marker types to represent the field quantity
at the point:
l Sphere
l Box
l Tetrahedron
l Octahedron
5. Use the Size slider to increase (move to the right) or decrease (move to the left) the size of the
marker.
6. Select Map size to scale the size of the marker to the magnitude of the quantity being plotted.
7. Select Real time mode if you want the changes to take effect immediately in the view
window. If this option is cleared, click Apply when you want to see the changes.
8. Click Apply, and then click Close.
Related Topics
Drawing a Point
Field quantities can be plotted directly on a line object. Scalar quantities are plotted as 3D color-
shaded lines. Vector quantities are plotted as arrows that are based on the line.
To modify the appearance of line plots:
5. Select one of the following styles for the line object from the Line style pull-down list:
Cylinder The line object is shaped like a cylinder.
Solid The line object is a 3D solid.
Dash- The line object is represented by dashed black line segments.
Dash
Dot-Dot The line object is represented by a series of dots.
Dash- The line object is represented by a a series of alternating dashed black line
Dot segments and dots.
6. Use the Line width slider to increase (move to the right) or decrease (move to the left) the
thickness of the line.
7. By default, a polyline object is divided into 100 equally spaced points for post processing. To
modify the number of points on the line, type a new value in the Number of points box.
8. Select Real time mode if you want the changes to take effect immediately in the view
window. If this option is cleared, click Apply when you want to see the changes.
9. Click Apply, and then click Close.
Related Topics
Drawing a Polyline
1. Click View>Active View Visibility . Alternatively, you can select the Active View
Visibility icon from the toolbar.
The Active View Visibility dialog box appears.
Note Plots stored in the same folder use the same color key. The Auto scale setting is
based on the maximum field solution value present in a plot.
5. Under Intrinsic Variables, specify the frequency and phase angle at which the field quantity
is evaluated.
6. Click OK.
Renaming a Plot
To rename a plot, do the following in the project tree:
1. Under Field Overlays, expand the field type, and right-click the specific plot you want to
rename.
A shortcut menu appears.
2. Select Rename.
The text becomes editable in the project tree.
3. Type the new name, and press Enter.
Related Topics
Context Area
The panel at the upper right of the window identifies the context to be used for the calculations. The
top line identifies the design. Depending on the design, text entry boxes allow you to select a
Solution, Field Type, or Time.
The Field Type here is not related to the edit sources. This is a general term among ANSYS
Electromagnetics products (HFSS, Maxwell, and Q3D). Some products have more than one field
type for different solution types. If only one Field Type is available the box is grayed out.
The Change Variable Values button opens a Set Variable Values dialog. By default it has Use
Nominal Design checked. Unchecking the box lets you select another variable value. OK the dialog
to accept the selection.
Related Topics
evaluated.
To perform a computation on the field solution, you must first load a basic field quantity into a register
on the stack. Once a quantity is loaded into a register, it can be:
l Manipulated using mathematical operations such as curls, gradients, cross products,
surfaces, volumes, and lists, or lines, surfaces, and volumes that were defined using the Draw
commands.
l Plotted on a point, line, surface, or volume.
Related Topics
Registers
Using the Fields Calculator
Registers
Calculator registers hold field quantities, numbers, vectors, and geometries. No registers are
created until you load something into the calculator; therefore, this part of the window is initially
blank. As items are loaded into the calculator, it creates new registers to hold them.
Each register is labeled with its contents as follows:
Vec Vector quantities, which have both direction and magnitude at each point in space. The
x-, y-, and z-components of these quantities are stored in the register.
Related Topics
If there are too many registers to fit into the display area, do one of the following:
l Use the scroll bars to view the hidden registers.
Related Topics
Registers
Units of Measure
Unless you are prompted specifically for the unit of measure, all measurements should be assumed
to be in SI base units, not model units.
Related Topics
Registers
Stack Commands
Use these commands to manipulate the registers in the calculator stack.
Push
Reloads the quantity in the top register onto the top of the stack, creating a new register. The
contents of the top two registers are identical.
Pop
Deletes the top register from the stack.
RlUp
Rolls the top register to the bottom of the stack, moving the other registers up the stack.
RlDn
Rolls the bottom register to the top of the stack, moving the other registers down the stack.
Exch
Exchanges the top two registers in the stack.
Clear
Clears the contents of the stack.
Undo
Use this command to undo the effect of the last operation you performed on the contents of the top
register. Successive Undo commands act on any previous operations.
Note You cannot undo a simple operation such as loading a field quantity, constant, function, or
geometry into the calculator. Instead, use the Pop or Clear commands to delete these
items from the calculator stack.
Related Topics
Input Commands
Use the following commands to load data onto the top of the calculator stack:
These quantities can be manipulated using the Stack commands, General commands, Scalar
commands, and Vector commands. The results of these calculations can then be examined using
the Output commands.
Related Topics
Quantity Command
The Quantity command loads a field quantity into the top register of the calculator. The quantities
available depend upon the solution and design type. These are the same field quantities available for
plotting from the Maxwell3D>Fields and Maxwell2D>Fields menu.
Related Topics
Geometry Command
The Fields Calculator Geometry command opens a dialog that lets you select a geometry to load
into the top register of the calculator. Do this to:
l Find the value of derived field quantities on any point, line, surface, or volume.
l Display a previously defined isosurface, maximum or minimum field point using the Draw
command.
The following types of geometries are available:
Point - See drawing a point object. Points you draw are listed in the history tree, and in the
Calculator Geometry dialog when you select Point.
Line- See drawing a line object. Lines you draw are listed in the history tree, and in the Calculator
Geometry dialog when you select Line. To set the number of points on a line, see Geom Settings.
Surface - Sheet objects and face lists which you can make, are listed under surface in the history
tree and in the Calculator Geometry dialog when you select Surface.
Due to the ambiguity of the normal vector of a sheet, the result may require a multiplication by ( 1 )
or ( -1 ).
Volume - 3D objects, Regions, and object lists of 3D objects including AllObjects are available in
the Calculator Geometry dialog when you select Volume.
Coord -Coordinate systems are available in the Calculator Geometry dialog when you select
Coord.
Related Topics
Constant Command
The Constant command loads one of these predefined constants or a conversion constant into the
top register of the calculator:
Pi π = 3.14159265358979
Epsi0 The permittivity of free space, ε0 = 8.85418782 x 10–12 F/m.
Mu0 The permeability of free space, µ0 = 4π x 10–7 H/m.
C The speed of light in vacuum, c = 2.99792458 x 108 m/s.
conversion Displays the Enter Units Conversion Factor dialog box. This dialog box lists a
constant range of Quantities (such as frequency, resistance, and others) along with a list of
Units (Hz to Thz, and rps) to convert From and To. The ratio of the Units from to the
Units to is displayed for the selected values as the Conversion Factor.
Related Topics
Number Command
The Number command enters one of the following into the top register of the calculator:
Related Topics
Function Command
Any functions you use must be defined before using this operation.
Enters one of the following into the top register of the calculator:
Note l The predefined variables X, Y, Z, RHO, THETA, R, and PHI and any functions that
you created can be used to define functional scalar and vector quantities.
l Use of the Global Coordinate System is assumed. Local coordinate systems are not
used.
Related Topics
Geometry Settings
Clicking the Geom Settings button opens the Geometric Settings dialog box. The dialog box
allows you to specify the line discretization, the number of equally-spaced points used to integrate
fields and other quantities on a line. The default is 1000 points.
To set the line spacing for geometry settings:
1. In the Fields Calculator, click Geom Settings.
The Geometry Settings dialog box appears.
2. Enter a value in the Line Discretization box, and click OK.
Related Topics
This command copies the contents of a disk file into the top register. The register must be one that
has been saved using the Write output command.
To read an external input into the register:
1. Click Read.
The Open dialog box appears.
2. Use the file browser to specify the register’s file name and directory path. A .reg extension is
automatically assumed for register files, and click Open.
The contents of the file are copied to the top register in the stack.
Related Topics
General Commands
Use these Fields Calculator commands to perform operations on both vector and scalar quantities.
+ (Add) / Smooth
(Divide)
- Neg Complex
(Subtract)
* (Multiply) Abs Domain
+ (Add)
Adds the quantities in the top two registers of the calculator.
– (Subtract)
Subtracts the quantity in the top register from the quantity in the second register. The two
registers must hold the same type of quantity (both scalar or both vector). You cannot subtract
a scalar from a vector (or vice versa).
* (Multiply)
Multiplies the quantity in the top register by the quantity in the second register. One of the two
registers must contain a scalar value; the other register can be either a scalar or a vector.
/ (Divide)
Divides the quantity in the second register by the quantity in the top register. The second
register must contain a scalar value; the top register can be either a scalar or a vector.
Neg
Changes the sign of the quantity in the top register.
Abs
Takes the absolute value of the quantity in the top register.
Smooth
Smooths the quantity in the top register. Because of the numerical solution technique used,
field values are not always continuous across the boundaries of the individual elements that
make up the finite-element mesh. Smoothing makes the values continuous. In general, use
smoothing before plotting a quantity.
Complex
These commands perform operations on a complex quantity in the top register. Complex
quantities are indicated by a C at the beginning of the register label. They can be represented
in terms of real and imaginary components, or in terms of magnitude and phase:
where:
l A is the real part of the complex number.
2 2
l M is its magnitude, which is equal to sqrt(A + B ).
where
l ω is the angular frequency at which the quantities are oscillating, specified
Entering the phase angle lets you compute the real part of the field's magnitude at
different points in its cycle.
CmplxReal Converts the real scalar of the top register to the real part of a complex number.
CmplxImag Converts the real scalar of the top register to the imaginary part of a complex
number.
ComplxPeak Calculates the peak value of a given complex vector. Intuitively, this calculates the
maximum magnitude of the equivalent real vector in a waveform.
Domain
This limits a calculation to the volume you specify. The domain filter works for scalars, vectors,
complex scalars and complex vectors. This operation requires the top two entries of the stack
to be a volume geometry and a numeric field quantity. To do this:
1. Load the field quantity into the top register, and perform any necessary operations on it.
2. Load the volume using the Geometry command.
3. Click Domain.
The Domain command is often used to limit a calculation or plot to the intersection of a surface
and an object or group of objects. If you export a domain filtered numeric, points that are
filtered out by the domain will not be written out.
Related Topics
Scalar Commands
Use these commands to perform operations on scalar quantities.
Vec? Makes the scalar quantity in the top register a vector component.
1/x Takes the inverse of the scalar quantity in the top register.
Pow Raises a scalar quantity to the power you specify.
Square Takes the square root of the quantity in the top register.
Root
Trig Takes a trigonometric value of the value in the top register of the calculator stack.
d/d? Takes the partial derivative of the quantity in the top register with respect to x, y, or z as
chosen in the pull-down menu.
Integral Takes the integral of a scalar quantity over a volume, surface, or line.
Min Computes the minimum of a scalar field quantity on a line, surface, or volume.
Max Computes the maximum of a scalar field quantity on a line, surface, or volume.
Gradient Computes the minimum of a scalar field quantity on a line, surface, or volume.
Ln Calculates the log (base e) value.
Log Calculates the logarithmic value (base 10).
Related Topics
Vec? Command
Makes the scalar quantity in the top register a vector component. Choose from the following:
Related Topics
Related Topics
Pow Command
Related Topics
Related Topics
Trig
Takes one of the following trigonometric values of the value(s) in the top register(s) of the calculator
stack:
Sin Sine.
Cos Cosine.
Tan Tangent.
ASin Arcsine.
ACos Arccosine.
ATan Arctangent.
ATan2 A two-argument version of the ATan function. Takes the y and x coordinates of the point
(in the top two stack registers).
Related Topics
Scalar Commands
d/d? (Partial Derivative) Command
Takes the partial derivative of the quantity in the top register:
Related Topics
(Integral) Command
Takes the integral of a scalar quantity over a volume, surface, or line. The top register must contain a
geometry, and the second register must contain the scalar quantity to be integrated.
To perform an integration:
1. Load a quantity into the top register of the calculator, and perform any required operations on
it.
2. Use one of the Geometry commands to load the line, surface, or volume over which the
quantity is to be integrated.
Note If you computed the tangent or normal of the quantity to be integrated, you do not
have to load a geometry onto the calculator stack. Maxwell integrates the tangential
or normal component of the quantity over the line on which you computed its
tangent, or the surface on which you computed its normal.
3. Click the Integral command to integrate the scalar quantity over the geometry. In 2D designs,
you must further select either XY or RZ.
To find the numerical results of an integration, use the Eval command.
Note In Maxwell2D, the Fields Calculator accounts for the difference between XY and RZ
models when handling data and results. The integral command will perform an XY integral
on the model assuming a 1 meter depth, while for an RZ model it will perform an integral on
the 360 degree equivalent volume.
Related Topics
Min Command
Computes the minimum of a scalar field quantity on a line, surface, or volume. Two options are
available:
command.
l Plot basic field quantities at the point.
These commands operate in the same way as the Max commands. Use the Eval command to
display the actual minimum field value or the coordinates of the point where it occurs.
Related Topics
Max Command
Computes the maximum of a scalar field quantity on a line, surface, or volume. Two options are
available:
1. Load a field quantity into the calculator, and perform any necessary operations on it. Keep the
following in mind:
l You cannot find the maximum value of a vector quantity. Therefore, make sure that the
result is a scalar.
l Before computing the maximum value of a complex quantity, you must convert it to a scalar
Use the Eval command to display the actual maximum field value or the coordinates of the point
where it occurs.
Related Topics
(Gradient) Command
Related Topics
Ln Command
Takes the natural logarithm (base e) of the scalar quantity in the top register.
Related Topics
Log Command
Takes the logarithm (base 10) of the scalar quantity in the top register.
Related Topics
Vector Commands
Use these commands to perform operations on vector quantities.
Scal? Replaces the vector in the top register with a scalar quantity that is a component of the
vector.
Matl Multiplies or divides the vector field quantity in the top register by a material property.
Mag Takes the magnitude of the vector quantity in the top register. The magnitude of a
complex vector is defined to be the length of the real vector resulting from taking the
modulus of each component of the original complex vector.
Dot Takes the dot product of the vector quantities in the top two registers
Cross Takes the cross product of the vector quantities in the top two registers.
Divg Takes the divergence of the vector quantity in the top register.
Curl Takes the curl of the vector quantity in the top register.
Tangent Computes the tangential component of a vector quantity along a line.
Normal Computes the normal component of a vector quantity on a surface such as a cutplane or
object surface.
Unit Computes the normal or tangent unit vector. The unit vector is a "wild card" entry. The
Vec context is specified at the time of plotting, integrating, or report generation.
XForm Transforms the vector quantity in the top register from Cartesian coordinates into either
Spherical or Cylindrical coordinates
Scal? Command
Replaces the vector in the top register with a scalar quantity whose value is a component of the
vector. Choose from the following:
Related Topics
Matl Command
Multiplies or divides the vector field quantity in the top register by a material property. At each
tetrahedron, the field quantity is multiplied or divided by the value of the selected material property —
taking the different material attributes of each object into account.
To multiply or divide a vector quantity by a material property:
1. Click Matl.
The Material Operation dialog box appears.
2. Select a property from the Material Properties list. Options include the following, depending
on what solution type is assigned:
l Permeability (mu): defined as µ0µr
Related Topics
Mag Command
Takes the magnitude of the vector quantity in the top register. The magnitude of a complex vector is
defined to be the length of the real vector resulting from taking the modulus of each component of the
original complex vector.
With a complex vector on the calculator stack, the Mag button returns a nonnegative scalar. In
previous software versions, this command returned a complex scalar.
Related Topics
Dot Command
Takes the dot product of the vector quantities in the top two registers.
Related Topics
Cross Command
Takes the cross product of the vector quantities in the top two registers.
Related Topics
Divg Command
Related Topics
Curl Command
Related Topics
Tangent Command
Related Topics
Normal Command
Computes the normal component of a vector quantity on a surface such as a cutplane or object
surface. This is the equivalent of taking the dot product of the quantity with the surface's unit normal
vector:
Related Topics
Computes the normal or tangent unit vector. The unit vector is a "wild card" entry. The context is
specified at the time of plotting, integrating, or report generation.
Select from the following:
Tangent Computes the unit vector tangent to the line in the top register of the calculator stack.
Normal Computes the unit vector normal to the surface in the top register of the calculator
stack.
CoordSys Computes the unit vector in the X-dimension of the relative coordinate system in the
(X) top register of the calculator stack. Add the relative CS as a geometric object using the
Geometry/Coord command.
CoordSys Computes the unit vector in the Y-dimension of the relative coordinate system in the
(Y) top register of the calculator stack. Add the relative CS as a geometric object using the
Geometry/Coord command.
CoordSys Computes the unit vector in the Z-dimension of the relative coordinate system in the
(Z) top register of the calculator stack. Add the relative CS as a geometric object using the
Geometry/Coord command.
Related Topics
XForm Command
Fields are defined in the Cartesian coordinate system. In many applications it is much more
convenient to use a cylindrical or spherical coordinate system – for example, when the object is of
cylindrical or spherical shape. The XForm command allows the user to transform vectors into either
the cylindrical or spherical coordinate system.
Select from the following:
ToSpherical Transforms the vector in the top register of the calculator stack into the spherical
coordinate system. An Offset Values pop-up window allows the user to enter X,
Y, and Z offsets to be used as the origin of the new coordinate system. Clicking OK
applies the coordinate transformation to the vector quantity on the calculator stack.
ToCylindrical Transforms the vector in the top register of the calculator stack into the cylindrical
coordinate system. An Offset Values pop-up window allows the user to enter X,
Y, and Z offsets to be used as the origin of the new coordinate system. Clicking OK
applies the coordinate transformation to the vector quantity on the calculator stack.
Related Topics
Output Commands
Use these commands to compute or evaluate expressions and to output the data in the calculator.
command
Write Saves the contents of the top register to a disk file.
command
Export Saves field quantities in a format that can be read by other modeling or post-
command processing software packages.
Related Topics
Value Command
l The x-, y-, and z-components of a vector field quantity at that point.
Clicking the Value command changes the display to the following, showing the intermediate
SurfaceValue function.
In this case SurfaceValue provides the x, y, z, coordinates of the FEM mesh and Lagrangian points
so you can use Write to generate an .fld file containing an evaluated scalar quantity at those points.
In general for Value:
Related Topics
Eval Command
This command numerically evaluates and displays the results of calculator operations such as
integrations, maximum or minimum field computations, field values at points, and so forth. The
quantity to be evaluated must be in the top register. The Eval command computes the numerical
results of the operation, which replace the contents of the register.
For instance, to find the current around a loop, you must numerically evaluate the following integral
Related Topics
Write Command
This command saves the contents of the top register to a disk file. Use this command to:
l Save registers for use during a later post-processing session.
l Save a field quantity for use when post processing a different model.
Note Use of the Global Coordinate System is assumed. Local coordinate systems are not
used.
To save a register:
1. Click Write.
2. If the register includes numeric with a constrained quantity (such as jsurf), you see a dialog
that gives a choice of constraining geometries. For example:
Related Topics
Export Command
This command opens the Export Solution dialog, from which you can export the field quantity in the
top register to a file, mapping it to a grid of points. Use this command to save field quantities in a
format that can be read by other modeling or post-processing software packages. Two options are
available for defining the grid points on which to export:
Input grid Maps the field quantity to a customized grid of points. Before using this command, you
points must create a file containing the points and units.
from file
Calculate Maps the field quantity to a three-dimensional cartesian grid. You specify the
grid dimensions and spacing of the grid in the x, y, and z directions, with units that you
points specify. The initial units are taken from the model.
Note Use of the Global Coordinate System is assumed. Local coordinate systems are not
used.
To export a field quantity to a customized grid:
1. Load the quantity into the top register for the fields calculator, and perform any operations on
it.
2. If desired, load a volume using the Geometry command.
You can use the Domain command to limit the calculation to the volume you specify. If you
export a Domain filtered numeric, points that are filtered out by the domain will not be written
out.
3. Click the Export button in the Fields Calculator.
This opens the Export Solution dialog.
4. Type or select the name of the file in which the field quantity is to be saved in the Output File
Name text box. You can use the file icon to open the file browser to specify the file name and
directory path. A .reg extension is automatically assigned to this file.
5. Click either the Input grid points from file button if you have a created a .pts file containing
the grid points, or click the Calculate grid points button.
l If you select Input grid points from file, either type the name and directory of the file
containing the points on which the field is to be mapped, or, click on the file icon and use the
file browser to locate the point file (.pts extension).
Note By default, the field calculator uses SI units. Optionally, you can also specify the
units that you want while exporting. Add a line in the beginning of the .pts file to
specify the units. For example, if you want to use mm, a sample file would like
this:
Unit=mm
-5.5 -5.5 -5.21475
Related Topics
Click on a named expression to select it. When a named expression has been selected, the Copy to
Stack button is activated. Click Copy to Stack to push the expression on the top of the stack.
Related Topics
Named Expressions
Named Expression Library
to move it to the calculator stack, where you can use it to generate calculated outputs.
To delete named expressions that you added:
When the Named Expression list contains one or more user-defined expressions, the Delete and
Clear All buttons are active (you cannot delete or clear the predefined named expressions.)
l To delete the selected user-defined named expression, click Delete. To delete all user-
2. If any new named expressions exist, you can select one or more to save to a file.
3. Give a file name, and click OK to save the file.
To load named expressions for the Fields Calculator from a personal library:
1. From the Fields Calculator, click Load From.
This displays a file browser that you can use to search for existing .clc files.
2. Select the library to load and click OK.
This loads the expression file you have selected.
Related Topics
Related Topics
Related Topics
You can also click Maxwell 2D or Maxwell 3D>Fields>Modify Plot Attributes , after
which the Select Folder window appears. Select the folder containing the mesh plot you
want to modify, and then click OK to display the Mesh Plots dialog.
For Mesh plots, the following attributes can be modified:
Grid.
Mesh Color The color for the tetrahedra edge lines and fill. Clicking the button for each
for Line and displays a color selection dialog.
Fill
Surface Only Whether to plot the surface only, or all tetrahedra inside selected objects.
Real Time Whether to show changes to a mesh in real time.
2. Click the Save as default button if you want the tab’s settings to apply to mesh plots created
after this point.
3. Select Real time mode if you want the changes to take effect immediately in the view
window.
If this option is cleared, click Apply when you want to see the changes.
4. Click Close to dismiss the dialog box.
Related Topics
Related Topics
Related Topics
Related Topics
have data that is a function of m intrinsic variables, with n and m potentially being different. UDOs
allow reducing any number of these intrinsic variables e.g in above example UDO calculations can
be function of any number of intrinsic variables including not being function of any intrinsic variable at
all. UDO calculations can also be a function an intrinsic variable that none of the probes is function of.
The only restriction is that Freq cannot be reduced if any of the probes are on a Fields
report type.
Related Topics
Dynamic Probes
In addition to named probes and properties, UDOs can specify named dynamic probes. The
difference between probes and dynamic probes is that while the end-user of UDO specifies the
complete trace definition for probe, the expression for dynamic probe is specified by UDO code itself
and not by the end-user. This allows UDOs to access the data for probes without having the end-
user enter each individual probe. For example a UDO can access data for a huge S matrix for a 100
port design without requiring the end-user to enter the probe information for each of those 10,000
quantities. Each dynamic probe is associated with a named probe that is entered by the user; and
information about solution, context, and intrinsic variables is used from user-selected probe.
However multiple dynamic probes can be associated with the same user-selected probe. The
dynamic probes are enquired from UDOs at the time of trace computation and not at the time of
creation of user-defined solution.
This means that you select solution, context, and values of intrinsic variables just once; and the same
information is used (in this case) for all clock and data signals. The expression for those signals
comes from the UDO code.
Related Topics
Related Topics
Related Topics
Import Statements
The base class to be used and the types it uses in turn are contained in .NET assemblies. The use of
these requires that the assemblies be imported into the UDO script: the following import statements
should be added to the top of the python script:
from Ansys.Ansoft.ModulePluginDotNet.Common.API import *
from Ansys.Ansoft.ModulePluginDotNet.Common.API.Interfaces import *
from Ansys.Ansoft.ModulePluginDotNet.UDO.API.Interfaces import *
from Ansys.Ansoft.ModulePluginDotNet.UDO.API.Data import *
Related Topics
UDOExtension Class
The UDO itself should be implemented as an IronPython class called UDOExtension which must
derive from the IUDOPluginExtension abstract base class (from the
Ansys.Ansoft.ModulePluginDotNet.UDO.API.Interfaces namespace).
Note that power users could derive a class hierarchy tuned toward a specific type of UDOs and that
they can derive from their own base classes. The only requirement is that directly or indirectly, the
UDO class must derive from IUDOPluginExtension.
Example:
def BaseClassUDO ((IUDOPluginExtension):
#base class implementation
…
def UDOExtension ((BaseClassUDO):
#UDO class implementation
…
Related Topics
The implementation of the IUDOPluginExtension class will be described in this section using a
simple UDO example that expects a single probe and reduces its dimension returning as its outputs,
the max, min and average of its input probe data. The script in its entirety will also be listed later on.
Required functions:
The IUDOPluginExtension abstract class declares the following abstract methods that must be
implemented in the UDOExtension class or one of its base classes. Not implementing any of these
methods will result in a run-time error and a non functioning UDO. The UDS refers to user Defined
Solution parameters.
GetUDSName()
GetUDSDescription()
GetUDSSweepNames()
GetCategoryNames()
GetQuantityNames(string categoryName)
GetQuantityInfo(string quantityName)
GetInputUDSParams(List<UDSProbeParams> udsParams,
GetDynamicProbes(List<UDSDynamicProbes> dynamicProbes);
Compute(IUDSInputData inData,
Related Topics
GetUDSName()
l Purpose: Return a string that is used as a prefix for all solution instances created using this
UDO.
l Returns: string.
Example:
def GetUDSName(self):
return "MinMaxAvg
Related Topics
GetUDSDescription()
l Purpose: Returns a description for the UDO, its purpose etc. This is used in multiple UDO
related dialogs in the application to describe the UDO.
l Returns: string.
Example:
def GetUDSDescription(self):
Related Topics
GetUDSSweepNames()
l Purpose: Returns a list of sweep names to be used for the solution generated by the UDO.
These will appear in the sweeps list displayed in the standard reporter dialog when used to
create reports from the solution generated by the UDO.
l Returns: list of strings. If the UDO outputs have no sweeps, return the empty list [].
Example:
# Returns list of sweeps names
# We have no sweeps as we reduce them.
def GetUDSSweepNames(self):
return []
Related Topics
GetCategoryNames()
l Purpose: The outputs that the UDO solution provides/generates can be classified into
multiple categories (like how the application does as displayed in the report creation dialog).
These will be listed in the categories box in the dialog when creating reports from the UDO
generated solution data.
l Returns: list of strings.
Example:
def GetCategoryNames(self):
return ["UDOOutputs"]
Related Topics
GetQuantityNames(string categoryName)
l Purpose: For each of the category names returned from the GetCategoryNames method,
this function is called to return a list of quantities to be organized under that category name.
Note that the quantity names must be unique across the categories: that is, no two
categories can have quantities with the same name.
l Parameters:
l categoryName (input python string) - category name.
if catName == "UDOOutputs":
else:
return []
Related Topics
GetQuantityInfo(string quantityName)
l Purpose: For each quantity that the UDO creates, it must also describe the quantity (unit and
other details). This method is called for each quantity name (across all categories) as returned
from an earlier call of the GetQuantityNames method.
l Parameters:
l quantityName (input string) - quantity name.
return QuantityInfo(Constants.kDoubleParamStr)
Related Topics
GetInputUDSParams(List<UDSProbeParams> udsParams,
IPropertyList propList,
List<UDSProbeParams> userSelectionForDynamicProbes)
l Purpose: This is the main definition part of the UDO. The supplied arguments are used to
populate details of the parameters to which the UDO user will specify value, specify the probe
names and their types as well as the dynamic probe selections.
l Parameters:
l udsParams - .NET list of UDSProbeParams objects: The UDO script is expected to add
one instance of UDSProbeParams for each probe definition it wants displayed. The UDO
user will, when creating the UDO solution assign a matching quantity to each such probe.
l propList - IPropertyList object: The propList object is used to add properties that should be
displayed to the user for data collection. These properties with the user supplied values will
be returned to the UDO script in the Compute methods.
l userSelectionForDynamicProbes - .NET list of UDSProbeParam objects.
param1 = UDSProbeParams("probe1",
udsParams.Add(param1)
return True
The above function results in the following dialog when you click Reports>Create User Defined
Solution. The mapping from the UDSParams and the properties to the GUI elements should be
unambiguous. The name and description of the UDS are also displayed in this dialog.
When a report is created from the UDO dialog, the category/quantity names specified by the UDO
are used (as shown below).
Related Topics
GetDynamicProbes(List<UDSDynamicProbes> dynamicProbes);
pass
Related Topics
Compute(IUDSInputData inData,
IUDSOutputData outData,
IPropertyList propList,
IProgressMonitor progressMonitor)
l Purpose: This is the main computation method which generates the data for the quantities
that make up the UDO solution.
l Parameters:
l inData - UDSInputData object: Used to get the input probe data.
l outData - UDSOutputData object: Used to set the UDO solution quantity and sweep data.
l propList - IPropertyList object: Used to get the user entered values for each of the
properties defined during the GetInputUDSParams call.
l progressMonitor - IProgressMonitor object. This can be used to set progress for long
return False
# an index and the array notation could also have been used
avgSum += probeVal
count += 1
if seenAny:
avgVal = avgSum/count
else:
seenAny = False
avgSum = 0
for probeVal in probeData:
if not seenAny:
minVal = probeVal
maxVal = probeVal
avgSum = probeVal
seenAny = True
else:
if probeVal < minVal:
minVal = probeVal
avgSum += probeVal
if seenAny:
avgVal = avgSum/probeData.Count
# Finally set the output values. Note that these are always set as
outData.SetDoubleQuantityData("min_val", [minVal])
outData.SetDoubleQuantityData("max_val", [maxVal])
outData.SetDoubleQuantityData("avg_val", [avgVal])
return True
Related Topics
Related Topics
Validate(List<string> errorStringList,
List<UDSProbeParams> udsProbParams,
IPropertyList propList,
List<UDSProbeParams> userSelectionForDynamicProbes)
l Purpose: This method is used to validate the user choices. The values of the properties
entered, the probes etc. can be checked for suitability.
l Parameters:
l udsProbParams - C# list of UDSProbeParams objects.
l errorStringList - C# list of python strings. Output parameter. Should be set only if validation
failed; ignored if validation is successful. One error string should be set per each validation
error.
l Returns: True on validation success, False on failure.
l Default implementation: always returns true.
Example:
def Validate(self, errorStringList,probeList,propList, dynamicProbes):
return True
Related Topics
Constants class
kTraceTypeStr : string constant used to specify an input of trace type
kSolutionTypeStr : string constant used to specify an input of solution type
kNumberTypeStr : string constant used to specify an input of number type
kTextTypeStr : string constant used to specify an input of text type
kBoolTypeStr : string constant used to specify an input of boolean type
kStandardReportStr : string constant to specify a standard report
kEyeDiagramReportStr : string constant to specify an eye diagram report
kUserDefinedReportStr : string constant to specify a user defined report
kSweepDomainStr : string constant to specify the sweep domain
kTimeDomainStr : string constant to specify the time domain
UDDInputParams class
The objects of this class must be created in python script in the GetUDDInputParams() function
and the SetUDDInputParams() function.
Attributes :
Input Name (string)
Input Description (string)
Input Type ( Can be Boolean, Number, Text, Trace or Solution) (string)
BoolData (boolean)
DoubleData (double)
TextData (string)
ReportType (string)
SolutionName (string)
DomainName (string)
Constructors:
UDDInputParams(string name, string description, string type)
UDDInputParams(string name, string description, string type, bool data)
UDDInputParams(string name, string description, string type, double data)
UDDInputParams(string name, string description, string type, string data)
UDDInputParams(string name, string description, string type, string reportType, string
solutionName, string domainName)
Property Accessors :
Name : Get/Set the name of an input
Description : Get/Set the desccription of an input
Type : Get/Set the type of an input
BoolData : Get/Set the data of a boolean input
DoubleData : Get/Set the data of a number input
TextData : Get/Set the data of a text input
ReportType : Get/Set the report type
SolutionName : Get/Set the name of the solution
DomainName : Get/Set the name of the domain
progMon.SetTaskProgressPercentage(33)
progMon.SetSubTaskName("Compute the rest")
progMon.SetTaskProgressPercentage(100)
progMon.EndTask(True)
IUDSInputData
The purpose of this class is to get data (probe and sweep) from Desktop.
Examples in this section are just to show proper syntax of the function calls. For actual usage of the
class see Compute function example.
GetDoubleProbeData(probeName)
GetSweepsDataForProbe(probeName, sweepName)
GetComplexProbeData(probeName)
GetSweepNamesForProbe(probeName)
GetRequiredQuantities()
GetVariableValues()
GetInterpolationOrdersData(probeName);
Related Topics
GetDoubleProbeData(probeName)
l Purpose: This is the primary mechanism by which the UDO script obtains the probe data (as
double precision values) for its compute process.
l Parameters:
l probeName: string representing the probe name for which data is requested. This has to be
one of the many probes supplied during a call to the UDO's GetInputUDSParams method.
l Returns: .NET double Array of data for the specified probe if the probe exists or null if the
probe is unknown.
Example:
# doubleData is a list of floats
doubleData = inData.GetDoubleProbeData("probe1")
Related Topics
GetSweepsDataForProbe(probeName, sweepName)
l Purpose: All probe data that is supplied is associated with one ore more sweep (an intrinsic
quantity like Time, Frequency, Theta, Phi etc that is swept) quantities.
l Parameters:
l probeName - probe name for which which want the sweep data
l Returns: .NET double Array of data for the specified probe and sweep.
Example:
# sweepData is C# Array of doubles (floats in python)
sweepData = inData.GetSweepsDataForProbe("FarFieldsProbe","Freq"])
Related Topics
GetComplexProbeData(probeName)
l Purpose: The primary mechanism by which the UDO retrieves data for its input probes (if it
expects complex data for the probe).
l Parameters:
l probeName - probe name for which complex data is requested
l Returns: .NET double Array (float in python) of data for the specified probe. Each pair of
floats represent one complex number: first value is for real part, second value for imaginary
part. For instance, array [10.0, 0, 5.1, 2.1] represents 2 complex numbers: (10.0, 0) and (5.1,
2.1).
Example:
# complexDataAsDouble is C# Array of doubles (floats in python)
# each pair of floats represents one complex number
complexDataAsDouble = inData.GetComplexProbeData("FarFieldsProbe")
# creating a list of complex numbers from complexDataAsDouble array
complexData = []
if complexDataAsDouble != None:
for i in xrange(0,complexDataAsDouble.Count , 2):
complexData.append(complex(complexDataAsDouble[i],complexDataAsDouble[i+1]))
Related Topics
GetSweepNamesForProbe(probeName)
l Purpose: To obtain the list of sweep quantity names associated with a given probe. This also
indicates the dimensionality of the data. One name implies that the probe-data is 2D (probe-
quantity vs Sweep Quantity) and two names implies 3D data ( probe-quantity vs Sweep 1 X
Sweep 2).
l Parameters:
l probeName - probe name.
l Returns: .NET IList<string> - list of sweep names for the current probe name.
Example:
# sweepNames is C# Array of strings
sweepNames = inData.GetSweepNamesForProbe("FarFieldsProbe")
Related Topics
GetRequiredQuantities()
l Purpose: A given UDO can specify that it provides one of more computed quantities. The
user might choose to create a report from only a few among the various available UDO
outputs. This function, returns that list of the UDO output quantities that the user has
requested. Only these need be computed in the UDO's compute method.
l Returns: .NET IList<string> - list of required quantities names.
Example:
# quantities is C# Array of strings
quantities= inData.GetRequiredQuantities()
Related Topics
GetVariableValues()
l Purpose: This allows the UDO to obtain the names and values of all the design variables for
which the UDO quantities are being requested.
l Returns: .NET IDictionary<string,string> of key-value pairs for variables. Both key and value
are strings.
Example:
# theDict is C# Dictionary<string, string>
theDict = inData.GetVariableValues()
if theDict != None:
Related Topics
GetInterpolationOrdersData(probeName);
l Purpose: Returns the interpolation orders that are associated with the probe-data. The probe
data is specified at each value of the various sweeps. Any value in between the sweep data
points, can use the interpolation data to get a possibly more accurate (compared to linear
interpolation) inter-sweep value.
l Parameters:
l probeName (input python string) - probe name.
l Returns: NET byte Array of interpolation order for the specified probe. These are to be
treated as 8bit signed integers, that is, their values range from 0-127.
Example:
# interData is C# Array of bytes (integers in python)
interData = inData.GetInterpolationOrdersData(kProbeNames[0])
Related Topics
IUDSOutputData
This type is a twin of the IUDSInputData in that it is used to store the values computed by the UDO's
compute method.
Examples in this section are just to show proper syntaxis function calls. For actual usage of the class
see the Compute function example.
SetSweepsData(sweepName, sweepData)
SetDoubleQuantityData(qtyName,qtyData)
SetComplexQuantityData(qtyName, qtyData)
Related Topics
SetSweepsData(sweepName, sweepData)
l Purpose: Each quantity that is computed by the UDO can be associated with a sweep. If it is,
the values that make up the sweep's data points must be specified using this call.
l Parameters:
l sweepName (string) - sweep name.
l sweepData (python list of floats) - sweep data for the specified sweep.
Related Topics
SetDoubleQuantityData(qtyName,qtyData)
l Purpose: This method is used to record the computed quantity data for each output that is
computed. Please note that unless all the sweeps are reduced, this should be used in
conjunction with SetSweepsData
l Parameters:
l qtyName (string) - quantity name.
l qtyData (python list of floats) - quantity data for the specified quantity.
Related Topics
SetComplexQuantityData(qtyName, qtyData)
l Purpose: If the quantity computed is a complex quantity, use this method to set the quantity
values. Any sweep values must be set separately via the SetSweepsData method.
l Parameters:
l qtyName (string) - quantity name.
l qtyData (python list of floats) - quantity data for the specified quantity. Complex numbers
doubleFromComplexList.append(aComplex.imag)
doubleFromComplexList.append(aComplex.real)
Related Topics
Related Topics
Attributes:
Attributes:
l Name (string)
l Description (string)
Constructor:
l IProperty(string name, EPropType type)
The class is used as base class for INumberProperty, IMenuProperty, and ITextProperty.
Base class:
l abstract class IProperty
Attributes:
l ValueSI (read-only double)
Constructor:
l INumberProperty(string name)
Functions:
l Set(string numberWithUnits)
Base class:
l abstract class IProperty
Attributes:
l Text (string)
Constructor:
l ITextProperty(string name)
Base class:
l abstract class IProperty
Attributes:
l MenuSelection (int): This represents the index into the MenuChoices list.
l SelectedMenuChoice (string): This is the item in the MenuChoices list corresponding to the
MenuSelection index
l MenuChoices (IList<string>)
Constructor:
l IMenuProperty (string name)
Example:
Related Topics
Constants Class
The constants used in python script are defined in the Constants class.
Attributes:
l kDoubleParamStr : string constant used to specify double as the type of a quantity
Related Topics
UDSProbeParams Class
The objects of this class must be created in python script in GetInputUDSParams function. They
are supplied to the Validate function if implemented.
Attributes:
l ProbeName (read-only string)
l kDoubleParamStr
l kComplexParamStr
Example:
udsProbParam = UDSProbeParams("probe1","", Constants.kDoubleParamStr, "", "",)
Related Topics
UDSDynamicProbes Class
Attributes:
l UDSParam (read-only UDSProbeParams)
l userSelectedProbeName - required
Example:
udsProbParam = UDSProbeParams("probe1","", Constants.kDoubleParamStr, "", "",)
selectedName = "probe1"
udsDynamicProbParam = UDSDynamicProbes(udsProbParam , selectedName )
Related Topics
QuantityInfo Class
Attributes:
l ParamType (read-only string)
Constructors:
l QuantityInfo(string paramType)
l QuantityInfo(string paramType, string fullUnitType)
l Parameters:
l paramType can be one of the Constants
kDoubleParamStr
kComplexParamStr
l fullUnitType is a case insensitive string representing full unit type. It is not defined in
Constants. Instead you can use any of the units in string representation - for example, "mm"
or"ghz".
Example:
quantityInfo1 = QuantityInfo(Constants.kDoubleParamStr)
quantityInfo2 = QuantityInfo(Constants.kDoubleParamStr,"ghz")
Related Topics
The object of this class is a progress monitor. It is used to display calculations progress in UI and
check is the user has requested an abort of the computation.
When displayed in the application, each progress message has four items:
l A task name
l A sub-task name
All of this functionality and abort interaction is achieved using the following functions.
l SetTaskName (string taskName):
l SetTaskProgressPercentage(int progressPercent)
l CheckForAbort(): If the quantities being generated are computationally expensive, the UDO
author can periodically call this method and then call EndTask with Fail and return False.
l EndTask (bool passFail)
Example:
progMon.BeginTask("Process DQS")
progMon.SetSubTaskName("Compute UI segments")
progMon.SetTaskProgressPercentage(33)
progMon.SetSubTaskName("Compute the rest")
progMon.SetTaskProgressPercentage(100)
progMon.EndTask(True)
Related Topics
arraySize = doubleDataArray.Count
arraySize = len(doubleDataArray)
listSize = sweepsNamesList.Count
listSize = len(sweepsNamesList)
Iterating:
print sweep
for in in xrange(listSize)
print sweepsNamesList[i]
Checking for membership:
if 'Time' in sweepsNamesList:
doThis()
else:
doThat()
For .NET IDictionary, the same as for Array and IList, you can get size with 'len' or 'Count' and check
for membership of the keys using 'in'. Getting values for the keys also works the same way as in
python 'dict'.
Example
Getting size:
varValuesSize = varValues.Count
varValuesSize = len(varValues)
if 'offset' in varValues:
print varValues['offset']
Getting value:
if 'offset' in varValues:
offsetValue = varValues['offset']
As for iteration .NET Dictionary is different from python dict. While iterating, python dict will return
keys, .Net Dictionary will return .Net KeyValuePair.
Example:
Iterating:
for .Net IDictionary:
varName = varPair.Key
varValue = varPair.Value
varValue = varValues[varName]
You can use python types instead of .Net types if you prefer. For this you need to cast .Net Array and
.Net iList to python list type and .Net Dictionary to python dict type.
Casting should not be used for data arrays - it can be extremely costly for the memory usage as well
as time consuming.
Example:
aPythonList = list(dotNetArray)
aPythonList = list(dotNetList)
aPythonDict = dict(dotNetDictionary)
Related Topics
used for conditions that are not ideal but can be tolerated by the script.
l AddInfoMessage(string): Call this method to convey an informational message to the user.
This is the call to use when outputting messages for debugging purposes.
##############################################################
# Imports
##############################################################
from Ansys.Ansoft.ModulePluginDotNet.Common.API import *
from Ansys.Ansoft.ModulePluginDotNet.Common.API.Interfaces import *
from Ansys.Ansoft.ModulePluginDotNet.UDO.API.Interfaces import *
from Ansys.Ansoft.ModulePluginDotNet.UDO.API.Data import *
class UDOExtension(IUDOPluginExtension):
def __init__(self):
pass
return "MinMaxAvg"
return ["UDOOutputs"]
if catName == "UDOOutputs":
else:
return []
return QuantityInfo(Constants.kDoubleParamStr)
param1 = UDSProbeParams("probe1",
udsParams.Add(param1)
return True
pass
return []
#---------------------------------------------------------------------------------
# IUserDefinedSolutionHandle API implementation.
# Calculates output values and sets them using IUDSInputData/IUDSOutputData API.
def Compute(self, inData, outData, propList, progMon):
sweeps = inData.GetSweepNamesForProbe("probe1")
probeData = inData.GetDoubleProbeData("probe1")
# an index and the array notation could also have been used
for probeVal, sweepVal in zip(probeData, sweepData):
if sweepVal < xRangeStart or sweepVal > xRangeEnd:
pass
avgSum += probeVal
count += 1
if seenAny:
avgVal = avgSum/count
else:
seenAny = False
avgSum = 0
for probeVal in probeData:
if not seenAny:
minVal = probeVal
maxVal = probeVal
avgSum = probeVal
seenAny = True
else:
if probeVal < minVal:
minVal = probeVal
avgSum += probeVal
if seenAny:
avgVal = avgSum/probeData.Count
# Finally set the output values. Note that these are always set as
# lists even if we have just one item.
outData.SetDoubleQuantityData("min_val", [minVal])
outData.SetDoubleQuantityData("max_val", [maxVal])
outData.SetDoubleQuantityData("avg_val", [avgVal])
Related Topics
Related Topics
UserDefinedOutputs directory. Any .py files found in such Lib directories are ignored and
not displayed in the GUI as a valid UDO choice.
l For a UDO script at any given directory depth, all Lib directories in its parent directories will be
automatically added to the system include path (and so, any support script files from any Lib
directory till the top level UserDefinedOutputs directory can be imported)
Related Topics
l UserDefinedOutputs \a\Lib,
l UserDefinedOutputs \a\b\Lib
l UserDefinedOutputs\a\b\c\Lib
l clr.AddReference("com.Acme.UDOLib")
If for some reason you cannot place the .NET assemblies into a Lib directory under
UserDefinedOutputs, you need to do a couple more steps before step 3 listed above.
Import sys
sys.path.append("full path to your .NET assembly
location")
Related Topics
Toolkit
The Toolkit command in the Maxwell menu provides access to a design type-specific IronPython
script or a module-specific task. The python script provides a default but customizable UI and canned
automations. The UDD format can be adjusted/extended as needed. The default UI is a modal
dialog.
This allows Maxwell the flexibility to support changing standards or multiple standards. Similarly, you
can create new UDDs to customize the test report.
UDDs are saved in the project result directory. This type of report can be created prior to simulation,
but will only be populated when there is a solution.
Undo/Redo/Scripting is supported. If a script includes multiple commands, it takes multiple undo(s)
to revert all the changes made by the python script. Also, note that the script playback might not work
if the baseline of the design has changed.
A directory called "Toolkits" appears in the syslib, userlib, and personallib of the Maxwell installation.
You can add product specific-directories (Maxwell2D, Maxwell3D, RMxprt) in Toolkits, and each
directory contains toolkits (scripts) that are specific for that product.
Use the Maxwell>Toolkit>Update Menu command to add newly added toolkit scripts to the Toolkit
menu. Menu items for files found in <installation>/syslib will be inserted at the first level of the menu.
Related Topics
Toolkit Examples
Toolkit Examples
Maxwell includes the following toolkits for generating 2D and 3D cable bundle models:
l AutomotiveCableBundle
l Oil-GasCableBundle
d. When finished specifying all of the cable and outer jacket parameters for the bundle, click
Compute to calculate the minimal bundle diameter of the cable bundle.
Note The wire radii are adjusted downward very slightly (on the order of 0.1%) at the
end of the packing process to eliminate any residual overlaps between the wires
and to make the model easier to mesh.
Note The Circle Packing algorithm is used to compute the values. It tries to automatically pack
the conductors in the bundle tightly with a minimum of empty space between them. It
generates and tests a large number of random variations in the conductor positions and
attempts to minimize the overall diameter of the bundle.
1. To add new variables, click Variables. This opens the Edit Variables dialog box. All
variables that are already present in the project and design levels are listed. Click Add to add
a new row to create new variables.
2. Optionally, for 3D designs only, click Extrude. (The Extrude button is not present for 2D
designs.) The Extrude to 3D dialog box appears.
l Click Sweep Along Vector to extrude along the z axis. Z length is the input parameter.
Note 3D models of cables are hard to solve if the ratio of extruded length to cross-
section diameter is high.
3. Click Draw to draw the 2D or 3D cross-section geometry. A validation check is run. This
catches errors like any variable missing a value, or any parameter missing a value. For 3D
designs, if you chose to Extrude, the 3D geometry is drawn.
8. Optionally, for 3D designs only, click Extrude. (The Extrude button is not present for 2D
designs.) The Extrude to 3D dialog box appears.
l Click Sweep Along Vector to extrude along the z axis. Z length is the input parameter.
Note 3D models of cables are hard to solve if the ratio of extruded length to cross-
section diameter is high.
9. Click Draw to draw the 2D or 3D cross-section geometry. A validation check is run. This
catches errors like any variable missing a value, or any parameter missing a value. For 3D
designs, if you chose to Extrude, the 3D geometry is drawn.
The UDD python scripts must be placed in the UserDefinedDocuments directory under either of
syslib, userlib or Personallib with any subdirectory structure needed. The Lib directory can
contain python scripts that have common code that other scripts can use.
Use Results>Create Document>Update Menu to refresh the menu to include the new UDD
scripts that have been copied to syslib, userlib or Personallib, or to exclude them if they have been
deleted, after the launch of desktop.
The UDD scripts that are in syslib/UserDefinedDocuments, userlib/UserDefinedDocuments or
Personallib/UserDefinedDocuments become available through the Results >Create Document
menu.
Input Types can be of Boolean, number, text, trace or solution type. The boolean, number and text
type can be given a default value that you can interactively override when the document is created or
modified. For example, you can select a trace when you create or modify a UDD document. The
trace data is available to the user and can be accessed from the python script.
At the time of selection you can choose from the Reporter dialog, the report type (Standard, Eye
Diagram, User Defined), solution name, context and the quantity for which you want the trace data.
Input Type can also be Solution. You can select an entire solution when the document is created or
modified. The solution data in its entirety, is now available to the user and can be accessed from the
python script.
At the time of selection you can choose from the reporter dialog, the report type (Standard, Eye
Diagram, User Defined), solution name and context. A specific quantity cannot be selected since
data for all quantities in the solution are available.
(Note: The category/Quantity/Function portion of the dialog is disabled for user input)
Related Topics
the input. To view the xml and the pdf document simply choose the appropriate menu items. There is
also a menu item to save the document in a different location.
Right click on the documents folder has the menu options to Update All Documents or Delete All
Documents. It also provides the option of creating a document from here.
When the documents folder is selected, the Property window shows the following properties
l XML Schema File - File path to the XML schema file.
l XSLT StyleSheet (Html) - File path to the XSLT stylesheet file used for Html generation.
l XSLT StyleSheet (Fo) - File path to the XSLT stylesheet file used for Pdf generation.
l Fop Executable (Pdf) - File path the Fop executable used for Pdf generation.
l Clear Cache - Clears the cached XSL transform object and forces creation of a new one. (The
update of the document can use the cached transform object. But sometimes you may want to
force a recompile of the document if you change the stylesheet).
The XML, HTML and PDF generation require the XML schema file and XSLT stylesheets to
generate proper output. In addition, the PDF generation requires a FOP executable. You can use
the defaults provided in the installation or provide the file paths of your own preferred stylesheets and
fop executable installed in his machine.
Related Topics
The UDD functionality uses IronPython so we have access to all the .NET assembles. If needed, any
subset of the UDD functionality can be implemented in any .NET language and used by the UDD
script. There are simple rules to follow to achieve this.
1. Build your .NET assembly for .NET 2.0 runtime.
2. Drop the built assembly in any Lib directory upstream of the UDD script location: that is, if you
have your UDD script in C:\Users\x\PersonalLib\UserDefinedDefintions\a\b\c\myudd.py and
have a .NET assembly called com.Acme.UDDLib You can keep the .NET assembly under
l UserDefinedDefintions\Lib,
l UserDefinedDefintions\a\Lib,
l UserDefinedDefintions\a\b\Lib
l UserDefinedDefintions\a\b\c\Lib
l clr.AddReference("com.Acme.UDDLib")
If for some reason you cannot place the .NET assemblies into a Lib directory under
UserDefinedDefintions, you need to do a couple more steps before step 3 listed above.
Import sys
sys.path.append("full path to your .NET assembly location")
Related Topics
Import Statements
The base class to be used and the types it uses in turn are contained in .NET assemblies. The use of
these requires that the assemblies be imported into the UDD script: the following import statements
should be added to the top of the python script:
from
Ansys.Ansoft.DocGeneratorPluginDotNet.DocGenerator.API.Data
import *
from
Ansys.Ansoft.DocGeneratorPluginDotNet.DocGenerator.API.Interfa
ces import *
UDDExtension Class
The UDD itself should be implemented as an IronPython class called UDDExtension which must
derive from the IUDDPluginExtension abstract base class (from the
Ansys.Ansoft.DocGeneratorPluginDotNet.DocGenerator.API.Interfaces namespace).
Note that power users could derive a class hierarchy tuned toward a specific type of UDDs and that
they can derive from their own base classes. The only requirement is that directly or indirectly, the
UDD class must derive from IUDDPluginExtension.
Example:
def BaseClassUDD ((IUDDPluginExtension):
#base class implementation
…
def UDDExtension ((BaseClassUDD):
#UDD class implementation
…
Note All of the above text has been copied from the help section for the UDOs and modified for
the UDDs. Since the UDDs are modelled after the UDOs, the usage is also similar.
Required functions:
The IUDDPluginExtension abstract class declares the following abstract methods that must be
implemented in the UDDExtension class or one of its base classes. Not implementing any of these
methods will result in a run-time error and a non functioning UDD.
GetUDDName() : Return a string that is used as a prefix for all solution instances created using this
UDD.
Example:
def GetUDDName(self):
return "MinMaxAvg
GetUDDDescription() : Returns a description for the UDD, its purpose etc.
Example:
def GetUDDDescription(self):
return "Sample UDD"
ShowDefaultSetupDialog() : Returns True if the default dialog is to be shown. Return False if the
user does not want the default dialog. In this case the user might want to implement/show a
customized setup dialog.
Example:
def ShowDefaultSetupDialog(self):
return True
GetUDDInputParams(List<UDDInputParams> uddInputs) : Returns the list of inputs
parameters for the User Defined Document. Returns boolean: True on success, False on failure.
The supplied input parameters are used to populate details of the parameters to which the UDD user
will specify value, specify the input names and their types.
uddInputs: .NET list of UDDInputParams objects. The UDD script is expected to add one instance
of UDDInputParams for each input definition it wants displayed. The UDD user will, when creating
the UDD, assign a matching value to each such input.
Example:
def GetUDDInputParams(self, uddInputs)
# Boolean input
param1 = UDDInputParams("Summary","Display Summary",
Constants.kBoolTypeStr, True)
uddInputs.Add(param1)
# Text input
param2 = UDDInputParams("Name","User Name",
Constants.kTextTypeStr , "Sita Ramesh")
uddInputs.Add(param2)
# Number input
param3 = UDDInputParams("Version","Script Version",
Constants.kNumberTypeStr, 1021)
uddInputs.Add(param3)
# Solution input
param5 = UDDInputParams("DLMetrics","Data Line
Metrics",Constants.kSolutionTypeStr)
uddInputs.Add(param4)
# Trace input
param5 = UDDInputParams("DQ0","DQ0",Constants.kTraceTypeStr)
uddInputs.Add(param5)
return True
Based on the input params the following dialog is displayed when you click Reports>Create
Document. The name and description of the UDD are also displayed in this dialog.
Example:
def Generate(self, input, docgen, progMon):
# Add Section
section1 = docroot.AddSection("Summary", "Overall Results ")
# Add a table
table1 = section1.AddTable("Test Summary")
oProject = oDesktop.GetActiveProject()
if oProject != None:
projectname= oProject.GetName()
text1 = tgroup1.AddContent()
text1 .Add(0, "Project")
text1 1.Add(1, projectname)
oDesign = self.GetUDDDesignContext()
if oDesign != None:
designname = oDesign.GetName()
text1 = tgroup1.AddContent()
text1 .Add(0, "Design")
text1 .Add(1, designname)
return True
Optional functions:
SetupUDDInputParams(List<UDDInputParams> uddInputs) : Displays a customized dialog
and returns the user choices for the input params.
uddInputs- .NET list of UDDInputParams objects with values for each of them. These can be the
user choice for each input obtained through a custom dialog or some other non graphical
assignment.
We cannot process trace and solution types of input with a custom dialog because there is no way of
assigning solution data to the input without the invocation of the reporter dialog.
Example:
def SetupUDDInputParams(self, uddInputs)
udddialog = BaseExampleUDDDialog()
if udddialog.ShowDialog() == Forms.DialogResult.OK:
# Boolean input
param1 = udddialog.GetInput("Summary")
uddInputs.Add(param1)
# Text input
param2 = udddialog.GetInput("Name")
uddInputs.Add(param2)
# Number input
param3 = udddialog.GetInput("Version")
uddInputs.Add(param3)
HandleUDDEvents(List<string> eventTags) : The tags associated with the event is received
by plugin using this abstract class.
This method is the event handler for all link events set by the SetEventLink() method on a IUDDText.
Refer to the definition of the IUDDText object in the Document Generator Interface document.
Example:
def HandleUDDEvents(self, uddLinks):
if uddLinks[0] == "Open" Report":
# Get Design Name
oDesign = self.GetUDDDesignContext()
if oDesign != None:
oDesign.OpenReport(uddLinks[1])
return True
GetUDDSchema() : Returns the file path of the schema to validate the xml. This will override the
default schema used. Return string containing the full file path of the schema.
def GetUDDSchema(self):
return "C:\\Program
Files\\Ansoft\\Designer8.0\\Windows\\common\\docbook\\schema\\
xsd\\docbook.xsd"
GetUDDStyleSheetForHtml() : Returns the file path of the style sheet used to generate the html
document. This will override the default stylesheet for html. Returns string containing the full file path
of the style sheet.
def GetUDDStyleSheetForHtml(self):
return "C:\\Program
Files\\Ansoft\\Designer8.0\\Windows\\common\\docbook\\"
GetUDDStyleSheetForPdf() : Returns the file path of the style sheet used to generate the pdf
document. This will override the default stylesheet for pdf. Returns string containing the full file path
of the style sheet.
Example:
def GetUDDStyleSheetForPdf(self):
return "C:\\Program
Files\\Ansoft\\Designer8.0\\Windows\\common\\docbook\\xsl\\fo\
\docbook.xsl"
GetFopExecutable() : Returns the file path of the fop executable used to generate the pdf
document. This will override the default stylesheet for pdf.Returns string containing the full file path
of the fop executable.
Example:
def GetFopExecutable(self):
return "C:\\Program
Files\\Ansoft\\Designer8.0\\Windows\\common\\ApacheFOP\\fop-
1.0\\fop"
GetUDDAppContext() : Returns the UDD Owner (if set). This is a Dispatch wrapper that is
essentially a COM IDispatch implementation and corresponds to the IDispatch pointing to the
desktop app.
GetUDDDesignContext() : Returns the UDD Owner (if set). This is a Dispatch wrapper that is
essentially a COM IDispatch implementation and corresponds to the IDispatch pointing to the
Design.
Import Statements
The base class to be used and the types it uses in turn are contained in .NET assemblies. The use of
these requires that the assemblies be imported into the UDD script: the following import statements
should be added to the top of the python script:
from
Ansys.Ansoft.DocGeneratorPluginDotNet.DocGenerator.API.Data
import *
from
Ansys.Ansoft.DocGeneratorPluginDotNet.DocGenerator.API.Interfa
ces import *
UDDExtension Class
The UDD itself should be implemented as an IronPython class called UDDExtension which must
derive from the IUDDPluginExtension abstract base class (from the
Ansys.Ansoft.DocGeneratorPluginDotNet.DocGenerator.API.Interfaces namespace).
Note that power users could derive a class hierarchy tuned toward a specific type of UDDs and that
they can derive from their own base classes. The only requirement is that directly or indirectly, the
UDD class must derive from IUDDPluginExtension.
Example:
def BaseClassUDD ((IUDDPluginExtension):
Required functions:
The IUDDPluginExtension abstract class declares the following abstract methods that must be
implemented in the UDDExtension class or one of its base classes. Not implementing any of these
methods will result in a run-time error and a non functioning UDD.
GetUDDName() : Return a string that is used as a prefix for all solution instances created using this
UDD.
Example:
def GetUDDName(self):
return "MinMaxAvg
GetUDDDescription() : Returns a description for the UDD, its purpose etc.
Example:
def GetUDDDescription(self):
return "Sample UDD"
ShowDefaultSetupDialog() : Returns True if the default dialog is to be shown. Return False if the
user does not want the default dialog. In this case the user might want to implement/show a
customized setup dialog.
Example:
def ShowDefaultSetupDialog(self):
return True
GetUDDInputParams(List<UDDInputParams> uddInputs) : Returns the list of inputs
parameters for the User Defined Document. Returns boolean: True on success, False on failure.
The supplied input parameters are used to populate details of the parameters to which the UDD user
will specify value, specify the input names and their types.
uddInputs: .NET list of UDDInputParams objects. The UDD script is expected to add one instance
of UDDInputParams for each input definition it wants displayed. The UDD user will, when creating
the UDD, assign a matching value to each such input.
Example:
def GetUDDInputParams(self, uddInputs)
# Boolean input
return True
Based on the input params the following dialog is displayed when you click Reports>Create
Document. The name and description of the UDD are also displayed in this dialog.
Example:
def Generate(self, input, docgen, progMon):
# Add Section
section1 = docroot.AddSection("Summary", "Overall Results ")
# Add a table
table1 = section1.AddTable("Test Summary")
oProject = oDesktop.GetActiveProject()
if oProject != None:
projectname= oProject.GetName()
text1 = tgroup1.AddContent()
text1 .Add(0, "Project")
text1 1.Add(1, projectname)
oDesign = self.GetUDDDesignContext()
if oDesign != None:
designname = oDesign.GetName()
text1 = tgroup1.AddContent()
text1 .Add(0, "Design")
text1 .Add(1, designname)
return True
Optional functions:
SetupUDDInputParams(List<UDDInputParams> uddInputs) : Displays a customized dialog
and returns the user choices for the input params.
uddInputs- .NET list of UDDInputParams objects with values for each of them. These can be the
user choice for each input obtained through a custom dialog or some other non graphical
assignment.
We cannot process trace and solution types of input with a custom dialog because there is no way of
assigning solution data to the input without the invocation of the reporter dialog.
Example:
def SetupUDDInputParams(self, uddInputs)
udddialog = BaseExampleUDDDialog()
if udddialog.ShowDialog() == Forms.DialogResult.OK:
# Boolean input
param1 = udddialog.GetInput("Summary")
uddInputs.Add(param1)
# Text input
param2 = udddialog.GetInput("Name")
uddInputs.Add(param2)
# Number input
param3 = udddialog.GetInput("Version")
uddInputs.Add(param3)
HandleUDDEvents(List<string> eventTags) : The tags associated with the event is received
by plugin using this abstract class.
This method is the event handler for all link events set by the SetEventLink() method on a IUDDText.
Refer to the definition of the IUDDText object in the Document Generator Interface document.
Example:
def HandleUDDEvents(self, uddLinks):
if uddLinks[0] == "Open" Report":
# Get Design Name
oDesign = self.GetUDDDesignContext()
if oDesign != None:
oDesign.OpenReport(uddLinks[1])
return True
GetUDDSchema() : Returns the file path of the schema to validate the xml. This will override the
default schema used. Return string containing the full file path of the schema.
def GetUDDSchema(self):
return "C:\\Program
Files\\Ansoft\\Designer8.0\\Windows\\common\\docbook\\schema\\
xsd\\docbook.xsd"
GetUDDStyleSheetForHtml() : Returns the file path of the style sheet used to generate the html
document. This will override the default stylesheet for html. Returns string containing the full file path
of the style sheet.
def GetUDDStyleSheetForHtml(self):
return "C:\\Program
Files\\Ansoft\\Designer8.0\\Windows\\common\\docbook\\"
GetUDDStyleSheetForPdf() : Returns the file path of the style sheet used to generate the pdf
document. This will override the default stylesheet for pdf. Returns string containing the full file path
of the style sheet.
Example:
def GetUDDStyleSheetForPdf(self):
return "C:\\Program
Files\\Ansoft\\Designer8.0\\Windows\\common\\docbook\\xsl\\fo\
\docbook.xsl"
GetFopExecutable() : Returns the file path of the fop executable used to generate the pdf
document. This will override the default stylesheet for pdf.Returns string containing the full file path
of the fop executable.
Example:
def GetFopExecutable(self):
return "C:\\Program
Files\\Ansoft\\Designer8.0\\Windows\\common\\ApacheFOP\\fop-
1.0\\fop"
GetUDDAppContext() : Returns the UDD Owner (if set). This is a Dispatch wrapper that is
essentially a COM IDispatch implementation and corresponds to the IDispatch pointing to the
desktop app.
GetUDDDesignContext() : Returns the UDD Owner (if set). This is a Dispatch wrapper that is
essentially a COM IDispatch implementation and corresponds to the IDispatch pointing to the
Design.
To pass data from python script to UI the objects of the C# class must be created in python script
using their C# constructors. Then they can be set as functions return values or set to the output
parameters using their API.
Constants class
kTraceTypeStr : string constant used to specify an input of trace type
kSolutionTypeStr : string constant used to specify an input of solution type
kNumberTypeStr : string constant used to specify an input of number type
kTextTypeStr : string constant used to specify an input of text type
kBoolTypeStr : string constant used to specify an input of boolean type
kStandardReportStr : string constant to specify a standard report
kEyeDiagramReportStr : string constant to specify an eye diagram report
kUserDefinedReportStr : string constant to specify a user defined report
kSweepDomainStr : string constant to specify the sweep domain
kTimeDomainStr : string constant to specify the time domain
UDDInputParams class
The objects of this class must be created in python script in the GetUDDInputParams() function
and the SetUDDInputParams() function.
Attributes :
Input Name (string)
Input Description (string)
Input Type ( Can be Boolean, Number, Text, Trace or Solution) (string)
BoolData (boolean)
DoubleData (double)
TextData (string)
ReportType (string)
SolutionName (string)
DomainName (string)
Constructors:
UDDInputParams(string name, string description, string type)
UDDInputParams(string name, string description, string type, bool data)
UDDInputParams(string name, string description, string type, double data)
UDDInputParams(string name, string description, string type, string data)
UDDInputParams(string name, string description, string type, string reportType, string
solutionName, string domainName)
Property Accessors :
Name : Get/Set the name of an input
To pass data from python script to UI the objects of the C# class must be created in python script
using their C# constructors. Then they can be set as functions return values or set to the output
parameters using their API.
Constants class
kTraceTypeStr : string constant used to specify an input of trace type
kSolutionTypeStr : string constant used to specify an input of solution type
kNumberTypeStr : string constant used to specify an input of number type
kTextTypeStr : string constant used to specify an input of text type
kBoolTypeStr : string constant used to specify an input of boolean type
kStandardReportStr : string constant to specify a standard report
kEyeDiagramReportStr : string constant to specify an eye diagram report
kUserDefinedReportStr : string constant to specify a user defined report
kSweepDomainStr : string constant to specify the sweep domain
kTimeDomainStr : string constant to specify the time domain
UDDInputParams class
The objects of this class must be created in python script in the GetUDDInputParams() function
and the SetUDDInputParams() function.
Attributes :
Input Name (string)
Input Description (string)
Input Type ( Can be Boolean, Number, Text, Trace or Solution) (string)
BoolData (boolean)
DoubleData (double)
TextData (string)
ReportType (string)
SolutionName (string)
DomainName (string)
Constructors:
UDDInputParams(string name, string description, string type)
UDDInputParams(string name, string description, string type, bool data)
UDDInputParams(string name, string description, string type, double data)
UDDInputParams(string name, string description, string type, string data)
UDDInputParams(string name, string description, string type, string reportType, string
solutionName, string domainName)
Property Accessors :
Name : Get/Set the name of an input
To pass data from python script to UI the objects of the C# class must be created in python script
using their C# constructors. Then they can be set as functions return values or set to the output
parameters using their API.
Constants class
kTraceTypeStr : string constant used to specify an input of trace type
kSolutionTypeStr : string constant used to specify an input of solution type
kNumberTypeStr : string constant used to specify an input of number type
kTextTypeStr : string constant used to specify an input of text type
kBoolTypeStr : string constant used to specify an input of boolean type
kStandardReportStr : string constant to specify a standard report
kEyeDiagramReportStr : string constant to specify an eye diagram report
kUserDefinedReportStr : string constant to specify a user defined report
kSweepDomainStr : string constant to specify the sweep domain
kTimeDomainStr : string constant to specify the time domain
UDDInputParams class
The objects of this class must be created in python script in the GetUDDInputParams() function
and the SetUDDInputParams() function.
Attributes :
Input Name (string)
Input Description (string)
Input Type ( Can be Boolean, Number, Text, Trace or Solution) (string)
BoolData (boolean)
DoubleData (double)
TextData (string)
ReportType (string)
SolutionName (string)
DomainName (string)
Constructors:
UDDInputParams(string name, string description, string type)
UDDInputParams(string name, string description, string type, bool data)
UDDInputParams(string name, string description, string type, double data)
UDDInputParams(string name, string description, string type, string data)
UDDInputParams(string name, string description, string type, string reportType, string
solutionName, string domainName)
Property Accessors :
Name : Get/Set the name of an input
To pass data from python script to UI the objects of the C# class must be created in python script
using their C# constructors. Then they can be set as functions return values or set to the output
parameters using their API.
Constants class
kTraceTypeStr : string constant used to specify an input of trace type
kSolutionTypeStr : string constant used to specify an input of solution type
kNumberTypeStr : string constant used to specify an input of number type
kTextTypeStr : string constant used to specify an input of text type
kBoolTypeStr : string constant used to specify an input of boolean type
kStandardReportStr : string constant to specify a standard report
kEyeDiagramReportStr : string constant to specify an eye diagram report
kUserDefinedReportStr : string constant to specify a user defined report
kSweepDomainStr : string constant to specify the sweep domain
kTimeDomainStr : string constant to specify the time domain
UDDInputParams class
The objects of this class must be created in python script in the GetUDDInputParams() function
and the SetUDDInputParams() function.
Attributes :
Input Name (string)
Input Description (string)
Input Type ( Can be Boolean, Number, Text, Trace or Solution) (string)
BoolData (boolean)
DoubleData (double)
TextData (string)
ReportType (string)
SolutionName (string)
DomainName (string)
Constructors:
UDDInputParams(string name, string description, string type)
UDDInputParams(string name, string description, string type, bool data)
UDDInputParams(string name, string description, string type, double data)
UDDInputParams(string name, string description, string type, string data)
UDDInputParams(string name, string description, string type, string reportType, string
solutionName, string domainName)
Property Accessors :
Name : Get/Set the name of an input
TextData(string name, IDictionary<string, string> variation) : Method used to return x data and
y data as a IDictionary<string, string>, given a quantity name and a variation.
Examples:
def Generate(self, input, docgen, progMon):
# Getting the boolean data set by the user
boolinput = input[0].Data()
# Getting the double data set by the user
dblinput = input[1].Data()
# Getting the text data set by the user
textinput = input[2].Data()
# Getting the category names in a solution
categories = input[3].CategoryNames()
# Getting the quantity names based on a category
quantities = input[3].QuantityNames(categories[0])
# Getting the XY data from the trace
xydata = input[4].DoubleData()
For 6, 7, 8, and 9, the document must have an existing, generated HTML or PDF.
],
[
"NAME:Name", "Text", "User Name", ["Sita Ramesh"]
],
[
"NAME:Summary", "Bool", "Display Summary", [True]
],
[
"NAME:Version", "Number", "Script Version" [1021]
]
]
],
[
"NAME:DocTraces",
[
"NAME:DLMetrics",
[
"User Defined", "", "DDR3 AC-Timing 4-DQ1",
[
"Context:=" , ""
],
[
"Index:=" , ["All"], "Trise:=" , ["Nominal"], "Tfall:=" ,
["Nominal"], "Pulse_Width:=" ,
["Nominal"], "Data_Rate:=" , ["Nominal"], "Length:=" ,
["Nominal"]
],
[
"Probe Component:=" , [""]
],
[]
]
],
[
"NAME:DQ0",
[
"Standard", "DQ0", "NexximTransient",
[
"NAME:Context", "SimValueContext:=" ,
[1,0,2,0,False,False,-
1,1,0,1,1,"",0,0,"DE",False,"0","DP",False,"20000000","DT",Fal
se,"0.001","WE",False,"100ns","WM",False,"100ns","WN",False,"0
ps","WS",False,"0ps"]
],
[
"Time:=" , ["All"],"Trise:=" , ["Nominal"],"Tfall:=" ,
["Nominal"],"Pulse_Width:=" ,["Nominal"],
"Data_Rate:=" , ["Nominal"], "Length:=" , ["Nominal"]
],
[
"Probe Component:=" , ["DQ0"]
],
[]
]
],
]
Sample Script:- This one adds, edits, renames and deletes a document
Note The product has to implement the GetModule call to create the UserDefinedDocument
scripting object. For e.g. Check AltraSimDesign.cpp (function GetMgrIDispatch()).
l oDesign = self.GetUDDDesignContext()
Gets the design context
Usage:- Gets the design name.
oDesign = self.GetUDDDesignContext()
if oDesign != None:
nm = oDesign.GetName()
l IUDDGenerator interface
This interface available in the Generate method of the UDDPluginExtension.
This interface can be used to
1. Set the document output file path.
docgen.SetOutput("C:\\Examples\\DocumentOutput.xml")
l IUDDRoot interface
Calling GetDocumentRoot() on the IUDDGenerator interface provides you with the this
interface. This interface can be used to
1. Add a new section to the document. Provide a section title.
section1 = docroot.AddSection("Section title")
2. Add a new section to the document. Provide a section title and subtitle
section1 = docroot.AddSection("Section title", "Section
subtitle")
section1 = docroot.AddSubtitle("Subtitle")
l IUDDSection interface
Calling AddSection() on the IUDDRoot interface provides you with the this interface. This
interface can be used to
1. Set an ID for the section for internal links.
section1.SetID("id")
3. Add a new image to the document. Provide an image title and a file path to the image file.
image1 = section1.AddImage("Image title")
l IUDDImage interface
Calling AddImage() on the IUDDSection interface provides you with the this interface. On this
interface you can call the following methods
1. Set an ID for the image for internal links.
image1.SetID("id")
3. Set the file path of the image file. Not necessary if image file path is set through the AddImage
() method
image1.SetFileRef("Image path")
4. Set the format of the image file. Can be "BMP", "PNG", "JPEG", "JPG", "DVI" etc.. Not sure
about the necessity of this one.
image1.SetFormat("format")
l IUDDText interface
Calling AddText() on the IUDDSection interface provides you with the this interface. On this
interface you can call the following methods
1. Set an ID for the text for internal links.
text1.SetID("id")
8. Set an event link to handle an event. The HandleUDDEvents method should be implemented
in the script to handle the event.
text1.SetEventLink("linkname")
l IUDDTable interface
Calling AddTable() on the IUDDSection interface provides you with the this interface. On this
interface you can call the following methods
1. Set an ID for the table for internal links.
table1.SetID("id")
4. Set the frame type. Can be "all", "bottom", "top,", "sides", "topbot"
table1.SetFrame(string frame)
5. Add a table group and specify the number of columns. A table can have multiple table groups.
IUDDTableGroup table1.SetTableGroup(int columns)
l IUDDTableGroup interface
Calling AddTableGroup() on the IUDDTable interface provides you with the this interface. On
this interface you can call the following methods
1. Set an ID for the table group for internal links.
tgroup1.SetID("id")
3. Set the column width of a column given the index of the column and the required width. Width
can be set in 2 ways.
l Width can be set relative to 1. E.g Setting it to "2*" makes the column width double the
width of the others.
l If the entire table width is considered to be 99.99 units. Width can be a number relative to
this.
tgroup1.SetColumnWidth(int index, string width)
5. Add a header with multiple rows to the table group. Takes number of sub rows.
IUDDTableRow tgroup1.AddHeader(int rows)
7. Add content with multiple rows to the table group. Takes number of sub rows.
IUDDTableRow tgroup1.AddContent(int rows)
l IUDDTableRow interface
Calling AddHeader() & AddContent() on the IUDDTableGroup interface provides you with the
this interface. On this interface you can call the following methods
1. Set an ID for the table row for internal links.
trow1.SetID("id")
3. Set cell text. Can be cell content or header text. Takes a column index and a text string. It is
added to the first row.
IUDDTextElement trow1.Add(int column, string text)
4. Set cell text. Can be cell content or header text. Takes a column index, row index and a text
string. Takes in a row number because a table row can have multiple sub rows.
IUDDTextElement trow1.Add(int column, int subrow, string
text)
5. Set cell content. Takes a column index and an int value. It is added to the first row.
IUDDTextElement trow1.Add(int column, int value)
6. Set cell content. Takes a column index, row index and a int value.
IUDDTextElement trow1.Add(int column, int subrow, string
text)
7. Set cell text. Takes a column index and a double value. It is added to the first row.
IUDDTextElement trow1.Add(int column, double value)
8. Set cell text. Takes a column index, row index and a double value.
IUDDTextElement trow1.Add(int column, int subrow, double
value)
9. Set cell text spanning 2 columns. Can be cell content or header text. Takes a sub row index ,
starting column index., ending column index and a text string.
IUDDTextElement trow1.AddSpanningcolumnst(int subrow, int
columnstart, int columnend, string text)
10. Set cell text. Can be cell content or header text. Takes a column index, starting sub row index,
ending sub row index and a text string.
IUDDTextElement trow1.AddpanningRows(int column, int
subrowstart, int subrowend, string text)
l IUDDTableRow interface
Calling Add() on the IUDDTableGroup interface provides you with the this interface. On this
interface you can call the following methods
1. Set an ID for the table row for internal links.
trow1.SetID("id")
trow1.SetAlignment("center")
Includes all the methods exposed by the IUDDText interface.
The document assumes that you know how desktop scripting works using VBScript or Javascript.
Introduction to IronPython
IronPython Mini-cookbook
Translating Script commands from VBScript to IronPython
Scripting Using Iron Python: Putting it all Together
IronPython Samples
Creating User Defined Primitives and User Defined Models in Python Scripts
Related Topics
Introduction to IronPython
IronPython is an implementation of the Python programming language targeting the .NET runtime.
What this means in practical terms is that IronPython uses the Python programming language syntax
and standard python libraries and can additionally use .NET classes and objects to give one the best
of both worlds. This usage of .NET classes is fairly seamless in that a class defined in a .NET
assembly can be used as a base class of a python class.
Scope
Functioning as a tutorial on Python or IronPython is way out of the scope of this document. There are
several excellent resources online that do a very good job in that regard. This document only
Python compatibility
The version of IronPython in use is 2.6.1 and built on the .NET framework version 2.0: this version
targets Python 2.6 language compatibility. While most python files will execute under IronPython
with no changes, python libraries that make use of extensions written in the C programming
language (NumPy or SciPy for instance), are not expected to work under IronPython. In such cases,
it might be possible to locate .NET implementation of such libraries or explore the use of IronClad.
(http://code.google.com/p/ironclad/).
Advantages of IronPython
The advantages that IronPython use provides are significant:
l Python has a large eco-system with plenty of supporting libraries, Visual IDEs and debuggers.
to create a modern GUI using the System.Windows.Forms assembly from IronPython code
and call any other .NET assembly for that matter.
l The use of IronPython's technologies enables the ability to interactively script Desktop
(feature in development). This allows better discovery of the scripting APIs as well as directly
programming to the scripting API in python, a language more tractable and platform
independent compared with VBScript.
l The Python syntax of dictionaries is somewhat easier to read and write when supplying
Related Topics
IronPython Mini-cookbook
Translating Script commands from VBScript to IronPython
Scripting Using Iron Python: Putting it all Together
IronPython Samples
IronPython Mini-cookbook
While a tutorial on Python syntax is beyond the scope of this document, it will present simple
counterparts the VBScript constructs that users tend to regularly use.
Comments
Assigning/Creating variables
Create Lists/Arrays
Create Dictionaries/Maps
Boolean Values
Converting Numbers to Strings and Vice Versa
String Formatting/Concatenation
Looping over Lists
Looping over a Range
A Note About Indentation
Additional Sections:
Obtaining More Information
Discovering Methods
Help on a Method
Comments
VBScript IronPython
' Comments start with a single # Comments start with a sharp or
quote hash
' like this line # symbol, like these lines
Assigning/Creating Variables
VBScript IronPython
' Declare with a Dim # No Set syntax. Simply create and
Dim oDesktop assign
oDesktop = oApp.GetAppDesktop()
'Assignment needs a Set
instruction
Set oDesktop = oApp.GetAppDesktop
()
Create Lists/Arrays
VBScript IronPython
' Declare as array of String with 11 # Declare an empty array
' indices from 0 through 10 myEmptyArray = []
Dim myArray(0 to 10) as String
myArray(0) = "Hello" # declare an array and initialize it with 5
myArray(1) = "bye" ints
myInitedArray = [ 1, 2, 3, 4, 5]
' Declare n array with no size
Dim array2() as String # Python lists can have items of any type
Create Dictionaries/Maps
VBScript IronPython
' No direct equivalent is available # an IronPython dictionary is a collection of
as # name value pairs. Just like arrays, there is
' far as the author knows # no restriction on the keys or the values.
# For purposes of ANSYS EM scripting
however,
# all keys must be strings
Boolean Values
VBScript IronPython
' Boolean literals are in lower # The first letter is
case capitalized
true True
false False
String formatting/concatenation
VBScript IronPython
' string concatenation uses the & # if you have two strings, you can always
' operator # concatenate then using the '+' operator
Dim allStr, str1 str1 = "hello"
str1 = " how are you" str2 = "world"
allStr = "Hello " & " There" & str1 str12 = str1 + " " + str2
' there seems to be no direct string # if you have different types though, string
' formatting function in VBScript # and int say, you must use the string
' using string concatenation or using # formatting commands. When formatting
' Replace are the two builtin # multiple arguments, they must be
options entered
Dim fmt = "{1} climbs stalk {2}" # as a tuple ( item1, item2, )
Dim str = Replace(fmt, "{1}", "jack") num = 10
str = Replace(str, "{2"}, 10) str3 = "%s climbs stalk %d" % ("jack",
num)
str4 = "%d stalks" % num
# <indent> statement2
for i in vals:
print i
print " -> " process(i)
Related Topics
If a%2 == 0:
# I am using an indent 2 more than the parent. i.e. 5
# spaces in total
return (a * b) + 100
else:
return (a * b) + 1000
Related Topics
Related Topics
Discovering Methods
Help on a Method
Introduction to IronPython
Translating Script commands from VBScript to IronPython
Scripting Using Iron Python: Putting it all Together
IronPython Samples
Discovering Methods
For instance, if you want to list all methods available in the string module, you would type in "import
string" to import the module first and then type in "dir(string)". You will get a list of all the methods
available (as well as some __somename__ internal names that can be ignored)
Related Topics
Help on a Method
Once you know a function name (maybe you see something you like from the dir(string) listing
above), you can get more help on it using the builtin help method. For instance, executing help
(string.split) in the IronPython Command Window displays the following:
Related Topics
Related Topics
Introduction to IronPython
IronPython Mini-cookbook
Scripting Using Iron Python: Putting it all Together
IronPython Samples
Primitive Types
Primitive types are the standard bool, int, float, double and string
Named Array
Named arrays are a special construct used very commonly and can be found in practically every
recorded script sample.
It starts with Array( "NAME:someName" and is followed by a collection of comma separated
values which can be:
l A primitive value
l A primitive value
Named Function
Named functions are arrays which start with Array( and do not have a leading "NAME:name" item.
They are always introduced by a key and can contain comma separated values of the following
type:
l A primitive value
l A primitive value
Related Topics
VBScript Functions
In VBScript terminology functions return values. The syntax for this is the one shared with practically
all programming languages.
Set oDesktop = oAnsoftApp.GetAppDesktop()
Set oProject = oDesktop.NewProject
VBScript Sub-Routines
VBScript Sub-Routines are those that do not have any return value. VBScript allows these to be
written without any parentheses even if they have a non-empty argument list.
Related Topics
parentheses.
l If you see a VBScript function that has no arguments and no parenthesis, remember to add
Return Values
VBscript return values are sometimes assigned via the Set declaration. IronPython return values are
simple assignment (see the cookbook chapter)
Related Topics
Replace each VBScript primitive with an equivalent IronPython primitive. The main thing to notice
here is that Boolean values in IronPython have their first letter capitalized.
True instead of true and False instead of false
Related Topics
The recommended approach here is to simply replace a VBScript array with a python array. The
mapping is quite simple:
l Change Array( to [ and close with a ] instead of the )
l Remove the Char(34) function (which introduced a double quote) and replace it with the
Related Topics
While it is in general not allowed to replace the arrays and nested arrays with python dictionaries, in
the case where the named array consists entirely of key value pairs (like the sample above), one can
use a dictionary and avoid typing the trailing ":=" symbols after the keys. This further aids
readability of the script.
l If all key value pairs
l If the named array is the top level argument, ensure that the "NAME:name" is present and is
oEditor.CreateCone(
{
"NAME" : "ConeParameters",
"XCenter" : "0mm",
"YCenter" : "0mm",
"ZCenter" : "0mm",
"WhichAxis" : "Z",
"Height" : "2mm",
"BottomRadius": "1.56204993518133mm",
"TopRadius" : "0mm"
},
{
"NAME" : "Attributes",
"Name" : "Cone1",
"Flags" : "",
"Color" : "(132 132 193)",
"Transparency" : 0,
"PartCoordinateSystem": "Global",
"UDMId" : "",
"MaterialValue" : "\"vacuum\"",
"SolveInside" : True
}
Related Topics
Sample Script 7: Named array with nested named array in array syntax
The above named array with a nested named array (after conversion to IronPython as named array)
can be converted to a dictionary as well. The dictionary can take any of the following forms
{ "NAME" : "name",
"key1" : 1,
"key2" : 2,
"name2" : ["NAME:name2", "R:=", 255]
}
Sample Script 8: Named array with nested named array as mixed dictionary + array
{ "NAME" : "name",
"key1" : 1,
"key2" : 2,
"name2" : {"R" : 255}
}
Sample Script 9: Named array with nested named array in all dictionary syntax
{ "NAME" : "name",
"key1" : 1,
"key2" : 2,
"name2" : {
"NAME" : "name2",
"R" : 255
}
}
Sample Script 10: Nested named array with optional "NAME:" field
Related Topics
Function Blocks
Function blocks in VBScript argument syntax are represented as arrays without the "NAME:.." field.
However, functions are always introduced by a key in a parent structure. Function blocks can
therefore never exist as a top-level argument. They are only found as the value pairs inside a named
array or inside another function block.
Note Function blocks and their items cannot be converted to dictionaries even though they might
be composed entirely of key value pairs.
The reason for this is the need to main the user-entered order. Every item in a function block is
expect to be transmitted to the script method in exactly the same order as typed out and this is
impossible to achieve when a dictionary is used (as the keys get reordered according to the
dictionary's internal tree/key sorting scheme).
Note When you see a function block, simply replace the Array( ) delimiters with the python array
delimiters [ ]
Related Topics
Related Topics
Introduction to IronPython
IronPython Mini-cookbook
Translating Script commands from VBScript to IronPython
Appendix: IronPython Samples
l Tools > Run Script menu item, select "IronPython" from the file type drop down
l Launch the product with a script argument, e.g., Maxwell -runscript someScript.py
l Register an IronPython script as an external tool using the Tools > External Tools menu
item.
When desktop executes a script, it does so in an execution environment setup with predefined
variables and functions. These predefined variables and functions are how the script communicates
with the desktop and they come in three flavors.
Script Argument for IronPython
Script Objects for IronPython
Methods for IronPython
When scripts are launched using the Tools > Run Script menu item, the dialog that pops up allows
the user to specify arguments.
Any argument specified here is communicated to the script being executed as the predefined
variable ScriptArgument.
Related Topics
The Desktop script objects are available to every IronPython script being run. The names used
follow the same convention as with VBScript.
l oAnsoftApplication is the script object representing the entire application.
l oDesktop is the script object representing the desktop. While this can be obtained from the
Related Topics
A collection of methods is made available to all python scripts to enable the use of existing scripts
written in VBScript or Javascript. Additional utility methods to add messages to the desktop message
window are also present.
l AddErrorMessage(str), AddWarningMessage(str), AddInfoMessage(str) and
script to change the syntax of the language being used in the Run*Command commands
listed below. Once set, the language choice remains for the rest of the script execution or till it
is changed. The default is VBScript.
l RunScriptCommand(CommandString) runs the supplied script text. The language of the
expected to generally be a single line and be a method call on a oDesktop object. The
oDesktop object is initialized based on the supplied optional ProjectName Pparameter. If the
ProjectName parameter is not supplied, the active project is used.
l RunProjectCommand(CommandString,ProjectName=None, ProjectName=None)
runs the supplied script text. The oDesign object is initialized based on the supplied optional
parameters. If the ProjectName is not supplied, the active project is used to resolve the
project. If the DesignName is not supplied, the project’s active design or first design will be
used to resolve the oDesign object within the project.
l RunModuleCommand(CommandString,ModuleName, DesignName=None,
ProjectName=None) runs the supplied script text. The text is expected to be a single line and
be a method call on a oModule object. The design targeted is resolved using the supplied
optional DesignName and ProjectName parameters and the oModule object is initialized
using the supplied Module name on that resolved design.
l RunEditorCommand(CommandString, EditorName,DesignName=None,
ProjectName=None) runs the supplied script text. The text is expected to be a single line and
be a method call on a oEditor object. The design targeted is resolved using the supplied
optional DesignName and ProjectName parameters and the oEditor object is initialized using
the supplied Editor name on that resolved design.
l RunDefinitionManagerCommand(CommandString, ProjectName=None) runs the
supplies script text. The text is expected to be a single line and be a mthod call on a
oDefinitionManager object. The oDefinitionManager object is created for the project
specifie4d by the optional ProjectName parameter.
Related Topics
Example:
value = oDesktop.GetRegistryString
("Desktop/ActiveDSOConfigurations/HFSS")
l SetRegistryString "KeyPath", "string" - sets the registry key to the specified string value.
Example:
oDesktop.SetRegistryString
"Desktop/ActiveDSOConfigurations/HFSS", "Local"
l GetRegistryInt("KeyPath") - returns the registry key int value.
Example:
num = oDesktop.GetRegistryInt
("Desktop/Settings/ProjectOptions/HFSS/UpdateReportsDynamicallyO
nEdits")
l SetRegistryInt("KeyPath", int) - Sets a registry key to a specified int value.
Example:
oDesktop.SetRegistryInt
("Desktop/Settings/ProjectOptions/HFSS/UpdateReportsDynamicallyO
nEdits", 0)
l DoesRegistryValueExist("KeyPath") - returns a boolean true if a key exists, and false if
not.
Example:
bExist =oDesktop.DoesRegistryValueExist
("Desktop/ActiveDSOConfigurations/HFSS")
l SetRegistryFromFile("FilePath") - full path to an Analysis Configuration File, which has
been exported from the HPC and Analysis Options panel.
Example:
oDesktop.SetRegistryFromFile("c:\\temp/test.acf")
Example for how to set the DSO & HPC analysis setup with Python script
1. In a PC start HFSS go to the DSO and HPC options dialog, create a setup name it as "test"
2. Export the setup to a file c:\tem\test.acf.
3. Copy the exported file to a target PC f:\temp\test.acf.
4. Run the following script.
#import the setup
oDesktop.SetRegistryFromFile("f:\\temp\\test.acf")
# Set Active Setup to "test"
oDesktop.SetRegistryString
("Desktop/ActiveDSOConfigurations/HFSS", "test")
Dim oEditor
Dim oModule
Set oAnsoftApp = CreateObject("AnsoftHfss.HfssScriptInterface")
Set oDesktop = oAnsoftApp.GetAppDesktop()
oDesktop.RestoreWindow
Set oProject = oDesktop.GetActiveProject()
oProject.InsertDesign "HFSS", "HFSSPyTestDesign", "DrivenModal", ""
Set oDesign = oProject.SetActiveDesign("HFSSPyTestDesign")
Set oEditor = oDesign.SetActiveEditor("3D Modeler")
oEditor.CreateCone Array("NAME:ConeParameters", _
"XCenter:=", "0mm", "YCenter:=", "0mm", "ZCenter:=", "0mm",_
"WhichAxis:=", "Z", "Height:=", "2mm", _
"BottomRadius:=", "3mm", _
"TopRadius:=", "0mm"), Array("NAME:Attributes", "Name:=", _
"Cone1", "Flags:=", "", "Color:=", "(132 132 193)",
"Transparency:=", 0, _
"PartCoordinateSystem:=", "Global", "UDMId:=", "",
"MaterialValue:=", _
"" & Chr(34) & "vacuum" & Chr(34) & "", "SolveInside:=", _
true)
"""
SetScriptingLanguageToVBScript()
RunScriptCommand(coneScript)
Sample Script 11: Hybrid VBScript + IronPython scripting: parameterized Cone Creation
Even though recorded VBScript is used for scripting, the incremental functionality that is provided
using IronPython is the ability to write a GUI using IronPython/.NET, collect information from the
user and then modify or generate the VBScript commands to actually script the ANSYS
Electromagnetics desktop. This GUI functionality is cross platform and a significant positive. The
following example demonstrates a contrived use of a .NET window form to display the argument
supplied to the IronPython script (via the ScriptArgument variable).
_button = Button()
_button.Text = "Close"
_button.Dock = DockStyle.Bottom
_button.Click += self._buttonPressed
self.Controls.Add(self._label)
self.Controls.Add(_button)
def _buttonPressed(self,sender,args):
self.Close()
#----------------------------------------------------
# Main script code
#----------------------------------------------------
#display the ScriptArgument variable as the text label
# in the form.
gui = ShowPropertiesForm("Sample Form", ScriptArgument)
Sample Script 12: Demonstrates the use of a .NET form from IronPython
While creating cross platform user interfaces from scripts is one of the main motivations driving the
adoption of IronPython, any .NET assembly can be used with the caveat that Linux use requires
Mono compatibility of any used assemblies.
While this hybrid approach is useful when you have existing VBScript commands that you want to
reuse or when you want to quickly parameterize a recorded sample, the one significant limitation of
this approach is the inability to capture return values from VBScript or JavaScript calls that do return
something. Full two way communication with the product requires the use of pure IronPython to
directly invoke the script objects as described below.
Related Topics
l The scripting method names are identical to the ones used with VBScript
l Method calls, while the name is the same have to adhere to the rule of ensuring trailing
parentheses irrespective of whether the function returns anything or has any arguments.
l Any compound/block arguments should be translated to the appropriate IronPython array or
dictionary syntax.
The samples section lists a collection of pure IronPython snippets: these, along with the various
script snippets listed in this document should serve as a guide and reference.
Related Topics
IronPython Samples
Change property
The following snippets show how a change property command (in this case, to change the color of a
cone) looks in VBScript and its two possible IronPython variants.
Sample Script 14: ChangeProperty command to change color of cone using Python
arrays
Any time there are named arrays composed purely of key-value pairs, they can always be
represented using a Python dictionary, irrespective of the nesting of said named array.
oEditor.ChangeProperty(
["NAME:AllTabs",
["NAME:Geometry3DAttributeTab",
["NAME:PropServers", "Cone1"],
["NAME:ChangedProps",
{
"NAME":"Color",
"R" : 0,
"G" : 64,
"B" : 0
}]]
])
Sample Script 15: ChangeProperty command to change the color of a cone using Python
arrays and dictionaries
oDesign = oProject.InsertDesign
("HFSS","Random","DrivenModal","")
oEditor = oDesign.SetActiveEditor("3D Modeler")
oEditor.CreateCone(
{
"NAME" : "ConeParameters",
"XCenter" : "0mm",
"YCenter" : "0mm",
"ZCenter" : "0mm",
"WhichAxis" : "Z",
"Height" : "2mm",
"BottomRadius" : "1.56204993518133mm",
"TopRadius" : "0mm"
},
{
"NAME" : "Attributes",
"Name" : "Cone1",
"Flags" : "",
"Color" : "(132 132 193)",
"Transparency" : 0,
"PartCoordinateSystem": "Global",
"UDMId" : "",
"MaterialValue" : "\"vacuum\"",
"SolveInside" : True
}
)
oEditor.CreateCone(
{
"NAME" : "ConeParameters",
"XCenter" : "0mm",
"YCenter" : "0mm",
"ZCenter" : "0mm",
"WhichAxis" : "Z",
"Height" : "2mm",
"BottomRadius": coneBotRad,
"TopRadius" : "0mm"
},
{
"NAME" : "Attributes",
"Name" : firstConeName,
"Flags" : "",
"Color" : "(132 132 193)",
"Transparency" : 0,
"PartCoordinateSystem": "Global",
"UDMId" : "",
"MaterialValue" : "\"vacuum\"",
"SolveInside" : True
}
)
# copy first
oEditor.Copy(
{
"NAME" : "Selections",
"Selections" : firstConeName
}
Sample Script 17: Sample script to create a cone and then use copy/paste/move to
replicate it.
Related Topics
Introduction to IronPython
IronPython Mini-cookbook
Translating Script commands from VBScript to IronPython
Scripting Using Iron Python: Putting it all Together
l No need to create and build project; all you need to do is create a Python script
l Python script is platform independent
l Scripts can inherit functionality from existing scripts
l Garbage collector - no need to free memory
l Easy debugging
Changes compared to C
Though methods, constants and structures are kept as close to the C implementation as possible,
some changes had to be made to make code Python-compatible.
Structures
l Structures have the same names as in C implementation.
l Structure instances are created using the supplied constructors and members are accessed
Constants
Enumeration/Enum constants have almost the same names as in C but the enum must be qualified
by the type. Additionally, redundant "UDP", "UDM" or type prefixes have been removed. This allows
for better human-readability.
# Example of specifying the LengthUnit enum by qualifying it
# with the type of the enum: UnitType
unitType = UnitType.LengthUnit
For a complete list of enum constants please see UDP/UDM Constants.
Methods
Methods are described in IUDPExtension methods, IUDMExtension methods, UDPFunctionLibrary
and UDMFunctionLibrary listed further in this document.
The main differences in functions parameters (from C implementation):
l functions names in UDPFunctionLibrary and UDMFunctionLibrary are capitalized
l output parameters (pointer types that are filled during the function call) usually become return
values
l 'list size' parameter usually will be omitted as redundant
Output Parameters
The rule for the output parameters is as follows:
l If the function has one output parameter variable and no return value, the variable will become
function's return value.The same will happen if the return value is a 'success/failure' boolean
omitted.
l If function has output 'List' parameter and output 'list size' parameter, 'list size' parameter will
be omitted.
l If function has output 'List' parameter and input 'list size' parameter, 'list size' parameter won't
be omitted as it's needed for memory allocation in the corresponding C++ function from the
UDP/UDM function library.
Example:
# input list, input list size
lret = udpFunctionLibrary.Unite(objectIds)
where numFaces and faceIds are output parameters (ignore numFaces as redundant:
and numFaces is the size of faceId. folded into faceIds,
return value is omitted: folded into the
faceIds is None check
callbackData is omitted)
long unite( long numObjects, lret = udpFunctionLibrary.Unite
long* objectIds, (objectIds)
void* callbackData);
where numObjects and objectIds are input parameters (ignore numObjects as redundant:
and numObjects is the size of objectIds. folded into objectIds
callbackData is omitted)
long detachFaces( long nSize, (lret, partIdList) =
long* faceIds, udpFunctionLibrary.DetachFaces
long* partIds, (nSize, faceIds)
void* callbackData);
where partIds is and output list and nSize is an input (nSize is not ignored,
parameters and nSize is the size of partIds. callbackData is omitted)
Added Parameters
Developing a UDM/UDP
Creation
To create a User Defined Primitive in Python you write a Python script that implements
UDPExtension class. To create a User Defined Model in Python you write a Python script that
implements UDMExtension class (see links for full description).
Location
The scripts are located the same way the C based UDM/UDP are. They are expected to be under
the UserDefinedParts or UserDefinedModels sub-directories of one of the library folders (SysLib,
UserLib or PersonalLib). They will then appear under the appropriate menu items: Draw>User
Defined Primitives for UDP or Draw>User Defined Model for UDM.
The sub-directories structure created in one of the specified directory will be displayed in the
UDP/UDM menu.
Keep in mind that there is no difference between the menu display for C and Python
implementations of UDM or UDP - only the file names without extensions are displayed
Organize
"Lib" sub-directory is a special directory. The contents of this directory is not shown in the menu. In
the "Lib" directory you can create Python scripts with base classes and utilities to be used in
UDP/UDM Python scripts. All the Lib directories upstream of a script (till the UserDefinedModels or
UserDefinedPrimitives) are included in the Python search path and this allows for easy import of
helper modules in such directories.
To use UDM data structures, constants, and/or classes in your Lib sub-directory scripts you have to
add import statement to the scripts:
For UDM:extension:
from UDM import *
For UDP:extension:
from UDP import *
Edit/Reload
Python is a scripting language, so if you have errors in your script, you will see them at the time you
try to run the script. The errors will be displayed in the Message Manager Window. If you need more
information, you might be able to get it from log files. See theLogging section for more details.
You can always change your script, call Update Menu command from Draw>User Defined
Model> menu or Draw>User Defined Primitives> menu and run the script again. If you delete
script you might want to restart the application instead of calling Update Menu.
UDPExtension
Import
You do not have to add import statements for the predefined classes, structures, and constants - it is
done for you and all data types described in this document can be used in your Python script.
However you have to add import statements to your helper scripts in your Lib sun-directory.
from UDP import *
IUDPExtension methods
All methods are same as the methods in the C UDP implementation. The changes to the methods
signatures are just to conform to the Python style.
Mandatory methods.
These methods must be implemented in the UDP Python script as methods of UDPExtension class.
GetLengthParameterUnits()
l returns string.
GetPrimitiveTypeInfo()
l returns UDPPrimitiveTypeInfo.
GetPrimitiveParametersDefinition2()
l returns a list of UDPPrimitiveParameterDefinition2 or None on failure
AreParameterValuesValid2(errorMsg, udpParams)
l errorMsg is a c# list of strings
CreatePrimitive2(funcLib, udpParams)
l funcLib is UDPFunction library
Optional methods
These methods, which have default implementations, can be implemented as methods of
UDPExtension class as needed. Default methods will return NULL or FALSE depending on the
return type.
GetPrimitiveParameters()
l returns Python list of strings or NULL
GetRegisteredFaceNames()
l returns Python list of strings or NULL
GetRegisteredEdgeNames()
l returns Python list of strings or NULL
GetRegisteredVertexNames()
l returns Python list of strings or NULL
ProjectParametersOnToValidPlane2(currentUDPParams, projectedUDPParams)
MapParametersDefinitionVersions2(oldVersion, oldUDPParams)
l oldVersion is a string
GetOldPrimitiveParametersDefinition2(version )
l version is a string
Example UDP
import sys
class UDPExtension(IUDPExtension):
def GetLengthParameterUnits(self):
return "mm"
def GetPrimitiveTypeInfo(self)
typeInfo = UDPPrimitiveTypeInfo(
name = "SampleUDP",
purpose = "example",
company="ANSYS",
date="12.21.12",
version = "1.0")
return typeInfo
...
...
For the full example, see Example Scripts for Python UDP and UDM.
UDPFunctionLibrary
Considering that out variables are returned as members of the return tuple, sample code that calls
DetachFaces in Python script can look like this:
intVal = 10
inList = [..., ...]
(lret, outList) = udpFunctionLibrary.DetachFaces(intVal,
inList)
As you can see outList output parameter is defined in the call to DetachFaces function. Unlike in C,
there is no need to define it before the function call.
Functions list:
1. bool: bret = AddMessage(MessageSeverity: messageSeverity, string: message)
2. int: iret = NameAFace(UDPPosition: pointOnFace, string: faceName)
3. int: iret = NameAEdge(UDPPosition: pointOnEdge, string: edgeName)
4. int: iret = NameAVertex(UDPPosition: pointOnVertex, string: vertexName)
5. int: iret = GetFaceIDFromPosition(UDPPosition: pointOnFace)
6. int: iret = GetEdgeIDFromPosition(UDPPosition: pointOnEdge)
7. int: iret = CreatePolyline(UDPPolylineDefinition: polylineDefinition)
8. int: iret = CreateRectangle(CoordinateSystemPlane: whichPlane, UDPPosition:
centerPoint, List_of_double: widthAndHeight, int: isCovered)
9. int: iret = CreateArc(CoordinateSystemPlane: whichPlane, UDPPosition: centerPoint,
UDPPosition: startPoint, double: fAngle)
10. int: iret = CreateCircle(CoordinateSystemPlane: whichPlane, UDPPosition:
centerPoint, double: fRadius, int: isCovered)
11. int: iret = CreateEllipse(CoordinateSystemPlane: whichPlane, UDPPosition:
centerPoint, double: fMajorRadius, double: fRadiusRatio, int: isCovered)
12. int: iret = CreateRegularPolygon(CoordinateSystemPlane: whichPlane, UDPPosition:
centerPoint, UDPPosition: startPoint, int: numOfSides, int: isCovered)
13. int: iret = CreateEquationBasedCurve(UDPEquationBasedCurveDefinition:
curveDefinition)
14. int: iret = CreateEquationBasedSurface(UDPEquationBasedSurfaceDefinition:
surfaceDefinition)
15. int: iret = CreateSpiral(UDPSpiralDefinition: spiralDefinition)
16. int: iret = CreateBox(UDPPosition: startPoint, List_of_double: boxXYZsize)
17. int: iret = CreateSphere(UDPPosition: centerPoint, double: fRadius)
18. int: iret = CreateCylinder(CoordinateSystemAxis: whichAxis, UDPPosition:
centerPoint, double: fRadius, double: fHeight)
19. int: iret = CreateCone(CoordinateSystemAxis: whichAxis, UDPPosition: centerPoint,
double: fBottomRadius, double: fTopRadius, double: fHeight)
20. int: iret = CreateTorus(CoordinateSystemAxis: whichAxis, UDPPosition: centerPoint,
double: fMajorRadius, double: fMinorRadius)
UDMExtension
Import
You do not have to add import statements for the predefined classes and structures - it is done for
you and all data types described in this document can be used in your Python script.
However you have to add import statements to your helper scripts in your Lib sub-directory.
from UDM import *
IUDMExtension methods
All methods are the same as the methods in the C UDM implementation. The changes to the
methods signatures are just to conform to the Python style.
Mandatory methods.
These methods must be implemented in the UDM Python script as methods of UDMExtension class.
GetInfo()
l returns UDMInfo object populated with appropriate UDM information.
IsAttachedToExternalEditor()
l returns True if UDM dll is attached to external editor.
CreateInstance(funcLib)
l funcLib is UDMFunctionLibrary
l returns UDMParameters.
GetUnits(instanceId)
l instanceId is a long
l updatedParams: UDM script can change the UDM parameters it receives. Updated
parameters need to be sent back to desktop. If the UDM script is not going to change any of
the parameters that it received, it needs to copy udmInParams to updatedParams.
l refreshModifiedPartsOnly is a boolean
Supporting this flag is optional. For UDMs where the refresh performance is not an issue, it is
recommended to ignore this flag and update all parts every time.
This flag can be used to optimize performance of Refresh method when the model created by
UDM is large. If the UDM consists of multiple parts, and new parameters change only a few
parts amongst them, UDM script can only modify parts that are changed by the new
parameters.
l nonEditedPartRefIds: If RefreshModifiedPartsOnly is true and the UDM script supports partial
update, Refresh method needs to return ids of parts that are unchanged.
returns True on success, False on failure.
ReleaseInstance(instanceId)
l instanceId is a long
l This should release any resources assigned to this particular instance of UDM.
GetAttribNameForEntityId()
l Returns string that acts as a the name of the attribute containing entity IDs.
GetAttribNameForPartId()
l Returns string that acts as a the name of the attribute containing entity IDs.
l For example, it can return a unique string such as "ATTRIB_XACIS_ID" (Can be same as
GetAttribNameForEntityId())
l Python UDMs should implement this method.
Optional methods
These methods have default implementations (default is to return NULL or FALSE depending on the
return type) but can be overridden by the user as needed as methods of UDMExtension class.
options, and parameters are set/modified by user and returned to application. Dll can also just
give default definition, options and parameters.
l Returns two booleans and a string
l Second boolean returns whether the application should popup a dialog. If it is True,
application will populate a dialog with definition, options, parameters that are returned.
l String returned contains length units for parameters.
l First boolean provides whether the call to this method was successful or not.
l Second boolean determines whether the application should pop up a dialog. If this is true,
application will populate the dialog with the definitions and options that are returned. As no
parameters are returned, no parameters are shown in this dialog.
GetInstanceSourceInfo(instanceId)
l instanceId is a long
l returns string containing source information of UDM instance. It is used to create initial name
ShouldAttachDefinitionFilesToProject()
l returns true if any of definition files needs to be attached to project
Example UDM
class UDMExtension(IUDMExtension):
def IsAttachedToExternalEditor(self):
return False
def GetInfo(self)
udmInfo = UDMInfo(
name = "SampleUDM",
purpose = "udm example",
company="ANSYS",
date="12.21.12",
version = "1.0")
return udmInfo
...
...
For the full example, see Example Scripts for Python UDP and UDM.
UDMFunctionLibrary
UDMFunctionLibrary implements IUDMFunctionLib interface. The IUDMFunctionLib object is
passed as a parameter to Python script in the following functions
l CreateInstance
l Refresh
You can call any of the functions from the functions list (shown below).
partRefId = udmFunctionLib.GetPartRefId(partId)
For example sample code that calls GetBoundingBox in Python script can look like this:
partId = 10
exact = True
udpPosition = UDPPosition(0,0,0)
if bret:
udpPosition.X = udpPositionLow.X
As you can see udpPositionLow and udpPositionHigh output parameters are defined in the call to
GetBoundingBox function. There is no need to define them before the function call.
Functions list:
1. List_of_UDMDefinition: udmDefinitionList = GetDefinition()
2. List_of_UDMOption: udmOptionList = GetOptions()
3. bool: bret = SetMaterialName(string: matName, int: partId)
4. bool: bret = SetMaterialName2(string: matName, string: partName)
5. bool: bret = SetPartName(string: partName, int: partId)
6. int: iret = GetInstanceId()
7. string: str = GetPartRefId(int: partId)
8. bool: bret = SetPartRefId(int: partId, string: refId)
9. List_of_int: faceIds = GetAllFaces(int: partId)
10. List_of_int: edgeIds = GetAllEdges(int: partId)
11. List_of_int: vertexIds = GetAllVertices(int: partId)
12. bool: bret = SetFaceAttribs(List_of_int: faceIds, List_of_string: attribs)
13. bool: bret = SetEdgeAttribs(List_of_int: edgeIds, List_of_string: attribs)
14. bool: bret = SetVertexAttribs(List_of_int: vertexIds, List_of_string: attribs)
15. string: str = GetModelerUnit()
16. string: str = GetCacheFileForUDMResume()
17. bool: bret = SetPartColor(int: partId, int: nColor)
18. bool: bret = SetPartFlags(int: partId, int: nFlags)
19. (bool: bret, UDPPosition: low, UDPPosition: high) = GetBoundingBox(int: partId, bool:
exact)
20. bool: bret = IsParametricUpdate()
21. bool: bret = SetMaterialNameByRefId(string: partRefID, string: matName)
22. bool: bret = SetPartNameByRefId(string: partRefId, string: partName)
23. bool: bret = SetPartColorByRefId(string: partRefId, int: nColor)
24. bool: bret = SetPartFlagsByRefId(string: partRefId, int: nFlags)
In addition to the above functions all functions defined in the UDPFunctionLib are available in the
IUDMFunctionLib and can be called directly exactly the same way as the IUDMFunctionLib
functions.
Example:
udmFunctionLib.CreateCircle(center,radius,ratio,isCovered)
l UDP/UDM Constants
UDP/UDM Structures
l UDMOptions
l UDMParameters
Instead of containing arrays of data, the structures contain single fields where each field corresponds
to an item in a different array from the original C API. The structure objects thus constructed are
added to the Python list. Alternately the Python list can be initialized using the structure objects.
Example (creating UDMParameter list):
udmParamList = [UDMParameter("cubeSizeName",
UnitType.LengthUnit,
UDPParam(ParamDataType.Double, cubeSize),
ParamPropType.Value,
ParamPropFlag.MustBeReal),
UDMParameter("cubeDistanceName", UnitType.LengthUnit,
UDPParam(ParamDataType.Double, cubeDistance),
ParamPropType.Value,
ParamPropFlag.MustBeReal),
UDMParameter("numCubesName", UnitType.LengthUnit,
UDPParam(ParamDataType.Int, numCubes),
ParamPropType.Number,
ParamPropFlag.MustBeInt)]
l UDPParam
l UDPParamData
Data field in UDPParam is now an object - the same for all types of data used - as Python can work
with any type of data.
UDPParamData is obsolete, thus not implemented. Be sure to set proper data type to
UDPParam.DataType when setting UDPParam.Data.
Example:
nCubesParam = UDPParam(ParamDataType.Int, numCubes)
nCubes = nCubesParam.Data
distanceParam = UDPParam()
distanceParam.setDouble(10.5)
doubleDistance = distanceParam.Data * 2
l UDP3x3Matrix
The structure is not implemented. Use size 9 Python List of doubles instead.
Example:
rotationMatrix =[0,0,1, 1,0,0, 0,0,1]
udpFunctionLib.Transform(partId, rotationMatrix,
translationVector)
List of structures
You can use constructors to create a structure. You can also modify fields - directly or by provided
methods.
Example:
pos1 = UDPPosition(1,2,3)
pos2 = UDPPosition(x=1,y=10,z=0)
pos2.Z = pos1.Z
udpParam = UDPParam(ParamDataType.Double,1)
value = udpParam.Data
Structure Construction Members
UDPPrimitiveTypeInfo UDPPrimitiveTypeInfo( string Name
string name, string Purpose
string purpose, string Company
string company, string Date
string date, string Version
string version)
UDPPrimitiveParameterDefiniti UDPPrimitiveParameterDefiniti string Name
on on( string Description
string name, UnitType UnitType
string description, double DefaultValue
UnitType unitType,
double defaultValue)
UDPParam UDPParam() ParamDataType DataType
object Data
methods:
setInt(int val)
setBool(bool val)
setString(string val)
setDouble(double val)
setPosition(UDPPosition val)
UDP/UDM Constants
Enum constants:
enum Constant Parameters
UnitType NoUnit
LengthUnit
AngleUnit
ParamDataType Int
Double
String
Bool
Position
Unknown
ParamPropType Text
Menu
4. From the above shell, start the ANSYS Electromagnetics product and exercise the problem
scenario.
5. Zip all the log files in the c:\ansdir\ansdebug directory, and send them to the developer or
support person requesting them.
Collecting WB Logs
1. Under WB, execute the Tools/Options menu option, and under the Journals And Logs section,
ensure the Write Workbench Log Files is checked.
Note the location of the log files. (On Windows this is typically %TEMP%\WorkbenchLogs.)
24 - Optimetrics
Optimetrics enables you to determine the best design variation among a model's possible variations.
You create the original model, the nominal design, and then define the design parameters that vary,
which can be nearly any design parameter assigned a numeric value in Maxwell. For example, you
can parameterize the model geometry or material properties. You can then perform the following
types of analyses on your nominal Maxwell design:
Parametric In a parametric analysis, you define one or more variable sweep definitions, each
specifying a series of variable values within a range. For example, you can
parameterize component values. (See Variables in Maxwell for more
information.) Optimetrics solves the design at each variation. You can then
compare the results to determine how each design variation affects the
performance of the design. Parametric analyses are often used as precursors to
optimization solutions because they help to determine a reasonable range of
variable values for the optimization analysis.
Optimization For an optimization analysis, you identify the cost function and the optimization
goal. Optimetrics changes the design parameter values to meet that goal. The
cost function can be based on any solution quantity that Maxwell can compute.
Sensitivity In a sensitivity analysis, you use Optimetrics to explore the vicinity of the design
point to determine the sensitivity of the design to small changes in variables.
Tuning Tuning allows you to change variable values interactively while monitoring the
performance of the design.If you want to ensure that tuning does not resolve
variations already solved by parametric setup, you must check Save Fields
Mesh in the Options tab of the optimetrics setup.
Statistical In a statistical analysis, you use Optimetrics to determine the distribution of a
design's performance, which is caused by a statistical distribution of variable
values.
Design of Design of Experiments involves the creation of a response surface that depicts
Experiments and predicts how variable values will affect the design.
DesignXplorer An optimization tool for studying a range of design variations, used with Design of
Experiments.
Note Sweeping or using a complex variable is not allowed in any optimetrics setup, including
optimization, statistical, sensitivity, and tuning setups.
Related Topics
Optimetrics 24-1
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Parametric Overview
Running a parametric analysis enables you to simulate several design variations using a single
model. You define a series of variable values within a range, or a variable sweep definition, and
Maxwell generates a solution for each design variation. You can then compare the results to
determine how each design variation affects the performance of the design.
You can vary design parameters that are assigned a quantity, such as geometry dimensions,
material properties, and boundary and excitation properties. (See the online help topic for the
specific parameter you want to vary.) The number of variations that can be defined in a parametric
sweep setup is limited only by your computing resources.
To perform a parametric analysis, you first create a nominal design. A nominal design is created like
any other design, except that variables are assigned to those aspects of the model you want to
change. All variables must be defined before you start the parametric analysis. Although you are not
required to solve the nominal design before performing a parametric analysis, doing so helps ensure
that the model is set up and operates as intended. Alternatively, you can perform a validation check
on the nominal design before performing a parametric analysis.
Parametric analyses are often used as precursors to optimization analyses because they enable you
to determine a reasonable range of variable values for an optimization analysis.
Related Topics
Optimetrics 24-2
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
1. On the Maxwell3D or Maxwell2D menu, point to Optimetrics Analysis, and then click Add
Parametric .
l Alternatively, right-click Optimetrics in the project tree, and then click Add>Parametric on
the shortcut menu.
The Setup Sweep Analysis dialog box appears.
2. Add a variable sweep definition.
After you define a parametric sweep, a shortcut menu becomes available when you right-click the
setup name.
Note Sweeping or using a complex variable is not allowed in any optimetrics setup, including
optimization, statistical, sensitivity, and tuning setups.
Related Topics
Parametric .
l Alternatively, right-click Optimetrics in the project tree, and then click Add>Parametric on
the shortcut menu.
The Setup Sweep Analysis dialog box appears.
2. Under the Sweep Definitions tab, click Add.
The Add/Edit Sweep dialog box appears.
All the independent variables associated with the design are listed in the Variable pull-down
list of the Add/Edit Sweep dialog.
3. Click the variable for which you are defining the sweep definition from the Variable pull-down
list.
Optimetrics 24-3
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
If you do not define a sweep definition for a variable in the list, the variable's current value in
the nominal design is used in the parametric analysis.
4. Specify the variable values to be included in the sweep.
5. Click Add, and then click OK.
You return to the Setup Sweep Analysis dialog box. The variable sweep is listed in the top
half of the window.
6. View the design variations that are to be solved in table format under the Table tab. Viewing
the sweep definition in table format enables you to visualize the design variations that are to be
solved and manually adjust sweep points if necessary.
7. Optionally, click the button for setting HPC and Analysis Options, which allows you to select
or create an analysis configuration.
8. Click OK.
Related Topics
2. If you selected Single value, type the value of the sweep definition in the Value box.
If you selected another sweep type, do the following:
Optimetrics 24-4
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
a. Type the starting value of the variable range in the Start text box.
b. Type the final value of the variable range in the Stop text box.
Warning Variable values must be single real numbers, or expressions that evaluate to
single real numbers. Complex numbers cannot be used as the values of
variables in any optimetric analysis.
3. If you selected Linear step as the sweep type, type the step size in the Step box.
The step size is the difference between variable values in the sweep definition. The step size
determines the number of design variations between the start and stop values. Maxwell will
solve the model at each step in the specified range, including the start and stop values. The
step size can be negative, when the Stop value is less than the Start value
If you selected another sweep type, type the number of points, or variable values, in the sweep
definition in the Count text box. For Decade count and Octave count, the Count value
specifies the number of points to calculate in every decade or octave. For Exponential
count, the Count value is the total number of points. The total number of points includes the
start and stop values.
Related Topics
By default, variable sweep definitions are nested. Alternatively, you can synchronize the variable
sweep definitions if they have the same number of sweep points.
For example, if you synchronize a sweep definition that includes values of 1, 2, and 3 inches with a
second sweep definition that includes values of 4, 5, and 6 inches, Maxwell will solve 3 design
variations. The first variation is solved at the variable values of 1 and 4; the second variation is solved
at the variable values 2 and 5; and the third variation is solved at the final variable values 3 and 6.
To synchronize variable sweep definitions:
1. Under the Sweep Definitions tab of the Setup Sweep Analysis dialog box, select the rows
containing the sweep definitions you want to synchronize.
2. Click Sync.
The synchronized sweeps are given a group number, which is listed in the Sync # column.
Optionally, view the design variations that are to be solved in table format under the Table tab.
Related Topics
Optimetrics 24-5
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
l To delete a variable value from the sweep definition, click the row you want to delete, and
Related Topics
Optimetrics 24-6
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
The Override option is now selected. This indicates that the value you entered will be used for
the parametric setup. For this parametric setup, the new value will override the current value
in the nominal design.
Note Alternatively, you can select the Override option first, and then type a new variable value
in the Value box.
4. Optionally, click a new unit in the Units box.
To revert to the current variable value, clear the Override option.
Warning Variable values must be single real numbers, or expressions that evaluate to single real
numbers. Complex numbers cannot be used as the values of variables in any optimetric
analysis.
Related Topics
Related Topics
When you add a parametric setup, you can identify one or more solution quantities to be presented in
the Post Analysis Display dialog box. The solution quantities are specified by mathematical
expressions that are composed of basic quantities, such as output variables. When you view the
results, Maxwell extracts the solution quantities and lists them in the results table.
1. In the Setup Sweep Analysis dialog box, click the Calculations tab.
This displays a table that will show Solutions and associated Calculations. Below the table, are
control buttons to Setup Calculations... and Delete.
2. Click Setup Calculations.
Optimetrics 24-7
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
This displays the Add/Edit Calculation dialog. The dialog contains panes to set the Context,
the Trace tab for the Calculation Expression, and the Calculation Range tab for the
Calculation Range.
Follow the procedure to Setup Calculations for Optimetrics.
3. Click Add Calculation to add the expression in the Add/Edit Calculation dialog
Calculation Expression field to the Calculations tab of the Setup Sweep Analysis dialog.
4. Click Done to close the Add/Edit Calculation dialog.
Related Topics
The Setup dialogs for each of the Optimetrics types include a Setup Calculations button. Clicking
this displays the Add/Edit Calculation dialog box. The dialog box contains distinct panes and tabs
to set the Context, the Calculation Expression, and the Calculation Range.
The Context pane contains fields for the Report Type to use, the Solution, and depending on the
Report Type selection, the Geometry.
The Trace tab contains fields for the Calculation expression, and, to build the expression, a
Category list, a Quantity list with a Text Filter field, and a list of Functions available for the selected
Category. The Range function button opens a dialog in which you can define a range function to
apply a function to the expression.
The Category list for the Trace tab includes Variables and Output Variables. An Output Variables...
button lets you open a dialog box to define and edit the Output Variables.
To setup an Optimetrics calculation:
1. Click the Setup Calculations button to open the Add/Edit/Calculation dialog.
2. In the Report Type text field in the Context pane, select from the drop down list of available
types.
Selecting Fields as the Report type causes the Geometry field to display.
3. In the Solution text box, select from the drop down list of available solutions.
4. If the Geometry field is available, select from the drop down list.
5. In the Trace tab, specify the solution Category, a Quantity, and Functions. The resulting
expression will be displayed in the Calculation Expression field.
a. Select the Category from the list.
The selection appears in the Calculation Expression field, and the Quantity and
Function fields list what is available for the corresponding selection.
b. Select the Quantity from the list.
The selected quantity appears in the Calculation Expression field.
Optimetrics 24-8
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
If the Quantity list is long, you can filter it for easier selection by typing in the text filter field.
Only quantities that contain those alphanumeric characters anywhere in their name will
remain visible in the list.
If you want to create an output variable that represents the solution quantity, do the
following:
l Click the Output Variables button.
The Output Variables dialog box appears.
l Add the expression you want to evaluate, and then click Done.
The recently created output variable appears in the Quantity list.
l Click a new output variable in the Quantity pull-down list.
Note The calculation you specify must be able to be evaluated into a single, real
number.
The selected Quantity appears in the Calculation Expression field.
c. Select the Function from the list.
The selected function is applied to the Quantity in the Calculation Expression field.
6. To apply a Range function to the Calculation Expression, see Setting a Range function.
7. Click Add Calculation to add the expression in the Add/Edit Calculation dialog
Calculation Expression field to the Calculations tab of the Setup Sweep Analysis dialog.
8. Click Done to close the Add/Edit Calculation dialog box.
Related Topics
The calculation range of a solution quantity determines the value of intrinsic variables such as
frequency (F) at which the solution quantity will be extracted. For a parametric setup, the calculation
range must be a single value.
1. In the Setup Sweep Analysis dialog box, click the Calculations tab.
2. Click the Setup Calculations button.
The Add/Edit/Calculation dialog box appears.
3. Select the Calculation Range tab.
4. In the Variable list, click an intrinsic variable.
Depending on the variable and Report Type, either a single value or All appears in the Value
field.
5. To change the Value, click the ellipsis button.to display a dialog box that lets you select
particular values, or specify a range of values (for Time sweeps). By default, Use all values is
selected.
Optimetrics 24-9
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
l For variables other than Time, unchecking Use all values enables a list of available values.
You can use the buttons to Clear All or Select All values.
a. Select the SweepDefault or Edited radio buttons to specify whether to accept the
default or edited sweeps.
b. To edit the sweeps further, select the ellipsis [...] button to display an Edit Sweep dialog
box. For frequency variables, this lets you specify a single value, linear step, linear
count, decade count, octave count, or exponential count. You can Add legal values to
the list of sweep values, Update the list for changes, or Delete selected entries.
c. When finished selecting/editing sweep values, close the dialog box. The values you
select are displayed in the Value field.
l For Time sweeps:
a. Select the Specify range radio button to enable the Min and Max value fields.
b. Enter the desired Min and Max values, and choose the associated units of measure
from the drop down lists.
c. When finished, close the dialog box. The values you selected are displayed in the Value
field.
6. Click Update, and then click Done.
Related Topics
Optimetrics 24-10
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Related Topics
Optimetrics 24-11
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
defined before they are accepted from a file. The characters in variable names are not case
sensitive. Consecutive separators are treated as one separator.
The header row also takes units in ( ) as well as the conventional [ ].
Related Topics
Optimization Overview
Optimetrics interfaces with ANSYS Electromagnetics products to enable the optimization of a wide
variety of design parameters based on variable geometry, materials, excitations, component values,
etc. Optimization is the process of locating the minimum of a user-defined cost function. Optimetrics
modifies the variable values until the minimum is reached with acceptable accuracy.
Related Topics
Choosing an Optimizer
Conducting an optimization analysis allows you to determine an optimum solution for your problem.
In Maxwell optimization analyses, you have five choices of optimizer, though in most cases, the
Sequential Nonlinear Programming optimizer is recommended.
l Sequential Nonlinear Programming (SNLP)
l Quasi Newton
l Pattern Search
l Genetic Algorithm
l MATLAB Optimizer
All five optimizers assume that the nominal problem you are analyzing is close to the optimal solution;
therefore, you must specify a domain that contains the region in which you expect to reach the
optimum value.
All five optimizers allow you to define a maximum limit to the number of iterations to be executed.
This prevents you from consuming your remaining computing resources and allows you to analyze
the obtained solutions. From this reduced range, you can further narrow the domain of the problem
and regenerate the solutions.
All optimizers also allow you to enter a coefficient in the Add Constraints window to define the
linear relationship between the selected variables and the entered constraint value. For the SNLP
and NMINLP optimizers, the relationship can be linear or nonlinear. For the Quasi Newton and
Pattern Search optimizers, the relationship must be linear.
Optimetrics 24-12
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Cost functions can be quite nonlinear. As a result, during the function evaluations of the algorithm,
the cost function can vary significantly. Also, it is important to understand the relationship between
optimization function evaluation and iteration. Every iteration, depending on the number of
parameters to be optimized, performs several function evaluations. These function evaluations,
depending on how nonlinear the cost function is, could show drastic changes. The presence of
drastic changes has no bearing on whether the optimization algorithm converged or not.
In the case of non-gradient search-based optimization algorithms, such as "pattern search," which
are entirely based on function evaluations, one could see drastic changes in the function evaluations
depending on how nonlinear the cost function is. This could seem misleading as if the algorithm did
not converge since in theory one expects the cost function to decrease from one iteration to the next.
The optimetrics, however, reports function evaluations and not necessarily the optimizer
performance per iteration.
Note The MATLAB optimizer displays function evaluation when the Show all functions
evaluation check box is selected. If the check box is not selected, it displays
iteration.
Quasi Newton
If the Sequential Non Linear Programming Optimizer has difficulty, and if the numerical noise is
insignificant during the solution process, use the Quasi Newton optimizer to obtain the results. The
Quasi Newton optimizer works on the basis of finding a minimum or maximum of a cost function
which relates variables in the model or circuit to overall simulation goals. The user defines one or
more variables in the problem definition and a cost function in the optimization setup. The cost
function relates the variable values to field quantities, design parameters like force or torque, power
loss, etc. The optimizer can then maximize or minimize the value of the design parameter by varying
the problem variables.
Sir Isaac Newton first showed that the maximum or minimum of any function can be determined by
setting the derivative of a function with respect to a variable (x) to zero and solving for the variable.
This approach leads to the exact solution for quadratic functions. However, for higher order functions
or numerical analysis, an iterative approach is commonly taken. The function is approximately locally
by a quadratic and the approximation is solved for the value of x. This value is placed back into the
original function and used to calculate a gradient which provides a step direction and size for
determining the next best value of x in the iteration process.
In the Quasi-Newton optimization procedure, the gradients (Hessian) are not well behaved functions
and are calculated numerically. Essentially, the change in the estimate of x and the change in the
gradient are used to estimate the Hessian for the next iteration. The ratio of the change in the
gradients to the change in the values of x provides the Hessian for the next step and is know as the
quasi-Newton condition. In order to perform the Quasi-Newton optimization, at least three solutions
are required for each parameter being varied. This can have a significant computational cost
depending upon the type of analysis being performed.
There are numerous methods described in the literature for solving for the Hessian and the details of
the method used by Optimetrics are beyond the scope of this document. However, as the Quasi-
Newton method is, at its heart, a gradient method, it suffers from two fundamental problems
Optimetrics 24-13
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
common to optimization. The first is the possible presence of local minima. The figure below
illustrates the problem of local minima. In this scenario, you can see that in order to find the minimum
of the function over the domain, a number of factors will determine the overall success including the
initial starting point, the initial set of gradients calculated, the allowable step size, etc. Once the
optimizer has located a minimum, the Quasi-Newton approach will locate the bottom and will not
search further for other possible minima. In the example shown, when the optimizer begins at the
point labeled "Starting Point 1" the minima it finds is a local minima and not a good global solution to
the problem.
The second basic issue with Quasi-Newton optimization is numerical noise. In gradient optimization,
the derivatives are assumed to be smooth, well behaved functions. However, when the gradients
are calculated numerically, the calculation involves taking the differences of numbers that get
progressively smaller. At some point, the numerical imprecision in the parameter calculations
becomes greater than the differences calculated in the gradients and the solution will oscillate and
may never reach convergence. To illustrate this, consider the figure shown below. In this scenario,
the optimizer is looking for the point labeled "minimum". Three possible solutions are labeled A, B
and C, with each arrow indicating the direction of the derivative of the function at that point. If points
A and B represent the last two solution points for the parameter, then it is easy to see that the
changes in the magnitude and the consistent direction of the derivatives will serve to push the
solution closer to the desired minimum. If, however, points A and C are the last two solution points
respectively, the magnitude indicates the proper direction of movement, but the derivatives are
opposite, possibly causing the solution to move away from the minimum, back in the direction of point
A.
Optimetrics 24-14
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
In order to use the Quasi-Newton optimizer effectively, the cost function should be based on
parameters that exhibit a smooth characteristic (little numerical noise) and a starting point of the
optimization should be chosen somewhat close to the expected minimum based on an
understanding of the physical problem being optimized. This becomes increasingly difficult,
however, when multiple parameters are being varied or when multiple parameters are to be
optimized. In addition, the computational burden of multivariate optimization with Quasi-Newton
increases geometrically with the number of variables being optimized. As a result, this method
should only be attempted when 1 or 2 variables are being optimized as a time.
For more information regarding Quasi-Newton optimization methods, see the following reference:
Schoenberg, Ronald. Optimization with the Quasi-Newton Method. Aptech Systems, Inc. 2001.
Related Topics
Pattern Search
If the noise is significant in the nominal project, use the Pattern Search optimizer to obtain the results.
It performs a grid-based simplex search, which makes use of simplices: triangles in 2D space or
tetrahedra in 3D space. A simplex is a Euclidean geometric spatial element having the minimum
Optimetrics 24-15
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
number of boundary points, such as a line segment in one-dimensional space, a triangle in two-
dimensional space, or a tetrahedron in three-dimensional space.
The cost value is calculated at the vertices of the simplex. The optimizer mirrors the simplex across
one of its faces based on mathematical guidelines and determines if the new simplex provides better
results. If it does not produce a better result, the next face is used for mirroring and the pattern
continues. If no improvement occurs, the grid is refined. If improvement occurs, the step is accepted
and the new simplex is generated to replace the original one. The figures below illustrates a
triangular simplex mirrored several times to demonstrate the pattern search approach in two
variables and the simplices superimposed on a 2D cost function to demonstrate the convergence
toward a minimum in the cost function.
Cost functions can be quite nonlinear. As a result, during the function evaluations of the algorithm,
the cost function can vary significantly. Also, it is important to understand the relationship between
optimization function evaluation and iteration. Every iteration, depending on the number of
parameters to be optimized, performs several function evaluations. These function evaluations,
depending on how nonlinear the cost function is, could show drastic changes. The presence of
drastic changes has no bearing on whether the optimization algorithm converged or not.
In the case of non-gradient search-based optimization algorithms, such as "pattern search," which
are entirely based on function evaluations, one could see drastic changes in the function evaluations
depending on how nonlinear the cost function is. This could seem misleading as if the algorithm did
not converge since in theory one expects the cost function to decrease from one iteration to the next.
The optimetrics, however, reports function evaluations and not necessarily the optimizer
performance per iteration.
Note The MATLAB optimizer displays function evaluation when the Show all functions
evaluation check box is selected. If the check box is not selected, it displays
iteration.
Optimetrics 24-16
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Optimetrics 24-17
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
The Pattern Search algorithms are extensible to three variable optimization by using tetrahedral
simplices, however, they are not easily represented in graphical form. Generally, Pattern Search
algorithms are not used when more than three variables are used in the optimization.
When there is not improvement in the cost function regardless of the direction the simplex is
mirrored, then the simplex is subdivided into smaller simplices and the process restarted.
Pattern Search algorithms have several advantages over Quasi-Newton algorithms. First, they are
less sensitive to noise because the cost function is evaluated at all node points on the simplex and
the numerical noise averages out over the simplex. The second advantage is that the number of
initial solutions is generally smaller as shown in the table. However, since the pattern search does
not use gradient information to locate the minimum the process converges more slowly toward the
true minimum, taking more steps to successively divide the simplices as the minimum is approached.
Related Topics
The main advantage of SNLP over Quasi Newton is that it handles the optimization problem in more
depth. This optimizer assumes that the optimization variables span a continuous space. As a result,
there is no Minimum Step Size specified in this optimizer and the variables may take any value within
the allowable constraints and within the numerical precision limits of the simulator. Like Quasi
Newton, the SNLP optimizer assumes that the noise is not significant. It does reduce the effect of the
noise, but the noise filtering is not strong.
The SNLP optimizer approximates the FEA characterization with Response Surfaces (RS). With
the FEA-approximation and with light evaluation of the cost function, SNLP has a good
approximation of the cost function in terms of the optimization variables. This approximation allows
the SNLP optimizer to estimate the location of improving points. The overall cost approximations are
more accurate. This allows the SNLP optimizer a faster practical convergence speed than that of
quasi Newton.
The SNLP Optimizer creates the response surface using a Taylor Series approximation from the
FEA simulation results available from past solutions. The response surface is most accurate in the
local vicinity. The response surface is used in the optimization loop to determine the gradients and
calculate the next step direction and distance. The response surface acts as a surrogate for the FEA
simulation, reducing the number of FEA simulations required and greatly speeding the problem.
Convergence improves as more FEA solutions are created and the response surface approximation
improves.
The SNLP method is similar to the Sequential Quadratic Programming (SQP) method in two ways:
Both are sequential, updating the optimizer state to the current optimal values and iterating.
Sequential optimization can be thought of a walking a path, step by step, toward an optimal goal.
SNLP and SQP optimizers are also similar in that both use local and inexpensive surrogates.
However, in the SNLP case, the surrogate can be of a higher order and is more generally
Optimetrics 24-18
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
constrained. The goal is to achieve a surrogate model that is accurate enough on a wider scale, so
that the search procedures are well lead by the surrogate, even for relatively large steps. All
functions calculated by the supporting finite element product (for example, Maxwell 3D or HFSS) is
assumed to be expensive, while the rest of the cost calculation (for example, an extra user-defined
expression) — which is implemented in Optimetrics — is assumed to be inexpensive. For this
reason, it makes sense to remove inexpensive evaluations from the finite element problem and,
instead, implement them in Optimetrics. This optimizer holds several advantages over the Quasi
Newton and Pattern Search optimizers.
Most importantly, due to the separation of expensive and inexpensive evaluations in the cost
calculation, the SNLP optimizer is more tightly integrated with the supporting FEA tools. This tight
integration provides more insight into the optimization problem, resulting in a significantly faster
optimization process. A second advantage is that the SNLP optimizer does not require cost-
derivatives to be approximated, protecting against uncertainties (noise) in cost evaluations. In
addition to derivative-free state of the RS-based SNLP, the RS technique also proves to have noise
suppression properties.
Related Topics
The Sequential Mixed Integer Nonlinear Programming (SMINLP) optimizer is equivalent to the
SNLP optimizer with only one difference. Many problems require variables take only discrete values.
One example might be to optimize on the number of turns in a coil. To be able to optimize on number
of turns or quarter turns, the optimizer must handle discrete optimization variables. The SMINLP
optimizer can mix continuous variables among the integers, or can have only integers, and works if
all variables are continuous. The setup resembles the setup for SNLP, except that you must flag the
integer variables.supporting integer variables. You can set up internal variables based on the integer
optimization variable.
For example, consider N to be an integer optimization variable. By definition it can only assume
integer values. You can establish another variable, which further depends on this one: K = 2.345 * N,
or K = sin(30 * N). This way K has a discrete value, but is not necessarily integer. Or, one can use N
directly as a design parameter.
Related Topics
Optimetrics 24-19
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Genetic Algorithm
Genetic Algorithm (GA) optimizers are part of a class of optimization techniques called stochastic
optimizers. They do not use the information from the experiment or the cost function to determine
where to further explore the design space. Instead, they use a type of random selection and apply it
in a structured manner. The random selection of evaluations to proceed to the next generation has
the advantage of allowing the optimizer to jump out of a local minima at the expense of many random
solutions which do not provide improvement toward the optimization goal. As a result, the GA
optimizer will run many more iterations and may be prohibitively slow.
The Genetic Algorithm search is an iterative process that goes through a number of generations (see
picture below). In each generation some new individuals (Children / Number of Individuals) are
created and the grown population participates in a selection (natural-selection) process that in turn
reduces the size of the population to a desired level (Next Generation / Number of Individuals).
When a smaller set of individuals must be created from a bigger set, the GA selects individuals from
the original set. During this process, better fit (in relation to the cost function) individuals are
preferred. In the elitist selection, simply the best so many individuals are selected, but if you turn on
the roulette selection, then the selection process gets relaxed. An iterative process starts selecting
the individuals and fill up the resulting set, but instead of selecting the best so many, we use a
roulette wheel that has for each selection-candidate divisions made proportional to the fitness level
(relative to the cost function) of the candidate. This means that the fitter the individual is, the larger
the probability of his survival will be.
Related Topics
Optimetrics 24-20
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
MATLAB Optimizer
The MATLAB optimizer option lets you pass a script to MATLAB to perform the optimization. When
the optimization is analyzed, MATLAB is launched and a script is passed in to MATLAB to perform
the optimization. During the optimization, MATLAB will call back into our application to perform the
solve and compute the cost. The cost will be reported back to MATLAB, and MATLAB's optimization
will determine the next step in the optimization.
The optimization script is specified as part of the optimization setup. By modifying the optimization
script, users can change the optimization parameters and optimization method as well as use the full
power of MATLAB in their optimization.
l The user has added some other code which runs after the optimization has completed.
System Requirements
In order to use MATLAB to perform optimizations from your application:
l A version of MATLAB must be installed on your system.
l The computing platform (i.e. 64 bit or Linux) of MATLAB MUST match the platform of the
Optimetrics 24-21
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Thee upper text panel is informative. The Script section drop down lets you select a lower panel
display for Optimization algorithm, Options, or the Full script template.
This panel allows you to modify the script that is passed to MATLAB to perform the optimization. The
complete script contains all the instructions necessary for MATLAB to connect to Maxwell and
perform the optimization. The drop-down selection lets you view only the portion of code of interest
without having to view the full script. The choices are:
l Optimization algorithm: displays only the line of code invoking the actual optimization
function. By changing this line, the user can use a different MATLAB function for optimization.
By default we use fmincon(), which is a derivative-based constrained optimization. By
modifying this line, the user could replace the fmincon() call with fminsearch() to use
an unconstrained pattern searching optimizer or another optimization function. See the
MATLAB documentation for details about available optimization functions.
l Options: Each optimization function contains many options and parameters, which are set in
the MATLAB script prior to actually calling the optimization function. By modifying these
options, the optimization can be customized as desired. For instance, options can be set for
fmincon() to specify the algorithm that it uses internally. See the MATLAB documentation
for details about options available for each optimization function.
l Full script template: This choice displays the full optimization script that is passed to
MATLAB.
The initial Script Section display for the Optimization algorithm shows the following:
% invoke optimization
[x,fval,exitflag,output] = fmincon(wrapperfunc, startingpoint,
[], [], [], [], $ANS_MINVAL, $ANS_MAXVAL, nlcon, options)
The initial Script Section Options display shows the following:
% customers can add their own options below
options = optimset(options, 'display', 'iter')
options = optimset(options, 'Algorithm', 'interior-point')
% options = optimset(options, 'PlotFcns', @optimplotfval)
Optimetrics 24-22
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
You can modify the script to extend and customize the optimization to your needs. You must ensure
that the script follows MATLAB syntax. For instance, by modifying the optimization script you can:
l Change the optimization algorithm (e.g. call fminsearch instead of fmincon)
Symbols:
When modifying the MATLAB code, users can use symbols to represent values from the
optimization setup. The symbols and their definitions are listed below.
Note The linear constraints as generated for MATLAB have the form [A][x] <= [B], where [A] is
the coefficient matrix, [x] is the variable list matrix (column vector), and [B] is the bounds
matrix (column vector).
Note While modifying the script, please ensure that the script follows MATLAB
syntax.
Optimetrics 24-23
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
end
% add installation dir to search path so .mex file can be found
originalpath = addpath('$ANS_EXEDIR')
% connect back to opticomengine
callbackinterface = optimex('connect', '$ANS_CONNECTIONSTRING')
% set up optimization
% variables are: $ANS_VARIABLELIST
startingpoint = $ANS_STARTINGPOINT
options = optimset('MaxIter', $ANS_MAXITERATIONS)
iterationCallbackWrapper = @(x, optimValues, state) optimex
('notifyiterationcomplete', callbackinterface, x, optimValues.fval,
state)
options = optimset(options, 'OutputFcn', iterationCallbackWrapper)
% halt execution so debugger can be attached
% h = msgbox('attach debugger if desired')
% uiwait(h)
% attributes that user can pass to optimization algorithm
% variables are: $ANS_VARIABLELIST
% this is the objective function which returns cost
wrapperfunc = @(x)optimex('eval', callbackinterface, x)
% this is our non linear constraint function, returns no constraints
returnempty = @(x)[];
nlcon = @(x) deal(returnempty(x), returnempty(x));
% DO NOT EDIT THIS LINE - START OPTIONS SECTION
% customers can add their own options below
options = optimset(options, 'display', 'iter')
options = optimset(options, 'Algorithm', 'interior-point')
% options = optimset(options, 'PlotFcns', @optimplotfval)
% DO NOT EDIT THIS LINE - END OPTIONS SECTION
% DO NOT EDIT THIS LINE - START OPTIMIZATION ALGO SECTION
% invoke optimization
[x,fval,exitflag,output] = fmincon(wrapperfunc, startingpoint, $ANS_
A_MATRIX, $ANS_B_MATRIX, [], [], $ANS_MINVAL, $ANS_MAXVAL, nlcon,
options)
% DO NOT EDIT THIS LINE - END OPTIMIZATION ALGO SECTION
% write exit message to Ansoft message window
(warning=0,error=1,info=2)
optimex('postansoftmessage', callbackinterface, 2, output.message)
Optimetrics 24-24
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Related Topics
therefore, the cost function is defined over the design space (cost(x): , where n is the
number of optimization variables.
In practice, a solution of the minimization problem is sought only on a bounded subset of the Rn
space. This subset is called the feasible domain and is defined via linear constraints.
Optimetrics 24-25
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
l Modify the minimum and maximum values of variables that will be optimized.
l Modify the values of fixed variables that are not being optimized.
l Set the minimum and maximum step size between solved design variations (For the Quasi
Variables tab).
l Set Linear constraints.
l Set HPC and Analysis Options, which allows you to select or create an analysis
configuration.
Note Sweeping or using a complex variable is not allowed in any optimetrics setup, including
optimization, statistical, sensitivity, and tuning setups.
Related Topics
Optimization Overview
Choosing an Optimizer
Optimization .
The Setup Optimization dialog box appears.
Optimetrics 24-26
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
3. Under the Goals tab, select the optimizer by selecting Quasi Newton(Gradient) from the
Optimizer pull-down list. Selecting Quasi Newton enables the Acceptable Cost and Noise
fields.
4. Type the maximum number of iterations you want Optimetrics to perform during the
optimization analysis in the Max. No. of Iterations text box.
5. Under Cost Function, add a cost function by selecting the Setup Calculations button to
open the Add/Edit Calculation dialog.
6. Type the value of the cost function at which the optimization process should stop in the
Acceptable Cost text box.
7. Type the cost function noise in the Noise text box.
8. If you want to select a Cost Function Norm Type:
l Check the Show Advanced Option check box.
For L1 norm the actual cost function uses the sum of absolute weighted values of the
individual goal errors. For L2 norm (the default) the actual cost function uses the weighted
sum of squared values of the individual goal error. For the Maximum norm the cost function
uses the maximum among all the weighted goal errors. (For further details, see Explanation of
the L1, L2, and Max Norms in Optimization.)
The norm type doesn’t impact goal setting that use as condition the “minimize” or “maximize”
scenarios.
9. Optionally, click the button for setting HPC and Analysis Options, which allows you to select
or create an analysis configuration.
10. In the Variables tab, specify the Min/Max values for variables included in the optimization,
and the Min/Max Step Size for the analysis.
l You may also override the variable starting values by clicking the Override check box and
l Select the View all columns check box to see all columns, including hidden columns.
11. In the General tab, specify whether Optimetrics should use the results of a previous
Parametric analysis or perform one as part of the optimization process.
Enabling the Update design parameters’ value after optimization check box will cause
Optimetrics to modify the variable values in the nominal design to match the final values from
the optimization analysis.
12. Under the Options tab, if you want to save the field solution data for every solved design
variations in the optimization analysis, select Save Fields And Mesh.
Optimetrics 24-27
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Note Do not select this option when requesting a large number of iterations as the data
generated will be very large and the system may become slow due to the large I/O
requirements.
You may also select Copy geometrically equivalent meshes to reuse the mesh when
geometry changes are not required, for example when optimizing on a material property or
source excitation.This will provide some speed improvement in the overall optimization
process.
Optimization .
The Setup Optimization dialog box appears.
3. Under the Goals tab, select the optimizer by selecting Pattern Search(Search-based) from
the Optimizer pull-down list. Selecting Pattern Search enables the Acceptable Cost and
Noise fields.
4. Type the maximum number of iterations you want Optimetrics to perform during the
optimization analysis in the Max. No. of Iterations text box.
5. Under Cost Function, add a cost function by selecting the Setup Calculations button to
open the Add/Edit Calculation dialog.
6. Type the value of the cost function at which the optimization process should stop in the
Acceptable Cost text box.
7. Type the cost function noise in the Noise text box.
8. If you want to select a Cost Function Norm Type:
l Check the Show Advanced Option check box.
For L1 norm the actual cost function uses the sum of absolute weighted values of the
individual goal errors. For L2 norm (the default) the actual cost function uses the weighted
sum of squared values of the individual goal error. For the Maximum norm the cost function
uses the maximum among all the weighted goal errors. (For further details, see Explanation of
the L1, L2, and Max Norms in Optimization.)
Optimetrics 24-28
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
The norm type doesn’t impact goal setting that use as condition the “minimize” or “maximize”
scenarios.
9. Optionally, click the button for setting HPC and Analysis Options, which allows you to select
or create an analysis configuration.
10. In the Variables tab, specify the Min/Max values for variables included in the optimization,
and the Min/Max Step Size for the analysis.
l You may also override the variable starting values by clicking the Override checkbox and
l Select the View all columns check box to see all columns, including hidden columns.
11. In the General tab, specify whether Optimetrics should use the results of a previous
Parametric analysis or perform one as part of the optimization process.
Enabling the Update design parameters’ value after optimization check box will cause
Optimetrics to modify the variable values in the nominal design to match the final values from
the optimization analysis.
12. Under the Options tab, if you want to save the field solution data for every solved design
variations in the optimization analysis, select Save Fields And Mesh.
Note Do not select this option when requesting a large number of iterations as the data
generated will be very large and the system may become slow due to the large I/O
requirements.
You may also select Copy geometrically equivalent meshes to reuse the mesh when
geometry changes are not required, for example when optimizing on a material property or
source excitation.This will provide some speed improvement in the overall optimization
process.
Optimization .
The Setup Optimization dialog box appears.
Optimetrics 24-29
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
3. Under the Goals tab, select the optimizer by selecting Sequential Nonlinear Programming
(Gradient) from the Optimizer pull-down list.
4. Type the maximum number of iterations you want Optimetrics to perform during the
optimization analysis in the Max. No. of Iterations text box.
5. Under Cost Function, add a cost function by selecting the Setup Calculations button to
open the Add/Edit Calculation dialog.
6. If you want to select a Cost Function Norm Type:
l Check the Show Advanced Option check box.
For L1 norm the actual cost function uses the sum of absolute weighted values of the
individual goal errors. For L2 norm (the default) the actual cost function uses the weighted
sum of squared values of the individual goal error. For the Maximum norm the cost function
uses the maximum among all the weighted goal errors. (For further details, see Explanation of
the L1, L2, and Max Norms in Optimization.)
The norm type doesn’t impact goal setting that use as condition the “minimize” or “maximize”
scenarios.
7. Optionally, click the button for setting HPC and Analysis Options, which allows you to select
or create an analysis configuration.
8. In the Variables tab, specify the Min/Max values for variables included in the optimization,
and the Min/Max Focus for the analysis.
l You may also override the variable starting values by clicking the Override checkbox and
l Select the View all columns check box to see all columns, including hidden columns.
9. In the General tab, specify whether Optimetrics should use the results of a previous
Parametric analysis or perform one as part of the optimization process.
Enabling the Update design parameters’ value after optimization check box will cause
Optimetrics to modify the variable values in the nominal design to match the final values from
the optimization analysis.
10. Under the Options tab, if you want to save the field solution data for every solved design
variations in the optimization analysis, select Save Fields And Mesh.
Note Do not select this option when requesting a large number of iterations as the data
generated will be very large and the system may become slow due to the large I/O
requirements.
You may also select Copy geometrically equivalent meshes to reuse the mesh when
geometry changes are not required, for example when optimizing on a material property or
Optimetrics 24-30
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
source excitation.This will provide some speed improvement in the overall optimization
process.
Optimization .
The Setup Optimization dialog box appears.
3. Under the Goals tab, select the optimizer by selecting Sequential Mixed Integer Nonlinear
Programming(Gradient and Discrete) from the Optimizer pull-down list.
4. Type the maximum number of iterations you want Optimetrics to perform during the
optimization analysis in the Max. No. of Iterations text box.
5. Under Cost Function, add a cost function by selecting the Setup Calculations button to
open the Add/Edit Calculation dialog.
6. If you want to select a Cost Function Norm Type:
l Check the Show Advanced Option check box.
For L1 norm the actual cost function uses the sum of absolute weighted values of the
individual goal errors. For L2 norm (the default) the actual cost function uses the weighted
sum of squared values of the individual goal error. For the Maximum norm the cost function
uses the maximum among all the weighted goal errors. (For further details, see Explanation of
the L1, L2, and Max Norms in Optimization.)
The norm type doesn’t impact goal setting that use as condition the “minimize” or “maximize”
scenarios.
7. Optionally, click the button for setting HPC and Analysis Options, which allows you to select
or create an analysis configuration.
8. In the Variables tab, specify the Min/Max values for variables included in the optimization,
and the Min/Max Focus for the analysis.
Optimetrics 24-31
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
l You may also override the variable starting values by clicking the Override checkbox and
entering the desired value in the Starting Value field.
l Optionally, modify the values of fixed variables that are not being optimized.
l Optionally, set Linear constraints.
l Select the View all columns check box to see all columns, including hidden columns.
9. In the General tab, specify whether Optimetrics should use the results of a previous
Parametric analysis or perform one as part of the optimization process.
Enabling the Update design parameters’ value after optimization check box will cause
Optimetrics to modify the variable values in the nominal design to match the final values from
the optimization analysis.
10. Under the Options tab, if you want to save the field solution data for every solved design
variations in the optimization analysis, select Save Fields And Mesh.
Note Do not select this option when requesting a large number of iterations as the data
generated will be very large and the system may become slow due to the large I/O
requirements.
You may also select Copy geometrically equivalent meshes to reuse the mesh when
geometry changes are not required, for example when optimizing on a material property or
source excitation.This will provide some speed improvement in the overall optimization
process.
Optimization .
The Setup Optimization dialog box appears.
3. Under the Goals tab, select the optimizer by selecting Genetic Algorithm(Random search)
from the Optimizer pull-down list.
4. Click the Setup... button to modify the Advanced Genetic Algorithm Optimizer Options.
5. Under Cost Function, add a cost function by selecting the Setup Calculations button to
open the Add/Edit Calculation dialog.
6. If you want to select a Cost Function Norm Type:
l Check the Show Advanced Option check box.
Optimetrics 24-32
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
For L1 norm the actual cost function uses the sum of absolute weighted values of the
individual goal errors. For L2 norm (the default) the actual cost function uses the weighted
sum of squared values of the individual goal error. For the Maximum norm the cost function
uses the maximum among all the weighted goal errors. (For further details, see Explanation of
the L1, L2, and Max Norms in Optimization.)
The norm type doesn’t impact goal setting that use as condition the “minimize” or “maximize”
scenarios.
7. Optionally, click the button for setting HPC and Analysis Options, which allows you to select
or create an analysis configuration.
8. In the Variables tab, specify the Min/Max values for variables included in the optimization,
and the Min/Max Focus for the analysis.
l You may also override the variable starting values by clicking the Override checkbox and
l Select the View all columns check box to see all columns, including hidden columns.
9. In the General tab, specify whether Optimetrics should use the results of a previous
Parametric analysis or perform one as part of the optimization process.
Enabling the Update design parameters’ value after optimization check box will cause
Optimetrics to modify the variable values in the nominal design to match the final values from
the optimization analysis.
10. Under the Options tab, if you want to save the field solution data for every solved design
variations in the optimization analysis, select Save Fields And Mesh.
Note Do not select this option when requesting a large number of iterations as the data
generated will be very large and the system may become slow due to the large I/O
requirements.
You may also select Copy geometrically equivalent meshes to reuse the mesh when
geometry changes are not required, for example when optimizing on a material property or
source excitation.This will provide some speed improvement in the overall optimization
process.
Optimetrics 24-33
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
2. On the Maxwell3D or Maxwell2D menu, point to Optimetrics Analysis, and then click Add
Optimization .
The Setup Optimization dialog box appears.
3. Under the Goals tab, select the optimizer by selecting MATLAB from the Optimizer pull-
down list. Selecting MATLAB enables the Acceptable Cost and Noise fields.
4. Click the Setup... button to modify the MATLAB Optimizer Options.
5. Type the maximum number of iterations you want Optimetrics to perform during the
optimization analysis in the Max. No. of Iterations text box.
6. Under Cost Function, add a cost function by selecting the Setup Calculations button to
open the Add/Edit Calculation dialog.
7. Type the value of the cost function at which the optimization process should stop in the
Acceptable Cost text box.
8. Type the cost function noise in the Noise text box.
9. If you want to select a Cost Function Norm Type:
l Check the Show Advanced Option check box.
For L1 norm the actual cost function uses the sum of absolute weighted values of the
individual goal errors. For L2 norm (the default) the actual cost function uses the weighted
sum of squared values of the individual goal error. For the Maximum norm the cost function
uses the maximum among all the weighted goal errors. (For further details, see Explanation of
the L1, L2, and Max Norms in Optimization.)
The norm type doesn’t impact goal setting that use as condition the “minimize” or “maximize”
scenarios.
10. Optionally, click the button for setting HPC and Analysis Options, which allows you to select
or create an analysis configuration.
11. In the Variables tab, specify the Min/Max values for variables included in the optimization,
and the Min/Max Step Size for the analysis.
l You may also override the variable starting values by clicking the Override checkbox and
l Select the View all columns check box to see all columns, including hidden columns.
12. In the General tab, specify whether Optimetrics should use the results of a previous
Parametric analysis or perform one as part of the optimization process.
Optimetrics 24-34
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Enabling the Update design parameters’ value after optimization checkbox will cause
Optimetrics to modify the variable values in the nominal design to match the final values from
the optimization analysis.
13. Under the Options tab, if you want to save the field solution data for every solved design
variation in the optimization analysis, select Save Fields And Mesh.
Note Do not select this option when requesting a large number of iterations as the data
generated will be very large and the system may become slow due to the large I/O
requirements.
You may also select Copy geometrically equivalent meshes to reuse the mesh when
geometry changes are not required, for example when optimizing on a material property or
source excitation. This will provide some speed improvement in the overall optimization
process.
Related Topics
Cost Function
Optimetrics manipulates the model's design variable values to find the minimum location of the cost
function; therefore, you should define the cost function so that a minimum location is also the
optimum location.
When using the Quasi Newton optimizer, which is appropriate for designs that are not sensitive to
noise, the best cost function is a smooth, second-order function that can be approximated well by
Optimetrics 24-35
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
quadratics in the vicinity of the minimum; the slope of the cost function should decrease as
Optimetrics approaches the optimum value. The preferred cost function takes values between 0 and
1. In practice, most functions that are smooth around the minimum are acceptable as cost functions.
Most importantly, the cost function should not have a sharp dip or pole at the minimum. A well
designed cost function can significantly reduce the optimization process time.
The cost function is defined in the Setup Optimization dialog box or the Design of Experiments
setup when you set up an optimization analysis. If you know the exact syntax of the solution quantity
on which you want to base the cost function, you can type it directly in the Calculation text box. You
can also use Setup Calculations to add a solution quantity via the Add/Edit Calculation dialog
box, or to create an output variable that represents the solution quantity in the Output Variables
dialog box.
Related Topics
Acceptable Cost
The acceptable cost is the value of the cost function at which the optimization process should stop;
otherwise known as the stopping criterion.The cost function value must be equal to or below the
acceptable cost value for the optimization analysis to stop. The acceptable cost may be a negative
value.
Related Topics
Cost Function
Adding a Cost Function
The numerical calculation of the electromagnetic field introduces various sources of noise to the cost
function, particularly because of changes in the finite element mesh. You must provide the optimizer
with an estimate of the noise. The noise indicates whether a change during the solution process is
significant enough to support achievement of the cost function.
For example, if the cost function, c, is
Optimetrics 24-36
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
where |L11| is the magnitude of the inductance, at the minimum, |L11| is expected to be very small,
From the solution setup, the error in |L11| is expected to be . The perturbed cost function
is therefore
Related Topics
Cost Function
A cost function can include one or more goals for an optimization analysis. Optimetrics manipulates
the model's design variable values to fulfill the cost function.The optimization will stop when the
solution quantity meets the acceptable cost criterion.
Following is the general procedure for adding a cost function with a single goal:
1. Under the Goals tab of the Setup Optimization dialog box, click Setup Calculations...
The Add/Edit Calculation dialog box is displayed.
2. In the Add/Edit Calculation dialog box, follow these general steps to set up a cost function.
Optimetrics 24-37
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
6. In the Goal text box, type the value of the solution quantity that you want to be achieved during
the optimization analysis. If the solution quantity is a complex calculation, the goal value must
be complex; two goal values must be specified. The Minimize and Maximize options do not
require you to specify a Goal value.
7. Optionally, if you have multiple goals and want to assign higher or lower priority to a goal, type
a different value for the goal's weight in the Weight text box. The goal with the greater weight
is given more importance. If the goal is a complex value, the weight value must be complex;
two weight values must be specified. The weight value cannot be variable dependent.
Note Click the Edit Goal/Weight button to open the Edit Goal Value/Weight dialog box
where you can modify weights for all goals simultaneously; as well as, set the Goal
Values to expressions.
8. Optionally, click the button for setting HPC and Analysis Options, which allows you to select
or create an analysis configuration.
9. Specify other options (such as acceptable cost, noise, and number of passes), and then click
OK.
The optimization stops when the solution quantity meets the acceptable cost criterion.
Optimetrics 24-38
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Related Topics
The Add/Edit Calculation dialog box allows you to define the mathematical equation for one or
multiple cost functions. It represents the calculation to be performed on the optimization variables to
compare to the goal values. To set up a calculation for a cost function:
1. In the Context section of the dialog:
l Select the Report Type with a pull-down selection list containing the available types for this
design.
l Select the Solution from the drop down selection list. This lists the available setups and
modifies the list of quantities available to the ones that apply to the specific geometry.
2. The Output Variables button opens the Output Variables dialog box allowing you to create
special output variables to be used in the cost function.
3. The Calculated Expression field in the Trace tab is used to enter the equation to be used for
the cost function. To enter an expression, you may type it directly into the field or use the
Category, Quantity, and Function lists as follows:
l Select the Category, these depend on the Solution type and the design. This lets you
as the Geometry and Category selection. Selecting a Quantity automatically enters it into
the Calculated Expression field.
l Select a Function to apply to the value in the calculated expression.
l For swept variables, the Range Function button opens the Set Range Function dialog
to apply functions to the expression that apply over the sweep range.
4. The Calculation Range tab applies to swept variables and allows you to specify the range of
the sweep over which to apply the calculation.
5. When the desired Calculated Expression has been obtained, click the Add Calculation
button to add the entry to the cost function table. You may add multiple entries to the table
simply by changing the Calculated Expression and using the Add Calculation button.
6. To update or edit a selected cost function, enter the desired Calculated Expression and click
the Update Calculation button.
7. Click Done to return to the Setup Calculations dialog box.
Optimetrics 24-39
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
When setting up a cost function, you must identify the solution quantity on which to base each goal.
Solution quantities are specified by mathematical expressions that are composed of basic quantities,
such as matrix parameters, and output variables.
1. Add a row (a goal) to the cost function table:
a. Under the Goals tab of the Setup Optimization dialog box, click Add.
A new row is added to the Cost Function table.
b. In the Solution column, click the solution from which the cost function is to be extracted.
2. In the Solution text box, click the solution from which the solution quantity is to be extracted.
3. In the Calculation text box, specify the solution quantity in one of the following ways:
l If you know the syntax of the mathematical expression or the output variable's name, type it
following:
a. Click Edit Calculation.
The Output Variables dialog box appears.
b. Add the expression you want to evaluate, click Done.
c. Click Done to close the Output Variables dialog box.
In the Setup Optimization dialog box, the most recently created output variable
appears in the Calculation text box.
d. To specify a different defined output variable, click the Calculation text box. It becomes
a pull-down list that displays all of the defined output variables. Click an output variable
from the pull-down list.
The calculation range is the range within which you want a cost function goal to be calculated. It can
be a single value or a range of values, depending on the solution or solution quantity selected for the
goal.
1. Under the Goals tab in the Setup Optimization dialog box, click Edit Cal. Range.
2. In the Variable pull-down list, click a variable.
If you chose to solve a parametric setup during the optimization analysis, the variables swept
in that parametric setup are available in the Variable pull-down list. If you sweep a variable in
the parametric setup that is also being optimized, that variable is excluded from the
optimization.
Other examples of available variables include frequency, if the solution quantity is an S-
parameter quantity, and phi or theta, if the solution quantity is a radiated field quantity.
3. After you select a variable from the Variable pull-down list, you can select a range of values
for the calculation range as follows:
Optimetrics 24-40
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
a. Select Range.
b. In the Start text box, type the starting value of the range.
c. In the Stop text box, type the final value of the range.
4. To select a single value for the calculation range:
a. Select Single Value.
b. In the Value text box, type the value of the variable at which the cost function goal is to be
extracted.
5. Click Update, and then click OK.
A goal is the value you want a solution quantity to reach during an optimization analysis. It can be a
real value or a complex value. If the solution quantity is a complex calculation, the goal value must be
complex. You can type the goal value in the Goal text box. Alternatively, you can use the Edit
Goal/Value Weight dialog box to specify the goal value as a single value, a mathematical
expression, or a value dependent on a variable such as frequency.
Related Topics
1. Under the Goals tab in the Setup Optimization dialog box, click Edit Goal/Weight.
2. Under the Goal Value tab, click Simple Numeric Value from the Type list.
3. If the goal value is complex, click real/imag in the pull-down list to the right if you want to
specify the real and imaginary parts of the goal value.
Alternatively, click mag/ang if you want to specify the magnitude and angle of the goal value.
If the goal value is complex, type both parts of the goal value in the text box below the Goal
Value heading. For example, type 1, 1 to specify the real part of the goal value as 1 and the
imaginary part as 1.
If the goal value is real, type a real goal value in the text box below the Goal Value heading.
5. Click OK.
The goal value you specified appears in the Goal text box.
Optimetrics 24-41
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
1. Under the Goals tab in the Setup Optimization dialog box, click Edit Goal/Weight.
2. Under the Goal Value tab, click Expression from the Type list.
3. If you know the syntax of the mathematical expression or the existing output variable's name,
type it in the text box below the Goal Value heading.
Alternatively, if you want to create an output variable that represents the goal value, do the
following:
The goal value you specified appears in the Goal text box.
1. Under the Goals tab in the Setup Optimization dialog box, click Edit Goal/Weight.
2. Under the Goal Value tab, click Variable Dependent from the Type list.
3. Click a variable from the pull-down list to the left of the table.
4. Type the value of that variable in the first column of the table.
Warning Variable values must be single real numbers, or expressions that evaluate to
single real numbers. Complex numbers cannot be used as the values of variables
in any optimetric analysis.
5. Type a corresponding goal value for that variable value in the text box below the Goal Value
heading.
6. Click Add to add another row to the reference curve.
7. Repeat steps 4, 5, and 6 until you have specified the reference curve.
8. Click OK.
The goal value is listed as being variable dependent in the Goal text box.
Optimetrics 24-42
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Goal Weight
If an optimization setup has a cost function made up of multiple goals, you can assign a different
weight to each goal. The goal with the greater weight is given more importance during the cost
calculation.
The error function value is a weighted sum of the sub-goal errors. Each sub-goal, at each frequency
at which it is evaluated, gives rise to a (positive) error value that represents the discrepancy between
the simulated response and the goal value limit. If the response satisfies the goal value limit, then the
error value is 0. Otherwise, the error value depends on the differences between the simulated
response and the respective goal limit. The error function may be defined as follows:
where
l G is the number of sub-goals.
<=
Optimetrics 24-43
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
>=
If the total error value is within the acceptable cost, the optimization stops.
Related Topics
Optimetrics 24-44
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
3. Optionally, click a new unit system in one of the Units text boxes.
Note To revert to the default starting value, clear the Override check
box.
Related Topics
Related Topics
In the Setup Optimization dialog, you can enter the Calc. Range Sweep Min/Max by directly
editing the Calc. Range field or by accessing an Edit Calculation Range dialog.
Optimetrics 24-45
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Optimetrics 24-46
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
This example shows how the range appears in the Calc. Range field when you specify a range,.
Optimetrics 24-47
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
You could also enter the range directly in the Cal. Range field.
Overriding the Min. and Max. Variable Values for a Single Optimization Setup
Changing the Min. and Max. Variable Values for Every Optimization Setup
1. Make sure that the variable's minimum and maximum values are not being overridden in any
single optimization setup.
2. If the variable is a design variable, do the following: Click Maxwell3D or Maxwell2D>Design
Properties.
If the variable is a project variable, do the following: Click Project>Project Variables.
Optimetrics 24-48
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Step Size
To make the search for the minimum cost value reasonable, the search algorithm is limited in two
ways. First, you do not want the optimizer to continue the search if the step size becomes irrelevant
or small. This limitation impacts the accuracy of the final optimum. Second, in some cases you do not
want the optimizer to take large steps either. In case the cost function is suspected to possess large
variations in a relatively small vicinity of the design space, large steps may result in too many trial
steps, which do not improve the cost value. In these cases, it is safer to proceed with limited size
steps and have more frequent improvements.
For these two limitations, the optimizer uses two independent distance measures. Both are based on
user-defined quantities: the minimum and maximum step limits for individual optimization variables.
Since the particular step is in a general direction, these measures are combined together in order to
derive the limitation for that particular direction.
The step vector between the ith and (i+1)th iterate is as follows:
Optimetrics 24-49
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
where the matrix D incorporates the linear operation of the stretching of design space. The simplest
case is when the D matrix is diagonal, meaning that the design space is stretched along the
orthogonal direction of the base vectors.
The optimizer stops the search if,
where Dmax has diagonal elements equal to the inverse of Max. Step values of the corresponding
optimization variables.
Related Topics
For the Quasi Newton and Pattern Search optimizers, the step size is the difference in a variable's
value between one solved design variation and the next. The step size is determined when
Optimetrics locates the next design variation that should be solved in an effort to meet the cost
function.
1. In the Setup Optimization dialog box, click the Variables tab.
2. Optimetrics displays Min Step and Max Step columns, with default values for each variable to
be optimized.
3. In the Min Step text box, type the minimum step size value. Optionally, modify the unit system
in the Units text box.
4. In the Max Step text box, type the maximum step size value. Optionally, modify the unit
Optimetrics 24-50
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Related Topics
Step Size
The optimizer seeks optimal values for the optimization variables. These variables are usually
quantities with specified units. The change in one variable could be measured in [mm] and the
change in other variable could be measured in [mA]. Instead of those units, the optimizer uses
internal abstract units, so that a change in one variable changes the design behavior about as much
as the same change in another variable, where changes are measured in the respective internal
abstract units. When you define the focus box, the unit of the abstract internal unit is defined as the
Optimetrics 24-51
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
difference of the upper and lower focus limits. This way you can use the focus box to equalize the
influence of different optimization variables on the design behavior.
Related Topics
Optimetrics 24-52
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Related Topics
When you set multiple goals for an optimization, the question arises as to what is actually going to
drive the optimizer which is not a multi-objective one. The cost function will have a lot to do with it.
Optimetrics 24-53
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
The following discussion explains how the cost function is put together when there are multiple
goals.
The general goal setting structure in Optimetrics is a logical sentence with the format:
Calculation(i) Condition(i) Goal(i) Weight(i)
The cost function that the optimizer uses is built based on the norm setting as long as there are
multiple goals and none of those use the “minimize” or “maximize” conditions. Thus, in this case the
error associated with each individual goal (weighted) is combined in a way that is specific for each
norm type chosen.
For L1 norm the actual cost function uses the sum of absolute weighted values of the individual goal
errors:
For L2 norm the actual cost function uses the weighted sum of absolute values of the individual
For the Maximum norm the cost function uses the maximum among all the weighted goal errors:
For all the above situations N is the number of individual goals wiεi are individual weighting factors
and residual error respectively. A minimization of the cost function is performed during optimization
since it makes sense to minimize the error in the sense of the chosen norm type.
The graphical representation of the error is possible and depends upon the actual condition being
used. If a “<” condition is used, the error can be represented as below:
Optimetrics 24-54
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
If a “=” condition is used, the error is double-sided and can be represented as below:
The norm type doesn’t impact goal setting that use as condition the “minimize” or “maximize”
scenarios. Note that when using “minimize” or “maximize” settings for the condition there should be a
single goal setting which in this case coincides with the cost function.
Optimetrics 24-55
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Related Topics
Cost Function
l Elapsed time. If checked, this enables a drop down menu with times ranging from five
use. You can set the Number of Individuals to less than or equal to the size of the "Current
Generation". One reason to consider fewer parents than the possible maximum is to steer
the GA towards improvement by selecting the better portion of the current generation to be
able to mate.
l Roulette selection check box -- if checked, this enables the Selection pressure value
field. This number defines how many times more probable is the selection of the best
individual over the worst individual in an elementary spin of the roulette wheel.
4. Specify the Mating pool.
The Mating pool is created by selecting randomly from the parents, but with each selection, the
parent gets "cloned" so it can be selected again and again.
l Number of individuals field -- specify the number individuals to include in the mating pool.
Optimetrics 24-56
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
5. Click the Reproduction setup button for the dialog to specify the Crossover setup, and the
Mutation setup.
The crossover and mutation operator have different roles: Crossover mixes "features" of the
parents in a new combination, while mutation slightly alters the "features" of the individuals.
Both need to be present in a GA. The crossover is a way to discover new combinations while
the mutation acts as a local search or fine-tuning step. Mutation also keeps diversity in a
population, which is a must for GA.
The crossover operator has two steps. It first alters the variable values of the parents
according to a distribution. This tends to produce one child that looks a lot like one parent, and
one child that looks a lot like the other parent. Next, some of the variable values of the two
children can be exchanged in order to achieve more variation.
For crossover there are four possible parameters.
a. Individual Crossover Probability determines, for each pair in the mating pool, the
probability that their features will be mixed. Usually, this probability should be close or
equal to one. If you set it set less than one, some parents will produce two children which
are exact clones of the parents. This means that some children inherit all the features of
their parents unchanged.
b. Parents often have multiple variables. If the parent is a candidate for mixing, the Variable
Crossover Probability determines, for each variable, the probability of mixing. This is
usually set high to ensure that most or all variables mix.
c. Variable Exchange Probability: After the slight change in the variable values has been
made, the crossover operation is also able to exchange the values of the variables
between the two children that are being constructed. The Variable Exchange Probability
governs the likelihood of exchange of any variable.
d. Mu is a general parameter defining the sharpness of the distribution that might be used for
the Variable Crossover Probability. Mu should be greater than one. There is no
theoretical upper limit, but we recommend not exceeding 30.
6. Select one of the four Crossover types from the drop-down menu.
The crossover type selected affects the options available.
Optimetrics 24-57
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
7. Select the Mutation type--this can be one of three types, which you select from a drop-down
menu.
l Uniform Distribution
l Gaussian Distribution
l Polynomial Mutation.
small probability here), then there will be some children whose features are simply a
completely random design (design variables randomly selected over the domain).
l Individual Mutation Probability controls, for each child, the likelihood of a mild mutation.
l Variable Mutation Probability. If the child will be mutated, this probability controls at the
field. This number defines how many times more probable is the selection of the best
individual over the worst individual in an elementary spin of the roulette wheel.
13. Click OK to accept the settings for the Genetic Algorithm and to close the dialog.
Related Topics
Optimetrics 24-58
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Related Topics
Related Topics
Optimetrics 24-59
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
1. Before a variable can be included in a sensitivity analysis, you must specify that you intend for
it to be used during a sensitivity analysis in the DesignProperties dialog box.
2. On the Maxwell3D or Maxwell2D menu, point to Optimetrics Analysis, and then click Add
Sensitivity .
The Setup Sensitivity Analysis dialog box appears.
3. Under the Calculations tab, type the maximum number of iterations per variable value that
you want Maxwell to perform in the Max. No. of Iterations/Sensitivity Variable text box.
4. Set up an output parameter calculation and select a Master Output
5. Specify the value of the design point at which the sensitivity analysis should stop in the
Approximate Error in Master Output text box.
6. In the Variables tab, specify the Min/Max values for variables included in the optimization,
and the Initial Displacement (Initial Disp.) for the analysis.
You may also override the variable starting values by clicking the Override check box and
entering the desired value in the Starting Value field.
7. In the General tab, specify whether Optimetrics should use the results of a previous
Parametric analysis or perform one as part of the optimization process.
8. Under the Options tab, if you want to save the field solution data for every solved design
variations in the optimization analysis, select Save Fields And Mesh.
Note Do not select this option when requesting a large number of iterations as the data
generated will be very large and the system may become slow due to the large I/O
requirements.
You may also select Copy geometrically equivalent meshes to reuse the mesh when
geometry changes are not required, for example when optimizing on a material property or
source excitation.This will provide some speed improvement in the overall optimization
process.
The following optional sensitivity analysis setup options can also be used:
l Modify the starting variable value.
l Modify the minimum and maximum values of variables that will be solved.
l Modify the values of fixed variables that are not being modified during the sensitivity
analysis.
l Set linear constraints.
l You can also request that Optimetrics solve a parametric sweep during a sensitivity
analysis.
l Set HPC and Analysis Options, which allows you to select or create an analysis
configuration.
Note Sweeping or using a complex variable is not allowed in any optimetrics setup, including
Optimetrics 24-60
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Related Topics
Related Topics
Optimetrics 24-61
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
are close to the design point, but not so close that numerical noise (from the finite
element mesh) affects the analysis. The algorithm that Optimetrics uses to
determine the design variations to solve must be based on only one output
parameter and that output parameter’s numerical noise. If you have defined more
than one output parameter, be sure to select Master Output for the output variable
on which you want the selection of design variations to be based.
Related Topics
When setting up an output parameter, you must identify the solution quantity on which to base the
output parameter. Solution quantities are specified by mathematical expressions that are composed
of basic quantities, such as matrix parameters; and output variables.
The Add/Edit Calculation dialog box allows you to define the mathematical equation for one or
multiple output parameters. To set up an output parameter:
1. In the Context section of the dialog:
l Select the Report Type with a pull-down selection list containing the available types for this
design.
l Select the Solution from the drop down selection list. This lists the available setups and
modifies the list of quantities available to the ones that apply to the specific geometry.
l When selecting a geometry, you may also be required to specify a point within the geometry
as the Geometry and Category selection. Selecting a Quantity automatically enters it into
the Calculation Expression field.
l Select a Function to apply to the value in the calculated expression.
l For swept variables, the Range Function button opens the Set Range Function dialog to
apply functions to the expression that apply over the sweep range.
4. The Calculation Range tab applies to swept variables and allows you to specify the range of
the sweep over which to apply the calculation.
Optimetrics 24-62
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
5. When the desired Calculation Expression has been obtained, click the Add Calculation
button to add the entry to the calculation table in the Setup Sensitivity Analysis dialog box. You
may add multiple entries to the table simply by changing the Calculation Expression and
using the Add Calculation button.
6. To update or edit a selected cost function, enter the desired Calculation Expression and click
the Update Calculation button.
7. Click Done to return to the Setup Sensitivity Analysis dialog box.
Note The solution quantity you specify must be able to be evaluated to a single, real
number.
Related Topics
The calculation range of a solution quantity determines the intrinsic variable value at which the
solution quantity is to be extracted. For a sensitivity setup, the calculation range must be a single
value. If you specified that the solution quantity be extracted from a frequency sweep solution, by
default, Optimetrics uses the starting frequency in the sweep.
1. Under the Calculations tab of the Setup Sensitivity Analysis dialog box, click in the
Calculation Range column of the table for the calculation to be modified.
The Edit Calculation Range dialog box appears.
2. In the table, click the Edit button in the row to be modified.
If you choose to solve a parametric setup during the sensitivity analysis, the variables swept in
that parametric setup are available in the pop-up list dialog box. If you sweep a variable in the
parametric setup that is also a sensitivity variable, that variable is excluded from the sensitivity
analysis.
3. Click on the value for the calculation range in the list and dismiss the pop-up dialog
box.
4. Click OK in the Edit Calculation Range dialog box to accept the new value for the
intrinsic variable, and return to the Setup Sensitivity Analysis dialog box.
Related Topics
Optimetrics 24-63
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Warning Variable values must be single real numbers, or expressions that evaluate to single real
numbers. Complex numbers cannot be used as the values of variables in any optimetric
analysis.
1. In the Setup Sensitivity Analysis dialog box, click the Variables tab.
All of the variables that were selected for the sensitivity analysis are listed.
2. Type a new value in the Starting Value text box for the value you want to override, and then
press Enter.
The Override option is now selected. This indicates that the value you entered is to be used
for this sensitivity analysis; the current value set for the nominal model will be ignored.
l Alternatively, you can select the Override option first, and then type a new variable value in
Related Topics
Related Topics
Override the default minimum and maximum variable values for a single sensitivity setup.
Change the default minimum and maximum variable values for every sensitivity setup.
Overriding the Min. and Max. Variable Values for a Single Sensitivity Setup
1. In the Setup Sensitivity Analysis dialog box, click the Variables tab.
All of the variables that were selected for sensitivity analysis are listed.
2. Type a new value in the Min or Max text box for the value you want to override, and then press
Enter.
Optimetrics 24-64
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
The Override option is now selected. This indicates that the value you entered is to be used
for this sensitivity analysis; the variable's current Min or Max value set in the nominal design is
ignored.
l Alternatively, you can select the Override option first, and then type a new value in the Min
Related Topics
Changing the Min. and Max. Variable Values for Every Sensitivity Setup
1. Make sure the variable's minimum and maximum values are not being overridden in any
sensitivity setup.
2. If the variable is a design variable, do the following: Click Maxwell3D or Maxwell2D>Design
Properties.
If the variable is a project variable, do the following: Click Project>Project Variables.
The Properties dialog box appears.
3. Select Sensitivity.
4. Type a new value in the Min or Max text box for the value you want to override, and then press
Enter.
When Optimetrics solves a sensitivity setup, it does not consider variable values that lie
outside of this range.
Related Topics
Optimetrics 24-65
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Related Topics
Related Topics
Related Topics
Optimetrics 24-66
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Related Topics
Optimetrics 24-67
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
l Modify the values of fixed variables that are not being modified during the statistical
analysis.
l Request that Optimetrics solve a parametric sweep during a statistical analysis.
Note Sweeping or using a complex variable is not allowed in any optimetrics setup,
including optimization, statistical, sensitivity, and tuning setups.
l Set HPC and Analysis Options, which allows you to select or create an analysis
configuration.
9. If you want to save the field solution data for the design variations solved during analysis,
select Save Fields.
Related Topics
Related Topics
Specify initial seed value check box and type a positive value in the text box.
Optimetrics 24-68
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Related Topics
design.
l Select the Solution from the drop down selection list. This lists the available setups and
modifies the list of quantities available to the ones that apply to the specific geometry.
l When selecting a geometry, you may also be required to specify a point within the geometry
as the Geometry and Category selection. Selecting a Quantity automatically enters it into
the Calculation Expression field.
l Select a Function to apply to the value in the calculated expression.
l For swept variables, the Range Function button opens the Set Range Function dialog to
apply functions to the expression that apply over the sweep range.
5. The Calculation Range tab applies to swept variables and allows you to specify the range of
the sweep over which to apply the calculation.
6. When the desired Calculation Expression has been obtained, click the Add Calculation
button to add the entry to the calculation table in the Setup Statistical Analysis dialog box. You
may add multiple entries to the table simply by changing the Calculated Expression and
using the Add Calculation button.
Optimetrics 24-69
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
7. To update or edit a selected cost function, enter the desired Calculation Expression and click
the Update Calculation button.
8. Click Done to return to the Setup Statistical Analysis dialog box.
Note The solution quantity you specify must be able to be evaluated to a single, real
number.
Related Topics
Related Topics
Optimetrics 24-70
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Related Topics
Maxwell will solve design variations within the tolerance range of the starting value, using
an even distribution.
7. If the distribution type is Lognormal, do the following:
a. Enter the cutoff probability in the Cutoff Probability text box.
b. Enter the sigma value of the distribution in the Sigma text box and select a unit from the
pull-down.
c. Enter the m value of the distribution in the M text box.
d. Enter the theta value in the Theta text box and select a unit from the pull-down.
Optimetrics 24-71
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Related Topics
Statistical Cutoffs
Optimetrics 24-72
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Maxwell will solve design variations within the tolerance range of the starting value, using
an even distribution.
8. If the distribution type is Lognormal, do the following:
a. Type a cutoff probability value in the Cutoff Probability text box.
b. Type values for Sigma, M, and Theta in the corresponding text boxes.
9. If the distribution type is User Defined, do the following:
a. Type a cutoff probability value in the Cutoff Probability text box.
b. Click Edit XY Data to open the Edit Dataset dialog.
c. Either type or import the X and Y data values for the distribution in the Edit Dataset
dialog.
10. Click OK.
Related Topic
Statistical Cutoffs
Statistical Cutoffs
The cutoff probability values affects the Gaussian distribution criteria. This is a value =>0 and < 0.1.
Maxwell solves design variations using a Gaussian distribution using a lower limit cutoff probability
and specified mean and standard deviation values.
Uniform distributions such as variable “length” above use only the Tolerance value, and do not have
a cutoff probability.
Optimetrics 24-73
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Edit Distribution
When setting the distribution type for a variable, you have the option of changing the distribution
parameters from the default values.
1. If the distribution type is Gaussian, do the following:
a. Type the lower limit of the distribution in the Cutoff Probability text box. This is a value
=>0 and < 0.1.
b. Type the mean value of the distribution in the Mean text box.
c. Type the standard deviation of the distribution in the Std Dev text box.
Maxwell solves design variations using a Gaussian distribution within the specified mean
and standard deviation values.
Optimetrics 24-74
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Related Topics
Adding Datasets
Changing the Distribution Criteria for Every Statistical Setup
Overriding the Distribution Criteria for a Single Statistical Setup
Related Topics
Optimetrics 24-75
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Related Topics
Optimetrics 24-76
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
The Design of Experiments feature is integrated inside Electronics Desktop. Combined with
Electronics Desktop‘s distributed solve feature, you can build the response surfaces from the DOE
variation table much faster.
Optimetrics 24-77
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Selecting a Design of Experiments under Optimization opens a dialog with several tabs:
In the Design of Experiments setup, you select the DOE type, select the Response Surface, specify
goals, view and include variables.
There are a wide range of DOE algorithms or methods available in engineering literature. These
techniques all have one common characteristic: they try to locate the sampling points such that the
space of random input parameters is explored in the most efficient way, or obtain the required
information with a minimum of sampling points. Sample points in efficient locations only reduce the
required number of sampling points and increases the accuracy of the response surface generated.
For more information on the available types of DOE, see Design of Experiments Types.
Once you have set up your input parameters, you can update the DOE, which submits the generated
design points to the analysis system for solution. Design points are solved simultaneously if the
analysis system is set up to do so; sequentially, if not. After the solution is complete, you can update
the Response Surface cell, which generates response surfaces for each output parameter based on
the data in the generated design points.
Note Requirements and recommendations regarding the number of input parameters vary
according to DOE type. For more information, see Number of Input Parameters for DOE
Types.
If you change the Design of Experiments type after doing an initial analysis and preview the Design
of Experiments Table, any design points generated for the new algorithm that are the same as
design points solved for a previous algorithm will appear as up-to-date. Only the design points that
are different from any previously submitted design points need to be solved.
You should set up your DOE Properties before generating your DOE Design Point matrix. The
following topics describe setting up and solving your Design of Experiments, and viewing the results.
Related Topics
Optimetrics 24-78
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
You must define local or project variables as Optimization /Design of Experiments variables for the
Design of Experiments setup to include the variable.
Right-click on the Optimetrics icon in the Project tree and select Add>Design of Experiments. You
can also use Maxwell 2D (or 3D)>Optimetrics Analysis>Add Design of Experiments.
Optimetrics 24-79
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
From here you can right click on the DesignOfExperiments setup for the shortcut menu to run
Analyze, Submit Job... or Validate for Large Scale DSO.
Optimetrics 24-80
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Related Topics
The Design of Experiments tab in the DOE Setup includes selections for defining the sampling points
that define your experiment. Each selection for Design of Experiments type has a different set of
associated parameters so the appearance of the dialog changes to show the parameters for your
selection.
Optimetrics 24-81
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
The Design of Experiments Types available in the Desktop include the following:
Design of
Brief Description (click links for more details)
Experiments Types
An optimized Latin Hypercube Sampling maximizing distance between
experiments.
Several design type criteria are available:
l Max-Min Distance
l Centered L2
l Maximum Entropy
Several sampling types available which determine the number of samples
in the design:
Optimal Space
l CCD samples (Central Composite Designs are five level factorial
Filling(Default)
designs that are suitable for calibrating the quadratic response
model)
l Linear model samples
l Pure quadratic model samples
l Full quadratic model samples
l User-Defined samples
You also specify a Maximum Number of Cycles and a Random Generator
Seed.
Several design types available:
l Face-Centered
Central Composite
l Rotatable
Design
l VIF-Optimality
l G-Optimality
Optimetrics 24-82
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Design of
Brief Description (click links for more details)
Experiments Types
l Auto-defined
You can also choose a Standard or Enhanced Template.
Avoids critical configurations in the corner of the design space.
Box-Behnken
Maximum number of input parameters is 12.
Lets you customize a DOE matrix, by editing values, adding or removing
samples, and/or importing samples from a CSV file. Selecting Custom
enables an Import button and the Table tab, as well as buttons to Add
editable rows or Delete selected rows.
Custom
If you previously solved the DOE using one of the other algorithms, those
design points are retained and you can add new design points to the table.
You can also import and export design points into the custom DOE Table
from the Parameter Set.
Statistical design where no two experiments share input parameters of the
same value.
The samples Type can be:
l CCD Samples
Latin Hypercube l Linear Model Samples
Sampling l Pure Quadratic Model Samples
l Full Quadratic Model Samples
l User-Defined Samples, for which you also specify the Number of
Samples.
For each samples type, you also specify a Random Generator Seed.
The Table tab provides a preview view of the design points defined by your selections.
Related Topics
The goal in Design of Experiments is to determine the smallest sufficient set of points required to
calculate a response surface. Therefore, you choose the type depending on the parametric problem
and targeted response surface. The number of points depends on the number of input parameters,
or is user defined.
Optimal Space-Filling Design (OSF) creates optimal space filling Design of Experiments (DOE)
plans according to some specified criteria. Essentially, OSF is a Latin Hypercube Sampling Design
(LHS) that is extended with post-processing. It is initialized as an LHS and then optimized several
times, remaining a valid LHS (without points sharing rows or columns) while achieving a more
uniform space distribution of points (maximizing the distance between points).
Optimetrics 24-83
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
To offset the noise associated with physical experimentation, classical DOE types such as CCD
focus on parameter settings near the perimeter of the design region. Because computer simulation is
not quite as subject to noise, though, the Optimal Space-Filling (OSF) design is able to distribute the
design parameters equally throughout the design space with the objective of gaining the maximum
insight into the design with the fewest number of points. This advantage makes it appropriate when a
more complex meta-modeling technique such as Kriging, Non-Parametric Regression, or Neural
Networks is used.
OSF shares some of the same disadvantages as LHS, though to a lesser degree. Possible
disadvantages of an OSF design are:
l When the CCD Samples sample type is selected, a maximum of 20 input parameters is
supported.
l Extremes, such as the corners of the design space, are not necessarily covered.
l The selection of too few design points can result in a lower quality of response prediction.
The following properties are available for the OSF DOE type.
l Design Type: The following choices are available:
l Max-Min Distance (default): Maximizes the minimum distance between any two points.
This strategy ensures that no two points are too close to each other. For a small size of
sampling (N), the Max-Min Distance design generally lies on the exterior of the design
space and fill in the interior as N becomes larger. Generally, this is the faster algorithm.
l Centered L2: Minimizes the centered L2-discrepancy measure. The discrepancy
measure corresponds to the difference between the empirical distribution of the
sampling points and the uniform distribution. This means that the centered L2 yields a
uniform sampling. This design type is computationally faster than the Maximum
Entropy type.
l Maximum Entropy: Maximizes the determinant of the covariance matrix of the
sampling points to minimize uncertainty in unobserved locations. This option often
provides better results for highly correlated design spaces. However, its cost increases
non-linearly with the number of input parameters and the number of samples to be
generated. Thus, it is recommended only for small parametric problems.
l Maximum Number of Cycles: Determines the number of optimization loops the algorithm
needs, which in turns determines the discrepancy of the DOE. The optimization is essentially
combinatorial, so a large number of cycles slows down the process. However, this makes the
discrepancy of the DOE smaller. For practical purposes, 10 cycles is generally good for up to
20 variables. The value must be greater than 0. The default is 10.
l Samples Type: Determines the number of DOE points the algorithm should generate. This
option is suggested if you have some advanced knowledge about the nature of the
metamodel. The following choices are available:
l CCD Samples (default): Supports a maximum of 20 inputs. Generates the same
number of samples a CCD DOE would generate for the same number of inputs. You can
use this to generate a space filling design that has the same cost as a corresponding
CCD design.
Optimetrics 24-84
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
l Linear Model Samples: Generates the number of samples as needed for a linear
metamodel.
l Pure Quadratic Model Samples: Generates the number of samples as needed for a
pure quadratic metamodel (no cross terms).
l Full Quadratic Samples: Generates the number of samples needed to generate a full
quadratic model.
l User-Defined Samples: Specify the desired number of samples.
l Seed Value: Set the value used to initialize the random number generator invoked internally
by the LHS algorithm. Although the generation of a starting point is random, the seed value
consistently results in a specific LHS. This property allows you to generate different samplings
by changing the value or regenerate the same sampling by keeping the same value. The
default is 0.
l Number of Samples: Enabled when Samples Type is set to User-Defined Samples.
Specifies the default number of samples. The default is 10.
Related Topics
The goal in Design of Experiments is to determine the smallest sufficient set of points required to
calculate a response surface. Therefore, you choose the type depending on the parametric problem
and targeted response surface. The number of points depends on the number of input parameters,
or is user defined.
Central Composite Design (CCD) provides a screening set to determine the overall trends of the
metamodel to better guide the choice of options in Optimal Space-Filling Design. The CCD DOE
type supports a maximum of 20 input parameters.
The following properties are available for the CCD DOE type:
l Design Type: By specifying the Design Type for CCD, you can help to improve the
response surface fit for DOE studies. For each CCD type, the alpha value is defined as the
location of the sampling point that accounts for all quadratic main effects. The following CCD
design types are available:
l Face-Centered: A three-level design with no rotatability. The alpha value equals 1.0. A
Template Type setting automatically appears, with Standard and Enhanced options.
Choose Enhanced for a possible better fit for the response surfaces.
l Rotatable: A five-level design that includes rotatability. The alpha value is calculated
based on the number of input variables and a fraction of the factorial part. A design with
rotatability has the same variance of the fitted value regardless of the direction from the
center point.
l VIF-Optimality: A five-level design in which the alpha value is calculated by minimizing a
measure of non-orthogonality known as the Variance Inflation Factor (VIF). The more
Optimetrics 24-85
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
highly correlated the input variable with one or more terms in a regression model, the
higher the VIF.
l G-Optimality: Minimizes a measure of the expected error in a prediction and minimizes
the largest expected variance of prediction over the region of interest.
l Auto-Defined: Design exploration automatically selects the Design Type based on the
number of input variables. Use of this option is recommended for most cases as it
automatically switches between the G-Optimality if the number of input variables is 5 or
VIF-Optimality otherwise.
However, you can use the Rotatable design if the default option does not provide good
values for the Goodness of Fit from the response surface plots. Additionally, you can use
the Enhanced template if the default Standard template does not fit the response
surfaces well.
l Template Type: Enabled for the Rotatable and Face-Centered design types. The following
options are available:
l Standard
l Enhanced: Choose this option for a possible better fit for the response surfaces
Related Topics
The goal in Design of Experiments is to determine the smallest sufficient set of points required to
calculate a response surface. Therefore, you choose the type depending on the parametric problem
and targeted response surface. The number of points depends on the number of input parameters,
or is user defined.
A Box-Behnken Design is a three-level quadratic design that does not contain fractional factorial
design. The sample combinations are treated in such a way that they are located at midpoints of
edges formed by any two factors. The design is rotatable (or in cases, nearly rotatable).
One advantage of a Box-Behnken design is that it requires fewer design points than a full factorial
CCD and generally requires fewer design points than a fractional factorial CCD. Additionally, a Box-
Behnken Design avoids extremes, allowing you to work around extreme factor combinations.
Consider using the Box-Behnken Design DOE type if your project has parametric extremes (for
example, has extreme parameter values in corners that are difficult to build). Since the Box-Behnken
DOE doesn’t have corners and does not combine parametric extremes, it can reduce the risk of
update failures.
Possible disadvantages of a Box-Behnken design are:
l Prediction at the corners of the design space is poor and that there are only three levels per
parameter.
l A maximum of 12 input parameters is supported.
No additional properties are available for the Box-Behnken Design DOE type.
Optimetrics 24-86
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Related Topics
The goal in Design of Experiments is to determine the smallest sufficient set of points required to
calculate a response surface. Therefore, you choose the type depending on the parametric problem
and targeted response surface. The number of points depends on the number of input parameters,
or is user defined.
The Custom DOE type allows for definition of a custom DOE Table. You can manually add new
design points, entering the input and (optionally) output parameter values directly into the table. If
you previously solved the DOE using one of the other algorithms, those design points are retained
and you can add new design points to the table. You can also import and export design points into
the custom DOE Table from the Parameter Set.
You can change the edition mode of the DOE table to edit the output parameter values. You can also
copy and paste data and import data from a CSV file by right-clicking and selecting Import Design
Points.
Related Topics
The goal in Design of Experiments is to determine the smallest sufficient set of points required to
calculate a response surface. Therefore, you choose the type depending on the parametric problem
and targeted response surface. The number of points depends on the number of input parameters,
or is user defined.
In the Latin Hypercube Sampling Design DOE type, the DOE is generated by the LHS algorithm,
an advanced form of the Monte Carlo sampling method that avoids clustering samples. In a Latin
Hypercube Sampling, the points are randomly generated in a square grid across the design space,
but no two points share the same value. This means that no point shares a row or a column of the
grid with any other point.
Possible disadvantages of an LHS design are:
l When the CCD Samples sample type is selected, a maximum of 20 input parameters is
supported. For more information, see Number of Input Parameters for DOE Types.
l Extremes, such as the corners of the design space, are not necessarily covered. Additionally,
the selection of too few design points can result in a lower quality of response prediction.
Note: The Optimal Space-Filling Design DOE type is an LHS design that is extended with post-
processing.
The following properties are available for the LHS DOE type:
Optimetrics 24-87
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
l Samples Type: Determines the number of DOE points the algorithm should generate. This
option is suggested if you have some advanced knowledge about the nature of the
metamodel. The following choices are available:
l CCD Samples (default): Supports a maximum of 20 inputs. Generates the same
number of samples a CCD DOE would generate for the same number of inputs. You can
use this to generate a space filling design that has the same cost as a corresponding
CCD design.
l Linear Model Samples: Generates the number of samples as needed for a linear
metamodel.
l Pure Quadratic Model Samples: Generates the number of samples as needed for a
pure quadratic metamodel (no cross terms).
l Full Quadratic Samples: Generates the number of samples needed to generate a full
quadratic model.
l User-Defined Samples: Specify the desired number of samples.
l Seed Value: Set the value used to initialize the random number generator invoked internally
by the LHS algorithm. Although the generation of a starting point is random, the seed value
consistently results in a specific LHS. This property allows you to generate different LHS
samplings (by changing the value) or to regenerate the same LHS sampling (by keeping the
same value). The default is 0.
l Number of Samples: Enabled when Samples Type is set to User-Defined Samples.
Specifies the default number of samples. The default is 10.
Related Topics
The Table tab for the Design of Experiments Setup dialog displays a preview of the design points
designed by your selections on the Design of Experiments tab. There is one column for each
Optimetrics 24-88
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
defined variable. The Export button lets you create a file of the table in a format you specify.
If you have specified Custom as the Design of Experiments Type, the table is editable and the Table
tab includes buttons for Add and Delete Rows. The added Rows are editable. You can add new
rows by entering values in the * row of the table. You enter values in the input parameter columns.
Once you have entered a value in one column in the * row, the row is added to the table and the
values for the remaining input parameters are set to the initial values of the parameters. You can
then edit that row in the table and change any of the other input parameter values if needed. Output
parameter values are then calculated when the design is solved updated.
Optimetrics 24-89
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Depending on the context, the tables are read-only and filled automatically or they are partially or
completely editable. The background color of a cell indicates if it is editable or not:
l A gray background indicates a read-only cell
l A white background indicates an editable cell
Output parameter values calculated from a simulation (a design point update) are displayed in black
text.
The Custom Table view also includes an Import button. Import and Export files can be:
l Comma delimited data files, (*.csv)
l Tab delimited data files, (*.tab)
l Ansoft Plot Data files, (.dat)
l Post Processor format data files, (*.txt)
The Table updates automatically when you change your selections on the Design of Experiments
tab.
Related Topics
The Response Surface tab for the Design of Experiments Setup dialog lets you select the
Response Surface type as Genetic Aggregation or Standard Response Surface.
The selection here specifies the refinement applied to the initial Design of Experiments. The Genetic
Aggregation Response Surface finds the best possible response surface for each output
automatically by combining
l Metamodels
l Settings
Optimetrics 24-90
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
l Kernal Variation
l Polynomial Regression
For each output, a Fitness factor works to minimize error, including cross-validation errors. The
automatic refinement adds design points to the DOE until the response surface accuracy meets user
requirements. You can specify requirements for:
l Maximum Relative Error %
l Maximum Number or Refinement attempts
You do have the option of selecting Standard Response Surface- Full 2nd Order Polynomial.
After you have completed an analysis you can view the generated plot.
Related Topics
The Variables tab for the Design of Experiments Setup dialog displays list of the variables defined
for the Design and Project as Optimetrics/Design of Experiments variables.
The columns list the Variable names, the current Min and Max Values and Units, and provides
options for the following:
Optimetrics 24-91
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
l Override--check this to override the current design value. Unchecking this causes a dialog to
appear asking you to confirm the return to the design value.
l Include--whether to include the variable in an analysis.
l Discrete--Discrete Variables physically represent different configurations or states of the
model. When checkbox in the Discrete column is checked the button in the “Levels” column
will be enabled. The discrete values can be bounded by a min/man range and/or
manufacturable values. Click the Levels button for the row to edit the Discrete values. An edit
dialog for the variable appears.
Optimetrics 24-92
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Related Topics
Optimetrics 24-93
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
From the Response Surface tab, the “View” list box lets you select all available views of the selected
response-surface-setup.
l Refinement points table
l Response points table
l Verification points table
l Goodness of Fit
l Response Curve (see below)
l Response Curve (2D Slices, see below)
l Response Surface
The Update push button is disabled when the response surface is up to date. After the setup, if you
modify a verification point or refinement points, it is enabled. Click this button to re-generate the
response-surface with new settings. It may start new simulations if any of the design points in the
DOE, refinement points, or verification points has not been solved.
Response Curve
Optimetrics 24-94
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Discrete Variable
If you choose Discrete Variable as the X-axis, a bar chart plot is shown:
Optimetrics 24-95
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Related Topics
From the Response Surface tab, the “View” list box lets you select all available views of the selected
response-surface-setup. All refinement points are shown in the Refinement Points table:
Optimetrics 24-96
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Refinement points are points added to your model to enrich and improve your response surface.
They can either be generated automatically with the response surface update or added manually, as
described in Performing a Manual Refinement. As with design points, DesignXplorer must
perform a design point update (a "real solve") in order to obtain the output parameters for the
refinement points.
Upon update, the refinement points are used to build the response surface and are taken into
account for the generation of verification points. Along with DOE points, refinement points are also
used as "learning points" for Goodness of Fit calculations.
Manual refinement is a way to force the response surface to take into account points of your choice,
in addition to the points already in the Design of Experiments. You can insert a refinement point in
the Refinement Points table, and do not need to do an initial solve of the response surface (without
the refinement point) before updating your response surface with your manual refinement. Manual
refinement is available for all response surface types except for Sparse Grid.
You can add, delete, or modify refinement points by clicking the Add or Delete buttons, or by
modifying point values directly in the grid.
Manual Refinement Point can be inserted from the Response point table and Verification Points
Table.
Related Topics
From the Response Surface tab, the “View” list box lets you select all available views of the selected
response-surface-setup. All Response points are shown in the Response Points table:
Optimetrics 24-97
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
A response point is defined by a snapshot of variable values where output calculation values were
calculated in ANSYS DesignXplorer from a response surface. As such, the output calculation(or
cost) values are approximate and calculated from response surfaces.
You can add, delete, save, or export response points by using the command buttons in the dialog or
you can modify response points manually by modifying point values directly in the grid.
Click Add to Verify or Add to Refine buttons to insert the selected response point to the
verification table or refinement table.
Related Topics
From the Response Surface tab, the “View” list box lets you select all available views of the selected
response-surface-setup. All Verification points are shown in the Verification Points table:
Optimetrics 24-98
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Verification points enable you to verify that the response surface accurately approximates the output
parameter values; they compare the predicted and observed values of the output parameters.
You can add, delete and modify Verification points manually.
l Same as add/delete/modify refinement points.
l Insert from Response Points Table.
Click the Add to Refine button to insert the selected response point to the refinement table.
A design point update (that is, a "real solve") calculates each verification point. These verification
point results are then compared with the response surface predictions and the difference is
calculated.
Verification points are useful in validating any type of response surface. In particular, however, you
should always use verification points to validate the accuracy of interpolated response surfaces,
such as Kriging or Sparse Grid.
You can add, delete, save, or export verification points by using the command buttons in the dialog or
you can modify verification points manually by modifying point values directly in the grid.
Related Topics
From the Response Surface tab, the “View” list box lets you select all available views of the selected
response-surface-setup.Response surfaces are built from design points in the Design of
Experiments (DOE) and refinement points (collectively, called "learning points"). The Goodness of
Fit calculations compare the response surface outputs with the DOE results used to create them.
Optimetrics 24-99
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
The closer the points are to the diagonal line, the better the response surface fits the points.
You can view Goodness of Fit information for any of the output parameters in a response surface. To
do so click the ellipsis button [...] button to bring up this dialog:
Related Topics
Optimetrics 24-100
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Tuning Overview
Tuning a variable is useful when you want to manually modify its value and immediately perform an
analysis of the design. For example, it is useful after performing an optimization analysis, in which
Optimetrics has determined an optimal variable value, and you want to fine tune the value to see how
the design results (for example, traces in a report) are affected.
A design can be updated after a tuning analysis to reflect a design variation solved during a tuning
analysis and the results, including field solutions if you select Save Fields and Mesh on the
Options tab of the setup.
Related Topics
Tuning a Variable
Tuning a Variable
If you want to ensure that tuning does not resolve variations already solved by an optimization setup,
you must check Save Fields and Mesh in the Options tab of that setup.
1. Before a variable can be tuned, you must specify that you intend for it to be used during a
tuning analysis in a Project or Design Properties dialog box.
Optimetrics 24-101
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Optimetrics 24-102
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Warning Variable values must be single real numbers, or expressions that evaluate to
single real numbers. Complex numbers cannot be used as the values of variables
in any optimetric analysis.
Alternatively, if you want Maxwell to solve a range of values, specify a linear range of values
with a constant step size:
a. Select the Sweep check box.
b. In the text box below the Step value, type the starting value in the variable range.
c. Type the step size, or difference between variable values in the sweep definition, in the
Step text box. The step size determines the number of design variations between the start
and stop values. Maxwell solves the model at each step in the specified range, including
the start and stop values.
d. In the text box just below the variable name, type a stopping value in the variable range.
7. If you have cleared the Real Time check box, click Tune to apply the changes you have made
to the variable values.
Note Sweeping or using a complex variable is not allowed in any optimetrics setup,
including optimization, statistical, sensitivity, and tuning setups.
8. Changing a variable value with the sliders of by typing in the text field enables the Save and
Reset buttons.
Clicking Save opens a Save As dialog with a name field, and an Apply tuned values to
design check box.
Clicking Reset changes the variable values back to what they were originally.
9. If you have changed one or more included variables, clicking Close on the Tuning dialog
opens the Apply Tuned Variation dialog. This lists the included variables and the values for
each tuning. If you have tried multiple values, they are listed, and the current value is
highlighted. Select another value to change the highlight. Click OK to apply the highlighted
values to the design, or Don’t Apply to ignore the changes from the original variable values.
If you have applied variant values, you should see the new values listed in the relevant Design
or Project Properties lists of variables and values, and if the changes affect plots or physical
features of a model, those changes should also appear.
Click Cancel to close the dialog and go back to the Tune dialog.
Related Topics
Optimetrics 24-103
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
2. Click the design variation you want to apply, and then click OK.
The variable values from the solved design variation become the current variable values for
the nominal design. If you have applied variant values, you should see the new values listed in
the relevant Design or Project Properties lists of variables and values, and if the changes
affect plots or physical features of a model, those changes should also be apparent.
Related Topics
Optimetrics 24-104
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Related Topics
Solutions for the design variations solved during tuning analyses remain available for post
processing.
Related Topics
Optimetrics 24-105
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Related Topics
Optimetrics 24-106
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Related Topics
Related Topics
Maxwell will save the field solution data for every solved design variation in a tuning analysis.
Related Topics
Optimetrics 24-107
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Related Topics
Related Topics
Optimetrics 24-108
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Optimetrics 24-109
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
l In the Setup Sensitivity Analysis dialog box, click the Variables tab.
l In the Setup Statistical Analysis dialog box, click the Variables tab.
All of the independent variables that were selected for the optimization analysis are listed.
2. Clear the Include option for the variable you want to exclude from the analysis.
The Override option is now selected. This indicates that, for this optimization analysis, the
variable is not included.
Note Alternatively, you can select the Override option first, and then clear the Include option for
the variable you want to exclude.
3. Click OK.
l In the Setup Sensitivity Analysis dialog box, click the Variables tab.
l In the Setup Statistical Analysis dialog box, click the Variables tab.
Optimetrics 24-110
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Linear Constraints
Once the optimization variables are specified, the optimizer handles each of them as an n-
dimensional vector x. Any point in the design space corresponds to a particular x-vector and to a
design instance. Each design instance may be evaluated via Finite Element Analysis and assigned a
cost value; therefore, the cost function is defined over the design space (cost(x): Rn→R), where n is
the number of optimization variables.
In practice, a solution of the minimization problem is sought only on a bounded subset of the Rn
space. This subset is called the feasible domain and is defined via linear constraints.
You may constrain the feasible domain of a design variable by defining linear constraints for the
optimization process. The feasible domain is defined as the domain of all design variables that satisfy
all upper and lower bounds and constraints. Linear constraints are defined by the following
inequalities:
where
l αij are coefficients.
l cj is a comparison value for the jth linear constraint.
l xi is the ith designer parameter.
Related Topics
Optimetrics 24-111
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
4. Click a Coeff text box and type a positive or negative coefficient value.
5. Click a condition, < (less than) or > (greater than), from the pull-down list.
6. Type the inequality value, which should be a constant value, in the text box to the right of the
condition.
7. Click OK.
You return to the Linear Constraint dialog box. The left-hand side of the constraint appears
in the LHS (left-hand side) column. The condition is listed in the Condition column, and the
inequality value is listed in the RHS (right-hand side) column.
Related Topics
Optimetrics 24-112
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
l Select the Result tab to view results in plot or table form. When you view results in Table form
you can resort the results based on each column. For example, click the Variation column
Optimetrics 24-113
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
head to invert the sort from lowest to highest setup number. Click the variable name column to
resort the results by step value. Click the Cost column head to sort the results from lowest cost
to highest cost. Clicking a column again inverts the current sort.
l Click the Options button to open a dialog that permits you to specify the Maximum number of
significant digits to display when showing the analysis result. The default is 4.
l Select the Profile tab to view start, stop, and elapsed times for each variable, and the analysis
machine for each variation. You can click the column heads to sort the table by variation
number,variable value, start, stop, or elapsed time, or (if you have run a distributed analysis)
machine.
See the help topics in this section for more details about viewing optimization analysis results.
Related Topics
Related Topics
Optimetrics 24-114
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Related Topics
Optimetrics 24-115
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Related Topics
To plot solution quantity results versus a swept variable's values on a rectangular (x - y) plot:
1. In the project tree, right-click the parametric setup for which you want to view the results, and
then click View Analysis Result on the shortcut menu.
The Post Analysis Display dialog box appears.
2. If it is not already selected, select Plot as the view type.
3. Select the variable with the swept values you want to plot on the x-axis from the X pull-down
list.
4. Only one sweep variable at a time can be plotted against solution quantity results. Any other
variables that were swept during the parametric analysis remain constant.
Optionally, to modify the constant values of other swept variables, do the following:
a. Click Set Other Sweep Variables Value.
The Setup Plot dialog box appears. All of the other solved variable values are listed.
b. Click the row with the variable value you want to use as the constant value in the plot, and
then click OK.
5. Select the solution quantity results you want to plot on the y-axis from the Y pull-down list.
The xy plot appears in the view window.
6. Right-click in the plot area to get the shortcut menu where you can set modify the plots display
properties, print, copy to the clipboard, or export the data to a file.
Optimetrics 24-116
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
The cost value at each solved design variation is listed in table format.
3. Optionally, click a design variation in the table, and then click Apply.
Maxwell now points to the selected design variation as the nominal solution and as a result, the
design displayed in the Modeler window is changed to represent the selected design
variation.
Click Revert to return the design in the view window to the original value.
Related Topics
To view cost values versus completed iterations in rectangular (x-y) plot format:
1. In the project tree, right-click the optimization setup for which you want to view the cost results,
and then click View Analysis Result on the shortcut menu.
The Post Analysis Display dialog box appears.
2. Under the Result tab, select Plot as the view type.
A plot of the cost value at each iteration appears.
Value column.
l The first derivative of the regression is listed in the 1st D column.
3. Click Apply.
Maxwell now points to the selected design variation as the nominal solution and as a result, the
design displayed in the Modeler window is changed to represent the selected design
variation.
Click Revert to return the design in the view window to the original value.
Optimetrics 24-117
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
Related Topics
To plot output parameter results versus sensitivity variable values on a rectangular (xy) plot:
1. In the project tree, right-click the sensitivity setup for which you want to view the output
parameter results, and then click View Analysis Result on the shortcut menu.
The Post Analysis Display dialog box appears.
2. Under the Result tab, select Plot as the view type.
3. Select the sensitivity variable with the sweep values you want to plot on the x-axis from the X
pull-down list.
4. Select the output parameter results you want to plot on the y-axis from the Y pull-down list.
The xy plot appears in the Post Analysis Display dialog box.
The plot displays actual output parameter results for each solved design variation. It also
displays a parabola that best fits these results. The parabola is a more accurate
representation of sensitivity around the design point than any individual solved design
variation.
Optimetrics 24-118
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
A histogram plot appears in the Post Analysis Display dialog box. It displays the distribution
of the selected solution quantity.
8. Optionally, click a design variation in the table, and then click Apply (at the far right side of the
dialog box).
Maxwell now points to the selected design variation as the nominal solution and as a result, the
design displayed in the Modeler window is changed to represent the selected design
variation.
Click Revert to return the design in the view window to the original value.
Related Topics
1. In the project tree, right-click the statistical setup for which you want to view the distribution
results calculated for the solution quantities, and then click View Analysis Result on the
shortcut menu.
The Post Analysis Display dialog box appears.
2. Select the statistical setup with the results you want to view from the pull-down list at the top of
the dialog box.
3. If it is not already selected, select Plot as the view type.
4. Type the number of bins you want to plot on the x-axis.
5. Select the solution quantity for which you want to plot distribution results on the y-axis from the
Y pull-down list.
A histogram plot appears in the Post Analysis Display dialog box. It displays the distribution
of the selected solution quantity.
Optimetrics 24-119
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
5. When you have added the calculations of interest, click OK to save the setup.
An icon for the Design Xplorer setup appears under Optimization in the Project tree.
Optimetrics 24-120
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
6. To create a .xml file with the setup information for Design Xplorer, first Save your project.
7. Then right-click on the setup and select Export External Connector Addin Configuration.
This displays a browser dialog that you can use to navigate your file system, and name and
saves the .xml file. The .xml file contains information regarding the Maxwell path along with the
setup, variables, and simulation results that you specified.
8. If you have an ANSYS Workbench installation you can perform additional steps. Ensure that
you have provided a path to the Workbench installation in the Tools>General Options dialog
on the Miscellaneous panel.
9. Then click Create Workbench Project.
This lets you name a Workbench project containing the information in the setup. The ANSYS
Workbench will be launched with the connection to the Maxwell project established. To this
connection, you can add a Design Xplorer Setup. See the documentation of Ansys
Workbench for details on Design Xplorer.
Optimetrics 24-121
ANSYS Electromagnetics Suite 18.1 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential
information of ANSYS, Inc. and its subsidiaries and affiliates.
Maxwell Online Help
l Permanent-magnet DC motors.
l Universal motors.
l General DC machines.
l Claw-pole alternators.
When you start to design a new model in RMxprt, you first select one of the above motor or generator
types. You then enter the parameters associated with that machine type in each RMxprt Properties
window. The properties windows are accessed by clicking each of the machine elements (for
example, stator, rotor, shaft) under Machine in the project tree. General options are available
directly at the Machine level of the project tree. Solution and output options (such as the rated output
power) are set when you add a solution setup (by right-clicking Analysis in the project tree).
Related Topics
l Permanent-magnet DC motors.
l Universal motors.
l General DC machines.
l Claw-pole alternators.
When you start to design a new model in RMxprt, you first select one of the above motor or
generator types. You then enter the parameters associated with that machine type in each RMxprt
Properties window. The properties windows are accessed by clicking each of the machine elements
(for example, stator, rotor, shaft) under Machine in the project tree. General options are available
directly at the Machine level of the project tree. Solution and output options (such as the rated output
power) are set when you add a solution setup (by right-clicking Analysis in the project tree).
Related Topics
2. Click Project>Insert RMxprt Design or click the RMxprt icon on the toolbar.
The Select Machine Type window appears.
l Save the active project in another file format for use in another program.
Related Topics
Related Topics
l Click File>Save.
RMxprt saves the project over the existing one.
Warning Be sure to save machine models periodically. Saving frequently helps prevent the loss of
your work if a problem occurs. Although RMxprt has an "auto-save" feature, it may not
automatically save frequently enough for your needs.
Related Topics
To save an existing, active project with a new name, a different file extension, or to a new location:
1. Click File>Save As.
2. Use the file browser to find the directory where you want to save the file.
3. Type the name of the file in the File name box.
4. Click Save.
ANSYS Electronics Desktop saves the project with the new name or file extension to the
location you specified.
Related Topics
RMxprt stores recent actions you performed on the active project in an ANSYS Electronics Desktop
auto-save file in case a sudden workstation crash or other unexpected problem occurs. The auto-
save file is stored in the same directory as the project file and is named Projectn.aedt.auto by
default, where n is the order in which the project was added to the current session. ANSYS
Electronics Desktop automatically saves all data for the project to the auto-save file, except solution
data. By default, ANSYS Electronics Desktop automatically saves project data after every ten edits.
An "edit" is any action you perform that changes data in the project or the design, including actions
associated with project management, model creation, and solution analysis.
With auto-save activated, after a problem occurs, you can choose to re-open the original
project file (Projectn.aedt) in an effort to recover the solution data or to open the auto-save file.
To modify the auto-save settings:
1. Click Tools>Options>General Options.
The Options dialog box appears.
2. In the General>Desktop Configuration panel, verify that Do Autosave is selected.
This option is selected by default.
3. In the Autosave interval box, enter the number of edits that you want to occur between
automatic saves. By default, this option is set at 10.
Note Auto-save always increments forward; therefore, even when you undo a command,
ANSYS Electronics Desktop counts it as an edit.
4. Click OK to apply the specified auto-save settings.
Once the specified number of edits is carried out, a "model-only" save occurs. This means that
ANSYS Electronics Desktop does not save solutions data or clear any undo/redo history.
When ANSYS Electronics Desktop auto-saves, an ".auto" extension is appended to the
original project file name. For example, Project1.aedt will automatically be saved as
Projectn.aedt.auto.
Warning When you close or rename a project, ANSYS Electronics Desktop deletes the auto-save
file. ANSYS Electronics Desktop assumes that you have saved any desired changes at
this point.
Related Topics
Following a sudden workstation crash or other unexpected problem, you can recover the project
data in its auto-save file.
Warning When you recover a project's auto-save file you cannot recover any solutions data;
recovering an auto-save file means you will lose any solutions data that existed in the
original project file.
To recover project data in an auto-save file, if ANSYS Electronics Desktop containing an RMxprt
design has unexpectedly crashed:
1. Launch ANSYS Electronics Desktop from your desktop.
2. Click File>Open,.
3. Select the original Projectn.aedt project file for which you want to recover its
Projectn.aedt.auto auto-save file.
The Crash Recovery window appears, giving you the option to open the original project file
or the auto-save file.
4. Select Open project using autosave file to recover project data in the auto-save file, and
then click OK. ANSYS Electronics Desktop replaces the original project file with the data in
the auto-save file.
ANSYS Electronics Desktop immediately overwrites the original project file data with the auto-
save file data, removing the results directory (solutions data) from the original project file as it
overwrites to the auto-save file.
Warning If you choose to recover the auto-save file, you cannot recover the original project file
that has been overwritten; recovering data in an auto-save file is not reversible.
Related Topics
RMxprt Files
When you create any design in the ANSYS Electronics Desktop, including an RMxprt design, it is
given an .aedt file extension and stored in the directory you specify. Any files related to that project
are also stored in that directory.
Some common file and folder types are listed below:
You can save notes about a project, such as its creation date and a description of the device being
modeled. This is useful for keeping a running log on the project.
To add notes to a project:
1. Click RMxprt>Edit Notes.
The Design Notes dialog box appears.
2. Click in the window and type your notes.
3. Click OK to save the notes with the current project.
The title bar is located at the top of the application window. It displays the information of the active
design. If a machine editor window is maximized, its title is appended in the title bar within square
brackets. The information of the active design includes the desktop name, the project name, the
design name and the design type. For an RMxprt design, the design type is Machine.
The menu bar enables you to perform all Maxwell, ePhysics, and/or RMxprt tasks, depending on the
software you purchased. Such tasks include managing project files, customizing the desktop,
drawing objects, and setting and modifying all project parameters.
RMxprt contains the following menus, which appear at the top of the desktop:
File Use the File menu commands to manage RMxprt project files and printing options.
menu
Edit Use the Edit menu commands to modify properties in the active design, manage
menu designs in one or more projects, delete projects, and undo and redo actions.
View Use the View menu commands to display or hide desktop components, and change the
menu machine editor window view.
Project Use the Project menu commands to add a Maxwell 3D, Maxwell2D, or RMxprt design
menu to the active project, analyze all designs of the active project, and define project variables
and datasets.
Machine Use the Machine menu to work with the machine data, such as edit winding layout, edit
menu wire size, and set dimension unit for the active editor window.
RMxprt Use the RMxprt menu commands to validate design input data, analyze designs, set up
menu parameters, add analysis setups, set up Optimetrics, post process solutions, and other
design tasks.
Tools Use the Tools menu to modify the active project's material library, arrange the material
menu libraries, run and record scripts, update project definitions from libraries, display options,
customize the desktop's toolbars, and modify many of the software's default settings.
Window Use the Window menu commands to rearrange the application windows and toolbar
menu icons.
Help Use the Help menu commands to access the online help system and view the current
menu software version information.
Related Topics
A variety of shortcut menus — menus that appear when you right-click a selection — are available in
the toolbars area of the desktop, in the Machine Editor window, in the Project Manager window,
in the Properties window, and in the Message Manager window.
In the Use the shortcut menu in the toolbars area of the desktop to show or hide windows
toolbars or toolbars, and customize the toolbars.
area
In Machine Use the shortcut menu in the Machine Editor window to edit winding layout,
Editor display or hidden coil connection, change the view, and copy to Clipboard.
window
In the Slot Use the shortcut menu in the Slot Editor window to insert, append, modify, and
Editor remove slot segments.
window
In the Use the shortcut menus in the Project Manager window (or the project tree) to
Project manage project files and design properties; these commands duplicate menu
Manager commands at the top of the screen.
window
In Properties Use the shortcut menus in the Properties window to edit (cut, copy, paste or
window delete) property values.
In Message Use the shortcut menus in the Message Manager window to clear, copy message,
Manager or see message details.
window
Note Most of the commands on the shortcut menus are also available on the menu
bar.
Use the shortcut menu in the toolbars area of the desktop to show or hide windows or toolbars, and
customize the toolbars.
To access the shortcut menu in the toolbars area:
l Right-click in the toolbars area at the top of the desktop.
A check box appears next to a command if the item is visible. For example, if a check box appears
next to the Project Manager command, then the Project Manager window is currently visible
on the desktop.
Click Customize to open the Customize dialog box, which enables you to modify the toolbar
settings on the desktop.
The toolbar buttons and shortcut pull-down lists act as shortcuts for executing various commands.
You can rearrange the position of the various toolbars.
l To execute a command, click a toolbar button or click a selection on the shortcut pull-down list.
l To display a brief description of the toolbar button, move the pointer over the button.
l To relocate a toolbar, click on the left edge of a toolbar and drag it to new location.
Hint To modify the toolbars on the desktop, click Tools>Customize. To display all toolbar
buttons, click the Reset All button in the Customize window.
Use the Undo command on the Edit menu to cancel, or undo, the last action you performed on the
active project or design.
1. In the Project Manager window, do one of the following:
l To undo the last action you performed on the active project, such as inserting a design, click
Note You cannot undo an analysis that you have performed on a model, that
is, the RMxprt>Analyze command.
2. Click Edit>Undo.
Your last action is now undone.
Note When you save a project, RMxprt always clears the entire undo/redo history for the project
and its designs.
Related Topics
Redoing Commands
Use the Redo command on the Edit menu to reapply, or redo, the last action that was canceled, or
undone. You can redo a canceled action related to project management, model creation,
and post-processing.
1. In the Project Manager window, do one of the following:
l To redo the last action you canceled on the active project, such as inserting a design or
Related Topics
Undoing Commands
The status bar is located at the bottom of the application window. It displays information about the
command currently being performed.
To display or hide the status bar:
l Click View>StatusBar.
A check box appears next to this command if the status bar is visible.
When visible, the status bar contains buttons to show or hide the message window and
progress window.
You can open multiple machine editor windows in RMxprt. One can remain fixed on the Winding
Editor, one on the Diagram tab, and one on the Main tab. To open a new window, click
Window>New Window. To move back and forth between windows, select the Windows menu,
and select the window you want to view.
You can cascade all Machine Editor windows, tile them horizontally or vertically. You can
maximize, minimize or close a Machine Editor window by clicking the relevant button on the right-
top corner of the window. If no Machine Editor window is displayed, you can use
RMxprt>Machine Editor to bring one window up. When only one Machine Editor window is
maximized, the window title is displayed within square brackets in the Title Bar of the main
application window.
As you enter appropriate property values, the Machine Editor window dynamically updates the
rotor, stator, slots, and windings in the Main, Diagram and Winding Editor tabs. As you provide
winding information, the Winding Editor tab displays a table of values.
Related Topics
Printing in RMxprt
The printing commands enable you to print the display in the active window.
To print the project:
1. Click File>Print.
The Print dialog box appears.
2. You can change the print quality (a higher dpi produces a higher quality print but takes more
time and printer memory), or you can send the output to a .prn file.
3. Do one of the following:
l Click OK to print the project.
The Project Manager window displays the open project's structure, which is referred to as the
project tree. The Project Manager window displays details about all projects open in the Maxwell
Desktop, regardless of type.
To show or hide the Project Manager window, do one of the following:
l Click View>Project Manager.
A check box appears next to this command if the Project Manager window is visible.
l Right-click in the toolbar area on the desktop, and then click Project Manager on the shortcut
menu.
A check box appears next to this command if the Project Manager window is visible.
Related Topics
The project tree is located in the Project Manager window and contains details about all open
projects. The top node listed in the project tree is the project name. It is named Projectn by default,
where n is the order in which the project was added to the current session of the Maxwell Desktop.
Expand the project icon to view all designs and material definitions belonging to the project. For
RMxprt projects, the project tree shows where you can select each portion of the machine to open
the corresponding tab sheet in the Properties window. The project tree lists options for the general
motor characteristics, the stator, the rotor, and other options such as winding data or commutating
data. The specific options depend on the machine type you have selected.
Related Topics
You can set the project tree to automatically expand when an item is added to a project.
1. Click Tools>Options>General Options.
Once you insert an RMxprt design into a project, it is listed as the second-level node in the project
tree. It is named RMxprtDesignn by default, where n is the order in which the design was added to
the project. Expand the design icon in the project tree to view specific data about the model.
The RMxprtDesignn node contains the following project details:
Machine Allows you to specify parameters for various aspects of the machine. A whole or part
geometry will be drawn in the Main tab of the Machine Editor window (based on the
values you enter).
Analysis Displays the solution setups for an RMxprt design. A solution setup specifies how
RMxprt computes the solution.
Optimetrics Displays any Optimetrics setups added to an RMxprt design.
Results Displays any post-processing reports that have been generated.
edit.
A dialog box appears with that setup's parameters, which you can then
edit.
The Properties window displays the attributes, or properties, of an item selected in the project tree
and enables you to edit an item's properties. The properties, and the ability to edit them in the
Properties window vary depending on the type of item selected. The tabs available in the
Properties window also vary depending the selection.
Single clicking on an item in the Machine section of the project tree displays a docked Properties
window located under the project tree. A horizontal scroll bar lets you adjust the view of the
properties if necessary. Changes to values in the docked properties window apply immediately to the
selected object.
Double-clicking on an item in the Machine section of the project tree opens a floating Properties
window. The floating window can be moved for convenience in viewing the RMxprt Machine Editor
window. Some objects have tabs on the window to control the properties displayed. Changes to
values in the floating window are not applied until you click the OK button.
Related Topics
To show or hide the Properties window on the desktop, do one of the following:
l Click View>Property Window.
A check box appears next to this command if the Properties window is visible.
l Right-click in the toolbar area at the top of the desktop, and then click Properties on the
shortcut menu.
A check box appears next to this command if the Properties window is visible.
When more than one progress bar is active, the top progress bar is represented on the status
bar with a progress indicator.
A check box appears next to this command if the Progress window is visible.
l Right-click in the toolbar area at the top of the desktop, and then clickProgress on the
shortcut menu.
A check box appears next to this command if the Progress window is visible.
The Message Manager displays messages associated with a project's development, such as error
messages about the design's setup or informational messages about the progress of an analysis.
To display or hide the Message Manager window on the desktop, do one of the following:
l Click the Show Messages or Hide Messages buttons on the status bar:
Related Topics
In this part of the example, you provide values for the design and for various parts.
1. Click the + symbol by the RMxprt:Designn icon in the project tree to view the design hierarchy.
Type window.
Base Inner 0
Radius
Tip Inner 0
Diameter
End 0
Clearance
Slot Liner Set this to 0.3 for the single side thickness of slot insulation.
Wedge 0
Thickness
Layer 0
Insulation
Limited Fill 0.75
Factor (The slot fill factor is the ratio between the cross-sectional area of all
conductors in one slot and the entire slot area.)
13. Click OK to close the stator Winding Properties window.
14. Click Machine>Winding>Connect All Coils.
The Winding tab in the main window shows all coils connected.
15. Double-click the Rotor Icon to view the Rotor Properties window.
Set the values as shown below.
Outer Set this to 74.0. This is the Stator inner diameter - 2* AirGap.
Diameter
Inner Input 26 for the inner diameter of the rotor core. This is also the diameter to match the
Diameter shaft
Length Input 65 for the length of the rotor core. In this example, the lengths of the iron cores of
the stator and the rotor are the same.
Steel Select M19-24 for the brand of the silicon-steel sheet for the rotor. In this example, the
Type laminations are punched together on the same sheet; therefore, the brands of the
silicon-steel sheet and the stacking factors are the same for the stator and the rotor.
Offset Input 0. The arched permanent-magnetic pieces to form the magnets of the rotor
might not be concentric with the rotor as shown in the figure. In the electric machines
with non-uniform air-gap, there exists an offset between the two centers. RMxprt
terms it as Pole Arc Offset. This example uses uniform air-gap; therefore, the offset
is set to 0.
Magnet Select XG196/96. This permanent-magnetic steel possesses residual flux density
Type 0.96 Tesla, coercive force 690 kA/m, maximum magnetic energy product 183 kJ/m3,
and relative recoil magnetic permeability 1.0.
Before analyzing a design project, a few options should be decided by the following procedures:
1. Click Tools>Options>General Options to open the Options dialog, displaying a
hierarchical list of options. Click the + next to Machines to show the following choice: Wire
Settings.
The System Libraries setting should be set to American.
2. Click OK to close the window.
3. Click RMxprt>Analysis Setup>Add Solution Setup.
This displays the Solution Setup window. Add the following values.
4. Close the dialog to save the Setup.
Load Type Const
Power
Rated Output Power 0.55 kW
Rated Voltage 220
Rated Speed 1500
Operating 75c
Temperature
5. Click RMxprt>Validation Check to ensure that all values have been set.
If any items do not pass validation, use the diagnostic information in the Message Window to
resolve any issues.
6. When the design has been validated, click RMxprt>Analyze All.
The progress of the analysis is shown in the Progress window.
To continue to Part 5 of the example, go to Create Reports and View Output.
After you have run an analysis, you can view the solution data.
1. Click RMxprt>Results>Solution Data.
This opens the Solutions window with the Solutions tab selected, and the Full Load
Operation Data displayed. The Solutions window contains tabs for the following:
l Solution Data - the Data field in the Solutions window is a drop down menu from which you
The electromagnetic wire with Wire Diameter of 0.8118 is equivalent to AWG 20. Stator
Slot Fill Factor represents the percentage of occupation of the slot area, i.e. the ratio of the
total square sectional area of wires (including Wire Wrap Thickness) in a slot to the total slot
area less the slot insulation.
a. Now that Wire Diameter of the electromagnetic wire is calculated by RMxprt, you can
open the Winding Properties window and specify the value.
b. For Wire Size, open the Wire Size selection window, select 0.8118 for the
electromagnetic wire diameter, which corresponds to 20 for the wire gauge.
c. In the slot Wire Wrap field, input 0.08 for the insulation thickness of the electromagnetic
wire.
d. Click OK to close the properties window.
e. Click RMxprt>Analyze All.
After the second analysis is completed, click RMxprt>Results>Solution Data to view the
effect of Wire Wrap Thickness of the electromagnetic wire on Stator Slot Fill Factor.
8. In the Solutions window, select the Design Sheet tab, and scroll down to Winding
Arrangement.
This is the layout and the arrangement of the whole two-phase winding of phases A and B,
and the short coil pitch factor 5 is taken into account.
The 2-phase, 2-layer winding can be arranged in 6 slots as below:
AAABBB
9. In the Solutions window with the Design Sheet table selected, scroll down to
Transient FEA Input Data. (This is at the very bottom.)
Angle per slot (elec. degrees): 30
Phase-A axis (elec. degrees): 105
First slot center (elec. 0
degrees):
The following data of the armature winding corresponds to one phase armature winding.
The following data is the equivalent values used to 2D electromagnetic field analyses.
permeability.
l BH-curve parameters.
5. Use the Setup commands (either on the RMxprt menu or on the Analysis or Optimetrics
submenus via the project tree) to specify variable, parametric, and optimization settings.
6. Use the Validate command to validate the design.
7. Use the Analyze commands to generate a solution, run a parametric analysis, or run an
optimization.
8. Use the Results post-processing commands to display the lamination and plot the solutions.
Related Topics
the original design name and type was 3hp (Single Phase Induction Motor), and you
change the machine type to a Switched Reluctance Motor, the design name would be 3hp
(Switched Reluctance Motor).
l The design tree items (such as the Machine Rotor, Stator, and Shaft data) under the design
type will be updated with the default machine data applicable to the new machine type.
Note You can Undo/Redo the machine type change if you wish to revert to the original
machine type and vice-versa.
The SetMachineType script command provides for this functionality in scripts.
Related Topics
SetMachineType
Related Topics
3. Click OK.
Related Topics
RMxprt allows a user to define some design data in a text file which can be created by a text editor,
instead of by RMxprt UI, for the following special circumstances:
l Some special requests from a user which are not necessary to be added to RMxprt UI;
l Some common requests from users which have been implemented in RMxprt solver, but have
4. Alternatively, click Import File to import user defined data from an external file.
5. Browse to the directory containing the file.
6. Select the user defined data file which will be displayed in File name box.
7. Click Open to confirm the selection.
8. The file contents will be imported into the text box. Click OK to complete the setup.
User Defined Data is save in the design file. Changes to User Defined Data will cause existing
solutions to become invalid.
l Miscellaneous Options
l Default Units
l WebUpdate Options
l Desktop Performance
Related Topics
Note When you enable the Save before solving setting, the project is only saved if it
has been modified since its last save.
l Apply variation deletions immediately
3. On the Machine Type panel, to change the default machine type when you initially insert a
design, select one of the following from the Default machine type pull-down list:
l Three Phase Induction Motor
l Permanent-Magnet DC Motor
l Universal Motor
l DC Machine
4. On the Threshold panel, enter the Default conductivity and Default permeability values
in siemens/m.
Note Setting the material thresholds under Tools>Options impacts the default setting for
the current and all future projects/designs. To change the material threshold for the
current design only, use the RMxprt>Design Settings command and change the
material thresholds on the Set Material Thresholds tab.
5. Click OK to close the dialog box.
Users must generate their own data files for wire gauges using data for wire gauge and thickness of
insulation provided by manufacturers. There are no national standards for insulation thickness,
therefore different manufacturers produce electromagnetic wire with different thickness of insulation.
The data file American.wir does not provide data for thickness of insulation; the data file
Chinese.wir does provide the data for thickness of insulation, but only for the purpose of reference
to users. These files are stored in the file folder syslib along with several other wire data reference
libraries.
To define or edit wire data:
1. Click Machine>Wire to open the Edit Wire Data dialog box
2. Select the units from the Unit System pull-down list.
English Unit System stands for British unit system, Metric Unit System stands for the
metric unit system. When changing the unit system, the message box Note pops up to inform
changing in unit system is only for specifying input data unit, but not for transferring data
between two unit systems
3. Optionally, click Import to import wire data from a file. Provide the file name to import in the
File name: edit box (or by browsing) and use the default file type Wire Size File (*.wir).
Several standard wire libraries are provided in the syslib directory.
4. Click the Round or Rectangle tab for the wire shape you want to edit.
For Round:
a. Specify the desired values for Gauge No., Diameter, and/or Wrap.
Gauge No. wire gauge index number.
Diameter diameter of bare copper wire, in mm or inch.
Wrap thickness of insulation wrap, in mm or inch.
b. Modify the wire data as needed.
c. Optionally, Add or Delete Rows for wire values.
For Rectangle:
l At the intersection of the odd columns and the odd rows, the sectional areas appear in
black numbers (recommended to use).
l At the intersection of the odd columns and the even rows or the even columns and the
odd rows, the sectional areas appear in blue numbers (rarely used).
l At the cross of the even columns and the even rows, the sectional areas do not show
(generally not used).
c. Optionally, Add or Delete rows or columns for wire values.
4. Optionally, click Export to export the data you entered to a file. Provide the file name to import
in the File name: edit box (or by browsing) and use the default file type Wire Size File (*.wir).
The default directory for an exported wire data file is userlib.
5. When you are finished, click Save to save the data, and click Close to close the window.
Note Saving wire data only updates the wire data in the active
design.
Related Topic
Edit AC Windings
RMxprt can automatically arrange almost all commonly used single- or double-layer poly-phase ac
windings provided all coils have the same number of turns. Users do not need to define coils one by
one. For a double-layer winding, RMxprt can also handle the coils with half turns which are arranged
in the order of even, odd, even, odd, …, as long as it is physically possible.
RMxprt also provides a very flexible tool, the Winding Editor, to allow users to design a variety of
special winding types according to their own needs, such as compound single- and double-layer
winding, big- and small-phase-spread variable-pole multiple-speed winding, sine-wave three-phase
winding, and so forth. The Winding Editor is available to the following types of electric machines:
1. Three-phase induction motors
2. Single-phase induction motors
3. Three-phase synchronous motors and generators
4. Line-start permanent-magnet synchronous motors
5. Claw-pole alternators
Setting the Winding Type property to Editor enables the command Machine>Edit Layout on the
menu bar.
To display the dialog box Winding Editor:
1. Select Winding in the Project Tree. In the Properties window, set the Winding Type Value to
Editor. To do this, click on the button Winding Type Value to display the WINDING Type
selection window, as shown:
Each row of the winding data table in the dialog box Winding Editor in Figure 3.13 is identified with
the coil index in the column Coil. This information is displayed in the tab sheet Winding Editor in the
RMxprt Machine Editor window as well, but it is editable in the dialog box Winding Editor.
The winding data table contains four columns:
When you have specified the winding data, you can execute the following commands to display or
hide the winding connections.
1. Click the menu command Machine>Winding>Connect All Coils.
Upon executing, the graphical display in the Machine Editor window shows the connections as
shown:
2. To remove the connections in the graphical display in the Machine Editor window, select
Machine>Winding>Disconnect All Coils.
3. Winding connections may also be viewed by shortcut menu. Right-click on the winding
layout section of the Machine Editor window, a shortcut menu pops up. Select Connect All
Coils or Disconnect All Coils to toggle the coils display on or off.
If you right-click on a slot layer, commands related to that slot layer will be enabled, and you
will be able to view or hide only one coil or one phase connection related to the slot layer. You
may copy the connection drawing to clipboard from the shortcut menu as well.
Standard Slot Types 1, 2, 3, 4, and 6 are symmetric. Standard slot Type 5 is unsymmetric. Half
slots are present if the machine’s Rotor or Stator Properties Window includes a Half Slot
property that has been enabled.
Related Topics
When you select a user-editable slot in the Project tree, the Slot Editor window appears on the
desktop. The slot editor window is split into two frames. The left frame is the data editing view, which
contains an expandable tree view of the slot and its constituent segments. The right frame shows a
graphical view of the slot geometry formed by its segments.
Slot geometry types that can be edited are: symmetric, unsymmetric, and half-slot. A symmetric slot
is shown in the figure below.
Related Topics
In the tree view, the Slot root tree item is predefined and cannot be modified. The top segment in the
tree, Segment1, cannot be deleted. In the slot data edit view, the slot segment tree items always
follow in order from top to bottom of the slot. Segment names also follow this top-to-bottom order,
Segment1, Segment2, Segment3, etc., regardless of any operations that are made. Adjacent
segments viewed in the tree are geometrically connected to each other as viewed on the slot graph.
The data of neighboring segments are tightly coupled due to this geometry connection.
Selecting a segment in the tree highlights the corresponding segment (and its mirror image for
symmetric slots) in the Slot Editor Graphic view – indicated by small open circles at the endpoints of
the segments.
The Properties Window is also updated to show the selected segment’s properties. Changing
segment values in the slot editor updates the Properties Window, and vice-versa.
Related Topics
For a symmetric slot, right-clicking the Slot tree item pops up a context menu displaying the
following choices:
l New Slot - opens the New Slot dialog box in which the user can select a new standard
slot.
l Split to Half-Half - splits the slot into a Left Side and a Right Side transforming it into an
unsymmetric slot. Each side then can be edited independently.
l Remove Left (or Right) Half, Remove Right Half - removes the segments for the left (or
right) half of the symmetric slot, transforming the slot into a half-slot.
Related Topics
For an unsymmetric (i.e., split) slot type, two additional expandable sub-branches, Left Side
and Right Side, are present in the slot tree. The segments in each side can be edited
independently.
Right-clicking the Slot tree item pops up a context menu with the following choices:
l New Slot - opens the New Slot dialog box in which the user can select a new standard
slot.
l Merge Left (or Right) to Symmetric - the left (or right) side segments are mirrored and
Related Topics
For a half slot, only the segments on one side of the slot can be edited.
Right-clicking the Slot tree item pops up a context menu displaying the following choices:
l New Slot - opens the New Slot dialog box in which the user can select a new standard
slot.
l Merge to Symmetric - the left (or right) half-slot segments are mirrored and merged to
remains unsymmetric.
l Mirror - the left (or right) half-slot segments are mirrored (reflected and copied),
Related Topics
Selecting New Slot in any of the Slot tree item context menus opens the New Slot dialog box.
Radio buttons allow the user to select a Symmetric Slot, Unsymmetrical Slot, Left Half Slot, or
Right Half Slot as the type to be added. Clicking OK confirms the choice and replaces the existing
slot type in the editor with a slot of the selected type. The new slot has only Segment1 present. The
user must then edit the slot segments to form the desired slot geometry.
The slot editor graphic view allows users either to View One Slot of the type currently being edited,
or to View the Geometry of the machine stator or rotor with all of the slots in place.
Right-clicking anywhere in the graphic view pops up a context menu. In addition to changing the
view, the menu provides commands to Zoom In and Zoom Out, to Fit All the view in the frame, as
well as commands to Insert, Append, Modify, and Remove slot segments. These commands are
discussed more fully in the section on Editing Slot Segments.
Related Topics
The RMxprt Slot Editor allows users to edit the segments that form the geometry of slots. In the slot
data edit view, selecting a slot segment item on the tree, then right-clicking on it displays a context
menu with commands that allow users to Insert, Append, Modify, and Remove segments.
Alternatively, users can select a slot segment directly in the graphic view, then right-click to bring up a
context menu containing the same segment editing commands.
When a slot segment is selected, users can also modify the segment data directly in the desktop
property window. Each edit triggers immediate validation. If edited values are improper, warning
message windows are displayed describing the problem. Editing operations support Undo/Redo.
Scripting functions are also available.
l Insert Segment -adds a segment before the currently selected segment. The added
segment is defined by the user in the Edit Slot Segment dialog box.
NOTE: You cannot insert a segment before Segment1.
l Append Segment - adds a segment after (i.e., below) the currently selected segment. The
appended segment is defined by the user in the Edit Slot Segment dialog box.
l Modify Segment - modifies the currently selected segment. The segment is modified by
the user in the Edit Slot Segment dialog box.
l Remove Segment - removes the currently selected segment. The ends of the segments
on either side of the removed segment are joined when the segment is removed.
NOTE: Segment1 cannot be removed.
In the Edit Slot Segment dialog, user can define the shape and dimension(s) of the segment to be
added, inserted, or appended relative to the currently selected segment in the slot data edit view. As
shown below, eight basic geometric shapes are provided for defining the slot segment. The
Selected Shape panel shows dimensional parameters that affect the segment shape such as:
height, starting and ending width, and radius. Parameters that determine the shape of the segment
can be edited in the Segment Data panel.
line.
l Arc offset on slot center - makes the segment an arc
center.
l Arc offset on tooth center - makes the segment an
arc whose radius is determined by a user-specified
offset from the rotor/stator center with respect to the
tooth center.
segment.
A drop-down box provides three options for controlling the
segment shape:
l End width (the default)- sets the ending width and unit
of measure.
each other.
Validation of the entered data is done when either the OK or Preview is clicked. If edited values are
improper, warning message windows are displayed describing the problem. The Preview button
allows users to preview the current changes in the slot graph window without confirming the
changes.
Clicking the OK button confirms the changes and closes the dialog box.
Clicking the Cancel button cancels the changes and closes the dialog box.
Related Topics
l When you intend to run a parametric analysis in which you specify a series of variable values
Project A project variable can be assigned to any parameter value in the project in which it was
Variables created. RMxprt differentiates project variables from other types of variables by
prefixing the variable name with the $ symbol. You can manually include the $ symbol in
the project variable's name, or RMxprt can automatically append the $ after you define
the variable.
Design A design variable can be assigned to any parameter value in the RMxprt design in
Variables which it was created.
Related Topics
A project variable can be assigned to a parameter value in the RMxprt project in which it was
created. RMxprt differentiates project variables from other types of variables by prefixing the variable
name with the following symbol: $. You can manually include the symbol $ in the project variable's
name when you create it, or RMxprt will automatically append the project variable's name with the
symbol after you define the variable. Project variables can be used in any design within the project.
1. Click Project>Project Variables.
l Alternatively, right-click the project name in the project tree, and then click Project
The Sweep check box lets you designate variables to include in solution indexing as a way to
permit faster post processing. Variables with Sweep unchecked are not used in solution
indexing. If a solution exists, checking or unchecking a variable’s Sweep setting produces a
warning that the change will invalidate existing solutions. To continue, click OK to dismiss the
warning dialog.
If a variable has dependent variables, the Sweep check box is disabled and cannot be
changed.
A design variable is associated with an RMxprt design. A design variable can be assigned to a
parameter value in the RMxprt design in which it was created.
1. Click RMxprt>Design Properties.
l Alternatively, right-click the design name in the project tree, and then click Design
Any existing Design variables are listed in the Properties dialog with the name followed by
cells for Value, Unit, Evaluated Value, Type, Description, and Read-only and Hidden check
boxes. A Show Hidden check box on the lower right of the Properties dialog controls the
appearance of any Hidden variables.
Initially, leave the radio button with Value selected until you have defined a variable. The other
radio buttons let you enable defined variables for Optimization/Design of Experiments,
Tuning, Sensitivity or Statistics. Selecting one of these radio buttons adds a new column to the
Variable definition row for which you can check or uncheck Include for regular variables for
that kind of Optimetrics simulation.
2. Click Add.
The Add Property dialog box appears.
3. In the Name box, type the name of the variable.
Variable names must start with a letter, and may include alphanumeric characters and
underscores ( _ ). The names of intrinsic functions and the predefined constant pi (π) cannot
be used as variable names.
You can sort the variables by clicking on the Name column header. By default, variables are
sorted in original order. Clicking once sorts them in ascending order, noted by a triangle
pointing up. Clicking against sorts in descending order, noted by a triangle pointing down.
Clicking a third time sorts in original order, with no triangle.
4. Select a radio button for the variable use:
Selected Use Setable Properties
Variable Unit Type, Units, Value
Array Index Variable Associate Array variable,
Value
Separator Value
Post Processing Unit Type, Units, Value
Variable
The Sweep check box lets you designate variables to include in solution indexing as a way to
permit faster post processing. Variables with Sweep unchecked are not used in solution
indexing. If a solution exists, checking or unchecking a variable’s Sweep setting produces a
warning that the change will invalidate existing solutions. To continue, click OK to dismiss the
warning dialog.
If a variable has dependent variables, the Sweep check box is disabled and cannot be
changed.
A design variable is associated with an RMxprt design. You can also add a variable defined with an
array of values.
1. Click RMxprt>Design Properties.
l Alternatively, right-click the design name in the project tree, and then click Design
Any existing Design variables are listed in the Properties dialog with the name followed by
cells for Value, Unit, Evaluated Value, Type, Description, and Read-only and Hidden check
boxes. A Show Hidden check box on the lower right of the Properties dialog controls the
appearance of any Hidden variables.
Initially, leave the radio button with Value selected until you have defined a variable. The
other radio buttons let you enable regular variables for Optimization/Design of Experiments,
Tuning, Sensitivity or Statistics. Array variables cannot be enabled for Optimetrics use.
2. Click the Add Array.... button.
The Add Array dialog displays.
3. Specify a variable Name in the text field.
4. Select a Unit Type and Units from the drop-down menus.
5. To specify the array with Edit in Grid Selected, you can begin by clicking the Append Rows...
button to display the Number of Rows dialog. (For Edit in plain text field, see below.)
The predefined variables X, Y, Z, Phi, Theta, R, and Rho must be entered as such. X, Y, and Z are
the rectangular coordinates. Phi, Theta, and Rho are the spherical coordinates. R is the cylindrical
radius, and Rho is the spherical radius.
If you do not specify units, all trigonometric expressions expect their arguments to be in radians, and
the inverse trigonometric functions’ return values are in radians. If you want to use degrees, you
must supply the unit name deg. When the argument to a trigonometric expression is a variable, the
units are assumed to be radians. These function names are reserved and may not be used as
variable names.
Expressions are mathematical descriptions that typically contain intrinsic functions, such as sin(x),
and arithmetic operators, such as +, -, *, and /, as well as defined variables. For example, you could
define: x_size = 1mm, y_size = x_size + sin(x_size).
The symbol, pi ( ), is the only available predefined constant. It may not be reassigned a new value.
Numerical values may be entered in ANSYS’ shorthand for scientific notation. For example, 5x107
could be entered as 5e7.
The operators that can be used to define an expression or function have a sequence in which they
are performed. The following list shows both the valid operators and the sequence in which they are
accepted (listed in decreasing precedence):
( ) parenthesis 1
! not 2
^ (or exponentiation 3
**) (If you use "**" for exponentiation, as in previous software versions, it is automatically
changed to "^".)
- unary minus 4
* multiplication 5
/ division 5
+ addition 6
- subtraction 6
== equals 7
!= not equals 7
> greater than 7
< less than 7
RMxprt recognizes a set of intrinsic trigonometric and mathematical functions that can be used to
define expressions. Intrinsic function names are reserved and may not be used as variable names.
The following intrinsic functions may be used to define expressions:
exp,
false_
exp)
pwl Piecewise Linear with linear extrapolation on x pwl
(dataset_
exp,
variable)
pwlx Piecewise Linear x with linear extrapolation on x pwlx
(dataset_
exp,
variable)
pwl_ Piecewise Linear with periodic extrapolation on x pwl_
periodic periodic
(dataset_
exp,
variable)
sqrt Square Root sqrt(x)
ln Natural Logarithm ln(x)
(The "log" function has been discontinued. If you use "log(x)" in an
expression, the software automatically changes it to "ln(x)".)
log10 Logarithm base 10 log10(x)
int Truncated integer function int(x)
nint Nearest integer nint(x)
max Maximum value of two parameters max(x,y)
min Minimum value of two parameters min(x,y)
mod Modulus mod(x,y)
rem Fractional part (remainder) rem(x.y)
Note If you do not specify units, all trigonometric functions interpret their arguments as radians.
Likewise, inverse trigonometric functions' return values are in given in radians. When the
argument to a trigonometric expression is a variable, the units are assumed to be radians.
If you want values interpreted in degrees, supply the argument with the unit name deg.
The pwl and pwlx functions interpolate along the x-axis and returns a corresponding y value. The
pwl_periodic function also interpolates along the x-axis but periodically.
You can use pwl in an expression that uses array variables and datasets for uses such as a
frequency dependent material property. For example, you specify BulkConductivity as:
pwlx($dsArr[$dsIndex], Freq) where $dsArr=["$ds1", "$ds2"]
You can create a Design Variable representing dimension xSize as pwl(arr[idx], 1) where
"arr" is an array variable and idx is an array index variable.
In this case, creating a variable named xSize with pwl(arr[idx], 1) like this:
This value for xSize automatically opens a dialog first for the idx index variable:
And then dialogs automatically open for each dataset variable implicit for the predefined array
variable:
box.
If you typed a variable name that has not been defined, the Add Variable dialog box appears,
enabling you to define the design variable.
If you typed a variable name that included the $ prefix, but that has not been defined, the Add
Variable dialog box appears, enabling you to define the project variable.
You can assign a variable to nearly any design parameter assigned a numeric value in
RMxprt.
Before a variable can be optimized, you must specify that you intend for it to be used during an
optimization analysis in the Properties dialog box.
1. If the variable is a design variable, click RMxprt>Design Properties. You can also access
the Design variables from a menu in the lower left corner of the following Optimization dialogs:
Parametric, Optimization, Sensitivity, Statistical, Design of Experiments, and Design
Xplorer Setup. Click Edit Variables and from the menu select Edit Design Variables.
If the variable is a project variable, click Project>Project Variables. You can also access the
Project variables from a menu in the lower left corner of the following Optimization dialogs:
Parametric, Optimization, Sensitivity, Statistical, Design of Experiments, and Design
Xplorer Setup. Click Edit Variables and from the menu select Edit Project Variables.
The Properties dialog box appears.
2. Click the tab that lists the variable you want to optimize.
3. Click the row containing the variable you want to optimize.
Note Dependent variables cannot be
optimized.
4. Select the Optimization/Design of Experiments option.
5. For the variable you want to optimize, select Include.
The selected variable is now available for optimization in an optimetrics setup defined in the
current design or project.
6. Optionally, override the default minimum and maximum values that Optimetrics will use for the
variable in every optimization analysis. During optimization, the optimizer does not consider
variable values that lie outside of this range.
7. Click OK.
Related Topics
Before a variable can be included in a sensitivity analysis, you must specify that you intend for it to be
used during a sensitivity analysis in the Properties dialog box.
1. If the variable is a design variable, click RMxprt>Design Properties. You can also access
the Design variables from a menu in the lower left corner of the following Optimization dialogs:
Related Topics
Before a variable can be tuned, you must specify that you intend for it to be tuned in the Properties
dialog box.
1. If the variable is a design variable, click RMxprt>Design Properties.
If the variable is a project variable, click Project>Project Variables.
The Properties dialog box appears.
2. Click the tab that lists the variable you want to tune.
3. Click the row containing the variable you want to tune.
Note Dependent variables cannot be
tuned.
4. Select the Tuning option.
Related Topics
Tuning a Variable
Before a variable can be included in a statistical analysis, you must specify that you intend for it to be
used during a statistical analysis in the Properties dialog box.
1. If the variable is a design variable, click RMxprt>Design Properties. You can also access
the Design variables from a menu in the lower left corner of the following Optimization dialogs:
Parametric, Optimization, Sensitivity, Statistical, Design of Experiments, and Design
Xplorer Setup. Click Edit Variables and from the menu select Edit Design Variables.
If the variable is a project variable, click Project>Project Variables. You can also access the
Project variables from a menu in the lower left corner of the following Optimization dialogs:
Parametric, Optimization, Sensitivity, Statistical, Design of Experiments, and Design
Xplorer Setup. Click Edit Variables and from the menu select Edit Project Variables.
The Properties dialog box appears.
2. Click the tab that lists the variable you want to include in the statistical analysis.
3. Click the row containing the variable you want to include in the statistical analysis.
Note Dependent variables cannot be included in a statistical
analysis.
4. Select the Statistics option.
5. For the variable you want to include in the statistical analysis, select Include.
The selected variable is now available for statistical analysis in a statistical setup defined in the
current design or project.
6. Optionally, override the distribution criteria that Optimetrics will use for the variable in every
statistical analysis.
7. Click OK.
Related Topics
Editing definitions from the project window does not modify the configured libraries for any particular
design. To consider the current design, use the Tools>Edit Libraries option. Doing so ensures that
new libraries are added to the configured list for the current design. If you edit materials from this
command for the current and then export them, they will also be available to assign to objects in
other designs.
Related Topics
Soft-Magnetic Materials
The stator and the rotor iron cores in the electric machine are generally laminated with punched
sheets of nonlinear soft-magnetic silicon steel. Some special types of electric machines, such as
moment motor, turbo-generator etc., use integrated solid rotor iron core of soft-magnetic material.
For magnetic field analysis and core loss analysis of the electric machine, the magnetization
characteristics (B-H Curve) and the loss characteristics (B-P Curve) of the iron-core material must
be defined. The dialogue boxes to do so are accessed from the View/Edit Material window, which,
in turn is accessed from the Edit Libraries window. Access to the window for editing the B-H curve
is enabled when you set the Magnetic Permeability value to nonlinear (rather than simple or
Anisotropic). When you set the value to nonlinear, the value field changes to a B-H Curve button.
Click the B-H curve button to open the window.
For the loss characteristics (B-P Curve), you first set the Core Loss Model of the material to
Electrical Steel (rather than None or Power Ferrite) as a material property in the View/Edit
Material window. When you do so, this enables the Calculate Properties selection for drop down
at the bottom of the window. Select Core Loss Coefficient from the drop down menu to open the
B-P Curve window.
Related Topics
You can add a new material to a project or to the global user-defined material library. To make the
new project material available to all projects, you must export the material to a global user-defined
material library.
To assign a material to an object:
1. Click Tools>Edit Libraries>Materials.
l In the project tree, you can also right-click Materials, and select Edit Library.
l Bulk Conductivity
l Core Loss Model - model selections for this property may enable access to coefficient
calculation windows, and enable additional properties.
l Mass Density
If you select This Product, additional fields are displayed.
l Relative Permittivity
l Composition
Specify the following for Relative Permittivity. and specify the units.
Type Value
Simple Type a value for the Relative
Permittivity.
Anisotropic The following two parameters appear:
l T(1,1)
l T(2,2)
Note This property is not used in RMxprt design analysis, but it will be transferred to Maxwell 3D
Design automatically when the design is created by RMxprt.
Select one the following for relative permeability and specify the units:
Type Value
Simple Type a value for the Relative Permeability.
Anisotropic The following parameters appear:
T(1,1)
l
l T(2,2)
l T(3,3)
Note The current release adds support for Nonlinear and Anisotropic properties for 3D Eddy
current solutions. To support nonlinearity in the frequency domain, the equivalent BH
curve is required. In the current release, this equivalent BH curve is derived based on the
average of permeability of one period under the assumption that the flux density B is
sinusoidal and the magnetic field H is non-sinusoidal due to nonlinearity.
Note The Anisotropic type is not used in RMxprt
design.
When you define a new material or edit an existing material in the View /Edit Materials window with
a nonlinear relative permeability, you need to specify the magnetization characteristics (B-H Curve).
1. Open the View / Edit Materials dialog from the Edit Materials window either by:
l Selecting an existing material that you need to edit, and click View / Edit Material.
Any of these actions open the View/ Edit Materials dialog box.
2. For the Relative Permeability property do one of the following (depending on the type of
material you are defining):
a. Select Nonlinear as the Type. A B-H Curve button appears in the Value column.
b. Select Anisotropic as the Type to display the additional parameters: T(1,1), T(2,2), T
(3,3).
Selecting Nonlinear for any of these additional parameters also causes a B-H Curve button
to appear in the Value column.
Input the BH curve by clicking the B-H Curve button opens the BH Curve dialog box.
3. Set the Units for H and B by selecting from the drop down menus.
4. Choose the type of curve you want to define by selecting either Normal or Intrinsic.
For a material property without an existing BH curve definition, the dialog opens with an empty
list of coordinates and the default type will be Normal. For a property with existing BH curve
definition, the selected radio button corresponds to the existing B type.
Note l The Intrinsic BH curve is supported only in Maxwell 2D/3D magnetostatic, Eddy
current, and transient design types. A material property defined using an Intrinsic BH
curve will fail validation check in all the other product/design types.
l When an Intrinsic BH curve is added, the Relative Permeability Value button
label in the View/Edit Material dialog box changes to Bi-H Curve as visual
indication of the type of curve currently defined for the material.
You can change the type at any time. For an existing curve, validation checks are performed
on the coordinate list when you attempt to change the type. If the data is not valid, an error
message will be displayed and the type of B will not be changed. If data is valid, a query dialog
box displays asking if the coordinates should be converted.
Pressing No can be used, fer example, when users have specified the BH coordinates and
then realize they haven't select the desired type.
Note Changing the type of the BH curve invalidates all solution
data
5. Enter B and H values in each row of the Coordinates table. Placing the cursor in a table cell
enables the Add Row Above, Add Row Below, and Delete Rows buttons.
Note the following requirements for creating a valid curve:
l For a Normal BH curve, the slope of the curve can not be less than that of free space
l Since BH operating points in the FEA solution may extend beyond the input BH data set,
the BH data set is extrapolated in Maxwell. The slope of the last two user-defined data
points is used to extrapolate the BH curve, and thus should be as close to μ0 as possible.
l The data points representing the BH curve should have enough points for accurate
representation of the curve. Twenty (20) or more points should be specified with increased
representation on the "knee" of the curve.
manufacturer datasheets to a dataset, which can then be exported to a tab-delimited file, and
imported via Import Dataset. (Refer to Adding Datasets and Exporting Datasets for related
information on working with datasets. Refer to Using SheetScan for working with the
SheetScan tool.)
Normal BH curves with a positive B value at the first point will be extrapolated. Intrinsic curves
are not extrapolated.
Specify the following for bulk conductivity and specify the units:
Type Value
Simple Type a value for the Bulk Conductivity.
Anisotropic The following two parameters appear:
l T(1,1)
l T(2,2)
Type Value
Simple Type a value for the Bulk
Conductivity.
Anisotropic The following two parameters appear:
l T(1,1)
l T(2,2)
Note This property is not used in RMxprt design analysis, but it will be transferred to Maxwell 3D
Design automatically when the design is created by RMxprt.
Type Value
Simple Type a value for the Bulk
Conductivity.
Anisotropic The following two parameters appear:
l T(1,1)
l T(2,2)
Note This property is not used in RMxprt design analysis, but it will be transferred to Maxwell 3D
Design automatically when the design is created by RMxprt.
Specify the following for magnetic coercivity and specify the units:
Type Value
Vector Appears by default.
l If the Relative Permeability Type is either Simple or Anisotropic, enter a Value for
the Magnitude.
l If the Relative Permeability Type is Nonlinear, Magnitude becomes uneditable, and
Specify the following for core loss type and specify the units:
Name Value
None No core loss is to be calculated for this material.
Electrical The following parameters appear:
Steel l Kh: Hysteresis
l Ke: Excess
Selecting Electrical Steel also enables the Calculate Properties for Core Loss
Coefficient pull-down list item at the bottom of the dialog box. Selecting the Core Loss
Coefficient opens the BP Curve window.
Power The following parameters appear:
Ferrite l Cm
l X
l Y
Selecting Power Ferrite also enables the Calculate Properties for Core Loss versus
Frequency pull-down list item at the bottom of the dialog box. Selecting the Core Loss
versus Frequency opens the BP Curve window.
To be able to extract parameters from the loss characteristics (B-P Curve), you first set the Core
Loss Model of the material to Electrical Steel as a material property in the View / EditMaterial
window.
To calculate core loss properties for an electrical steel material:
1. Click Tools>Edit Libraries>Materials.
l Or in the project tree, you can also right-click Materials, and select Edit Library.
Note The accuracy in inputting the data for B-P Curve for the electrical steel material
has significant effect on the correctness of the analyses to the electromagnetic
characteristics of the electric machine. You should input the data for B-P Curve
according to the accurate data provided by the manufacturers of materials.
3. Select the units in which the B-P curve is measured from the Core Loss Unit pull-down list.
4. Type values and select units for the following:
l Mass Density
l Frequency
l Thickness
l Conductivity
The following parameters are dynamically updated with both the specified unit and the
standard unit (w/m^3) as the input data changes.
l Kh -Hysteresis
l Kc - Classical Eddy
l Ke - Excess
5. Click OK.
The View/Edit Material dialog box reappears. The property values fro Kh, Kc, and Ke are
updated as new default values.
Therefore
where Pvi , Bmi – the i-th point of the data on the loss characteristics curve.
The other two loss coefficients are obtained as
Related Topics
2. Using the Edit area, Add frequency points at which a dataset is available for the Core Loss.
3. For each Dataset added, click the Edit Dataset button to launch the Edit Dataset dialog.
4. Add Dataset information for the frequency by manually entering the data or importing the data
from a table. Click OK to accept the dataset and return to the Core Loss versus Frequency
dialog. Continue adding dataset information until all frequencies have datasets defined.
5. Click OK when all frequencies have valid data to complete the core loss calculation and return
to the View/Edit Material dialog.
where m - the number of loss curves, ni - the number of points of the i-th loss curve, and
Pvij = f(fi , Bmij) - two dimensional lookup table for multi-frequency loss curves.
2. Using the Edit area, Add frequency points at which a dataset is available for the Core Loss.
3. For each Dataset added, click the Edit Dataset button to launch the Edit Dataset dialog.
4. Add Dataset information for the frequency by manually entering the data or importing the data
from a table. Click OK to accept the dataset and return to the Core Loss versus Frequency
dialog. Continue adding dataset information until all frequencies have datasets defined.
5. Click OK when all frequencies have valid data to complete the core loss calculation and return
to the View/Edit Material dialog.
or
where
where m - the number of loss curves, ni - the number of points of the i-th loss curve, and
Pvij = f(fi , Bmij) - two dimensional lookup table for multi-frequency loss curves. Then Cm is
calculated from the equation above.
l Stacking Direction - a drop down menu lets you select V(1), V(2), or V(3).
Note This property is not used in RMxprt design analysis, but it will be transferred to Maxwell 3D
Design automatically when the design is created by RMxprt.
The value of the remanent Br of the individual element after the magnetization field is computed is
determined in such a way: after having located the operating point on the original non-remanent B-H
curve, draw a line which is parallel to the original recoil curve with the slope of and passes the
operating point, the intersection of this line with B-axis is the remanent Br as the result of the applied
magnetization field.
1. Click the View/Edit Materials… button in the Edit Libraries dialog box.
The View/Edit Material dialog box appears.
2. The nonlinear BH curve is defined by setting the Relative PermeabilityType either to
Nonlinear or Anisotropic.
If you select Anisotropic, each of its components can be selected Nonlinear and can be
specified by a BH Curve.
l For a Normal BH curve, the slope of the curve can not be less than that of free space
anywhere along the curve.
l For an Intrinsic BH curve, the slope of the curve can not be less than 0.
Note l The Intrinsic BH curve is supported only in Maxwell 2D/3D magnetostatic
button label changes to Bi-H Curve as visual indication of the type of curve
currently defined for the material.
When you OK the dialog, an error message displays if a slope is out of tolerance, identifying
the data points between which the slope is less than that of free space.
The operations to input a nonlinear demagnetization curve are the same as entering a BH
curve for Steel material. When a BH curve goes through the second quadrant or third
quadrant, the curve is treated as a demagnetization curve.
4. To model temperature dependency for a nonlinear permanent magnet you must:
l Use an Intrinsic BH curve to model the Relative Permeability
l Specify a Thermal Modifier for both Relative Permeability and the Magnitude of
Magnetic Coercivity. Apply a thermal Modifier by selecting the Thermal Modifier check
box. Checking this box causes the Thermal Modifier column to display at the right side of
the Properties of the Material table. Selecting Edit rather than None causes display of
3. Click OK to close the dialogue and return to the View/Edit Materials window.
The values for Relative Permeability and Magnitude under Magnetic Coercivity are
updated as new default values. Maxwell will create a lookup table based on the Four-
Parameter Curve Fitting algorithm, and update the coordinates of the BH curve automatically
as long as the input data of four parameters pass the validation check.
Related Topics
Edit a linear demagnetization curve is simple. From the View/Edit Materials window:
1. Set the Relative Permeability to Simple.
This enables the Calculate Properties for Permanent Magnet drop down menu at the
bottom of the window.
2. Click Permanent Magnet from the drop down menu.
This displays the Properties for Permanent Magnet window. This contains the following
fields.
3. Click OK to close the dialogue and return to the View/Edit Materials window.
The values for Relative Permeability and Magnitude under Magnetic Coercivity are updated as
new default values.
Note The accuracy in inputting the characteristic parameters for the permanent-magnetic
material has significant effect on the correctness of the analyses to the electromagnetic
characteristics of the electric machine. It is suggested that users should input the
characteristic parameters of the permanent-magnetic material according to the accurate
data provided by the manufacturers of materials. RMxprt provides a few characteristic
parameters of permanent-magnetic materials for reference.
Many permanent magnet manufactures directly provide demagnetization curves for their products,
but in most cases, manufactures provide some main parameters, such as residual flux density Br,
coercive field force Hc and maximum magnetic energy product (BH)max, and relative recoil magnetic
permeability µr. This section and the next section describe the basic parameters for the
demagnetization curve of permanent magnets and the curve fitting based on these parameters.
Hysteresis Loop
Demagnetization Curve
The part of the maximum hysteresis loop of the permanent-magnetic material in the second
quadrant is called the demagnetization curve as shown in the next figure. It is the basic
characteristics curve of the permanent-magnetic material. On the demagnetization curve, the
magnetic flux density has positive values, but the magnetic field intensity has negative values. It
means that the permanent-magnetic material is applied with demagnetization magnetic field
intensity. Since Hm and Bm are in opposite directions, when the magnetic flux goes through the
permanent-magnetic material, the magnetic potential difference along the direction of the magnetic
flux does not drop, but rises. Therefore, the permanent-magnetic material is a magnetic source,
similar to the electric source in the electric circuit.
The two extreme positions on the demagnetization curve are the two significant parameters to
represent the magnetic characteristics of the permanent-magnetic material. On the demagnetization
curve, the value of the magnetic flux density corresponding to zero magnetic field intensity H is
termed residual flux density Br, on the other hand, the value of the magnetic field intensity
corresponding to zero magnetic flux density B is termed coercive field force Hc. The produce of the
magnetic flux density and the magnetic field intensity at any point on the demagnetization curve is
termed magnetic energy product (BH), which is proportional to the magnetic energy density
possessed by the permanent magnet at the given operating situation. At the two extreme positions
(B = Br, H = 0) and (B = 0, H = Hc), the magnetic energy product is equal to zero. Somewhere at an
intermediate position, the magnetic energy reaches its maximum value and is termed maximum
magnetic energy product (BH)max, which is another significant parameter to represent the magnetic
characteristics of the permanent-magnetic material. To some permanent-magnetic materials with
linear demagnetization curve, it is obvious that at (B = Br / 2, H = Hc / 2), the magnetic energy
product reaches its maximum value, i.e. (BH)max = Br Hc / 4.
Recoil Lines
The relationship between the magnetic flux density and the magnetic field intensity represented by
the demagnetization curve only exists when the magnetic field intensity varies in the same direction.
In fact, when the permanent magnet electric machine is working, the demagnetization field intensity
varies repeatedly in both directions. When demagnetization field is applied to the magnetized
permanent magnet, the magnetic flux density decreases along the curly segment BrP on the
demagnetization curve as shown in the figure
If the external demagnetization field intensity Hp is removed when the magnetic flux density reaches
the point P, the magnetic flux density will increase not along the original demagnetization curve, but
along another curve PVR. If the external demagnetization field intensity is reapplied, the magnetic
flux density will decrease along the new curve RUP. By repeatedly applying the demagnetization
field intensity, a localized loop is formed and is termed local hysteresis loop. On the local hysteresis
loop, the rising segment and the dropping segment are quite close to each other, therefore can be
approximated by the straight line PR, which is termed recoil line with P as the starting point. If
demagnetization field with intensity Hq not exceeding the original value Hp is applied thereafter, the
magnetic flux density will vary reversibly along the recoil line PR. If Hq > Hp, the magnetic flux density
drops to a new starting point Q. It will vary along the new recoil line QS, but not the previous one PR.
This sort of irreversible variation in magnetic flux density causes instability in the characteristics of
electric machines and complicates the design computation of permanent magnet electric machines,
therefore should be avoided as possible.
The ratio of the average slope of the recoil line to the magnetic permeability in vacuum µ0
(µ0= 4 x 10-7 H/m) is termed relative recoil magnetic permeability or recoil magnetic permeability for
short, µr:
If the demagnetization curve is curly, the value of µr depends on the location of the starting point and
is a variable, but typically varies within a small range. Therefore, it is approximated as a constant and
is taken as the slop of the tangent to the point (Br, 0) on the demagnetization curve. In other words,
the recoil lines at different starting points are approximated as a family of parallel lines, which are all
parallel to the tangent to the point (Br, 0) on the demagnetization curve.
Inflection Point
RMxprt fits the demagnetization curve according to the given characteristic parameters Br, Hc,
(BH)max and µr.
Given the three characteristic parameters Br, Hc and (BH)max, the principles of the three-parameter
curve fitting algorithm are summarized as follows.Using the following figure as a reference:
and
where a<1.
Any magnetic flux density B in the interval
The magnetic flux density Bm and the magnetic field intensity Hm corresponding to the maximum
magnetic energy product satisfy the following relationship:
Solving yields:
Let the magnetic energy product at the point equal to (BH)max be:
Solving yields:
The three-parameter curve fitting technique fits the demagnetization curve well. For the nonlinear
permanent-magnetic material, the real operating point lies often not on the demagnetization curve,
but on the recoil line. The relative recoil magnetic permeability calculated with the three-parameter
curve fitting technique will cause deviation, therefore RMxprt employs a more accurate fitting
technique: four-parameter curve fitting technique, as introduced below.
Given the four characteristic parameters Br, Hc, (BH)max and µr, the principles of the four-parameter
curve fitting algorithm are summarized as follows:
1. Draw a line through the point (0, Br) with the slope equal to -µrµo as shown in the Figure. The
segment of this line in the second quadrant is termed the ideal recoil line.
2. Let:
3. With Br0, Hc, and (BH)max, draw the demagnetization curve with the three-parameter curve
fitting technique.
4. The curve should touch a line parallel to the ideal recoil line at the tangent point (Ht, Bt).
and
2. If Hr>0, the assumed virtual Br0 is too small, the lower bound of the interval needs to be
increased, so let B0=Br0. If, however, Hr<0, the assumed Br0 is too big, the upper bound of
the interval needs to be decreased, so let B1=Br0.
3. Repeat steps (2) through (7) until Hr converges to 0 within satisfactory precision.
Conductor Data
When a material is assigned to a machine part, RMxprt checks that the material is appropriate for the
machine part based upon whether it is a conductor or other material type. RMxprt distinguishes
conductors based on material threshold settings. RMxprt’s treatment of conductors may be set by
the used by adjusting the Material Threshold.
l Simple: For this type, you must enter a simple value for the property value.
l Anisotropic: For this type, you must specify material properties for three principal
directions:
a. T(1,1)
b. T(2,2)
c. T(3,3)
Note The Anisotropic type is not used in RMxprt design analysis, but it will be
transferred to Maxwell 3D Design automatically when the design is created
by RMxprt.
4. Mass Density is a Simple parameter.
General Includes general solution settings, including rated output power, speed, operating
temperature, etc.
<machine Includes settings specific to the selected machine type.
type>
Defaults Includes settings to save and clear user-defined default values.
l Const Power
l Const Torque
l Linear Torque
l Fan Load
If the model has an Operation Type, and you select Generator, the Load Type options are:
l Infinite Bus
l Independent Generator
l Exciter Efficiency
The Brushless DC Motor does not use the <machine type> tab.
11. Specify the desired settings, based on the machine type you have selected.
12. Click OK.
Note To edit a setup after it has been created, right-click the specific setup (for example,
Setup1), under Analysis in the project tree, and then click Properties on the
shortcut menu.
when stop type is 1. The post-processing of data is automatically performed, for instance, Winding
Weight is 0.947 (kg).
Note Several Design Sheet examples are shipped with RMxprt in the examples subdirectory of
your installation.
Related Topics
In Design Output of RMxprt, the literal expressions for various parameters are termed key words
of output data. For example, the Design Output for Line-start Permanent-magnet Synchronous
Motor (lssm) example project sm-1.aedt is shown below.
In the Design Sheet, "Rated Output Power", "Rated Voltage", "Number of Poles", "Frequency",
"Frictional and Windage Loss", etc. are all key words of output data.
According to special requirements and preferences, select relevant parameters, arrange the page
formats of worksheet. Taking as example a part of the parameters of the Design Sheet of the Line-
start Permanent-magnet Synchronous Motor (lssm), the designed worksheet template is shown
below.
In the template, the yellow-colored areas are reserved for importing data.
In the spaces for importing data in the template (shown in yellow), key in = "xxxxx". Within the double
quotation marks, xxxxx stands for the relevant key words as shown below.
RMxprt automatically searches for matching key words while importing data into the Microsoft
Excel worksheet. To reduce the searching space, and therefore the searching time, it is possible to
set the searching boundary. RMxprt defines = "" as identification of boundary. In the figure below,
for instance, the cells in the green-colored area are all keyed in with = "" to form boundary. While
importing data, RMxprt will not search below or to the right of the boundary for matching key words.
With resort to function Paste, it is possible to insert desired figures into the worksheet template. In
the following example, for instance, four figures of slot types are inserted.
It is possible to use a preferred language other than English in the Microsoft Excel worksheet
template. In the following example, for instance, Simplified Chinese is used.
Using the relevant functions of Microsoft Excel, it is possible to post-process data in the worksheet
template. For example, calculate the weight of a winding using the following formula:
In the following figure, the formula is entered into the relevant cell as:
=H7*D30*D31*D36*3.14*D32*D32*0.0078/4
l Right-click Results in the project tree, and then click Solution Data on the shortcut menu.
l Right-click Setup1 in the Project tree, and then click Performance on the shortcut menu.
different data tables, which vary with the machine type. Some examples are:
l Aux Winding
l Material Consumption
l No Load Operation
l Permanent Magnet
l Rotor Data
l Rated Parameters
l Stator Slot
l Stator Winding
l Design Sheet - this displays the contexts of the .res file for the current setup. The file contains
tables with information for such things as (depending on the machine type):
l General Data
l Stator Data
l Rotor Data
l Material Consumption
l Rated Operation
l No-Load Operation
l Winding Arrangement
l Transient FEA Input Data
To print the design sheet:
1. Right-click the design sheet to display the context menu.
2. Select Print from the shortcut menu.
select these from a drop-down menu (menu contents vary with the machine type):
l Input DC Current vs Speed
l Efficiency vs Speed
Note You can also open the Solution Data dialog box directly on the Curves tab by
clicking the Curves toolbar button.
To print plots from the Curve tab:
1. Right-click on the desired plot to display the context menu.
2. Click Print on the menu to display the Print dialog.
3. Select the printer, and click OK to print.
Note The context menu also provides commands that allow the user to change various
plot characteristics such as: trace type and properties such as color; add/edit data
markers and labels; edit axis, legend, and title properties. The plot image can also be
copied to the clipboard for pasting in another application. Plot data can also be
exported to various formatted text files that can then be imported into spreadsheets,
etc. Refer to Modifying the Background Properties of a Report for additional
information.
If you have run different solutions on a design, you can use the RMxprt>Results>Browse
Solutions to look through and manage them.
1. Click RMxprt>Results>Browse Solutions
This displays the Solutions dialog with the Browse tab selected.
From here you can select a design, and view the Setup, Solution and State tables.
2. Click the Properties button to view the Solution Browser properties dialog.
This contains radio buttons for you to select the tree view. It can be organized as:
l Variation / Setup / Solution
l MotorCAD Project
4. Select the setup you want to export from the Solution Setup drop-down list.
5. Optionally, click the Variation ellipsis [... ] button to specify a design Variation to use during
export.
6. Specify the Path to store the exported files in by clicking the Path ellipsis [...] button and
browsing to the desired directory. You can also create a new directory, if desired.
7. Click OK.
– For MotorCAD Project, a <project_name>.mot file that includes all machine and housing
data will be generated. You can then open the project in Motor-CAD for analysis.
– For Customized Design Sheets, a <design_sheet_name>.xls file will be generated.
– For Simplorer models, three files will be exported:
l <project name>_<design name>_<setup name>.sml
l <project name>_<design name>_<setup name>_signals.sml
l <project name>_<design name>_<setup name>_SimCkt.vbs
You can now use the Simplorer Tools>Run Script command to run the .vbs script to
generate the components on the Simplorer schematic. (Refer to the Simplorer online help for
detailed information on running scripts.)
You can now work with the model in the product to which you exported it, and perform other kinds of
analyses.
Related Topics
l Variable definitions and assignments are automatically mapped from the solved RMxprt
l Maxwell 3D Design
3. Select the setup you want to export from the Solution Setup drop-down list.
4. Optionally, click the [...] button to specify a Variation in the Set Design Variation dialog box.
This allows the user to choose the default variable values to be used in the Maxwell design
being created with variables.
5. Click OK to create the Maxwell design.
You can now work with the model in the Maxwell2D or Maxwell3D design, add boundaries and
excitations, perform analyses, and analyze results.
Note l For Maxwell 2D/3D designs for motor applications, the computed output mechanical
power at a given constant speed may not reach the desired rated power. Therefore,
it is useful to apply constant power as the mechanical load. In Maxwell 2D/3D
designs created by RMxprt, the mechanical transient is setup according to the rated
mechanical output power, and equivalent damping is added to accelerate the
process approaching to the rated output power. This setup is visible when Consider
Mechanical Transient on the Mechanical tab of the Motion Setup dialog box is
checked.
l For Maxwell 2D/3D designs of AC machines, RMxprt automatically enables an
alternating flux (AF) model in the voltage definition for each winding to reduce
transient solution time to reach steady-state when the Maxwell 2D or 3D model is
created.
The information in a report can be displayed in several formats. Select from the following Display
Type formats in the Create Report dialog box:
The first (primary) sweep variable listed under the Sweeps tab will be plotted along the x-
axis.
l Clear the Use Primary Sweep option, and then select the Category, Quantity, and
Function of the quantity to plot on the x-axis. The quantity will be plotted against the
primary sweep variable listed under the Sweeps tab.
8. Under the Sweeps tab, confirm or modify the sweep variables that will be plotted.
9. Click Add Trace.
A trace represents one or more lines connecting data points on the graph. The trace is added
to the traces list at the top of the Traces dialog box. Each column lists an axis on the report
and the information that will be plotted on that axis.
10. Optionally, add another trace by following the procedure above.
11. Click Done.
The function of the selected quantity is plotted against the swept variable values or quantities
you specified on an x-y graph. The plot is listed under Results in the project tree. The default
name is based on the Report Category you selected, (for example, Power Plot n or Output
Variables Plot n). You can edit the plot names in the project tree and the plot header text in the
report synchronizes.
Related Topics
Sweeping a Variable
Working with Traces
The second (secondary) sweep variable listed under the Sweeps tab will be plotted along
the y-axis.
l Clear the Use Secondary Sweep option, and then select the Category, Quantity, and
Function of the quantity to plot on the y-axis. The quantity you select will be plotted against
the secondary sweep variable listed under the Sweeps tab.
8. Under the X tab, specify the information to plot along the x-axis in one of the following ways:
l Select Use Primary Sweep.
The first (primary) sweep variable listed under the Sweeps tab will be plotted along the x-
axis.
l Clear the Use Primary Sweep option, and then select the Category, Quantity, and
Function of the quantity to plot on the x-axis. The quantity you select will be plotted against
the primary sweep variable listed under the Sweeps tab.
9. Under the Sweeps tab, confirm or modify the swept variables that will be plotted.
10. Click Add Trace.
A trace represents one or more lines connecting data points on the graph. The trace is added
to the traces list at the top of the Traces dialog box. Each column lists an axis on the report
and the information that will be plotted on that axis.
11. Optionally, add another trace by following the procedure above.
12. Click Done.
The function of the selected quantity or quantities is plotted against the values you specified on
an x-y-z graph. The plot is listed under Results in the project tree. The default name is based
on the Report Category you selected, (for example, Power Plot n or Output Variables Plot n).
You can edit the plot names in the project tree and the plot header text in the report
synchronizes.
Related Topics
Sweeping a Variable
Working with Traces
A data table is a spreadsheet with rows and columns that displays, in numeric form, selected
quantities against a swept variable or other quantities.
1. Click RMxprt>Results>Create Report.
The Create Report window appears.
2. In the Target Design list, click the design containing the solution data you want to plot.
3. In the Report Type list, click the data type you want to plot.
4. In the Display Type list, click Data Table.
5. Click OK.
The Traces dialog box appears. The Y tab is selected by default.
6. Under the Y tab, select the quantity you are interested in and its associated function:
The quantity you selected in step 5 will be displayed against the first (primary) sweep
variable listed under the Sweeps tab.
l Clear the Use Primary Sweep option, and then select the Category, Quantity, and
Function of the quantity to plot against the quantity you selected in step 5. This quantity will
be plotted against the primary swept variable listed under the Sweeps tab.
8. Under the Sweeps tab, confirm or modify the swept variables that will be plotted.
9. Click Add Trace.
In the context of a data table, a trace represents a quantity's value at another quantity's value
or at selected swept variable values. The trace is added to the traces list at the top of the
Traces dialog box.
10. Optionally, add another trace by following the procedure above.
11. Click Done.
The quantity you selected in step 5 is listed at each variable value or additional quantity value you
specified. The data table is listed under Results in the project tree. The default name is based on the
Report Category you selected, (for example, Power Plot n or Output Variables Plot n). You can edit
the plot names in the project tree and the plot header text in the report synchronizes.
Related Topics
Sweeping a Variable
Working with Traces
A trace in a 2D or 3D report defines one or more curves on a graph. A trace in a data table defines
part of the displayed matrix of text values.
The values used for a plot's axes can be variables in the design or functions and expressions based
on the design's solutions. If you have solved one or more variables at several values, you can
"sweep" over some or all of those values, resulting in a curve in 2D or 3D space.
A report can include any number of traces and, for rectangular graphs, up to four independent y-
axes.
In general, to add a trace to a report:
1. In the Traces dialog box, specify the information you want to plot along the appropriate axes.
2. Click Add Trace.
A trace is added to the traces list at the top of the Traces dialog box. The trace represents the
function of the quantity you selected and will be plotted against other quantities or swept
variable values. Each column lists an axis on the report and the information that will be plotted
on that axis.
You can modify the information to be plotted by typing the name of the quantity or sweep
variable to plot along an axis directly in the boxes.
The trace will be visible in the report when you click Done.
Note l The Traces dialog box can be accessed via the Create Report
dialog box.
l You can also Add Trace Characteristics to 2D reports.
You can traces from the traces list in the following ways:
To remove one trace from the report:
l Select the trace you want to remove from the traces list, and then click Remove Trace.
Related Topics
Related Topics
You can now type the quantities to plot in the appropriate axes boxes.
Related Topics
In RMxprt, a swept variable is an intrinsic, project, or design variable that typically has more than one
value. From the Traces dialog box, you can plot any calculated or derived quantity against one or
more of the swept variable's values.
When you click the Sweeps tab in the Traces dialog box, the first sweep variable listed is the
"primary sweep". If you are creating a 3D report, the second sweep variable listed is the "secondary
sweep". Any additional sweep variables are represented as additional curves on the graph.
To modify which variable is the primary sweep variable:
l Click the Name box for the primary sweep variable, and then click the variable name you want
quantity.
The value of a quantity being plotted depends upon its mathematical function, which you select from
the Function list in the Report dialog box. The available, valid functions depend on the type of
quantity (real or complex) that is being plotted. The function is applied to the quantity which is
implicitly defined by all the swept and current variables. For example, "Volume(Stator)" is the volume
of the model object named Stator for every swept combination of variables ("height" and so forth).
These functions can also be applied to previously specified Quantities and Functions as Range
Functions when using the Set Range Function dialog.
Some of these functions can operate along an entire curve. These are: deriv, min, max, integ, rms,
pk2pk, cang_deg and cang_rad. These functions have syntax as follows:
l deriv(quantity) implicitly implies derivative over the primary sweep
l deriv(quantity, SweepVariable) explicitly means derivative over the sweep variable specified
You can select from the following functions in the Trace tab Function list, or type them directly into
the Yor X field, if necessary:
abs Absolute value of the simulation quantity which results in a number that is
always positive.
acos Arc cosine i.e. the inverse function of a cosine.
acosh Inverse hyperbolic arc cosine.
ang Magnitude of an angle.
ang_deg Angle (phase) of a complex number, cut at +/-180.
ang_rad Angle in radians.
arg Argument of a complex number. It is the angle the complex number makes
with the positive x axis. Same as ang_deg.
asin Arc sine i.e. inverse function of sine.
asinh Inverse hyperbolic sine.
atan Arc tangent. Takes a tangent value as an argument. Because there are two
angles in a circle that can have the same tangent value, and atan can return
only one value, it returns a value in the range between -90 degrees and +90
degrees (or between -pi/2 and pi/2 in radians).
atanh Inverse hyperbolic tan.
atan2 A two-argument version of the atan function. Takes the y and x coordinates
(including sign information) of a point as arguments and returns the angle
from the X-axis. Can return angle values for the full circle (-180 degrees to
+180 degrees or -pi to +pi in radians).
avgabs Returns the mean of the absolute value of the selected quantity.
bandwidth Returns the 3dB bandwidth of the selected simulation quantity. For
bandwidth, the calculation is based on 3dB below the maximum peak.
cang_deg Cumulative angle (phase) of the first parameter (a complex number) in
degrees, along the second parameter (typically sweep variable). Returns a
double precision value cut at +/-180.
cang_rad Cumulative angle of the first parameter in radians along a second parameter
(typically a sweep variable). Returns a double precision value.
cmplx(re, im)
A complex number, where re is the real part and im is the imaginary part.
conjg Conjugate of the complex number.
cos Cosine.
cosh Hyperbolic cosine.
crestfactor Returns the crest factor (peak/RMS) for the selected quantity.
cum_integ The cumulative integral function returns a set of values that have the same
length as the original set of points (the first element will always be zero).
if if(cond_exp,true_exp, false_exp).
im Imaginary part of the complex number.
int Truncated integer function.
integ Integral of the selected quantity. Uses trapezoidal area.
integabs Absolute value of integral.
ise Returns the integral of the squared deviation of the selected quantity from a
target value that is entered via an additional argument. To use this function,
you need to open the Add Trace Characteristics dialog and select the Error
category.
itae Returns the time-weighted squared deviation of the selected quantity from a
target value that is entered via an additional argument. To use this function,
you need to open the Add Trace Characteristics dialog and select the Error
category.
itse Returns the time-weighted squared deviation of the selected quantity from a
target value that is entered via an additional argument. To use this function,
you need to open the Add Trace Characteristics dialog and select the Error
category.
j0 Bessel function of the first kind (0th order).
j1 Bessel function of the first kind (1st order).
jn Bessel function of the first kind (nth order).
ln Natural logarithm.
log Natural logarithm (same as ln).
log10 Logarithm base 10.
lowercutoff Returns the lower 3dB frequency of the selected simulation channel in Hertz.
lsidelobeX The 'x' value for the left side lobe: the next highest value to the left of the max
value.
lsidelobeY The 'y' value for the left side lobe: the next highest value to the left of the max
value.
mag Magnitude of the complex number.
max Returns maximum value of the simulation quantity.
max_swp Returns maximum value of a sweep.
max2 Maximum value of the two simulation quantities. For example, max2(a,b) will
plot maximum of a and b for a particular instance.
mean Returns the average in the set of quantities selected.
mean = sum( all y-value) / (number of y-values)
min Returns the minimum value of the simulation quantity.
min_swp Returns the minimum value of a sweep.
min2 Minimum value of the two simulation quantities. For example, min2(a,b) will
plot minimum of a and b for a particular instance.
reached.
pulsetail50 Returns the pulse tail time of the selected quantity from the virtual peak to
50%.
pulsewidth5050 Returns the pulse width of the selected quantity as measured from the 50%
points on the pulse front and pulse tail.
pwl Piecewise Linear.
pwl_periodic Piecewise Linear for periodic extrapolation on x.
pwlx Piecewise Linear x with linear extrapolation on x.
pw_minus Pulse width of the first negative pulse.
pw_minus_avg Returns the average of the negative pulse width input stream.
pw_minus_max Returns the maximum pulse width of the negative pulse of input stream.
pw_minus_min Returns the minimum pulse width of the negative pulse of input stream.
pw_minus_rms RMS of the negative pulse width input stream.
pw_plus Pulse width of the first positive pulse.
pw_plus_avg Average of the positive pulse width input stream.
pw_plus_max Max. Pulse width of the positive pulse of input stream.
pw_plus_min Min. Pulse width of the positive pulse of input stream.
pw_plus_rms RMS of the positive pulse width input stream.
re Real part of the complex number.
rect Converts the complex number in polar to rectangular co-ordinates.
rem Fractional part of the selected simulation quantity i.e. remainder.
ripple Returns the ripple factor (AC RMS/Mean) for the selected quantity.
risetime Obtains the time taken to go from 10% to 90% of target point.
rms Returns the root mean square value of the selected quantity.
rmsAC Returns the AC RMS for the selected quantity.
root nth root function.
rSidelobeX Returns the X value of right side-lobe occurrence.
rSidelobeY Returns the Y value of right side-lobe occurrence.
settlingtime Returns the latest time at which the value of the selected simulation quantity
fell outside its tolerance band. The target value of the quantity and the +/-
bandwidth of the tolerance band are the additional args.
sgn Sign extraction.
sin Sine.
sinh Hyperbolic sine.
slidingmean Returns the moving average value of the selected simulation quantity
(specified by the first argument). The average is calculated over a period
(specified by the second argument).
slidingrms Returns the moving RMS value of the selected simulation quantity (specified
by the first argument). The RMS value is calculated over a period (specified
by the second argument).
sqr Square of the selected simulation quantity.
sqrt Square root of the selected simulation quantity.
stddev Returns the standard deviation of given values.
sum Returns the sum of the given values.
tan Tangent.
tanh Hyperbolic tangent.
undershoot Calculates peak undershoot given a threshold value and number of evenly
spaced points over entire time range.
uppercutoff Returns the upper 3dB frequency of the selected simulation channel in Hz.
variance Calculates the variance of the given values.
XAtYMax Threshold crossing time: report first time (x value) at which an output quantity
crosses YMax.
XAtYMin Threshold crossing time: report first time (x value) at which an output quantity
crosses a user definable threshold.
XAtYVal Returns the X value at the first occurrence of Y value.
XWidthAtYVal Returns the X width between the first 2 occurrence of Y value.
xdb10beamdwidth Width between left and right occurrences of values 'x' db10 from max. Takes
'x' as argument (3.0 default). To use this function, you need to open the Add
Trace Characteristics dialog and select the Radiation category.
xdb20beamwidth Width between left and right occurrences of values 'x' db20 from max. Takes
'x' as argument (3.0 default). To use this function, you need to open the Add
Trace Characteristics dialog and select the Radiation category.
YAtXMax Returns the X value at maximum value of Y.
YAtXMin Returns the Y value at minimum value of X.
YAtXVal Returns the Y value at the first occurrence of X value.
y0 Bessel function of the second kind (0th order).
y1 Bessel function of the second kind (1st order).
yn Bessel function of the second kind (nth order).
Each trace in a report includes a quantity that is plotted along an axis. The quantity being plotted can
be a value that was calculated by RMxprt, such as L11, a value from a calculated expression.
To select a parameter, variable, or quantity to plot:
2. Select a quantity to plot from the Quantity list. The available quantities depend on the
selected category and the setup of the design.
Related Topics
Creating Reports
Modifying Reports
RMxprt Quick Report Categories
When using the Quick Reports function for Solutions, the following report categories may be
available depending upon the solution parameters requested, solution type, etc:
Category Description
Coil Voltage Report voltages in the machine coil.
Current Report currents for each line or phase of the machine, source current, line current,
armature current.
Flux Density Report flux density in the machine air gap, flux linkages.
Induced Report Induced Line and Phase voltages.
Voltage
Misc. Report miscellaneous quantities specific to the machine type such as power factor,
torque to current ratio.
Machine>Stator>Winding.
l You can also enter values in the Properties section of the desktop without opening a
separate window.
2. Specify the desired settings.
3. Click OK to close the Properties dialog box.
The specific properties available depend on the specific machine.
The following machine types have winding data available:
l Three-Phase Induction Motors (stator winding) and (rotor winding)
l Whole Coiled
l Half Coiled
Selections for the DC Permanent Magnet Motor (rotor winding) and Universal Motor include
(stator winding) and (rotor winding):
l Lap
l Wave
l Wave
l Frogleg
l Lap - 90 deg phase belt 2-layer coil for both single and double layer
Setting the Winding Type property to Editor enables the command Machine>Edit Layout on the
menu bar. To display the dialog box Winding Editor:
1. Open the Winding Properties window and set the Winding Type value to Editor. To do this,
double-click on the button Winding Type value to display the Winding Type selection window.
2. Select Editor as the Winding Type and click OK. This closes the Winding Type selection
window and sets the Winding Type Value to Editor. It also enables the command
Machine>Winding>Edit Layout on the menu bar. Now the Machine Editor window displays
the default winding arrangement.
3. Click Machine>Winding>Edit Layout. This displays the dialog box Winding Editor as
shown. The dialog box Winding Editor includes functions that do not appear in the tab sheet
Winding Editor in the RMxprt Machine Editor window.
4.
Each row of the winding data table in the dialog box Winding Editor in Figure 3.13 is identified with
the coil index in the column Coil. This information is displayed in the tab sheet Winding Editor in the
RMxprt Machine Editor window as well, but it is editable in the dialog box Winding Editor.
The winding data table contains four columns:
When you have specified the winding data, you can execute the following commands to
automatically connect or disconnect the windings.
l Machine>Winding>Connect All Coils
Upon executing, the graphical display in the main window shows the connections.
l Machine>Winding>Disconnect All Coils
Upon executing, the graphical display in the main window updates to remove the connection.
Related Topics
l Claw-pole Alternator
You input data for Number of Poles in the Machine Properties window and data for the Number
of Slots and Slot Type in the StatorProperties window. You set the Number of Slots in the
Winding Properties window. RMxprt automatically arranges the winding layout and display the
relevant information that has been specified in the Winding Editor tab of the RMxprt main window.
As long as the edited winding data have been saved, the Winding Editor tab will display the last
saved winding data whenever Winding Editor dialog is launched. The left top part of the Winding
Editor tab shows the winding data, as does the Winding Editor dialog. In this area, the total number
of rows equals half the number of slots.
l Column In Slots is for the slot number with the coil side current flowing in ('flow-in-side' for
short). If 2 Layers are specified in the Winding Properties window, the slot number ends with a
"T" to show the top layer.
l Column Out Slots is for the slot number with the coil side current flowing out ('flow-out-side'
for short). If 2 Layers are specified in the Winding Properties window, the slot number ends
with a "B" to show the bottom layer.
By changing the belonging phase in column Phase, the number of turns in column Turns, the flow-
in-side slot number in column In Slot, the flow-out-side slot number in column Out Slot for each coil,
it is possible to arrange the distribution of coils of single and double layer winding of any type
required.
winding arrangement. It has a drop-down menu to show the possible numbers for the periodic
multiplier.
When checked, the pull-down list box to the right displays the numbers of unit machines for
selection. Selecting 1 means whole slots are considered as one unit machine, and all coils is
listed in the table of the edit window. Selecting 2 lists half of the total coils in the table, and
whole slots are divided into two unit machines, etc. When the check box Periodic Multiplier:
is unchecked, the pull-down list box to the right is grayed (enabled); all the coils are listed in the
table.
l Constant Turns.
Checking the check box (multiple choices) Constant Turns indicates that the number of turns
keeps constant and the column Turns in the table is grayed (disabled). If the check box
Constant Turns is unchecked, the column Turns in the table is brightened allowing for
editing and modifying the number of turns.
l Constant Pitch
Checking this box grays the Out Slots column to the values cannot be edited. It means that the
coil pitch is constant. For two-layer windings, all flow-in-side slots are defined as top layer, and
all flow-out-side slots as bottom layer. The flow-out-side slot number is automatically
computed based on the input in the edit box Coil Pitch in Stator2 page in RMxprt window, and
Out Slot column is disabled.
When the check box Constant Pitch is unchecked, the column Out Slot is enabled to allow
arbitrarily changing slot pitch for each coil.
The Winding Editor dialog includes three command buttons.
l Click the command button Default in the window Winding Editor, all the data in the table
resumes to the situation of data when the window Winding Editor was first opened, or
resumes to the data that you have saved.
l Click OK to accept the current values and close the Winding Editor dialog.
Conductor
A conductor refers to a half turn of a coil. A conductor may be formed with one insulated wire, or with
several strands of insulated wires.
Strands
A conductor may consist of several wires of same or different sizes stranded together. The number
of strands is also called number of wires per conductor. The conductor current may not uniformly
distribute among all wires, but the current density is uniformly distributed.
Coil
A coil is wound with several turns, each turn consisting of two conductors. Coils are generally
wound with insulation-wrapped electromagnetic wire continuously on a winding mould. However,
coils with single-turn for heavy current are often formed with two separate thick conductors. A thick
conductor is hammered onto the winding mould to form a half-coil. The linear part of a conductor
imbedded into a slot of iron core is termed effective side.
Coil Pitch
The number of slots of the armature iron core spanned by the two effective sides of a coil is termed
coil pitch, denoted by y. For instance, if the side of a coil in the 1-st slot spans 8 slots and is connected
to the side of the coil in the 9-th slot, the coil pitch of the coil is y = 8.
Coil Set
The coils belonging to the same phase under one pole are connected in series as a coil set.
Winding
The coils or coil sets of a phase are connected according to certain rules to form a phase winding. A
phase may consist of several branches connected in parallel. Every branch must produce exactly
the same back emf and must have the same resistance. As a result, the phase winding current is
uniformly distributed among all branches.
In summary, a winding may be connected with several branches in parallel; each branch consists
of one or more coil sets connected in series; a coil set may have several series coils; a coil is wound
with a number of turns; a turn is formed by two conductors; a conductor may be stranded by one or
more same- or different-size wires.
The common armature winding of poly-phase ac machines is catalogued and classified as shown in
the following table.
Polyphase AC Winding
Double layer Variable-pole multiple speed type
Fractional slot number type
Wave-type
Concentric type
Lap Type
Single Layer Crossed Concentric type (whole coiled or half
coiled)
Crossed Chain-type (whole coiled or half coiled)
Concentric type (whole coiled or half coiled)
Lap-type (whole coiled or half coiled)
Chain-type (whole coiled or half coiled)
Compound
layer
Whole-coiled Windings
When the coils of an AC winding are connected so that there are as many coil sets per phase as
there are poles, the winding is called "whole-coiled."
Half-coiled Windings
When the coils are connected so that there is only one coil set per phase per pair of poles, the
winding is called "half-coiled."
Single-Layer Windings
All the conductors in one slot are connected in series with all the conductors in another slot to form a
single-layer coil. You set the number of winding layers in the Winding properties window, Winding
tab. Comparing to double-layer type, this type is characterized by
l Number of coils halved;
l No need for insulation between layers, therefore higher slot filling factor;
According to different layouts of the end winding, single-layer windings are classified as chain-, lap-,
concentric- and crossed-types.
Chain-type Windings
The name single-layer chain-type is from the linked chain-like developed winding diagram. For a
chain-type winding, every coil set has only one coil.
An example of three-phase 6-pole 18-slot single-layer half-coiled chain-type winding is shown in the
following figure.
Lap-type Windings
The name single-layer lap-type is from the lapped layout of end connection. In a lap-type winding, at
least one coil set has 2 or more coils which are overlapped each other. If some coil sets have only
one coil, this winding type is also called "crossed lap-type".
An example of three-phase 4-pole 24-slot single-layer half-coiled lap-type winding is shown in the
figure on the left, and an example of three-phase 8-pole 36-slot single-layer half-coiled crossed lap-
An example of three-phase 4-pole 48-slot single-layer whole-coiled lap-type winding is shown on the
left, and an example of three-phase 4-pole 36-slot single-layer whole-coiled crossed lap-type
winding is shown on the right1
Concentric-type Windings
In a concentric-type winding, at least one coil set has 2 or more coils and non coils are overlapped
each other. If some coil sets have only one coil, this winding type is also called "crossed concentric-
type".
The single-layer concentric-type is formed of coils with different coil pitch, but with the same central
line and of concentric-circle-like, therefore is named concentric-type. Its end connection can be
arranged in layers, and therefore is convenient to imbed into slots. Nevertheless, the end magnetic
leakage is a bit bigger.
Double-Layer Windings
In this type, the conductors in a slot are arranged in upper and lower layers. One side of each coil is
imbedded in the upper layer in one slot and the other side is imbedded in the lower layer in another
slot. You set the number of winding layers in the Winding properties window, Winding tab.
Comparing to single-layer-type, this type is characterized by:
l Number of coils doubled;
l Need for insulation between layers, therefore lower slot filling factor, and danger in electric
For the single speed electric machine, the double-layer winding typically adopts whole-coiled type.
For the double speed electric machine with doubling number of poles, the double-layer winding is
whole-coiled in high speed, half-coiled in low speed.
According to different coil shapes, double-layer windings are classified as lap-, concentric- and
wave-types.
An example of three-phase 4-pole 24-slot whole-coiled double-layer lap-type windings (short pitch
y = 5) is shown below.
The name double-layer wave-type is from the wave-like developed winding diagram as shown
below.
Compared to lap-type:
l The winding of each phase connects the coils under different poles in series in one round, and
returns to the left to the first coil, then winds the next round, and so on so forth until all the coils
belonging to this phase are connected.
l This type is usually used in single-turn preformed hard coil for low voltage high current electric
machines.
l This type needs less connection wire between poles.
Fractional-Pitch Winding
First, introduce a number q, called number of slots per pole per phase, which is defined as
Auto-arrangement of AC Windings
RMxprt can arrange these windings automatically if all coils have the same number of turns. This
section describes the process to automatically arrange the coil distribution.For winding layout display
in RMxprt, the lap-type is default if windings are automatically arranged. If a concentric-type layout
display is desired, the winding can be defined by winding editor, as described in the next section.
The wave-type winding is effective to a lap-type winding, and is also displayed as a lap-type winding.
The conductors (or coils) in slots produce emf (or mmf), which can be expressed with unit vector.
When the electric machine has number of pole p, and number of slots Z, the angular phase
difference in electric degrees between two contiguous slots is
Drawing the vectors of emfs (or mmfs) in all the slots according to their phase angles forms the star
vector diagram of the winding. The figure below shows an example of the star vector diagram of 4-
pole 24-slot winding.
If there exists the greatest common factor t between the number of slots Z and the number of pole
pairs pp (= p/2), the star vector diagram repeats t times, i.e. the winding has t periods. Let
,
and
,
then Z0 and p0 construct a complete star vector diagram and form a unit electric machine. For the
whole-pitch winding electric machine (q, as shown later, is an integer), t = p/2. For the fractional-
pitch winding electric machine,
where m is the number of phases. If t > 1, the angular phase difference between two contiguous
vectors is
and the difference between the ordinal numbers of the slots of two contiguous vectors is
where G is a minimum integer to make y0 equal to an integer (y0 should take into account the
possible reverse connection of coils under the contiguous pole).
Phase Spread
In the star vector diagram of a unit electric machine, the range occupied by the vectors of each phase
under one pole is termed phase spread, expressed in electric degrees or number of slots. For a
single-layer winding, the phase spread is 180°/m (m – the number of phases). The phase spread of a
double-layer half-coiled winding is 360°/m, and the phase spread of a double-layer full-coiled
winding is 180°/m.
The phase spread of a 2-phase winding is always 90° (= 180°/m). Therefore, a 2-phase winding
cannot take the double-layer half-coiled winding type. The windings for single-phase induction motor
are also considered as 2-phase windings.
When the number of phases is an even number of greater than or equal to 4, the phase spread is
always 360°/m. Therefore, a winding with even number of phases (4, 6, …) can take only the
double-layer half-coiled winding type.
When the number of phases is an odd number of greater than or equal to 3, the phase spread can be
either 360°/m or 180°/m. Therefore, a winding with odd number of phases (3, 5, …) can take any
winding types.
Coil Arrangement
Coil arrangement is completed by the following processes. First, draw the star vector diagram based
on number of slots and number of poles. Then divide the whole region (360 electric degrees) to
several phase spreads, which is derived from the number of phases and the winding type. Finally,
assign all phase spreads to each phase in such a way that the axis of each succeeded phase lags by
360/m electric degrees (90 electric degrees for 2 phases).
Double-layer Windings
Take a three-phase winding as an example. The width of phase spread of half-coiled winding is
360o / 3 = 120o, the sequence of the phase spread is A, B, C. For whole-coiled winding, the width of
phase spread is 180o / 3 = 60o, the sequence of phase spread is A, –C, B, –A, C, –B, where the
phase spread with negative sign is termed negative phase spread.
The winding types can be set in the Winding Type panel for a machine that includes these options (in
this case, a brushless permanent magnetic DC motor), for double-layer whole-coiled windings as
shown in on the left and double-layer half-coiled windings as shown on the right.
The star vector diagram of a three-phase whole-coiled (60o-phase-spread) winding is shown below
on the left, and that of a half-coiled (120o phase spread) winding is shown below on the right.
Single-layer Windings
The winding layers can be set in the properties window for the winding, for single-layer whole-coiled
windings as shown on the left and single-layer half-coiled windings as shown on the right.
The phase spread of a three-phase single-layer whole-coiled or half-coiled winding is 60o, and the
star vector diagram is the same as the double-layer whole-coiled winding.
Fractional-pitch Windings
The number of slots per pole per phase of fractional-pitch winding is a mixed number.
In the unit electric machine, the numbers of slots occupied by phase spread are not all the same, but
repeat with the radix d. In each d poles, there are c poles with the slot number of phase spread equal
to b + 1 (big phase spread), d – c poles with the slot number of phase spread equal to b (small phase
spread).
Take as an example a three-phase 10-pole 36-slot fractional-pitch winding with phase spread of 60°.
The number of slots per pole per phase of fractional-pitch winding is
the greatest common factor between the number of slots 36 and the number of pole pairs 5 is t = 1,
the angular phase difference between two contiguous vectors in the star vector diagram is
the difference between the ordinal numbers of the slots of two contiguous vectors is (G = 2)
the repetition radix d = 5. In each 5 pole region, each phase has big phase spread of 1 + 1 = 2 slots
under 1 pole, and small phase spread of 1 slot under 4 poles. The repeating format is 2 1 1 1 1 for
phase A. The repetition of phase spread distribution for all phases is shown in the following table.
Asymmetric Windings
d = m = 3, the winding is asymmetric. The output in the window Design Output is shown below.
The information for WINDING ARRANGEMENT is displayed as follows:
The distribution of coil slots to phases:
The 3-phase, 2-layer winding can be arranged in 66 slots as below:
AAAAZZZZBBBXXXXCCCCYYYAAAZZZZBBBBXXXCCCCYYYYAAAAZZZBBBBXXX
XCCCYYYY
X, Y and Z stands for –A, -B and –C, respectively. For asymmetric windings, additional information is
output, as shown below.
The winding factors of each phase are:
Phase 0.954119
A
Phase 0.954119
B
Phase 0.949042
C
If a sinusoidal rotating field links the winding, the fundamental induced-voltage components will be:
Coil Connections
Every vector represents the top-layer effective side of a coil. The bottom effective side of the coil is
determined based on the coil pitch, and is not displayed in the diagrams. Therefore, every vector in
the diagrams can also stand for a coil. Connect all coils in phase spread of A in positive direction, and
all coils in phase spread of –A in negative direction to form the phase A winding. In this way, phase B
and C windings can also be connected. The winding connection layouts for the vector diagrams are
shown below.
Every vector in A, B and C phase spread represents "go" effective side of a coil, the "return" effective
side of the coil is located in –A, –B and –C phase spread. For the lap type connection, all coils are
with full coil pitch. The connection layouts of the lap type and the concentric type, with respect to the
same vector drawing are shown below.
In the previous example, for the concentric type (lower right in the diagram), if coil 1 is not connected
from slot 1 to slot 8 (long coil pitch: coil pitch = 7 > pole pitch = 6), but connected from slot 1 to slot 20,
and slot 8 to slot 13, all coils of phase A winding have coil pitch of 5. In this way, the winding becomes
single-layer whole-coiled type with the same star vector diagram and phase spread, and has much
shorter average coil pitch. Therefore, single-layer whole-coiled windings consume less
electromagnetic wire than single-layer half-coiled windings. RMxprt can optimize connections to
minimize the average coil pitch to form a single-layer whole-coiled winding.
An example of three-phase 4-pole 36-slot single-layer whole-coiled crossed lap-type winding (q = 3,
60o phase-spread) is shown below.
A star vector diagram with fractional coil pitch can also be connected with single-layer whole-coiled
type. When the number of slots per pole per phase q <2, as shown in the following vector diagram,
the number of coil sets per phase may not equal to the number of poles (6 coils vs 10 poles), but the
algorithm to connect coils is the same (minimize the average coil pitch), and therefore, it is still
referred as whole coiled windings.
The winding connection layout for the previous vector diagram is shown below.
Another example is an asymmetric three-phase winding. The connection layout is shown below.
Commonly used for coils of double-layer windings are lap- and concentric-types. Single-speed
double-layer winding electric machine is usually connected as whole-coiled winding. Double-pole
dual-speed electric machine is connected as double-layer whole-coiled winding at high speed and as
double-layer half-coiled winding at low speed.
Take as an example a three-phase dual-speed 2/4-pole 24-slot double-layer winding. The
arrangement of coils is shown in the Table and in the following figure.
Slot 1 2 3 4 5 6 7 8 9 10 11 12
number
Two poles A A A A – – – – B B B B
C C C C
Four poles A A A A C C C C B B B B
Slot 13 14 15 16 17 18 19 20 21 22 23 24
number
Two poles – – – – C C C C – – – –
A A A A B B B B
Four poles A A A A C C C C B B B B
The connection for variation of number of poles is shown in the next figure. On the top-left is the 2-
pole 2Y-connection at high speed, on the top-right is the 4-pole -connection at low speed.
DC Windings
Lap Winding
Coil pitch
where
Z number of slots
p number of poles
m number of
multiplex
Wave Winding
Coil pitch
Commutator pitch
Frog-leg Winding
A frog-leg winding consists of a lap winding and a wave winding. Assume the lap winding has m
multiplex number. In order to connect the wave winding in parallel with the lap winding, the wave
winding should have the same branch bake emf as the lap winding. Therefore, the number of
branches in parallel of the wave winding has to be the same as that of the lap winding, or the
multiplex number of the wave winding must be mp/2. The winding layout of a frog-leg-type winding
with m=1 for dc machines is as shown below.
Coil pitch
Commutator pitch
yKa = ±m
where
Virtual Slots
Windings of the dc machine are usually double-layer type. In many cases, often a number of coil
sides are imbedded into one slot for simplification of structure. Therefore, the number of slots Z is
less than the number of coils S. There exists the relationship
where µ is the number of coil sides in each layer in one slot and is termed virtual slot factor.
Therefore, the number of conductors per slots is equal to multiple of 2µ.
Equipotential Connectors
The points ideally possessing the same electric potential in armature winding are often wholly or
partly connected by short copper wire, which is termed equipotential connector.
Asymmetry in magnetic circuit, such as eccentric air-gap, causes circulating current in lap winding,
increases losses and affects commutation in order. The equipotential connector Class A on the
commutator of simplex-lap winding can solve this problem. The connection pitch of equipotential
connector Class A of simplex-lap winding yp is equal to the number of commutator segments per
pole pair.
Winding with yp = integer is termed symmetric winding. Only symmetric winding can have
equipotential connector Class A.
Simplex-wave winding does not possess electrically equipotential points, therefore, can not have
equipotential connector. On the other hand, simplex-wave winding does not need equipotential
connector.
There are electric equipotential points among different sets of simplex-wave windings of multiplex-
wave winding. They can be connected to eliminate the nonuniform distribution of electric potential on
commutator segments due to inequality of brush resistances. This is termed equipotential connector
Class B. The connection pitch of equipotential connector Class B of multiplex-wave winding yp is
equal to the number of commutator segments per branch pair in parallel.
For multiplex-lap winding, equipotential connector Class A is needed for each set of simplex-lap
windings, equipotential connector Class B is needed among different sets of simplex-lap windings.
There exist no electrically equipotential points among different sets of simplex-lap windings on the
commutator side of armature, however, there exist electrically equipotential points among different
sets of simplex-lap windings on different sides of armature as points A and B in the figure below.
For frog-leg winding, each pair of electrically equipotential points on commutator is connected by a
lap coil and a wave coil in series. The connection acts as equipotential connector Class A for lap
winding and as equipotential connector Class B for wave winding. Therefore there is no need for
extra equipotential connectors.
Pole Windings
The following two types of electric machines possess similar pole winding structure:
l DC machine (motor and generator)
RMxprt adopts the same arrangement procedure for pole windings of the two types of electric
machines. There are three types of structure as shown in the figure below:
Cylinder Coil pole winding with rectangular wire wound in standing way.
Before completing a winding arrangement, RMxprt needs to determine the limited space sizes for
the winding. The limited sizes include: limited Overall Height, limited Overall Width and Winding
Clearance (the clearance between two adjacent pole windings), as shown below.
Overall Height, Overall Width and Winding Clearance can be input from RMxprt panel. If either
Overall Height or Overall Width is set to 0, RMxprt perform automatic space optimization to
obtain the maximum space for pole winding arrangement in the condition to guarantee the clearance
between pole windings.
If the space from input or determined by space optimization is not sufficient to arrange for the input
number of turns per pole, a message of "The rotor/shunt/series/commutating winding control
dimension is not big enough." is displayed in Design Output window.
With auto-arrangement of pole windings, RMxprt calculates maximum number of layers, minimum
number of layers, maximum number of turns per layer, minimum number of turns per layer, and the
maximum number of turns per pole that is available from the limited space, and so forth.
Cylinder Coil
The arrangement of magnetic-pole winding with rectangular wire wound in standing way by RMxprt
is shown below.
The cylinder coil is wound with half-turn over lapped layer by layer. Layers with the same number of
turns constitute a section. The output window Design Output displays the number of layers and the
number of turns per layer of each section, and the maximum number of turns per pole that is
available from the limited space.
Edgewise Coil
The arrangement of magnetic-pole winding with rectangular wire wound in flatting way by RMxprt is
shown below.
To guarantee the clearance between two adjacent pole windings, the wire width of the lower parts is
decreased, while the wire thickness is increased to keep the sectional area of wire invariant as
possible. The turns with the same wire gauge constitute a section (maximum three sections are
allowed). The output window Design Output displays the number of turns of each section and the
sizes of wire gauge, and the maximum number of turns per pole that is available from the limited
space.
For some large machines, a half turn may be included due to too few turns per pole. When the
number of turns per pole is an integer number, the number of conductors per pole is an even number
with equal conductor number at both pole sides. Therefore, the two terminal leads of one pole coil
are at the same axial side (or at different pole sides), as shown below.
When the number of turns per pole includes a half turn, the number of conductors per pole is an odd
number. In this case, one pole side has one more conductor than the other pole side, and the two
terminal leads of one pole coil are at different axial sides (or at the same pole side), as shown below.
l Claw-Pole Alternator
l General DC Machine
l Permanent-Magnet DC Motor
l Universal Motor
l Stator data, such as the slot types, diameter, and wire dimensions.
l Rotor data, such as the slot dimensions, skew, and ventage holes.
l Add vents to and remove an existing vent from the stator and rotor.
For a three-phase induction motor, the stator winding (with a sinusoidal spatial distribution and p
pairs of poles) is connected to a three-phase symmetric voltage power supply. The resulting currents
in the stator produce a rotating magnetic field. The rotor winding is often a squirrel cage type with the
number of poles dictated by the number of poles in the stator. Currents are induced in the rotor bars
and produce, in turn, a second rotating magnetic field. The two rotating fields produce a resultant
rotating magnetic field in the air gap of the machine. The interaction of this field in the air gap with the
rotor bar currents produces an electromagnetic torque, which acts on the rotor in the direction of the
rotation of the field in the air gap. A torque of equal value acts upon the stator in the opposite
direction.
The stator winding, which is connected to a phase of the supply system, has p coils, each with a
symmetric spatial distribution and an opening of πD/2p, where D is the diameter of the winding. In
this case, the magnetic field in the air gap has p periods, and the winding has p pairs of poles.
The performance of three-phase induction motors (IndM3) is analyzed based on the equivalent
circuit of one phase in the frequency domain as shown in Figure 1.
In the figure, R1 is the stator resistance, X1 is stator leakage reactance, which consists of stator slot
leakage reactance, end-winding leakage reactance, and differential leakage reactance. X2 and R2
are rotor leakage reactance and rotor resistance, respectively. X2 includes rotor slot leakage
reactance, end-ring leakage reactance, differential leakage reactance, and skewing leakage
reactance. Due to the saturation of the leakage field, X1 and X2 are nonlinear. The parameters in the
equivalent circuit are dependent on the stator and rotor currents. Due to the skin effects, X2 and R2
are the equivalent values from a distributed-parameter circuit, as shown in Figure 2.
They vary with the rotor slip s. All rotor parameters have been referred to the stator side.
In the exciting branch, Xm is the magnetizing reactance, and RFe is the resistance corresponding to
iron-core losses. Xm is a linearized nonlinear parameter that varies with the saturation of the main
field.
After a phase voltage U1 is applied to the phase terminals, stator phase current I1 and rotor current
I2, which has been referred to the stator, can be easily computed by the circuit analysis. The
electromagnetic power Pm, or air-gap power, is computed by the following:
Pm = 3 * I2^2 * R2/s
The electromagnetic torque Tm is:
Tm = Pm/
where w is the synchronous speed in rad/s.
The output mechanical shaft torque T2 is:
T2 = Tm - Tfw
where Tfw is the frictional and wind torque.
The output power is:
P2 = T2 * 2
Use the General Data Properties window to define the basic parameters of the induction motor,
such as the number of poles, and frictional loss.
To define the general data:
1. To open the General Data Properties window, double-click the Machine entry in the project
tree on the desktop. (You can also enter values in the Properties section of the desktop
without opening a separate window.)
2. Enter the number of poles for the machine in the Number of Poles field. This value is the total
number of poles in the stator (or the number of pole pairs multiplied by two).
3. Enter the stray loss factor in the Stray Loss Factor field. The stray load loss consists of the
losses arising from non-uniform current distribution in the copper and additional core losses
produced in the iron by distortion of the magnetic flux by the load current. The IEEE Standard
provides different assumed stray load loss values for AC motors rated less than 2500 hp, as
follows:
l 1) 1-125 HP = 1.8% of rated output power
l 2) 126-500 HP = 1.5%
l 3) 501-2499 HP = 1.2%
4. Enter the energy loss due to friction at the given speed in the Frictional Loss field.
5. Enter the wind loss due to air resistance measured at the reference speed in the Wind Loss
field.
6. Enter the given speed in the Reference Speed field.
7. Click OK to close the Properties window.
To access the general data, double-click the Machine entry in the project tree.
The General Data Properties window for a three-phase induction motor contains the following
fields:
Machine Type The machine type you selected when inserting a new RMxprt design (Three
The stator is the outer lamination stack where the three-phase windings reside. In the project tree,
double-click Machine>Stator, Machine-Stator-Slot, and Machine-Stator-Winding to define the
physical dimensions, slot data, wires, and conductors for the stator.
TTo define general stator data:
1. To open the Stator Data Properties window, double-click the Machine>Stator entry in the
project tree on the desktop. (You can also enter values in the Properties section of the
desktop without opening a separate window.)
2. Enter the Outer Diameter of the stator.
3. Enter the Inner Diameter of the stator.
4. Enter the length of the stator core in the Length field.
5. Enter the stacking factor for the stator core in the Stacking Factor field.
6. Select a Steel Type for the stator core:
a. Click the button for Steel Type.
The Select Definition window appears.
b. Select a steel type from the list, or define a new steel type.
c. Click OK to close the Select Definition window and return to the Properties window.
7. Enter the Number of Slots in the stator.
8. Select the Slot Type:
a. Click the button for the Slot Type.
The Select Slot Type window appears.
Optionally, check User Defined Slot if you wish to define the slot dimensions using the Slot
Editor.
c. Click OK to close the Select Slot Type window and return to the Properties window.
9. Enter the number of sectors in the Lamination Sectors field.
10. Enter the thickness of the magnetic end pressboard in the Pressboard Thickness field.
Enter 0 for a non-magnetic end pressboard.
11. Enter the skew width, measured in slot number, in the Skew Width field.
12. Click OK to close the Properties window.
To access the general stator data, double-click the Machine>Stator entry in the project tree.
The Stator Data Properties window contains the following fields:
Outer Diameter The outer diameter of the stator core.
Inner Diameter The inner diameter of the stator core.
Length The length of the stator core.
Stacking Factor The stacking factor of the stator core.
Steel Type The steel type of the stator core. Click the button to open the Select
Definition window.
Number of Slots The number of slots the stator core contains.
Slot Type The type of slots in the stator core. Click the button to open the Select Slot
Type window.
Lamination The number of lamination sectors.
Sectors
Pressboard The magnetic press board thickness (0 for a non-magnetic press board).
Thickness
Skew Width The skew width measured in slot number.
Note If you chose User Defined Slot in the Select Slot Type window, you must define the slot
dimensions using the Slot Editor.
To define the stator slots:
1. To open the Stator Slot Data Properties window, double-click the Machine-Stator-Slot
entry in the project tree on the desktop. (You can also enter values in the Properties section
of the desktop without opening a separate window.)
2. Optionally, to automatically design the dimensions of slots Hs2, Bs1, and Bs2, select the
Auto Design check box.
3. Optionally, to design dimensions of slots Bs1 and Bs2 based on the stator tooth width, select
the Parallel Tooth check box, and enter a value in the Tooth Width field.
To access the stator slot data, double-click the Machine-Stator-Slot entry in the project tree.
The Stator Slot Data Properties window contains the following fields:
Auto Select or clear this to enable or disable auto-design of slots Hs2, Bs1, and Bs2. When
Design this check box is selected, only two other fields appear in the window: Hs0 and Bs0.
Parallel Select this to design Bs1 and Bs2 based on the tooth width. When this check box is
Tooth selected, the Bs1 and Bs2 fields are removed, and the Tooth Width field is added.
Tooth The tooth width for the parallel tooth, on which Bs1 and Bs2 are designed.
Width
Hs0 A slot dimension (see the diagram shown in the modeling window when Machine-
Stator-Slot is selected).
Hs2 A slot dimension (see the diagram shown in the modeling window when Machine-
Stator-Slot is selected).
Bs0 A slot dimension (see the diagram shown in the modeling window when Machine-
Stator-Slot is selected).
Bs1 A slot dimension (see the diagram shown in the modeling window when Machine-
Stator-Slot is selected).
Bs2 A slot dimension (see the diagram shown in the modeling window when Machine-
Stator-Slot is selected).
Rs A slot dimension. (see the diagram shown in the modeling window when Machine-
Stator-Slot is selected). Rs is added when the slot type is 3 or 4.
Whole Coiled
Two Layer A user-defined two-layer winding arrangement. When you select for winding layers
Winding the you can specify a different winding arrangement for each slot in the Winding
Editor Editor.
A two-layer whole coiled winding:
Whole
Coiled
The phase belt for this winding configuration is equal to 360/2m, where m is the
phase number.
Half Coiled A two-layer half-coiled winding:
l If you selected Input Half-turn Length, then enter the half-turn length of the armature
winding in the Half Turn Length field.
l If you cleared Input Half-turn Length, then enter the end length adjustment of the stator
coils in the End Adjustment field. The end adjustment is the distance one end of the
conductor extends vertically beyond the end of the stator.
5. Enter the inner radius of the base corner in the Base Inner Radius field.
6. Enter the inner diameter of the coil tip in the Tip Inner Diameter field.
7. Enter the distance between two stator coils in the End Clearance field.
8. Enter the thickness of the slot liner insulation in the Slot Liner field.
9. Enter the thickness of the wedge insulation in the Wedge Thickness field.
10. Enter the thickness of the insulation layer in the Layer Insulation field.
11. Enter the limited slot fill factor for the wire design in the Limited Fill Factor field. The slot fill
factor is the ratio between the cross-sectional area of all conductors in one slot and the entire
slot area.
12. Click OK to close the Properties window.
To access the stator winding data, double-click the Machine-Stator-Winding entry in the project
tree.
The Stator Winding Data Properties window contains the following fields:
Winding tab Winding Layers The number of winding layers.
Winding Type The type of stator winding. Click the
button to open the Winding Type
window and choose from Whole
Coiled, Half Coiled, and Editor.
area.
For a three-phase induction motor, you may want to specify a different number of conductors for
each stator slot. The Winding Editor makes this possible by enabling you to specify the number of
turns for each coil. To enable the Winding Editor, you must have set the Winding Property for the
Winding Type to Editor.
To specify the number of turns for each coil:
1. Click Machine>Winding>Edit Layout.
The Winding Editor window appears.
2. In the table in the upper left, set which phase you want for each coil and which slot is the “in”
and “out” slot for the current in each coil.
3. If you are working on a quarter or half model, you may want to specify a multiplier by clicking
the Periodic Multiplier check box and specifying a value.
4. Select or deselect the Constant Turns or Constant Pitch check boxes, depending on
whether you want to be able to change these setting in the table above. When these options
are selected, you cannot change the turns or pitch.
5. When you are satisfied with the coil settings, click OK to close the Winding Editor window.
Use the Gauge option if you have a conductor that is made up different size wires.
To define different size wires:
1. In the Wire Size window, select MIXED from the Gauge pull-down menu.
2. Select either Round or Rectangular as the Wire Type.
3. Enter the appropriate wire data in the table:
By option, you can add a vent to a three-phase induction motor. To add a vent to stator in a three-
phase induction motor.
1. Select the stator icon in the project tree.
2. Right-click to display the pop-up menu and select Insert Vent.
The vent icon appears in the project tree under the stator.
To remove a vent to stator in a three-phase induction motor.
1. Select the stator icon in the project tree.
2. Right-click to display the pop-up menu and select Remove Vent.
The vent icon disappears in the project tree under the stator.
The Vent data for the stator includes the following fields.
The rotor consists of copper bars in which current is induced by the magnetic fields produced by the
stator windings. In the project tree, double-click Machine-Rotor, Machine-Rotor-Slot, and
Machine-Rotor-Winding to define the rotor slots and vents.
To define general stator data:
1. To open the Rotor Data Properties window, double-click the Machine>Rotor entry in the
project tree on the desktop. (You can also enter values in the Properties section of the
desktop without opening a separate window.)
2. Enter the stacking factor for the rotor core in the Stacking Factor field.
3. Enter the Number of Slots in the rotor.
4. Select the Slot Type:
a. Click the button for the Slot Type.
The Select Slot Type window appears.
b. Select a slot type (available types include 1 through 4).
Note When you place the mouse cursor over the slot type, a schematic of the selected
type appears, displaying the slot dimension variables.
c. Click OK to close the Select Slot Type window and return to the Properties window.
5. Enter the outer diameter of the rotor in the Outer Diameter field.
6. Enter the inner diameter of the rotor in the Inner Diameter field.
7. Enter the length of the rotor core in the Length field.
8. Select a Steel Type for the rotor core:
a. Click the button for Steel Type.
The Select Definition window appears.
b. Select a steel type from the list, or define a new steel type.
c. Click OK to close the Select Definition window and return to the Properties window.
9. Enter the Skew Width, measured in rotor slot pitch. This value defines by how much the rotor
bars are skewed.
10. Optionally, select Cast Rotor to allow the conductor to fill all the space available in the slot.
Otherwise, RMxprt assumes the slot wedge that fixes the bars is filled with insulator material in
a 2D/3D geometry model.
11. Optionally, select Half Slot to draw only half of the rotor slots.
12. Optionally, select Double Cage to specify the winding as a double-squirrel-cage winding.
If you select Double Cage, another line appears in the properties to let you specify the Bottom
Slot type.
a. Click on the Custom button on the Double Cage row. This displays the Select Slot Type
window.
The Select Slot Type window appears.
b. Select a slot type (available types include 1 through 4).
Note When you place the mouse cursor over the slot type, a schematic of the selected
To access the general rotor data, double-click the Machine>Rotor entry in the project tree.
The Rotor Data Properties window contains the following fields:
Stacking The stacking factor of the rotor core.
Factor
Number of The number of slots the rotor core contains.
Slots
Slot Type The type of slots in the rotor core. Click the button to open the Select Slot Type
window.
Outer The outer diameter of the rotor core.
Diameter
Inner The inner diameter of the rotor core.
Diameter
Length The length of the rotor core.
Steel Type The steel type of the rotor core. Click the button to open the Select Definition
window.
Skew Width The skew width measured in slot number.
Cast Rotor Select or clear this to specify whether the rotor squirrel-cage winding is cast or
not.
Half Slot Select this to specify a half-shaped unsymmetrical slot.
Double Cage Select this to specify the winding as double-squirrel-cage.
To access the rotor slot data, double-click the Machine-Rotor-Slot entry in the project tree.
The Rotor Slot Data Properties window contains the following fields:
Hs0 A slot dimension (see the diagram shown in the modeling window when Machine-Rotor-
Slot is selected).
Hs01 A slot dimension (see the diagram shown in the modeling window when Machine-Rotor-
Slot is selected).
Hs2 A slot dimension (see the diagram shown in the modeling window when Machine-Rotor-
Slot is selected).
Bs0 A slot dimension (see the diagram shown in the modeling window when Machine-Rotor-
Slot is selected).
Bs1 A slot dimension (see the diagram shown in the modeling window when Machine-Rotor-
Slot is selected).
Bs2 A slot dimension (see the diagram shown in the modeling window when Machine-Rotor-
Slot is selected).
Rs A slot dimension. (see the diagram shown in the modeling window when Machine-Stator-
Slot is selected). Rs is added when the slot type is 3 or 4.
To access the rotor winding data, double-click the Machine-Rotor-Winding entry in the project
tree.
The Rotor Winding Data Properties window contains the following fields:
Bar Conductor The type of bar conductor used in the winding. Click the button to open the
Type Select Definition window.
End Length The length of the single-side end of the extended bar.
End Ring Width The width of one side of the end rings in the axial direction. The end ring
connects the bars of the rotor to one another.
End Ring Height The height of the end rings in the radian direction. The end ring connects the
bars of the rotor to one another.
End Ring The type of end ring conductor used in the winding. Click the button to open
Conductor Type the Select Definition window.
To access the shaft data, double-click the Machine>Shaft entry in the project tree.
The Shaft Data Properties window contains the following fields:
Magnetic Select or clear this check box to indicate whether or not the shaft is made of
Shaft magnetic material.
greater than the Synchronous Speed, the machine operates as a generator. For an induction
generator, the rated performance will be calculated at the input Rated Speed with the three-
phase windings connecting to infite bus.
7. Enter the temperature at which the system functions in the Operating Temperature field.
8. Click the Three-Phase Induction Motor tab.
9. Enter the electrical line frequency in the Frequency field, and select the units.
10. Select the Winding Connection from the following options:
l Wye (Y)
l Delta
Related Topics
To access the solution data, right-click Analysis in the project tree, and click Add Solution Setup.
The Solution Setup window contains the following fields:
Operation On the General tab. The operation type is automatically set to Motor for this
Type machine type.
Load Type On the General tab. Select from Const Speed, Const Power, Const Torque,
Linear Torque, and Fan Load. The default is Const Power.
Rated On the General tab. Type a value for the rated output voltage, and select the units.
Output
Power
Rated On the General tab. Type a value for the rated voltage, and select the units.
Voltage
Rated Speed On the General tab. Type a value for the rated speed, and select the units.
Operating On the General tab. Type a value for the operating temperature, and select the
Temperature units.
Frequency On the Three-Phase Induction Motor tab. Type a value for the frequency, and
select the units.
Winding On the Three-Phase Induction Motor tab. Select from Wye or Delta.
Connection
Related Topics
l Stator data, such as the slot types, diameter, and wire dimensions.
l Rotor data, such as the slot dimensions, skew width, and ventage holes.
The construction of a single-phase induction motor is structurally similar to the poly-phase squirrel-
cage induction motors. The primary difference is that the stator windings, which consist of a main
winding and an auxiliary winding, have axes of these that are displaced 90 electrical degrees in
space. To produce a starting torque, the currents in the two windings must be out of phase. Usually a
capacitor is connected in series with the auxiliary winding so that the auxiliary winding current is
forced to lead the main winding current by about 90 electrical degrees. Two parallel capacitors can
also be used: one for starting, and one for running, so that both a starting and running performance
are obtained.
An algorithm called symmetric component method is applied to analyze single-phase induction
motors (IndM1). Both voltages and currents of the main-phase and auxiliary-phase windings are
decomposed to positive- and negative-sequence components. The equivalent circuits for main-
phase positive-sequence components, auxiliary-phase positive-sequence components, main-phase
negative-sequence components, and auxiliary-phase negative-sequence components are shown in
(a), (b), (c), and (d) of Figure 3, respectively.
In the figures, R1m, X1m, R1a, X1a, R2, X2, and Xm are main-phase stator resistance, main-phase
stator leakage reactance, auxiliary-phase stator resistance, auxiliary-phase stator leakage
reactance, rotor resistance, rotor leakage reactance, and magnetizing reactance, respectively. XC is
the reactance of the capacitor connected in series with the auxiliary winding, and the coefficient k is
the ratio of effective turns of the auxiliary winding to that of the main winding. R2, X2, and Xm have
been referred to the main winding. The equivalent impedance of the four circuits is Zm1, Za1, Zm2,
and Za2, as shown in the figures.
According to the symmetric component method, the positive and negative components of auxiliary-
phase currents can be expressed in the form of a phasor as the following:
Ia1 = (j / k)Im1
Ia2 = ((j / k)Im2
Because the main winding and the auxiliary winding have the same applied terminal voltage U1, the
voltage equations for both windings become the following:
U1 = Um1 + Um2 = Im1Zm1 + Im2Zm2
U1 = Ua1 + Ua2 = Ia1Za1 + Ia2Za2 = (j / k)(Im1Za1 - Im2Za2)
The positive and negative components of main-phase current are calculated by the following:
Im1 = U1(Za2 - jkZm2) / (Zm1Za2 + Zm2Za1)
Im2 = U1(Za1 + jkZm1) / (Zm1Za2 + Zm2Za1)
The total input current is:
I1 = Im + Ia = (Im1 + Im2) + (Ia1 + Ia2)
Based on these two components of main-phase current, all current components shown in Figure 3
can be obtained by simple computation.
Then the total input current is:
I1 = Im + Ia = (Im1 + Im2) + (Ia1 + Ia2)
The positive- and negative-sequence air-gap power can be computed in the following way:
Pm1 = 2 * Irm1^2 * R2 / s
Pm2 = 2 * Irm2^2 * R2 / (2 - s)
The total air-gap power is:
Pm = Pm1 - Pm2
Tm, T2, P2, P1, and eff are computed in the same way as for three-phase induction motors.
The power factor is derived from:
PF = P1 / (U1 * I1)
The general procedure for structurally defining a single-phase induction motor is as follows:
1. Insert a single-phase induction motor design in an existing or newly created project.
2. Double-click the Machine entry in the project tree to define the general data.
3. Double-click the Machine-Stator entry in the project tree to define the stator geometry.
4. Double-click the Machine-Stator-Slot entry in the project tree to define the stator slot
dimensions.
5. Double-click the Machine-Stator-Winding entry in the project tree to define the stator
windings and conductors.
6. Double-click the Machine-Rotor entry in the project tree to define the rotor geometry.
7. Double-click the Machine-Rotor-Slot entry in the project tree to define the rotor slot
dimensions.
8. Double-click the Machine-Rotor-Winding entry in the project tree to define the rotor
conductor, ventage hole dimensions, and skew.
9. Double-click the Machine-Shaft entry in the project tree to define the magnetism of the shaft.
10. Optionally, for Inner Rotor machines only, right-click the Machine entry in the project tree and
click Insert Housing to add a machine housing.
11. Right-click Analysis in the project tree, and click Add Solution Setup to define the solution
data.
12. Choose File>Save to save the project.
13. Choose RMxprt>Analyze to analyze the design.
Note When you place the cursor over an entry field in the data windows, a brief
description of that field appears in the status bar at the bottom of the RMxprt
window.
Once the design is analyzed, the model can be imported into the Maxwell 2D Modeler, or can be
used to create a new Maxwell 2D project, and a new Maxwell 3D design.
Please refer to the A Capacitor-Run Single-Phase Induction Motor Problem application note, on the
technical support page of the ANSYS web site, for a specific example of a single-phase induction
motor problem.
Use the General Data Properties window to define the basic parameters of the induction motor,
such as the number of poles, frictional loss, and operation mode.
To define the general data:
1. To open the General Data Properties window, double-click the Machine entry in the project
tree on the desktop. (You can also enter values in the Properties section of the desktop
without opening a separate window.)
2. Enter the number of poles for the machine in the Number of Poles field. This value is the total
number of poles in the stator (or the number of pole pairs multiplied by two).
3. Select one of the following for the Rotor Position:
l Inner Rotor
l Outer Rotor
4. Enter the energy loss due to friction at the given speed in the Frictional Loss field.
5. Enter the wind loss due to air resistance measured at the reference speed in the Wind Loss
field.
6. Enter the given speed in the Reference Speed field.
7. Select the Operation Mode:
a. Click the button.
The Select Operation Mode window appears.
b. Select from one of the following:
C-Run Capacitance-run mode. The capacitor is in series with the auxiliary
winding. In the Capacitor run mode, the capacitor will be designed (if
the auto-design mode is selected) to minimize the backward
magnetomotive force.
C-Start Capacitance-start mode. The auxiliary winding is in series with the
capacitor and is disconnected when the rotor reaches the switching
speed.
C-R&S Capacitance-run and start mode. Two capacitors are in series with
the auxiliary winding; one for starting, one for running.
R-Start Resistor-start mode. The auxiliary winding is disconnected when the
rotor reaches the switching speed.
c. Click OK to close the Select Operation Mode window and return to the Properties
window.
8. Enter values in the following capacitance, resistance, and switching speed fields:
Run Capacitance Available for C-Run, C-R&S
Run Resistance Available for C-Run, C-R&S
Start Capacitance Available for C-Start, C-R&S
Start Resistance Available for C-Start, C-R&S
Switching Speed Available for C-Start, C-R&S, R-
Start
9. If the start winding needs to be optimized, select the Objective Type from the following three
options:
l (Tst/Ist)max. Accept the defaults. This is the ratio of the maximum starting torque to the
l (Ist)min (minimum starting current). Enter the given start torque ratio.
Note The start-winding optimization goal is disabled for the C-Run operation mode.
In capacitor-run mode, the capacitor is designed to minimize the backward
magnetomotive force. For other modes, if the auto-design function is active, the
capacitor and the resistance are designed according to the start goal, selected
from the following:
l The maximum value of (Starting Torque/Starting Current).
To access the general data, double-click the Machine entry in the project tree.
The General Data Properties window for a three-phase induction motor contains the following
fields:
Machine The machine type you selected when inserting a new RMxprt design (Single Phase
Type Induction Motor).
Number of The number of poles the machine contains.
Poles
Rotor Select whether the rotor is an Inner Rotor or Outer Rotor.
Position
Frictional The frictional energy loss (due to friction) measured at the reference speed.
Loss
Wind Loss The wind loss (due to air resistance) measured at the reference speed.
Reference The given speed of reference.
Speed
Operation Click the button to select from the following four modes: C-Run, C-Start, C-R&S,
number in RMxprt.
The stator is the outer lamination stack where the three-phase windings reside. In the project tree,
double-click Machine-Stator, Machine-Stator-Slot, and Machine-Stator-Winding to define the
physical dimensions, slot data, wires, and conductors for the stator.
To define general stator data:
1. To open the Stator Data Properties window, double-click the Machine>Stator entry in the
project tree on the desktop. (You can also enter values in the Properties section of the
desktop without opening a separate window.)
2. Enter the Outer Diameter of the stator.
3. Enter the Inner Diameter of the stator.
4. Enter the length of the stator core in the Length field.
5. Enter the stacking factor for the stator core in the Stacking Factor field.
6. Select a Steel Type for the stator core:
a. Click the button for Steel Type.
The Select Definition window appears.
b. Select a steel type from the list, or define a new steel type.
c. Click OK to close the Select Definition window and return to the Properties window.
7. Enter the Number of Slots in the stator.
8. Select the Slot Type:
a. Click the button for the Slot Type.
The Select Slot Type window appears.
b. Select a slot type (available types include 1 through 4).
Note When you place the mouse cursor over the slot type, a schematic of the selected
type appears, displaying the slot dimension variables.
c. Click OK to close the Select Slot Type window and return to the Properties window.
9. Enter the overall width of the stator outer profile in the Overall Width field.
10. Click OK to close the Properties window.
To access the general stator data, double-click the Machine>Stator entry in the project tree.
The Stator Data Properties window contains the following fields:
Outer The outer diameter of the stator core.
Diameter
Inner The inner diameter of the stator core.
Diameter
Length The length of the stator core.
Stacking The stacking factor of the stator core.
Factor
Steel Type The steel type of the stator core. Click the button to open the Select Definition
window.
Number of The number of slots the stator core contains.
Slots
Slot Type The type of slots in the stator core. Click the button to open the Select Slot Type
window.
Overall Width The overall width of the stator outer profile.
Use the Stator1 window to define the physical dimensions of the stator slots.
To define the stator slots:
1. To open the Stator Slot Data Properties window, double-click the Machine-Stator-Slot
entry in the project tree on the desktop. (You can also enter values in the Properties section
of the desktop without opening a separate window.)
2. Optionally, to automatically design the dimensions of slots Hs2, Bs1, and Bs2, select the
Auto Design check box.
3. Optionally, to design dimensions of slots Bs1 and Bs2 based on the stator tooth width, select
the Parallel Tooth check box, and enter a value in the Tooth Width field.
4. Enter the available slot dimensions.
Hs0 Always available.
Hs1 Always available.
Hs2 Available only when Auto Design is cleared. When Auto Design is selected, this slot
dimension is determined automatically.
Bs0 Always available.
Bs1 Available only when Auto Design and Parallel Tooth are both cleared. When Auto
Design is selected, this slot dimension is determined automatically. When Parallel
Tooth is selected, this slot dimension is determined based on the value entered in the
Tooth Width field.
Bs2 Available only when Auto Design and Parallel Tooth are both cleared. When Auto
Design is selected, this slot dimension is determined automatically. When Parallel
Tooth is selected, this slot dimension is determined based on the value entered in the
Tooth Width field.
Rs Rs is added when the slot type is 3 or 4.
5. Click OK to close the Properties window.
Parallel The number of parallel branches in the series winding.
Branches
Number of The number of wires per conductor in the series winding (0 for auto-
Strands design).
Wire Wrap The thickness of the double-sided wire wrap (0 for auto-pickup from the
wire library).
Wire Size The wire diameter (0 for auto-design).
To access the stator slot data, double-click the Machine-Stator-Slot entry in the project tree.
The Stator Slot Data Properties window contains the following fields:
Auto Select or clear this to enable or disable auto-design of slots Hs2, Bs1, and Bs2. When
Design this check box is selected, only two other fields appear in the window: Hs0 and Bs0.
Parallel Select this to design Bs1 and Bs2 based on the tooth width. When this check box is
Tooth selected, the Bs1 and Bs2 fields are removed, and the Tooth Width field is added.
Tooth The tooth width for the parallel tooth, on which Bs1 and Bs2 are designed.
Width
Hs0 A slot dimension (see the diagram shown in the modeling window when Machine-
Stator-Slot is selected).
Hs1 A slot dimension (see the diagram shown in the modeling window when Machine-
Stator-Slot is selected).
Hs2 A slot dimension (see the diagram shown in the modeling window when Machine-
Stator-Slot is selected).
Bs0 A slot dimension (see the diagram shown in the modeling window when Machine-
Stator-Slot is selected).
Bs1 A slot dimension (see the diagram shown in the modeling window when Machine-
Stator-Slot is selected).
Bs2 A slot dimension (see the diagram shown in the modeling window when Machine-
Stator-Slot is selected).
Rs A slot dimension. (see the diagram shown in the modeling window when Machine-
Stator-Slot is selected). Rs is added when the slot type is 3 or 4.
4. Enter the thickness of the wedge insulation in the Wedge Thickness field.
5. Enter the limited slot fill factor for the wire design in the Limited Fill Factor field. The slot fill
factor is the ratio between the cross-sectional area of all conductors in one slot and the entire
slot area.
6. Select or clear the Include Series Winding check box. This option sets whether or not to
include the series winding in the speed adjustment. When this option is selected, a third tab,
Series (C), appears in the Properties window.
7. Enter the number of layers in the Winding Layers field.
8. Enter the number of slots in the Coil Pitch field.
9. Select a Winding Type:
a. Click the button for Winding Type.
The Winding Type window appears.
b. Select from one of the following types of winding:
l Lap
l Sin_1
l Sin_2
l Editor
When you place the mouse cursor over a winding button, an outline of the selected
winding appears. The following table describes the four types of windings that are
possible:
A user-defined one or two-layer winding arrangement, determined
by your Winding Layers selection. Enables the Winding Editor ,
Editor
where you can specify a different winding arrangement for each
slot.
90 deg phase belt 2-layer coil for both single and double layer
Lap
Sin_2
c. Once you have clicked a button to select a winding, click OK to close the Winding Type
window and return to the Properties window.
10. Click the Main (A) tab.
a. Enter the end length adjustment of the main stator coil in the End Extension field. The
end adjustment is the distance one end of the conductor extends vertically beyond the
end of the stator.
b. Enter the number of conductors per layer of main winding in the Conductors per
Layer field.
c. Enter the number of parallel branches in the main stator winding in the Parallel
Branches field.
d. Enter the number of wires per conductor in the Number of Strands field. Enter 0 to
have RMxprt auto-design the value.
e. Enter the thickness of the double-sided wire wrap in the Wire Wrap field. Enter 0 to
automatically obtain this value from the wire library.
f. To select the Wire Size: Click the button for Wire Size.
The Wire Size window appears.
g. Select a value from the Wire Diameter pull-down list.
h. Select a wire gauge from the Gauge pull-down menu. You can select from the following
options:
f. To select the Wire Size: Click the button for Wire Size.
The Wire Size window appears.
g. Select a value from the Wire Diameter pull-down list.
h. Select a wire gauge from the Gauge pull-down menu. You can select from the following
options:
You can select a specific gauge number. When you select a
<number> gauge number, the Wire Diameter field is automatically
updated.
This option allows you to manually enter the Wire Diameter.
USER This is useful when you want to enter a diameter that does
not correspond to a particular wire gauge.
This option sets the Wire Diameter to zero, and RMxprt
automatically calculates the optimal value. The diameter
AUTO
information is then written to the output file when you analyze
the design.
This option allows you to define a conductor that is made of
different size wires. For example, a single conductor may
MIXED
consist of 5 wires, 3 wires with a diameter of 0.21mm and 2
with a diameter of 0.13mm.
The gauge number is based on AWG settings. You can create your own wire table
using Machine>Wire, and then you can select this wire table using the
Tools>Options>Machine Options command.
i. When you are done setting the wire size, click OK to close the Wire Size window and
return to the Properties window.
12. Click OK to close the Properties window.
To access the stator winding data, double-click the Machine-Stator-Winding entry in the project
tree.
The Stator Winding Data Properties window contains the following fields:
Winding Slot Liner The thickness of the slot liner.
tab
Wedge The thickness of the wedge insulation
Thickness
Limited Fill The limited slot fill factor for the wire design. The slot fill factor is the ratio
Factor between the cross-sectional area of all conductors in one slot and the
entire slot area.
Winding The number of winding layers. Not visible if the Winding Type is either
Layers Sin_1 or Sin_2.
Coil Pitch The coil pitch measured in number of slots. Not visible if the Winding
Type is either Sin_1 or Sin_2.
Winding The type of stator winding for the main phase. Click the button to open
Type the Winding Type window and choose from Lap, Sin_1, Sin_2,and
Editor.
Main (A) End The end length adjustment of the stator coils.
Extension
Conductors The number of conductors per layer in the main winding.
per Layer
Parallel The number of parallel branches in the main stator winding.
Branches
Number of The number of wires per conductor (0 for auto-design).
Strands
Wire Wrap The thickness of the double-sided wire wrap (0 for auto-pickup from the
wire library).
Wire Size The wire diameter (0 for auto-design).
Aux (B) End The end length adjustment of the auxiliary winding.
Extension
Conductors The number of conductors per layer in the auxiliary winding.
per Layer
Parallel The number of parallel branches in the auxiliary stator winding.
Branches
Number of The number of wires per conductor in the auxiliary winding (0 for auto-
Strands design).
Wire Wrap The thickness of the double-sided wire wrap (0 for auto-pickup from the
wire library).
Wire Size The wire diameter (0 for auto-design).
For a single-phase induction motor, you may want to specify a different number of conductors for
each stator slot. The Winding Editor makes this possible by enabling you to specify the number of
turns for each coil.
To specify the number of turns for each coil:
1. Click Machine>Winding>Edit Layout.
The Winding Editor window appears.
2. In the table in the upper left, set which phase you want for each coil and which slot is the “in”
and “out” slot for the current in each coil.
3. If you are working on a quarter or half model, you may want to specify a multiplier by clicking
the Periodic Multiplier check box and specifying a value.
4. Select or deselect the Constant Turns or Constant Pitch check boxes, depending on
whether you want to be able to change these setting in the table above. When these options
are selected, you cannot change the turns or pitch.
5. When you are satisfied with the coil settings, click OK to close the Winding Editor window.
Use the Gauge option if you have a conductor that is made up different size wires.
To define different size wires:
1. In the Wire Size window, select MIXED from the Gauge pull-down menu.
2. Select either Round or Rectangular as the Wire Type.
3. Enter the appropriate wire data in the table:
l For a round wire:
The rotor consists of copper bars in which current is induced from the stator windings. The rotor
rotates at a slightly slower speed than the stator electromagnetic field. In the project tree, double-
click Machine>Rotor, Machine-Rotor-Slot, and Machine-Rotor-Winding to define the physical
dimensions, slot data, wires, and conductors for the rotor.
To define the general rotor data:
1. To open the Rotor Properties window, double-click the Machine>Rotor entry in the project
tree on the desktop. (You can also enter values in the Properties section of the desktop
without opening a separate window.)
2. Enter the stacking factor for the rotor core in the Stacking Factor field.
3. Enter the Number of Slots in the rotor.
4. Select the Slot Type:
a. Click the button for the Slot Type.
The Select Slot Type window appears.
b. Select a slot type (available types include 1 through 4).
Note When you place the mouse cursor over the slot type, a schematic of the selected
type appears, displaying the slot dimension variables.
c. Click OK to close the Select Slot Type window and return to the Properties window.
5. Enter the outer diameter of the rotor in the Outer Diameter field.
6. Enter the inner diameter of the rotor in the Inner Diameter field.
7. Enter the length of the rotor core in the Length field.
8. Select a Steel Type for the rotor core:
a. Click the button for Steel Type.
The Select Definition window appears.
b. Select a steel type from the list, or define a new steel type.
c. Click OK to close the Select Definition window and return to the Properties window.
9. Enter the Skew Width, measured in rotor slot pitch. This value defines by how much the rotor
bars are skewed.
10. Optionally, select Cast Rotor to allow the conductor to fill all the space available in the slot.
Otherwise, RMxprt assumes the slot wedge that fixes the bars is filled with insulator material in
a 3D/3D geometry model.
11. Click OK to close the Properties window.
To access the general rotor data, double-click the Machine>Rotor entry in the project tree.
The Rotor Data Properties window contains the following fields:
Stacking The stacking factor of the rotor core.
Factor
Number of The number of slots the rotor core contains.
Slots
Slot Type The type of slots in the rotor core. Click the button to open the Select Slot Type
window.
Outer The outer diameter of the rotor core.
Diameter
Inner The inner diameter of the rotor core.
Diameter
Length The length of the rotor core.
Steel Type The steel type of the rotor core. Click the button to open the Select Definition
window.
Skew Width The skew width measured in slot number.
Cast Rotor Select or clear this to specify whether the rotor squirrel-cage winding is cast or
not.
To access the rotor slot data, double-click the Machine-Rotor-Slot entry in the project tree.
The Rotor Slot Data Properties window contains the following fields:
Hs0 A slot dimension (see the diagram shown in the modeling window when Machine-Rotor-
Slot is selected).
Hs01 A slot dimension (see the diagram shown in the modeling window when Machine-Rotor-
Slot is selected).
Hs1 A slot dimension (see the diagram shown in the modeling window when Machine-Rotor-
Slot is selected).
Hs2 A slot dimension (see the diagram shown in the modeling window when Machine-Rotor-
Slot is selected).
Bs0 A slot dimension (see the diagram shown in the modeling window when Machine-Rotor-
Slot is selected).
Bs1 A slot dimension (see the diagram shown in the modeling window when Machine-Rotor-
Slot is selected).
Bs2 A slot dimension (see the diagram shown in the modeling window when Machine-Rotor-
Slot is selected).
Rs A slot dimension. (see the diagram shown in the modeling window when Machine-Stator-
Slot is selected). Rs is added when the slot type is 3 or 4.
To access the rotor winding data, double-click the Machine-Rotor-Winding entry in the project
tree.
The Rotor Winding Data Properties window contains the following fields:
Bar Conductor The type of bar conductor used in the winding. Click the button to open the
Type Select Definition window.
End Length The length of the single-side end of the extended bar.
End Ring Width The width of one side of the end rings in the axial direction.
End Ring Height The height of the end rings in the radian direction.
End Ring The type of end ring conductor used in the winding. Click the button to open
Conductor Type the Select Definition window.
1. To open the Shaft Data Properties window, double-click the Machine>Shaft entry in the
project tree on the desktop. (You can also enter values in the Properties section of the
desktop without opening a separate window.)
2. Select or clear the Magnetic Shaft check box to specify whether or not the shaft is to be
made of magnetic material.
3. Click OK to close the Properties window.
To access the shaft data, double-click the Machine>Shaft entry in the project tree.
The Shaft Data Properties window contains the following fields:
Magnetic Select or clear this check box to indicate whether or not the shaft is made of
Shaft magnetic material.
By option, you can add a vent to a single-phase induction motor. To add a vent:.
1. Select the rotor icon in the project tree.
2. Right-click to display the pop-up menu and select Insert Vent.
The vent icon appears in the project tree under the rotor.
To remove a vent from a rotor in a three-phase induction motor.
1. Select the rotor icon in the project tree.
2. Right-click to display the pop-up menu and select Remove Vent.
The vent icon disappears in the project tree under the rotor.
The Vent data for the stator includes the following fields.
1. To open the Solution Setup window, right-click Analysis in the project tree, and click Add
Solution Setup.
2. Click the General tab. The Operation Type is automatically set to Motor for this machine
type.
3. Select the Load Type used in the motor from the following options:
Const The speed remains constant in the motor.
Speed
Const The output power remains constant in the motor.
Power
Const The torque remains constant regardless of the speed. In this case, Tload = Trated,
Torque given by the output power divided by the given rated speed.
Linear The torque increases linearly with speed. In this case, Tload = Trated * (n/nrated)
Torque where Trated is given by the output power divided by the given rated speed.
Fan The load varies nonlinearly with speed. In this case, Tload = Trated * (n/nrated)2
Load where Trated is given by the output power divided by the given rated speed.
4. Enter the output power developed at the shaft of the motor in the Rated Output Power field.
5. Enter the RMS line-to-line voltage in the Rated Voltage field.
6. Enter the desired output speed of the motor at the load point in the Rated Speed field.
7. Enter the temperature at which the system functions in the Operating Temperature field.
8. Click the Single-Phase Induction Motor tab.
9. Enter the electrical line frequency in the Frequency field, and select the units.
10. Click OK to close the Solution Setup window.
Related Topics
To access the solution data, right-click Analysis in the project tree, and click Add Solution Setup.
The Solution Setup window contains the following fields:
Operation On the General tab. The operation type is automatically set to Motor for this
Type machine type.
Load Type On the General tab. Select from Const Speed, Const Power, Const Torque,
Linear Torque, and Fan Load. The default is Const Power.
Rated On the General tab. Type a value for the rated output voltage, and select the units.
Output
Power
Rated On the General tab. Type a value for the rated voltage, and select the units.
Voltage
Rated Speed On the General tab. Type a value for the rated speed, and select the units.
Operating On the General tab. Type a value for the operating temperature, and select the
Temperature units.
Frequency On the Single-Phase Induction Motor tab. Type a value for the frequency, and
select the units.
Related Topics
l Circuit data, such as trigger pulse width, transistor drop, and control circuit information.
l Stator data, such as the diameter, slot dimensions, and skew width of the stator.
l Stator Winding
l Rotor pole data, such as the associated permanent-magnet dimensions, air gap, and stacking
factor.
l Solution data, such as rated output voltage and frequency.
In this case, the performance of the machine can be analyzed in the frequency domain based on the
phasor diagrams, as shown in Figure 6.1 for the generators and Figure 6.2 for the motors.
In the figures, R1 and X1 are the resistance and the leakage reactance of the armature winding, Xad
and Xaq are the d-axis armature reactance and the q-axis armature reactance, respectively. In the
phasor diagram, Xad is a linearized nonlinear parameter, and Xaq is a linear parameter. The d-axis
synchronous reactance Xd and q-axis synchronous reactance Xaq are calculated directly from
Let ? denote the power angle for a generator (the angle that U lags E0), or the torque angle for a
motor (the angle that E0 lags U), then we have
where the plus sign + is for the motor and the minus sign - is for the generator.
Solving for Id and Iq yields
where the plus sign + is for the motor and the minus sign - is for the generator.
where the plus sign + is for the motor and the minus sign - is for the generator.
For the motor operation, the input electric power is
where Pfw, PCua, and PFe denote the frictional and wind, the armature copper and the iron-core
losses, respectively.
The output mechanical torque is
where Pfw, PCua, and PFe denote the frictional and wind, the armature copper and the iron-core
losses, respectively.
The input mechanical torque is
In this case, this adjustable-speed synchronous machine (ASSM) operates as a motor, and the
analysis approach is similar to that of a brushless DC (BLDC) motor. The stator poly-phase
armature winding is connected to a DC power supply through a DC to AC inverter to produce the
rotational magnetic field in the air-gap. The main difference between ASSM and BLDC motor is: in
BLDC motor, trigger time exactly depends on the rotor position; but in ASSM, the trigger time is
independent of the rotor position. If the mechanical load of a BLDC motor increases, the rotor
speed and the induced voltage decreases, causing the armature current and torque increase to
balance the increased mechanical load. However, for an ASSM, if the mechanical load increases,
the rotor speed decreases temporarily, which causes the torque angle (the same as lead angle of
trigger for a BLDC motor) increase and then torque increase to retain the synchronous speed.
Therefore, the speed of a BLDC motor varies with input voltage and mechanical load, while the
speed of an ASSM does not. The speed of an ASSM can be changed by adjusting the frequency of
the controlling signal, which explains why it is called Adjustable-Speed Permanent-Magnet
Synchronous Machine.
Using the time-domain mathematical model to analyze the characteristics of the electric machine,
Park's voltage equation in the matrix form is as follows
where R1 is the armature winding resistance, Ld, Lq and L0 are the d-, the q- and the 0-axis
inductances respectively, is the revolution speed in electric radians per second, the differential
operator is
The coordinate transformation equations for the terminal voltage, the induced emf and the armature
winding current are
The transformation matrices for the two-, the three- and the four-phase systems are C2, C3 and C4,
respectively, as follows
where
The input electric power is obtained from the voltage and the current as:
where Pfw, PCua, Pt and PFe denote the frictional and wind, the armature copper, the switching and
the iron-core losses, respectively.
The output mechanical torque is
10. Optionally, right-click the Machine entry in the project tree and click Insert Housing to add a
machine housing.
11. Right-click Analysis in the project tree, and click Add Solution Setup to define the solution
data.
12. Choose File>Save to save the project.
13. Choose RMxprt>Analyze to analyze the design.
Note When you place the cursor over an entry field in the data windows, a brief
description of that field appears in the status bar at the bottom of the RMxprt
window.
Once analyzed, the model can be viewed in the Maxwell 2D Modeler, or it can be used to create a
new Maxwell 2D project, and a new Maxwell 3D design.
Use the General window to define the basic parameters of the motor, such as the motor’s rated
output power, rated voltage, losses, and circuit types.
To define the general data:
1. To open the General Data Properties window, double-click the Machine entry in the project
tree on the desktop. (You can also enter values in the Properties section of the desktop
without opening a separate window.)
2. Enter the number of poles for the machine in the Number of Poles field. This value is the total
number of poles in the stator (or the number of pole pairs multiplied by two).
3. Enter the energy loss due to friction at the given speed in the Frictional Loss field.
4. Enter the wind loss due to air resistance measured at the reference speed in the Windage
Loss field.
5. Enter the given speed in the Reference Speed field.
6. Select one of the following from the Control Type pull-down list:
l DC: Switched DC voltage at the given input frequency.
l PWM: Pulse width modulation. When you select this source type, you must enter the
following values in the Circuit Data Properties window: Modulation Index (the ratio of
the sine wave amplitude to the triangular amplitude) and Carrier Frequency Times (the
ratio of the triangular frequency to the sine wave frequency).
l AC: An AC excitation.
To access the general data, double-click the Machine entry in the project tree.
The General Data Properties window for a three-phase induction motor contains the following
fields:
Machine The machine type you selected when inserting a new RMxprt design (Adjust-
Type Speed Synchronous Machine).
Number of The number of poles the machine contains.
Poles
Rotor Select whether the rotor is an Inner Rotor or Outer Rotor.
Position
Frictional The frictional energy loss (due to friction) measured at the reference speed.
Loss
Windage The windage loss (due to air resistance) measured at the reference speed.
Loss
Reference The given speed of reference.
Speed
Control The way the circuit is controlled. Select from DC, PWM (pulse-width modulation),
Type or AC.
Circuit Type The drive circuit type. Click the button to open the Circuit Type window and select
from the following six types:
• Y3: Y-Type, 3-Phase
• L3: Loop-Type, 3-Phase
• S3: Star-Type, 3-Phase
• C2: Cross-Type, 2-Phase
• L4: Loop-Type, 4-Phase
• S4: Star-Type, 4-Phase
Use the Circuit Data Properties window to define the circuit properties for an adjustable-speed
synchronous machine.
Note No circuit data properties exist when AC is selected as the Control
Type.
1. To open the Circuit Data Properties window, double-click the Machine>Circuit entry in the
project tree on the desktop. (You can also enter values in the Properties section of the
desktop without opening a separate window.)
2. If you selected DC as the Control Type, enter the period from on-status to off-status of a
transistor, in electrical degrees, in the Trigger Pulse Width field.
3. Enter the voltage drop across one transistor when the transistor is turned on in the Transistor
Drop field. Refer to the figures of the different circuit types in step 2.
4. Enter the voltage drop of one diode in the discharge loop in the Diode Drop field. If you
selected a star-type circuit (S3 or S4) as the Circuit Type, enter the total discharge voltage in
this field.
5. If you selected PWM as the Control Type, then enter values in the following two fields:
l Modulation Index: The ratio of the sine-wave amplitude to the triangular amplitude. (PWM
circuits only.)
l Carrier Frequency Times: The ratio of the triangular frequency to the sine-wave
To access the Circuit Data Properties window, double-click the Machine>Circuit entry in the
project tree. No circuit data properties exist when AC is selected as the Control Type.
Trigger Pulse Width The period from on-status to off-status for a transistor, in electrical
degrees.
(DC circuits only.)
Transistor Drop The voltage drop across one transistor when the transistor is turned on.
Diode Drop The voltage drop across one diode in the discharge loop.
Modulation Index The ratio of the sine-wave amplitude to the triangular amplitude.
(PWM circuits only.)
Carrier Frequency The ratio of the triangular frequency to the sine-wave frequency.
Times (PWM circuits only.)
Use the Stator Properties windows to define the stator dimensions, slots, windings, and
conductors.
The stator is the outer lamination stack where the polyphase voltage windings reside.
To define the general stator data:
1. To open the Stator Data Properties window, double-click the Machine>Stator entry in the
project tree on the desktop. (You can also enter values in the Properties section of the
desktop without opening a separate window.)
2. Enter the Outer Diameter of the stator.
3. Enter the Inner Diameter of the stator.
4. Enter the length of the stator core in the Length field.
5. Enter the stacking factor for the stator core in the Stacking Factor field.
6. Select a Steel Type for the stator core:
To access the general stator data, double-click the Machine>Stator entry in the project tree.
The Stator Data Properties window contains the following fields:
Outer The outer diameter of the stator core.
Diameter
Inner The inner diameter of the stator core.
Diameter
Length The length of the stator core.
Stacking The stacking factor of the stator core.
Factor
Steel Type The steel type of the stator core. Click the button to open the Select Definition
window.
Number of The number of slots the stator core contains.
Slots
Slot Type The type of slots in the stator core. Click the button to open the Select Slot Type
window.
Skew Width The skew width measured in slot number.
To access the stator slot data, double-click the Machine-Stator-Slot entry in the project tree.
The Stator Slot Data Properties window contains the following fields:
Auto Select or clear this to enable or disable auto-design of slots Hs2, Bs1, and Bs2. When
Design this check box is selected, only two other fields appear in the window: Hs0 and Bs0.
Parallel Select this to design Bs1 and Bs2 based on the tooth width. When this check box is
Tooth selected, the Bs1 and Bs2 fields are removed, and the Tooth Width field is added.
Tooth The tooth width for the parallel tooth, on which Bs1 and Bs2 are designed.
Width
Hs0 A slot dimension (see the diagram shown in the modeling window when Machine-
Stator-Slot is selected).
Hs1 A slot dimension (see the diagram shown in the modeling window when Machine-
Stator-Slot is selected).
Hs2 A slot dimension (see the diagram shown in the modeling window when Machine-
Stator-Slot is selected).
Bs0 A slot dimension (see the diagram shown in the modeling window when Machine-
Stator-Slot is selected).
Bs1 A slot dimension (see the diagram shown in the modeling window when Machine-
Stator-Slot is selected).
Bs2 A slot dimension (see the diagram shown in the modeling window when Machine-
Stator-Slot is selected).
Rs A slot dimension. (see the diagram shown in the modeling window when Machine-
Stator-Slot is selected). Rs is added when the slot type is 3 or 4.
Defining the Stator Windings and Conductors for an Adjust-Speed Synchronous Machine
Whole Coiled
Coiled
A user-defined two-layer winding arrangement. When you select 20, the Winding Editor
Editor
opens, where you can specify a different winding arrangement for each slot.
A two-layer wave winding:
Whole
Coiled
The phase belt for this winding configuration is equal to 360/2m, where m is the phase
number.
Half Coiled A two-layer half-coiled winding:
20 A user-defined winding arrangement. When you select this type, enter the winding
arrangement, and choose OK.
21 A two-layer wave winding:
The phase belt for this winding configuration is equal to 360/2m, where m is the phase number.
22 A two-layer winding:
1. Select or enter the number of parallel branches in one phase of the winding in the Parallel
Branches field.
2. Enter the total number of conductors in each stator slot in the Conductors per Slot field. This
value is the number of turns per coil multiplied by the number of layers.
3. Enter the coil pitch, measured in number of slots, in the Coil Pitch field. The coil pitch is the
number of slots separating one winding. For example, if a coil starts in slot 1 and ends in slot 6,
it has a coil pitch of 5.
4. Enter the number of wires per conductor in the Number of Strands field. Enter 0 to have
RMxprt auto-design this value.
5. Enter the thickness of the double-sided wire wrap in the Wire Wrap field. Enter 0 to
automatically obtain this value from the wire library.
c. Select a wire gauge from the Gauge pull-down menu. You can select from the following
options:
< You can select a specific gauge number. When you select a gauge number,
number the Wire Diameter field is automatically updated.
>
This option allows you to manually enter the Wire Diameter. This is useful
USER when you want to enter a diameter that does not correspond to a particular
wire gauge.
This option sets the Wire Diameter to zero, and RMxprt automatically
AUTO calculates the optimal value. The diameter information is then written to the
output file when you analyze the design.
This option allows you to define a conductor that is made of different size wires.
MIXED For example, a single conductor may consist of 5 wires, 3 wires with a diameter
of 0.21mm and 2 with a diameter of 0.13mm.
The gauge number is based on AWG settings. You can create your own wire table using
Machine>Wire, and then you can select this wire table using the Tools>Options>Machine
Options command.
a. When you are done setting the wire size, click OK to close the Wire Size window and
return to the Properties window.
b. Click the End/Insulation tab.
c. Select or clear the Input Half-turn Length check box.
d. Do one of the following:
l If you selected Input Half-turn Length, then enter the half-turn length of the armature
coils in the End Adjustment field. The end adjustment is the distance one end of the
conductor extends vertically beyond the end of the stator.
5. Enter the inner radius of the base corner in the Base Inner Radius field.
6. Enter the inner diameter of the coil tip in the Tip Inner Diameter field.
7. Enter the distance between two stator coils in the End Clearance field.
8. Enter the thickness of the slot liner insulation in the Slot Liner field.
9. Enter the thickness of the wedge insulation in the Wedge Thickness field.
10. Enter the thickness of the insulation layer in the Layer Insulation field.
11. Enter the limited slot fill factor for the wire design in the Limited Fill Factor field. The slot fill
factor is the ratio between the cross-sectional area of all conductors in one slot and the entire
slot area.
12. Click OK to close the Properties window.
For a adjustable-speed synchronous machine, you may want to specify a different number of
conductors for each stator slot. The Winding Editor makes this possible by enabling you to specify
the number of turns for each coil.
To specify the number of turns for each coil:
1. Click Machine>Winding>Edit Layout.
The Winding Editor window appears.
2. In the table in the upper left, set which phase you want for each coil and which slot is the “in”
and “out” slot for the current in each coil.
3. If you are working on a quarter or half model, you may want to specify a multiplier by clicking
the Periodic Multiplier check box and specifying a value.
4. Select or deselect the Constant Turns or Constant Pitch check boxes, depending on
whether you want to be able to change these setting in the table above. When these options
To access the stator winding data, double-click the Machine-Stator-Winding entry in the project
tree.
The Stator Winding Data Properties window contains the following fields:
Winding tab Winding Layers The number of winding layers.
Winding Type The type of stator winding. Click the
button to open the Winding Type
window and choose from Whole
The rotor consists of copper bars in which current is induced by the magnetic fields produced by the
stator windings. In the project tree, double-click Machine>Rotor and Machine-Rotor-Pole to
define the rotor and the pole.
To define general stator data:
1. To open the Rotor Data Properties window, double-click the Machine>Rotor entry in the
project tree on the desktop. (You can also enter values in the Properties section of the
desktop without opening a separate window.)
2. Enter the outer diameter of the rotor in the Outer Diameter field.
3. Enter the inner diameter of the rotor in the Inner Diameter field.
4. Enter the length of the rotor core in the Length field.
5. Select a Steel Type for the rotor core:
a. Click the button for Steel Type.
The Select Definition window appears.
b. Select a steel type from the list, or define a new steel type.
c. Click OK to close the Select Definition window and return to the Properties window.
6. Enter the stacking factor for the rotor core in the Stacking Factor field.
7. Select a Pole Type:
a. Click the button.
The Select Pole Type window appears.
b. Click a button to select the desired pole type (1, 2, 3, 4, or 5). TIP: When you run the
mouse over each option, the diagram changes to show that pole type.
Note When you place the mouse cursor over a rotor type, an outline of the selected
To access the general rotor data, double-click the Machine>Rotor entry in the project tree.
The Rotor Data Properties window contains the following fields:
Outer The outer diameter of the rotor core.
Diameter
Inner The inner diameter of the rotor core.
Diameter
Length The length of the rotor core.
Steel The steel type of the rotor core. Click the button to open the Select Definition
Type window.
Stacking The stacking factor of the rotor core.
Factor
Pole The pole type for the rotor. Click this button to open the Select Pole Type window
Type and select from the following types: 1, 2, 3, 4, 5.
The rotor pole drives the electromagnetic field which is coupled with the stator windings. Use the
Rotor Pole Data Properties window to define the rotor pole.
Note Some of the fields in the Rotor Pole window change, or are inactive, depending on the
Rotor Type you select.
To define the rotor pole:
1. To open the Rotor Pole Data Properties window, double-click the Machine-Rotor-Pole
entry in the project tree on the desktop. (You can also enter values in the Properties section
of the desktop without opening a separate window.)
2. For all pole types except type 4, enter the ratio of the actual arc distance in relation to the
maximum possible arc distance in the Embrace field. This value is between 0 and 1.
3. For pole type 4, enter the shaft diameter of the rotor in the Shaft Diameter field.
4. For pole types 1, 2, and 3, enter the distance from the center of the rotor to the polar arc center
in the Offset field. Enter 0 for a uniform air gap.
5. For pole type 5, enter the thickness of the bridge across the two poles in the Bridge field.
6. For pole type 5, enter the width of the rib supporting the bridge in the Rib field.
7. Select the type of magnet to use in the rotor pole from the Magnet Type pull-down menu.
8. For pole types 4 and 5, enter the width of the magnet in the Magnet Width field.
9. Enter the maximum radial thickness of the magnet in the Magnet Thickness field.
10. Click OK to close the Properties window.
To access the pole rotor data, double-click the Machine-Rotor-Pole entry in the project tree.
The Rotor Pole Data Properties window contains the following fields:
To access the shaft data, double-click the Machine>Shaft entry in the project tree.
The Shaft Data Properties window contains the following fields:
Magnetic Select or clear this check box to indicate whether or not the shaft is made of
Shaft magnetic material.
b. If Generator was selected for the Operation Type, select the Load Type used in the
generator from the following options: Infinite Bus or Independent Generator.
Infinite Bus When the generator is connected to an infinite bus of the power system,
the terminal voltages remain constant and the output power is
determined by the output currents.
Independent The generator supplies electrical power to a load inductor. For an AC
Generator generator, the resistance and inductance of the load inductor are
determined by the rated output power, the rated voltage, and the rated
power factor. For a DC generator, the resistance of the load resistor is
determined by the rated output power and the rated voltage.
3. Enter the output power developed at the shaft of the motor in the Rated Output Power field.
4. Enter either the RMS line-to-line voltage (for AC control type), or the DC voltage (for DC and
PWM control types) in the Rated Voltage field.
5. Enter the desired output speed of the motor at the load point in the Rated Speed field.
6. Enter the temperature at which the system functions in the Operating Temperature field.
7. Click the Adjust-Speed Synchronous Machine tab and select either Time or Frequency
as the Domain for the solution.
8. Click OK to close the Solution Setup window.
Related Topics
To access the solution data, right-click Analysis in the project tree, and click Add Solution Setup.
For this machine type, there is only one tab, the General tab.
The Solution Setup window contains the following fields:
Operation The operation type is automatically set to Motor for this machine type.
Type
Load Type Select from Const Speed, Const Power, Const Torque, Linear Torque,
and Fan Load. The default is Const Power.
Rated Output Type a value for the rated output voltage, and select the units.
Power
Rated Voltage Type a value for the rated voltage, and select the units.
Rated Speed Type a value for the rated speed, and select the units.
Operating Type a value for the operating temperature, and select the units.
Temperature
Related Topics
Permanent-Magnet DC Motors
After you have selected Permanent-Magnet DC Motors as your model type, you need to define
the following:
l General data, such as the voltage, speed, and circuit type of the model.
l Stator data, such as the diameter, slot dimensions, and skew width of the stator.
l Stator pole data, such as its associated pole dimensions, type of steel, and pole magnet
specifications.
l Rotor data, such as the slot types and dimensions, slot data, and windings.
l Commutator and brush data, such as the commutator dimensions and brush length.
l Shaft data
l Solution data, such as rated output voltage and frequency.
By option, you can:
l Add a machine housing.
For a permanent-magnet DC motor, the stator is equipped with P pairs of permanent magnets,
creating P pairs of alternating north and south poles. The distribution of the magnetic field produced
by the permanent magnet’s field flux is fixed with respect to the stator. The rotor is equipped with a
distributed winding connected to a commutator that revolves together with the rotor.
A system of brushes is kept in permanent electrical contact with the commutator. When DC current
is applied to the rotor winding (via the brushes and commutator), a torque is produced by the
interaction of the rotor (armature) currents and the field produced by the permanent magnets.
The commutator causes the armature to create a magnetic flux distribution that is fixed in space and
whose axis is perpendicular to the axis of the field flux produced by the permanent magnets. For
these motors, the commutator acts as a mechanical rectifier.
The performance of a permanent-magnet DC (PMDC) motor is computed by DC analysis only. The
voltage equation of a PMDC motor is:
U = Ub + R1 * I + E
where Ub is the voltage drop of one-pair brushes, R1 is the armature resistance, E = Ke * is the
back emf with Ke the back-emf constant in Vs/rad, and is the speed in rad/s. For a given speed
, armature current can be computed based on the applied voltage U, as shown below:
I = (U - Ub - Ke * )/R1
The shaft torque T2 is computed by:
T2 = Kt * I - Tfw
where Kt is the torque constant in Nm/A, which is numerically the same as Ke, and Tfw is the
frictional torque.
The output power (mechanical power) is:
P2 = T2 *
The input power (electrical power) is:
P1 = P2 + Pfw + Pcua + Pb + PFe
where Pfw, Pcua, Pb, and PFe are frictional and wind loss, armature copper loss, brush drop loss,
and iron-core loss, respectively.
The efficiency is:
eff = P2/P1 * 100%
10. Optionally, for Inner Rotor machines only, right-click the Machine entry in the project tree and
click Insert Housing to add a machine housing.
11. Right-click Analysis in the project tree, and click Add Solution Setup to define the solution
data.
12. Choose File>Save to save the project.
13. Choose RMxprt>Analyze to analyze the design.
Note When you place the cursor over an entry field in the data windows, a brief
description of that field appears in the status bar at the bottom of the RMxprt
window.
Once analyzed, the model can be viewed in the Maxwell 2D Modeler, or it can be used to create a
new Maxwell 2D project, and a new Maxwell 3D project.
Refer to the Permanent-Magnet DC Motor Problem application note, on the technical support page
of the ANSYS web site, for a specific example of a permanent-magnet DC motor problem.
Use the General window to specify the rated output power, voltage values, circuit type, and speed of
the DC motor.
To access the general data, double-click the Machine entry in the project tree.
The General Data Properties window for a three-phase induction motor contains the following
fields:
Machine The machine type you selected when inserting a new RMxprt design (DC
Type Permanent Magnet Motor).
Number of The number of poles the machine contains.
Poles
Rotor Select whether the rotor is an Inner Rotor or Outer Rotor.
Position
Frictional The frictional energy loss (due to friction) measured at the reference speed.
Loss
Wind Loss The wind loss (due to air resistance) measured at the reference speed.
Reference The given speed of reference.
Speed
The stator is the outer lamination stack where the polyphase voltage windings reside.
To define the general stator data:
1. To open the Stator Data Properties window, double-click the Machine>Stator entry in the
project tree on the desktop. (You can also enter values in the Properties section of the
desktop without opening a separate window.)
2. Enter the Outer Diameter of the stator.
To access the general stator data, double-click the Machine>Stator entry in the project tree.
The Stator Data Properties window contains the following fields:
Outer The outer diameter of the stator
Diameter core.
Inner Diameter The inner diameter of the stator
core.
Length The length of the stator core.
Stacking The stacking factor of the stator
Factor core.
The rotor pole drives the electromagnetic field which is coupled with the stator windings. Use the s
Stator Pole Data Properties window to define the stator pole.
To define the rotor pole:
1. To open the Stator Pole Data Properties window, double-click the Machine-Stator-Pole
entry in the project tree on the desktop. (You can also enter values in the Properties section
of the desktop without opening a separate window.)
Note For a two-pole machine, a pole embrace of 0.75 yields a magnet with a span of 135
degrees (based on 0.75*180 degrees).
2. Enter the ratio of the actual arc distance in relation to the maximum possible arc distance in the
Embrace field. This value is between 0 and 1.
3. Enter the distance from the center of the stator to the magnet arc center in the Offset field.
Enter 0 for a uniform air gap.
4. To select the type of magnet to use in the rotor pole:
a. Click the Magnet Type button.
The Select Definition window appears.
b. Select or define a material for the magnet type.
c. Click OK to close the Select Definition window and return to the Properties window.
5. Enter the length of the magnet in the axial direction in the Magnet Length field.
6. Enter the maximum radial thickness of the magnet at the center of the pole in the Magnet
Thickness field. To control the flux, the magnet’s thickness may vary.
7. Click OK to close the Properties window.
To access the stator pole data, double-click the Machine-Stator-Pole entry in the project tree.
The Stator Pole Data Properties window contains the following fields:
Embrace The pole embrace.
Offset The pole-arc center offset from the stator center (0 for a uniform air gap).
Magnet Type The type of magnet. Click the button to open the Select Definition
window.
Magnet Length The maximum length of the magnet.
Magnet The maximum thickness of the magnet.
Thickness
The rotor is equipped with slots containing copper conductors that are connected to the commutator.
The commutator acts as a mechanical rectifier in the motor.
Use the Rotor Data Properties, Rotor Slot Data Properties, and Rotor Winding Data
Properties windows to define the rotor slots, windings, and dimensions.
To define general rotor data:
1. To open the Rotor Data Properties window, double-click the Machine>Rotor entry in the
project tree on the desktop. (You can also enter values in the Properties section of the
desktop without opening a separate window.)
2. Enter the stacking factor for the rotor core in the Stacking Factor field.
3. Enter the Number of Slots in the rotor.
4. Select the Slot Type:
a. Click the button for the Slot Type.
The Select Slot Type window appears.
b. Select a slot type (available types include 1 through 4).
Note When you place the mouse cursor over the slot type, a schematic outline of the
slot appears.
c. Click OK to close the Select Slot Type window and return to the Properties window.
5. Enter the outer diameter of the rotor in the Outer Diameter field.
6. Enter the inner diameter of the rotor in the Inner Diameter field.
7. Enter the length of the rotor core in the Length field.
8. Select a Steel Type for the rotor core:
a. Click the button for Steel Type.
The Select Definition window appears.
b. Select a steel type from the list, or define a new steel type.
c. Click OK to close the Select Definition window and return to the Properties window.
9. Enter the skew width, measured in slot number, in the Skew Width field.
10. Click OK to close the Properties window.
To access the general rotor data, double-click the Machine>Rotor entry in the project tree.
The Rotor Data Properties window contains the following fields:
Stacking The stacking factor of the rotor core.
Factor
Number of The number of slots the rotor core contains.
Slots
Slot Type The type of slots in the rotor core. Click the button to open the Select Slot Type
window.
To access the stator slot data, double-click the Machine-Rotor-Slot entry in the project tree.
The Rotor Slot Data Properties window contains the following fields:
Auto Select or clear this to enable or disable auto-design of slots Hs2, Bs1, and Bs2. When
Design this check box is selected, only two other fields appear in the window: Hs0 and Bs0.
Hs0 A slot dimension (see the diagram shown in the modeling window when Machine-
Rotor-Slot is selected).
Hs2 A slot dimension (see the diagram shown in the modeling window when Machine-
Rotor-Slot is selected).
Bs0 A slot dimension (see the diagram shown in the modeling window when Machine-
Rotor-Slot is selected).
Bs1 A slot dimension (see the diagram shown in the modeling window when Machine-
Rotor-Slot is selected).
Bs2 A slot dimension (see the diagram shown in the modeling window when Machine-
Rotor-Slot is selected).
Rs A slot dimension. (see the diagram shown in the modeling window when Machine-
Stator-Slot is selected). Rs is added when the slot type is 3 or 4.
Rs A slot dimension. (see the diagram shown in the modeling window when Machine-
Stator-Slot is selected). Rs is added when the slot type is 3 or 4.
5. Enter the number of virtual slots per each real slot in the Virtual Slots field. The rotor is
assumed to have two layers of conductors, an upper and a lower layer. Each layer of
conductors can have a number of windings, which are referred to as virtual slots.
Note For example, the upper and lower layer can have two windings each, which would
yield a virtual slot number of two; for a 12 slot machine, this would yield 24
commutation segments.
6. Enter the total number of conductors in each rotor slot in the Conductors per Slot field. This
value is the number of turns per coil multiplied by the number of layers. This value is the total
number of conductors in one real full rotor slot.
7. Enter the coil pitch, measured in number of slots, in the Coil Pitch field. The coil pitch is the
number of slots separating one winding. For example, if a coil starts in slot 1 and ends in slot 6,
it has a coil pitch of 5.
8. Enter the number of wires per conductor in the Number of Strands field. Enter 0 to have
RMxprt auto-design this value.
9. Enter the thickness of the double-sided wire wrap in the Wire Wrap field. Enter 0 to
automatically obtain this value from the wire library.
l If you cleared Input Half-turn Length, then enter the end length adjustment of the stator
coils in the End Adjustment field. The end adjustment is the distance one end of the
conductor extends vertically beyond the end of the stator.
5. Enter the inner radius of the base corner in the Base Inner Radius field.
6. Enter the inner diameter of the coil tip in the Tip Inner Diameter field.
7. Enter the distance between two rotor coils in the End Clearance field.
8. Enter the thickness of the slot liner insulation in the Slot Liner field.
9. Enter the thickness of the wedge insulation in the Wedge Thickness field.
10. Enter the thickness of the insulation layer in the Layer Insulation field.
11. Enter the limited slot fill factor for the wire design in the Limited Fill Factor field. The slot fill
factor is the ratio between the cross-sectional area of all conductors in one slot and the entire
slot area.
12. Select the type of equalizer connection from the Equalizer Connection pull-down menu.
Select from None, Half, or Full.
13. Click OK to close the Properties window.
Use the Gauge option if you have a conductor that is made up different size wires.
To define different size wires:
1. In the Wire Size window, select MIXED from the Gauge pull-down menu.
2. Select either Round or Rectangular as the Wire Type.
3. Enter the appropriate wire data in the table:
l For a round wire:
To access the stator winding data, double-click the Machine-Rotor-Winding entry in the project
tree.
The Rotor Winding Data Properties window contains the following fields:
Winding tab Winding Type The type of rotor winding. Click the
button to open the Winding Type
window and choose from Lap, Wave,
and Frog Leg.
Multiplex Number Single, double, or triple windings (1, 2, or
3).
Virtual Slots The number of virtual slots per real slot.
Conductors per Slot The number of conductors per rotor slot
(0 for auto-design).
Coil Pitch The coil pitch measured in number of
slots.
Number of Strands The number of wires per conductor (0 for
auto-design).
Wire Wrap The thickness of the double-sided wire
wrap (0 to automatically obtain this value
from the wire library).
Wire Size The diameter of the wire (0 for auto-
design). Click the button to open the
Wire Size window where you can
specify units, wire type, diameter, and
gauge.
End/Insulation tab Input Half-turn Length Select or clear this check box to specify
whether or not you want to enter the
half-turn length. When this check box is
selected, the Half Turn Length field
appears the next time you open the
Properties window. When this check
box is selected, the End Adjustment
field appears instead.
Half Turn Length The half-turn length of the armature
winding.
Base Inner Radius The inner radius of the base corner.
Tip Inner Diameter The inner diameter of the coil tip.
End Clearance The end clearance between two
adjacent coils.
Slot Liner The thickness of the slot liner insulation.
Wedge Thickness The thickness of the wedge insulation.
Layer Insulation The thickness of the insulation layer.
Limited Fill Factor The limited slot fill factor for the wire
design. The slot fill factor is the ratio
between the cross-sectional area of all
The commutator allows current transfer between DC terminals or brushes and the rotor coils,
providing the current to the system as a function of rotation. Due to the action of the commutator, the
corresponding magnetic field has a fixed distribution with respect to the stator.
To define the commutator and brush pairs:
1. To open the Commutator Data Properties window, double-click the
Machine>Commutator entry in the project tree on the desktop. (You can also enter values in
the Properties section of the desktop without opening a separate window.)
2. Click the Commutator tab.
3. Select Cylinder or Pancake Type as the Commutator Type.
Note When you place the mouse cursor over the commutator type, an outline of the
commutator appears.
4. For Cylinder commutators, do the following:
a. Enter the Commutator Diameter.
b. Enter the Commutator Length.
5. For Pancake commutators, do the following:
a. Enter the Outer Diameter.
b. Enter the Inner Diameter.
6. Enter the thickness of the insulation between two consecutive commutator segments in the
Commutator Insulation field.
7. Click the Brush tab.
8. Enter the Brush Width.
9. Enter the Brush Length.
10. Enter the number of brush pairs when using a wave armature winding in the Brush Pairs
field.
11. Enter the angle of displacement from the neutral axis, in mechanical degrees, in the Brush
Displacement field.
Note The brush displacement is positive for the counter-clockwise direction. For example,
if the rotor turns clockwise and the brush displacement is also clockwise, then the
angle is negative; if the rotor turns clockwise but the brush displacement is counter-
clockwise, then the angle is positive.
12. Enter the voltage drop across one brush pair in the Brush Drop field.
13. Enter the mechanical pressure of the brushes as they press against the commutator in the
Brush Press field.
14. Enter the Frictional Coefficient of the brush.
Note If the Friction Loss field is used in the General window, the Brush Press and
Frictional Coefficient fields will be hidden in the Commutator/Brush window.
These fields are shown only when the Friction Loss field in the General window is
set to zero.
15. Click OK to close the Properties window.
To access the commutator and brush data, double-click the Machine>Commutator entry in the
project tree.
The Commutator Data Properties window contains the following fields:
Commutator Commutator The type of commutator. Click the button to open the Select
tab Type Commutator Type window and select from Cylinder or
Pancake.
Commutator For a Cylinder commutator type, the diameter of the commutator.
Diameter
Commutator For a Cylinder commutator type, the length of the commutator.
Length
Outer For a Pancake commutator type, the outer diameter of the
Diameter commutator.
Inner For a Pancake commutator type, the inner diameter of the
Diameter commutator.
Commutator The thickness of the insulation between the two commutator bars.
Insulation
Brush tab Brush Width The width of the brush.
Brush The length of the brush.
Length
Brush Pairs The number of brush pairs.
Brush The displacement of the brush from the neutral position, in
Displacement mechanical degrees (positive for anti-rotating direction).
Brush Drop The voltage drop across a one-pair brush.
Brush Press The brush press per unit area. (Available only when Frictional
Loss is set to zero for the machine.)
Frictional The frictional coefficient of the brush. (Available only when
Coefficient Frictional Loss is set to zero for the machine.)
To access the shaft data, double-click the Machine>Shaft entry in the project tree.
The Shaft Data Properties window contains the following fields:
Magnetic Select or clear this check box to indicate whether or not the shaft is made of
Shaft magnetic material.
3. Select the Load Type used in the motor from the following options:
Const The speed remains constant in the motor.
Speed
Const The output power remains constant in the motor.
Power
Const The torque remains constant regardless of the speed. In this case, Tload = Trated,
Torque given by the output power divided by the given rated speed.
Linear The torque increases linearly with speed. In this case, Tload = Trated * (n/nrated)
Torque where Trated is given by the output power divided by the given rated speed.
Fan The load varies nonlinearly with speed. In this case, Tload = Trated * (n/nrated)2
Load where Trated is given by the output power divided by the given rated speed.
4. Enter the output power developed at the shaft of the motor in the Rated Output Power field.
5. Enter the RMS line-to-line voltage in the Rated Voltage field.
6. Enter the desired output speed of the motor at the load point in the Rated Speed field.
7. Enter the temperature at which the system functions in the Operating Temperature field.
8. Click OK to close the Solution Setup window.
Related Topics
To access the solution data, right-click Analysis in the project tree, and click Add Solution Setup.
For this machine type, there is only one tab, the General tab.
The Solution Setup window contains the following fields:
Operation The operation type is automatically set to Motor for this machine type.
Type
Load Type Select from Const Speed, Const Power, Const Torque, Linear Torque, and
Fan Load. The default is Const Power.
Rated Output Type a value for the rated output voltage, and select the units.
Power
Rated Voltage Type a value for the rated voltage, and select the units.
Rated Speed Type a value for the rated speed, and select the units.
Operating Type a value for the operating temperature, and select the units.
Temperature
Related Topics
l Stator data, such as the slot types and dimensions, stator diameter, skew width, and
laminations.
l Optional stator Vent data.
l Winding data, such as the parallel branches, conductors, and wire dimensions.
l Rotor pole data, such as its associated pole-body dimensions and air gaps.
l Optional Rotor damper data, such as the damper dimensions, rings, and material properties.
l Shaft Data
l Solution data, such as specifying motor or generator application, and rated output voltage and
frequency.
Also see the Analysis Approach for Three-Phase Synchronous Machines.
The three-phase salient-pole synchronous electric machine has two types: the generator and the
motor. Their basic structures are the same. Three-phase synchronous generators are the main
source of electrical energy for industrial, commercial, and private use. They receive mechanical
energy at the shaft and transform it into electrical energy. The rotor is equipped with a multi-pole
winding excited by a DC source. The stator is equipped with a three-phase winding that has a
sinusoidal spatial distribution. The spinning rotor produces a rotating magnetic field in the air gap of
the machine. The frequency of the voltage induced in the stator is given by f=pv, where p is the
number of pairs of poles, and v is the velocity of the rotor. The machine is capable of producing both
active and reactive power as required by the load connected at the stator phasor.
The three-phase salient-pole synchronous electric machine has two types: the generator and the
motor. Their basic structures are the same. Usually the frequency-domain phasor diagram is
adopted to analyze the characteristics. The phasor diagram for a generator is shown on the left and
that for a motor is shown on the right.
In the figure, R1, X1, Xad, and Xaq are armature resistance, armature leakage reactance, d-axis
armature reactance, and q-axis armature reactance, respectively. Xad is nonlinear, while a
linearized value is used in the phasor diagram. Taking the input voltage U as the reference phasor,
for a given current:
where is the power factor angle, a phasor represented by OM can be derived by:
U + I(R1 + jX1 + jXaq)
The direction of E0 can, therefore, be obtained. Taking the power angle, the angle that U legs E0, as
Id = I * sin( )
Iq = I * cos( )
The phasor length ON represents the d-axis back EMF from d-axis resultant flux linkage and is used
to determine the d-axis field saturation. Then a frozen method is applied to derive E0, Xad, and
exciting current If.
The output power (electric power) is directly computed from voltage and current as:
P2 = 3*U*I*cos( )
The input power (mechanical power) is defined as:
P1 = P2 + Pfw + Pcua + PFe + Padd + Pcuf + Pex
where Pfw, Pcua, PFe, Padd, Pcuf and Pex are frictional and wind loss, armature copper loss, iron-
core loss, additional loss, field winding copper loss, and exciter loss, respectively.
The input mechanical shaft torque is:
T1 = P1/
where SYMBOL is synchronous speed in rad/s.
The efficiency is computed by:
eff = P2/P1 * 100%
Main Features
l Adapted to both Synchronous Motor and Generator
The structures of the salient-pole synchronous motor and the generator are basically the
same, but their phasor relationships and the computation methods are slightly different, their
output characteristics data are also different. This is specified in the solution setup.
l Auto Arrangement of Three-phase Windings
Almost all commonly used three-phase single- and double-layer, half- and whole-type ac
windings (including fractional-pitch windings) can be automatically arranged. Users do not
need to define coils one by one. RMxprt also supports a double-layer winding with half-turn
coils which are auto-arranged in the order of even, odd, even, odd, …, and even, odd, as long
as it is physically possible.
When a designer adopts single-layer whole-coiled windings, RMxprt will perform winding
arrangement optimization to minimize the average coil pitch. When asymmetric three-phase
windings are used, winding arrangement is optimized in such a way that minimum negative-
sequence and zero-sequence components are achieved.
l Winding Editor Supporting Any Single- and Double-Layer Windings
Besides taking advantage of the winding auto-arrangement function in RMxprt, users can also
specify any special winding by using of the Winding Editor function.
In Winding Editor, through modification of phase belonging, number of turns, in-slot and out-
slot number of each coil, it is possible to design single- and double-layer winding arrangement
for any purposes.
l Analyze Air-Gap Magnetic Field Distribution
For both uniform and non-uniform air gaps, Schwarz-Christopher Transformation is adopted
to solve for the air-gap magnetic field distribution.
l Analyze EMF Waveform and Total Harmonic Distortion (THD)
Based on the analysis of the air-gap magnetic field waveform, taking into account coil short
pitch, winding distribution, skew slot, winding connection, load effects and other factors, the
emf waveforms in the coils and the windings are analyzed to solve for the emf distortion
factors.
l Analyze Dynamic Parameters of Damping Winding
Different from the squirrel-cage winding of the induction machine, the damping winding of the
salient-pole synchronous machine is located in the surface of magnetic field poles, which
deviates greatly along the d- and the q-axes. Furthermore, the connection of damping bars
has several forms. The bars under each pole could be connected, but not connected with
those under other poles. All the bars could be connected together. The bars could be
connected through end-plate. RMxprt can deal with all those complicated situations and give
the dynamic parameters for the damping winding.
11. Double-click the Machine-Shaft entry in the project tree to define the magnetism of the shaft.
12. Optionally, right-click the Machine entry in the project tree and click Insert Housing to add a
machine housing.
13. Right-click Analysis in the project tree, and click Add Solution Setup to define this solution
data.
14. Choose File>Save to save the project.
15. Choose RMxprt>Analyze to analyze the design.
Note When you place the cursor over an entry field, a brief description of that field
appears in the status bar at the bottom of the RMxprt window.
Once the design is analyzed, the model can be viewed in the Maxwell 2D Modeler, or it can be used
to create a new Maxwell 2D project, and a Maxwell 3D design.
Use the General Data Properties window to define the power settings, speed, and efficiency of the
generator. This window allows you to define the basic parameters of the synchronous generator,
such as power, voltage, winding connections, and losses.
To define the general data:
1. To open the General Data Properties window, double-click the Machine entry in the project
tree on the desktop. (You can also enter values in the Properties section of the desktop
without opening a separate window.)
2. Enter the number of poles for the machine in the Number of Poles field. This value is the total
number of poles in the stator (or the number of pole pairs multiplied by two).
3. Enter the power lost through frictional forces in the Frictional Loss field.
4. Enter the wind loss measured at the reference speed in the Wind Loss field.
5. Enter the given speed in the Reference Speed field.
6. Click OK to close the Properties window.
To access the general data, double-click the Machine entry in the project tree.
The General Data Properties window for a three-phase induction motor contains the following
fields:
Machine The machine type you selected when inserting a new RMxprt design (Three Phase
Type Synchronous Machine).
Number of The number of poles the machine contains.
Poles
Frictional The frictional energy loss (due to friction) measured at the reference speed.
Loss
Wind Loss The wind loss (due to air resistance) measured at the reference speed.
Use the Stator windows to define the slot dimensions, stacking factors, air ducts, and insulation of
the stator. The stator is the outer lamination stack where the three-phase windings reside.
To define general stator data:
1. To open the Stator Data Properties window, double-click the Machine>Stator entry in the
project tree on the desktop. (You can also enter values in the Properties section of the
desktop without opening a separate window.)
2. Enter the Outer Diameter of the stator.
3. Enter the Inner Diameter of the stator.
4. Enter the length of the stator core in the Length field.
5. Enter the stacking factor for the stator core in the Stacking Factor field.
6. Select a Steel Type for the stator core:
a. Click the button for Steel Type.
The Select Definition window appears.
b. Select a steel type from the list, or define a new steel type.
c. Click OK to close the Select Definition window and return to the Properties window.
7. Enter the Number of Slots in the stator.
8. Select theSlot Type:
a. Click the button for the Slot Type.
The Select Slot Type window appears.
b. Select a slot type (available types include 1 through 6). Slot types 1 though 4 are filled with
round wire. Slot types 5 and 6 are filled with rectangular wire. If Auto Design is enabled,
the software designs an optimum slot geometry; in this case, you can input the tooth width
dimension, and the software determines the slot width accordingly.
Note When you place the mouse cursor over the slot type, a schematic of the selected
type appears, displaying the slot dimension variables.
c. Click OK to close the Select Slot Type window and return to the Properties window.
9. Enter the number of sectors in the Lamination Sectors field.
10. Enter the thickness of the magnetic pressboard in the Pressboard Thickness field. Enter 0
for a non-magnetic pressboard.
11. Enter the skew width, measured in slot number, in the Skew Width field.
12. Click OK to close the Properties window.
To access the general stator data, double-click the Machine>Stator entry in the project tree.
To access the stator slot data, double-click the Machine-Stator-Slot entry in the project tree.
The Stator Slot Data Properties window contains the following fields:
Auto Select or clear this to enable or disable auto-design of slots Hs2, Bs1, and Bs2. When
Design this check box is selected, only two other fields appear in the window: Hs0 and Bs0.
Parallel Select this to design Bs1 and Bs2 based on the tooth width. When this check box is
Tooth selected, the Bs1 and Bs2 fields are removed, and the Tooth Width field is added.
Tooth The tooth width for the parallel tooth, on which Bs1 and Bs2 are designed.
Width
Hs0 A slot dimension (see the diagram shown in the modeling window when Machine-
Stator-Slot is selected).
Hs2 A slot dimension (see the diagram shown in the modeling window when Machine-
Stator-Slot is selected).
Bs0 A slot dimension (see the diagram shown in the modeling window when Machine-
Stator-Slot is selected).
Bs1 A slot dimension (see the diagram shown in the modeling window when Machine-
Stator-Slot is selected).
Bs2 A slot dimension (see the diagram shown in the modeling window when Machine-
Stator-Slot is selected).
Rs A slot dimension. (see the diagram shown in the modeling window when Machine-
Stator-Slot is selected). Rs is added when the slot type is 3 or 4.
Use the Stator Winding window to define the stator winding data, such as the coils, wires,
insulation, number of parallel branches, and physical dimensions of the windings.
The stator winding data defines the configuration of one phase of the three-phase windings.
To define the stator windings and insulation:
1. To open the Stator Slot Winding Properties window, double-click the Machine-Stator-
Winding entry in the project tree on the desktop. (You can also enter values in the Properties
section of the desktop without opening a separate window.)
2. Click the Winding tab.
3. Enter the number of layers in the stator winding in the Winding Layers field.
4. Select a Winding Type:
a. Click the button for Winding Type.
The Winding Type window appears.
b. Select from one of the following three types of winding:
l Whole Coiled
l Half Coiled
l Editor
When you place the mouse cursor over a winding button, an outline of the selected winding appears.
The following table describes the six types of windings that are possible (three for one-layer and
three for two-layer):
Type Description
A user-defined one-layer winding arrangement. You need to set up the winding
Editor arrangement for each slot. For this winding type, the following letters are used for the
phase windings:
Whole
Coiled
Half
Coiled
A user-defined two-layer winding arrangement. When you select 20, the Winding Editor
Editor
opens, where you can specify a different winding arrangement for each slot.
Whole A two-layer wave winding:
Coiled
The phase belt for this winding configuration is equal to 360/2m, where m is the phase
number.
A two-layer half-coiled winding:
Half Coiled
b. Select a Winding Type. When you place the mouse cursor over a winding, an outline of the
selected winding appears. The following winding types are available:
10 A user-defined single-layer winding arrangement. When you select it, enter the winding
arrangement, and choose OK. For this winding type, the following letters are used for the
phase windings:
l phase A/A return uses A/X.
20 A user-defined winding arrangement. When you select this type, enter the winding
arrangement, and choose OK.
21 A two-layer wave winding:
The phase belt for this winding configuration is equal to 360/2m, where m is the phase
number.
22 A two-layer winding:
Note Example 1: A one layer winding arranged in 12 slots should be defined as type 10,
with the following arrangement: AAZZBBXXCCYY
Example 2: A two layer winding arranged in 12 slots should be defined as type 20,
with the following arrangement: AAZZBBXXCCYY
Only the top layer needs to be defined; the bottom layer will be determined
according to the coil pitch.
c. Select or enter the number of parallel branches in one phase of the winding in the Parallel
Branches field.
d. Enter the total number of conductors in each stator slot in the Conductors per Slot field. This
value is the number of turns per coil multiplied by the number of layers.
e. Enter the coil pitch, measured in number of slots, in the Coil Pitch field. The coil pitch is the
number of slots separating one winding. For example, if a coil starts in slot 1 and ends in slot 6,
it has a coil pitch of 5.
f. Enter the number of wires per conductor in the Number of Strands field. Enter 0 to have
RMxprt auto-design this value.
g. Enter the thickness of the double-sided wire wrap in the Wire Wrap field. Enter 0 to
automatically obtain this value from the wire library.
a. When you are done setting the wire size, click OK to close the Wire Size window and
return to the Properties window.
b. Click the End/Insulation tab.
c. Select or clear the Input Half-turn Length check box.
d. Do one of the following:
l If you selected Input Half-turn Length, then enter the half-turn length of the armature
coils in the End Adjustment field. The end adjustment is the distance one end of the
conductor extends vertically beyond the end of the stator.
5. Enter the inner radius of the base corner in the Base Inner Radius field.
6. Enter the inner diameter of the coil tip in the Tip Inner Diameter field.
7. Enter the distance between two stator coils in the End Clearance field.
8. Enter the thickness of the slot liner insulation in the Slot Liner field.
9. Enter the thickness of the wedge insulation in the Wedge Thickness field.
10. Enter the thickness of the insulation layer in the Layer Insulation field.
11. Enter the limited slot fill factor for the wire design in the Limited Fill Factor field. The slot fill
factor is the ratio between the cross-sectional area of all conductors in one slot and the entire
slot area.
12. Click OK to close the Properties window.
To access the stator winding and insulation data, double-click the Machine-Stator-Winding entry in
the project tree.
The Stator Winding Data Properties window contains the following fields:
For a three-phase synchronous machine, you may want to specify a different number of conductors
for each stator slot. The Winding Editor makes this possible by enabling you to specify the number of
turns for each coil.
To specify the number of turns for each coil:
1. Click Machine>Winding>Edit Layout.
The Winding Editor window appears.
2. In the table in the upper left, set which phase you want for each coil and which slot is the “in”
and “out” slot for the current in each coil.
3. If you are working on a quarter or half model, you may want to specify a multiplier by clicking
the Periodic Multiplier check box and specifying a value.
4. Select or deselect the Constant Turns or Constant Pitch check boxes, depending on
whether you want to be able to change these setting in the table above. When these options
are selected, you cannot change the turns or pitch.
5. When you are satisfied with the coil settings, click OK to close the Winding Editor window.
Use the Gauge option if you have a conductor that is made up different size wires.
The rotor consists of copper bars in which current is induced by the magnetic fields produced by the
stator windings. In the project tree, double-click Machine-Rotor and Machine-Rotor-Winding to
define the rotor.
To define the general rotor data:
1. To open the Rotor Data Properties window, double-click the Machine-Rotor entry in the
project tree on the desktop. (You can also enter values in the Properties section of the
desktop without opening a separate window.)
2. Click the Rotor tab.
3. Enter the outer diameter of the rotor in the Outer Diameter field.
4. Enter the inner diameter of the rotor in the Inner Diameter field.
5. Enter the length of the rotor core in the Length field.
6. Select a Steel Type for the rotor core:
a. Click the button for Steel Type.
The Select Definition window appears.
b. Select a steel type from the list, or define a new steel type.
c. Click OK to close the Select Definition window and return to the Properties window.
7. Enter the stacking factor for the rotor core in the Stacking Factor field.
8. Click the Pole tab.
9. Enter the pole-arc center offset from the rotor center in the Pole Arc Offset field.
10. Enter the width of the pole shoe in the Pole Shoe Width field.
11. Enter the height of the pole shoe in the Pole Shoe Height field.
12. Enter the width of the pole body in the Pole Body Width field.
13. Enter the height of the pole body in the Pole Body Height field.
14. Enter the width between the rotor pole and rotor yoke in the Second Air Gap field.
15. To include the two arcs in the half-pole range, do the following:
a. Select the Select Pole Arc check box.
b. Enter the offset of the second arc perpendicular to the pole-center line in the Off2_x field.
c. Enter the offset of the second arc parallel with the pole-center line in the Off2_y field.
Note If the Off2_x and Off2_y parameters for the second arc are invalid, the second
arc is ignored and the pole includes only the first arc defined by Pole Arc Offset.
1. Select or clear the Magnetic PressBoard check box to specify whether or not the press
board is made of magnetic material.
2. Enter the thickness of the press board in the Press Board Thickness field.
3. Click the Insulation tab.
4. Enter the thickness of the insulating material beneath the shoe pole in the Shoe Insulation
field.
5. Enter the thickness of the insulating material on the side of the pole body in the Pole
Insulation field.
6. Enter the clearance distance between the windings in the Winding Clearance field.
7. Click OK to close the Properties window.
To access the general rotor data, pole data, and insulation data double-click the Machine>Rotor
entry in the project tree.
The Rotor Data Properties window contains the following fields:
Rotor tab Outer The outer diameter of the rotor core.
Diameter
Inner The inner diameter of the rotor core.
Diameter
Length The length of the rotor core.
Steel Type The steel type of the rotor core. Click the button to open the Select
Definition window.
Stacking The stacking factor of the rotor core.
Factor
Pole tab Pole Arc The pole-arc center offset from the rotor center.
Offset
Pole Shoe The width of the pole shoe.
Width
Pole Shoe The height of the pole shoe.
Height
Pole Body The width of the pole body.
Width
Pole Body The height of the pole body.
Height
Second Air The width of the second air gap, between the rotor pole and rotor yoke.
Gap
Second Select or clear this option to specify whether or not the pole surface
Pole Arc includes the two arcs in the half-pole range. When you select this check
box, two additional fields appear: Off2_x and Off2_y.
Off2_x The offset of the second arc perpendicular to the pole-center line. This
field is only available when Second Pole Arc is selected.
Note: If Off2_x for the second arc is invalid, the second arc is ignored
and the pole includes only the first arc defined by Pole Arc Offset.
Off2_y The offset of the second arc parallel with the pole-center line. This field
is only available when Second Pole Arc is selected.
Note: If Off2_y for the second arc is invalid, the second arc is ignored
and the pole includes only the first arc defined by Pole Arc Offset.
Magnetic Select or clear this option to specify whether or not the press board is
PressBoard made of magnetic material.
Press The thickness of the press board.
Board
Thickness
Steel Type The steel type of the rotor pole. Click the button to open the Select
Definition window. Default value is the same as the rotor core.
Stacking The stacking factor of the rotor pole. Default value is the same as the
Factor rotor core.
Insulation Shoe The thickness of the insulating material beneath the pole shoe.
tab Insulation
Pole The thickness of the insulating material on the side of the pole body.
Insulation
Winding The clearance distance between the windings.
Clearance
The rotor pole drives the electromagnetic field that is coupled with the stator windings.
The following figure shows a partial diagram of a rotor pole:
Use the Rotor Winding window to define the wires and physical dimensions of the rotor winding.
The rotor winding provides the excitation for the electromagnetic field that produces the rotor pole.
To access the rotor winding data, double-click the Machine-Rotor-Winding entry in the project
tree.
The Rotor Winding Data Properties window contains the following fields:
Winding The type of rotor winding. Click the button to open the Winding Type window and
Type choose from Whole Coiled, Half Coiled, and Editor.
Parallel The number of parallel branches in the rotor winding.
Branches
Conductors The number of conductors per rotor pole (0 for auto-design).
per Pole
Number of The number of wires per conductor (0 for auto-design).
Strands
Wire Wrap The thickness of the double-sided wire wrap (0 to automatically obtain this value
from the wire library).
Interturn The thickness of the inter-turn insulation of an edgewise winding. This field only
Insulation appears when EdgewiseCoil is selected as the Winding Type.
Wire Size The diameter of the wire (0 for auto-design). Click the button to open the Wire Size
window where you can specify units, wire type, diameter, and gauge.
Axial The axial gap between the field winding and the pole body or inner coil.
Clearance
Limited The limited cross-section width for the winding design or arrangement (0 for
Cross available maximum area).
Width
Limited The limited cross-section height for the winding design or arrangement (0 for
Cross available maximum area).
Height
Winding The size of the winding fillet.
Fillet
By option, you can add a damper to or remove damper from the rotor of a three phase machine.
To add a damper:
1. Right-click on the rotor icon in the project tree to display the short cut menu.
2. Click Insert Damper on the menu.
The damper appears in the project tree under the rotor. The damper also includes an
associated slot.
1. To remove a damper, right-click on the rotor icon in the project tree to display the short cut
menu.
2. Click Remove Damper on the menu.
The damper and associated slot are removed from the project tree.
The damper data contains the following fields.
To access the shaft data, double-click the Machine>Shaft entry in the project tree.
The Shaft Data Properties window contains the following fields:
Magnetic Select or clear this check box to indicate whether or not the shaft is made of
Shaft magnetic material.
Related Topics
To access the solution data, right-click Analysis in the project tree, and click Add Solution Setup.
The Solution Setup window contains the following fields:
Operation On the General tab. Select from Motor or Generator.
Type
Load Type On the General tab. For a motor, select from Const Speed, Const Power,
Const Torque, Linear Torque, and Fan Load. The default is Const Power. For
a generator, select from Infinite Bus and Independent Generator.
Rated On the General tab. Type a value for the rated output voltage, and select the units.
Output
Power
Rated On the General tab. Type a value for the rated voltage, and select the units.
Voltage
Rated Speed On the General tab. Type a value for the rated speed, and select the units.
Operating On the General tab. Type a value for the operating temperature, and select the
Temperature units.
Rated Power On the Three-Phase Synchronous Machine tab. Type a value for the rated
Factor power factor.
Winding On the Three-Phase Synchronous Machine tab. Select from Wye or Delta.
Connection
Exciter On the Three-Phase Synchronous Machine tab. Type a percent for the exciter
Efficiency efficiency.
Input On the Three-Phase Synchronous Machine tab. If you select this check box,
Exciting then enter the exciting current, and select the units.
Current
Related Topics
l Circuit data, such as lead trigger angle, transistor drop, and control circuit information.
l Stator data, such as the diameter, slot dimensions, winding data, and skew width of the stator.
l Rotor data
l Rotor pole data, such as the magnet dimensions and stacking factor.
l Shaft data
The stator of a brushless DC motor is equipped with a polyphase winding. The phases are
connected to the DC bus through a switching circuit. The switching sequence is controlled so that it is
synchronized with the position of the rotor. As a result, the stator produces a rotating magnetic field.
The rotor is equipped with permanent magnets, creating a structure with the same number of poles
at the stator. The stator switches act like a commutator in a classic DC motor.
In brushless permanent-magnet DC (BLDC) motors, the armature currents are commutated exactly
according to rotor position. The signal of rotor position may be obtained from a position sensor, or
from induced voltages for sensor-less control system.
The performance of BLDC motors is analyzed via a time-domain simulation. The voltage equation in
the time domain is:
where R1, Ld, Lq, and L0 are armature resistance, d-axis synchronous inductance, q-axis
synchronous inductance, and 0-axis inductance, respectively. e is rotor speed in electrical rad/s,
The transformation matrices for 2-phase, 3-phase, and 4-phases systems, noted as C2, C3, and C4,
are as follows:
where =2 /3.
The input power (electric power) can now be computed from the voltage and current as:
T2 = P2 /
Use the General window to specify the rated output power, voltage values, circuit type, and speed of
the brushless DC motor.
To define the general data:
1. To open the General Data Properties window, double-click the Machine entry in the project
tree on the desktop. (You can also enter values in the Properties section of the desktop
without opening a separate window.)
2. Enter the number of poles for the machine in the Number of Poles field. This value is the total
number of poles in the stator (or the number of pole pairs multiplied by two).
3. Enter the energy loss due to friction at the given speed in the Frictional Loss field.
4. Enter the wind loss due to air resistance measured at the reference speed in the Wind Loss
field.
5. Enter the given speed in the Reference Speed field.
6. Select DC or CCC from the Control Type pull-down list.
7. Select a Circuit Type from the following types:
Y-connected, three-
Y3
phase.
L3 Loop-type, three-phase.
S3 Star-type, three-phase.
C2 Cross-type, two-phase.
L4 Loop-type, four-phase.
S4 Star-type, four-phase.
The circuit types are based on industry standards. By default, type Y3, a three-phase, six-
status circuit, is selected as the circuit type.
Note When you place the mouse cursor over a circuit type, an outline schematic of the circuit
appears.
8. Click OK to close the Properties window.
To access the general data, double-click the Machine entry in the project tree.
The General Data Properties window for a three-phase induction motor contains the following
fields:
Machine The machine type you selected when inserting a new RMxprt design (Brushless
Type Permanent-Magnet DC Motor).
Number of The number of poles the machine contains.
Poles
Rotor Select whether the rotor is an Inner Rotor or Outer Rotor.
Position
Frictional The frictional energy loss (due to friction) measured at the reference speed.
Loss
Wind Loss The wind loss (due to air resistance) measured at the reference speed.
Reference The given speed of reference.
Speed
Control The way the circuit is controlled. Select from DC or CCC (chopped current control).
Type
Circuit The drive circuit type. Click the button to open the Circuit Type window and select
Type from the following six types:
• Y3: Y-Type, 3-Phase
• L3: Loop-Type, 3-Phase
• S3: Star-Type, 3-Phase
• C2: Cross-Type, 2-Phase
• L4: Loop-Type, 4-Phase
• S4: Star-Type, 4-Phase
Use the Circuit Data Properties window to define the circuit data for a brushless PMDC Motor.
1. To open the Circuit Data Properties window, double-click the Machine>Circuit entry in the
project tree on the desktop. (You can also enter values in the Properties section of the
desktop without opening a separate window.)
2. Enter the trigger’s lead angle in electrical degrees in the Lead Angle of Trigger field. The
trigger’s lead angle is shown in the following plot of the open circuit induced voltage versus
position. An angle of 0 means that the induced voltage in the triggered phase is at a maximum:
Note A positive value represents a lead angle, and a negative value represents a lag
angle.
3. Enter the period from on-status to off-status of a transistor, in electrical degrees, in the
Trigger Pulse Width field.
4. Enter the voltage drop across one transistor when the transistor is turned on in the Transistor
Drop field. Refer to the figures of the different circuit types in step 2.
5. Enter the voltage drop of one diode in the discharge loop in the Diode Drop field. If you
selected a star-type circuit (S3 or S4) as the Circuit Type, enter the total discharge voltage in
this field.
6. If you selected CCC (chopped current control) as the Control Type, then enter the maximum
and minimum current values in the Maximum Current and Minimum Current fields.
7. Click OK to close the Properties window.
To access the Circuit Data Properties window, double-click the Machine>Circuit entry in the
project tree.
Lead Angle of The trigger’s lead angle, in electrical degrees.
Trigger
Trigger Pulse The period from on-status to off-status for a transistor, in electrical degrees.
Width
Transistor Drop The voltage drop across one transistor when the transistor is turned on.
Diode Drop The voltage drop across one diode in the discharge loop.
Maximum The maximum current for the chopped current control. This field is not
Current available for a DC circuit.
Minimum The minimum current for the chopped current control. This field is not
Current available for a DC circuit.
The stator is the outer lamination stack where the polyphase voltage windings reside.
To define the general stator data:
1. To open the Stator Data Properties window, double-click the Machine>Stator entry in the
project tree on the desktop. (You can also enter values in the Properties section of the
desktop without opening a separate window.)
2. Enter the Outer Diameter of the stator.
3. Enter the Inner Diameter of the stator.
4. Enter the length of the stator core in the Length field.
5. Enter the stacking factor for the stator core in the Stacking Factor field.
6. Select a Steel Type for the stator core:
a. Click the button for Steel Type.
The Select Definition window appears.
b. Select a steel type from the list, or define a new steel type.
c. Click OK to close the Select Definition window and return to the Properties window.
7. Enter the Number of Slots in the stator.
8. Select the Slot Type:
a. Click the button for the Slot Type.
The Select Slot Type window appears.
b. Select a slot type (available types include 1 through 4).
Note When you place the mouse cursor over the slot type, a schematic of the selected
type appears, displaying the slot dimension variables.
c. Click OK to close the Select Slot Type window and return to the Properties window.
9. Enter the skew width, measured in slot number, in the Skew Width field.
10. Click OK to close the Properties window.
To access the general stator data, double-click the Machine>Stator entry in the project tree.
The Stator Data Properties window contains the following fields:
Outer The outer diameter of the stator core.
Diameter
Inner The inner diameter of the stator core.
Diameter
Length The length of the stator core.
To access the stator slot data, double-click the Machine-Stator-Slot entry in the project tree.
The Stator Slot Data Properties window contains the following fields:
Auto Select or clear this to enable or disable auto-design of slots Hs2, Bs1, and Bs2. When
Design this check box is selected, only two other fields appear in the window: Hs0 and Bs0.
Parallel Select this to design Bs1 and Bs2 based on the tooth width. When this check box is
Tooth selected, the Bs1 and Bs2 fields are removed, and the Tooth Width field is added.
Tooth The tooth width for the parallel tooth, on which Bs1 and Bs2 are designed.
Width
Hs0 A slot dimension (see the diagram shown in the modeling window when Machine-
Stator-Slot is selected).
Hs1 A slot dimension (see the diagram shown in the modeling window when Machine-
Stator-Slot is selected).
Hs2 A slot dimension (see the diagram shown in the modeling window when Machine-
Stator-Slot is selected).
Bs0 A slot dimension (see the diagram shown in the modeling window when Machine-
Stator-Slot is selected).
Bs1 A slot dimension (see the diagram shown in the modeling window when Machine-
Stator-Slot is selected).
Bs2 A slot dimension (see the diagram shown in the modeling window when Machine-
Stator-Slot is selected).
Rs A slot dimension. (see the diagram shown in the modeling window when Machine-
Stator-Slot is selected). Rs is added when the slot type is 3 or 4.
Defining the Stator Windings and Conductors for a Brushless PMDC Motor
Whole
Coiled
Half
Coiled
A user-defined two-layer winding arrangement. When you select 20, the Winding Editor
Editor
opens, where you can specify a different winding arrangement for each slot.
Whole A two-layer wave winding:
Coiled
The phase belt for this winding configuration is equal to 360/2m, where m is the phase
number.
A two-layer half-coiled winding:
Half Coiled
10 A user-defined single-layer winding arrangement. When you select this type, enter the
winding arrangement, and choose OK. For this winding type, the following letters are
used for the phase windings:
l Phase A/A return uses A/X.
20 A user-defined two-layer winding arrangement. When you select this type, enter the
winding arrangement, and choose OK.
21 A two-layer wave winding:
The phase belt for this winding configuration is equal to 360/2m, where m is the phase
number.
22 A two-layer winding:
c. Select or enter the number of parallel branches in one phase of the winding in the Parallel
Branches field.
d. Enter the total number of conductors in each stator slot in the Conductors per Slot field. This
value is the number of turns per coil multiplied by the number of layers.
e. Enter the coil pitch, measured in number of slots, in the Coil Pitch field. The coil pitch is the
number of slots separating one winding. For example, if a coil starts in slot 1 and ends in slot 6,
it has a coil pitch of 5.
f. Enter the number of wires per conductor in the Number of Strands field. Enter 0 to have
RMxprt auto-design this value.
g. Enter the thickness of the double-sided wire wrap in the Wire Wrap field. Enter 0 to
automatically obtain this value from the wire library.
coils in the End Adjustment field. The end adjustment is the distance one end of the
5. Enter the inner radius of the base corner in the Base Inner Radius field.
6. Enter the inner diameter of the coil tip in the Tip Inner Diameter field.
7. Enter the distance between two stator coils in the End Clearance field.
8. Enter the thickness of the slot liner insulation in the Slot Liner field.
9. Enter the thickness of the wedge insulation in the Wedge Thickness field.
10. Enter the thickness of the insulation layer in the Layer Insulation field.
11. Enter the limited slot fill factor for the wire design in the Limited Fill Factor field. The slot fill
factor is the ratio between the cross-sectional area of all conductors in one slot and the entire
slot area.
12. Click OK to close the Properties window.
For a brushless DC motor, you may want to specify a different number of conductors for each stator
slot. The Winding Editor makes this possible by enabling you to specify the number of turns for each
coil.
To specify the number of turns for each coil:
1. Click Machine>Winding>Edit Layout.
The Winding Editor window appears.
2. In the table in the upper left, set which phase you want for each coil and which slot is the “in”
and “out” slot for the current in each coil.
3. If you are working on a quarter or half model, you may want to specify a multiplier by clicking
the Periodic Multiplier check box and specifying a value.
4. Select or deselect the Constant Turns or Constant Pitch check boxes, depending on
whether you want to be able to change these setting in the table above. When these options
are selected, you cannot change the turns or pitch.
5. When you are satisfied with the conductor settings, click OK to close the Winding Editor
window.
Use the Gauge option in the Wire Size dialog if you have a conductor that is made up different size
wires.
To define different size wires:
1. In the Wire Size window, select MIXED from the Gauge pull-down menu.
2. Select either Round or Rectangular as the Wire Type.
3. Enter the appropriate wire data in the table:
l For a round wire:
Note For example, if one conductor is made up of 5 wires, and 3 of those wires have a
diameter of 0.21mm, and the other 2 have a diameter of 0.13mm, then the mixed
wire size table will have two lines. The first line will list Diameter = 0.21 and Number
= 3. The second line will list Diameter = 0.13 and Number = 2. An equivalent wire
diameter is displayed as Wire Size value in the Winding tab in the Properties
window.
To access the stator winding data, double-click the Machine-Stator-Winding entry in the project
tree.
The Stator Winding Data Properties window contains the following fields:
Winding tab Winding Layers The number of winding layers.
Winding Type The type of stator winding. Click the
button to open the Winding Type
window and choose from Whole
Coiled, Half Coiled, and Editor.
Parallel Branches The number of parallel branches in the
stator winding.
Conductors per Slot The number of conductors per stator slot
(0 for auto-design).
Coil Pitch The coil pitch measured in number of
slots.
Number of Strands The number of wires per conductor (0 for
auto-design).
Wire Wrap The thickness of the double-sided wire
wrap (0 to automatically obtain this value
from the wire library).
Wire Size The diameter of the wire (0 for auto-
design). Click the button to open the
Wire Size window where you can
specify units, wire type, diameter, and
gauge.
End/Insulation tab Input Half-turn Length Select or clear this check box to specify
whether or not you want to enter the
half-turn length. When this check box is
selected, the Half Turn Length field
appears the next time you open the
Properties window. When this check
box is selected, the End Adjustment
field appears instead.
The rotor consists of copper bars in which current is induced by the magnetic fields produced by the
stator windings. In the project tree, double-click Machine>Rotor and Machine-Rotor-Pole to
define the rotor and the pole.
To define general rotor data:
1. To open the Rotor Data Properties window, double-click the Machine>Rotor entry in the
project tree on the desktop. (You can also enter values in the Properties section of the
To access the general rotor data, double-click the Machine>Rotor entry in the project tree.
The Rotor Data Properties window contains the following fields:
Outer The outer diameter of the rotor core.
Diameter
Inner The inner diameter of the rotor core.
Diameter
Length The length of the rotor core.
Steel The steel type of the rotor core. Click the button to open the Select Definition
Type window.
Stacking The stacking factor of the rotor core.
Factor
Pole The pole type for the rotor. Click this button to open the Select Pole Type window
Type and select from the following types: 1, 2, 3, 4, 5.
The rotor pole drives the electromagnetic field which is coupled with the stator windings. Use the
Rotor Pole Data Properties window to define the rotor pole.
Note Some of the fields in the Rotor Pole window change, or are inactive, depending on the
Rotor Type you select.
To define the rotor pole:
1. To open the Rotor Pole Data Properties window, double-click the Machine-Rotor-Pole
entry in the project tree on the desktop. (You can also enter values in the Properties section
of the desktop without opening a separate window.)
2. For all pole types except type 4, enter the ratio of the actual arc distance in relation to the
maximum possible arc distance in the Embrace field. This value is between 0 and 1.
3. For pole type 4, enter the shaft diameter of the rotor in the Shaft Diameter field.
4. For pole types 1, 2, and 3, enter the distance from the center of the rotor to the polar arc center
in the Offset field. Enter 0 for a uniform air gap.
5. For pole type 5, enter the thickness of the bridge across the two poles in the Bridge field.
6. For pole type 5, enter the width of the rib supporting the bridge in the Rib field.
7. Select the type of magnet to use in the rotor pole from the Magnet Type pull-down menu.
8. For pole types 4 and 5, enter the width of the magnet in the Magnet Width field.
9. Enter the maximum radial thickness of the magnet in the Magnet Thickness field.
10. Click OK to close the Properties window.
To access the pole rotor data, double-click the Machine-Rotor-Pole entry in the project tree.
The Rotor Pole Data Properties window may contain the following fields, depending on the pole
type specified.
Embrace The pole embrace. For pole types 1, 2, 3, and 5.
Shaft The shaft diameter of the rotor. For pole type 4.
Diameter
Offset The pole-arc center offset from the rotor center (0 for a uniform air gap). For pole
types 1, 2, and 3.
Bridge The thickness of the bridge across two adjacent poles. For pole type 5.
Rib The width of the rib at the center of two adjacent poles that support the bridge.
For pole type 5.
Magnet Type The type of magnet. Click the button to open the Select Definition window. For
all pole types.
Magnet Width The maximum width of the magnet. For pole types 4 and 5.
Magnet The maximum thickness of the magnet. For all pole types.
Thickness
To access the shaft data, double-click the Machine>Shaft entry in the project tree.
The Shaft Data Properties window contains the following fields:
Magnetic Select or clear this check box to indicate whether or not the shaft is made of
Related Topics
Analysis Offered
need to define coils one by one. RMxprt also supports a double-layer winding with half-turn
coils which are auto-arranged in the order of even, odd, even, odd, …, and even, odd, as long
as it is physically possible.
When a designer adopts single-layer whole-coiled windings, RMxprt will perform winding
arrangement optimization to minimize the average coil pitch. When asymmetric three-phase
windings are used, winding arrangement is optimized in such a way that minimum negative-
sequence and zero-sequence components are achieved.
l Winding Editor Supporting Any Single- and Double-Layer Windings
Besides taking the great advantage of the winding auto-arrangement function in RMxprt,
users can also specify any special winding by using of the Winding Editor function.
In Winding Editor, through modification of phase belonging, number of turns, in-slot and out-
slot number of each coil, it is possible to design single- and double-layer winding arrangement
for any purposes.
l Analyze Air-Gap Magnetic Field Distribution
For both uniform and non-uniform air gaps, Schwarz-Christopher Transformation is adopted
to solve for the air-gap magnetic field distribution.
l Analyze EMF Waveform and Total Harmonic Distortion (THD)
Based on the analysis of the air-gap magnetic field waveform, taking into account coil short
pitch, winding distribution, skew slot, winding connection, load effects and other factors, the
emf waveforms in the coils and the windings are analyzed to solve for the emf distortion
factors.
l Analyze Dynamic Parameters of Damping Winding
Different from the squirrel-cage winding of the induction machine, the damping winding of the
salient-pole synchronous machine is located in the surface of magnetic field poles, which
deviates greatly along the d- and the q-axes. Furthermore, the connection of damping bars
has several forms. The bars under each pole could be connected, but not connected with
those under other poles. All the bars could be connected together. The bars could be
connected through end-plate. RMxprt can deal with all those complicated situations and give
the dynamic parameters for the damping winding.
Related Topics
To access the solution data, right-click Analysis in the project tree, and click Add Solution Setup.
For this machine type, there is only one tab, the General tab.
The Solution Setup window contains the following fields:
Operation The operation type is automatically set to Motor for this machine type.
Type
Load Type Select from Const Speed, Const Power, Const Torque, Linear Torque, and
Related Topics
l Circuit data.
l Stator core data, such as the number of poles, diameter, and yoke thickness.
l Stator coil data, such as the slot liner thickness, number of parallel branches, and number of
l Shaft data.
l Solution data.
This motor type operates with shaft position feedback to synchronize the commutation of the phase
currents with precise rotor position. Typically, both the stator and the rotor are salient to increase the
torque-producing characteristics of the motor. The rotor has no windings; the torque is produced by
the alignment tendency of the rotor to the stator so that the stator flux linkage is maximized.
In these motors, the stator and rotor have different numbers of poles. The stator phase windings are
energized at precise moments synchronized with the position of the rotor. The task of energizing the
stator windings is performed by a complex electronic system.
The number of phases in the winding is the ratio of the stator number of poles to the smallest
common divider of the stator and the rotor number of poles.
In switched reluctance motors (SRM), the stator and the rotor have a different number of poles, and
the stator currents are commutated exactly according to rotor position. The signal of the rotor
position is obtained from a position sensor. The stator windings are triggered one by one, and
normally the current in a winding has finished or almost finished freewheeling when the next winding
is triggered. Therefore, the mutual effects between two phases can be neglected. The voltage
equation of one phase is:
where uT is the transistor or diode voltage drop, and Rs is the stator winding resistance. ( , i) is
the flux linkage of the winding at rotor position and winding current i, as is shown in Figure 8,
where the rotor position when the center of the rotor slot is aligned to the winding axis is defined as 0.
Let
and
Then
where e is the rotor speed in electrical rad/s, and p is the differential operator as given by:
The input electric power is computed from voltage and current as:
where Pfw, PCua, Pt, and PFe are frictional and wind loss, armature copper loss, transistor/diode
loss, and iron-core loss, respectively.
The average output mechanical shaft torque T2 is:
Use the General window to define the power settings, speed, and period of the motor.
To define the general data:
1. To open the General Data Properties window, double-click the Machine entry in the project
tree on the desktop. (You can also enter values in the Properties section of the desktop
without opening a separate window.)
2. Enter the energy loss due to friction at the given speed in the Frictional Loss field.
3. Enter the wind loss due to air resistance measured at the reference speed in the Wind Loss
field.
4. Enter the given speed in the Reference Speed field.
5. Select DC or CCC from the Control Type pull-down list.
6. Select a Circuit Type from the following types:
l Full-
Voltage
l Half-
Voltage
l Coupled-
Coil
The circuit types are based on industry standards. By default, type Full-Voltage, is selected
as the circuit type.
Note When you place the mouse cursor over a circuit type, an outline schematic of the circuit
appears.
7. Click OK to close the Properties window.
To access the general data, double-click the Machine entry in the project tree.
The General Data Properties window for a three-phase induction motor contains the following
fields:
Machine The machine type you selected when inserting a new RMxprt design (Switched
Type Reluctance Motor).
Frictional The frictional energy loss (due to friction) measured at the reference speed.
Loss
Wind The wind loss (due to air resistance) measured at the reference speed.
Loss
Reference The given speed of reference.
Speed
Control The way the circuit is controlled. Select from DC or CCC (chopped current control,
Type which forces the current to fall between the minimum and maximum values specified).
Circuit The drive circuit type. Click the button to open the Circuit Type window and select
Type from the following three types:
• Full-Voltage
• Half-Voltage
• Coupled-Coil
Use the Circuit Data Properties window to specify the rated output power, voltage values, circuit
type, and speed of the brushless DC motor.
To define the general data:
1. To open the Circuit Data Properties window, double-click the Machine-Circuit entry in the
project tree on the desktop. (You can also enter values in the Properties section of the
desktop without opening a separate window.)
2. Enter the trigger’s lead angle in electrical degrees in the Lead Angle of Trigger field. The
trigger angle is the point at which the magnetic poles interact to begin the motion of the motor.
An angle of 0 means that each phase is triggered when its axis is aligned with the rotor slot
center. The trigger’s lead angle is shown in the following plot of the open circuit induced
voltage versus position. An angle of 0 means that the induced voltage in the triggered phase is
at a maximum:
Note A positive value represents a lead angle, and a negative value represents a lag
angle.
3. Enter the period from on-status to off-status of a transistor, in electrical degrees, in the
Trigger Pulse Width field. The trigger pulse width is the width of the energizing pulse applied
to the winding, or the period for an ‘on’ status of the transistors. The maximum ‘on’ period is
given by 180 degrees plus the value for the lead angle of trigger.
4. Enter the voltage drop across one transistor when the transistor is turned on in the Transistor
Drop field. Refer to the figures of the different circuit types in step 2. This value is over one
conduction path when the transistors are triggered.
5. Enter the voltage drop on all anti-parallel diodes in the discharge path in the Diode Drop field.
If you selected a star-type circuit (S3 or S4) as the Circuit Type, enter the total discharge
voltage in this field.
6. If you selected CCC (chopped current control) as the Control Type, then enter the maximum
and minimum current values in the Maximum Current and Minimum Current fields.
7. Click OK to close the Properties window.
To access the Circuit Data Properties window, double-click the Machine>Circuit entry in the
project tree. When AC is selected at the Control Type, now circuit data properties exist.
Lead Angle of The trigger’s lead angle, in electrical degrees.
Trigger
Trigger Pulse The period from on-status to off-status for a transistor, in electrical degrees.
Width
Transistor Drop The voltage drop across one transistor when the transistor is turned on.
Diode Drop The voltage drop across one diode in the discharge loop.
Maximum The maximum current for the chopped current control. This field is not
Current available for a DC circuit.
Minimum The minimum current for the chopped current control. This field is not
Current available for a DC circuit.
The stator is the outer lamination stack where the polyphase voltage windings reside.
To define the general stator data:
1. To open the Stator Data Properties window, double-click the Machine>Stator entry in the
project tree on the desktop. (You can also enter values in the Properties section of the
desktop without opening a separate window.)
2. Enter the Outer Diameter of the stator.
3. Enter the Inner Diameter of the stator.
4. Enter the total length of the stator core in the Length field.
5. Enter the effective magnetic length of the core in the Stacking Factor field. This value
typically ranges from between 0.93 and 1.0, and is defined as the total length minus the total
lamination insulation, divided by the total length.
6. Select a Steel Type for the stator core:
a. Click the button for Steel Type.
The Select Definition window appears.
b. Select a steel type from the list, or define a new steel type.
c. Click OK to close the Select Definition window and return to the Properties window.
7. Enter the number of poles the stator core contains in the Number of Poles field.
8. Enter the pole embrace in the Embrace field. The pole embrace is the ratio of the actual pole
arc angle to the maximum possible pole angle in the field. This value ranges from between 0
and 1.
9. Enter the thickness of the stator coil yoke in the Yoke Thickness field.
10. Click OK to close the Properties window.
To access the general stator data, double-click the Machine>Stator entry in the project tree.
The Stator Data Properties window contains the following fields:
Outer The outer diameter of the stator core.
Diameter
Inner Diameter The inner diameter of the stator core.
Length The length of the stator core.
The stator coils provide the excitation for the rotating magnetic poles.
Use the Stator Coil window to define the parallel branches, wire specifications, and slot liner for the
stator coil.
To define the stator coils:
1. To open the Stator Slot Winding Properties window, double-click the Machine-Stator-
Winding entry in the project tree on the desktop. (You can also enter values in the Properties
section of the desktop without opening a separate window.)
2. Enter the thickness of the insulation between the stator core and the field winding in the
Insulation Thickness field.
3. Enter the end length adjustment of the stator coils in the End Adjustment field. The end
adjustment is the distance one end of the conductor extends vertically beyond the end of the
stator.
4. Select or enter the number of parallel branches in one phase of the winding in the Parallel
Branches field.
5. Enter the number of turns per stator pole in the Turns per Pole field.
6. Enter the number of wires per conductor in the Number of Strands field. Enter 0 to have
RMxprt auto-design this value.
7. Enter the thickness of the double-sided wire wrap in the Wire Wrap field. Enter 0 to
automatically obtain this value from the wire library.
b. Enter the conductor area ratio of the coupled circuit to the main circuit in the Coupled Ratio
field.
c. Click OK to close the Properties window.
Use the Gauge option in the Wire Size window if you have a conductor that is made up different
size wires.
To define different size wires:
1. In the Wire Size window, select MIXED from the Gauge pull-down menu.
2. Select either Round or Rectangular as the Wire Type.
3. Enter the appropriate wire data in the table:
l For a round wire:
To access the stator winding data, double-click the Machine-Stator-Winding entry in the project
tree.
The Stator Winding Data Properties window contains the following fields:
Insulation The thickness of the insulation between the stator core and the field winding.
Thickness
End The end length adjustment of the stator coils, which is the distance one end of the
Adjustment conductor extends vertically beyond the end of the stator.
Parallel The number of parallel branches in the stator winding.
Branches
Turns per The number of turns per stator pole (0 for auto-design).
Pole
Number of The number of wires per conductor (0 for auto-design).
Strands
Wire Wrap The thickness of the double-sided wire wrap (0 to automatically obtain this value
from the wire library).
Wire Size The diameter of the wire (0 for auto-design). Click the button to open the Wire Size
window where you can specify units, wire type, diameter, and gauge.
Coupled The conductor area ratio of the coupled circuit to the main circuit.
Ratio
The rotor core channels the flux generated by stator windings and provides shaft torque. The rotor
consists of copper bars in which current is induced by the magnetic fields produced by the stator
windings. Use the Rotor Data Properties window to define the air gaps, rotor dimensions, and
type of steel used in the rotor core. In the project tree, double-click Machine>Rotor to define the
rotor.
To define general rotor data:
1. To open the Rotor Data Properties window, double-click the Machine>Rotor entry in the
project tree on the desktop. (You can also enter values in the Properties section of the
desktop without opening a separate window.)
2. Enter the outer diameter of the rotor in the Outer Diameter field.
3. Enter the inner diameter of the rotor in the Inner Diameter field.
4. Enter the length of the rotor core in the Length field.
5. Select a Steel Type for the rotor core:
a. Click the button for Steel Type.
The Select Definition window appears.
b. Select a steel type from the list, or define a new steel type.
c. Click OK to close the Select Definition window and return to the Properties window.
6. Enter the effective magnetic length of the core in the Stacking Factor field. This value ranges
from 0 to 1, and is defined as the total length minus the total lamination insulation, divided by
the total length.
7. Enter the number of poles the rotor core contains in the Number of Poles field.
8. Enter the ratio of the actual pole angle in relation to the maximum possible pole angle in the
Embrace field. The value ranges from 0 to 1.
9. Enter the thickness of the rotor yoke in the Yoke Thickness field.
10. Click OK to close the Properties window.
To access the general rotor data, double-click the Machine-Rotor entry in the project tree.
The Rotor Data Properties window contains the following fields:
Outer The outer diameter of the rotor core.
Diameter
Inner Diameter The inner diameter of the rotor core.
Length The length of the rotor core.
Steel Type The steel type of the rotor core. Click the button to open the Select Definition
window.
Stacking The stacking factor of the rotor core.
Factor
Number of The number of poles the rotor core contains.
Poles
Embrace The rotor pole embrace.
Yoke The thickness of the rotor core yoke.
Thickness
To access the shaft data, double-click the Machine-Shaft entry in the project tree.
The Shaft Data Properties window contains the following fields:
Magnetic Select or clear this check box to indicate whether or not the shaft is made of
Shaft magnetic material.
Related Topics
To access the solution data, right-click Analysis in the project tree, and click Add Solution Setup.
For this machine type, there is only one tab, the General tab.
The Solution Setup window contains the following fields:
Operation The operation type is automatically set to Motor for this machine type.
Type
Load Type Select from Const Speed, Const Power, Const Torque, Linear Torque, and
Fan Load. The default is Const Power.
Rated Output Type a value for the rated output voltage, and select the units.
Power
Rated Voltage Type a value for the rated voltage, and select the units.
Rated Speed Type a value for the rated speed, and select the units.
Operating Type a value for the operating temperature, and select the units.
Temperature
Related Topics
l Stator data, such as the slot type and dimensions, stator diameter, and winding data.
l Rotor pole data, such as its associated dimensions, stacking factor, and magnet type.
l Shaft data.
l Solution data.
Synchronous motors use a three-phase sinusoidal voltage source to induce a rotating magnetic field
in the stator. Applying this three-phase sinusoidal voltage source to the stator winding of a
synchronous motor yields the rotational magnetic field in the air gap. The permanent magnet poles
mounted on the rotor try to align in this rotating field, producing a synchronous torque on the rotor.
Upon starting, the damping winding on the rotor generates the asynchronous starting torque,
creating a self-starting feature.
The phasor diagram for the line-start permanent-magnet synchronous motor (LSSM) in the
frequency domain is shown in Figure 6.
In Figure 6, R1, Xd, and Xq are armature resistance, d-axis synchronous reactance, and q-axis
synchronous reactance, respectively. Xd is the sum of leakage reactance, X1 and d-axis armature
reactance Xad, and Xq is the sum of X1 and q-axis armature reactance Xaq:
For a given torque angle , the angle that E0 lags U, we have the following:
The power factor angle (or torque angle) that I legs U, is:
The input power (electric power) can now be computed from voltage and current as:
where Pfw, PCu, and PFe are frictional and wind loss, armature copper loss, and iron-core loss,
respectively.
The output mechanical power (torque) T2 is:
The motor is started the same way as for an induction motor, by using a squirrel-cage-type winding --
called a damper winding in this case -- that is mounted on the rotor, producing the starting torque.
window.
Once analyzed, the model can be viewed in the Maxwell 2D Modeler, or it can be used to create a
new Maxwell 2D project, and a new Maxwell 3D design.
Use the General window to define the basic parameters of the motor, such as the motor’s rated
output power, rated voltage, losses, and connection type.
To define the general data:
1. To open the General Data Properties window, double-click the Machine entry in the project
tree on the desktop. (You can also enter values in the Properties section of the desktop
without opening a separate window.)
2. Enter the number of poles for the machine in the Number of Poles field. This value is the total
number of poles in the stator (or the number of pole pairs multiplied by two).
3. Enter the energy loss due to friction at the given speed in the Frictional Loss field.
4. Enter the wind loss due to air resistance measured at the reference speed in the Wind Loss
field.
5. Enter the given speed in the Reference Speed field.
6. Click OK to close the Properties window.
To access the general data, double-click the Machine entry in the project tree.
The General Data Properties window for a three-phase induction motor contains the following
fields:
Machine The machine type you selected when inserting a new RMxprt design (Line-Start
Type PM Synchronous Motor).
Number of The number of poles the machine contains.
Poles
Frictional The frictional energy loss (due to friction) measured at the reference speed.
Loss
Wind Loss The wind loss (due to air resistance) measured at the reference speed.
Reference The given speed of reference.
Speed
The stator is the outer lamination stack where the polyphase voltage windings reside.
Use the Stator Data, Stator Slot Data, and Stator Winding Data windows to define the stator
data, such as physical dimensions of the lamination, windings, and conductors.
To define the general stator data:
1. To open the Stator Data Properties window, double-click the Machine>Stator entry in the
project tree on the desktop. (You can also enter values in the Properties section of the
desktop without opening a separate window.)
2. Enter the Outer Diameter of the stator.
3. Enter the Inner Diameter of the stator.
4. Enter the length of the stator core in the Length field.
5. Enter the effective magnetic length of the core in the Stacking Factor field.
6. Select a Steel Type for the stator core:
a. Click the button for Steel Type.
The Select Definition window appears.
b. Select a steel type from the list, or define a new steel type.
c. Click OK to close the Select Definition window and return to the Properties window.
7. Enter the Number of Slots in the stator.
8. Select the Slot Type:
a. Click the button for the Slot Type.
The Select Slot Type window appears.
b. Select a slot type (available types include 1 through 4).
Note When you place the mouse cursor over the slot type, a schematic of the selected
type appears, displaying the slot dimension variables.
c. Click OK to close the Select Slot Type window and return to the Properties window.
9. Enter the skew width, measured in slot number, in the Skew Width field.
10. Click OK to close the Properties window.
To access the general stator data, double-click the Machine>Stator entry in the project tree.
The Stator Data Properties window contains the following fields:
Outer The outer diameter of the stator core.
Diameter
Inner The inner diameter of the stator core.
Diameter
Length The length of the stator core.
Stacking The stacking factor of the stator core.
Factor
Steel Type The steel type of the stator core. Click the button to open the Select Definition
window.
To access the stator slot data, double-click the Machine-Stator-Slot entry in the project tree.
The Stator Slot Data Properties window contains the following fields:
Auto Select or clear this to enable or disable auto-design of slots Hs2, Bs1, and Bs2. When
Design this check box is selected, only two other fields appear in the window: Hs0 and Bs0.
Parallel Select this to design Bs1 and Bs2 based on the tooth width. When this check box is
Tooth selected, the Bs1 and Bs2 fields are removed, and the Tooth Width field is added.
Tooth The tooth width for the parallel tooth, on which Bs1 and Bs2 are designed.
Width
Hs0 A slot dimension (see the diagram shown in the modeling window when Machine-
Stator-Slot is selected).
Hs1 A slot dimension (see the diagram shown in the modeling window when Machine-
Stator-Slot is selected).
Hs2 A slot dimension (see the diagram shown in the modeling window when Machine-
Stator-Slot is selected).
Bs0 A slot dimension (see the diagram shown in the modeling window when Machine-
Stator-Slot is selected).
Bs1 A slot dimension (see the diagram shown in the modeling window when Machine-
Stator-Slot is selected).
Bs2 A slot dimension (see the diagram shown in the modeling window when Machine-
Stator-Slot is selected).
Rs A slot dimension. (see the diagram shown in the modeling window when Machine-
Stator-Slot is selected). Rs is added when the slot type is 3 or 4.
Defining the Stator Windings and Conductors for a Line-Start PM Synchronous Motor
7. Enter the coil pitch, measured in number of slots, in the Coil Pitch field. The coil pitch is the
number of slots separating one winding. For example, if a coil starts in slot 1 and ends in slot 6,
it has a coil pitch of 5.
8. Enter the number of wires per conductor in the Number of Strands field. Enter 0 to have
RMxprt auto-design this value.
9. Enter the thickness of the double-sided wire wrap in the Wire Wrap field. Enter 0 to
automatically obtain this value from the wire library.
d. When you are done setting the wire size, click OK to close the Wire Size window and
return to the Properties window.
e. Click the End/Insulation tab.
f. Select or clear the Input Half-turn Length check box.
g. Do one of the following:
l If you selected Input Half-turn Length, then enter the half-turn length of the armature
coils in the End Adjustment field. The end adjustment is the distance one end of the
conductor extends vertically beyond the end of the stator.
11. Enter the inner radius of the base corner in the Base Inner Radius field.
12. Enter the inner diameter of the coil tip in the Tip Inner Diameter field.
13. Enter the distance between two stator coils in the End Clearance field.
14. Enter the thickness of the slot liner insulation in the Slot Liner field.
15. Enter the thickness of the wedge insulation in the Wedge Thickness field.
16. Enter the thickness of the insulation layer in the Layer Insulation field.
17. Enter the limited slot fill factor for the wire design in the Limited Fill Factor field. The slot fill
factor is the ratio between the cross-sectional area of all conductors in one slot and the entire
slot area.
18. Click OK to close the Properties window.
For a line-start synchronous motor, you may want to specify a different number of conductors for
each stator slot. The Winding Editor makes this possible by enabling you to specify the number of
turns for each coil.
To specify the number of turns for each coil:
1. Click Machine>Winding>Edit Layout.
The Winding Editor window appears.
2. In the table in the upper left, set which phase you want for each coil and which slot is the “in”
and “out” slot for the current in each coil.
3. If you are working on a quarter or half model, you may want to specify a multiplier by clicking
the Periodic Multiplier check box and specifying a value.
4. Select or deselect the Constant Turns or Constant Pitch check boxes, depending on
whether you want to be able to change these setting in the table above. When these options
are selected, you cannot change the turns or pitch.
5. When you are satisfied with the coil settings, click OK to close the Winding Editor window.
Use the Gauge option in the Wire Size window if you have a conductor that is made up different
size wires.
To define different size wires:
1. In the Wire Size window, select MIXED from the Gauge pull-down menu.
2. Select either Round or Rectangular as the Wire Type.
3. Enter the appropriate wire data in the table:
l For a round wire:
l Enter a Number in the table to specify how many of the conductor’s wires have this data.
To access the stator winding data, double-click the Machine-Stator-Winding entry in the project
tree.
The Stator Winding Data Properties window contains the following fields:
Winding tab Winding Layers The number of winding layers.
Winding Type The type of stator winding. Click the
button to open the Winding Type
window and choose from Whole
Coiled, Half Coiled, and Editor.
Parallel Branches The number of parallel branches in the
stator winding.
Conductors per Slot The number of conductors per stator slot
(0 for auto-design).
Coil Pitch The coil pitch measured in number of
slots.
Number of Strands The number of wires per conductor (0 for
auto-design).
Wire Wrap The thickness of the double-sided wire
wrap (0 to automatically obtain this value
from the wire library).
Wire Size The diameter of the wire (0 for auto-
design). Click the button to open the
Wire Size window where you can
specify units, wire type, diameter, and
gauge.
End/Insulation tab Input Half-turn Length Select or clear this check box to specify
To add a Vent to the stator, select the stator icon and right-click to display the pop-up menu with
Insert Vent.
The vent is shown in the project tree under the stator.
To remove an existing Vent, select the stator and right-click to display the up-up menu with Remove
Vent.
The Vent Data properties window contains the following fields.
The rotor consists of copper bars in which current is induced by the magnetic fields produced by the
stator windings. In the project tree, double-click Machine-Rotor and Machine-Rotor-Pole to
define the rotor and the pole.
To define general rotor data:
1. To open the Rotor Data Properties window, double-click the Machine>Rotor entry in the
project tree on the desktop. (You can also enter values in the Properties section of the
desktop without opening a separate window.)
2. Enter the outer diameter of the rotor in the Outer Diameter field.
3. Enter the inner diameter of the rotor in the Inner Diameter field.
4. Enter the length of the rotor core in the Length field.
5. Select a Steel Type for the rotor core:
a. Click the button for Steel Type.
The Select Definition window appears.
b. Select a steel type from the list, or define a new steel type.
c. Click OK to close the Select Definition window and return to the Properties window.
6. Enter the effective magnetic length of the rotor core in the Stacking Factor field. This value
ranges from 0 to 1 and is defined as the total length minus the total lamination insulation,
divided by the total length. A value of 1 indicates that the rotor is not laminated.
7. Select a Pole Type:
a. Click the button.
The Select Pole Type window appears.
b. Click a button to select the desired pole type (1, 2, 3, 4, 5, 6, 7, or 8). TIP: When you run
the mouse over each option, the diagram changes to show that pole type.
Note When you place the mouse cursor over a pole type, an outline of the selected
circuit type appears.
c. Click OK to close the Select Pole Type window and return to the Properties window.
8. Click OK to close the Properties window.
To access the general rotor data, double-click the Machine>Rotor entry in the project tree.
The Rotor Data Properties window contains the following fields:
Outer The outer diameter of the rotor core.
Diameter
Inner The inner diameter of the rotor core.
Diameter
Length The length of the rotor core.
Steel The steel type of the rotor core. Click the button to open the Select Definition window.
Type
Stacking The stacking factor of the rotor core.
Factor
Pole The pole type for the rotor. Click this button to open the Select Pole Type window and
Type select from the following types: 1, 2, 3, 4, 5, 6, 7, 8. When you mouse over each button,
a diagram appears for that pole type, showing the arrangement and dimensions.
The rotor pole drives the electromagnetic field which is coupled with the stator windings. Use the
Rotor Pole Data Properties window to define the rotor pole.
Note Some of the fields in the Rotor Pole window change, or are inactive, depending on the
Rotor Type you select.
To define the rotor pole:
1. To open the Rotor Pole Data Properties window, double-click the Machine-Rotor-Pole
entry in the project tree on the desktop. (You can also enter values in the Properties section
of the desktop without opening a separate window.)
2. Enter the limited diameter for the magnet ducts in the D1 field.
3. Enter one or more of the following magnet duct dimensions, depending on the pole type
selected: O1, O2, B1.
4. For all pole types except number 8, enter the width of the rib supporting the bridge in the Rib
field.
5. Select the type of magnet to use in the rotor pole:
To access the pole rotor data, double-click the Machine-Rotor-Pole entry in the project tree.
The Rotor Pole Data Properties window contains the following fields:
D1 The limited diameter for the magnet ducts. See the diagrams in the Select Pole Type
window for the location of each dimension and which pole types require which
dimensions.
O1 A magnet duct dimension. See the diagrams in the Select Pole Type window for the
location of each dimension and which pole types require which dimensions.
O2 A magnet duct dimension. See the diagrams in the Select Pole Type window for the
location of each dimension and which pole types require which dimensions.
B1 A magnet duct dimension. See the diagrams in the Select Pole Type window for the
location of each dimension and which pole types require which dimensions.
Rib The width of the rib at the center of two adjacent poles that support the bridge. For
pole types except number 8.
Magnet The type of magnet. Click the button to open the Select Definition window. For all
Type pole types.
Magnet The maximum width of the magnet. For all pole types.
Width
Magnet The maximum thickness of the magnet. For all pole types.
Thickness
l To add a damper, right-click on the rotor item in the project tree to display the pop-up menu
with Insert Damper.
l To remove an existing damper, right-click on the rotor icon in the project tree to display the
shortcut menu with Remove Damper.
The Damper Data properties window contains the following fields.
Slot Type Damper slot type. Click the field button open the Slot selection window and
select one of the four types.
Cast Rotor. Specify whether the rotor squirrel cage winding is cast.
Bar conductor Click the field button to open the Materials Selection window to specify the
type material for the bar conductor.
End Length Single side end extended bar length
End Ring Width Axial width of end ring.
End Ring Height Radial height of end ring
End Ring Click the field button to open the Materials Selection window to specify the
Conductor type material for the end ring conductor.
To access the shaft data, double-click the Machine-Shaft entry in the project tree.
The Shaft Data Properties window contains the following fields:
Magnetic Select or clear this check box to indicate whether or not the shaft is made of
Shaft magnetic material.
Related Topics
To access the solution data, right-click Analysis in the project tree, and click Add Solution Setup.
For this machine type, there is only one tab, the General tab.
The Solution Setup window contains the following fields:
Operation General tab. The operation type is automatically set to Motor for this machine
Type type.
Load Type General tab. Select from Const Speed, Const Power, Const Torque, Linear
Torque, and Fan Load. The default is Const Power.
Rated Output General tab. Type a value for the rated output voltage, and select the units.
Power
Rated General tab. Type a value for the rated voltage, and select the units.
Voltage
Rated Speed General tab. Type a value for the rated speed, and select the units.
Operating General tab. Type a value for the operating temperature, and select the units.
Temperature
Winding Line-Start PM Synchronous Motor tab. Select Wye or Delta from the
Connection Winding Connection pull-down list.
Related Topics
Universal Motors
After you have selected Universal Motors as your model type, enter the motor data to define the
following:
l General data, such as the number of poles, frictional loss, and reference speed.
l Stator pole and winding data, such as its associated pole dimensions, type of steel, and wire
definitions.
l Rotor data, such as the slot types and dimensions, rotor diameter, laminations, and windings
and conductors.
l Commutator and brush data, such as the commutator dimensions and brush length.
l Shaft data.
l Solution data.
For a DC motor, if its field winding is connected in series with its armature winding, it becomes a
series motor. When the polarity of the terminal voltage changes, the direction of the produced
electromagnetic torque does not change because the armature and the exciting currents alternate
their directions at the same time. That means the motor can operate not only with a DC source but
also with an AC source. Because it can operate with both DC and AC sources, a series motor is also
called universal motor (UniM).
For a universal motor, the stator is equipped with p pairs of coil-wound poles, creating P pairs of
alternating north and south poles. The coil excitation may be either AC or DC. The rotor is equipped
with a distributed winding connected to a commutator that revolves together with the rotor.
A system of brushes is kept in permanent electrical contact with the commutator. When AC or DC
current is applied to the rotor winding (via the brushes and commutator) a torque is produced by the
interaction of the rotor (armature) currents and the field produced by the stator poles.
The commutator causes the armature to create a magnetic flux distribution whose axis is
perpendicular to the axis of the field flux produced by the permanent magnets. For these motors, the
commutator acts as a mechanical rectifier.
The performance of a universal motor is analyzed in the frequency domain. The voltage equation of
a universal motor is:
where, Ra,Rf, and Rb are the armature resistance, field winding resistance, and the brush contact
resistance, respectively. La, Lf, and Maf are the armature self inductance, field winding self
inductance, and their mutual inductance, respectively, and are linearized nonlinear parameters. Gaa
and Gaf are the coefficients of motion induced voltages by the armature and field winding currents,
respectively, and are also linearized nonlinear parameters. is the radian frequency, and e the
rotor speed in electric rad/s. Z is equivalent input impedance. When the brush axis is aligned with q-
axis:
For a given rotor speed e, armature current can be computed based on the applied voltage U, as:
The input power (electric power) is directly computed from voltage and current as:
where Pfw, Pb, Pcua, Pcuf, and PFe are frictional and wind loss, brush drop loss, armature copper
loss, field winding copper loss, and iron-core loss, respectively.
The output mechanical shaft torque T2 is:
Once analyzed, the model can be viewed in the Maxwell 2D Modeler, or it can be used to create a
new Maxwell 2D project, and a new Maxwell 3D design.
Refer to the Universal Motor Problem application note, on the technical support page of the ANSYS
web site, for a specific example.
Use the General window to define the basic parameters of the universal motor such as the power
settings, speed, and rated voltage.
To define the general data:
1. To open the General Data Properties window, double-click the Machine entry in the project
tree on the desktop. (You can also enter values in the Properties section of the desktop
without opening a separate window.)
2. Enter the number of poles for the machine in the Number of Poles field. This value is the total
number of poles in the stator (or the number of pole pairs multiplied by two).
3. Enter the energy loss due to friction at the given speed in the Frictional Loss field.
4. Enter the wind loss due to air resistance measured at the reference speed in the Wind Loss
field.
5. Enter the given speed in the Reference Speed field.
6. Click OK to close the Properties window.
To access the general data, double-click the Machine entry in the project tree.
The General Data Properties window for a three-phase induction motor contains the following
fields:
Machine The machine type you selected when inserting a new RMxprt design (Switched
Type Reluctance Motor).
Number of Number of poles for this machine.
Poles
Frictional The frictional energy loss (due to friction) measured at the reference speed.
Loss
Wind Loss The wind loss (due to air resistance) measured at the reference speed.
Reference The given speed of reference.
Speed
Use the Stator Properties windows to define the stator dimensions, slots, windings, and
conductors.
The stator is the outer lamination stack where the polyphase voltage windings reside.
To define the general stator data:
1. To open the Stator Data Properties window, double-click the Machine>Stator entry in the
project tree on the desktop. (You can also enter values in the Properties section of the
desktop without opening a separate window.)
2. Enter the Outer Diameter of the stator.
3. Enter the overall width of the stator outer profile in the Overall Width field.
4. Enter the Inner Diameter of the stator.
5. Enter the length of the stator core in the Length field.
6. Enter the stacking factor for the stator core in the Stacking Factor field.
7. Select a Steel Type for the stator core:
a. Click the button for Steel Type.
The Select Definition window appears.
b. Select a steel type from the list, or define a new steel type.
c. Click OK to close the Select Definition window and return to the Properties window.
8. Click OK to close the Properties window.
To access the general stator data, double-click the Machine>Stator entry in the project tree.
The Stator Data Properties window contains the following fields:
Outer The outer diameter of the stator core.
Diameter
Overall Width The overall width of the stator outer profile.
Inner The inner diameter of the stator core.
Diameter
Length The length of the stator core.
Stacking The effective magnetic length of the stator core.
Factor
Steel Type The steel type of the stator core. Click the button to open the Select Definition
window.
The rotor pole drives the electromagnetic field which is coupled with the stator windings. Use the s
Stator Pole Data Properties window to define the stator pole.
To define the rotor pole:
1. To open the Stator Pole Data Properties window, double-click the Machine-Stator-Pole
entry in the project tree on the desktop. (You can also enter values in the Properties section
To access the stator pole data, double-click the Machine-Stator-Pole entry in the project tree.
The Stator Pole Data Properties window contains the following fields:
Embrace The pole embrace.
Offset The pole-arc center offset from the stator center (0 for a uniform air gap).
PoleWidth The minimum pole width.
Ty The yoke thickness.
Ts The shoe-tip thickness.
R1 The hole radius in the pole (0 for no hole).
R2 The radius of the pole side fillet.
R3 The radius of the center of the pole side fillet arcs.
R4 The radius of the shoe connecting arc (0 for auto-design or for a linear
connection).
R5 The inner radius of the screw hole between two poles (0 for no hole).
R6 The outer radius of the screw hole between two poles (0 for no hole).
4. Enter the number of parallel branches in the stator winding in the Parallel Branches field.
5. Enter the number of turns per stator pole in the Turns per Pole field. To auto-design the
number of turns, enter 0.
6. Enter the number of wires per conductor in the Number of Strands field. Enter 0 to have
RMxprt auto-design this value.
7. Enter the thickness of the double-sided wire wrap in the Wire Wrap field. Enter 0 to
automatically obtain this value from the wire library.
wire gauge.
This option sets the Wire Diameter to zero, and RMxprt automatically
AUTO calculates the optimal value. The diameter information is then written to the
output file when you analyze the design.
This option allows you to define a conductor that is made of different size wires.
MIXED For example, a single conductor may consist of 5 wires, 3 wires with a diameter
of 0.21mm and 2 with a diameter of 0.13mm.
The gauge number is based on AWG settings. You can create your own wire table using
Machine>Wire, and then you can select this wire table using the Tools>Options>Machine
Options command.
a. When you are done setting the wire size, click OK to close the Wire Size window and
return to the Properties window.
b. Enter the thickness of the wedge insulation in the Wedge Thickness field.
c. Enter the thickness of the insulation layer in the Layer Insulation field.
d. Enter the limited slot fill factor for the wire design in the Limited Fill Factor field. The slot fill
factor is the ratio between the cross-sectional area of all conductors in one slot and the entire
slot area.
e. Click OK to close the Properties window.
Note For example, if one conductor is made up of 5 wires, and 3 of those wires have a
diameter of 0.21mm, and the other 2 have a diameter of 0.13mm, then the mixed
wire size table will have two lines. The first line will list Diameter = 0.21 and Number
= 3. The second line will list Diameter = 0.13 and Number = 2. An equivalent wire
diameter is displayed as Wire Size value in the Winding tab in the Properties
window.
To access the stator winding data, double-click the Machine-Stator-Winding entry in the project
tree.
The Stator Winding Data Properties window contains the following fields:
Insulation The thickness of the insulation between the stator core and the field winding.
Thickness
End The end length adjustment of the stator coils, which is the distance one end of the
Adjustment conductor extends vertically beyond the end of the stator.
Parallel The number of parallel branches in the stator winding.
Branches
Turns per The number of turns per stator pole (0 for auto-design).
Pole
Number of The number of wires per conductor (0 for auto-design).
Strands
Wire Wrap The thickness of the double-sided wire wrap (0 to automatically obtain this value
from the wire library).
Wire Size The diameter of the wire (0 for auto-design). Click the button to open the Wire Size
window where you can specify units, wire type, diameter, and gauge.
The rotor is equipped with slots containing copper conductors that are connected to the commutator.
The commutator acts as a mechanical rectifier in the motor.
The rotor consists of copper bars in which current is induced by the magnetic fields produced by the
stator windings. In the project tree, double-click Machine>Rotor and Machine-Rotor-Pole to
define the rotor and the pole.
To define general stator data:
1. To open the Rotor Data Properties window, double-click the Machine>Rotor entry in the
project tree on the desktop. (You can also enter values in the Properties section of the
desktop without opening a separate window.)
2. Enter the stacking factor for the rotor core in the Stacking Factor field. This value relates to
the effective magnetic length of the core, and ranges from 0 to 1. It is defined as the total
length minus the total insulation from the laminations, divided by the total length. A value of 1
indicates that the rotor is not laminated.
3. Enter the number of slots in the rotor core in the Number of Slots field.
4. Select a Slot Type:
a. Click the button.
The Select Slot Type window appears.
b. Click a button to select the desired pole type (1, 2, 3, 4, 5, or 6). Though slots 3 and 4 are
visually similar, they differ in how the edges are constructed. Slot 3 has a tapered edge
leading from the slot opening to the main slot body. Slot 4 has a rounded edge at the same
location, where the quantity Hr1 defines the radius of the corner slot. TIP: When you run
the mouse over each option, the diagram changes to show that pole type.
c. Click OK to close the Select Slot Type window and return to the Properties window.
Optionally, check User Defined Slot if you wish to define the slot dimensions using the Slot
Editor.
5. Enter the outer diameter of the rotor core in the Outer Diameter field.
6. Enter the inner diameter of the rotor core in the Inner Diameter field.
7. Enter the length of the rotor core in the Length field.
8. Select a Steel Type for the rotor core:
a. Click the button for Steel Type.
The Select Definition window appears.
b. Select a steel type from the list, or define a new steel type.
c. Click OK to close the Select Definition window and return to the Properties window.
9. Enter the number of slots in the skew width in the Skew Width field.
10. Click OK to close the Properties window.
To access the general rotor data, double-click the Machine>Rotor entry in the project tree.
The Rotor Data Properties window contains the following fields:
Stacking The effective magnetic length of the rotor core.
Factor
Number The number of slots in the rotor core.
of Slots
Slot Type The rotor core slot type. Click the button to open the Select Slot Type window and
select from the following types: 1, 2, 3, 4, 5, 6.
Outer The outer diameter of the rotor core.
Diameter
Inner The inner diameter of the rotor core.
Diameter
To access the rotor slot data, double-click the Machine-Rotor-Slot entry in the project tree.
The Rotor Slot Data Properties window contains the following fields:
Auto Select or clear this to enable or disable auto-design of slots Hs2, Bs1, and Bs2. When
Design this check box is selected, only two other fields appear in the window: Hs0 and Bs0.
Parallel Select this to design Bs1 and Bs2 based on the tooth width. When this check box is
Tooth selected, the Bs1 and Bs2 fields are removed, and the Tooth Width field is added.
Tooth The tooth width for the parallel tooth, on which Bs1 and Bs2 are designed.
Width
Hs0 A slot dimension (see the diagram shown in the modeling window when Machine-
Rotor-Slot is selected).
Hs1 A slot dimension (see the diagram shown in the modeling window when Machine-
Rotor-Slot is selected).
Hs2 A slot dimension (see the diagram shown in the modeling window when Machine-
Rotor-Slot is selected).
Bs0 A slot dimension (see the diagram shown in the modeling window when Machine-
Rotor-Slot is selected).
Bs1 A slot dimension (see the diagram shown in the modeling window when Machine-
Rotor-Slot is selected).
Bs2 A slot dimension (see the diagram shown in the modeling window when Machine-
Rotor-Slot is selected).
Rs A slot dimension (see the diagram shown in the modeling window when Machine-
Rotor-Slot is selected).
Rs A slot dimension. (see the diagram shown in the modeling window when Machine-
Stator-Slot is selected). Rs is added when the slot type is 3 or 4.
5. Enter the number of virtual slots per each real slot in the Virtual Slots field. The rotor is
assumed to have two layers of conductors, an upper and a lower layer. Each layer of
conductors can have a number of windings, which are referred to as virtual slots.
Note For example, the upper and lower layer can have two windings each, which would
yield a virtual slot number of two; for a 12 slot machine, this would yield 24
commutation segments.
6. Enter the total number of conductors in each rotor slot in the Conductors per Slot field. This
value is the number of turns per coil multiplied by the number of layers. This value is the total
number of conductors in one real full rotor slot.
7. Enter the coil pitch, measured in number of slots, in the Coil Pitch field. The coil pitch is the
number of slots separating one winding. For example, if a coil starts in slot 1 and ends in slot 6,
it has a coil pitch of 5.
8. Enter the number of wires per conductor in the Number of Strands field. Enter 0 to have
RMxprt auto-design this value.
9. Enter the thickness of the double-sided wire wrap in the Wire Wrap field. Enter 0 to
automatically obtain this value from the wire library.
coils in the End Adjustment field. The end adjustment is the distance one end of the
5. Enter the inner radius of the base corner in the Base Inner Radius field.
6. Enter the inner diameter of the coil tip in the Tip Inner Diameter field.
7. Enter the distance between two rotor coils in the End Clearance field.
8. Enter the thickness of the slot liner insulation in the Slot Liner field.
9. Enter the thickness of the wedge insulation in the Wedge Thickness field.
10. Enter the thickness of the insulation layer in the Layer Insulation field.
11. Enter the limited slot fill factor for the wire design in the Limited Fill Factor field. The slot fill
factor is the ratio between the cross-sectional area of all conductors in one slot and the entire
slot area.
12. Select the type of equalizer connection from the Equalizer Connection pull-down menu.
Select from None, Half, or Full.
13. Click OK to close the Properties window.
Use the Gauge option if you have a conductor that is made up different size wires.
To define different size wires:
1. In the Wire Size window, select MIXED from the Gauge pull-down menu.
2. Select either Round or Rectangular as the Wire Type.
3. Enter the appropriate wire data in the table:
l For a round wire:
To access the stator winding data, double-click the Machine-Rotor-Winding entry in the project
tree.
The Rotor Winding Data Properties window contains the following fields:
Winding tab Winding Type The type of rotor winding. Click the
button to open the Winding Type
The commutator allows current transfer between DC terminals or brushes and the rotor coils,
providing the current to the system as a function of rotation. Due to the action of the commutator, the
corresponding magnetic field has a fixed distribution with respect to the stator.
To define the commutator and brush pairs:
1. To open the Commutator Data Properties window, double-click the
Machine>Commutator entry in the project tree on the desktop. (You can also enter values in
the Properties section of the desktop without opening a separate window.)
2. Click the Commutator tab.
3. Select Cylinder or Pancake Type as the Commutator Type.
Note When you place the mouse cursor over the commutator type, an outline of the
commutator appears.
4. For Cylinder commutators, do the following:
a. Enter the Commutator Diameter.
b. Enter the Commutator Length.
5. For Pancake commutators, do the following:
a. Enter the Outer Diameter.
b. Enter the Inner Diameter.
6. Enter the thickness of the insulation between two consecutive commutator segments in the
Commutator Insulation field.
7. Click the Brush tab.
To access the commutator and brush data, double-click the Machine>Commutator entry in the
project tree.
The Commutator Data Properties window contains the following fields:
Commutator Commutator The type of commutator. Click the button to open the Select
tab Type Commutator Type window and select from Cylinder or
Pancake.
Commutator For a Cylinder commutator type, the diameter of the commutator.
Diameter
Commutator For a Cylinder commutator type, the length of the commutator.
Length
Outer For a Pancake commutator type, the outer diameter of the
Diameter commutator.
Inner For a Pancake commutator type, the inner diameter of the
Diameter commutator.
Commutator The thickness of the insulation between the two commutator bars.
Insulation
Brush tab Brush Width The width of the brush.
To access the shaft data, double-click the Machine>Shaft entry in the project tree.
The Shaft Data Properties window contains the following fields:
Magnetic Select or clear this check box to indicate whether or not the shaft is made of
Shaft magnetic material.
Power
Const The torque remains constant regardless of the speed. In this case, Tload = Trated,
Torque given by the output power divided by the given rated speed.
Linear The torque increases linearly with speed. In this case, Tload = Trated * (n/nrated)
Torque where Trated is given by the output power divided by the given rated speed.
Fan The load varies nonlinearly with speed. In this case, Tload = Trated * (n/nrated)2
Load where Trated is given by the output power divided by the given rated speed.
4. Enter the output power developed at the shaft of the motor in the Rated Output Power field.
5. Enter the RMS line-to-line voltage in the Rated Voltage field.
6. Enter the desired output speed of the motor at the load point in the Rated Speed field.
7. Enter the temperature at which the system functions in the Operating Temperature field.
8. Click the Universal Motor tab.
9. Enter the Frequency, and select the units.
10. Click OK to close the Solution Setup window.
Related Topics
To access the solution data, right-click Analysis in the project tree, and click Add Solution Setup.
For this machine type, there is only one tab, the General tab.
The Solution Setup window contains the following fields:
Operation General tab. The operation type is automatically set to Motor for this machine
Type type.
Load Type General tab. Select from Const Speed, Const Power, Const Torque, Linear
Torque, and Fan Load. The default is Const Power.
Rated Output General tab. Type a value for the rated output voltage, and select the units.
Power
Rated General tab. Type a value for the rated voltage, and select the units.
Voltage
Rated Speed General tab. Type a value for the rated speed, and select the units.
Operating General tab. Type a value for the operating temperature, and select the units.
Temperature
Frequency Universal Motor tab. Enter a frequency in the Frequency field, and select the
units.
Related Topics
General DC Machines
After you have selected DC Machine as your model type, enter the motor data to define the
following:
l General data, such as the output power, rated voltage, speed, and machine type (motor or
generator).
l Stator data, such as its associated pole dimensions, type of steel, and pole magnet
specifications.
l Stator field data, such as shoe and pole insulation, dimensions, and winding information.
l Rotor data, such as the slot types and dimensions, rotor diameter, lamination, and wire
specifications.
l Commutator and brush data, such as the commutator type and dimensions and brush length.
l Shaft data.
l Solution data.
For a Direct-Current (DC) Electric Machine Design, either a generator or motor, the rotor is
equipped with a distributed winding -- called armature winding -- that is connected to a commutator
revolving together with the rotor.
The stator is equipped with p pairs of poles, which are excited by p pairs of shunt and/or series
windings. A shunt winding may be separately excited or self-excited. The separately excited shunt
winding is excited by a separate DC voltage source. The self-excited shunt winding is excited by the
terminal voltage of the armature winding and is connected in parallel with the armature winding. A
series winding is connected in series with the armature winding. If both self-excited shunt and series
windings are mounted on the stator poles, RMxprt assumes that the armature winding connects the
series winding in series first, then connects the shunt winding in parallel.
A system of brushes is kept in permanent electrical contact with the commutator. When DC current
is applied to the rotating armature winding via the brushes and commutator, a stationary magnetic
field distribution is created with the axis electrically perpendicular to the axis of the field produced by
the shunt and/or series windings. As a result, a torque is produced by the interaction of the fields
produced by the armature and exciting currents. For these brush commutating machines, the
commutator together with the brushes acts as a mechanical rectifier.
The field produced by the armature current is called armature reaction field. The armature reaction
field causes poor commutating and poor voltage distribution along commutator bars. In order to
improve commutating, commutating poles and winding can be equipped between two adjacent main
poles and compensating winding can be equipped under main poles.
The performance of a DC machine is computed by DC analysis.
where, Ub is the voltage drop of one-pair brushes, R1 is the total series resistance of the armature
branch, E is the back emf as given below:
where CEf and CEs, which depend on the saturation of the magnetic field, are the back-emf
coefficients in ohm.s/rad, is the rotor speed in mechanical rad/s, and If and Ia are the exciting
currents of the shunt and series windings, respectively.
For a given speed, armature current can be computed based on the terminal voltage U, as shown
below:
where CTf and CTs are the torque coefficients in Nm/A^2 which are numerically the same as CEf and
CEs, respectively. Tfw is the frictional and wind torque. The output power (mechanical power) is
where Pfw, PCua, Pb, and PFe are the frictional and wind loss, armature branch copper loss, brush
drop loss, iron-core loss and shunt winding copper loss, respectively. The efficiency is:
8. Double-click the Machine-Rotor-Winding entry in the project tree to define the rotor
conductors and windings.
9. Double-click the Machine-Commutator entry in the project tree to define the commutator
and brush data.
10. Double-click the Machine-Shaft entry in the project tree to define the magnetism of the shaft.
11. Optionally, right-click the Machine entry in the project tree and click Insert Housing to add a
machine housing.
12. Right-click Analysis in the project tree, and click Add Solution Setup to define the solution
data.
13. Choose File>Save to save the project.
14. Choose RMxprt>Analyze to analyze the design.
Note When you place the cursor over an entry field, a brief description of that field
appears in the status bar at the bottom of the RMxprt window.
Once analyzed, the model can be viewed in the Maxwell 2D Modeler, or it can be used to create a
new Maxwell 2D project, and a new Maxwell 3D design.
Refer to the DC Machine application note, on the technical support page of the ANSYS web site, for
a specific example of a problem using a DC machine.
Use the General window to define the basic parameters of the DC motor, such as the power
settings, speed, and rated voltage.
To define the general data:
1. To open the General Data Properties window, double-click the Machine entry in the project
tree on the desktop. (You can also enter values in the Properties section of the desktop
without opening a separate window.)
2. Enter the number of poles for the machine in the Number of Poles field. This value is the total
number of poles in the stator (or the number of pole pairs multiplied by two).
3. Enter the energy loss due to friction at the given speed in the Frictional Loss field.
4. Enter the wind loss due to air resistance measured at the reference speed in the Wind Loss
field.
5. Enter the given speed in the Reference Speed field.
6. Click OK to close the Properties window.
To access the general data, double-click the Machine entry in the project tree.
The General Data Properties window for a three-phase induction motor contains the following
fields:
Machine Type The machine type you selected when inserting a new RMxprt design (DC
Machine).
Number of The number of poles the machine contains.
Poles
Frictional Loss The frictional energy loss (due to friction) measured at the reference speed.
Wind Loss The wind loss (due to air resistance) measured at the reference speed.
Reference The given speed of reference.
Speed
Use the Stator Properties windows to define the stator dimensions, slots, windings, and
conductors.
The stator is the outer lamination stack where the polyphase voltage windings reside.
To define the general stator data:
1. To open the Stator Data Properties window, double-click the Machine>Stator entry in the
project tree on the desktop. (You can also enter values in the Properties section of the
desktop without opening a separate window.)
2. Enter the maximum diameter for a polygon-type frame in the Frame Outer Diameter field.
3. Enter the minimum outer width for a polygon-type frame in the Frame Overall Width field.
4. Enter the Frame Thickness.
5. Enter the Frame Length.
6. Select a steel type for the frame:
a. Click the button for Frame Material.
The Select Definition window appears.
b. Select a steel type from the list, or define a new steel type.
c. Click OK to close the Select Definition window and return to the Properties window.
7. Select a Pole Type:
a. Click the button.
The Select Pole Type window appears.
b. Click a button to specify the desired field type (either 1 or 2).
c. Click OK to close the Select Pole Type window and return to the Properties window.
8. Enter the length of the stator main pole in the Pole Length field.
9. Enter the effective magnetic length for the stator main pole in the Pole Stacking Factor field.
10. Select a steel type for the stator main pole:
a. Click the button for Pole Material.
The Select Definition window appears.
b. Select a steel type from the list, or define a new steel type.
c. Click OK to close the Select Definition window and return to the Properties window.
11. Enter the thickness of the pole press boards in the Press Board Thickness field.
12. If the pole press board is made of magnetic material, then select the Magnetic Press Board
check box.
13. Click OK to close the Properties window.
To access the general stator data, double-click the Machine>Stator entry in the project tree.
The Stator Data Properties window contains the following fields:
Frame Outer The maximum diameter for a polygon-type frame.
Diameter
Frame The minimum outer width for a polygon-type frame.
Overall Width
Frame The thickness of the frame.
Thickness
Frame The length of the frame.
Length
Frame The steel type of the frame. Click the button to open the Select Definition
Material window.
Pole Type The pole type of the stator. Click the button to open the Select Pole Type
window and select from the following two types: 1 and 2.
Pole Length The length of the stator main pole.
Pole Stacking The stacking factor of the stator main pole.
Factor
Pole Material The steel type of the stator main pole. Click the button to open the Select
Definition window.
Press Board The thickness of the pole press boards.
Thickness
Magnetic Whether or not the pole press board is made of magnetic material.
Press Board
The rotor pole drives the electromagnetic field which is coupled with the stator windings. Use the s
Stator Pole Data Properties window to define the stator pole.
To define the rotor pole:
1. To open the Stator Pole Data Properties window, double-click the Machine-Stator-Pole
entry in the project tree on the desktop. (You can also enter values in the Properties section
of the desktop without opening a separate window.)
Note For a two-pole machine, a pole embrace of 0.75 yields a magnet with a span of 135
degrees (based on 0.75*180 degrees).
2. Enter the inner diameter at the pole center in the Dmin field.
3. Enter the diameter at the pole tip in the Dmax field.
4. Enter the width of the pole arc with a uniform air gap in the Bp0 field. For an eccentric air gap,
enter 0.
5. Enter the width of the pole tip in the Bp1 field.
6. Enter the maximum width of the pole shoe in the Bp2 field. This field is only available for a Pole
Type of 1.
7. Enter the minimum width of the pole shoe in the Bp3 field. This field is only available for a Pole
Type of 1.
8. Enter the size of the pole shoe fillet in the Rp0 field. THis field is only available for a Pole Type
of 2.
9. Enter the fillet between the pole shoe and the pole body in the Rp1 field. THis field is only
available for a Pole Type of 2.
10. Enter the pole shoe height in the Hp field.
11. Enter the pole body width in the Bm field.
12. Click OK to close the Properties window.
To access the stator pole data, double-click the Machine-Stator-Pole entry in the project tree.
The Rotor Pole Data Properties window contains the following fields:
Dmin The inner diameter at the pole center.
Dmax The diameter at the pole tip.
Bp0 The width of the pole arc with a uniform air gap (0 for an eccentric air
gap).
Bp1 The width of the pole tip.
Bp2 The maximum width of the pole shoe. For pole type 1.
Bp3 The minimum width of the pole shoe. FOr pole type 1.
Rp0 The pole shoe fillet. For pole type 2.
Rp1 The fillet between the pole shoe and the pole body. For pole type 2.
Hp The height of the pole shoe.
Bm The width of the pole body.
1. To open the Stator Field Properties window, double-click the Machine-Stator-Field entry
in the project tree on the desktop. (You can also enter values in the Properties section of the
desktop without opening a separate window.)
2. Enter the thickness of the insulation under the pole shoe in the Shoe Insulation field.
3. Enter the thickness of the insulation at the pole body side in the Pole Insulation field.
4. Enter the minimum gap in the Winding Clearance field. The winding clearance is one of the
following: the minimum gap between two field windings, or the minimum gap between a field
winding and a commutating winding.
5. Enter the thickness of the insulation between the shunt winding and the series winding in the
Winding Insulation field.
6. Select the type of exciting of the series winding to the shunt winding from the Compound
Exciting Mode pull-down list. The options are Cumulative and Differential.
7. Click OK to close the Properties window.
To access the stator field data, double-click the Machine-Stator-Field entry in the project tree.
The Stator Field Data Properties window contains the following fields:
Shoe The thickness of the insulation under the pole shoe.
Insulation
Pole The thickness of the insulation at the pole body side.
Insulation
Winding The minimum air gap between two field windings, or the minimum gap between a
Clearance field winding and a commutating winding.
Winding The thickness of the insulation between the shunt winding and the series winding.
Insulation
Compound The cumulative exciting or differential exciting of the series winding to the shunt
Exciting winding. Select Cumulative or Differential from the pull-down list.
Mode
By option you can insert or remove a shunt from a General DC Machine. If you insert a shunt, it
appears in the project tree under the stator field data.
To insert a shunt.
1. Right click on the Field icon under the stator in the project tree to display the popup menu.
2. Click Insert Shunt.
The Shunt icon appears under the field icon.
To Remove an existing shunt:
1. Right click on the Field icon under the stator in the project tree to display the popup menu.
2. Click Remove Shunt.
The shut is removed from the project tree.
The Shunt data for a General DC Machine contains the following fields.
Winding Specified as Round, Cylinder coil, or Edgewise coil, by clicking the button to display
type the Winding Type selection window.
Parallel Number of parallel branches.
branches
Conductors Number of conductors per pole. 0 for auto-design. Odd number of strands for the
per pole case where the input and output leads are on different sides.
Number of Number of strands (number of wires per conductor). 0 for auto-design.
strands
Wire wrap Double side wire wrap thickness. 0 for auto-pickup in the wire library.
Wire size. Click the button to display the Wire Size selection window.
Axial Axial gap between field winding and pole body on the inner coil.
Clearance
Limited Limited cross section width for winding design or arrangement. 0 for available
cross width maximum area.
Limited Limited cross section height for winding design or arrangement. 0 for available
cross maximum area.
height
Winding
fillet.
By option, you can insert or remove a series from a General DC Machine. If you insert a series, it
appears in the project tree under the stator field data.
To insert a series:
1. Right click on the Field icon under the stator in the project tree to display the popup menu.
2. Click Insert Series.
The Series icon appears under the field icon.
To Remove an existing series:
1. Right click on the Field icon under the stator in the project tree to display the popup menu.
2. Click Remove Series.
The series is removed from the project tree.
The Series data for a General DC Machine contains the following fields.
Winding Specified as Round, Cylinder coil, or Edgewise coil, by clicking the button to display
type the Winding Type selection window.
Parallel Number of parallel branches.
branches
Conductors Number of conductors per pole. 0 for auto-design. Odd number of strands for the
per pole case where the input and output leads are on different sides.
Number of Number of strands (number of wires per conductor). 0 for auto-design.
strands
Wire wrap Double side wire wrap thickness. 0 for auto-pickup in the wire library.
Wire size. Click the button to display the Wire Size selection window.
Axial Axial gap between field winding and pole body on the inner coil.
Clearance
Limited Limited cross section width for winding design or arrangement. 0 for available
cross width maximum area.
Limited Limited cross section height for winding design or arrangement. 0 for available
cross maximum area.
height
Winding
fillet.
Slots per pole Number of slots per pole for the compensating winding.
Bc0 Opening width of the compensating slots.
Hc0 Opening height of the compensating slots.
Bc2 Width of the compensating slots.
Hc2 Height of the compensating slots.
Commutating must be inserted under the stator by right-clicking on the stator icon to display the pop-
up menu, and click Insert Commutating command. This command also inserts an icon in the
project tree for an associated winding.
To remove an existing Commutating (and associated winding), right-click on the stator icon to
display the pop-up menu and click Remove Commutating. This removes the commutating and the
associated winding.
Note: This is distinct from the general Commutator data associated with rotor.
If you have inserted commutating for a General DC machine, an additional winding icon appears in
the project tree for the associated winding.
Winding Specified as Round, Cylinder coil, or Edgewise coil, by clicking the button to display
type the Winding Type selection window.
Parallel Number of parallel branches.
branches
Conductors Number of conductors per pole. 0 for auto-design. Odd number of strands for the
per pole case where the input and output leads are on different sides.
Number of Number of strands (number of wires per conductor). 0 for auto-design.
strands
Wire wrap Double side wire wrap thickness. 0 for auto-pickup in the wire library.
Wire size. Click the button to display the Wire Size selection window.
Axial Axial gap between field winding and pole body on the inner coil.
Clearance
Limited Limited cross section width for winding design or arrangement. 0 for available
cross width maximum area.
Limited Limited cross section height for winding design or arrangement. 0 for available
cross maximum area.
height
Winding
fillet.
The rotor is equipped with slots containing copper conductors that are connected to the commutator.
The commutator acts as a mechanical rectifier in the motor.
The rotor consists of copper bars in which current is induced by the magnetic fields produced by the
stator windings. In the project tree, double-click Machine>Rotor and Machine-Rotor-Pole to
define the rotor and the pole.
To define general stator data:
1. To open the Rotor Data Properties window, double-click the Machine>Rotor entry in the
project tree on the desktop. (You can also enter values in the Properties section of the
desktop without opening a separate window.)
2. Enter the stacking factor for the rotor core in the Stacking Factor field. This value relates to
the effective magnetic length of the core, and ranges from 0 to 1. It is defined as the total
length minus the total insulation from the laminations, divided by the total length. A value of 1
indicates that the rotor is not laminated.
3. Enter the number of slots in the rotor core in the Number of Slots field.
4. Select a Slot Type:
a. Click the button.
The Select Slot Type window appears.
b. Click a button to select the desired slot type (1, 2, 3, 4, 5, or 6). Though slots 3 and 4 are
visually similar, they differ in how the edges are constructed. Slot 3 has a tapered edge
leading from the slot opening to the main slot body. Slot 4 has a rounded edge at the same
location, where the quantity Hr1 defines the radius of the corner slot. TIP: When you run
the mouse over each option, the diagram changes to show that pole type.
c. Click OK to close the Select Slot Type window and return to the Properties window.
Optionally, check User Defined Slot if you wish to define the slot dimensions using the Slot
Editor.
To access the general rotor data, double-click the Machine>Rotor entry in the project tree.
The Rotor Data Properties window contains the following fields:
Stacking Factor The effective magnetic length of the rotor core.
Number of Slots The number of slots the rotor core contains.
Slot Type The type of slots in the rotor core. Click the button to open the Select Slot
Type window.
Lamination The number of lamination sectors.
Sectors
Outer Diameter The outer diameter of the rotor core.
Inner Diameter The inner diameter of the rotor core.
Length The length of the rotor core.
Steel Type The steel type of the rotor core. Click the button to open the Select
Definition window.
Press Board The thickness of the pole press boards.
Thickness
Skew Width The skew width measured in slot number.
To access the rotor slot data, double-click the Machine-Rotor-Slot entry in the project tree.
The Rotor Slot Data Properties window contains the following fields:
Auto Select or clear this to enable or disable auto-design of slots Hs2, Bs1, and Bs2. When
Design this check box is selected, only two other fields appear in the window: Hs0 and Bs0.
Parallel Select this to design Bs1 and Bs2 based on the tooth width. When this check box is
Tooth selected, the Bs1 and Bs2 fields are removed, and the Tooth Width field is added.
Tooth The tooth width for the parallel tooth, on which Bs1 and Bs2 are designed.
Width
Hs0 A slot dimension (see the diagram shown in the modeling window when Machine-
Rotor-Slot is selected).
Hs1 A slot dimension (see the diagram shown in the modeling window when Machine-
Rotor-Slot is selected).
Hs2 A slot dimension (see the diagram shown in the modeling window when Machine-
Rotor-Slot is selected).
Bs0 A slot dimension (see the diagram shown in the modeling window when Machine-
Rotor-Slot is selected).
Bs1 A slot dimension (see the diagram shown in the modeling window when Machine-
Rotor-Slot is selected).
Bs2 A slot dimension (see the diagram shown in the modeling window when Machine-
Rotor-Slot is selected).
Rs A slot dimension (see the diagram shown in the modeling window when Machine-
Rotor-Slot is selected).
Rs A slot dimension. (see the diagram shown in the modeling window when Machine-
Stator-Slot is selected). Rs is added when the slot type is 3 or 4.
5. Enter the number of virtual slots per each real slot in the Virtual Slots field. The rotor is
assumed to have two layers of conductors, an upper and a lower layer. Each layer of
conductors can have a number of windings, which are referred to as virtual slots.
Note For example, the upper and lower layer can have two windings each, which would
yield a virtual slot number of two; for a 12 slot machine, this would yield 24
commutation segments.
6. Enter the total number of conductors in each rotor slot in the Conductors per Slot field. This
value is the number of turns per coil multiplied by the number of layers. This value is the total
number of conductors in one real full rotor slot.
7. Enter the coil pitch, measured in number of slots, in the Coil Pitch field. The coil pitch is the
number of slots separating one winding. For example, if a coil starts in slot 1 and ends in slot 6,
it has a coil pitch of 5.
8. Enter the number of wires per conductor in the Number of Strands field. Enter 0 to have
RMxprt auto-design this value.
9. Enter the thickness of the double-sided wire wrap in the Wire Wrap field. Enter 0 to
automatically obtain this value from the wire library.
coils in the End Adjustment field. The end adjustment is the distance one end of the
5. Enter the inner radius of the base corner in the Base Inner Radius field.
6. Enter the inner diameter of the coil tip in the Tip Inner Diameter field.
7. Enter the distance between two rotor coils in the End Clearance field.
8. Enter the thickness of the slot liner insulation in the Slot Liner field.
9. Enter the thickness of the wedge insulation in the Wedge Thickness field.
10. Enter the thickness of the insulation layer in the Layer Insulation field.
11. Enter the limited slot fill factor for the wire design in the Limited Fill Factor field. The slot fill
factor is the ratio between the cross-sectional area of all conductors in one slot and the entire
slot area.
12. Select the type of equalizer connection from the Equalizer Connection pull-down menu.
Select from None, Half, or Full.
13. Click OK to close the Properties window.
Use the Gauge option if you have a conductor that is made up different size wires.
To define different size wires:
1. In the Wire Size window, select MIXED from the Gauge pull-down menu.
2. Select either Round or Rectangular as the Wire Type.
3. Enter the appropriate wire data in the table:
l For a round wire:
To access the rotor winding data, double-click the Machine-Rotor-Winding entry in the project
tree.
The Rotor Winding Data Properties window contains the following fields:
Winding tab Winding Type The type of rotor winding. Click the
button to open the Winding Type
By option, you can insert or remove Vent data for general DC machines. If you have inserted a Vent,
the icon appears under the rotor winding in the project tree.
To insert a vent:
1. Right-click on the rotor icon to display the pop-up menu.
2. Click Insert Vent.
To remove an existing vent:
1. Right click on the Stator icon to display the pop-up menu.
2. Click Remove Vent.
The Vent Data Properties window contains the following fields.
The commutator allows current transfer between DC terminals or brushes and the rotor coils,
providing the current to the system as a function of rotation. Due to the action of the commutator, the
corresponding magnetic field has a fixed distribution with respect to the stator.
To define the commutator and brush pairs:
1. To open the Commutator Data Properties window, double-click the
Machine>Commutator entry in the project tree on the desktop. (You can also enter values in
the Properties section of the desktop without opening a separate window.)
2. Click the Commutator tab.
3. Select Cylinder or Pancake Type as the Commutator Type.
Note When you place the mouse cursor over the commutator type, an outline of the
commutator appears.
4. For Cylinder commutators, do the following:
a. Enter the Commutator Diameter.
b. Enter the Commutator Length.
5. For Pancake commutators, do the following:
a. Enter the Outer Diameter.
b. Enter the Inner Diameter.
6. Enter the thickness of the insulation between two consecutive commutator segments in the
Commutator Insulation field.
7. Click the Brush tab.
8. Enter the Brush Width.
9. Enter the Brush Length.
10. Enter the number of brush pairs when using a wave armature winding in the Brush Pairs
field.
11. Enter the angle of displacement from the neutral axis, in mechanical degrees, in the Brush
Displacement field.
Note The brush displacement is positive for the counter-clockwise direction. For example,
if the rotor turns clockwise and the brush displacement is also clockwise, then the
angle is negative; if the rotor turns clockwise but the brush displacement is counter-
clockwise, then the angle is positive.
12. Enter the voltage drop across one brush pair in the Brush Drop field.
13. Enter the mechanical pressure of the brushes as they press against the commutator in the
Brush Press field.
14. Enter the Frictional Coefficient of the brush.
Note If the Friction Loss field is used in the General window, the Brush Press and
Frictional Coefficient fields will be hidden in the Commutator/Brush window.
These fields are shown only when the Friction Loss field in the General window is
set to zero.
15. Click OK to close the Properties window.
To access the commutator and brush data, double-click the Machine>Commutator entry in the
project tree.
The Commutator Data Properties window contains the following fields:
Commutator Commutator The type of commutator. Click the button to open the Select
tab Type Commutator Type window and select from Cylinder or
Pancake.
Commutator For a Cylinder commutator type, the diameter of the commutator.
Diameter
Commutator For a Cylinder commutator type, the length of the commutator.
Length
Outer For a Pancake commutator type, the outer diameter of the
Diameter commutator.
Inner For a Pancake commutator type, the inner diameter of the
Diameter commutator.
Commutator The thickness of the insulation between the two commutator bars.
Insulation
Brush tab Brush Width The width of the brush.
Brush The length of the brush.
Length
Brush Pairs The number of brush pairs.
Brush The displacement of the brush from the neutral position, in
Displacement mechanical degrees (positive for anti-rotating direction).
Brush Drop The voltage drop across a one-pair brush.
Brush Press The brush press per unit area. (Available only when Frictional
Loss is set to zero for the machine.)
To access the shaft data, double-click the Machine>Shaft entry in the project tree.
The Shaft Data Properties window contains the following fields:
Magnetic Select or clear this check box to indicate whether or not the shaft is made of magnetic
Shaft material. When selected, the shaft is magnetic. Default is unchecked for PM_
INTERIOR rotor type.
Frictional The frictional loss measured at the Reference Speed.
Loss
Windage The Windage Loss (or Power for wind power generators) measured at the
Loss or Reference Speed.
Power
Reference The speed at which the friction and windage losses are measured. Default is 3600
Speed rpm for PM_INTERIOR and AXIAL_CAGE rotor types.
3. Select the Load Type used in the motor from the following options:
Const The speed remains constant in the motor.
Speed
Const The output power remains constant in the motor.
Power
Const The torque remains constant regardless of the speed. In this case, Tload = Trated,
Torque given by the output power divided by the given rated speed.
Linear The torque increases linearly with speed. In this case, Tload = Trated * (n/nrated)
Torque where Trated is given by the output power divided by the given rated speed.
Fan The load varies nonlinearly with speed. In this case, Tload = Trated * (n/nrated)2
Load where Trated is given by the output power divided by the given rated speed.
4. Enter the output power in the Rated Output Power field.
5. Enter the applied or output rated DC voltage in the Rated Voltage field.
6. Enter the given rated speed in the Rated Speed field.
7. Enter the temperature at which the system functions in the Operating Temperature field.
8. Click the DC Machine tab.
9. Select one of the following from the Field Exciting Type pull-down list:
l Separately Excited
l Self Excited
Related Topics
To access the solution data, right-click Analysis in the project tree, and click Add Solution Setup.
For this machine type, there is only one tab, the General tab.
The Solution Setup window contains the following fields:
Operation General tab. Select Motor or Generator from the pull-down list.
Type
Load Type On the General tab. For a motor, select from Const Speed, Const Power,
Const Torque, Linear Torque, and Fan Load. The default is Const Power. For
a generator, select from Infinite Bus and Independent Generator.
Rated General tab. Type a value for the rated output voltage, and select the units.
Output
Power
Rated General tab. Type a value for the rated voltage, and select the units.
Voltage
Rated Speed General tab. Type a value for the rated speed, and select the units.
Operating General tab. Type a value for the operating temperature, and select the units.
Temperature
Field DC Machine tab. Select Separately Excited or Self Excited from the pull-down
Exciting list.
Type
Determined Select this check box to automatically calculate the Exciting Voltage and the
by Rated Series Resistance from the Rated Speed, rather than entering the values.
Speed
Exciting Enter a voltage value in the field, and select the units from the pull-down list.
Voltage
Series Enter a resistance value in the field, and select the units from the pull-down list.
Resistance
Related Topics
Claw-Pole Alternators
After you have selected Claw-Pole Alternators as your model type, enter the motor data to define
the following:
l General data, such as the output power, rated voltage, and speed.
l Stator data.
l Rotor data, such as the slot types and dimensions, rotor diameter, and lamination.
l Shaft data.
l Solution data.
Claw-pole alternators (or claw-pole synchronous generators) are widely used in auto industry. They
receive mechanical energy at the shaft and transform it into electrical energy.
The stator of a claw-pole alternator is equipped with a polyphase winding. The rotor is comprised of
claw poles with the same pole number as the stator winding. The claw poles of the rotor are
magnetized by a cylinder winding and/or a cylinder permanent magnet. The spinning rotor creates a
rotating magnetic field in the air gap, which produces induced voltage in the stator winding.
The performance of a claw-pole alternator is analyzed based on the frequency-domain phasor
diagram, as shown in the figure below.
If a claw-pole alternator is equipped with a permanent magnet, the d-axis armature reactance Xad
and q-axis armature reactance Xaq are about constant. Otherwise, Xad is a linearized nonlinear
parameter, and Xaq is a linear parameter. The d-axis synchronous reactance Xd and q-axis
synchronous reactance Xq are calculated directly from the following:
If the rotor is equipped with an excitation winding, the exciting current can be adjusted, and the d-
and the q-axis currents are obtained based on the following process.
Take the input voltage U as the reference phasor, let the power factor angle be f, then the current
phasor is
The phasor represented by OM can be expressed as
Let denote the power angle (the angle that U lags E0), then the angle that I lags E0 is
In the phasor diagrams, the phasor length ON represents the d-axis back emf due to the d-axis
resultant flux linkage and is used to determine the d-axis field saturation. From the no-load
characteristic curve of the magnetic circuit, E0, Xad and the excitation current If can be determined
based on the frozen method.
If the rotor is equipped with a permanent magnet only, the field excitation can not be adjusted, and
the d- and the q-axis currents are obtained based on the following process.
For a given power angle (the angle that U lags E0), we have
where Pfw, PCua, PFe, , and PCuf are the frictional and wind, the armature copper, the iron-core, the
excitation winding copper (if an excitation winding is equipped) losses, respectively.
The input mechanical torque is
4. Double-click the Machine-Stator-Slot entry in the project tree to define the stator slot
dimensions.
5. Double-click the Machine-Stator-Winding entry in the project tree to define the stator
windings and conductors.
6. Double-click the Machine-Rotor entry in the project tree to define the rotor geometry.
7. Double-click the Machine-Rotor-Pole entry in the project tree to define the pole, embrace,
offset, and air gap data for the rotor pole.
8. Double-click the Machine-Shaft entry in the project tree to define the magnetism of the shaft.
9. Optionally, right-click the Machine entry in the project tree and click Insert Housing to add a
machine housing.
10. Right-click Analysis in the project tree, and click Add Solution Setup to define the solution
data.
11. Choose File>Save to save the project.
12. Choose RMxprt>Analyze to analyze the design.
Note When you place the cursor over an entry field in the data windows, a brief
description of that field appears in the status bar at the bottom of the RMxprt
window.
Once analyzed, the model can be viewed in the Maxwell 2D Modeler, or it can be used to create a
new Maxwell 2D project, and new Maxwell 3D design.
Refer to the Claw-Pole Alternator Problem application note, on the technical support page of the
ANSYS web site, for a specific example of a permanent-magnet DC motor problem.
Use the General window to define the basic parameters of the alternator, such as the power
settings, speed, and rated voltage.
To define the general data:
1. To open the General Data Properties window, double-click the Machine entry in the project
tree on the desktop. (You can also enter values in the Properties section of the desktop
without opening a separate window.)
2. Enter the number of poles for the machine in the Number of Poles field. This value is the total
number of poles in the stator (or the number of pole pairs multiplied by two).
3. Enter or select the Number of Phases (2, 3, or 4).
4. Enter the energy loss due to friction at the given speed in the Frictional Loss field.
5. Enter the wind loss due to air resistance measured at the reference speed in the Wind Loss
field.
6. Enter the given speed in the Reference Speed field.
7. Click OK to close the Properties window.
To access the general data, double-click the Machine entry in the project tree.
The General Data Properties window for a three-phase induction motor contains the following
fields:
Machine Type The machine type you selected when inserting a new RMxprt design (Claw-Pole
Synchronous Machine).
Frictional The frictional energy loss (due to friction and air resistance) measured at the
Loss reference speed.
Number of The number of poles the machine contains.
Poles
Number of The number of phases.
Phases
Wind Loss The wind loss measured at the reference speed.
Reference The given speed of reference.
Speed
Use the Stator Properties windows to define the stator dimensions, slots, windings, and
conductors.
The stator is the outer lamination stack where the polyphase voltage windings reside.
To define the general stator data:
1. To open the Stator Data Properties window, double-click the Machine>Stator entry in the
project tree on the desktop. (You can also enter values in the Properties section of the
desktop without opening a separate window.)
2. Enter the Outer Diameter of the stator.
3. Enter the Inner Diameter of the stator.
4. Enter the length of the stator core in the Length field.
5. Enter the stacking factor for the stator core in the Stacking Factor field. This value is a ratio
of he effective magnetic length of the core, and ranges from 0 to 1. The stacking factor is
defined as the total length minus the total insulation from the laminations, divided by the total
length. A value of 1 indicates that the rotor is not laminated.
6. Select a Steel Type for the stator core:
a. Click the button for Steel Type.
The Select Definition window appears.
b. Select a steel type from the list, or define a new steel type.
c. Click OK to close the Select Definition window and return to the Properties window.
7. Enter the Number of Slots in the stator.
8. Select the Slot Type:
Optionally, check User Defined Slot if you wish to define the slot dimensions using the Slot
Editor.
c. Click OK to close the Select Slot Type window and return to the Properties window.
9. Enter the skew width, measured in slot number, in the Skew Width field.
10. Click OK to close the Properties window.
To access the general stator data, double-click the Machine>Stator entry in the project tree.
The Stator Data Properties window contains the following fields:
Outer The outer diameter of the stator core.
Diameter
Inner The inner diameter of the stator core.
Diameter
Length The length of the stator core.
Stacking The stacking factor of the stator core.
Factor
Steel Type The steel type of the stator core. Click the button to open the Select Definition
window.
Number of The number of slots the stator core contains.
Slots
Slot Type The type of slots in the stator core. Click the button to open the Select Slot Type
window.
Skew Width The skew width measured in slot number.
3. Optionally, to design dimensions of slots Bs1 and Bs2 based on the stator tooth width, select
the Parallel Tooth check box, and enter a value in the Tooth Width field.
4. Enter the available slot dimensions.
Hs0 Always available.
Hs2 Available only when Auto Design is cleared. When Auto Design is selected, this slot
dimension is determined automatically.
Bs0 Always available.
Bs1 Available only when Auto Design and Parallel Tooth are both cleared. When Auto
Design is selected, this slot dimension is determined automatically. When Parallel
Tooth is selected, this slot dimension is determined based on the value entered in the
Tooth Width field.
Bs2 Available only when Auto Design and Parallel Tooth are both cleared. When Auto
Design is selected, this slot dimension is determined automatically. When Parallel
Tooth is selected, this slot dimension is determined based on the value entered in the
Tooth Width field.
Rs Rs is added when the slot type is 3 or 4.
5. Click OK to close the Properties window.
To access the stator slot data, double-click the Machine-Stator-Slot entry in the project tree.
The Stator Slot Data Properties window contains the following fields:
Auto Select or clear this to enable or disable auto-design of slots Hs2, Bs1, and Bs2. When
Design this check box is selected, only two other fields appear in the window: Hs0 and Bs0.
Parallel Select this to design Bs1 and Bs2 based on the tooth width. When this check box is
Tooth selected, the Bs1 and Bs2 fields are removed, and the Tooth Width field is added.
Tooth The tooth width for the parallel tooth, on which Bs1 and Bs2 are designed.
Width
Hs0 A slot dimension (see the diagram shown in the modeling window when Machine-
Stator-Slot is selected).
Hs1 A slot dimension (see the diagram shown in the modeling window when Machine-
Stator-Slot is selected).
Hs2 A slot dimension (see the diagram shown in the modeling window when Machine-
Stator-Slot is selected).
Bs0 A slot dimension (see the diagram shown in the modeling window when Machine-
Stator-Slot is selected).
Bs1 A slot dimension (see the diagram shown in the modeling window when Machine-
Stator-Slot is selected).
Bs2 A slot dimension (see the diagram shown in the modeling window when Machine-
Stator-Slot is selected).
Rs A slot dimension. (see the diagram shown in the modeling window when Machine-
Stator-Slot is selected). Rs is added when the slot type is 3 or 4.
coils in the End Adjustment field. The end adjustment is the distance one end of the
5. Enter the inner radius of the base corner in the Base Inner Radius field.
6. Enter the inner diameter of the coil tip in the Tip Inner Diameter field.
7. Enter the distance between two stator coils in the End Clearance field.
8. Enter the thickness of the slot liner insulation in the Slot Liner field.
9. Enter the thickness of the wedge insulation in the Wedge Thickness field.
10. Enter the thickness of the insulation layer in the Layer Insulation field.
11. Enter the limited slot fill factor for the wire design in the Limited Fill Factor field. The slot fill
factor is the ratio between the cross-sectional area of all conductors in one slot and the entire
slot area.
12. Click OK to close the Properties window.
For a claw-pole alternator, you may want to specify a different number of conductors for each stator
slot. The Winding Editor makes this possible by enabling you to specify the number of turns for
each coil.
To specify the number of turns for each coil:
1. Click Machine>Winding>Edit Layout.
The Winding Editor window appears.
2. In the table in the upper left, set which phase you want for each coil and which slot is the “in”
and “out” slot for the current in each coil.
3. If you are working on a quarter or half model, you may want to specify a multiplier by clicking
the Periodic Multiplier check box and specifying a value.
4. Select or deselect the Constant Turns or Constant Pitch check boxes, depending on
whether you want to be able to change these setting in the table above. When these options
are selected, you cannot change the turns or pitch.
5. When you are satisfied with the coil settings, click OK to close the Winding Editor window.
Use the Gauge option in the Wire Size window if you have a conductor that is made up different size
wires.
To define different size wires:
1. In the Wire Size window, select MIXED from the Gauge pull-down menu.
2. Select either Round or Rectangular as the Wire Type.
3. Enter the appropriate wire data in the table:
l For a round wire:
6. When you are finished defining the wires, click OK to close the Wire Size window and return
to the RMxprt Properties window.
Note For example, if one conductor is made up of 5 wires, and 3 of those wires have a
diameter of 0.21mm, and the other 2 have a diameter of 0.13mm, then the mixed
wire size table will have two lines. The first line will list Diameter = 0.21 and Number
= 3. The second line will list Diameter = 0.13 and Number = 2. An equivalent wire
diameter is displayed as Wire Size value in the Winding tab in the Properties
window.
To access the stator winding data, double-click the Machine-Stator-Winding entry in the project
tree.
The Stator Winding Data Properties window contains the following fields:
Winding tab Winding Layers The number of winding layers.
Winding Type The type of stator winding. Click the
button to open the Winding Type
window and choose from Whole
Coiled, Half Coiled, and Editor.
Parallel Branches The number of parallel branches in the
stator winding.
Conductors per Slot The number of conductors per stator slot
(0 for auto-design).
Coil Pitch The coil pitch measured in number of
slots.
Number of Strands The number of wires per conductor (0 for
auto-design).
Wire Wrap The thickness of the double-sided wire
wrap (0 to automatically obtain this value
from the wire library).
Wire Size The diameter of the wire (0 for auto-
design). Click the button to open the
Wire Size window where you can
specify units, wire type, diameter, and
gauge.
End/Insulation tab Input Half-turn Length Select or clear this check box to specify
whether or not you want to enter the
half-turn length. When this check box is
selected, the Half Turn Length field
appears the next time you open the
Properties window. When this check
The rotor is equipped with slots containing copper conductors that are connected to the commutator.
The commutator acts as a mechanical rectifier in the motor.
The rotor consists of copper bars in which current is induced by the magnetic fields produced by the
stator windings. In the project tree, double-click Machine-Rotor and Machine-Rotor-Pole to
define the rotor and the pole.
To define general rotor data:
1. To open the Rotor Data Properties window, double-click the Machine>Rotor entry in the
project tree on the desktop. (You can also enter values in the Properties section of the
desktop without opening a separate window.)
2. Enter the outer diameter of the rotor in the Outer Diameter field.
3. Enter the inner diameter of the rotor in the Inner Diameter field.
4. Enter the length of the rotor core in the Length field.
5. Select a Steel Type for the rotor core:
a. Click the button for Steel Type.
The Select Definition window appears.
b. Select a steel type from the list, or define a new steel type.
c. Click OK to close the Select Definition window and return to the Properties window.
6. Enter the diameter of the rotor yoke in the Yoke Diameter field.
7. Click OK to close the Properties window.
To access the general rotor data, double-click the Machine>Rotor entry in the project tree.
The Rotor Data Properties window contains the following fields:
Outer The outer diameter of the rotor core.
Diameter
Inner The inner diameter of the rotor core.
Diameter
Length The length of the rotor core.
Steel Type The steel type of the rotor core. Click the button to open the Select Definition
window.
Yoke The diameter of the rotor yoke.
Diameter
The rotor pole drives the electromagnetic field which is coupled with the stator windings. Use the
Rotor Pole Data Properties window to define the rotor pole.
Note Some of the fields in the Rotor Pole window change, or are inactive, depending on the
Rotor Type you select.
To define the rotor pole:
1. To open the Rotor Pole Data Properties window, double-click the Machine-Rotor-Pole
entry in the project tree on the desktop. (You can also enter values in the Properties section
of the desktop without opening a separate window.)
2. Enter the pole embrace at the pole tip in the Tip Embrace field. This value must be between 0
and 1, exclusive.
3. Enter the pole embrace at the pole root in the Root Embrace field. This value must be
between 0 and 2, exclusive.
4. Enter the pole thickness at the pole tip in the Tip Thickness field.
5. Enter the pole thickness at the pole root in the Root Thickness field.
6. Enter the Pole Length.
7. Enter the Slot Depth.
8. Enter the Shoe Thickness.
9. Select the type of magnet to use in the rotor pole from the Magnet Type pull-down menu.
10. If a magnet is being used, enter its length in the Magnet Length field.
11. Enter the width of the second air gap in the Second Air Gap field.
12. Click OK to close the Properties window.
To access the pole rotor data, double-click the Machine-Rotor-Pole entry in the project tree.
The Rotor Pole Data Properties window contains the following fields:
Tip Embrace The pole embrace at the pole tip. Must be > 0 and < 1.
Root The pole embrace at the pole root. Must be > 0 and < 2.
Embrace
Tip The pole thickness at the pole tip.
Thickness
Root The pole thickness at the pole root.
Thickness
Pole Length The length of the pole.
Slot Depth The slot depth.
Shoe The shoe thickness.
Thickness
Magnet Type The type of magnet. Click the button to open the Select Definition window. For
all pole types.
Magnet The length of the magnet (if a magnet is used).
Length
Second Air The width of the second air gap.
Gap
To access the shaft data, double-click the Machine>Shaft entry in the project tree.
The Shaft Data Properties window contains the following fields:
Magnetic Select or clear this check box to indicate whether or not the shaft is made of
Shaft magnetic material.
10. To enter an Input Exciting Current, select the check box, enter a value, and select the units.
11. Click OK to close the Solution Setup window.
Related Topics
To access the solution data, right-click Analysis in the project tree, and click Add Solution Setup.
For this machine type, there is only one tab, the General tab.
The Solution Setup window contains the following fields:
Operation General tab. Select Motor or Generator from the pull-down list. Generator is
Type automatically selected for this machine type
Load Type On the General tab. Select from Infinite Bus and Independent Generator.
Rated General tab. Type a value for the rated output voltage, and select the units.
Output
Power
Rated General tab. Type a value for the rated voltage, and select the units.
Voltage
Rated Speed General tab. Type a value for the rated speed, and select the units.
Operating General tab. Type a value for the operating temperature, and select the units.
Temperature
Rated Power Claw-Pole Synchronous Machine tab. Type a value in the field.
Factor
Input Select this check box, enter a value, and select the units. If this check box is
Exciting cleared, the value will be calculated automatically rather than entered.
Current
Related Topics
l Stator pole and winding data, such as its associated pole dimensions, type of steel, and wire
definitions.
l Rotor data, such as the slot types and dimensions, rotor diameter, laminations, and windings
and conductors.
l Commutator and brush data, such as the commutator dimensions and brush length.
l Shaft data.
l Optional machine housing.
l Solution data.
Also see Analysis Approach for the Three-Phase Non-Salient Synchronous Machine
The three-phase non-salient-pole synchronous electric machine has two types: the generator and
the motor. Their basic structures are the same. The three-phase non-salient-pole synchronous
generators are the main source of the electrical energy for industrial, commercial, and private use.
They receive the mechanical energy at the shaft and transform it into the electrical energy. The rotor
is equipped with a non-salient-pole winding excited by a DC source. The stator is equipped with a
three-phase winding that has a sinusoidal spatial distribution. The spinning rotor produces a rotating
magnetic field in the air gap of the machine. The frequency of the voltage induced in the stator is
given by:
where p is the number of pairs of poles, and n is the mechanical speed of the rotor in rpm, which is
called the synchronous speed. The machine is capable of producing both the active and the reactive
power as required by the load connected at the stator terminal.
Usually the frequency-domain phasor diagram is adopted to analyze the characteristics. The phasor
diagrams for a generator and a motor are shown.
In the figure, R1, X1, and Xa are the armature resistance, the armature leakage reactance, and the
armature reactance, respectively. In a non-salient-pole synchronous machine, Xad≅Xaq and they
are both expressed by Xa. Taking the input voltage U as the reference phasor, for a given current:
where ϕ is the angle I lags U , which is called the power factor angle.
The internal back EMF induced by the resultant air gap field considering the effects of armature
reaction Ei can be derived from:
Based on Ei, the resultant air gap flux considering the effects of armature reaction can be computed,
and therefore, the magnetic circuit can be solved. With solved magnetic saturation factor, saturated
Xa is derived, and therefore, the no-load induced voltage E0 with the same magnetic saturation
(frozen magnetic circuit) can be calculated from:
Let the angle U legs E0 be θ, which is called the power angle for the generator or the torque angle for
the motor, then the angle I lags E0 is
Based on the magnetic circuit solution and E0, Xa and the excitation current If can be determined
based on the frozen method.
1. For the generator:
The output power (electric power) is directly computed from the voltage and the current as:
where Pfw, PCua, PFe, Padd, Pcuf and Pex are the frictional and wind loss, the armature copper loss,
the iron-core loss, the additional loss, the field winding copper loss, and the exciter loss, respectively.
The input mechanical shaft torque is:
where Pfw, PCua, PFe, Padd, Pcuf and Pex are the frictional and wind loss, the armature copper loss,
the iron-core loss, the additional loss, the field winding copper loss, and the exciter loss, respectively.
The output mechanical shaft torque is:
The efficiency is computed for both the generator and the motor by:
Related Topics
The general procedure for defining a three-phase non-salient synchronous machine is as follows:
1. Create the non-salient synchronous machine project.
2.
After you have selected Three-Phase Non-Salient Synchronous Machine as your model type,
you must define the following:
l General data, such as number of poles, losses, and reference speed.
l Winding data, such as the parallel branches, conductors, and wire dimensions and insulation.
l Rotor data, such as the rotor dimensions, lamination and slot type.
l Solution data, such as specifying motor or generator application, and rated output voltage and
frequency.
You may also use the following options:
l Add a machine housing.
To access the general data, double-click the Machine entry in the project tree.
The Properties window for a three-phase non-salient synchronous machine contains the following
fields to be entered:
Machine The machine type you selected when inserting a new RMxprt design (Three Phase
Type Non-Salient Synchronous Machine).
Number The number of poles the machine contains. This value is the total number of poles in
of Poles the stator (or the number of pole pairs multiplied by two).
Frictional The frictional energy loss (due to friction) measured at the reference speed.
Loss
Windage The windage loss (due to air resistance) measured at the reference speed.
Loss
Reference The given speed of reference.
Speed
Related Topics
The stator is the outer lamination stack where the three-phase windings reside.
Double-click the icon Machine>Stator in the project tree to display the Properties dialog box.
The Properties window contains the following fields:
Outer Diameter The outer diameter of the stator.
Inner Diameter The inner diameter of the stator.
Length The length of the stator core.
Stacking Factor The stacking factor of the stator core.
Steel Type The steel type of the stator core. Click the button to open the Select
Definition window.
Number of Slots The number of slots the stator core contains.
Slot Type The type of slots in the stator core. Click the button to open the Select Slot
Type window.
Lamination The number of lamination sectors.
Sectors
Pressboard The magnetic press board thickness (enter 0 for a non-magnetic press
Thickness board).
Skew Width The skew width measured in slot number.
To define general stator data:
1. To open the Stator Data Properties window, double-click the Machine>Stator entry in the
project tree on the desktop. (You can also enter values in the Properties section of the
desktop without opening a separate window.)
2. Enter the Outer Diameter of the stator.
3. Enter the Inner Diameter of the stator.
4. Enter the length of the stator core in the Length field.
5. Enter the stacking factor for the stator core in the Stacking Factor field.
6. Select a Steel Type for the stator core:
a. Click the button for Steel Type.
The Select Definition window appears.
b. Select a steel type from the list, or define a new steel type.
c. Click OK to close the Select Definition window and return to the Properties window.
7. Enter the Number of Slots in the stator.
8. Select the Slot Type:
Optionally, check User Defined Slot if you wish to define the slot dimensions using the Slot
Editor.
c. Click OK to close the Select Slot Type window and return to the Properties window.
9. Enter the number of sectors in the Lamination Sectors field.
10. Enter the thickness of the magnetic pressboard in the Pressboard Thickness field. Enter 0
for a non-magnetic pressboard.
11. Enter the skew width, measured in slot number, in the Skew Width field.
12. Click OK to close the Properties window.
Related Topics
Related Topics
Double-click the icon Machine>Stator>Winding in the project tree to display the Properties dialog
box, which has two tab sheets: Winding and End/Insulation.
In the Winding tab, define the wire, conductor and winding of the stator.
Winding The number of layers in the stator winding. Select the winding layers from the pull-
Layers down list (available choices 1 and 2).
Winding The type of the stator winding. Set the winding type to Editor to use the Winding
Type Editor dialog to design the coil windings
Parallel The number of parallel branches in one phase of the stator winding.
Branches
Conductors The total number of conductors in each stator slot. This value is the number of turns
per Slot per coil multiplied by the number of layers. Enter 0 to have RMxprt auto-design this
value.
Coil Pitch The coil pitch measured in number of slots. The coil pitch is the number of slots
separating one winding. For example, if a coil starts in slot 1 and ends in slot 6, it has
a coil pitch of 5.
Number of The number of wires per conductor. Enter 0 to have RMxprt auto-design this value.
Strands
Wire Wrap The thickness of the double-sided wire wrap. Enter 0 to automatically obtain this
value from the wire library.
Wire Size Wire size (0 for auto-design). You can assign wire size of round wires or rectangle
wires. When the slot type you selected is 1 to 4, round wires are used. When the slot
type you selected is 5 or 6, rectangle wires are used.
Related Topics
In the tab sheet End/Insulation, define the end winding and the insulation of the stator.
Input Half- Select or clear this check box to specify whether or not you want to enter the half-
turn turn length. When this check box is selected, the row Half Turn Length appears
Length the next time you open the Properties dialog box. When this check box is cleared,
the row End Adjustment appears instead.
Half-turn The half-turn length of the armature winding. It is available when Input Half-turn
Length Length is selected.
End The end length adjustment of the stator coils, which is the distance of one end of the
Adjustment conductor extending vertically beyond the end of the stator. It is available when
Input Half-turn Length is cleared.
Base Inner The inner radius of the base corner.
Radius
Tip Inner The inner diameter of the coil tip.
Diameter
End The end clearance between two adjacent stator coils.
Clearance
Coil Wrap Single-side coil wrap insulation thickness.
Slot Liner The thickness of the slot liner insulation.
Wedge The thickness of the wedge insulation.
Thickness
Layer The thickness of the insulation layer.
Insulation
Bottom Bottom insulation thickness.
Insulation
Related Topics
Winding Editor
For a non-salient synchronous motor, you may want to specify a different number of conductors for
each stator slot. The Winding Editor makes this possible by enabling you to specify the number of
turns for each coil. To enable the Winding Editor, you must have set the Winding Property for the
Winding Type to Editor.
Double-click the icon Machine>Rotor in the project tree to display the Properties dialog box, which
has one tab sheet: Rotor. In the Rotor tab, define the rotor general data.
Outer Diameter The outer diameter of the rotor core.
Inner Diameter The inner diameter of the rotor core.
Length The length of the rotor core.
Stacking Factor Stacking factor of the rotor core.
Steel Type Select a steel type for the rotor core material.
Press Board Magnetic press board thickness, 0 for non-magnetic press board.
Thickness
Indexing Slots Number of indexing slots of the rotor core used to determine slot
pitch.
Real Slots Number of Slots of the rotor core.
Slot Type Slot type of the rotor core. There are six types of rotor slots.
Double-click the icon Machine>Rotor>Slot in the project tree to display the Properties dialog box.
In the Slot tab, define the available rotor slot dimensions as illustrated. There are in total six types of
slots that are available:
Related Topics
The rotor winding is equipped on the rotor pole to provide the excitation for the magnetic field.
Double click the icon Machine>Rotor>Winding in the project tree to display the Properties dialog
box, where you define the wires and physical dimensions of the rotor winding.
In the Winding tab, the following are defined:.
Parallel The number of parallel branches in the rotor winding.
Branches
Related Topics
1. Right click the icon Analysis in the project tree, then click Add Solution Setup from the shortcut
menu to display the dialog box Properties. There are two tab sheets.
2. On the General tab, define the solution setup data.
Operation Two options from the pull-down list: Generator and Motor.
Type
Load Type Select a load type for the motor or generator from the pull-down list (refer to
section 7.8 Assign Load Types).
Rated The output electric apparent power in kVA developed at the terminal for the
Apparent generator, or
Power Rated Output Power: The output mechanical power in kW developed at
the shaft for the motor.
Rated The RMS line-to-line voltage.
Voltage
Rated Speed The desired synchronous speed.
Operating The temperature at which the system functions, and select the units. The
Temperature Operating Temperature will affect all winding resistances and therefore
affect all ohmic losses.
3. On the NSSM tab, define the connection data:
Rated The rated power factor. For generators, the rated output power is determined
Power by the rated apparent power multiplying the rated power factor.
Factor
Winding Select Wye or Delta from the pull-down list.
Connection
Exciter The percentage efficiency of the exciter used to supply the rotor winding with
Efficiency the DC current if it is mechanically connected to the shaft of the generator.
The efficiency value ranges between 0% and 100% and will only affect the
total efficiency result.
Input If the check box is selected, the companying edit box is enabled. You need to
Exciting input the exciting current value and select the units if needed.
Current
Exciting Exciting current for rated operation.
Current
4. Click OK to close the pop-up dialog box
When RMxprt has completed a solution, you can display and analyze the results in the following
ways:
View Performance
l Field Winding
l Important Factors
l Material Consumption
l Rated Operation
l Stator Slot
l Stator Winding
l Transient Data
In the tab sheet Design Sheet, you have 12 sets of information, as follows:
l General Data
l Stator Data
l Rotor Data
View Curves
In the tab sheet Curves, from the pull-down list Name, you have 10 curves as shown:
Note To print the plots from the Curve: Right click on the plot, select Print from the shortcut
menu, select the printer and other parameters from the dialog box Print, and click OK to
print.
Create Reports
2. Under the tab sheet Trace, there are Variables, Output Variables, Current, Misc,
Percentage, and Power under the Category column. Select one from the Category
column, select the traces that belong to it from the Quantity column, and click the button Add
Trace to add them one by one. Finally click the button New report to create the plot. You can
always add additional curves to the same plot by repeating the process.
3. Double click the icon Results>XY Plot1 to display the graph with multiple traces in a new
window.
Note To print the plots from the Curves: Right click on the plot, select Print from the
shortcut menu, select the printer and other parameters from the dialog box Print,
and click OK to print.
To get a screen shot of from the Curves: Right click on the plot, select Copy Image,
then paste to a destination file.
If you expect to continue the transient or electromagnetic-field FEA with Maxwell2D, you can create
a Maxwell2D design directly from RMxprt. For transient FEA, RMxprt can create a Maxwell2D
design with all setups completed.
This section reviews all setups automatically completed by RMxprt. For detailed setup process,
please refer to APPENDIX Setup Maxwell 2D Designs.
Click Maxwell 2D>Solution Type… in Maxwell2D, you can review that the Solution Type is set as
Magnetic Transient.
Model Setup
1. Model Depth
Click Maxwell 2D>Design Setting… in Maxwell2D and click Set Model Depth… tab to
review the Model Depth: 3590 mm.
2. Motion Type
Double click on Maxwell2DDesign1>Model>MotionSetup1 in the Project Manager
window. In the Type tab you can review the Motion Type being set as Rotation, and the
Moving Vector as Positive Global: Z.
3. Initial Position
In the Data tab of the Motion Setup panel you can review the Initial Position being set as
100 deg with Rotate Limit unchecked. The rotor initial position is set to such a position that
the initial flux linkage of the phase-A winding is at its negative maximum value.
4. Mechanical Load
In the Mechanical tab of the Motion Setup panel you can review the Angular Velocity
being set as 3000 rpm with Consider Mechanical Transient unchecked.
5. Symmetry Multiplier
Right click on Maxwell2DDesign1>Model in the Project Manager window, and select Set
Geometry Multiplier in the pop-up panel, you can review that the Symmetry Multiplier is
set as 2.
Boundary Setup
Material Assignment
In the Maxwell2D modeler windows history tree, you can see that all stator and rotor coil terminals
are assigned to material copper by default. Band, InnerRegion and OuterRegion are assigned as
vacuum as shown:
Excitation Setup
1. Windings
Click on Maxwell2DDesign1>Excitations>PhaseA in the Project Manager window, all
objects assigned to this phase are highlighted in the modeler window. In the Properties
window, you can review all winding properties: Voltage for Winding Type; Stranded for
IsSolid; 0.00226117 ohms for Resistance; 8.87325e-005 H for Inductance; 1 for Number
of Parallel Branches; 11267.7 * sin(2*pi*50*time-43.4944*pi/180) for Voltage, where 50 is
the frequency in Hz, 11267.7 is the phase peak voltage in Volts, pi is a predefined constant,
and time is a predefined variable for time. By using sin function instead of cos function, the
applied voltage and back EMF are in phase. Therefore, a phase shift in the applied voltage
source will be the power angle of the motor. 43.4944 degrees is the power angle at full load
operation. The values for resistance, inductance and number of parallel branches are
obtained from the TRANSIENT FEA INPUT DATA section in RMxprt design sheet.
Clicking on PhaseB, PhaseC, or Field, you can review all objects assigned to this winding in
the modeler window, and winding properties in the Properties window.
2. Coil Terminals
A winding consists of several coil terminals, and two coil terminals represent a coil in a
complete 2D model. Since we are working with only one-half of the motor structure, one coil
terminal can represent one complete coil with master/slave boundary conditions provided. A
coil terminal has properties of Number of Conductors and Polarity Type. Number of
Conductors is the number of turns per coil, and it is equal to the Number of Turns given in
RMxprt divided by number of coils per phase. Polarity Type defines the direction of the
current in the coil; it can be either positive or negative. Expand a winding and click on a coil
terminal, you can review the object corresponding to this coil terminal in the modeler window
and all coil terminal properties in the Properties window. In this example, Number of
Conductors of A, B, and C coil terminals is assigned as 1, and it is 12 for the Field windings.
Click on PhaseB, PhaseC, or Field, you can review all objects assigned to this winding in the
modeler window, and winding properties in the properties window.
3. Y Connection for Three-Phase Windings
Right click on Maxwell2DDesign1>Excitations in the Project Manager Window, and click
Setup Y Connection… in the pop-up panel, you can review the Y -connection setup.
Maxwell2D mesh maker can create meshes according to predefined mesh operations. A mesh
operation defines one or more conditions for some selected objects for mesh maker to create
meshes that satisfy the conditions. RMxprt automatically sets up some mesh operations for different
machine parts based on geometry sizes. For this example, mesh operations include Length_Coil
(set maximum mesh length as 18 mm for all coils), Length_Field (set maximum mesh length as 19
mm for field winding coils), Length_Main (set the maximum mesh length as 135 mm for all other
parts), SurfApprox_Main (set the limited Surface Deviation as 1.175 mm and the limited Normal
Deviation as 30 deg for all parts with true-surface arcs).
Click on one of the mesh operations under Maxwell2DDesign1>Mesh Operations in the Project
Manager window, you can review its properties in the Properties window.
Solution Setup
Before analyzing the Maxwell2D design, you may want to Apply Mesh Operations and Plot Mesh.
You may also want to create several Quick Reports to display results.
Add X makers in Torque Quick Report to indicate the steady-state maximum and minimum values of
torque as shown below. The average torque can be approximately obtained from the maximum and
minimum values as Tav = (Tmax + Tmin) / 2 = (10.63 + 7.33) / 2 = 8.98 Nm.
Type, and cores for inner rotor are available for Rotor Type.
l Similarly, when an outer rotor structure is selected, all cores for inner stator are available for
Stator Type, and cores for outer rotor are available for Rotor Type.
l When an axial-flux structure is selected, all cores for axial-flux stator are available for Stator
Type, and cores for axial-flux rotor are available for Rotor Type.
l For SLOT_AC and AXIAL_AC core types, you can select the machine with or without
For the derived machine types with Full solution output, RMxprt:
l Computes and displays machine performance data and performance curves.
For the derived machine types with Partial solution output, RMxprt allows you to create Maxwell
2D/3D designs only.
A Doubly Fed Induction Generator (DFIG) can be configured to operate as any of the following
types:
l Generator
Doubly-fed induction generators (DFIGs) are widely used in wind power systems. A DFIG works as
a component of a wind power system, as shown below, where the wind turbine transforms wind
energy into mechanical energy, and the DFIG transforms mechanical energy into electrical energy.
For a DFIG, both the stator and the rotor are equipped with poly-phase AC windings. The stator and
rotor windings may, or may not, have the same number of phases, but they must have the same
number of poles p. In order to produce terminal voltages with desired frequency f in the stator
winding, the rotor winding must be excited by balanced poly-phase currents with the slip frequency sf
via an AC-DC-AC convert. Slip s is defined as:
where n is the rotor speed, and n0 is the synchronous speed as given below:
When the rotor speed is lower than the synchronous speed, the rotor currents have the same phase
sequence as the stator currents, and the rotor winding gets power from the converter. However,
when the rotor speed is higher than the synchronous speed, the phase sequence of the rotor
currents is different from that of the stator currents, and the rotor winding outputs power to the
converter.
For a given wind turbine, the power coefficient (the ratio of turbine power to the wind power), is a
function of the tip speed ratio (the ratio of the blade tip speed to the wind speed). In order to track the
maximum power point, the tip speed ratio must keep constant - at its optimal value. The input
mechanical power with Maximum Power Point Tracking (MPPT) must satisfy:
where Pm_ref is the turbine power with MPPT at a reference speed of based on the optimal tip
where m1 is the number of phases of the stator winding, R1 is the stator phase resistance, V1 is the
stator rated phase voltage, I1 is the rated stator phase current to be determined, and is the
rated power factor. Solving for I1 , one obtains:
11. Double-click the Machine>Rotor entry in the project tree to define the rotor geometry, the
pole data, and circuit type.
12. Double-click the Machine>Rotor>Core entry in the project tree to define the rotor core
dimensions, composition, and other material characteristics.
13. Double-click the Machine>Rotor>Core>Slot entry in the project tree to define the rotor slot
dimensions. (Not applicable to AXIAL_PM, SALNT_POLE, NONS_RELU, or PM_
INTERIOR rotor types.)
14. For AXIAL_CAGE or SLOT_CAGE rotor types, double-click the
Machine>Rotor>Core>Damper (or Bottom Damper) entry in the project tree to define the
rotor core damper dimensions, composition, and other material characteristics.
15. For AXIAL_CAGE or SLOT_CAGE rotor types, double-click the
Machine>Rotor>Core>Damper (or Bottom Damper)>Slot entry in the project tree to
define the rotor core damper slot dimensions.
16. For AXIAL_PM or PM_INTERIOR rotor types, double-click the Machine>Rotor>Core>Pole
entry in the project tree to define either the AXIAL_PM rotor core pole properties or the PM_
INTERIOR rotor core pole properties.
17. For SALNT_POLE rotor type, double-click the Machine>Rotor>Core>Pole entry in the
project tree to define the SALNT_POLE rotor core pole properties.
18. For NONS_RELU (non-salient reluctance) rotor type, double-click the
Machine>Rotor>Core>Pole entry in the project tree to define the NONS_RELU rotor core
pole properties.
19. Double-click the Machine>Rotor>Winding entry in the project tree to define the rotor
conductors, windings, and insulation data. (Not applicable to AXIAL_PM, SALNT_POLE,
NONS_RELU, or PM_INTERIOR rotor types.)
20. For SALNT_POLE rotor type:
a. Double-click the Machine>Rotor>Field entry in the project tree to define the SALNT_
POLE rotor field properties.
b. Double-click the Machine>Rotor>Field>Winding entry in the project tree to define the
SALNT_POLE rotor field winding properties.
20. For DC Source Type machines (Inner and Outer Structure only), double-click the
Machine>Rotor>Circuit entry in the project tree to define the rotor circuit properties. (Not
applicable to PM_INTERIOR rotor type.)
21. Optionally, you can insert or remove Vent data. (Not applicable to SALNT_POLE, NONS_
RELU, or SOLID rotor types.
22. Optionally, for generic rotating machines that have a SALNT_POLE stator or rotor defined,
you can insert or remove Damper data.
23. Optionally, you can insert or remove Brush data for generic rotating machines that have an
Axial AC rotor defined.
24. Double-click the Machine>Shaft entry in the project tree to define the magnetism, frictional
and windage losses, and reference speed of the shaft.
25. Optionally, for Inner Rotor machines only, right-click the Machine entry in the project tree and
click Insert Housing to add a machine housing.
26. Right-click Analysis in the project tree, and click Add Solution Setup to define the solution
data.
27. Choose File>Save to save the project.
28. Choose RMxprt>Analyze All to analyze the design.
Note When you place the cursor over an entry field, a brief description of that field
appears in the status bar at the bottom of the RMxprt window.
Once analyzed, the model can be viewed in the Maxwell 2D Modeler, or it can be used to create a
new Maxwell 2D project, and a new Maxwell 3D design.
Refer to the Generic Rotating Machine application note, on the technical support page of the
ANSYS web site, for a specific example of a problem using a Generic Rotating Machine.
Use the Machine tab in the Properties dialog box (or Properties window) to define the basic
parameters of the Generic Rotating Machine, such as the source type, structure, and rotor and stator
types. Some typical structures are shown below.
To access the general data, double-click the Machine entry in the project tree.
The General Data Properties window for a generic rotating machine contains the following
fields:
Source The source to deliver electric power. (AC or DC) Default is AC.
Type
Structure The type of rotor structure for the machine. (Inner Rotor, Outer Rotor, or Axial-Flux
Rotor) Default is Inner Rotor.
Stator l The stator core type. (AXIAL_AC, AXIAL_PM, SLOT_AC, or SALNT_POLE)
Type l If Structure type is Axial-Flux Rotor, then stator can be either AXIAL_AC or
AXIAL_PM. Default is AXIAL_AC.
l If Structure type is Inner Rotor or Outer Rotor, stator type can be either SLOT_
AC or SALNT_POLE.
Rotor l The rotor core type. (AXIAL_AC, AXIAL_PM, SLOT_AC, PM_INTERIOR,
Type SALNT_POLE, AXIAL_CAGE, NONS_RELU, or SOLID)
l If Structure type is Outer Rotor, then rotor type can be either SLOT_AC, SLOT_
CAGE, SALNT_POLE, or SOLID.
l If Structure type is Axial-Flux Rotor, then rotor type can be either AXIAL_AC,
AXIAL_PM, or AXIAL_CAGE.
l If Structure type is Inner Rotor, then rotor type can be SLOT_AC, PM_
INTERIOR, SLOT_CAGE, SALNT_POLE, NONS_RELU, or SOLID.
Double- Present only if Structure type is Axial-Flux.
Sided l Choose Rotor, Stator, or None.
l Default is None.
Defining the Stator and Rotor Data for a Generic Rotating Machine
Use the Stator Properties and Rotor Properties dialog boxes to define the stator and rotor poles,
slots, windings, and optional position control.
Note This section is not applicable to the SOLID rotor type. There are no rotor data settings for
the SOLID rotor type.
To define the general stator and rotor data:
1. To open the Stator or Rotor Properties dialog box, double-click the Machine>Stator (or
Machine>Rotor) entry in the project tree on the desktop. (You can also enter values in the
corresponding Properties window of the desktop without opening a separate dialog box.)
2. For all rotor and stator types except AXIAL_CAGE, enter the number of poles in the Number
of Poles field.
3. Depending on the rotor or stator type being used, do one of the following:
a. If the rotor or stator type is either AXIAL_AC, or SLOT_AC, continue with step 4.
b. If the rotor or stator type is either AXIAL_PM or SALNT_POLE, there are no additional
settings. Click OK to close the dialog.
c. If the rotor type is PM_INTERIOR or NONS_RELU, there are no additional settings. Click
OK to close the dialog.
d. If the rotor type is AXIAL_CAGE or SLOT_CAGE, enter the number of slots in the
Number of Slots field. There are no additional settings. Click OK to close the dialog.
4. Enter the number of slots in the Number of Slots field.
5. Select a circuit type for the stator (or rotor):
a. Click the button for Circuit Type.
The Circuit Type dialog box appears.
b. Click a button to specify the desired circuit type.
c. Click OK to close the Circuit Type dialog box and return to the Properties dialog box.
6. Select a Slot Type:
a. Click the Slot Type button.
The Select Slot Type dialog box appears.
b. Select a slot type (available types may include 1 through 6).
Note When you place the mouse cursor over the slot type, a schematic of the selected
type appears, displaying the slot dimension variables.
Optionally, check User Defined Slot if you wish to define the slot dimensions using the Slot
Editor.
c. Click OK to close the Select Slot Type dialog box and return to the Properties dialog
box.
7. If the drive circuit is to be controlled by position signals from a position sensor, select the
Position Control check box.
8. Click OK to close the Properties dialog box.
Defining Stator and Rotor Core Data for a Generic Rotating Machine
1. To open the stator or rotor core Properties dialog box, double-click the
Machine>Rotor>Core or Machine>Stator>Core entry in the project tree on the desktop.
(You can also enter values in the corresponding Properties window of the desktop without
opening a separate dialog box.)
2. Enter the outer diameter of the core in the Outer Diameter field.
3. Enter the inner diameter of the core in the Inner Diameter field.
Double For AXIAL_CAGE and SLOT_CAGE rotor types: Check to add a bottom damper.
Cage Invisible for all other stator and rotor core types.
Sleeve The sleeve type for the rotor.
Type Type 0: No Sleeve; Type 1: Hysteresis; Type 2: Conductor.
Default is Hysteresis
Sleeve The thickness of the sleeve.
Thickness Invisible when the Sleeve Type is No Sleeve.
Sleeve The material type of the sleeve.
Material Invisible when the Sleeve Type is No Sleeve.
Click the button to open the Select Definition window.
The selected material must be validated as a hysteresis material if the Sleeve Type is
Hysteresis, or as a conductor if the Sleeve Type is Conductor. The Message
Manager informs you if the selected material is not valid.
Extension
End Ring Width Axial width of end ring.
End Ring Height Radial height of end ring.
Bar Conductor Click the button to open the Materials Selection window to specify the
Type material for the bar conductor.
End Ring Click the button to open the Materials Selection window to specify the
Conductor Type material for the end ring conductor.
To access the AXIAL_CAGE or SLOT_CAGE damper slot data, double-click either the
Machine>Rotor>Core>Damper>Slot or Machine>Rotor>Core>Bottom Damper>Slot
entry in the project tree.
The damper slot data Properties dialog box contains the following fields:
Hs0 A slot dimension (see the diagram shown in the modeling Diagram window when
Machine>Stator (or Rotor)>Core>Damper>Slot is selected).
Hs01 A slot dimension (see the diagram shown in the modeling Diagram window when
Machine>Stator (or Rotor)>Core>Damper>Slot is selected).
Hs1 A slot dimension (see the diagram shown in the modeling Diagram window when
Machine>Stator (or Rotor)>Core>Damper>Slot is selected).
Disabled and set to 0 when Slot Type is 1.
Hs2 A slot dimension (see the diagram shown in the modeling Diagram window when
Machine>Stator (or Rotor)>Core>Damper>Slot is selected).
Bs0 A slot dimension (see the diagram shown in the modeling Diagram window when
Machine>Stator (or Rotor)>Core>Damper>Slot is selected).
Bs1 A slot dimension (see the diagram shown in the modeling Diagram window when
Machine>Stator (or Rotor)>Core>Damper>Slot is selected).
Bs2 A slot dimension (see the diagram shown in the modeling Diagram window when
Machine>Stator (or Rotor)>Core>Damper>Slot is selected).
Rs A slot dimension (see the diagram shown in the modeling Diagram window when
Machine>Stator (or Rotor)>Core>Damper>Slot is selected).
Disabled and set to 0 when the slot type is 1or 2.
Defining the Stator and Rotor Core Slots for a Generic Rotating Machine
rotors.
To define the physical dimensions of the stator and rotor core slots:
1. To open the stator or rotor core slot data Properties dialog box, double-click the
Machine>Stator (or Rotor)>Core>Slot entry in the project tree on the desktop. (You can
also enter values in the Properties window of the desktop without opening a separate dialog
box.)
2. Optionally, to automatically design the dimensions of slots Hs2, Bs1, and Bs2, select the
Auto Design check box. Selecting Auto Design also disables the Parallel Tooth option.
3. Optionally, to automatically design Bs1 and Bs2 based on Tooth Width, select the Parallel
Tooth check box. Selecting Parallel Tooth also enables the Tooth Width field.
4. Enter the available slot dimensions. The following dimensions may be listed, depending on the
Slot Type selected and depending on whether or not Auto Design or Parallel Tooth is
selected.:
Hs0 Always available.
Hs1 Available only when the slot type is 2, 3, 4, 5, or 6.
Hs2 Available only when Auto Design is cleared. When Auto Design is selected, this slot
dimension is determined automatically.
Bs0 Available only when the slot type is 1, 2, 3, 4, or 5.
Bs1 Available only when Auto Design is cleared. When Auto Design is selected, this slot
dimension is determined automatically. When Parallel Tooth is selected, this slot
dimension is determined based on the value entered in the Tooth Width field.
Bs2 Available only when Auto Design is cleared. When Auto Design is selected, this slot
dimension is determined automatically. When Parallel Tooth is selected, this slot
dimension is determined based on the value entered in the Tooth Width field.
Rs Available only when the slot type is 3 or 4.
5. Click OK to close the Properties window.
To access the core slot data, double-click either the Machine>Rotor>Core>Slot or the
Machine>Stator>Core>Slot entry in the project tree.
The core slot data Properties dialog box contains the following fields:
Auto Select or clear this to enable or disable auto-design of slots Hs2, Bs1, and Bs2. When
Design this check box is selected, only Hs0 , Hs1, Bs0 and Rs are present.
Parallel Select this to design Bs1 and Bs2 based on the tooth width. When this check box is
Tooth selected, the Bs1 and Bs2 fields are removed, and the Tooth Width field is added.
Tooth The tooth width for the parallel tooth, on which Bs1 and Bs2 are designed.
Width
Hs0 A slot dimension (see the diagram shown in the modeling window when
Machine>Stator (or Rotor)>Core>Slot is selected).
Hs1 A slot dimension (see the diagram shown in the modeling window when
Machine>Stator (or Rotor)>Core>Slot is selected).
Hs2 A slot dimension (see the diagram shown in the modeling window when
Machine>Stator (or Rotor)>Core>Slot is selected).
Bs0 A slot dimension (see the diagram shown in the modeling window when
Machine>Stator (or Rotor)>Core>Slot is selected).
Bs1 A slot dimension (see the diagram shown in the modeling window when
Machine>Stator (or Rotor)>Core>Slot is selected).
Bs2 A slot dimension (see the diagram shown in the modeling window when
Machine>Stator (or Rotor)>Core>Slot is selected).
Rs A slot dimension (see the diagram shown in the modeling window when
Machine>Stator (or Rotor)>Core>Slot is selected).
Rs is added when the slot type is 3 or 4.
Defining AXIAL_PM Type Stator and Rotor Core Poles for a Generic Rotating Machine
Note This section is applicable only to core poles for AXIAL_PM type stators or rotors.
l To define core poles for PM_INTERIOR type rotors, refer to Defining PM_
1. To open the stator or rotor core pole data Properties dialog box, double-click the
Machine>Stator>Core>Pole or Machine>Rotor>Core>Pole entry in the project tree on
the desktop. (You can also enter values in the Properties window of the desktop without
opening a separate dialog box.)
2. Set the pole Embrace value.
3. Set the Magnet Thickness and Magnet Length.
4. Select the Magnet Type.
5. Click OK to close the Properties window.
To access the core pole data for AXIAL_PM type stators and rotors, double-click either the
Machine>Stator>Core>Pole or the Machine>Rotor>Core>Pole entry in the project tree.
The core pole data Properties dialog box contains the following fields:
Embrace Pole embrace value.
Magnet Axial thickness of the magnet, per side.
Thickness
Magnet The Radial length of the magnet.
Length
Magnet Type Magnet material type.
Click the button to open the Select Definition window and select the magnet
material type from the list.
Defining PM_INTERIOR Type Rotor Core Poles for a Generic Rotating Machine
Note This section is applicable only to core poles for PM_INTERIOR type rotors.
l To define core poles for AXIAL_PM type stators and rotors, refer to Defining AXIAL_
PM Type Stator and Rotor Core Poles for a Generic Rotating Machine.
l To define core poles for SALNT_POLE type rotors, refer to Defining SALNT_POLE
Note l The currently selected pole type diagram displays on the machine editor window
Diagram tab. The Main tab also shows the pole drawing, which is dynamically
updated as the pole properties are defined.
l Undo and Redo of property changes is supported.
l If you wish to change the pole type, select the Machine>Rotor>Core entry in the project
tree, then click the Pole Type button in its Properties window to open the Select Pole Type
window.
l Select the desired pole type (1 through 6). You can hover over the numbered buttons to
view the pole type configuration in the window. The default type is 3.
l Click OK to close the Select Pole Type window
2. Set the D1 diameter for magnet ducts.
3. Set the O1, O2, B1, Rib, and HRib magnet duct dimensions.
Note l Dimension O1 is invisible for pole types 1 and
2.
l Dimension HRib is invisible for pole types 1, 2,
and 6.
4. Set the number of duct Layers. Default value is 1.
5. Set the Layer Pitch value (pitch value between two layers).
6. Set the Magnet Thickness value.
7. Set the Magnet Width value (total width of all magnets per pole).
8. Select the Magnet Type by clicking the button to open the Select Definition window
Materials tab and selecting the desired magnet material type. Use the Material Filter tab
settings to filter for Magnet materials. Click OK to close the window.
9. Click OK to close the Properties window.
To access the core pole data for PM_INTERIOR type rotors, double-click the
Machine>Rotor>Core>Pole entry in the project tree.
The core pole data Properties dialog box contains the following fields:
The PM_INTERIOR rotor core type supports six pole types. You can choose the pole type by
selecting the Machine>Rotor>Core entry in the project tree, then clicking the Pole Type button in
its Properties window to open the Select Pole Type window.
The six available pole types are shown below. Refer to Defining PM_INTERIOR Type Rotor Core
Poles for a Generic Rotating Machine for details on defining the various pole properties.
Defining SALNT_POLE Type Rotor Core Poles for a Generic Rotating Machine
Note This section is applicable only to core poles for SALNT_POLE type rotors.
l To define core poles for SALNT_POLE type stators, refer to Defining SALNT_POLE
PM Type Stator and Rotor Core Poles for a Generic Rotating Machine.
l To define core poles for PM_INTERIOR type rotors, refer to Defining PM_
Note l The currently selected pole type diagram displays on the machine editor window
Diagram tab. The Main tab also shows the pole drawing, which is dynamically
updated as the pole properties are defined.
l Undo and Redo of property changes is supported.
2. Set the Pole Body Width, Pole Body Height, Pole Shoe Width, and Pole Shoe Height
dimensions.
3. Set the Second Air Gap value. Default value is 0.
4. Set the Pole Arc Offset value. Default value is 0.
5. Optionally, check Second Pole Arc and set values for Off2_x and Off2_y.
6. Set the Stacking Factor value.
7. Select the Steel Type by clicking the button to open the Select Definition window Materials
tab and selecting the desired magnet material type. Click OK to close the window. Use the
Material Filter tab settings to filter for Steel materials.
8. Click OK to close the Properties window.
To access the core pole data for SALNT_POLE type rotors, double-click the
Machine>Rotor>Core>Pole entry in the project tree.
The core pole data Properties dialog box contains the following fields:
Second The second air gap between the pole body and the yoke.
Air Gap
Pole Pole body dimension.
Body
Width
Pole Pole body dimension.
Body
Height
Pole Pole shoe dimension.
Shoe
Width
Pole Pole shoe dimension.
Shoe
Height
Pole Arc The pole-arc center offset from the rotor center.
Offset
Second Check if you want the pole surface to include a second arc or line in a half-pole range.
Pole Arc When checked, enables Off2_x and Off2_y.
Off2_x Offset of the second arc perpendicular to the pole-center line.
Off2_y Offset of the second arc in parallel with the pole-center line.
Stacking The effective magnetic length of the rotor pole.
Factor
Steel Steel material type.
Type Click the button to open the Select Definition window and select the steel material
type from the list. Use the Material Filter tab settings to filter for Steel materials.
See the diagram below for details on Type 1 SALNT_POLE rotor core pole.
Type 1 SALNT_POLE Rotor Core Pole
The SALNT_POLE rotor core type supports one pole type. You can choose the pole type by
selecting the Machine>Rotor>Core entry in the project tree, then clicking the Pole Type button in
its Properties window to open the Select Pole Type window.
Refer to Defining SALNT_POLE Type Rotor Core Poles for a Generic Rotating Machine for details
on defining the various pole properties.
Defining SALNT_POLE Type Stator Core Poles for a Generic Rotating Machine
Note This section is applicable only to core poles for SALNT_POLE type stators.
l To define core poles for SALNT_POLE type rotors, refer to Defining SALNT_POLE
PM Type Stator and Rotor Core Poles for a Generic Rotating Machine.
l To define core poles for PM_INTERIOR type rotors, refer to Defining PM_
Note l The currently selected pole type diagram displays on the machine editor window
Diagram tab. The Main tab also shows the pole drawing, which is dynamically
updated as the pole properties are defined.
l Undo and Redo of property changes is supported.
2. Set the Pole Body Width, Pole Body Height, Pole Shoe Width, and Pole Shoe Height
dimensions.
3. Set the Second Air Gap value. Default value is 0.
4. Set the Pole Arc Offset value. Default value is 0.
5. Optionally, check Second Pole Arc and set values for Off2_x, Off2_y, Bp1/Rp1, and
Bp2/Rp2.
6. Set the Stacking Factor value.
7. Select the Steel Type by clicking the button to open the Select Definition window Materials
tab and selecting the desired magnet material type. Click OK to close the window. Use the
Material Filter tab settings to filter for Steel materials.
8. Click OK to close the Properties window.
To access the core pole data for SALNT_POLE type stators, double-click the
Machine>Stator>Core>Pole entry in the project tree.
The core pole data Properties dialog box contains the following fields:
Second The second air gap between the pole body and the yoke.
Air Gap
Pole Pole body dimension.
Body
Width
Pole Pole body dimension.
Body
Height
The SALNT_POLE stator core type supports two pole types. You can choose the pole type by
selecting the Machine>Rotor>Core entry in the project tree, then clicking the Pole Type button in
its Properties window to open the Select Pole Type window.
Refer to Defining SALNT_POLE Type Rotor Core Poles for a Generic Rotating Machine for details
on defining the various pole properties.
Optional SALNT_POLE Stator or Rotor Core Damper for a Generic Rotating Machine
l To add a damper, right-click on the stator or rotor core item in the project tree to display the
pop-up menu with Insert Damper.
l To remove an existing damper, right-click on the rotor icon in the project tree to display the
shortcut menu with Remove Damper.
The Damper Data properties window contains the following fields.
Defining SALNT_POLE Stator and Rotor Field Data for a Generic Rotating Machine.
Defining SALNT_POLE Stator and Rotor Field Winding Data for a Generic Rotating Machine.
1. To open the rotor or stator field winding Properties dialog box, double-click the
Machine>Stator>Field>Winding or Machine>Rotor>Field>Winding entry in the project
tree on the desktop. (You can also enter values in the Properties section of the desktop
without opening a separate dialog box.)
2. Select a Winding Type:
a. Click the button for Winding Type to open the Winding Type window.
b. Select Round, Cylinder, or EdgeWise winding.
When you place the mouse cursor over a winding button, an outline of the selected winding appears.
The following table describes the three types of windings:
Type Description
Round A Round winding:
a. Once you have selected a winding, click OK to close the Winding Type dialog box and
return to the Properties window.
b. Enter the number of parallel branches in one phase of the winding in the Parallel Branches
field.
c. Enter the total number of conductors for each pole in the Conductors per Pole field. Odd
numbers for input and output leads on different sides. Enter 0 to have RMxprt auto-design this
value.
d. For Round and Cylinder winding types, enter the number of wires per conductor in the
Number of Strands field. Enter 0 to have RMxprt auto-design this value.
Note The Number of Strands field is invisible (not used) when the EdgeWise winding
type has been selected.
e. Enter the thickness of the double-sided wire wrap in the Wire Wrap field. Enter 0 to
automatically obtain this value from the wire library.
f. For an EdgeWise winding type, enter the thickness of the inter-turn insulation in the Inter-
turn Insulation field.
Note The Inter-turn Insulation field is invisible (not used) when either the Round or
Cylinder winding type has been selected.
g. Select the Wire Size:
h. Click the button for Wire Size.
The Wire Size dialog box appears.
h. Select a value from the Wire Diameter pull-down list.
i. Select a wire gauge from the Gauge pull-down menu. You can select from the following
options:
< You can select a specific gauge number. When you select a
number> gauge number, the Wire Diameter field is automatically
updated.
USER This option allows you to manually enter the Wire Diameter.
This is useful when you want to enter a diameter that does not
correspond to a particular wire gauge.
AUTO This option sets the Wire Diameter to zero, and RMxprt
automatically calculates the optimal value. The diameter
information is then written to the output file when you analyze
the design.
MIXED This option allows you to define a conductor that is made of
different size wires. For example, a single conductor may consist
of 5 wires, 3 wires with a diameter of 0.21mm and 2 with a
diameter of 0.13mm.
The gauge number is based on AWG settings. You can create your own wire table using
Machine>Wire, and then you can select this wire table using the Tools>Options>Machine
Options command.
a. When you are done setting the wire size, click OK to close the Wire Size dialog box and
return to the Properties dialog box.
b. Click the Conductor Type button to open the Select Definition window Materials tab and
selecting the desired conductor material type. Use the Material Filter tab settings to filter for
Conductor materials. Click OK to close the window.
c. Enter the axial gap between the field winding and pole body in the Axial Clearance field.
d. Enter the inner radius at winding fillet in the Winding Fillet field.
e. Enter the inner diameter of the coil tip in the Tip Inner Diameter field.
f. Enter the limited cross-section width for winding design or arrangement in the Limited Cross
Width field. Enter 0 for maximum available area.
g. Enter the limited cross-section height for winding design or arrangement in the Limited
Cross Height field. Enter 0 for maximum available area.
h. Click OK to close the Properties dialog box.
Defining NONS_RELU Type Rotor Core Poles for a Generic Rotating Machine
Note This section is applicable only to core poles for NONS_RELU type rotors.
l To define core poles for AXIAL_PM type stators and rotors, refer to Defining AXIAL_
PM Type Stator and Rotor Core Poles for a Generic Rotating Machine.
l To define core poles for SALNT_POLE type rotors, refer to Defining SALNT_POLE
Note l The currently selected pole type diagram displays on the machine editor window
Diagram tab. The Main tab also shows the pole drawing, which is dynamically
updated as the pole properties are defined.
l Undo and Redo of property changes is supported.
l If you wish to change the pole type, select the Machine>Rotor>Core entry in the project
tree, then click the Pole Type button in its Properties window to open the Select Pole Type
window.
l Select the desired pole type: Laminated (type 1), Concentric-polyline (type 2), Hyperbolic-
curve (type 3), or Hyperbolic-polyline (type 4). You can hover over the buttons to view the
pole type configuration in the window. The default type is Hyperbolic-polyline (type 4).
l Click OK to close the Select Pole Type window
2. For pole types 2, 3, or 4, set the number of Barriers per Pole. (Invisible when the pole type is
1.)
3. For pole types 2, 3, or 4, set the H bridge thickness dimension. (Invisible when the pole type is
1.)
4. For pole types 2, 3, or 4, set the W rib width at the barrier center dimension. (Invisible when
the pole type is 1.)
5. For pole types 2, 3, or 4, set the R barrier fillet radius dimension. (Invisible when the pole type
is 1.)
6. For pole types 2 or 4, set the R0 barrier arch center location dimension. (Invisible when the
pole type is 1 or 3.)
7. Set the Rb in-circle radius of the bottom dimension.
8. For pole types 2, 3, or 4, set the B0 bottom width of the first barrier (at the barrier center)
dimension. (Invisible when the pole type is 1.)
9. Set the Y0 bottom width of the first yoke (at the barrier center) dimension.
10. Optionally, for pole types 2, 3, or 4, you can check the Barrier Auto Arrangement box to
have RMxprt automatically arrange the pole barriers. (Invisible when the pole type is 1.)
11. For pole types 2, 3, or 4, if the number of Barriers per Pole you specified is greater than 1,
and you have not enabled Barrier Auto Arrangement, clicking the Extra Barriers Setup
button opens the Barriers Setup dialog in which you can specify the Bi (bottom widths of the
additional barriers) and Yi (bottom widths of the additional yokes) dimensions.
Note The Extra Barriersproperty is invisible if the number of Barriers per Pole is 1, or
if Barrier Auto Arrangement has been enabled.
12. Click OK to close the Properties window.
To access the core pole data for NONS_RELU type rotors, double-click the
Machine>Rotor>Core>Pole entry in the project tree.
The core pole data Properties dialog box contains the following fields:
Barriers per Pole Number of barriers in one pole.
Invisible when pole type is 1 (Laminated).
H Bridge thickness.
Invisible when pole type is 1 (Laminated).
W Rib width at the barrier center.
Related Topics
"Defining NONS_RELU Type Rotor Core Poles for a Generic Rotating Machine" on page 25-477
"NONS_RELU Rotor Core Pole Types" below
The NONS_RELU rotor core type supports four pole types. You can choose the pole type by
selecting the Machine>Rotor>Core entry in the project tree, then clicking the Pole Type button in
its Properties window to open the Select Pole Type window.
The four available pole types are shown below. Refer to Defining NONS_RELU Type Rotor Core
Poles for a Generic Rotating Machine for details on defining the various pole properties.
Defining the Stator and Rotor Windings for a Generic Rotating Machine
l SALNT_POLE type stators and rotors. Refer to Defining SALNT_POLE Stator and
Rotor Field Winding Data for a Generic Rotating Machine for winding information for
SALNT_POLE stators and rotors.
To define the wires, conductors, insulation, and windings of a stator or rotor:
1. To open the rotor or stator slot winding Properties dialog box, double-click the
Machine>Stator>Winding or Machine>Rotor>Winding entry in the project tree on the
desktop. (You can also enter values in the Properties section of the desktop without opening
a separate dialog box.)
2. Click the Winding tab.
3. Choose the desired number of layers in the winding from the drop-down list in the Winding
Layers field.
4. Select a Winding Type:
a. Click the button for Winding Type.
The Winding Type window appears.
b. Select from one of the following three types of winding:
l Whole Coiled
l Half Coiled
l Editor
When you place the mouse cursor over a winding button, an outline of the selected winding appears.
The following table describes the six types of windings that are possible (three for one-layer and
three for two-layer):
Type Description
Winding Editor A user-defined one-layer winding arrangement. You need
(one-layer) to set up the winding arrangement for each slot in the
Winding Editor.
Whole-Coiled A one-layer whole-coiled winding:
(one-layer)
c. Enter the total number of conductors in each slot in the Conductors per Slot field. This value
is the number of turns per coil multiplied by the number of layers. Enter 0 to have RMxprt auto-
design this value.
d. Enter the coil pitch, measured in number of slots, in the Coil Pitch field. The coil pitch is the
number of slots separating one winding. For example, if a coil starts in slot 1 and ends in slot 6,
it has a coil pitch of 5.
This field is not displayed when the number of Winding Layers is 1.
5. Enter the number of wires per conductor in the Number of Strands field. Enter 0 to have
RMxprt auto-design this value.
6. Enter the thickness of the double-sided wire wrap in the Wire Wrap field. Enter 0 to
automatically obtain this value from the wire library.
stator/rotor coils in the End Extension field. The end extension is the distance one end of
the conductor extends vertically beyond the end of the stator or rotor.
8. Enter the inner radius of the base corner in the Base Inner Radius field.
9. Enter the inner diameter of the coil tip in the Tip Inner Diameter field.
10. Enter the distance between two adjacent coils in the End Clearance field.
11. Enter the thickness of the single-side coil wrap insulation in the Coil Wrap field.
This field is applicable and displayed only for slot types 5 and 6.
12. Enter the thickness of the slot liner insulation in the Slot Liner field.
13. Enter the thickness of the wedge insulation in the Wedge Thickness field.
14. Enter the thickness of the insulation layer in the Layer Insulation field.
This field is applicable and displayed only when the Winding Layers value is 2.
15. Enter the bottom insulation thickness in the Bottom Insulation field.
This field is applicable and displayed only for slot types 5 and 6.
16. Enter the limited slot fill factor for the wire design in the Limited Fill Factor field. The slot fill
factor is the ratio between the cross-sectional area of all conductors in one slot and the entire
slot area.
This field is applicable and displayed only for slot types 1, 2, 3, and 4.
17. Enter the span length correction factor to scale the end span length in the Correction Factor
field.
18. Enter the top spare slot space for a dual-winding machine in the Top Spare Space field.
19. Enter the bottom spare slot space for a dual-winding machine in the Bottom Spare Space
field.
20. Click OK to close the Properties dialog box.
l SALNT_POLE type stators and rotors. Refer to Defining SALNT_POLE Stator and
Rotor Field Winding Data for a Generic Rotating Machine for winding information for
SALNT_POLE stators and rotors.
To access the core slot data, double-click either the Machine>Rotor>Core>Slot or the
Machine>Rotor>Core>Slot entry in the project tree.
The winding data Properties dialog box contains the following fields:
Winding tab Winding Layers The number of winding layers. (The bottom layer is for
another side slot if the core is double-sided.)
Select 1 or 2 in the pull-down list. Default value is 2.
Winding Layers is always 2 if the core is double-sided.
Winding Type The type of stator winding. Click the button to open the
Winding Type window and choose from Whole-Coiled,
Half-Coiled, and Editor.
Default value is Whole-Coiled.
Parallel The number of parallel branches in the winding. Default
Branches value is 1.
Conductors per The number of conductors per slot (0 for auto-design).
Slot
Coil Pitch The coil pitch measured in number of slots. This field is
displayed only when the number of Winding Layers is 2.
Coil Pitch is always 0 if the core is double-sided.
Number of The number of wires per conductor (0 for auto-design).
Strands Default value is 1.
Bottom Spare The bottom spare slot space for a dual-winding machine.
Space The value must be greater-than or equal-to 0.
Also, the sum of the Top Spare Space and Bottom
Spare Space values must less-than 1.
Conductor Conductor material type of the Stator/Rotor Winding.
Type
For a generic rotating machine, you may want to specify a different number of conductors for
each stator or rotor slot. The Winding Editor enables you to specify the number of turns for
each coil. To enable the Winding Editor, you must have set the Winding Property for the
Winding Type to Editor.
To specify the number of turns for each coil:
1. Click Machine>Winding>Edit Layout.
2. In the table in the upper left, set which Phase you want for each coil and which slot is the “In”
and “Out” slot for the current in each coil.
3. If you are working on a quarter or half model, you may want to specify a multiplier by selecting
a value from the Periodic Multiplier drop-down menu.
4. Select or deselect the Constant Turns or Constant Pitch check boxes, depending on
whether you want to be able to change these setting in the table above. When these options
are selected, you cannot change the turns or pitch.
5. When you are satisfied with the coil settings, click OK to close the Winding Editor dialog box.
Use the Gauge option if you have a conductor that is made up different size wires.
To define different size wires:
1. In the Wire Size window, select MIXED from the Gauge pull-down menu.
2. Select either Round or Rectangular as the Wire Type.
3. Enter the appropriate wire data in the table:
l For a round wire:
l Click Add to add the new wire data.
l Enter a Number in the table to specify how many of the conductor’s wires have this
diameter.
l For a rectangular wire:
l Click Add to add the new wire data.
l Enter the Width of the wire in the table. The width should be greater than the thickness.
To access the stator or rotor circuit data, double-click either the Machine>Stator>Circuit or the
Machine>Rotor>Circuit entry in the project tree.
The circuit data Properties dialog box contains the following fields:
Control Type Control Type: DC, CCC (chopping current control), PWM, HCC (hysteresis
current control). Default is DC.
Lead Angle of Lead angle of trigger in electrical degrees.
Trigger Visible only when Position Control is enabled.
Trigger Pulse Trigger pulse width in electrical degrees.
Width Visible only when Control Type is DC or CCC. Default value is 120.
Transistor Drop Voltage drop of one transistor.
Diode Drop Voltage drop of one diode, or the total voltage for star-type circuits in the
discharge loop.
Maximum Maximum current for chopping current control.
Current Visible only when Control Type is CCC.
Minimum Minimum current for chopping current control.
Current Visible only when Control Type is CCC.
Modulation Index Modulation index (the ratio of the sine-wave amplitude to the triangular
amplitude).
Visible only when Control Type is PWM.
Carrier Carrier frequency times (the ratio of the triangular frequency to the sine-wave
Frequency Times frequency).
Visible only when Control Type is PWM.
Reference The amplitude of the sine-wave reference current.
Optionally, you can insert or remove brush data for generic rotating machines that have an Axial AC
Rotor Structure. If you have inserted a brush, the icon appears under the core slot in the project tree.
To insert a brush:
1. Right-click on the rotor core icon to display the pop-up menu.
2. Click Insert Brush.
3. To edit the brush data, double-click the brush icon to open the brush properties dialog.
The brush data Properties dialog box contains the following fields:
Diameter Brush surface diameter.
Brush Width Brush width.
Brush Length Brush length.
Brush Drop Voltage drop of a brush.
Contact Resistance Contact resistance of a brush.
Brush Press Brush pressure per unit area.
Frictional Frictional coefficient of a
Coefficient brush.
To remove an existing brush:
1. Right click on the rotor icon to display the pop-up menu.
2. Click Remove Brush.
Optionally, you can insert or remove Vent data for generic rotating machines that have either an
Inner Rotor or Outer Rotor Structure. If you have inserted a Vent, the icon appears under the core
slot in the project tree.
Note l This section does not apply to the SALNT_POLE, NONS_RELU, or SOLID rotor
types.
To insert a vent:
1. Right-click on the stator or rotor core icon to display the pop-up menu.
2. Click Insert Vent.
To remove an existing vent:
1. Right click on the stator or rotor icon to display the pop-up menu.
2. Click Remove Vent.
The vent data Properties dialog box contains the following fields.
To access the shaft data, double-click the Machine>Shaft entry in the project tree.
The Shaft Data Properties window contains the following fields:
Magnetic Select or clear this check box to indicate whether or not the shaft is made of magnetic
Shaft material. When selected, the shaft is magnetic. Default is unchecked for PM_
INTERIOR rotor type.
Frictional The frictional loss measured at the Reference Speed.
Loss
Windage The Windage Loss (or Power for wind power generators) measured at the
Loss or Reference Speed.
Power
Reference The speed at which the friction and windage losses are measured. Default is 3600
Speed rpm for PM_INTERIOR and AXIAL_CAGE rotor types.
system, the terminal voltages remain constant and the output power is
determined by the output currents.
Independent The generator supplies electrical power to a load inductor. For an AC
Generator generator, the resistance and inductance of the load inductor are
determined by the rated output power, the rated voltage, and the rated
power factor. For a DC generator, the resistance of the load resistor is
determined by the rated output power and the rated voltage.
e. Enter the rated mechanical or electrical output (apparent) power in the Rated Output
Power field.
When the Operation Type is Generator and Source Type is AC, the property name
changes to Rated Apparent Power (kVA), and the unit column is blank.
f. Enter the applied or output rated voltage in the Rated Voltage field. (RMS value for AC
source.) Default value is 208 V.
g. Enter the given rated speed in the Rated Speed field. Default value is 3600 rpm.
h. Enter the temperature at which the system functions in the Operating Temperature field.
Default is 75 cel.
3. Click the Generic Rotating Machine (GRM) tab.
a. For AC source type machines, enter the rated power factor in the Rated Power Factor
field. The default value is 0.8. This field is invisible when the Source Type is DC.
b. For AC source type machines, if you wish to determine load impedance when the phase
current leads the phase voltage, enable the Capacitive Power Factor check box. This
field is invisible when the Source Type is DC.
c. Enter the source frequency in the Frequency field and select the appropriate unit of
measure. The default value is 60 Hz. This field is invisible when the Source Type is DC.
d. Optionally, you can click the Use Defaults button to restore the tab settings to default
values.
4. Optionally, click the Defaults tab. This tab contains two buttons:
l Click the Save Defaults button to save the currently-defined settings as defaults for future
setups.
l Click the Revert to Standard Defaults button to clear existing user-defined defaults and
Related Topics
To access the solution data, double-click the solution setup located under Analysis in the project
tree to open the solution Properties dialog box. Solution data is also accessible in the desktop
Properties window for the selected setup.
General tab:
GRM tab:
Rated Enter the rated power factor for AC Source Type. This field is displayed only for AC
Power Source Type. Default value is 0.8.
Factor
Capacitive Check box that enables/disables use of a capacitive power factor. Used together with
Power the Rated Power Factor when the phase current leads the phase voltage, to
Factor determine load impedance. Default is unchecked.
Frequency Enter a value for the frequency, and select the unit.
Related Topics
1. To include a Housing in the design, right-click the Machine icon in the Project Manager tree
and select Insert Housing. A new Housing icon is added to the machine design containing
Front Cap and Rear Cap housing elements.
2. Right-click on Housing in the Project Manager tree to include and specify parameter data for
the following housing elements:
l Duct
l Fin
l Flange
l Foot
3. Specify properties for the Housing and related elements by selecting them and setting
parameter data values either in the Properties window or Properties dialog.
4. You can remove the Housing and all related elements by right-clicking Machine and selecting
Remove Housing. Individual housing elements can be removed by right-clicking Housing
and selecting the desired Remove <objectname> menu item.
Note The Front Cap and Rear Cap elements are always included with the Housing and
cannot be removed individually.
Related Topics
Housing Data
Housing Duct Data
Housing Fin Data
Housing Flange Data
Housing Foot Data
Housing Data
Related Topics
of Ducts jackets
Duct Duct type Available types:
Type l 1-Axial Wind Duct
Related Topics
l 2-Radial Square
l 3-Parallel Round
l 4-Parallel Square
l 5-Square Ring
l 6-Servo Ring.
Related Topics
Related Topics
Related Topics
You can specify the following housing Front Cap and Rear Cap properties:
Diameter
Bearing Bearing outer diameter Bearing Diameter < Holder
Diameter Diameter
Bearing Axial thickness of bearing (or bearing holder) Bearing Thickness > 0
Thickness
Shaft Shaft diameter at end cap Shaft Diameter < Bearing
Diameter Diameter
Shaft Shaft extension length from end cap to outside for Shaft Extension ³ 0
Extension torque output or fan installation
Related Topics
File menu
Edit menu
View menu
Projectmenu
Draw menu
Schematic menu
Maxwell Circuit
menu
Toolsmenu
Windowmenu
Help menu
Related Topics:
Schematic Editor
The Component Libraries Window
Copying and Pasting Properties
Maxwell Circuit Editor Component Models
Placing Components in the Maxwell Circuit Editor Schematic
Assigning Component Properties in Maxwell Circuit Editor
Schematic Editor
The Schematic editor is the tool for creating circuit schematics, or designs for a transient solution
type. A design graphically represents and captures the electrical structure and characteristics of a
circuit. You create such a design by starting the schematic editor and placing components, ports,
connectors, and wires into a default empty schematic.
As you place the cursor near a pin of a component, it changes from an arrow to an X. This indicates
that the schematic editor is in the wiring mode. In the wiring mode, click to start drawing a wire. Click
again to end the wire.
Commonly used items such as ports, n-port black boxes, grounds, and page connectors can be
placed in the schematic by clicking their toolbar icons or by using the Draw menu.
View controls to zoom in, zoom out, and fit the drawing to the editor window are available on the
View menu, and on the shortcut menu that opens when you right-click in a schematic.
The arrow keys scroll the view up, down, left, or right in small increments. The page up and page
down keys scroll the view up or down in larger increments. If you scroll so far that no objects are in
the view, select Fit Drawing from the View pull-down on the Maxwell top menu bar (or press
Ctrl+D) to re-center the entire design, resized to fill the window.
These options are set under Schematic Editor in the Options dialog box.
To set Schematic Editor options:
l Fonts
l Colors
l Wiring
l Multiple Placement
l Symbol Editor
4. Click OK.
These options are set in the General panel under Schematic Editor in the Options dialog.
l Symbol Graphics – specifies the graphic symbol style (IEEE or Traditional) to be used on
schematics. Each style contains two or more active levels for the graphic objects that comprise
a symbol.
l SubCircuit Pin Spacing – specifies the pin spacing in grid units for pins on a subcircuit
l Property Display Angle Follows Symbol Angle – specifies that displayed text properties
definitions are updated, the displayed properties of instances of the updated component on
the schematic are automatically updated. Enabled by default. If not enabled, only the symbol
graphics are updated.
l Auto Scroll when close to edges – specifies that the Schematic Editor display will scroll
automatically when the cursor is placed close to the edge of the editor window.
l Show advanced property data - turns on the display of less often used property tabs, such
l Symbol Scaling Factor – Third-party vendors often follow a different symbol dimensioning
system than that used in Maxwell. Symbol sizes that look appropriate in a third-party
application may not be appropriate for Maxwell. To mitigate such issues, the Symbol Scaling
factor can be used during import to scale the incoming symbol graphics for symbol formats
such as SVG by the specified amount. Similarly, when exporting, the symbol can be rescaled
to the original dimensions.
l Selection Colors – sets the colors of the first and subsequent objects as they are selected on
a schematic.
These options are set in the Fonts panel under Schematic Editor in the Options dialog.
Set the Font Name (from a drop-down selection list) and Size for text used on schematics on the
Fonts tab of the Schematic Editor Options dialog box. A Sample Text display window shows the
appearance of the specified font and size. Apply this font to all property displays in the active
schematic specifies that all displays in the schematic editor are to use the font style and size you
selected.
These options are set in the Color panel under Schematic Editor in the Options dialog.
The Schematic Objects panel allows you to set the color for each Object Type.
l Object Type – a drop-down menu used to select the object type whose colors you want to
modify. Types are: Components, Interface Ports, Page Ports, Global Ports, Grounds,
Graphic Items, Wires, Buses, Title Blocks, Page Borders, and Page Border Text.
l Set Color – implements the color you have selected for the object type.
l Clear Color – resets the color of the selected object type to its default value.
The Individual Definitions panel lets you set the color for specified Components and Wire
Domains.
l Component Name – is used to identify the component whose colors you want to modify.
modify. Each Wire Domain is assigned a unique color by default. For Maxwell, the Domain
is: Conservative - Electrical.
l Set Color – implements the color you have selected for the specified component. All future
instances of the component added to the active schematic window display will possess the
selected color.
l Clear Color – resets the color of the component to its default value.
l Apply these color settings to the current schematic – applies the color settings for the
selected Object Type to objects of that type in the active schematic window.
The following options are set on the Wiring panel under Schematic Editor in the Options dialog
box.
Connectivity Options:
l Show Merge Wire dialog before combining wires – displays the Merge Wire dialog box
Multiple placement allows you to place several objects of the same type in the schematic using
repeated mouse clicks. These options are set in the Multiple Placementpanel under Schematic
Editor in the Options dialog.
Check the desired objects in the Items for multiple placement list.
l Components
l Interface Ports
l Grounds
l Page Connectors
l Global Ports
These options are set in the Symbol Editor panel under Schematic Editor in the Options dialog.
l Adjust Pin Orientation on Drag – enables symbol pin orientation to be adjusted
automatically as pins are dragged to the desired side of a symbol in the symbol editor.
Auto-Hide Feature
Clicking the auto-hide push-pin in the upper right corner of the Component Libraries window toggles
the auto-hide feature “on” and “off.” When auto-hide is enabled, the Component Libraries window
slides out of sight and a Component Libraries “mouse-over button” appears on the edge of the main
window. The Component Libraries window remains hidden until you move the mouse cursor over
the mouse-over button. The Component Libraries window then slides into view for use; then hides
again when the cursor moves out of the Component Libraries window.
The Components tab in the Component Libraries window allows you to browse and select
schematic components from the available elements libraries. The installed libraries are listed
alphabetically in hierarchical folders grouped by component function. For example, the Dedicated
Elements library expands as shown.
Individual elements are designated by icons next to the element abbreviation and name.
Right-clicking a component opens a shortcut menu where you can choose to:
l add the component to the Favorites folder
The Component tab includes a Favorites folder and a Most Recently Used folder. These folders
help provide quick access to components. Elements used in the current project are listed under
Project Components.
The Most Recently Used folder contains a list of the most recently used elements. For
convenience, these elements can be selected and placed from this folder. The number of
elements in the folder is controlled by the Tools>Options>General Options dialog under
the Component Libraries Options tab. The default number of elements is 10.
To launch online help for a component from the Components tab of the Component
Libraries window:
1. Right-click its icon.
2. Click View Component Help.
The Search tab allows you to enter full or partial words (case-insensitive) present in the names or
descriptions of components in the search field. The search is done dynamically as you type. You can
also restrict the search by select the categories and libraries you want to include in the search. Use
the Ctrl key to select multiple categories or libraries.
For users running Microsoft® Windows Vista® or later, results appear in the Results panel as
symbols representing the components matched by the search, and arranged in groups, depending
on how well a search string matches the component. Generally, components which match the
search string exactly appear in the Best Match group. The Match groupings do not appear in
Windows® versions older than Vista®. Instead the results are simply presented sorted by priority.
When you select a particular component you can see its description and library path in the text box at
the bottom of the tab. You can either drag and drop the desired component from the Results panel
onto the schematic, or double-click to attach it to the mouse. Use the Component Help button to
view online help information for components.
l Circles
l Lines
l Rectangles
l Polygons
l Text
l Images
Components
Properties are copied only when property names match.
Parameters, and property displays are copied along with properties and their attributes.
Note Property displays are copied to the same location as the source if they are on the left,
bottom, right, top or center. Custom location property displays are copied to the default
bottom location.
Related Topics
To copy and paste selected properties from one component to one or more components:
1. Select the component you want to copy from.
2. Use one of the following methods to access Copy Data:
l Click Edit > Copy Data.
l Press Ctrl+Shift+C.
l Press Ctrl+Shift+V.
l Click Select in the first column to toggle between selecting all and clearing all.
l Click the Select check box for the property. If you do not want to include the property, clear
Related Topics
To copy and paste the common properties from one primitive drawing element (graphical object) to
another:
1. Select the object you want to copy from.
2. Use one of the following methods to access Copy Data:
l Click Edit > Copy Data.
l Press Ctrl+Shift+C.
l Press Ctrl+Shift+V.
5. In the Properties pane, keep the default selections or clear the check boxes for the properties
you do not want to copy.
Click the Show Description check box to display the description for each property.
6. Click OK. The properties are pasted into the object.
Related Properties
Copying and Pasting Properties
To Copy and Paste Selected Properties for Components
Components
A number of components are available in the Circuit simulator.
To view and select components, click the Components tab in the Component Libraries Window.
To expand a component subgroup, double-click its book icon. To read about a specific component,
right-click its icon in the tree and select View Component Help.
The following types of elements are available in Maxwell Circuit Editor:
l Dedicated Elements
l Passive Elements
l Probes
l Sources
Once components are placed in the schematic for a project, they appear in the project tree beneath
the Project Components branch. The most recently placed components also appear under the
Most Recently Used branch in the project tree. You can also set Favorites that can be accessed
from the project tree.
Related Topics
Dedicated Elements
The following dedicated elements are available in the Maxwell Circuit Editor project tree:
l AC_Model: Component for identifying windings with AC currents
l Winding: Winding
The text before the colon (:) represents the component name and can be changed in the Properties
window once the component is placed in the schematic.
Related Topics
AC_Model
The AC_model element is used to specify AC windings for which you want to modify eddy currents in
solid conductors. This allows you to modify currents for AC windings at the beginning of each period
without interrupting the transient process.
To change the name of the model placed on the sheet, click the symbol on the sheet, and change the
name of the component in the property window (Value field in the DeviceName line, with the Param
Values tab selected).
l Windings, which is the AC winding list separated by commas. For example, PhA, PhB, PhC.
The commutator bar element is intended to be used for the motor model with a commutator. This
element models the variable (periodic) contact resistance between the brush and the commutator
bars, as well as the switching (commutation of the current) that occurs when the brush makes
contact with the two adjacent commutator bars.
The element itself must always be used together with the corresponding commutator bar model. The
commutator bar model can be dropped on the sheet anywhere and needs no connections. Only the
commutator bar element itself should be connected as required by the application. The commutator
bar elements need to reference the applicable commutator model.
Once the commutator bar element has been dropped on the sheet, you can double-click it to access
the properties (make sure the Parameter Values tab is selected). Specify the applicable
commutator bar model name in the MOD line and also the Lag parameter in degrees. Lag identifies
the angle the commutator bar has to rotate from TIME = 0 in the chosen sense of rotation until it is
perfectly aligned with the brush. By defa1ult, the element ID and lagging angle in degrees are
displayed next to the element.
The commutator bar model needs to be dropped on the circuit sheet. It is unique for every
commutator bar element. The commutator bar model contains the following parameters:
l Model name that has to be referenced by all the commutator bar elements;
l R, the full contact resistance between brush and commutator bar, regardless of which of the
two is wider;
l WidB is the brush width in mechanical degrees;
l WidC is the commutator bar width in mechanical degrees (does not include the insulation
machine, 180 for a four pole machine with lap winding, etc.
Related Topics
Winding
The winding element is used in the Maxwell Circuit Editor to create the necessary connection
between the finite element model (the type of solution that supports the concept of winding, such as
the transient type of analysis, with or without motion) and the driving circuits. It is necessary that the
name(s) assigned for the winding(s) in the finite element model are matched exactly in the driving
circuit created in Maxwell Circuit Editor. Windings can be placed on the design sheet at any moment
while you are creating the circuitry to be used to drive the finite element windings.
To change the name of the winding placed on the sheet, click the winding symbol on the sheet, and
change the name of the component in the property window (Value field in the DeviceName line, with
the Param Values tab selected).
Note The dot next to the winding symbol is used as the positive reference for the initial current
(positive current is oriented from the "dotted" terminal towards to "un-dotted" terminal of
the winding, through the winding).
ECEW_Model
The ECEW model enables you to create an ECE model from Maxwell Transient solutions.
Compared with the procedure for creating ECE model from Maxwell Magnetostatic solutions,
creating an ECE model directly from Maxwell Transient solutions takes advantage of winding and
motion setups in Maxwell Transient.
The ECEW model is used to setup the sweeping of one winding current. To change the name of the
model placed on the sheet, click the symbol on the sheet, and change the name of the component in
the property window (Value field in the DeviceName line, with the Parameter Values tab selected).
l CurrentSweeps – specifies lists of all sweep currents. The format is: “v1, v2, (dv1, n1), v3,
…”, where v1, v2, v3 specify individual sweep values, and (dv1, n1) specify a sweeping
range with dv1 being the increment, and n1 the number of increments. For example, a list of
“-2.5A, (0.5A, 10)” is equivalent to "-2.5A, -2A, -1.5A, -1A, -0.5A, 0, 0.5A, 1A, 1.5A, 2A,
2.5A", and a list of "(0.5A, 5)" is equivalent to “0, 0.5A, 1A, 1.5A, 2A, 2.5A”.
l Res – phase winding resistance (available when Show Hidden is checked).
An ECEW_Model can be used individually to create the ECE model of a single-phase inductor, or
combined with other ECEW_Models to setup two or more windings for poly-phase inductors. It can
also be combined with an ECER_Model, as well as an ECE3_Model, for rotational electrical
machines.
For ECE model creation, the setup of Stop Time and Time step are ignored. At Maxwell run time, the
circuit simulator assigns currents for all windings step-by-step based on the lists of current sweeps
until all sweeps are finished. Then an ECE model is created automatically. You can import this ECE
model in Simplorer via the Simplorer Circuit/SubCircuit/Maxwell Component/Add Equivalent
Circuit menu command. For more information on coupling Maxwell designs to Simplorer
components, refer to the Maxwell Equivalent Circuit Component topic in the Simplorer Online Help.
Note You can add an ECEW_Model to an existing external circuit without deleting the original
circuit. In such cases, the original circuit is ignored and can be kept for future use. If you
want to recover the original circuit for a transient simulation, instead of ECE model
creation, you just need to deactivate each ECE related model by right-clicking the model
and selecting Deactivate in the short-cut menu.
For more information on coupling Maxwell designs to Simplorer components, refer to "Coupling
Maxwell to a Simplorer Component" on page 16-40 .
ECE3_Model
The ECE3 model enables you to create an ECE model from Maxwell Transient solutions. Compared
with the procedure for creating ECE model from Maxwell Magnetostatic solutions, creating an ECE
model directly from Maxwell Transient solutions takes advantage of winding and motion setups in
Maxwell Transient.
The ECE3 model is used to setup the sweeping of currents in three-phase windings. To change the
name of the model placed on the sheet, click the symbol on the sheet, and change the name of the
component in the property window (Value field in the DeviceName line, with the Parameter Values
tab selected).
n1), v3, …", where v1, v2, v3 specify individual sweeping values, and (dv1, n1) specify a
sweep range with dv1 being the increment, and n1 the number of increments. For example,
a list of "(0.5A, 5)" is equivalent to "0, 0.5A, 1A, 1.5A, 2A, 2.5A".
l PhAngIntervals – specifies the sweep types, or the number of phase-angle sweep intervals.
For three-phase windings, only two independent variables are swept to derive three-phase
currents, instead of directly sweeping three-phase currents. The two independent variables
angle . When , the current amplitude and phase angle sweep type
are defined. The current amplitude Im is swept based on the setup of CurrentSweeps, and
the phase angle is swept from 0 to 360 electrical degrees with the increment of
table is not extended. When PhAngIntervals = 3, both and sweeps are extended
symmetrically from negative to positive, and the computed look-up table is not extended.
l Res – phase winding resistance (available when Show Hidden is checked).
l IndE – phase end-leakage inductance (available when Show Hidden is checked).
An ECE3_Model can be used individually to create the ECE model of a three-phase inductor, or
combined with the ECER_Model for three-phase PM machines. It can also be combined with the
ECER_Model and ECEW_Model for winding excited three-phase synchronous machines. An
ECE3_Model with DQ current sweep type must always be used with an ECER_Model.
For ECE model creation, the setup of Stop Time and Time step are ignored. At Maxwell run time, the
circuit simulator assigns currents for all windings step-by-step based on the lists of current sweeps
until all sweeps are finished. An ECE model is then created automatically. You can import this ECE
model in Simplorer via the Simplorer Circuit/SubCircuit/Maxwell Component/Add Equivalent
Circuit menu command. For more information on coupling Maxwell designs to Simplorer
components, refer to the Maxwell Equivalent Circuit Component topic in the Simplorer Online Help.
Note You can add an ECE3_Model to an existing external circuit without deleting the original
circuit. In such cases, the original circuit is ignored and can be kept for future use. If you
want to recover the original circuit for a transient simulation, instead of ECE model
creation, you just need to deactivate each ECE related model by right-clicking the model
and selecting Deactivate in the short-cut menu.
For more information on coupling Maxwell designs to Simplorer components, refer to the Coupling
Maxwell to a Simplorer Component topic in the Maxwell Online Help
ECER_Model
The ECER model enables you to create an ECE model from Maxwell Transient solutions.
Compared with the procedure for creating ECE model from Maxwell Magnetostatic solutions,
creating an ECE model directly from Maxwell Transient solutions takes advantage of winding and
motion setups in Maxwell Transient.
The ECER model is used to setup the sweeping of rotor position. To change the name of the model
placed on the sheet, click the symbol on the sheet, and change the name of the component in the
property window (Value field in the DeviceName line, with the Parameter Values tab selected).
l RotAngMax – specifies the maximum rotating angle (in mechanical degrees) for sweeping.
l RotAngIntervals – specifies the number of uniform sweep intervals for rotating angle.
l SkewAng – specifies the skew angle (in mechanical degrees) of the stator or rotor core for
2D only.
l Poles – specifies the number of poles of the machine.
l Slots – specifies the number of stator slots to determine cogging torque period (available
in ABC; 1 for flux linkages in DQ0; 2 for inductances in DQ and field flux linkage (available
when Show Hidden is checked).
An ECER_Model cannot be used individually. It should be used combined with an ECEW_Model
and/or an ECE3_Model for rotational electrical machines. When DQFluxOutput is checked, it must
be combined with an ECE3_Model.
For ECE model creation, the setup of Stop Time and Time step are ignored. At Maxwell run time, the
circuit simulator assigns currents for all windings step-by-step based on the lists of current sweeps
until all sweeps are finished. An ECE model is created automatically. You can import this ECE model
in Simplorer via the Simplorer Circuit/SubCircuit/Maxwell Component/Add Equivalent
Circuit menu command. For more information on coupling Maxwell designs to Simplorer
components, refer to the Maxwell Equivalent Circuit Component topic in the Simplorer Online Help.
Note You can add an ECER_Model to an existing external circuit without deleting the original
circuit. In such cases, the original circuit is ignored and can be kept for future use. If you
want to recover the original circuit for a transient simulation, instead of ECE model
creation, you just need to deactivate each ECE related model by right-clicking the model
and selecting Deactivate in the short-cut menu.
For more information on coupling Maxwell designs to Simplorer components, refer to "Coupling
Maxwell to a Simplorer Component" on page 16-40 .
ECEL_Model
The ECEL_model is used to setup the sweeping of mover position of a translational motion. To
change the name of the model placed on the sheet, click the symbol on the sheet, and change the
name of the component in the property window (Value field in the DeviceName line, with the
Parameter Values tab selected).
ECEL_Model1
ECET_Model
The ECET_model is used to setup the sweeping of the magnetizing current for each phase of a
single- or poly-phase transformer. To change the name of the model placed on the sheet, click the
symbol on the sheet, and change the name of the component in the property window (Value field in
the DeviceName line, with the Parameter Values tab selected).
ECET_Model1
constant. Therefore, only the magnetizing current of the primary winding for each phase is required
to be swept, which reduces the number of sweeping points significantly.
For ECE model creation, the setup of Stop Time and Time step are ignored. At Maxwell run time, the
circuit simulator assigns currents for all windings step-by-step based on the list of current sweeps
until all sweeps are finished. An ECE model is created automatically. You can import this ECE model
in Simplorer via the Simplorer Circuit/SubCircuit/Maxwell Component/Add Equivalent
Circuit menu command. For more information on coupling Maxwell designs to Simplorer
components, refer to the Maxwell Equivalent Circuit Component topic in the Simplorer Online Help.
Note You can add an ECET_Model to an existing external circuit without deleting the original
circuit. In such cases, the original circuit is ignored and can be kept for future use. If you
want to recover the original circuit for a transient simulation, instead of ECE model
creation, you just need to deactivate each ECE related model by right-clicking the model
and selecting Deactivate in the short-cut menu.
For more information on coupling Maxwell designs to Simplorer components, refer to "Coupling
Maxwell to a Simplorer Component" on page 16-40 .
Passive Elements
Thirteen passive elements are available in the Maxwell Circuit Editor project tree:
l Cap: Capacitor
l DIODE: Diode
l Ind: Inductor
l Res: Resistor
The text before the colon (:) represents the component name and can be changed in the Properties
window once the component is placed in the schematic.
Related Topics
Diode element must always be used together with a diode model. One diode model element can be
used as reference for multiple diodes, as needed. Thus, once a diode is placed on the design sheet,
a corresponding model must also be present on the sheet. Once both needed elements (diode and
diode model) have been placed on the sheet, right mouse click the diode model and specify the
parameters as required by the application. Then, right mouse click the diode and create the
reference to the corresponding model by entering the name of the model in the MOD line (Parameter
Values tab should be selected). If you select the Show Hidden check box, the AREA diode
parameter (used below in the model definition) becomes visible. The default value of the AREA
parameter is 1.
The diode model used by Maxwell Circuit Editor is a static model as described by the following
equation:
Capacitor (CAP)
A capacitor is assumed to be ideal (without losses or inductance) and is defined by the value of its
capacitance (in the unit chosen by the user) and the corresponding initial condition (initial voltage).
The straight bar of the capacitor symbol is used as the positive reference, and the curved bar of the
capacitor symbol is used as a negative reference for the initial voltage (expressed in volts). The
default value of the initial voltage for all capacitors is zero. By default, the capacitance and element
ID are displayed next to the component.
Resistor (Res)
Resistor is assumed to be ideal (without inductive or capacitive effects) and is defined by the value of
its resistance (in the unit chosen by the user, Ohm by default.
By default the resistance and element ID are displayed next to the component.
Inductor (IND)
Inductor is assumed to be ideal (without resistive or capacitive effects) and is defined by the value of
its inductance (in the unit chosen by the user) and the corresponding initial condition (initial current).
Note that the dot next to the inductor symbol is used as the positive reference for the initial current
(positive current is oriented from the "dotted" terminal towards to "un-dotted" terminal of the inductor,
through the inductor). The dot is also used to specify the mutual inductance between two or more
inductors and thus determines the "polarized" terminals of the inductors. The default value of the
initial current for all inductors is zero. By default the inductance and element ID are displayed next to
the component.
Mutual inductance is used to specify the inductive coupling between inductors. It is defined by
specifying the IDs of the coupled inductors (always in pairs) and the coupling coefficient, a number
between -1 and 1. The default value of the coupling coefficient is 0.95.
The current controlled switch comes in two flavors: with controlling port and without a controlling
port. In either case a model data for the current controlled switch needs to be specified, similarly to
the case of the diode.
Right-click the current controlled switch model and select Properties. With the Parameter Values tab
selected, specify the switch model name (in the MOD line) as well as the ID of the controlling
element: either an ammeter or a voltage source. In the later case the controlling quantity is the
current through the voltage source. (Note that an ammeter is a voltage source with zero voltage, i.e.
a short circuit).
The current controlled switch with controlling port allows for the controlling quantity to be wired
directly using connections with wires. In this case a reference arrow in the controlling port is
displayed and is internally used as current reference (positive current flow as indicated by the arrow).
In the model for the current controlled switch the following parameters are used:
l Ron is the resistance of the switch in the on state (0.001 ohms default value).
l Roff is the resistance of the switch in the off state (1,000,000 ohms default value).
l Ion is the "on" value of the controlling current in amps. If I>Ion, then R=Ron.
l Ioff is the "off" value of the controlling current in amps. If I<Ioff, then R=Roff.
Note Setting ROFF = 0 in the voltage or current controlled switch model data changes the
behavior of the device into a controlled conductance, according to the following
equation:
where:
the conductance is dictated by both the value of RON and the magnitude of the
control signal, while the time / position / speed dependency is dictated by the control
signal itself.
Note Setting RON = 0 in the voltage or current controlled switch model data changes the
behavior of the device into a controlled resistance, according to the following
equation:
where:
The voltage controlled switch comes in two flavors: with controlling port and without a controlling
port. In either case a model data for the voltage controlled switch needs to be specified, similarly to
the case of the diode and current controlled switches.
Right-click the voltage controlled switch model and select Properties. With the Parameter Values tab
selected, specify the switch model name (in the MOD line) as well as the ID of the controlling
element: either a voltmeter or a current source. In the later case the controlling quantity is the voltage
across the current source. (Note that a voltmeter is a current source with zero current, i.e. an open
circuit).
The voltage controlled switch with controlling port allows for the controlling quantity to be wired
directly using connections with wires. In this case the reference for the voltage across the controlling
port is displayed by "+" and "-" symbols and the two symbols are internally used as voltage reference.
In the model for the voltage controlled switch the following parameters are used:
l Ron is the resistance of the switch in the on state (0.001 ohms default value).
l Roff is the resistance of the switch in the off state (1,000,000 ohms default value).
l Von is the "on" value of the controlling voltage in volts. If V>Von, then R=Ron.
l Voff is the "off" value of the controlling voltage in volts. If V<Voff, then R=Roff.
Note Setting ROFF = 0 in the voltage or current controlled switch model data changes the
behavior of the device into a controlled conductance, according to the following
equation:
where:
where:
Transformer
The transformer is an ideal element of infinite power without resistive or capacitive effects and linear.
It is defined the values of the primary and secondary inductances and the coupling coefficient
between the two windings.
Probes
Three types of probes are available in the Maxwell Circuit Editor project tree:
l Ammeter: Ammeter
l Voltmeter: Voltmeter
The text before the colon (:) represents the component name and can be changed in the Properties
window once the component is placed in the schematic.
Related Topics
Ammeter
The ammeter is an ideal element (equivalent with an ideal voltage source with zero voltage). An
arrow is attached to the symbol so that a positive current measured by the ammeter flows as
indicated by the arrow.
No numerical value is needed, just the element ID and name may by altered by the user.
Voltmeter
The voltmeter is an ideal element with two pins (equivalent with an ideal current source with zero
current). A plus sign is attached to the voltmeter symbol so that a reference for the voltage measured
by the voltmeter is possible.
No numerical value is needed, just the element ID and name may by altered by the user.
The voltmeter with one pin grounded is an ideal element with one pin, equivalent with an ideal
current source with zero current. A plus sign is not necessary since it is assumed that the grounded
pin (not available for connection in the circuit) is the negative one while the pin available for
connection is the positive one. Thus, the reference for the voltage measured by the voltmeter is
possible.
No numerical value is needed, just the element ID and name may by altered by the user.
Related Topics
DC Current Source
This type of source specifies the DC current flowing in a conductor. You can set either the total
current or the current density flowing in the object.
l If total current is specified, the current density is assumed to be uniformly distributed
function of position.
This is an independent current source with an exponential waveform of the current as function of
time as shown in the figure below. The arrow symbol shows the direction of the positive current flow
through the current source.
l In geometry units per second if type is SPEED and type of motion is translational;
l In geometry units per second if type is SPEED and type of motion is translational;
l In geometry units per second if type is SPEED and type of motion is translational;
l In geometry units per second if type is SPEED and type of motion is translational;
This is an independent current source with a trapezoidal waveform of the current as a function of
time. The arrow symbol shows the direction of the positive current flow through the current source.
l In geometry units per second if type is SPEED and type of motion is translational;
l In geometry units per second if type is SPEED and type of motion is translational;
l In geometry units per second if type is SPEED and type of motion is translational;
l In geometry units per second if type is SPEED and type of motion is translational;
l In geometry units per second if type is SPEED and type of motion is translational;
This is an independent current source with a piecewise linear waveform of the current as a function
of time. The arrow symbol shows the direction of the positive current flow through the current source.
A piecewise linear current source is described by up to 20 pairs (Ti, Ii), where every pair of values
specifies the value Ii in Amps of the current at time Ti in the following units:
l In seconds if type is TIME.
l In geometry units per second if type is SPEED and type of motion is translational.
This is an independent current source with a single frequency modulated sinusoidal waveform of the
current as a function of time. The arrow symbol shows the direction of the positive current flow
through the current source.
where:
l Io is Offset current in Amps.
If the type is POSITION, the frequency should be calculated based on the respective spatial
periodicity, taking into account the fact that "t" in the above equation is measured in degrees for
rotational type of motion and in the user-defined geometry units for translational type of motion.
If the type is SPEED, the frequency should be calculated based on the respective speed periodicity,
taking into account the fact that "t" in the above equation is measured in rpm for rotational type of
motion and in the user-defined geometry units per second for translational type of motion.
This is an independent current source with an exponentially damped sinusoidal waveform of the
current as a function of time. The arrow symbol shows the direction of the positive current flow
through the current source.
where:
l Io is Offset current in Amps.
DC Voltage Source
This type of source specifies the total DC voltage (electric potential) on a conductor. Voltages can be
defined as constants or as math functions; however, the potential on a conductor is constant over the
entire conductor. Note that conductors that touch should be set to the same voltage or defined as a
single voltage source, since their potentials are identical.
DC voltage may also be specified on an edge or edges. Voltages can be defined as constant or as
functions of position (for instance, to model a specific distribution of potential on the surface of a
dielectric).
This is an independent voltage source with an exponential waveform of the voltage as a function of
time. The "+" and "-" symbols are used to mark the polarity of the source.
l In geometry units per second if type is SPEED and type of motion is translational;
l In geometry units per second if type is SPEED and type of motion is translational;
l In geometry units per second if type is SPEED and type of motion is translational;
l In geometry units per second if type is SPEED and type of motion is translational;
This is an independent voltage source with a trapezoidal waveform of the voltage as a function of
time. The "+" and "-" symbols are used to mark the polarity of the source.
l In geometry units per second if type is SPEED and type of motion is translational;
l In geometry units per second if type is SPEED and type of motion is translational;
l In geometry units per second if type is SPEED and type of motion is translational;
l In geometry units per second if type is SPEED and type of motion is translational;
l In geometry units per second if type is SPEED and type of motion is translational;
This is an independent voltage source with a piecewise linear waveform of the voltage as a function
of time. The "+" and "-" symbols are used to mark the polarity of the source.
A piecewise linear voltage source is described by up to 20 pairs (Ti, Vi), where every pair of values
specifies the value Vi in Volts of the voltage at time Ti in the following units:
l In seconds if type is TIME.
l In geometry units per second if type is SPEED and type of motion is translational.
This is an independent voltage source with a single frequency modulated sinusoidal waveform of the
voltage as a function of time. The "+" and "-" symbols are used to mark the polarity of the source.
where:
l Vo is Offset voltage in Volts.
If the type is POSITION, the frequency should be calculated based on the respective spatial
periodicity. taking into account the fact that "t" in the above equation is measured in degrees for
rotational type of motion and in the user-defined geometry units for translational type of motion.
If the type is SPEED, the frequency should be calculated based on the respective speed periodicity,
taking into account the fact that "t" in the above equation is measured in rpm for rotational type of
motion and in the user-defined geometry units per second for translational type of motion.
This is an independent voltage source with an exponentially damped sinusoidal waveform of the
voltage as a function of time. The "+" and "-" symbols are used to mark the polarity of the source.
where:
The AF model algorithm adds an additional voltage component to the original voltage definition
during the first half-cycle to quickly eliminate the DC flux linkage, thus speeding up simulation
solutions.
Note l RMxprt automatically enables the AF model in the voltage definition for each winding
when the Maxwell 2D or 3D model and associated Maxwell circuit are created.
l This speedup capability is only applicable to voltage sources whose integration of
voltage quantity over one period is zero. This means the DC component of all voltage
sources must also be zero.
Hint To access these commands, you can also right-click and select one of the following
from the shortcut menu:
l Place and Finish
l Finish
Related Topics
l Parameter Values
l General
l Symbol
l Property Displays
Note Variables may be assigned to parameter values in the circuit by entering a
variable name in the parameter value field and assigning a value in the Add
Variable dialog box. Variables assigned in Maxwell Circuit Editor will be
exported with the circuit and are available for modifying when the circuit is
imported into another ANSYS application.
3. Optionally, you can select or clear the Show Hidden check box on any of the Properties
window tabs.
4. Click OK.
The specific properties differ per component, as seen in the help topics describing each circuit
component.
Each tab of the Properties window contains a list of parameters (each individual row) and
properties you need to set for each parameter (each column is a property).
Related Topics
Related Topics
Note External circuits intended for use with the Time Decomposition Method (TDM) can only
support basic circuit elements that are solution-independent. This is because, for TDM, all
time steps (or all time steps in a subdivision) are solved simultaneously - and thus the circuit
topology and its parameters must be known before solving. Therefore some circuit
elements, such as solution-dependent switches, diodes, capacitors, and inductors which
are not directly connected to windings in series, are not supported.
The driving circuit for the winding in this design consists of a voltage source in series with a resistor
and with the winding. When complete, the circuit should look similar to the figure below.
a. In the project tree, under Sources select a VPulse element (Pulse Voltage Source).
b. Drag it to the sheet, and then right-click and select Finish to place it onto the sheet.
c. Double-click the source element symbol on the sheet, and then specify the following
source characteristics:
Parameter Value Description
V1 0 Initial
voltage
V2 5.97 Peak
voltage
Tr 0.001 Rise time
Tf 0.001 Fall time
Pw 1 Pulse width
Period 2
d. Leave the other fields set to the default values, and click OK.
The DC winding is of lap type with coil pitch of 5 slots. The flat-out extensional drawing of the motor
indicating the relationship of permanent magnets, coils, commutating bars, and brushes at the initial
position is shown in Fig. 2. With the rotation direction shown in Fig. 2, the brush aligned with the S
pole is positive, and the brush aligned with the N pole is negative. The "go" terminal of coil0 connects
to bar0, and its return terminal connects to bar1; the "go" terminal of coil1 connects to bar1, and its
return terminal connects to bar2; and so on.
At the initial time, bar0 lags the positive brush by 15 mechanical degrees (a half commutating bar
pitch), and it lags the negative brush by 195 mechanical degrees; bar1 lags the positive brush by -15
mechanical degrees, or 345 degrees, and it lags the negative brush by 165 mechanical degrees; and
so on. The functional connection of each commutating bar with the positive brush or negative brush
is modeled by BarC (commutating bar) elements, as shown in Fig. 3 with ID number from 37 to 60.
In Fig. 3, elements with ID numbers of 37 to 48 represent the functional connections of bar0 to bar11
with the positive brush, respectively. Elements with ID numbers of 49 to 59 and 60 give the functional
connections of bar1 to bar11, and bar0 with the negative brush, respectively. The additional inductor
in series with each coil inductance represents the end turn effect that is desirable to consider in a 2D
model and possibly also in a 3D model that does not include the end turn geometry. The additional
series resistor in series with each coil represents the global resistance of the coil and needs to be
included in both 2D and 3D simulations. The values between the BarC element symbols and ID
numbers are the respective lagging angles in mechanical degrees. The element parameters can be
edited by double-clicking on the element, as shown in Fig. 4.
In Fig. 4, the input value "ComModel" for MOD is the model name that defines the parameters of
commutating bars and brushes. The parameters of ComModel can be edited by double-clicking the
BarC_Model element, as shown in Fig. 5.
In this design, the commutator diameter is 24mm, and the brush width is 8mm. Therefore, the brush
width in mechanical degrees is the following:
WidB = 2 * arcsin(8/24) = 38.9 (deg)
The number of commutator bars is 12 (the same as the number of slots), and the commutator
insulation thickness is 0.5mm. Therefore, the commutator bar width in mechanical degrees is the
following:
WidC = 360/12 - 2 * arcsin(0.5/24) = 27.6 (deg)
The electric conductance between a commutating bar and a brush varies with the rotor position and
can be derived from the model parameters, as shown in Fig. 6, where Gmax = 1 / R.
In Fig. 6, LagAngle is treated as a BarC element parameter because it is different for different
commutating bars. All other values (Gmax, WidB, WidC, and Period) can be obtained from BarC_
Model parameters. Positions a, b, c, and d correspond to the positions when one side of a
commutating bar (solid color) aligns to one side of a brush, as shown in Figs. 7 and 8.
The computed no-load induced voltage, taking into account the commutating process, is shown in
Fig. 9.
Technical Notes
These technical notes contain background information on the theory behind the Maxwell, including:
l A list of all Maxwell software modules.
admittance matrices; virtual force and torque; flux linkage; and current flow for the following
field solvers:
l Electrostatic
l Magnetostatic
l Eddy current
l DC conduction
l AC conduction
l Transient
l The differences between field solutions in cartesian (XY) and axisymmetric (RZ) models.
l An overview of the phasor notation used in this guide to represent complex field quantities.
Related Topics
Optimization Overview
Solvers
Maxwell 2D consists of the following solver modules:
Computes the static electric field that exists in a structure given a distribution of
Electrostatic
DC voltages and static charges. A capacitance matrix, force, torque, and flux
Field Solver
linkage may also be computed from the electric field.
Computes the static magnetic field that exists in a structure given a distribution of
DC currents and permanent magnets. The magnetic field may be computed in
Magnetostatic
structures with both nonlinear and linear materials. An inductance matrix, force,
Field Solver
torque, and flux linkage may also be computed from the energy stored in the
magnetic field.
Computes the AC voltages and current density distribution in a material having
AC
both conductive and dielectric properties given a distribution of AC voltages. An
Conduction
admittance matrix and current flow may also be computed from the calculated
Field Solver
fields.
DC Computes the DC currents that flow in a lossy dielectric given a distribution of DC
Conduction voltages. A conductance matrix and current flow may also be computed from the
Field Solver computed electric field solution.
Computes the oscillating magnetic field that exists in a structure given a
distribution of AC currents. Also computes current densities, taking into account
Eddy Current
all eddy current effects (including skin effects). An impedance matrix, force,
Field Solver
torque, core loss, and current flow may also be computed from the computed field
solution.
Computes transient (Time Domain) magnetic fields caused by permanent
Transient magnets, conductors, and windings supplied by voltage and/or current sources
Magnetic with arbitrary variation as functions of time, position and speed. It can also be
Solver coupled with external circuits. Rotational or translational motion effects can be
included in the simulation.
Electrostatic Theory
The electrostatic field simulator solves for the electric potential, φ(x,y), in this field equation:
where:
l φ(x,y) is the electric potential.
l εr is the relative permittivity. It can be different for each material.
l εo is the permittivity of free space, 8.854 x 10—12 F/m.
l ρ(x,y) is the charge density.
This equation is derived from Gauss’s Law and from Faraday’s law of induction. Gauss’s Law
indicates that the net electric flux passing through any closed surface is equal to the net positive
charge enclosed by that surface. In differential form, Gauss’s Law is:
which is the equation that the electrostatic field simulator solves using the finite element method.
After the solution for the potential is generated, the system automatically computes the E-field and
Capacitance
At the simplest level, capacitance relates to the amount of energy stored in the electric field in and
surrounding a structure. In a single circuit, the capacitance represents the amount of energy stored
in the electric field that arises due to a voltage differential across a dielectric.
where We is the energy stored in the electric field, C is the capacitance, and v is the voltage across
the dielectric.
Maxwell computes the capacitance between two conductors by simulating the electric field that
arises when a voltage differential is applied. By computing the energy stored in the field, the
corresponding capacitance can be computed.
To compute capacitances using this method, the E-field and D-field associated with a given
distribution of voltages must first be computed. The electrostatic field simulator, which computes the
electric potential at all points in the problem region, does this.
A capacitance matrix represents the charge coupling within a group of conductors — that is, the
relationship between charges and voltages for the conductors. Given the three conductors shown
below, with the outside boundary taken as a reference, the net charge on each object will be:
Q1 = C10 V1 + C12(V1 - V2) + C13(V1 - V3)
Q2 = C20 V2 + C12(V2 - V1) + C23(V2 - V3)
Q3 = C30 V3 + C13(V3 - V1) + C23(V3 - V2)
The capacitance matrix above gives the relationship between Q and V for the three conductors and
ground. In a device with n conductors, this relationship would be expressed by an n x n capacitance
matrix. Capacitance matrix values are specified in farads (coulombs/volt).
If one volt is applied to Conductor 1 and zero volts is applied to the other two conductors, the
capacitance matrix becomes:
The diagonal elements in the matrix (such as C(1,1)) are the sum of all capacitances from one
conductor to all other conductors. These terms represent the self-capacitance of the conductors.
Each is numerically equal to the charge on a conductor when one volt is applied to that conductor
and the other conductors (including ground) are set to zero volts. For instance,
C(1,1) = C10 + C12 + C13
The off-diagonal terms in each column (such as C(1,2), C(1,3)) are numerically equal to the charges
induced on other conductors in the system when one volt is applied to that conductor. For instance,
in column one of the example capacitance matrix, C(1,2) is equal to
-C12. This is equal to the charge induced on Conductor 2 when one volt is applied to Conductor 1
and zero volts are applied to Conductor 2.
The off-diagonal terms are simply the negative values of the capacitances between the
corresponding conductors (the mutual capacitances). In column one of the example capacitance
matrix, the off-diagonal terms represent the capacitances between Conductor 1 and the other two
conductors; in column two, the terms represent the capacitance between Conductor 2 and the other
conductors; and so forth.
Note that the capacitance matrix is symmetric about the diagonal. This indicates that the mutual
effects between any two objects are identical. For instance, C(1,3), the capacitance between
Conductor 1 and Conductor 3 (-C13), is equal to C(3,1), the capacitance between Conductor 3 and
Conductor 1.
A capacitance matrix can also represent the relationship between currents and time varying voltages
in a system of conductors.
Given the three transmission lines shown here,
the currents caused by the time varying voltage source on each line are given by the following
relationship:
If dV2 /dt and dV3 /dt are set to zero, this relationship becomes:
This gives the currents that are induced on Line 2 and Line 3 when a time varying voltage source is
applied to Line 1 — that is, the capacitive coupling between the three lines, or the short circuit
capacitance.
Computing Capacitance
To compute a capacitance matrix for a structure, the Maxwell performs a sequence of electrostatic
field simulations. In each field simulation, one volt is applied to a single conductor and zero volts is
applied to all other conductors. Therefore, for an n-conductor system, n field simulations are
automatically performed.
The energy stored in the electric field associated with the capacitance between two conductors is
given by the following relation:
where:
l Wij is the energy in the electric field associated with flux lines that connect charges on
i.
l Ej is the electric field associated with the case in which one volt is placed on conductor j.
Unlike the classical virtual work method, the plate is not actually moved during the numerical process
of the force computation. Instead, only the triangles that lie along the outside surface of the object
are virtually distorted. W and its derivative, dW/dx, are calculated from a single field solution using
finite element interpolation functions.
Unlike the classical virtual work method, the plate is not actually rotated during the numerical process
of the torque computation. Instead, only the triangles that lie along the outside surface of the object
are virtually distorted. W and its derivative, dW/dθ, are calculated from a single field solution using
finite element interpolation functions.
where E is the electric field and A is the area over which flux density is computed.
l In cartesian (XY) models, the area is found by sweeping the flux line you’ve drawn in the xy-
plane into the z direction — forming a 3D surface. The electric flux value computed is the flux
Magnetostatic Theory
The magnetostatic field simulator solves for the magnetic vector potential, Az(x,y) in this field
equation:
where:
l Az(x,y) is the z component of the magnetic vector potential.
The magnetostatic field simulator solves this equation using the finite element method.
After Az(x,y) is computed, the magnetic flux density, B, and the magnetic field, H, can then be
computed using the relationships:
Inductance
At the simplest level, inductance relates to how much energy is stored in the magnetic field when
current flows.
where:
l Wm is the energy stored in the magnetic field
l L is the inductance
The Maxwell computes inductances associated with a structure by simulating the magnetic field that
arises when various voltages and currents are applied. Then, by computing the energy stored in
those fields, it can then compute the necessary inductances:
To compute inductances using this method, the B-field and H-field associated with a distribution of
currents must first be computed. The magnetostatic field simulator, which computes the magnetic
vector potential at all points in the problem region, performs this task.
An inductance matrix represents the magnetic flux linkage between the current loops in a system.
Given the three current loops below, the relationship between induced flux and currents is as follows:
λ1 = L11 i1 + L12 i2 + L13 i3
λ2 = L12 i1 + L22 i2 + L23 i3
λ3 = L13 i1 + L23 i2 + L33 i3
The inductance matrix above gives the relationship between λ and i for the three independent
current loops. In a device with n current loops, this relationship would be expressed by an n×n
inductance matrix. Inductance matrix values are specified in henries.
If one ampere is applied to Current Loop 1 and zero amperes are applied to the other two loops, the
inductance matrix becomes:
The diagonal terms in the matrix (such as L11) represent the self-inductance of each current loop.
Self-inductance is numerically equal to the flux linkage in a current loop when one ampere is flowing
in it, and no current is flowing in the other loops. For example, L11 is equal to the flux in Current Loop
1 when one ampere is flowing in that current loop, and no current is flowing in the other loops.
The off-diagonal terms (such as L12, L13) represent the mutual inductances between the current
loops. Mutual inductance is numerically equal to the flux linkage in a current loop when one ampere
is flowing through another loop, and no current is flowing anywhere else. For example, L12 is equal
to the flux linkage in Loop1 when one ampere is applied to Loop 2 and no current is flowing in the
other loops.
Note that the inductance matrix is symmetric about the diagonal. This indicates that the mutual
effects between any two loops are identical. For instance, L13, the inductance between Current
Loop 1 and Current Loop 3, is equal to the inductance between Current Loop 3 and Current Loop 1.
An inductance matrix can also represent the relationship between voltage and current fluctuations in
a system. Given the three transmission lines shown below, the voltage changes caused by the time
varying current source on each line are given by:
The inductance matrix above gives the relationship between ∆V and di/dt for the three independent
transmission lines.
If di2/dt and di3/dt are set to zero, this relationship becomes
This gives the voltage changes that are induced on Lines 2 and 3 when a time-varying current source
is applied to Line 1 — that is, the inductive coupling between all the loops.
where:
l Wij is the energy stored in the magnetic field linking conductor i with conductor j.
l Bi is the magnetic flux density where one ampere is allowed to flow through conductor i.
l Hj is the magnetic field where one ampere is allowed to flow through conductor j.
For multiturn conductors, the net value of inductance is the value given by:
where W(s,i) is the magnetic coenergy of the system. The current, i, is held constant.
Unlike the classical virtual work method, the plate is not actually moved during the force computation.
Instead, only the triangles that lie along the outside surface of the object are virtually distorted. Thus,
the force computation only requires one field solution.
where W(θ, i) is the magnetic coenergy of the system. The current, i, is held constant.
Unlike the classical virtual work method, Object B is not actually rotated during the torque
computation. Instead, only the triangles that lie along the outside surface of the object are virtually
distorted. Thus, the change in the system’s coenergy (and therefore the virtual torque) is given by the
change in the coenergy of these triangles.
The energy method is used to calculate the inductance of a winding, which is then multiplied by the
current flowing in the winding to get the flux linkage.
To obtain a correct flux vector, all current-carrying coils must be made part of the L-matrix
computation. If you leave out L-entries that belong to current-carrying coils, the fluxes will be
incorrect.
Note Maxwell no longer uses the following computation algorithm:
Related Topics
where:
l A is the magnetic vector potential.
l σ is the conductivity.
Note The eddy current equation is derived from Maxwell’s equations. Phasor notation is
used to represent complex quantities.
A plot of flux lines produced by eddy currents that were computed in a structure by the eddy current
solver is shown below:
Related Topics
When setting up a problem, you specify the total current flowing in any conductor that is connected to
an external source. Therefore, the eddy current module is able to make use of a second equation:
which simply reflects the fact the total current in a conductor equals the integral of the current density
over the cross-section of the conductor, Ω.
The eddy current field solver makes the following assumptions about the field quantities for which it
solves:
l Time-varying electromagnetic quantities are assumed to have the periodic waveform:
l All quantities must have the same frequency (angular frequency), but can have different
phase angles (θ). If a current is not a pure sinusoid, decompose it into sinusoidal harmonics,
and solve separately at each frequency, but only for linear problems.
l All currents (source, eddy, and displacement) are assumed to flow perpendicular to the plane
being studied (that is, in the z-direction for XY applications). Therefore, the magnetic fields
associated with these currents lie within the xy-plane. As a result, A, the magnetic vector
potential, has a z-component only.
l Because no currents flow in the xy-plane, the electric field, E, has a z-component only. It
follows that φ is constant over the cross section of each conductor in the problem.
where:
l A is the magnetic vector potential.
l σ is the conductivity.
l ε is the permittivity.
Maxwell’s Equations
The eddy current field simulator solves for time harmonic electromagnetic fields governed by
Maxwell’s equations:
where:
l E is the electric field.
The eddy current solver assumes that all time-varying electromagnetic quantities in the problem
have the form:
Now, because each time-varying quantity has the form , and are equal to jωD
and jωB.
Therefore, with this simplification and the relations H=µB, D=εE, and J=σE, Maxwell’s equations
reduce to:
The quantity that the eddy current field simulator actually solves for is A, the magnetic vector
potential. It is given by:
Substituting this into the first of Maxwell’s equations, the result is:
where φ is the electric potential. Substituting the right side of this relationship for E into the previous
equation results in:
This equation is one of the two used by the eddy current solver to compute A and φ.
Notice that the previous equation is in the form of a complex conductivity, (σ+jωε), times the complex
value of E. The result is the complex current density, J. Therefore, the integral of this expression over
the cross-section of a conductor is constrained to equal the total current that is specified as flowing in
that conductor:
This is the second equation that the eddy current solver uses in computing A and φ.
The total current, It, in this equation is the quantity you specify when setting up a problem. It is the
total current flowing in a conductor, and includes:
where:
l ω is the angular frequency, which is equal to 2πf. (f is the frequency at which source currents
and voltages oscillate during the solution.)
l σ is the conductor’s conductivity, in siemens/meter.
Impedance Matrix
An impedance matrix summarizes the relationship between AC voltages and AC currents in multi-
conductor systems. Given the two current loops below, the relationships between voltages and
currents in each loop is as follows:
where:
l Vi and Ii are phasors.
l Z11 = R
11 + jωL11 (the self-impedance of Loop 1).
l Z12 = R
12 + jωL12 (the mutual impedance between Loops 1 and 2).
l Z22 = R
22 + jωL22 (the self-impedance of Loop 2).
The impedance matrix above gives the relationship between V and I for the two current loops. In a
device with n current loops, this relationship would be expressed by an n x n impedance matrix. The
matrix values displayed by the software are resistance and inductance (not resistance and
reactance) and therefore do not include jω.
Note All impedances are complex numbers in the form:
where:
l ω is equal to 2πf, where f is the frequency of the AC current
source.
l R is the AC resistance, given in ohms/meter (XY) or ohms
(RZ).
l L is the AC inductance, given in henries/meter (XY) or
henries (RZ).
Related Topics
Maxwell breaks down the impedance matrix computation into two parts. First, it solves for the
inductance matrix (L-matrix) associated with the model. It then solves for the resistance matrix (R-
matrix). When it finishes solving for these matrices, the simulator combines them to form the
impedance matrix, using the relationship Z=R+jωL.
To compute the inductance and resistance matrices for the impedance solution, the simulator
generates an eddy-current field solution for each conductor in the matrix.
In the first solution, the current in the first conductor is set to one ampere; currents in the other
conductors that are included in the impedance matrix are set to zero. This is done by imposing
current sources on the conductors.
In the second solution, the current in the second conductor is set to one ampere, and all other
conductors that are included in the impedance matrix are set to zero amperes, and so forth.
Conductors that are not included in the impedance matrix are not affected.
Related Topics
Matrix Inductance
To compute the inductance of the current loop, the simulator calculates the average energy, WAV, of
the system after a field solution is computed:
where the instantaneous value of the current is related to the peak value of the current by i =
IPeakcos(ωt+ θ). The average value for the energy can then be found by integrating the
instantaneous energy:
The software assumes that the object for which impedance is being computed has a peak current of
one ampere per coil turn flowing through it. Thus, the inductance is simply 4WAV.
The eddy current simulator includes the eddy effect in conductors when it computes inductance
during an impedance solution.
Matrix Resistance
To compute the resistance, the simulator calculates the ohmic loss, P, after a field solution has been
computed:
The system assumes that the object for which impedance is being computed has a peak current of
one ampere per coil turn flowing through it. Therefore, the resistance is simply 2P.
Note that the resistance for an eddy current problem will be higher than the equivalent DC
resistance, due to the skin concentration of currents.
The inductances and resistances computed during an impedance matrix solution are different from
those computed for the equivalent DC case. This figure shows how they differ:
The current density, J, in the DC case (the conductor on the left) is evenly distributed throughout the
cross-section of the conductor. The current density in the AC case (the conductor on the right) is
distributed non-uniformly on the surface due to skin effect. Since the area through which current can
flow is smaller, it follows that the resistance to the current flow is higher in the impedance matrix than
in a resistance matrix computed for the equivalent DC case.
In the DC example, no eddy currents occur. The magnetic field created by the current flowing
through the conductor is static. In the AC example, the oscillating magnetic field induces currents in
conductors in the model. These induced currents affect the computation of inductance for the
impedance matrix, causing it to be different from the equivalent DC computation of inductance.
Force oscillates at twice the frequency of the source current and magnetic field:
where:
l f is the frequency of the force.
F
l f is the frequency of the source current and magnetic field.
S
l T is the period of the force.
F
The time-averaged (or DC) force, AC force, and instantaneous force can be determined by:
The AC force, FAC must be evaluated at a particular phase (=ωt) in order to determine its magnitude
at an instant in time. However, the peak value of the AC force is reported as the “AC Magnitude” in
the force and torque solution panel for Maxwell 2D.
where:
l I is the current.
in the xy-plane into the z direction — forming a 3D surface. The current flow computed is
the current per meter depth in the z-direction.
l In axisymmetric (RZ) models, the area is found by revolving the flux line you’ve drawn in the
rz-plane 360 degrees around the z-axis, forming a 3D surface. The current flow computed
is the total current that passes through this surface.
A separate current flow value is computed for each line you draw.
Related Topics
Related Topics
Sinusoidal B
with:
or:
where:
l Bm corresponds to the last point on the original BH characteristic (in the saturation portion)
DC Conduction Theory
When a material with a non-zero conductivity is subject to a potential difference, conduction current
flows in the material. At all points in the problem space, the current density (J) will be proportional to
the electric field (E) that is established due to the potential difference.
where:
l J(x,y) is the current density.
The equation that the DC conduction field simulator solves is based on the fact that, under steady
state conditions, the amount of charge, ρ, leaving any infinitesimally small region must equal the
charge flowing into that region.
The field quantity that DC conduction actually solves for is the electric potential, φ, in the following
equation:
Note that .
A plot of electric potential that was computed by the DC conduction solver is shown below:
Steady-state Conditions
The DC conduction solver assumes that current flow in the conducting material has already reached
steady state conditions. The implication of this assumption becomes clear when you compare the
initial and steady state conditions of a simple problem such as that shown here:
First, consider the interval before steady state is reached. Assume that the switch establishing the
potential across the parallel plates in the figure above closes at t=0. Also assume that the current
required to deposit charges on the parallel plates (so that the voltage difference can be supported)
occurs instantaneously.
However, it will take a while for current to start flowing in the dielectric. The time it takes for current to
flow is determined by the time constant of the material. Therefore, at t=0, there will be an electric field
in the dielectric, but no current and no free charges. Consequently, the relationship that must be
satisfied at the interface of the two dielectrics is:
or, equivalently:
At the interface between the two dielectrics, this relationship implies that:
where En is the normal component of E. Therefore, at t=0, before current starts to flow in the two
dielectrics, φ(x,y) is determined entirely by the permittivity of the dielectrics. Use the electrostatic field
solver to solve for φ(x,y) in such a case.
After current starts to flow in the dielectric and steady state is reached, free charges are able to
accumulate at the boundaries of the two dielectrics. The free charge, ρ, is no longer zero.
or, equivalently,
This relationship implies that:
In this case, the solution depends on the conductivity (σ) of the materials rather than on their
dielectric constant (ε). The DC conduction solver analyzes the steady state condition. Therefore, use
the DC conduction field solver when steady state conditions have been reached.
The time constant that determines how long it will take the current flowing in the conductive material
to reach steady state is given by τ=ε/σ. In a good conductor such as steel (ε=9x10-12, σ=1x107), τ =
9x10-19 seconds. Steady state conditions are reached almost instantaneously and in such cases you
should use the DC conduction solver to analyze the potential field.
On the other hand, for a good dielectric such as fused quartz (σ=1x10-17), the time constant is on the
order of 105 seconds. There will be a significant period before steady state currents start to flow and
you should use the electrostatic solver to analyze the electric field. For many materials in between, a
complete analysis may require an electric transient field solution.
Conductance
A conductance matrix gives the relationship between currents and voltage drops. In the figure below,
two conductors at voltages V1 and V2 are touching a bar with a conductance, G.
Because the bar is not a perfect insulator, current will flow between the two conductors. Given the
conductors shown on the previous page, the relationship between the conduction current and the
voltage drop, V, in each conductor is:
where:
l I is the conduction current.
where:
l I is the current.
in the xy-plane into the z direction — forming a 3D surface. The current flow computed is
the current per meter depth in the z direction.
l In axisymmetric (RZ) models, the area is found by revolving the flux line you’ve drawn in the
rz-plane 360 degrees around the z-axis, forming a 3D surface. The current flow computed
is the total current that passes through this surface.
A separate current flow value can be computed for each line you draw.
AC Conduction Theory
The AC conduction field simulator solves for φ in the following equation:
where:
l φ(x,y) is the magnitude and phase of the electric potential at each value of x and y.
l ω is the angular frequency at which the potential is oscillating.
l σ is the conductivity.
l ε is the permittivity.
where:
lJ is the current density, σE.
l D is the electric flux density, εE.
l E is the electric field, -∇φ.
Complex quantities are represented using phasor notation.
AC Conduction Assumptions
The AC conduction field solver assumes the following conditions about field quantities:
l All time-varying electromagnetic quantities have the periodic waveform:
where all quantities must have the same value of ω, but can have different phase angles (θ).
l If a current is not a pure sinusoid, it is decomposed into sinusoidal harmonics, and solved
separately at each frequency.
l The component of E due to time-varying magnetic fields caused by conduction currents can
be neglected.
Admittance
Admittance can best be explained as the inverse of impedance, and is expressed by:
where:
l ω is equal to 2πf, where f is the frequency of the AC voltage source.
l Y is the admittance in Siemens/meter.
l G is the conductance in Siemens/meter.
l ωC is the susceptance in Siemens/meter.
Note The matrix values displayed by the software are conductance in ohms/meter and
capacitance in farads/meter (not conductance and susceptance) and therefore do
not include jω.
Current Flow
To compute current flow, the AC conduction field solver uses the following relationship:
where:
l I is the current.
l A is the area over which the current flow is computed. It is found by sweeping the current flow
line you’ve drawn in the xy-plane into the z direction, forming a surface. The current flow
computed is the current per meter depth in the z direction.
A separate current flow value can be computed for each line you draw.
l Magnetostatic
l Eddy Current
l DC Conduction
l AC Conduction
Any field solution involving a long plank-shaped object is different from a solution involving an
annular object — even though the same equation is solved for both types of geometries.
Mathematically, the difference between cartesian and axisymmetric field solutions arises from the
difference in how gradients, curls and divergences are expressed in the two coordinate systems.
l In a cartesian (xyz) coordinate system, these operators are defined as follows (where F is a
In the cylindrical case, an extra r shows up in places where there is no analogous x in the cartesian
case, resulting in a different field solution. The calculations involving the differences in mathematics
between axisymmetric and cartesian models are implicitly handled by the Maxwell and are
transparent to you.
Transient Simulation
Transient Solver only.
The transient solver allows you to analyze the magnetic fields, energy, force/torque, power loss, core
loss, speed, and flux of a model at various time steps of a solution over a specified period of time.
This solver allows for non-sinusoidal current or voltage excitation, as well as rotational or
translational motion.
l More than one object can be assigned identical motion within the band object.
where:
l H is the coercivity of the permanent magnet.
c
l v is the velocity of the moving parts.
l is the reluctivity.
l Js is the source current density.
The transient solver applies a reference frame that is fixed with respect to the components in the
model by setting the velocity, v, equal to zero. This is possible by considering the equation for the
magnetic vector potential both in moving part and stationary part in their own reference frame in
which velocity is always zero. Because the moving components have now been fixed to their own
coordinate system, the partial time derivative becomes the total time derivative of A. Thus, the
motion equation becomes:
which is obtainable at each time step at every node in the finite element model. In above equation the
motion is contained implicitly in the total derivative of A.
Stranded Conductors
Stranded conductors lack eddy current behavior and are considered to be filaments too thin to model
in a practical finite element grid. Because of this, the transient solver assumes that their contribution
to the current density is averaged over the area of problem region.
These filaments can be connected in parallel or series, and carry the same current based on:
and:
l if is the total terminal current flowing into a filament coil group (or winding).
l Nf is the total conductor number of the filaments in the winding.
l A is the magnetic vector potential.
l a is the number of parallel branches in the winding.
l df is the polarity (+1 or -1) to represent forward or return paths.
l Sf is the total area of the cross-section of the region occupied by the winding.
l p is the ratio of the original full model to the field domain to be solved.
Note that the filaments in the winding may reside at several different locations as long as they are
connected in series or parallel.
The voltage seen from the terminal of the winding is the sum of the voltage across all the wires as
well as any possible external impedance based on:
and:
where:
Solid Conductors
Solid conductors are large enough to model with finite elements, where skin effects depend not only
on the frequency of the system, but on the location of nearby conductors.
Based on Ampere’s Law, the total current density, jt, in the system is given by:
or:
where:
l Vb is the voltage difference across the conductors end points.
For solid conductors with a current source, the total current is known, while the source component is
unknown. The transient solver computes the current source based on the following circuit equation
where:
l Ωc is the width cross-section of the nth conductor.
l It is the known total current.
l Js is the source component to be solved for.
l Jt is the total current density.
For solid conductors with a voltage source, the total voltage is known, while the total current density
is unknown. The transient solver computes the unknown quantities based on the following circuit
equation which is derived from the solid conductor equations. The resulting equation yields:
where:
l Ωc is the width cross-section of the nth conductor.
l Vb is the known voltage source between the two conductors.
l Jt is the total current density to be solved for.
l σ is the conductivity.
l l is the thickness of the model.
l A is the magnetic vector potential.
Translational Motion
The transient motion simulator generates translational motion solutions based on the following
motion equation:
where:
l m is the mass of the object, in kg.
2
l a is the acceleration of the object, in m/s .
l F
em is the computed electromagnetic force, in N.
l F
load is the external load force, in N.
l λ is the damping, in N s/m.
.
Rotational Motion
The transient motion simulator generates rotational motion solutions based on the following motion
equation:
where:
. 2
l J is the moment of inertia, in kg m .
.
l Tem is the computed electromagnetic torque, in N m.
l T
.
load is the external load torque, in N m.
l ω is the angular speed, in rad/s.
Phasor Notation
Time varying quantities that have the form:
can be represented as rotating phasors in the complex plane. Using Euler’s formula:
Each time-varying quantity has the form . The component is merely a complex
constant that can be represented by a stationary phasor in the complex plane. The
component is a complex number that depends on t, and can be represented as a rotating phasor in
the complex plane, as shown here.
The phasor’s projection on the real axis oscillates sinusoidally. It reaches a peak when parallel with
the real axis, and crosses zero when parallel with the imaginary axis. Thus, a phasor with θ=90°
represents a quantity that peaks 90 degrees after a phasor with θ=0°.
The real and imaginary components are related to the magnitude and phase of a sinusoid in this
way:
Boundary Conditions
Boundary conditions define the behavior of the electric or magnetic field at object interfaces or edges
of the problem region. They are always necessary in order to insure the uniqueness of the
electromagnetic field calculation. They can also be used to:
1. Simulate structures that are magnetically isolated, electrically insulated, or electrically isolated.
2. Set the electric or magnetic potential at a surface to a constant value or a function of position,
in order to define the behavior of the electric or magnetic field on that surface
3. Simulate the field patterns that would exist in a structure while modeling only part of it. To do
this, you can define planes of symmetry where electric or magnetic fields are either tangential
to or normal to the surface. Additionally, you can define planes of symmetry where the field on
one surface matches the magnitude and direction (or opposite direction) of the field on
another surface.
4. Simulate the field patterns produced by thin resistive layers on conductors (DC conduction
solver) or eddy currents with very tiny skin depths in conductors (eddy current solver), without
having to explicitly draw, assign materials to, or solve for fields inside the objects in question.
Available boundary types in Maxwell 2D are listed in the table below. Select from the table to see
more information about a specific boundary type or for information on how to apply it in a specific
problem type.
Vector Potential
The Vector Potential boundary is available for use in Magnetostatic, Eddy Current, and Transient
solver type designs. Use Vector Potential boundaries to set the magnetic vector potential, AZ, to a
constant value on a boundary.
The potential can also be defined as a function of position using math functions. Normally, this type of
boundary condition is used to specify the potential of outer boundaries. It can also be used to set the
interface between two objects to a potential, modeling the presence of a very thin conductor
between the objects. They are sometimes called Dirichlet boundaries.
The behavior of the magnetic field on a Vector Potential boundary depends on whether you define a
constant or functional potential on the boundary. Remember that the magnetic vector potential, A, is
defined to be a field that satisfies the equation:
Since the magnetostatic field solver assumes that A has a z-component only and B lies in the xy-
plane, the relationship of B to A is given by the following:
If AZ is constant along a horizontal boundary, the partial derivatives of AZ with respect to x will be
zero — forcing B to have an x-component only, and be tangential to the boundary. Likewise, if AZ is
constant along a vertical boundary, the partial of AZ with respect to y will be zero — forcing B to have
a y-component only and again indicating that the field will be tangential.
In general, the magnetic field will be tangential to any boundary on which AZ has been set to a
constant.
If the potential is a function of position, the partial derivatives of AZ with respect to x and y will not
necessarily be zero. It all depends on what type of math function was used to specify the potential.
Thus, B may not be tangential to the boundary and some flux will cross it.
In eddy current problems, the magnetic vector potential is a time-varying quantity in the form:
where Am is the magnitude of the potential and θ is its phase angle — its offset from a pure cosine
wave. Therefore, when specifying AZ on a boundary, you must enter both its magnitude and phase.
The magnitude and phase of the potential can also be defined as a function of position using math
functions.
In axisymmetric models, A is assumed to have only a φ-component and B is assumed to lie only in
the rz-plane. The relationship between Aφ and B is given by:
Because equipotential lines of rAφ in axisymmetric models coincide with the lines of magnetic flux,
you must specify values or functions of rA (not A) when setting value boundaries.
Symmetry
The symmetry boundary is available for use in Magnetostatic, Eddy Current, Transient, Electrostatic,
AC Conduction, and DC Conduction solver type designs. A symmetry boundary models a plane of
symmetry in a structure. Use this type of boundary condition to take advantage of geometric
symmetry and electrical symmetry in a structure. Doing so enables you to reduce the size of your
model — allowing you to conserve computing resources. Two types of symmetry boundaries — Odd
and Even — are available for use.
Odd Symmetry
An odd symmetry boundary models a structure in which the signs (positive or negative) of all
currents, voltages, or charges on one side of a symmetry plane are the opposite of those on the other
side. In magnetic field problems, the magnetic field is tangential to this type of boundary; while in
electric field problems, the field is perpendicular to the boundary and equipotential lines are
tangential to the boundary.
To define an odd symmetry boundary for magnetic field problems, the simulator sets the selected
edge to a vector potential boundary with a magnetic vector potential of zero — acting as a magnetic
mirror to the model. For electric field problems, the simulator sets the selected edge to a voltage of
zero.
For instance, the plane of symmetry shown below is modeled by an odd symmetry boundary, since
the direction of the current flow in the conductor on the left side of the symmetry plane is the opposite
of the current flow in the conductor on the right side of the plane (the side that is modeled):
Even Symmetry
An even symmetry boundary models a structure in which the signs (positive or negative) of the
currents, voltages, or charges on one side of a symmetry plane are the same as those on the other
side. The magnetic field is perpendicular to this type of boundary; while the electric field is tangential
to this type of boundary, and contours of equal potential are perpendicular to it.
To define an even symmetry boundary, the simulator sets the selected edge to a Neumann
boundary.
For instance, the plane of symmetry shown below could be modeled by an even symmetry
boundary, since the direction of the current flow in the conductor on the left side of the symmetry
plane is the same as that of the current flow in the conductor on the right side of the plane (the side
that is modeled):
Balloon
The balloon boundary is available for use in Magnetostatic, Eddy Current, Transient, Electrostatic,
AC Conduction, and DC Conduction solver type designs. Balloon boundaries model the region
outside the drawing space as being nearly “infinitely” large — effectively isolating the model from
other sources of current or magnetic fields. Visualize the background object as extending to infinity
along the edges identified as balloon boundaries.
For magnetic solution types, the magnetic vector potential, AZ or Aφ, goes to zero at infinity. The
lines of magnetic flux are neither tangential to nor normal to a balloon boundary.
For electric field solution types, two types of balloon boundaries are available:
Charge Models the case where the charge at infinity matches the charge in the solution region,
forcing the net charge to be zero. Physically, this represents an electrically insulated
system. This is the default for Electrostatic solutions.
Voltage Models the case where the voltage at infinity is zero. Physically, this represents an
electrically grounded system. In most cases, the results will be very similar to those
produced with the Charge option; however, the charge at infinity may not exactly match
the charge in the drawing region.
The E-field is neither tangential to nor normal to a balloon boundary.
Impedance
The impedance boundary is available for use in Eddy Current solutions. Impedance boundaries
allow you to simulate the effect of induced currents in a conductor without explicitly computing them.
The ohmic loss due to induced currents is computed from the tangential components of the H-field
along the impedance boundary — the surface of the object that you are interested in.
Use this boundary condition for models where the following conditions occur:
l The skin depth in the conductor of interest is less than two orders of magnitude smaller than
the dimensions of the structure. In models like this, the Maxwell 2D’s meshmaker may not be
able to create a fine enough mesh in the conductor to compute eddy currents.
l The magnetic field decays much more rapidly inside the conductor in the direction that is
normal to the surface than it does in directions that are tangential to the surface.
l The AC current source is relatively far away from the surface where eddy currents occur,
If AC current is passing through the current source at a frequency of 1 MHz, the skin depth in the
conductor is given by the following relationship:
where:
l ω = 2πf = 2π x 106 = 6.28 x 106 radians/second
l σ = 5.8 x 10 siemens/meter
7
l µ = 1
r
l µ = 4π x 10
-7 henries/meter
0
Substituting these values into this equation, the skin depth is found to be 6.6x10-5 meters. Since this
is much smaller than the thickness of the conductor and the surface where currents are induced is
relatively far away from the current source, an impedance boundary can be used to model the
induced currents in the conductor, as shown below. The conductor itself is not included in the model;
instead, the outside boundary of the model is moved to the inside surface of the c