Académique Documents
Professionnel Documents
Culture Documents
1.
QuickLinks-1
QuickLinks-2
QuickLinks-2
QuickLinks-3
QuickLinks-4
QuickLinks-4
QuickLinks-5
QuickLinks-5
QuickLinks-6
Getting Started
System Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2
Additional Windows Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3
Increasing RAM on a 32-Bit PC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3
Network Installations on Windows for Non-graphical batch solves without product-links
1-3
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
Getting Help
Conventions Used in the Online Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-3
Searching in Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-4
Using WebUpdate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-5
Emailing a Help Page Title . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-6
3.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
4.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
5.
6.
Simplorer Components
Device Characterization Wizard
Characterize Device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-2
Average IGBT Characterization Flow . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-3
Basic Dynamic and Advanced Dynamic IGBT Characterization Flow . . 6-4
Power MOSFET (Basic Dynamic) Characterization Flow . . . . . . . . . . . . 6-5
Component Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-6
Nominal Working Point Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-15
Breakthrough Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-18
Half-Bridge Test Circuit Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-21
Transfer Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-28
Boundary Conditions for Transfer Characteristic Data . . . . . . . . . . . . . . 6-30
Fitting Ranges for Transfer Characteristic . . . . . . . . . . . . . . . . . . . . . . . . 6-30
Fitting Characteristic Order for Transfer Characteristic . . . . . . . . . . . . . 6-31
Fitting Transfer Characteristic Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-31
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
7.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
8.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
9.
10.
Schematic Editor
Setting Schematic Editor Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-1
Schematic Editor Options: General Tab . . . . . . . . . . . . . . . . . . . . . . . . 10-2
Schematic Editor Options: Simplorer Tab . . . . . . . . . . . . . . . . . . . . . . . 10-2
Schematic Editor Options: Wiring Tab . . . . . . . . . . . . . . . . . . . . . . . . . 10-2
Schematic Editor Options: Multiple Placement Tab . . . . . . . . . . . . . . . 10-3
Schematic Editor Options: Fonts Tab . . . . . . . . . . . . . . . . . . . . . . . . . . 10-3
Contents-13
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
11.
Product Coupling
Simplorer Coupling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-2
Simulink SubCircuits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-3
Program Requirements for MATLAB/Simulink SubCircuits . . . . . . . . 11-3
Add Simulink Component . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-4
Creating and Linking a MATLAB/Simulink Model . . . . . . . . . . . . . . . . . 11-6
Simplorer/Simulink Co-Simulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-8
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
12.
Netlist Editor
Viewing Netlists in Simplorer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-77
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
13.
13-2
Integration with ANSYS 14.5 after ANSYS Electromagnetics Product Installation
13-3
14.
Contents-18
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
AC Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14-26
DC Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14-26
General Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14-27
SML Header Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14-28
Adding Solution Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14-28
Editing Solution Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14-29
Copying and Pasting Solution Options . . . . . . . . . . . . . . . . . . . . . . . . . 14-30
Renaming Solution Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14-30
Deleting Solution Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14-30
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
15.
Running Simulations
Solving a Single Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-2
Running More Than One Simulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-3
Specifying the Analysis Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-4
Remote Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-6
Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-9
Determining the Desired Configuration . . . . . . . . . . . . . . . . . . . . . . . . . 15-11
Common Windows Configurations (Advantages and Disadvantages) . . . 15-12
Determining User Accounts to Use with the Selected Configuration . . . . 15-13
Using Groups for Security Permissions on Windows . . . . . . . . . . . . . . . . 15-16
Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-32
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Integration with PBS (Portable Batch System) Professional from Altair Engineering
15-101
qsub Arguments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-102
Monitoring Ansoft PBS Batch Jobs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-103
Example PBS qsub Command Lines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-104
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
GetTempDirectory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-142
GetMachineListAvailableForDistribution . . . . . . . . . . . . . . . . . . . . . . . . . 15-142
LaunchProcess . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-143
GetUseRsmForEngineLaunch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-144
GetThisJobID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-145
GetSchedulerDisplayName . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-145
16.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
17.
Optimetrics
Parametric Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17-3
Setting Up a Parametric Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17-4
Adding a Variable Sweep Definition . . . . . . . . . . . . . . . . . . . . . . . . . . . 17-5
Specifying Variable Values for a Sweep Definition . . . . . . . . . . . . . . . . . 17-6
Synchronizing Variable Sweep Definitions . . . . . . . . . . . . . . . . . . . . . . . . 17-6
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Contents-25
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
18.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Toolkit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18-109
User Defined Documents (UDDs) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18-111
Managing Documents Listed in the Project Window Under Results . . 18-116
Documents folder right click menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18-116
Document folder Property window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18-116
19.
C-Models in Simplorer
Introduction to the Simplorer C Interface . . . . . . . . . . . . . . . . . . . . . . . . 19-2
Simplorer C Interface Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-2
Program Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-3
Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-3
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
GetDefName . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-56
GetDCUserData . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-56
GetDSVVal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-57
GetHierName . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-57
GetNode_ncParam . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-58
GetSVVal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-58
GetUseName . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-59
GetUserData . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-59
GetValNode_nc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-60
GetValNode_nc (for use with characteristics) . . . . . . . . . . . . . . . . . . . . . . 19-60
GetValNode_ncCplx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-61
GetValNode_ncFile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-61
GetValNode_ncStrg . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-62
GetValNode_State . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-62
GetValNode_StateCplx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-63
GetValSubNode_nc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-63
IsCharConn . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-64
IsParamSetFlag . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-64
IsTransientOP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-65
SetCplxGSEntry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-66
SetCplxRSEntry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-66
SetDataTypeNode_nc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-67
SetInfoNode__c . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-68
SetInfoNode_nc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-69
SetNatureTypeNode__c . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-70
SetRealGSEntry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-71
SetRealRSEntry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-71
SetSVVal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-72
SetSymbolicGSEntry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-73
SetUModCloseFct . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-73
SetUModInitFct . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-74
SetUModPrepFct . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-74
SetUModSimFct . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-75
SetUModValidFct . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-76
SetUnitNameNode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-76
SetUserData . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-77
SetValNode_nc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-78
SetValNode_ncFile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-79
SetValNode_State . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-80
SetValPtrNode_nc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-81
SetValSubNode_nc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-81
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
CHAR_OUT_DERIVE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-82
GET_SAMPLETIME . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-83
getPATH . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-83
ISIM_BASE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-83
ISIM_BASE_MAX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-83
ISIM_BASE_MIN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-84
ISIM_BASE_STEP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-84
ISIM_BASE_TEMP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-84
ISIM_BASE_XEND . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-84
ISIM_BASE_XSTART . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-84
ISIM_ECM_D_DT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-84
ISIM_ECM_IEMAX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-85
ISIM_ECM_ITERAT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-85
ISIM_ECM_LDF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-85
ISIM_ECM_NEW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-85
ISIM_ECM_P . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-85
ISIM_ECM_SOLVER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-86
ISIM_ECM_UEMAX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-86
OSIM_ECM_REJECT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-86
OSIM_ECM_SYNC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-86
OSIM_SYNC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-86
Report2Sim . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-87
SET_SAMPLETIME . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-87
20.
Packages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20-10
Package Declaration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20-11
Package Body . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20-12
Package Visibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20-13
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Subprograms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20-16
Procedures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20-17
Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20-18
Declarations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20-19
TYPE Declarations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20-21
SUBTYPE Declaration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20-21
NATURE Declaration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20-22
Data Object Declarations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20-22
Other Declarations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20-26
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Identifiers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20-49
Literals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20-50
Arithmetic and Logical Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20-52
21.
Separators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21-6
Continuation Sign . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21-6
Keywords, Pre-defined Functions and Operators, Constants . . . . . . . . 21-6
Nodes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21-7
Model Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21-7
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
22.
Scripting
Working with Scripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22-2
Recording a Script to a File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22-2
Recording a Script to a Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22-2
Working with Project Scripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22-3
23.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
24.
Technical Notes
Fixing Non-Convergence in Simplorer . . . . . . . . . . . . . . . . . . . . . . . . . . 24-2
Using Time Trigger . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24-3
Intention . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24-3
Handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24-3
State Graph Extension . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24-4
C/C++ Interface Extension . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24-5
Error Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24-5
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
25.
26.
Simplorer Terminology
Glossary: A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26-2
Glossary: B . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26-3
Glossary: C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26-4
Glossary: D . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26-5
Glossary: E . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26-6
Glossary: F . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26-7
Contents-37
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Glossary: G . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26-8
Glossary: H . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26-9
Glossary: I . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26-10
Glossary: J . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26-11
Glossary: K . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26-12
Glossary: L . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26-13
Glossary: M . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26-14
Glossary: N . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26-16
Glossary: O . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26-17
Glossary: P . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26-18
Glossary: Q . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26-19
Glossary: R . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26-20
Glossary: S . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26-21
Glossary: T . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26-24
Glossary: U . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26-25
Glossary: V . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26-26
Glossary: W . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26-27
Glossary: Y . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26-28
Index 1
Contents-38
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Design Area
-1
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Properties Window
Progress Window
Message Manager
Status Bar
Keyboard Shortcuts
Use F1 on any open dialog to open the Online Help for that dialog.
Click the ? icon on the toolbar, and then click on any menu command, icon, or window for
help on that selection.
With the Online Help Contents tab selected, navigate the help topic hierarchy.
With the Online Help Index tab selected, search the help index.
With the Online Help Search tab selected, search the full help text.
With Online Help Favorites tab selected, create a custom list of favorite topics.
Setting Options
Analyzing Designs
Use F1 on any open dialog to open the Online Help for that dialog.
Click the ? icon on the toolbar, and then click on any menu command, icon, or window for
help on that selection.
With the Online Help Contents tab selected, navigate the help topic hierarchy.
With the Online Help Index tab selected, search the help index.
With the Online Help Search tab selected, search the full help text.
With Online Help Favorites tab selected, create a custom list of favorite topics.
Placing Components
Operations on Components
Connecting Components
Placing Ports
-2
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Sorting Components
Multi-Page Schematics
Hierarchical Designs
Subcircuits
Use F1 on any open dialog to open the Online Help for that dialog.
Click the ? icon on the toolbar, and then click on any menu command, icon, or window for
help on that selection.
With the Online Help Contents tab selected, navigate the help topic hierarchy.
With the Online Help Index tab selected, search the help index.
With the Online Help Search tab selected, search the full help text.
With Online Help Favorites tab selected, create a custom list of favorite topics.
Choosing Components
Component Libraries
Placing Components
Editing Components
Managing Libraries
Use F1 on any open dialog to open the Online Help for that dialog.
Click the ? icon on the toolbar, and then click on any menu command, icon, or window for
help on that selection.
With the Online Help Contents tab selected, navigate the help topic hierarchy.
With the Online Help Index tab selected, search the help index.
With the Online Help Search tab selected, search the full help text.
With Online Help Favorites tab selected, create a custom list of favorite topics.
-3
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Analysis Setup
Solution Options
Use F1 on any open dialog to open the Online Help for that dialog.
Click the ? icon on the toolbar, and then click on any menu command, icon, or window for
help on that selection.
With the Online Help Contents tab selected, navigate the help topic hierarchy.
With the Online Help Index tab selected, search the help index.
With the Online Help Search tab selected, search the full help text.
With Online Help Favorites tab selected, create a custom list of favorite topics.
Use F1 on any open dialog to open the Online Help for that dialog.
Click the ? icon on the toolbar, and then click on any menu command, icon, or window for
help on that selection.
With the Online Help Contents tab selected, navigate the help topic hierarchy.
With the Online Help Index tab selected, search the help index.
With the Online Help Search tab selected, search the full help text.
With Online Help Favorites tab selected, create a custom list of favorite topics.
-4
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Tuning a Variable
Use F1 on any open dialog to open the Online Help for that dialog.
Click the ? icon on the toolbar, and then click on any menu command, icon, or window for
help on that selection.
With the Online Help Contents tab selected, navigate the help topic hierarchy.
With the Online Help Index tab selected, search the help index.
With the Online Help Search tab selected, search the full help text.
With Online Help Favorites tab selected, create a custom list of favorite topics.
Modifying Reports
Report Types
Use F1 on any open dialog to open the Online Help for that dialog.
Click the ? icon on the toolbar, and then click on any menu command, icon, or window for
help on that selection.
With the Online Help Contents tab selected, navigate the help topic hierarchy.
With the Online Help Index tab selected, search the help index.
With the Online Help Search tab selected, search the full help text.
With Online Help Favorites tab selected, create a custom list of favorite topics.
-5
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Running a script
Stopping a Script
Scripting Guide
Use F1 on any open dialog to open the Online Help for that dialog.
Click the ? icon on the toolbar, and then click on any menu command, icon, or window for
help on that selection.
With the Online Help Contents tab selected, navigate the help topic hierarchy.
With the Online Help Index tab selected, search the help index.
With the Online Help Search tab selected, search the full help text.
With Online Help Favorites tab selected, create a custom list of favorite topics.
-6
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
1
Getting Started
Status Bar
Toolbars
Properties Window
Shortcut Menus
Shortcut Keys
Message Manager
Undoing Commands
Progress Window
Design Area
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
System Requirements
Simplorer supports the Windows operating system. For details regarding which revisions of the
Windows operating systems are supported; as well as memory and disk requirements and known
issues at the time of shipping, consult the readme.txt file shipped with this release of the software
by clicking the link below:
.
Once you have installed Simplorer, you can start the program by clicking its icon on the Windows
desktop.
You can also start Simplorer from the Windows Start menu as follows:
1.
Click Start.
2.
3.
4.
Select Simplorer n.
Simplorer starts.
Note
When you run Simplorer for the first time (that is, with no project directory specified in
the registry), or if the project directory or the temp directory does not exist, Simplorer
displays a dialog box that asks you to set the project and temp directories. For the temp
directory, there is a comment asking you to ensure that adequate disk space is available.
Hint
If the program fails to start, make sure you have installed the licensing option provided
to you. See the Installation Guide for detailed information on installing the software and
licenses.
Simplorer 11 requires at least the FLEXlm for Ansoft v10.8.5 license server.
Note
Note
If you try to run Simplorer and get a message reporting a corrupted license file,
please contact Ansoft.
Simplorer displays a warning message if the license file expires within 15 days.
All operating systems must have 32-bit OpenGL libraries installed regardless of whether
the OS is 32-bit or 64-bit.
Related Topics
Additional Windows Information
1-2 Getting Started
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
If you are using the NVIDIA Quadro2 MXR/EX video card on Windows XP, you should
also download Version 40.41 or greater video driver, available for download at http://
www.nvidia.com.
Related Topics
Increasing RAM on a 32-bit PC
Network Installations on Windows for Non-graphical batch solves without product-links
http://www.microsoft.com/downloads/en/details.aspx?familyid=2051a0c1-c9b5-4b0a-a8f5770a549fd78c&displaylang=en
If you are on a 32 bit OS: install vcredist_x86.exe only
If you are on a 64 bit OS: install vcredist_x86.exe and vcredist_x64.exe
2.
When you are done you should see the following in Programs and Features in Control Panel (it
is important that the version completely matches).
1.
The following instructions for updating security policy should be performed by your
local Windows environment IT administrator.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
To setup full trust permissions for the installation share location, the following four lines can
be put into a batch file and run on each machine:
The v2.0.50727 bit is important as picking up CasPol.exe from v4, v3.5 directories will
not do the expected thing.
The order of backward/forward slashes in the CasPol.exe command is important.
Note
It is recommended that an IT admin provide full trust to the share on which Ansoft
products are installed in the group security policy. The group policy will affect all
computer accounts in that group and is the easiest way to update all the computers
expected to run Ansoft products from the share.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
On the View menu, click Project Manager. A check box appears next to this command if the
Project Manager window is visible.
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
Shortcut Menus in the Project Manager Window
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Double-click to open
in Schematic Editor
Click the to expand
or collapse the tree
Double-click to open
global and interface
port properties
Double-click to open
analysis setup and
options dialogs
Double-click to display
plot results
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 Simplorer. Expand the project
icon to view all the projects Simplorer design information and material definitions. If there are
multiple designs in a project, each designs ports, analysis solution setup, and results are displayed
as entries in a separate subtree.
Depending on the options set on the Miscellaneous Options tab of the General Options dialog box,
the label of the selected Project Tree element that is active (i.e., has focus) may be rendered in bold
text; or a small window icon may display next to the selected Project Tree element. The icon will
be gray if the editor or plot window associated with the selected element is closed, or not in focus.
Clicking the gray icon will open the window and bring it into focus (on top).
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Right-clicking a folder or item pops up a shortcut menu that allows you to perform various operations. For example, right-clicking the analysis icon for a design displays a menu similar to this:
Virtually all project editing and management can be done from the Project Manager window
using the right mouse button shortcut menus. Many of these menus are also available from the main
menu bar in the Simplorer Circuit menu.
The Project Manager window is a dockable window. It can be moved and sized as needed. It can
also be attached (docked) to any edge of the Simplorer desktop.
Hint
You can grab and drag the window by its title bar to undock, move, and dock it.
You can resize the window by dragging its edges.
You can maximize or minimize the window by clicking the triangle in the title bar.
You can close the window by clicking the X in the title bar.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Maximize
Close
Resize
Horizontally
Resize Vertically
Related Topics
Viewing Simplorer Design Details
On the Tools menu, point to Options, and then click General Options.
The Options dialog box appears.
2.
Under the Project Options tab, select Expand Project Tree on Insert.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Analysis
Displays the solution setups and solution options for an Simplorer design.
A solution setup specifies how Simplorer will compute the solution. The
solution options provides settings such as the integration formula,
iterations, and maximum and minimum errors.
Optimetrics
Results
Note
In the project tree, right-click the design setup icon that you want to edit, and select
Design Properties from the menu.
A dialog box appears with that setups parameters, which you can then edit.
Right-click on an object to display the shortcut menu of editing commands for that object
type. The shortcut menu for components also includes the Load Example command.
Selecting this command loads the example project for that component.
Double-clicking an item in these folders typically opens an editor (e.g., Symbols) or editing dialog (e.g., Components) box used to set the properties of that item.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
For example, the Basic Elements library expands into several categories and sub-categories as
shown.
Individual elements are designated by colored symbols next to the element abbreviation and name.
Right-clicking a component opens a shortcut menu where you can choose to: add the component to
the Favorites folder, place the component on a schematic, edit the component, view component
help, and to load the example project (if one exists) for the selected component.
Yellow dot
Magenta dot
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Because the number of elements in the libraries can be large and the hierarchies elaborate, 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.
Select the desired element and right-click to display the shortcut menu.
2.
Select Add to Favorites to place the component in the Favorites folder. When a component is in the Favorites folder, you can select, place, edit, view the component help, and
load its example project (if one exists) from there.
Select an element and right click to display the short cut menu.
2.
2.
2.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Use the Info button to view on-line help information for components. You can also select
components from the search results panel and then use the Insert button to place them in the
schematic.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The information is presented in tree form similar to the project tree. Objects shown in the Model
Editor tab vary with the model type being edited (C/C++, VHDL-AMS, or SML). Right-click on
an object to display a shortcut menu of editing commands for that object type.
Refer to the following topics for additional information on Simplorers model editors:
Using the C-Model Editor
Using the VHDL-AMS Editor
Using the SML Editor
Properties Window
The Properties window displays the attributes, or properties, of an item selected in the project tree
(such as a design, report, or analysis setup) or in the Schematic Editor window. The Properties
window enables you to edit the selected items properties. The specific properties, and the ability to
edit them in the Properties window, will vary depending on the type of item selected. The tabs
available in the Properties window will also vary, depending on the selection.
For example, the Properties window for components can have up to five tabs:
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The Properties window is a dockable window similar to the Project Manager window. Like the
Project Manager window, it can be moved and sized as needed. It can also be attached (docked) to
any edge of the Simplorer desktop.
Hint
You can grab and drag the window by its title bar to undock, move, and dock it.
You can resize the window by dragging its edges.
You can maximize or minimize the window by clicking the triangle in the title bar.
You can close the window by clicking the X in the title bar.
Maximize
Close
Resize
Horizontally
Resize Vertically
Note
The Show advanced property data checkbox on the Schematic Editor Options:
General tab controls the display of less often used tabs for components, ports and nets.
Related Topics
Showing and Hiding the Properties Window
Getting Started 1-15
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The button in the Value field for Info launches the online help topic for the component.
The button in the Value field for CompDlg opens the component special dialog box for entering parameter values.
To set or change the value of a component parameter, click on the Value field and enter the
new value. If the value requires a multiplier unit (such as kOhm for 1000) click on the
Unit field to select the multiplier unit. The Evaluated Value shows the resulting number.
You can specify a parameter value using an expression that evaluates to a constant. The
expression is retained in the Value field, while the Evaluated Value field shows the constant
resulting from evaluation the expression. This allows you to identify and modify the expression in the future.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Component parameters that have composite properties also have buttons in the Value field.
The contents of the Symbol tab vary depending upon the number and type of components, properties, and drawing elements selected in the schematic.
Symbol tab fields can be modified using the following guidelines:
Getting Started 1-17
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Component Symbol
Component Location Click in the Value field to enter a new set of X,Y coordinates for the
symbol. Click in the Unit field to assign a unit of measure to the coordinates. Press Return to
move the component to the new location.
Component Angle Click in the Value field and select an angle from the pulldown (choices
are 0, 90, 180, and 270 degrees). The symbol rotates counterclockwise as soon as you select an
angle.
Component Mirror Click the checkbox in the Value field to flip the component left-toright. The mirror operation is performed as soon as you check the box. Uncheck the box to
return the symbol to its original orientation.
Use Symbol Color Click the checkbox in the Value field to use the default symbol color
for the component. (Selecting this hides the Component Color field and overrides the color
set in it.)
Component Color Click the colored bar displayed in the Value field to open a palette from
which to select a new color for the symbol. The new color is applied when the symbol is
unselected.
PropDisplay Location Click in the Value field to enter a new set of X,Y coordinates for
the property. Click in the Unit field to assign a unit of measure to the coordinates. Press
Return to move the displayed property to the new location.
PropDisplay Angle Click in the Value field and enter an angle. The property rotates counterclockwise as soon as you select an angle.
PropDisplay Font Click in the Value field and select a font from the pulldown. The displayed property font changes as soon as you select the new font.
PropDisplay Font Click in the Value field and enter a font size (font sizes are in points).
PropDisplay Justification Click in the Value field and select a justification setting from
the pulldown. The displayed property justification (position relative to PropDisplay Location)
changes as soon as you select the new setting.
To edit their properties click to select primitive drawing elements (arcs, circles, lines, rectangles, polygons, text boxes, and images). Editable properties vary with the kind of element.
Refer to the section on Primitive Drawing Elements for additional information on specific
property types for each element.
To set or change the value of a component parameter, click on the Value field and enter the
new value.
If the value requires a multiplier unit (such as meg for 1000000) click on the Unit field to
select the multiplier unit.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
To save the parameter values in the project database, check SDB checkbox.
Parameters that have composite properties have buttons in the Value field. A composite property is an array or record property (parameter, quantity, or signal), generally based on a model
property, that represents a combination of elements. Click the button to view details and edit
these properties in the Array/Record Element Values dialog box.
Signals that have composite properties have buttons in the Value field. A composite property is
an array or record property (parameter, quantity, or signal), generally based on a model property, that represents a combination of elements. Click the button to view details and edit these
properties in the Array/Record Element Values dialog box.
To save the parameter values in the project database, check SDB checkbox.
Right-click in the toolbars area at the top of the desktop, and then click Properties on the
shortcut menu.
Expand the Project Manager window by toggling the triangle symbol at the upper right. This
expands the Project Manager window and shrinks the Properties window without removing
it from Main window.
In the docked Properties window, click the x at the upper right. This closes the window and
is equivalent to removing the check in the View>Properties menu.
A check box appears next to this command if the Properties window is visible.
Note
The docked Properties windows do not contain the Property Displays tab. To edit
Property displays for an element, you must open the Properties window for that element
from the Schematic Editor.
2.
Scroll down to the Info parameter entry, and then click the button in its Value cell:
Components on a schematic
Getting Started 1-19
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Project variables
Design properties and (local) variables
Component definitions
You can close the Properties dialog box by pressing the Esc key.
You can resize the Properties dialog box by dragging its edges.
You can change the relative widths of adjacent columns in the Properties dialog
box by dragging the header separators between them:
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
Editing the design properties of a subcircuit will clear the Undo/Redo history because
changes to subcircuit design properties can affect connectivity in the parent schematic.
Editing design properties in a top-level schematic will not clear Undo/Redo.
Name This column displays the names of component parameters. Names can be edited for
case only.
Value This column allows you to change the initial values of parameters.
Unit This column allows you to set the unit of measure (as appropriate) for the parameter
value.
Evaluated Value This read-only column displays the evaluated value (as appropriate) of the
parameter.
Description This column allows you to enter a description for the parameter.
Netlist Unit This column allows you to set the unit of measure used when the parameter is
netlisted.
Callback This button allows you to associate a callback script with the parameter.
Read-only This check box controls whether or not the parameter settings can be changed.
Hidden This check box controls whether or not the parameter is hidden by default.
Property Type displays the type (e.g., Real) for generic properties.
Show Pin This check box allows you to show a pin for the property on the components
symbol.
Sweep This check box enables the value for sweep.
Default SDB This check box enables the value to be stored in the project SDB.
Getting Started 1-21
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Statistics Option
When this option is selected, the Parameter Defaults tab lists, displays, and sets the values for the
following design parameters applicable to statistical analysis.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
As on the Param Values tab of the Property Window, you can set or change the value of a component parameter by clicking on the Value field and entering the new value. You can enter the
units in the value field, or you can click on the Unit field to enter the units. If the value requires
a multiplier unit (such as kOhm for 1000) click on the Unit field to select the multiplier
unit. The Evaluated Value shows the resulting number.
The button in the Value field for Info launches the online help topic for the component.
The button in the Value field for CompDlg opens the component special dialog box for entering parameter values.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Component parameters that have composite properties have buttons in the Value field.
You can specify a parameter value using an expression that evaluates to a constant (as shown
in the picture above). The expression is retained in the Value field, while the Evaluated Value
field shows the constant resulting from evaluation the expression. This allows you to identify
and modify the expression in the future. The Property Displays Tab allows you to display the
expression, the evaluated value, or both.
Note
Clicking the Show Hidden checkbox allows you to view hidden properties of the
component. Hidden properties contain system-defined values and rules for interpreting
predefined component parameters. Modifying hidden properties requires specialized
knowledge of the component, and is not needed for normal operation.
The Override box is checked when any of the parameters default values have been changed.
Property Type shows the type (e.g., Real) for Generic properties. Show Pin allows you to show a
pin for the property on the components symbol. Sweep enables the value for sweep. SDB enables
the value to be stored in the project SDB.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
When the Properties dialog is opened for a design (Design Properties), the Parameter Values tab
is initially empty. You can add properties to the design by clicking the Add button. See Adding
Project Variables for details.
Note
The Add button does not appear on the Properties dialog for a component, as shown in
the illustration above
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
UnitThis column allows you to set the unit of measure for the parameter value.
Description This column displays a description of the parameter.
Callback This button allows you to associate a callback script with the parameter.
Override When checked, indicates that one or more of the parameters defaults have been
changed.
Signal Type This column shows the type of signal (e.g., real or bit) set for the parameter.
Direction Shows the parameter direction (In, Out, InOut, or Dont Care).
Show Pin When enabled, this check box controls whether or not the parameter pin is shown
on a schematic.
Sweep When enabled, this check box controls whether or not the parameter may be swept.
SDB This check box controls whether or not the parameter is saved in the SDB.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note that the Value field for each composite property contains a button labelled with the values of
the elements in the respective array or record. Clicking a button opens an Array/Record Element
Values dialog box in which you can assign element values for array
and record
properties. For example:
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The edit field at the top shows the current composite value, which is a comma-separated set of
numbers, variables, functions, or expressions enclosed in curly braces. If there are nested arrays or
records (e.g., an array of records where the record has an array and various other values), the nested
array or record values are also enclosed in curly braces. Such a value could look like
{1,3,{{22,55},44},7e12}. The array or record value can be set directly by modifying the current
value in this edit field. The updated values will be shown in the tree when focus is changed.
The Expand All and Collapse All buttons expand and collapse the tree.
Clicking on a leaf element opens the Edit Element Value dialog:
Here you can enter a value, then click OK at which time the value will be checked for validity and
the value updated in both the tree and composite value. Entries that fail the validation check produce messages similar to the following in the Message Manager:
Related Topics
Parameter Values Tab (Properties Dialog Box)
Quantities Tab (Properties Dialog Box)
Signals Tab (Properties Dialog Box)
Param Values Tab (Properties Window)
Quantities Tab (Properties Window)
Signals Tab (Properties Window)
The Property Displays tab controls only the display of labels associated with component
parameters. It does not enable or define those parameters as outputs for simulation. To
select output parameters, refer to the section on Setting the Outputs for Simulation.
2.
Click on the Name field and select the parameter you wish to add from the pulldown menu.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
3.
Click on the Visibility field to select the type of information you wish to display:
4.
Click in the Location field for a parameter to specify the location for the displayed parameter
and/or value. The locations are: Left, Top, Right, Bottom, Center. When you have set the
location with the cursor in the schematic, the Location field has the entry Custom.
Select the property you wish to remove from display in the Property Display list and click the
Remove button.
Click on the Visibility field of the property you wish to remove from display and select None.
Do not use the names of reserved system parameters for property names.
The Edit property dialog is similar to the Add property dialog. Editable fields are the same as those
described above for the Add Property dialog box.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
(docked) to any edge of the Simplorer desktop. Message text wraps within the window. A vertical
scrollbar displays as needed allowing you to move through the list message-by-message.
Note
If a message is too large to fit in the window, clicking the scrollbar to page-up or pagedown will have no effect. To view such messages in their entirety, you can resize the
window or right-click on the message and select Details to show message details.
Hint
You can drag the window by its title bar to undock, move, and dock it.
You can resize the window by dragging its edges.
You can maximize or minimize the window by clicking the triangle in the title bar.
You can close the window by clicking the X in the title bar.
You can right-click on a message and select Details to show message details.
Resize Vertically
Close
Maximize
Resize
Horizontally
Messages in the Message Manager window are organized with global messages first, then by
project, then by circuit. Because a design can contain multiple circuits and subcircuits, sometimes
with multiple analyses for each, this organization helps you to quickly determine where errors have
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
occurred. Messages are stamped with the date and time (hh:mm:ss) they were generated. The
following icons appear next to a message to indicate information, warnings, errors, or actions:
Indicates an informative message.
Indicates a warning message that may require your attention.
Indicates an error message that may require your attention.
Related Topics
Turn off the Message Manager window display by deselecting the Message Manager checkbox on the View menu in the Menu Bar.
2.
3.
On the Miscellaneous Options tab select Show Message Window on new messages.
The Message window will re-open when Simplorer reports any errors, warnings, or successful
completion of any simulations.
Clearing Messages
The Message Manager is cleared at the start of each analysis. To manually clear messages, rightclick the message tree and select Clear Messages for <ProjectName>, where <ProjectName> is the
name of the project for which you want to clear messages.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Right-click the toolbar area, and then click Progress on the shortcut menu.
A check box appears next to this command if the Progress window is visible.
You can configure the Progress window to appear only when a simulation is running. To do this:
1.
Turn off the Progress window display by deselecting the Progress Window checkbox on the
View menu in the Menu Bar.
2.
On the desktops Tools menu, choose Options, and then click General Options.
3.
On the Miscellaneous Options tab, select Show Progress Window when starting a simulation.
4.
Click OK.
Note
The Progress window is also a dockable window, so you can position it where you like.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
See the Window Pulldown Menu topic for ways to manipulate the windows in the Design Area.
You can move components by simply selecting and dragging them. Copy and paste can be used on
components and their wires within the schematic editor. You can also copy and paste to other schematics.
As you place the cursor near a pin of a component, it changes from an arrow to an X, indicating that
the schematic editor is in the wiring mode. In wiring mode, left-click to start drawing a wire. Leftclick again to end the wire.
Commonly used items such as ports, 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.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Relater Topics
Schematic Editor.
The project tree Definitions includes a Symbols folder that lists the symbols for components used
on the current schematic. Double-click on the desired item, or right-click and select Edit Symbol
from the shortcut menu, to open the symbol for editing.
The symbol editor allows you to edit this information in the following ways:
Draw graphical primitives, such as rectangles, circles, and arcs, using options on the Draw
menu
Add pins for electrical connections using the Pin option on the Draw menu, and possibly modifying the properties of these pins via the Pin List dialog box
Add text labels, using the Text option on the Draw menu
Add property displays, using the Property Display Setup option on the Symbol menu
Update the current project with the new or revised symbol definition using the Update Project
option on the Symbol menu
Related Topics
Symbol Editor.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Related Topics
Netlist Editor.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Related Topics
C Model Editor
VHDL Model Editor
SML Model Editor
Spice Model Editor
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Report Window
When a design has been successfully simulated, you can generate a report of results in a wide
variety of forms, including XY graphs, polar graphs, 3D graphs, Smith charts, and data tables.
Various attributes of each can be customized to your liking. Here is an example of a 2D Report:
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
A pull-down menu in the Menu bar can be opened by clicking the Alt key and then pressing
the underlined letter of the menu you wish to activate (the underlines appear when the Alt key
is pressed). Use lower case for the underlined letters.
Clicking the Alt key enables you to scroll across the Menu bar, opening the pull-down menus,
by pressing the left () and right () arrow keys.
Once a pull-down is open, you can use the down () and up () arrows to change the selection. You
can use the right ()arrow key to open a subordinate menu for the selected command.
Operations on the pull-down menus can be executed in three ways:
To open a help topic about an Simplorer menu command, press Shift+F1, and then click
the command or toolbar icon.
1 -39
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
File menu
Use the File menu commands to manage Simplorer project files and printing
options.
Edit menu
Use the Edit menu commands to select, cut, copy, paste, and modify the
contents of the active editor window; and undo and redo actions.
View menu
Use the View menu commands to display or hide desktop components and
model objects, modify Schematic Editor window visual settings, and modify
the model view.
Project menu
Use the Project menu commands to add an Simplorer design to the active
project, view, define datasets, and define project variables.
Draw menu
Use the Draw menu commands to draw primitive elements, ports, 2D reports,
and wires, and to rotate and flip schematic and symbol elements.
Schematic menu
Use the Schematic menu to setup the grid display, page display properties,
perform ERC check, set rules for automatically naming wires, edit the symbol
for a circuit, push up and pop down through levels of a hierarchical schematic,
and layout probes and stacking.
This menu does not appear unless you have an active schematic displayed.
Simplorer Circuit Use the Simplorer Circuit menu to setup and manage all the parameters for
menu
the active design. Most of these project properties also appear in the project
tree. You can also start an analysis, setup an Optimetrics analysis, and create
reports from this menu.
This menu does not appear unless you have an active schematic displayed.
Symbol menu
Use the Symbol menu to manage the parameters for the symbols associated
with components and to update the current project with changes made in the
current symbol.
This menu does not appear unless you have an active symbol editor window
displayed.
Netlist menu
Script menu
Use the Script menu to manage JavaScripts and Visual Basic scripts.
This menu does not appear unless you have an active script editor window
displayed.
1-40
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
VHDL, C, and
SML Model
Editor menus
Use the VHDL, C, and SML Model Editor menus to manage the parameters
for component models defined using either the VHDL, C, or SML modeling
languages, and to update the current project with changes made in the current
model.
These menus do not appear unless you have an active model editor window
displayed.
Report2D and
Use the Report2D and Report 3D menus to manage the parameters for
Report3D menus modifying and updating the various report types available in Simplorer.
These menus do not appear unless you have selected a report from the Results
folder in the Project Manager.
Tools menu
Use the Tools menu to modify the active projects material library, arrange the
material libraries, run and record scripts, update project definitions from
libraries, customize the desktops toolbars and keyboard shortcuts, and modify
many of the softwares default settings.
Window menu
Use the Window menu commands to rearrange the schematic windows and
toolbar icons.
Help menu
Use the Help menu commands to access the online help system and view the
current Simplorer version information.
Related Topics
Getting Help
At the same time the ToolTip appears, Simplorer displays a brief description of the icons
command in the status bar at the lower left-hand corner of the Simplorer window:
1 -41
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The design environment supports customization of the Toolbar. To configure, select the Customize
option from the Tools pull down menu. Shortcuts are organized by toolbars according to their
program component such as Desktop or Schematic and category such as File or View. The user
may select when a toolbar is visible or create user customized toolbars to be visible for a given
active editor window.
The toolbar buttons and shortcut pull-down lists act as shortcuts for executing various commands.
To execute a command, click a toolbar button or click a selection on the shortcut pull-down
list.
To move a toolbar, click and drag the toolbar by the vertical bar on its left. If you drag a toolbar outside of the main Simplorer window, it changes into a floating menu window.
To open a help topic about a toolbar buttons 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
On the Tools menu, click Customize. Select the toolbars you wish to display from
the list on the Toolbars tab on the Customize dialog.
You can also create new toolbars by clicking New and assigning a name for the
toolbar in the resulting dialog.
You can add shortcut icons to any toolbar simply by dragging a shortcut icon from
those available on the Commands tab and dropping in on the desired toolbar.
You may also drag and drop shortcut icons directly from one toolbar to another. To
remove a shortcut from a toolbar, drag and drop the icon outside of the main
Simplorer window.
On the Tools menu, click Customize. On the Customize dialog box, click Reset to
reset the toolbar currently highlighted in the list, or click Reset All to return all
toolbars to their default conditions.
Customize Options
To customize the Toolbar displays by using the toolbar list:
1.
Select Tools>Customize.
This displays the Customize dialog with the Toolbars tab selected. The field lists the
available toolbars, with those currently selected being checked. To the right of the field
are three buttons:
New... -- launches the New Toolbar dialog that lets you specify a new toolbar name.
Reset -- This resets the toolbar display to apply your current selections.
Reset All -- this resets the toolbar display to match the original defaults.
2.
1-42
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
New toolbar icons are added to new rows as you click them. You can drag these to convenient locations.
3.
4.
Use the OK button to close the dialog, or the Cancel button to close without making
changes.
Customize Commands
To customize the Toolbar by dragging icons:
1.
Select Tools>Customize.
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.
Note
2.
If User Tools menu items have been defined, the items are displayed in the Menu
Contents pane.
Navigation buttons let you Move Up, Move Down, Remove, and Add menu items.
Click the Add button in the Customize User Tools Menu dialog.
This enables the following fields:
Menu Text field -- enter the name of the tool you want to appear in the User Tools menu.
Command field -- this field displays the external executable. An ellipsis button [...] lets you
navigate to the location of the executable file you wish to run when the command is selected.
Arguments field -- this field accepts command arguments from the > button menu selections
for File Path, File Directory, File Name, File Extension, Project Directory, or Temp
Directory.
Initial Directory -- this field specifies the initial directory for the command to operate. The
ellipsis button [...] displays a dialog that lets you navigate folders on your system, or across the
network.
3.
Click OK to add the newly defined user tools to the Tools menu, or Cancel to close the dialog
1 -43
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
without changes.
Note
Note
All of the commands on the shortcut menus are also available on the menu bar.
Shortcut Keys
Many commands in Simplorer may be accessed through keyboard shortcuts or hot keys. These
keystroke combinations some of which also include pressing and holding the left mouse button
to perform drag operations allow you to bypass the menu system and directly execute
commands. They are designated and chosen as follows:
Modifier(s) + key
Modifier(s) + drag
1-44
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
New
Ctrl+o
Open
Ctrl+p
Ctrl+s
Save
Ctrl+0
Cascade windows
Ctrl+1
Ctrl+2
Del
Delete
F1
Open help
F2
Rename
F12
Ctrl+c
Ctrl+v
Paste
Ctrl+x
Ctrl+y
Redo Edit/Delete
Ctrl+z
Undo Edit/Delete
Del
Delete
Ctrl+t
Insert text
Ctrl+b
Insert pin
Ctrl+r
Shift+drag
Pan
Shift+Alt+drag
Zoom
1 -45
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Fit drawing
Alt+drag
Rotate view
Shif+drag
Pan view
Shift+Alt+drag
Zoom view
Ctrl+c
Ctrl+v
Paste
Ctrl+x
Ctrl+y
Ctrl+z
Del
Delete
Shift+drag
Pan
Shift+Alt+drag
Zoom
Netlist Editor, VHDL-AMS Package Editor, VHDL-AMS Editor, SML Editor, and C Model
1-46
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Ctrl+b
Ctrl+c
Copy
Ctrl+f
Find
Ctrl+g
Go to line number
Ctrl+r
Replace
Ctrl+v
Paste
Ctrl+x
Cut
Ctrl+y
Redo
Ctrl+z
Undo
Del
Delete
F2
Next bookmark
Ctrl+F2
Toggle bookmark
Shift+F2
Previous bookmark
Related Topics
Schematic Editor Shortcuts
2.
Select the command whose shortcut you want to edit by choosing the desired entries in the
Categories and Commands lists.
The Shortcuts for selected command drop-down list shows the keyboard shortcuts (if
any) currently assigned to the selected command.
a.
To delete a keyboard shortcut, select it in the drop-down list and click Remove.
b.
To add a keyboard shortcut, place the cursor in the Press new shortcut key box and
1 -47
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
type the new key or key combination (e.g., Shift+Esc, F7, Ctrl+Shift+K, etc.).
Note
If the new shortcut key is already used, Show currently used by lists which command
currently uses it.
c.
3.
Optionally, click Save to save the modified set of keyboard shortcuts in an Ansoft Keyboard Shortcut (.aks) file.
Undoing Commands
The Undo command on the Edit menu for all editors and reports allows you to undo the last
command or operation you performed. Redo re-executes the last operation that was undone.
Note
1-48
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
only one of these options should be specified. The settings persist only for the current session.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
mand line option is only valid for batch jobs; it is ignored if neither -BatchSolve nor
-BatchSave command line options are specified.
The following examples use hfss, but this feature is available for all desktop products.
Multiple registry settings may appear in a single -batchoptions value, separated by whitespace
The -batchoptions value must be enclosed in double quotes if it contains any whitespace
1 -51
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
current product. If the examples above are used with Simplorer version 11.0, then the following
table shows the relative and absolute paths of the registry overrides in the above examples.
Relative Path
Simplorer/Preferences/
NumberOfProcessors
HKCU/Software/Ansoft/Simplorer/11.0/Simplorer/Preferences/
NumberOfProcessors
Desktop/ProjectDirectory
HKCU/Software/Ansoft/Simplorer/11.0Desktop/
ProjectDirectory
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
When to Use the -batchoptions Desktop Command Line Option
Many analysis parameter settings may be done using the GUI. For example, a number of Simplorer
options may be set using the Simplorer Options dialog box, which is brought up by the
Tools>Options>Simplorer Options... menu item. These values of these parameters are saved in
the registry when Simplorer is not running.
Path Name
Description
Simplorer/Preferences/
HPCLicenseType
pack
Simplorer/Preferences/
MemLimitHard
0 (No Limit)
KB
Simplorer/Preferences/
MemLimitSoft
0 (No Limit)
KB
Simplorer/Preferences/
NumberOfProcessors
maximum number of
processors
Simplorer/Preferences/
1
NumberOfProcessorsDistributed
maximum number of
distributed processors
Simplorer/Preferences/
UseHPCForMP
0 (false) or 1
(true)
0 (false)
When running a batch analysis, these parameters will 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
1-52
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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 Simplorer job running
on the same host as the same user.
simplorer -ng -BatchSolve -Distributed
-machinelist num=2 _
-batchoptions _
"'Simplorer/Preferences/NumberOfProcessorsDistributed'=2 _
'Simplorer/Preferences/NumberOfProcessors'=2
'Simplorer/Preferences/UseHPCForMP'=1
'Simplorer/Preferences/HPCLicenseType'=pool"
Project1.asmp
-BatchExtract <batchExtractScriptFile> <projectFile>
This command allows the following Simplorer commands to be executed non-graphically
via script and without checking out any GUI licenses: 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.
Note
Examples:
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
-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:\Simplorer\simplorer.exe -distributed _
-machinelist list="192.168.1.1,192.168.1.2" _
-batchsolve design_transient:Optimetrics
"C:\distrib_project.adsn"
C:\Simplorer\simplorer.exe -batchsolve SimplorerDesign1:Nominal
_ "C:\Project1.asmp"
"c:/Program Files/AnsysEM/Simplorer11.0/simplorer.exe" _
-Iconic -Queue _
-LogFile "H:\Simplorer\_SimplorerQueue\fence-v2__Array with
Fence4.log" _
-BatchSolve "Array with Fence4:Nominal" "H:\Simplorer\fencev2.asmp"
-RunScript <script file name>
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.
-RunScriptAndExit <script file name>
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.
<none>
If you do not specify a run command with hfss on the command line, you can still specify
the -Help and -Iconic option.
<project file>
Open the specified project on start up. If -BatchSolve is also set, the project will be
solved.
Note
1-54
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Options
The following options can be associated with one or more of the run commands.
-Distribute
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:
C:\Simplorer8\simplorer.exe -distribute -batchsolve _
SimplorerDesign1:Optimetrics:ParametricSetup1
"C:\Project1.asmp"
-Help
Open a window that displays the different command-line options. This is only used when
none of the four run commands are used.
-Iconic
Run Simplorer with the window iconified (minimized). This can be used with all or none
of the run commands.
-LogFile <log file name>
Specify a log file (use in conjunction with -BatchSave or -BatchSolve or -RunScriptAndExit run commands). If no log file is specified, it will be written to the directory in which
the script or Simplorer project is located, with the name <project_name>.log.
-ng
Run Simplorer in non-graphical mode. (Use in conjunction with -BatchSave or -BatchSolve run commands. Must be used with -BatchExtract command.)
-Queue
Queue licenses (use in conjunction with -BatchSolve or -RunScriptAndExit).
-ScriptArgs <scriptArguments>
Add arguments to the specified script in conjunction with -RunScript and -RunScriptAndExit.
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:
simplorer -scriptargs "SimplorerDesign1 Setup1" RunScriptAndExit c:\temp\test.vbs
Here, SimplorerDesign1 is taken into simplorer as the first argument, and Setup1 is the
second argument. Without the quotes, SimplorerDesign1 is taken as the first argument,
and Setup1 will not be understood by simplorer.
simplorer -scriptargs SIMPORERDesign1 Setup1 RunScriptAndExit c:\temp\test.vbs
1 -55
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Example:
c:\Simplorer8\simplorer.exe -runscriptandexit
"c:\project1.vbs"
-scriptargs "Setup1"
Related Topics
Running a Script.
For -batchoptions Use: Project Directory and Lib Paths
For -batchoptions Use: TempDirectory
For -batchoptions Use: Various Desktop Settings
Batch Options Command Line Examples
Default Value
Units or Values
Description
Desktop/
Ansoft subdirectory of user's HOME Directory pathname Directory where
ProjectDirectory directory or "My Documents" directory
new projects are
created
Desktop/
PersonalLib
Directory pathname
Directory
PersonalLib is
appended if final
directory is not
PersonalLib
Desktop/syslib
Directory pathname
Directory syslib
is appended if
final directory is
not syslib
Desktop/userlib
Directory pathname
Directory
userlib is
appended if final
directory is not
userlib
Related Topics
For -batchoptions Use: TempDirectory
For -batchoptions Use: Various Desktop Settings
Running Simplorer from a Command Line
1-56
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Default Value
Set by installer
Units or Values
-
Description
Directory for temporary files
Related Topics
For -batchoptions Use: Project Directory and Lib Paths
For -batchoptions Use: Various Desktop Settings
Running Simplorer from a Command Line
Default Value
200
Units or Values
Description
Megabytes (MB)
Desktop/Settings/
""
ProjectOptions/
(empty string)
AnsoftCOMPreferredIPAddress
IP Address (as a
string)
IP Address used to
connect from COM
Engine to Desktop
Desktop/Settings/
ProjectOptions/
AutoSaveInterval
10
edits
Desktop/Settings/
ProjectOptions/
AutoShowMessageWindow
1 (true)
Desktop/Settings/
ProjectOptions/
AutoShowProgressWindow
0 (false)
Desktop/Settings/
ProjectOptions/
DiskLimitForAbort
Megabytes (MB)
Desktop/Settings/
ProjectOptions/DoAutoSave
1 (true)
Desktop/Settings/
ProjectOptions/
DrawStateIconsInProjectTree3
1 (true)
1 -57
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Path Name
Desktop/Settings/
ProjectOptions/
ExpandMessageTreeOnInsert
Default Value
1 (true)
Units or Values
Description
Desktop/Settings/
0 (false)
ProjectOptions/ExpandOnInsert
Desktop/Settings/
1 (true)
ProjectOptions/HighlightActive
ContextInProjectTree2
Desktop/Settings/
ProjectOptions/
SavePreviewImagesInProject
File
1 (true)
Desktop/Settings/
ProjectOptions/
UpdateReportOnFileOpen
0 (false)
Related Topics
For -batchoptions Use: Project Directory and Lib Paths
For -batchoptions Use: TempDirectory
Running Simplorer from a Command Line
1-58
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
1 -59
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
1-60
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
cation or attempted modification of the Licensed Products, Licensees preparation of a derivative work of the
Licensed Products, or Licensees implementation of corrections, improvements, or revisions to the Licensed
Products, without the written consent of Licensor, shall void any Maintenance and Support obligations of
Licensor under this Agreement.
5. LIMITED WARRANTY. Licensor warrants that each Licensed Product will conform substantially with the
published documentation for such Licensed Product for (1) one year from the date of Licensees receipt of the
Licensed Product. Licensor does not warrant that the Licensed Products will be free of all errors or operate
without interruption. THE FOREGOING WARRANTY IS IN LIEU OF ALL OTHER WARRANTIES
EXPRESSED, IMPLIED OR STATUTORY, AND LICENSOR SPECIFICALLY DISCLAIMS ALL OTHER
WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. Implied warranties that cannot lawfully be excluded are limited to the duration of the express warranty stated above.
6. EXCLUSIVE REMEDY. The entire liability of Licensor and its suppliers and the Licensees sole and exclusive remedy is limited to repair or replacement of any Licensed Product not meeting Licensors limited warranty or the refund of the purchase price of such Licensed Product at Licensors option, provided the Licensed
Product is returned to Licensor headquarters with proof of purchase within the one (1) year warranty period.
7. LIMITATION OF LIABILITY. LICENSOR WILL NOT BE LIABLE FOR ANY LOST PROFITS, INCIDENTAL, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES WHATSOEVER, EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. LICENSORS ENTIRE
LIABILITY UNDER OR RELATED TO THIS AGREEMENT IS LIMITED TO THE REMEDIES SPECIFIED BY THIS AGREEMENT. LICENSORS LIABILITY FOR DAMAGES, REGARDLESS OF THE
FORM OF THE ACTION, SHALL NOT EXCEED THE FEES PAID FOR THE APPLICABLE SERVICES
OR FOR THE LICENSE OF THE LICENSED PRODUCT THAT GAVE RISE TO THE CLAIM.
8. FEES. Excluding evaluation licenses, licensee agrees to pay the License Fees for the Licensed Products
specified on the accompanying invoice. The License Fees do not include taxes, shipping, or handling charges,
all of which shall be paid by Licensee, except for taxes based on Licensors net income. The Shipping Fee
listed on the accompanying invoice covers all shipping costs for shipment of the licensed Products. The
method and carrier for shipment shall be selected by Licensor. All fees and charges under this Agreement shall
be due and payable within thirty (30) days after the date of the invoice. Any and all payments made under the
provisions of the agreement shall be payable in the currency as listed on the accompanying invoice. Licensor
reserves the right to request such payments be made by wire transfer according to instructions for such transfer
as specified by Licensor from time to time. 9. INFRINGEMENT. If promptly notified in writing by Licensee
of such action, Licensor agrees to defend or settle at its option, and hold Licensee harmless from, any action at
law or in equity finally adjudicated against Licensee arising from a claim that Licensees use of the Licensed
Products or documentation under this Agreement infringes any United States patent, copyright, or proprietary
right; provided that Licensee shall give Licensor the right to control and direct the investigation, preparation,
defense, and settlement of each such claim and Licensee shall fully cooperate with Licensor or its designee in
connection with the foregoing; further provided, Licensor may, immediately upon notice of such an infringement claim, replace all or part of the Licensed Products to make it non infringing or Licensor may obtain the
right for Licensee to use the allegedly infringing Licensed Products.
10. EXPORT PROVISION. Licensee acknowledges that the export of the Licensed Products are
subject to Licensor receiving the necessary licenses or approvals for export from the United States,
and Licensor shall not be liable for any delays including but not limited to required export authorizations which are beyond the reasonable control of Licensor. Licensee agrees that regardless of any
disclosure made by Licensee to Licensor of an ultimate destination of the Licensed Products,
Licensee will not re-export directly or indirectly any Licensed Products, without first obtaining a
1-62
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
license from the United States Government, as required. Licensee shall provide Ansoft with any
information, certifications or other documents which Licensor may require in connection with the
export of the Licensed Products, or any portions or parts thereof, pursuant to the Export Administration Act of 1979, as amended, and the rules and regulations promulgated thereunder. Without
limitation of the foregoing, Licensee agrees to not knowingly export or re-export any software,
documentation or technical data furnished to Licensee under this Agreement, without first obtaining permission to do so from the United States Department of Commerce or other appropriate governmental agencies into any of those countries listed from time to time in part 740 to Title 15 of the
Code of Federal Regulation and related supplements in designated prohibited Country Groups.
Licensee agrees to obtain any and all necessary government approvals in its country relating to performance of this Agreement; assist in clearing the Licensed Products through customs; and pay any
and all tariffs, taxes, import duties or excises imposed on the Licensed Products in connection with
its use hereunder.
11. SUCCESSORS AND ASSIGNS. The Agreement shall be binding on and inure to the benefit of
the parties, permitted assigns and legal representatives. This Agreement may not be transferred or
assigned (by operation of law or otherwise), in whole or in part, by Licensee without the prior written consent of the Licensor. A spin-off, sale of assets, merger, acquisition or other transaction
which involves a change of control of Licensee, or any part of Licensee, shall be deemed to be an
assignment hereunder.
12. TITLE. This Agreement grants Licensee no title or rights of or to ownership in the Licensed
Products or documentation or any corrections, improvements or revisions furnished under the
Maintenance and Support provisions hereof. THIS AGREEMENT DOES NOT INCLUDE THE
RIGHT TO SUBLICENSE.
13. FORCE MAJEURE. Neither party nor its representatives shall be liable for delays or failures in
performances resulting from acts beyond the reasonable control of such person and time for performance will be extended by a period equal to such delay. Such acts shall include, without limitation,
acts of God, strikes, lockouts, riots, acts of war, epidemics, governmental regulations imposed after
the fact, fire, power failures, earthquakes, or other disasters.
14. OFFICIAL LANGUAGE. The Parties agree that the official language of this Agreement is
English. Documents or notices not written in English shall have no effect under this Agreement.
15. RELIEF. Licensee acknowledges that any violation of this Agreement by Licensee will cause
irreparable injury to Licensor, and Licensor shall be entitled to injunctive relief.
16. GENERAL. This Agreement merges all prior written and oral communications and defines the
entire Agreement of the parties concerning the Licensed Products. All notices required under this
Agreement or pertaining to modifications to this Agreement shall be in writing, including facsimile
copies, however, excluding all variations of Electronic Mail, and shall be considered given upon
personal delivery of the written notice or within five (5) days of mailing, postage prepaid and
appropriately addressed. This Agreement shall be construed in accordance with laws of the United
States, of the Commonwealth of Pennsylvania without regard to its conflicts of laws provisions.
The failure by either party at any time to enforce its rights under this Agreement will not be construed as a waiver of such rights, nor will it in any way affect the validity of this Agreement. No
waiver by either party will be valid unless given in an appropriate writing signed by both parties.
1 -63
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
1-64
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
1. Redistributions of source code must retain the above copyright notice, this list of conditions and
the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions
and the following disclaimer in the documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of contributors may be used to endorse
or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTOR(S) ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
1-68
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
1-72
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2
Getting Help
Getting Help2-1
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Click Help>Contents
Click Help>Index
Click Help>Search
You can also access help for the scripting commands via the menu bar:
Context-Sensitive Help
To access online help from the Simplorer user interface, do one of the following:
To open a help topic about a Simplorer menu command, press Shift+F1 or click
then click the command or toolbar icon.
and
To open a help topic about a Simplorer context menu command, point to the command so that
it is highlighted for selection (do not click the command), and then press F1. (Context menus
display when you right-click on an element or object.)
To open a help topic about a Simplorer dialog box, open the dialog box, and then press F1.
Getting Help2-2
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Procedures are presented as numbered lists. A single bullet indicates that the procedure has
only one step.
Bold type is used for the following:
- 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
Simplorer Circuit>Analyze.
- Labeled keys on the computer keyboard. For example, Press Enter means to press the
key labeled Enter.
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.
Toolbar buttons serve as shortcuts for executing commands available in Simplorers menus.
Toolbar button icons are displayed in text after the command they execute.
For example:
On the Draw menu, click Primitive>Line
means that you can click the Draw
Line toolbar button to execute the Line command.
Getting Help2-3
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Searching in Help
Searching in Help
The online help system provides four ways to search for information and navigate quickly:
A hierarchical table of contents - To browse through the table of contents, click the Contents
tab. The table of contents is an expandable list of important topics. You can expand or collapse
the list by clicking the + or - symbols, and then jump to detailed information for a topic by
clicking the topic title.
A searchable index - To see a list of index entries, click the Index tab, and then type a word or
scroll through the list. Topics are often indexed under more than one entry. You can jump to
topic locations by double-clicking the entries.
A full text search - To locate every occurrence of a word or phrase that may be contained in a
help file, click the Search tab, type the word, then hit the Enter key or click the List Topics
button.
To produce the best hierarchical search results, be sure to enclose phrases in quotation
marks. When the search is complete, double-click one of the found topics to display its text.
Items are listed according to rank. To turn on/off the highlighting of found words or phrases,
click Options > Search Highlight On/Off.
A favorites list - If you use a particular help topic often, you can add it to your favorites list. To
create a list of favorite help topics:
1.
2.
2.
Right-click the topic and select Rename from the pop-up menu.
2.
Type a new name in the editable topic box and then press the Enter key.
To remove a favorite topic, select the topic and then click Remove.
Getting Help2-4
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Using WebUpdate
Using WebUpdate
Automatic updates for Simplorer are available over the Web. To enable Web updates, check the
Web Updates box when you install Simplorer.
To control the timing of automatic Web updates, use the Web Update Options tab on the General
Options dialog box. See Web Update Options Tab for details.
To perform a manual update:
1.
2.
3.
You can choose to enable the checkboxes to install the update automatically and to save
the update to disk.
If you choose to update, the Next button is enabled.
4.
b.
c.
Getting Help2-5
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
Click the ANSYS icon on the lower left corner of the help page.
3.
4.
Upon receiving the email, the recipient follows the directions by opening the online help, and
selecting the Search pane.
5.
6.
The recipient copies the section title from the email and pastes it into the search field.
7.
Getting Help2-6
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
3
Working with Simplorer Projects
A Simplorer project is a folder that includes one or more Simplorer designs and their associated settings, including report definitions, in a file with an .asmp extension. To the fullest extent possible,
Simplorer projects are portable in that they include, rather than merely reference, the library elements such as graphical symbols, components, scripts, and models they contain. Each design ultimately includes report and post-processing information.
A new project called Projectn is automatically created when the software is launched. A design
named Simplorern is automatically created for a new project. You can also open a new project by
clicking File>New.
Note
In general, use the File menu commands to manage projects. If you move or change the
names of files without using these commands, the software may not be able to find
information necessary to solve the model.
Related Topics
Setting Options
Simplorer Files
Setting up a Simplorer Design
Creating Projects
Opening Existing Projects
Translating Legacy Simplorer Projects and Schematics
Closing Projects
Saving Projects
Archiving Projects
Restoring Archives
Working with Simplorer Projects 3-1
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Renaming Projects
Deleting Projects
Removing Unused Definitions
Datasets
Undoing Commands
Redoing Commands
Inserting a Documentation File
Importing Simulation Models
Printing
Saving Project Notes
Event Callbacks
Analyzing Designs
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
General Options, such as project options, units settings, and analysis options.
Simplorer Options, such as Spice compiler and simulation options.
Report Setup Options, such as the maximum number of significant digits displayed, drag and
drop behavior, and whether or not to use advanced mode when editing and viewing traces.
Schematic Editor Options, such as symbol graphics, connectivity, and object placement.
Report2D Options, such as fonts, labels, line styles, and colors.
Netlist Editor Options, such as bookmark color and fonts.
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.
Related Topics
Setting Options via Configuration Files
Example Uses for Export Options Features
User Options and the Update Registry Tool
Batchoptions Command Line Examples
Project Options
Default Units
Analysis Options
WebUpdate Options
Component Chooser Options
Miscellaneous Options
2.
3.
Click OK.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
b.
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 asmp.auto file extension.
2.
The Project directory is where your Simplorer projects and personal libraries (PersonalLib)
are stored, and where Simplorer first looks to open files. Enter a directory path in the Project
directory text box, or click the [...] button to find and select the desired directory.
3.
The Temp directory is used by Simplorer for temporary storage of files during various operations. Enter a directory path in the Temp directory text box, or click the [...] button to find and
select the desired directory.
4.
The SysLib, UserLib, and PersonalLib directories are where Simplorer system (syslib) and
user (userlib) and personal (PersonalLib) libraries, respectively, are stored. Enter a directory
path in the appropriate directory text box, or click the [...] button to find and select the desired
directory.
5.
To reset the SysLib, UserLib, and PersonalLib directories to their default directories, click
Reset Library Directories. By default, the SysLib and UserLib directories are located in the
directory where Simplorer is installed. The PersonalLib default directory is located in the
... \Documents and Settings\username\My Documents\AnsysEM\PersonalLib directory.
6.
Select the Expand Project Tree on Insert check box if you want Simplorer to expand the
Project Tree automatically when you insert a new design.
7.
In the When creating a new project field, select a radio button to specify one of the following:
8.
You can also have Simplorer Warn when available disk space is less than the specified number of megabytes.
For more information about unit values used in Simplorer and other ANSYS
Electromagnetics products, see Unit Types.
These default unit values are applied to any quantity not explicitly assigned a unit specification
when entered into a Simplorer editor.
1.
Select the desired units using the pull-down lists below the corresponding metrics.
2.
When all information on the Default Units tab is as desired, select another tab or click OK to
put your options into effect.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
If you would like to select the machine to which to send the analysis immediately before analyzing, select Prompt for analysis machine when launching analysis.
Note
3.
If the Queue all simulations option is selected, this setting is ignored, and the default
analysis machine is used.
Under Analysis Machine Options, select whether the default analysis machine should be the
local machine (Local), a remote machine (Remote), or whether analysis should be distributed
across multiple machines (Distributed).
Note
When a Local machine (the default) is chosen to run simulations, Simplorer uses a local
directory for files going to and from the simulator. This allows the writing of large SDB
files, and updating of plots during simulation, to occur much faster than when Remote or
Distributed analysis machines are employed. If the Remote or Distributed radio
buttons are selected, then the simulator uses a tmp directory - which may be on another
machine - for file transfers.
a.
If you select Local (the default), the same machine on which Simplorer is running is used
for running analyses.
b.
If you select Remote, enter the default analysis machine information either as an IP
address, a DNS name, or a UNC name. See Remote Analysis.
c.
If you select Distributed, you can add machines to a list, or edit an existing machine list.
Select the Edit button to display the Distributed Analysis Machines dialogue. Here you
specify an IP address, a DNS name, or a UNC name for each machine to add to the list.
Control buttons let you Add Machine to List to or Remove machines from the list.
Selecting Distributed always checks out the ansoft_distrib license, regardless of whether
there is anything distributable or not.
In general, Simplorer uses machines in the distributed analysis machines list in the order
in which they appear. If Distributed is selected and you launch multiple analyses from the
same UI, Simplorer 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, Simplorer chooses the
first machine in the list. If another simulation is launched while the previous one is running, and this simulation requires two machines, Simplorer chooses machines 2 and 3
from the list. If the first simulation then terminates and we launch another simulation
requiring three machines, Simplorer chooses 1, 4, and 2 (in that order).
Working with Simplorer Projects3-5
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The displayed list always 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. Click OK to accept the changes and close the Distributed Analysis Machines dialog.
Regardless of the machine(s) on which the analysis is actually run, the number of processors and Desired RAM Limit settings, and the default process priority settings are now
read from the machine from which you launch the analysis.
You can also control these selections via toolbar icons for:
4.
Remote
,
, and
Distributed
To launch all analyses as a specific user, rather than the current user, do the following in the
Remote Analysis Options section.
5.
Local
Select or clear the Queue all simulations check box. This allows subsequent projects to wait
in a queue till the currently running project solves completely.
Related Topics
General Information on DSO Configurations
Note
Select the desired update frequency from the Automatically check for updates every
pull-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.
You will be prompted before an update. The date of the prompt is recorded as the Last
update attempt date.
The Last update date shows the last time Simplorer was updated.
You can also request a Web Update by selecting Launch WebUpdate from the Help
pull-down menu on the Simplorer menu bar. See Using Web Update.
Show Favorites specifies that a list of favorites, in the form of an expandable tree, is displayed in the Project Managers Components tab window.
Show Most Recently Used specifies that a list of the components you have most-recently
used is displayed in the project window.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Most Recently Used list contains specifies the number of recently-used components to
display.
Show All Components specifies that all components from all configured libraries are to
be displayed, regardless of product specificity.
When all information on the Component Chooser Options tab is as desired, select another tab or
click OK to put your options into effect.
Show Message Window on new messages specifies that the message window is automatically reopened if a message arrives after the message window has been closed.
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.
Show Progress Window when starting a simulation specifies that the progress window is reopened if a message arrives after the progress window has been closed.
Update reports on file open specifies that reports be automatically updated whenever a
new or existing file is opened for viewing/editing. Enabled by default.
Selecting the Emphasize active command context check box causes the label of the
selected Project Tree element that is active (i.e., has focus) to be rendered in bold text.
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).
Dynamically update reports during edits controls the version of solution data to be
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Simplorer solution data is versioned. If, for example, you have Simplorer analyze and
produce solution data for a particular state of a design then edit the design and resimulate solution data is now available for both states of the design.
To illustrate the effect of the Dynamically update reports during edits option, consider the
following scenario:
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 entry field allows you to specify the amount of memory (in Megabytes) to preserve when computing animation frames. Animation frame computation stops when the memory limit is reached.
ANSYS Workbench Application
The ANSYS Workbench Application Path lets you specify a path to an ANSYS installation, if you
have one. This path can be used by the Optimetrics feature for connecting to the Design Xplorer.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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 (32/64 bit of the specified version of MATLAB must match the platform of
this application)
General Options
Spice Compiler Options
Import/Update Models
Port Options
2.
3.
When finished, click OK to accept the changes and close the dialog box.
Remove from design (the default) removes nonexistent libraries from the list of configured libraries and generates a message stating which libraries were removed.
Send message leaves the nonexistent libraries in the list of configured libraries and generates an informational message giving detailed information on the nonexistent libraries.
Prompt opens a dialog box that lists the nonexistent libraries and asks the user whether
or not to remove them from the design. As message is generated confirming the results of
your choice.
Update reports during simulation enables dynamic update of XY plots containing
simply defined traces.
Synchronize all libraries after export allows all libraries to be synchronized automatically after model export. This setting is enabled (checked) by default.
Load component libraries on setup causes all component libraries to be loaded when
Simplorer is launched. Otherwise, libraries are loaded the first time the Components tab
in the Project Manager window is selected.
Working with Simplorer Projects3-9
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Options in the From CModel Editor, copy DLL to: panel allows the user to choose the location into which CModel DLL files are copied when C models are imported into a project.
Choose either Personal Library\Bin or User Library|Bin.
Note
Related Topics
Configuring Libraries
Setting Simplorer Options
Spice Compiler Options
Default SPICE Type sets the default Spice compiler type either to Berkeley Spice or
PSPICE.
Import Spice Text as determines whether Spice text will be imported as SPICE or
SML.
Create Testbench from Main Circuit when enabled, the compiler creates a Spice Testbench from the main circuit.
Related Topics
Setting Simplorer Options
General Options
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Library Path
Const
Step
Random
(VHDL) Const
(VHDL) Step
(VHDL) Random
Exponential
function
Hyperbolic
function
Second order
polynomial
function
2D lookup table
Arctangent
function
2D lookup table
with interpolation
Needle function
Pulse function
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Description
Library Path
Pulse width
modulation
function
Sawtooth function
(VHDL) Needle
function
(VHDL) Pulse
function
(VHDL)
Simplorer Elements\Basic Elements\Tools\Time Functions:triang
Triangular function
Related Topics
Setting Interface Port Properties
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
the options files. Pressing the Cancel button will cancel the export command. Pressing the Open
button will copy all of the config files for the current user and current host to the specified directory. Config files for the install, install_machine, user, and user_machine levels will be copied, if
they exist. One additional file, admin.XML, will also be copied to the destination directory. This
file does not contain user configurable options.
Related Topics
Setting Options in Simplorer
Setting Options via Configuration Files
Example Uses for Export Options Features
User Options and the Update Registry Tool
Batchoptions Command Line Examples
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Because Simplorer can interact with other ANSYS Electromagnetics products, the
following sections on setting options via configuration files include examples and
information applicable to various other ANSYS Electromagnetics products.
In addition to setting options from the Desktop UI, you can also set options in several configuration
files. Options that you set from the Desktop UI will override the option settings from the configuration files. The option settings from the configuration files are used if they are not overridden using
the Desktop UI. Option settings in the configuration files may apply to all users or only to a specific
user, and they may apply to all hosts or only to specific hosts. There are four levels, listed below
from most specific (highest precedence) to most general (lowest precedence):
host dependent user options (apply to the specified user on the specified host only)
host independent user options (apply to the specified user on all hosts)
host dependent default options (apply to all users on the specified host)
installation default (default for all users on all hosts)
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 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.
Rules for Modifying Option Settings
Option settings displayed in the Desktop UI follow the above rules. That is, if there is a setting in
any of the option config files, then the setting from the highest priority config file is displayed in
the Desktop UI. If there is no setting in any of the option config files, then the global default value
3-20 Working with Simplorer Projects
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
is used. You can modify settings using the various Options dialog boxes accessed via the
Tools>Options 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.
Configuration File Locations
Two of the configuration files (the host dependent default options config file and the installation
default config file) reside in the installation config directory, which is the "config" subdirectory of
the product installation directory. The other two configuration files (the host dependent user options
config file and the host independent user options config file) reside in a user-specific config directory for the application. The user-specific config directory for an ANSYS Electromagnetics application is in a subdirectory of the user's My Documents directory on Windows, or a subdirectory of
the user's HOME directory on Linux. The subdirectory pathname is AnsysEM/ApplicationPathAndVersion/config, where ApplicationPathAndVersion is usually the product name concatenated with the product version, such as Simplorer11.0.
Products with Multiple Desktop Applications
For products that have multiple Desktop applications, each Desktop application will have a separate user specific config directory, with a different value for the ApplicationPathAndVersion
directory name. For example, the Maxwell 16.0 product contains two Desktop applications: Maxwell and Maxwell Circuit Editor. For the Maxwell application, the user-specific config subdirectory pathame is AnsysEM/Maxwell16.0/Win64 (or Windows)/config. For the Maxwell Circuit
Editor application, the user-specific config subdirectory pathame is AnsysEM/Maxwell Circuit
Editor16.0/Win64 (or Windows)/config. For products that contain multiple Desktop applications,
the installation default option settings and the host-dependent default options settings each reside in
a single file for all applications, while the host-dependent user option settings and host independent
user option settings for each application are in separate files. Although the installation default
option settings and the host dependent default options settings for all applications are each written
to a single file, the settings for different applications are in separate portions of the file.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Level Name
user
File Name
hostname_user.XML $HOME/
AnsysEM/
ApplicationPathAn
user.XML
dVersion/config
install
InstallationDirecto InstallationDirectory/
ry/config
config
default.XML
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 16.0 installation on the Linux and 32 bit Microsoft Windows platforms. These are the files that apply to user
jsmith and hostname host123.
Application Config File Level Name
Maxwell
File Name
host123_user.XML
host
independent
user options
user.XML
user
host dependent
host123.XML
default options install_machine
installation
default
install
default.XML
Linux Directory
Pathname
32 Bit Windows
Directory
Pathname
/home/jsmith/
AnsysEM/
Maxwell16.0/config
MyDocuments/
AnsysEM/
Maxwell16.0/config
/opt/AnsysEM/
maxwell16.0/Linux/
config
C:/Program Files/
AnsysEM/
Maxwell16.0/Win32/
config
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
File Name
host123_user.XML
host
independent
user options
user.XML
user
host dependent
host123.XML
default options install_machine
installation
default
install
default.XML
32 Bit Windows
Directory
Pathname
Linux Directory
Pathname
/home/jsmith/
AnsysEM/Maxwell
Circuit Editor16.0/
config
MyDocuments/
AnsysEM/Maxwell
Circuit Editor16.0/
config
/opt/AnsysEM/
maxwell16.0/Linux/
config
C:/Program Files/
AnsysEM/
Maxwell16.0/Win32/
config
NOTES:
/home/jsmith is the home directory of user jsmith on Linux
MyDocuments is the "My Documents" directory for user jsmith on Windows
The Maxwell 16.0 product is installed in directory /opt/AnsysEM/maxwell16.0 on Linux
The Maxwell 16.0 product is installed in the directory C:/Program Files/AnsysEM/
Maxwell16.0/Windows on 32 Bit Microsoft Windows, and is installed in the C:/Program
Files/AnsysEM/Maxwell16.0/Win64 directory on 64 Bit Microsoft Windows.
Related Topics
Setting or Removing Option Values in Configuration Files: UpdateRegistry Command
Example Uses for Export Options Features
User Options and the Update Registry Tool
Batchoptions Command Line Examples
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Usage:
UpdateRegistry -Set -ProductName <name> _
-RegistryKey <keyPath> _
-RegistryValue <value> [ -RegistryLevel <level> _
<name>
Required. The application or product name and version, as described above. Examples: HFSS15.0,
Simplorer11.0, or "Maxwell Circuit Editor16.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:
HFSS15.0, Simplorer11.0, or "Maxwell Circuit Editor16.0". If the name contains spaces, it
must be quoted.
<keyPath>
Required. The pathname of the option setting. Example:
Desktop/Settings/ProjectOptions/AnimationMemory.
<level>
Optional. A string denoting which option 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.
3-24 Working with Simplorer Projects
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
When user jsmith runs Simplorer 11.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 hostdependent 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 Simplorer11.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 Simplorer11.0 _
-RegistryKey Desktop/Settings/ProjectOptions/DiskLimitForAbort
-RegistryLevel user
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
If a user has not explicitly created a host dependent user options config file or a host independent
user options config file, then when a user first runs an ANSYS tool on a host, all settings will come
from the host dependent default options config file or the installation default options config file.
Any settings for another host in a host dependent user options config file will not be carried over to
the new host. This may be inconvenient if the user has preferred option settings that differ from the
settings that apply to all users, especially if the user runs the ANSYS tool on a number of different
hosts. In this case, the user may set these option values in the user's host independent user options
config file. Then, these option values will be used on all new hosts, overriding any values set by the
administrator to apply to all users. Any changes made in the UI will only affect the user's host
dependent user options config file for the current host.
Getting a Value from a Specific Configuration File
Getting a Value Using Precedence Rules
Example of Removing a Host Dependent User Option Setting
Example Adding a Host Independent User Option Setting
Setting the Temporary Directory
Temporary Directory Configuration File Format
Setting the Temporary Directory Using the GUI
Setting or Removing Temporary Directory Values in Configuration Files: UpdateRegistry Command
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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 Simplorer11.0
-RegistryKey Desktop/Settings/ProjectOptions/AutoSaveInterval
-RegistryLevel user_machine
Related Topics
User Options and the Update Registry Tool
Example Adding a Host Independent User Option Setting
Setting the Temporary Directory
Temporary Directory Configuration File Format
Setting the Temporary Directory Using the GUI
Setting or Removing Temporary Directory Values in Configuration Files: UpdateRegistry Command
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
files for the other option settings. The following table shows the directories and files used to store
the Temporary Directory settings.
Config File
Level Name
Linux Directory
Pathname
File Name
user_machine
hostname.cfg
user
default.cfg
install_machine
hostname.cfg
installation default
Temporary Directory
install
default.cfg
Windows Directory
Pathname
$HOME/AnsysEM/
MyDocuments/AnsysEM/
ApplicationPathAndVersion/ ApplicationPathAndVersion/
config
config
InstallationDirectory/config
InstallationDirectory/config
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
User Options and the Update Registry Tool
Example Adding a Host Independent User Option Setting
Temporary Directory Configuration File Format
Setting the Temporary Directory Using the GUI
Setting or Removing Temporary Directory Values in Configuration Files: UpdateRegistry Command
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
$begin 'Config'
tempdirectory='C:/TEMP/AnsysEM'
$end 'Config'
The temporary directory specified by this configuration file is C:/TEMP/AnsysEM.
Additonal 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.
Single Quote Example
Config file:
$begin 'Config'
tempdirectory='C:/TEMP/ab\'cd'
$end 'Config'
Temporary directory is C:/TEMP/ab'cd. This shows how to include a single quote in a tempdirectory pathname. It also shows that forward slashes may be used as directory separators on Windows.
Related Topics
User Options and the Update Registry Tool
Example Adding a Host Independent User Option Setting
Example for Setting the Temporary Directory
Setting the Temporary Directory Using the GUI
3-32 Working with Simplorer Projects
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The file may contain an arbitrary number of batchoption entries, one per line.
Leading whitespace on each line is ignored. Spaces or tabs may be used to make the file more
readable.
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.
Option value:
The option value appears after the equal sign on each line.
Integral option values must not be enclosed in quotes.
All other options values are treated as strings, and 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.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The back slash "\" is used as an escape character in the value string. That it, this character
removes the special meaning of the following character.
The single quote character normally ends the value 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.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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.hfss is located in a shared directory specified using a UNC path:
hfss -BatchSolve -Distributed _
-Machinelist list=adam,adam,bill,bill,charlie _
-batchoptions "Hfss/Preferences/MemLimitHard=8388608 _
Hfss/Preferences/MemLimitSoft=6291456 _
Hfss/Preferences/NumberOfProcessors=2 _
Hfss/Preferences/NumberOfProcessorsDistributed=2"_
\\dennis\projects\project1.hfss
Related Topics
Batchoptions Command Line Examples
Example -BatchOptions with -Remote (Windows)
Example -Batchsolve with -Machinelist (Linux)
Example -Batchsolve for Local (Windows)
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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
Batchoptions Command Line Examples
Example -BatchOptions with -Remote (Windows)
Example -Batchsolve with -Machinelist (Windows)
Example -Batchsolve for Local (Windows)
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note that the batchoptions pathnames 'Planar EM/SolverOptions/NumProcessors' and 'Planar EM/
SolverOptions/NumProcessorsDistrib' must be in single quotes because they both contain embedded spaces.
Related Topics
Batchoptions Command Line Examples
Example -BatchOptions with -Remote (Windows)
Example -Batchsolve with -Machinelist (Windows)
Example -Batchsolve with -Machinelist (Linux)
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
In the R14 release, the UpdateRegistry tool may only be used to edit the first 21 DSO configurations stored in the registry. That is, the registry settings Desktop/DSOConfigurations/Item0 through
Desktop/DSOConfigurations/Item20 may be edited using the UpdateRegistry tool, but settings
Desktop/DSOConfigurations/Item21, Desktop/DSOConfigurations/Item22, etc. may not be edited
using the UpdateRegistry tool. This restriction is removed in R14.5 Preview 3; any number of DSO
configurations may be changed, added or removed using the UpdateRegistry tool.
Examples
Example 1
For this example, the configuration consists of two hosts specified by IP addresses 192.168.225.1
and 192.168.225.2. We decide to run four COM engines on each of these hosts because each host
has four cores. Thus, each host appears in the list four times. All entries are enabled. The configuration name is config1.
Configuration string:
$begin 'config1' $begin '' '192.168.225.1'='true'
'192.168.225.2'='true' '192.168.225.1'='true'
'192.168.225.2'='true' '192.168.225.1'='true'
'192.168.225.2'='true' '192.168.225.1'='true'
'192.168.225.2'='true' $end '' $end 'config1'
Example 2
For this example, the configuration consists of four hosts with UNC names \\host_1, \\host_2,
\\host_3 and \\host_4. Hosts \\host_1 and \\host_2 are about twice as powerful as the other hosts, so
they are placed in the list two times each. Host \\host_3 is temporarily offline, so it is disabled; all
other entries are enabled. The configuration name is config2.
Configuration string:
$begin 'config2' $begin '' '\\\\host_1'='true' '\\\\host_1'='true'
'\\\\host_2'='true' '\\\\host_2'='true' '\\\\host_3'='false'
'\\\\host_4'='true' $end '' $end 'config2'
Example 3
For this example, the configuration consists of five hosts with fully qualified domain names
host_a.ansys.com, host_b.ansys.com, host_c.ansys.com, host_d.ansys.com and host_e.ansys.com.
All hosts have slightly different configurations. The order from most powerful to least powerful is:
host_a.ansys.com, host_b.ansys.com, host_c.ansys.com, host_d.ansys.com, host_e.ansys.com. We
use this order in the configuration, so that the most powerful host(s) are selected first. The configuration name is config3.
Configuration string:
$begin 'config3' $begin '' 'host_a.ansys.com'='true'
'host_b.ansys.com'='true' 'host_c.ansys.com'='true'
'host_d.ansys.com'='true' 'host_e.ansys.com'='true' $end '' $end
'config3'
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Change the number of DSO configurations from 4 to 3. That is, the registry setting Desktop/
DSOConfigurations/NumItems must be changed from 4 to 3.
2.
Replace the first three DSO configurations with the DSO configurations in Examples 1, 2, and
3 above. That it, registry settings Desktop/DSOConfigurations/Item0, Desktop/DSOConfigurations/Item1, Desktop/DSOConfigurations/Item2 must be changed.
3.
Remove the fourth DSO configuration, because the initial state had four DSO configurations,
but the final state has only three DSO configurations. That is, the registry setting Desktop/
DSOConfigurations/Item3 must be removed.
The following UpdateRegistry commands may used used to accomplish these steps:
1.
2.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
user_machine
3.
These changes may be done in any order, but if any steps are omitted (or entered incorrectly) the
registry may be left in an inconsistent state.
Example: Adding DSO Configurations to the Registry Using UpdateRegistry
For this example, we assume that there are already two DSO configurations set in the registry, and
we want to add the DSO configurations in Examples 1, 2 and 3 above. We do not want to change or
remove the existing DSO configurations. In the initial state, the registry contains two DSO configurations. In the final state, the registry contains five DSO configurations.
Because there are initially two DSO configurations set in the registry, the registry setting Desktop/
DSOConfigurations/NumItems will have an integer value of 2. The registry will contain settings
for Desktop/DSOConfigurations/Item0 and Desktop/DSOConfigurations/Item1. There will be no
settings in the registry for Desktop/DSOConfigurations/Item2, Desktop/DSOConfigurations/Item3,
Desktop/DSOConfigurations/Item4, ....
To add the three configurations in Examples, 1, 2, and 3 above to the registry, we need to make the
following changes:
1.
Change the number of DSO configurations from 2 to 5. That is, the registry setting Desktop/
DSOConfigurations/NumItems must be changed from 2 to 5.
2.
Add the three DSO configurations in Examples 1, 2, and 3 above to the registry. That it, registry settings Desktop/DSOConfigurations/Item2, Desktop/DSOConfigurations/Item3, Desktop/
DSOConfigurations/Item4 must be added.
2.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
These changes may be done in any order, but if any steps are omitted (or entered incorrectly) the
registry may be left in an inconsistent state.
Related Topics
General Information on DSO Configurations
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
project_name.asmpresults
design_name
design_name.asol
.ssh
.ssc
.smd
.anf
Warning
Please observe that the operating system limits filenames to a maximum of 255
characters including path name and drive designator.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
3.
Connect components.
4.
5.
6.
Setup a solution.
7.
8.
Create reports.
9.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Creating Projects
To create a new project:
1.
You can specify a name for the project when you save it using the File>Save or
File>Save As commands.
Please observe that the operating system limits filenames to a maximum of 255
characters (including path name and drive designator).
Project definitions, such as components and models used in the project designs, are stored in a
Definitions folder under the project name in the project tree.
2.
b.
In the project tree, right-click the icon for the current project, select Insert, and then select
Insert Simplorer Design.
The Schematic Editor window appears to the right of the Project Manager. You can now create the schematic.
Note
Click the plus sign to the left of the design icon in the project tree to expand the project
tree and view specific data about the design.
Related Topics
The Schematic Editor
Setting the Project Tree to Expand Automatically
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
Use the file browser to find the desired Simplorer .asmp project file.
Note
3.
4.
Click OK.
The project information appears in the project tree.
Note
If you open another project without editing the automatically-created project, Simplorer
removes the automatically-created project.
If newer definitions are available for any of the components in the project, informational messages recommending that you Update Definitions are displayed in the Message Manager.
You can also open a saved project by:
Related Topics
Opening Recent Projects
Opening Legacy Simplorer Projects
Click the name of the project file at the bottom of the File menu.
Note
If you open another project without editing the automatically-created project, Simplorer
removes the automatically-created project.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
To ensure proper translation, Simplorer Legacy designs (.ssh files) must be synchronized and
saved using the legacy version before beginning the translation.
The legacy IST_Machine (IST_Machine.smd), ISET_Alternative_Power
(ISET_Alternative_Power.smd), and compatibility4x7 (Compatibility4x7.smd) libraries are
not supported in Simplorer 8. If you wish to translate and simulate the examples for these
libraries, you must first translate the libraries. Before translating these libraries, ensure that the
.smd files are in the same directory as the DataSet folder containing the legacy data files.
Note
Simplorer version 7.0 examples that used components from the unsupported
compatibility4x7 library have either been dropped or modified for Simplorer 8.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
If there are several trace names differing only in case in an imported Simplorer version 7.0
SDB, Simplorer 8 can access only one.
In Simplorer 7, all quantities and variables defined at any level of hierarchy are considered
global and could be accessed globally anywhere in the schematic by using the correct subsheet instance name qualifier as the prefix to the variable. However in Simplorer 8, only variables available as ports on the sub-sheet can be accessed at the parent level. If the user has
already used global access of such variables in their Simplorer 7 design, then Simplorer 8 will
automatically add hidden quantity ports during translation to enable access to such variables at
the correct level of use.
In Simplorer version 7.0 or earlier, model nodes could be empty, i.e., they need not have values
assigned to them. In Simplorer 8, models such as MIN and MAX have nodes that require a
value. Legacy translation of such models results in the intrinsic variable _Empty being
assigned to such nodes to preserve simulation accuracy.
Because Simplorer version 7.0 or earlier was case-sensitive with respect to names of parameters, quantities, etc., components could have two quantities named A and a. Simplorer version 8.0 however, is case-insensitive. Consequently, for legacy components having such
names, only one name instance is translated. Please refer to Translating Components with
Identical Parameter Names for details.
Legacy experiment setups are not translated in Simplorer 8. Users must recreate them in Optimetrics.
In Simplorer 8 the Multidimensional Table Source component represents only one source
unlike its Simplorer version 7.0 counterpart. However, when converting a Simplorer version
7.0 sheet containing a Multidimensional Table Source that represents more than one source,
the translated component supports more than one source - but the source count is fixed. You
can not remove a source or add a additional one.
In Simplorer 8 the voltage (v) and current (i) quantities for VHDL-AMS components such as
inductors are not directly accessible for use in variable links. Consequently, legacy translations
of schematics that have variables linked to these quantities produce translation errors. To link
to these quantities in Simplorer 8, add ammeter and voltmeter components as needed. For
example, to link a variable to a VHDL-AMS inductor current, add an ammeter in series with
the inductor and use the ammeter current quantity for the link.
The legacy translation process adds all three types of analysis setups (AC, DC, Transient) to
the translated project by default. For example, if a version 7 schematic contains only an AC
analysis setup, default DC and Transient analysis setups are also added to the version 8 project
during translation. You can delete the unused setups, if desired.
Note
Improper or undefined simulation setups will cause errors during Optimetrics Analysis.
To verify the analysis setups, click Analysis>Analyze in the Project Manager window to
analyze the nominal circuit and review the messages in the Simplorer message manager
window prior to running the Parametric Analysis.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Related Topics
SML Header Translation
When Component Terminals Do Not Match the Model Terminals
Translating Components with Identical Parameter Names
Translating Schematics Containing a Simulink Component
SML #define statements become S8 design parameters in the Design Properties dialog
box.
Note
If there are more than 100 #define statements in the S7 schematic, a dialog displays
before translation proceeds giving you the option to decline converting all of them in
which case only 100 of the #define statements will be converted.
FML_INIT data are converted into FML_INIT component instances added to the lower left
region of the translated schematic, and having instance names like: ICA_HEADER1,
ICA_HEADER2, etc.
If an SML #include instruction is in the S7 header, the referenced file is opened and examined for #define statements and FML_INIT data which are then converted as described
above.
If the SML header, and any referenced files, contain only #define statements and
FML_INIT data, all of the header information is brought into the schematic as described
above, and the S8 SML Header tab in the Solution Options dialog box will be empty.
Any other kind of header data is processed, if possible, and retained in the S8 Solution
Options dialog box SML Header tab.
Translate legacy libraries used by components in the legacy schematic. (In the example mes-
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
In the Project Manager Definitions>Components folder, right-click the component you wish
to edit (NJFET5 in the example), and select Edit Component to open the Edit Component
dialog box.
3.
On the General tab, click Properties to open the component Properties dialog box.
4.
On the Parameter Defaults tab, click the button in the Value column for the SimplorerNetlist property to open the Edit Netlist String dialog box.
5.
Copy the entire netlist string, then close the Edit Netlist String and the Properties dialog
boxes.
6.
On the Simulation Models tab of the Edit Component dialog box, remove the existing model
from the list.
7.
Click Add Netlist Line and paste the netlist string in the Netlist Line dialog box.
8.
In the netlist string, locate the string: BULK:= %3 and change %3 to GND and click OK to
close the dialog box.
9.
10. Repeat the above procedure as needed for any similar occurrences of terminal mismatch.
When translating a schematic using a component with identical properties into Simplorer 8.1, the
already-translated component is retrieved from the library and recorded name correspondences are
used to correct any expressions in the schematic that use the old property name.
If desired, the original model can be corrected and the wrapper model eliminated. For SML models
the following procedure can be used. For CModels, similar model editing can be done if there is
access to the original CModel code.
1.
Go to the Project tab of the Project window, navigate to Definitions>Models, and locate the
original model. Double-click it to edit. Change the Ports to be unique names without regard to
Working with Simplorer Projects3-53
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
case, and adjust the model text for these new names. Update the project and close the model
editor.
2.
Go to the Project tab of the Project window, navigate to Definitions>Models, and right click
on the modified model. Select Export to library and choose the appropriate library to update.
3.
Go to the Project tab of the Project window, navigate to Definitions>Components, and locate
the component in question. Double-click it to open its Edit Component dialog box.
4.
On the Simulation Models tab of the Edit Component dialog box, remove the existing wrapper model and select the modified library model.
5.
On the General tab of the Edit Component dialog box, click the Properties button. Select the
Quantities tab and remove any quantities that no longer match the model. Click OK to save
component changes.
6.
Go to the Project tab of the Project window, navigate to Definitions>Components, and rightclick on the modified component. Select Export to library and choose the appropriate library
to update.
[info] [Sim2000] Info - Matlab message <??? Error using ==> sim Error in S-function
'ansoft_reg_logic/S-Function': S-Function 'simplorer70' does not exist. >
In S7, the S-functions function name in the *.mdl file must be simplorer70.
For the *.mdl file to work with Simplorer 8, its S-function name must be modified to
AnsoftSFunction.
[info] [Sim2000] Info - Matlab message <Warning: Unconnected input line found on
'ansoft_reg_logic/Vreg9' (input port: 4). Warning: Unconnected input line found on
'ansoft_reg_logic/Vreg9' (input port: 3). Warning: Unconnected input line found on
'ansoft_reg_logic/Vreg9' (input port: 2). Warning> >> Prepare (2:55:42 PM Oct 17,
2008)
[info] [Sim2000] Info - Matlab message <??? Error using ==> bi_close_system Cannot
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
close the model 'ansoft_reg_logic' because it has been changed. Use the command
'save_system' to first save the model. Error in ==> close_system>i_builtin at 64 builtin('bi_close_system',varargin{:}); Error in => >> Prepare (2:55:42 PM Oct 17, 2008)
Problem: Incorrect connections in S-Function.
Solution: In correct connection in the *.mdl, check and reconnect S-Function.
1.
2.
Select Legacy Simplorer Project (*.ssc) from the Files of type pull-down list.
3.
In the Look in pull-down list, click the location of the project. In the folder list, double-click
folders to find the one that contains the project.
4.
The Text Language panel allows you to choose the Target language into which the projects text strings will be translated. If the target language has no equivalent text for a given
element, you can tell the translation tool either to Ignore elements for which there are no
target language strings; or to Substitute strings from a map file.
The Hierarchy/C-Model Location panel allows you to choose to Flatten a source projects hierarchy, or to Replicate it. It also allows you to specify either UserLib or PersonalLib as the location where any C-models present in the original project will be saved.
The Symbols Type panel allows you to set which symbol type(s) to include in the translation: IEEE only, Traditional only, or Both. When Both is selected, checking Use IEEE
for pin placement instructs Simplorer to use the IEEE symbols for pin locations.
The Symbol Language panel allows you to select the symbol language displayed on the
translated schematic for each symbol type (IEEE, or Traditional).
The Load Map File button allows you to load a .namemap file containing mapping for
models, components, and symbols from S7 identifiers to S8 library elements. For example, a user may have an S7 schematic that uses elements from an ANSYS-provided S7 legacy SMD file. For S8, ANSYS will supply downloadable libraries and also a .namemap
file that provides the mapping from the legacy SMD to the new library elements so that
the users SSH files can be translated properly. Without the .namemap file, users must
translate the S7 SMD files themselves.
The Convert SML Header #defines checkbox (checked by default) enables conversion
of S7 SML header #define statements into S8 design variables. When you click OK, if
there are more than 100 #define statements in the SML header files, a dialog box disWorking with Simplorer Projects3-55
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
plays informing you of this and asking if you wish to continue and convert all of the
#define statements. Clicking Yes continues the translation and converts all of the
#define statements to design variables. Clicking No results in exactly 100 statements
being converted. Unchecking the Convert SML Header #defines checkbox disables conversion of the #define statements.
Legacy Translation Options: Search Path Tab
5.
Binary Search Path sets the path to be used during translation for DLLs that are referenced by C-Models in the legacy schematic. Search paths can be added to - or deleted
from - the list, and the list saved as default for future translations using the Save as default
checkbox.
Dataset Search Path sets the path to be used during translation for MDX or similar data
files that are referenced in the legacy schematic. Search paths can be added to - or deleted
from - the list, and the list saved as default for future translations using the Save as default
checkbox.
Note
2.
Select Legacy Simplorer Schematic (*.ssh) from the Files of type pull-down list.
3.
In the Look in pull-down list, click the location of the schematic. In the folder list, doubleclick folders to find the one that contains the schematic.
4.
The Text Language panel allows you to choose the Target Language into which the
projects text strings will be translated. If the target language has no equivalent text for a
given element, you can tell the translation tool either to Ignore elements for which there
are no target language strings; or to use Substitute strings.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The Model Mapping File, SML Header panel Load Map File button allows you to load
a .namemap file containing mapping for models, components, and symbols from S7 identifiers to S8 library elements. For example, a user may have an S7 schematic that uses elements from an ANSYS-provided S7 legacy SMD file. For S8, ANSYS will supply
downloadable libraries and also a .namemap file that provides the mapping from the legacy SMD to the new library elements so that the users SSH files can be translated properly. Without the .namemap file, users must translate the S7 SMD files themselves.
The Convert SML Header #defines checkbox (checked by default) enables conversion
of S7 SML header #define statements into S8 design variables. When you click OK, if
there are more than 100 #define statements in the SML header files, a dialog box displays informing you of this and asking if you wish to continue and convert all of the
#define statements. Clicking Yes continues the translation and converts all of the
#define statements to design variables. Clicking No results in exactly 100 statements
being converted. Unchecking the Convert SML Header #defines checkbox disables conversion of the #define statements.
The Symbols Type panel allows you to set which symbol type(s) to include in the translation: IEEE only, Traditional only, or Both. When Both is selected, checking Use IEEE
for pin placement instructs Simplorer to use the IEEE symbols for pin locations.
The Symbol Language panel allows you to select the symbol language displayed on the
translated schematic for each symbol type (IEEE or Traditional).
Binary Search Path sets the path to be used during translation for DLLs that are referenced by C-Models in the legacy schematic. Search paths can be added to - or deleted
from - the list, and the list saved as default for future translations using the Save as default
checkbox.
Dataset Search Path sets the path to be used during translation for MDX or similar data
files that are referenced in the legacy schematic. Search paths can be added to - or deleted
from - the list, and the list saved as default for future translations using the Save as default
checkbox.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
5.
Note
If material properties are not provided in the ANF file, the required material properties
are taken from the Simplorer material library database. These properties may be different
from those in the tool used to generate the ANF file.
When geometry is imported from ANF, ports are automatically added, and a subdirectory for the
ANF-based project is configured in the Project directory. When ANF-based projects are saved, the
Save As dialog always opens, regardless of where the ANF file originated.
1.
To open an ANF-based project, click File>Open on the Designer top menu bar. The File
Open window opens.
2.
Use the Look in field to locate the directory containing the file with the project you want to
open. Use the Files of type field to display the files with the ANF format.
3.
Click on the ANF format file in the window to select it, or type its name into the File name
field.
4.
Click Open. Simplorer evaluates the information in the ANF file and opens a window for you
to select the Simplorer product for importing the ANF design:
5.
6.
The Current ANF (Components) Map panel lists the components from the ANF file and any
associated models. You can enter the names of a model manually in the Model Name field.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The ModelName property for the component in Simplorer will be set to the entry in the Model
Name field in the mapping, and the Netlist property will begin with that name instead of the
component name.
7.
Update External Component Map saves any mappings you enter manually to a text file.
Click Save Map File to open a File Open window. Use the window to browse to the directory
where the map file is to reside, then enter the name of the file. The map file is saved with a
.namemap extension. The same mapping file should be used for both component and property
mappings. After the mapping file has been created, Update External Component Map saves
any mappings you enter manually.
8.
The Current ANF (Property) Map panel lists the mapping of properties in the ANF file to
the properties that will be used when the file is imported. You can enter the mapped name of a
property manually in the Model Name field. The name for the property in Simplorer will be
set to the entry in the netlist.
9.
Update External Property Map saves any mappings you enter manually to a text file. Click
Save Map File to open a File Open window. Use the window to browse to the directory where
the map file is to reside, then enter the name of the file. The map file is saved with a .mapping
extension. After the mapping file has been created, Update External Component Map saves
any mappings you enter manually.
10. Load Map File opens a File Open window. Use the window to browse to the directory where
the map file resides, then select or enter the name of the file. The map file can contain
component and/or property mappings, and must have a .mapping extension. The same
mapping file should be used for both component and property mappings.
11. The External Component Map panel lists the components that have been read from an
external mapping file. The display changes each time the external file is updated from the
dialog.
12. The External Property Map panel lists the properties that have been read in from an external
mapping file. The display changes each time the external file is updated from the dialog.
13. The Distributed Components panel allows you to specify that imported interconnects will be
converted to distributed components if they fall within a minimum coupling distance (specify
distance), and to select the nets that will be thus converted.
14. Click Close. The Schematic Editor shows the design, and the Projects window shows the
imported project.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Closing Projects
To close the current Simplorer project without exiting Simplorer, do one of the following:
Select File>Close.
Right-click on the project icon in the Project Manager window and select Close from the
shortcut menu.
Note
If there are unsaved changes to the project signified by the presence of an asterisk at
the end of the project name in the Project Manager window you will be prompted to
save the changes before closing the project. Refer to Saving Projects for details.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Saving Projects
Use the File>Save As command to do the following:
If the active Simplorer project is part of an ANSYS Workbench Project, the Save
and Save As commands are not present in the File menu.
When attempting to save a project, if there are unsaved changes in an open editor
other than the schematic editor (the symbol editor, for example), a dialog appears
asking if you want to save changes to the work in the open editor. Selecting Yes (or
Yes to All if there are unsaved changes in multiple editors) saves changes to the
work in the open editor(s), and the project is then saved. Selecting No (or No to All)
aborts the save project operation.
Use the File>Save as Technology File command to save the selected design in *.asty format.
A prompt appears when you attempt to save a previously-versioned file. If you agree to the prompt,
the file is upgraded to the Simplorer version in which you are running the software. In this case the
file may no longer be compatible with previous versions of Simplorer. If you do not agree to the
prompt, the file is not saved, so the file retains the previous compatibility.
Note
Use the File>Save Workbench Project command to save the active Simplorer project to its associated ANSYS Workbench Project location. Refer to the ANSYS Workbench documentation for
information on working with Workbench Projects.
Related Topics
Saving a New Project
Saving the Active Project
Saving a Copy of a Project
Deleting Projects
2.
Use the file browser to find the directory where you want to save the file.
3.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
4.
5.
Warning
Be sure to save projects periodically. Saving frequently helps prevent the loss
of your work if a problem occurs.
Although Simplorer has an auto-save feature, it may not automatically save
frequently enough for your needs.
Related Topics
Saving the Active Project
Saving a Copy of a Project
Be sure to save projects periodically. Saving frequently helps prevent the loss of
your work if a problem occurs.
Although Simplorer has an auto-save feature, it may not automatically save
frequently enough for your needs.
Related Topics
Saving a New Project
Saving a Copy of a Project
2.
Use the file browser to find the directory where you want to save the file.
3.
4.
5.
6.
Leave the field selected to display the new file name, and then close the current file.
Cancel the Switch to saved selection to save the file under the new name without changing which file is displayed.
Click OK.
Simplorer saves the project with the new name or file extension to the location you specified.
Related Topics
Saving a New Project
3-62 Working with Simplorer Projects
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Autosave always increments forward; therefore, even when you undo a command,
Simplorer counts it as an edit.
Once the specified number of edits is carried out, a model-only save will occur. This means that
Simplorer does not save solutions data or clear any undo/redo history.
When Simplorer autosaves, an .auto extension is appended to the original project file name. For
example, Project1.asmp will automatically be saved as Project1.asmp.auto.
Warning
If both the original and the autosave file are of nonzero length, the Crash Recovery dialog is
displayed. You can choose to re-open the original project file (Projectn.asmp), in an effort to
recover the solution data, or open the autosave file.
If the original file has nonzero length and the autosave file has zero length, Simplorer ignores
the autosave file and attempts to open the original file.
If the original file has zero length and the autosave file has nonzero length, Simplorer displays
a message and attempts to open the autosave file.
If both the original file and the autosave file have nonzero length, Simplorer displays an error
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
message.
Warning
When you recover a projects autosave file you cannot recover any solutions data.
Recovering an autosave file means you will lose any solutions data that existed in
the original project file.
If your workstation or Simplorer has unexpectedly crashed, launch Simplorer from your desktop.
2.
On the File menu, click Open, and then select the original Project_Name.asmp project file for
which you want to recover its Project_Name.asmp.auto auto-save file.
The Crash Recovery window appears, giving you the option to open the original project file
or the autosave file.
3.
Select Open project using AUTOSAVE file to recover project data in the auto-save file, and
then click OK. Simplorer replaces the original project file with the data in the auto-save file.
Simplorer 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 autosave file, you cannot recover the original
project file that has been overwritten.
Recovering data in an auto-save file is not reversible.
Related Topics
Saving Project Data Automatically
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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 .asmpz 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 File Types
Internally, project archive files are .zip files, and are compatible with any program that can read .zip
files (e.g. WinZip, 7Zip). The naming convention is that project archive files will have an extension
that is unique for each product. The extension is generated by adding a 'z' to the project file extension (e.g. .hfssz, .asmpz). This extension will be displayed as the default when saving and restoring
archive files. Note that .zip files are also included as a possible filter in file selection dialogs.
File Relocation Considerations
In a project to be archived, external files can be located anywhere on the user's system. One of the
goals is for the restored project to be relatively self contained, and NOT to allow the restoration of
an archived project to haphazardly write files anywhere on the restoring user's system.
To achieve this, it is sometimes necessary to change the location of files in the archived project
such that the external files are now located in the project directory. At archive time, any external
files not located in the project directory are relocated to the restored_files subdirectory of the project directory in the archived project. Any external files located in the user library or system library
will be relocated to the personal library directory. Note that the project file that is written into the
archive will be updated to refer to the files at the new locations, and the original project file will
remain unaltered.
Archive Preview
The Archive command includes a preview feature that lets you review the contents of a planned
archive.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Click File>Archive...
The Archive Options dialog opens.
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 checkbox will cause all external files to be included in the
archive. The External Files checkbox refers to any existing files associated with the project,
such as linked files, or files added through the Project>Insert Doumentation File command
or Project>Data Set command.
Results/solution files: selecting this checkbox will cause the entire results directory to be
included in the archive. This may greatly increase the size of the archive file.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Checking 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, .asmpz or .zip, and specify the archive location and name. Click OK to create the
archive.
Related Topics
Restoring Archives
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Restoring Archives
To restore an existing archive created with File>Archive:
1.
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.
Working with Simplorer Projects3-69
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Related Topics
Archiving Projects
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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 yous specify a User ID, Password, and Server address. You can then browse for and select the
files needed.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Renaming a Project
To rename an existing, active project:
1.
2.
3.
Select Rename.
This activates the text field for the project name.
4.
Deleting Projects
To delete a project:
1.
2.
Click either Edit>Delete, or right click to display the short-cut menu and select Delete.
A dialog box displays asking you to confirm the deletion.
3.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
1.
Typically, a component definition has a symbol definition associated with it. Some
components, such as VHDL-AMS components, also can have model and package
definitions associated with them. Because of these dependencies, you cannot remove a
symbol, model, or package definition until you have first removed the component
definition that uses them. Thus you may need to perform the following procedure several
times to completely remove a component definition and its associated definitions.
If you have removed every usage instance of a definition from a project, you can remove its
Definitions entry by clicking Remove Unused Definitions on the Project menu.
The Unused Definitions dialog box opens.
2.
Use the dialog box to select definitions to delete. You can select individual definitions using
the checkboxes next to each, or you can click Select All to choose all definitions in the list.
3.
Click Apply to remove the selected items while remaining in the dialog box, allowing you
to continue removing definitions.
Click OK to remove the selected items and exit the dialog box.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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 can then be used in piecewise linear intrinsic functions or as characteristic data for some component parameters.
Related Topics
Datasets Dialog Box
Adding Datasets
Importing Datasets
Editing Datasets
Cloning Datasets
Exporting Datasets
Removing Datasets
Using SheetScan
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Related Topics
Adding Datasets
Importing Datasets
Editing Datasets
Cloning Datasets
Exporting Datasets
Removing Datasets
Using SheetScan
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Adding Datasets
You can add a dataset to a project in any of three ways:
Related Topics
Importing Datasets
Editing Datasets
Cloning Datasets
2.
Click Add.
A default name for the dataset appears in the Name text box. Rename the dataset if desired.
4.
To enter data manually, type the x- and y-coordinates for the first data point in the first row of
the Coordinates panel. Type the x- and y-coordinates for the remaining data points in the dataset using the same method.
Note
After you type a points coordinates and move to the next row, the point is added to
the preview plot, adjusting the plot view with each newly entered point.
Buttons beneath the coordinates table allow you to Add Row Above and Add Row
Below the currently selected row, to Delete Rows, and to Append Rows to the end of
the table.
The x-coordinate values for successive data points must increase within ten
significant digits.
You can also use the Import Dataset button to import data coordinates. Doing so
will overwrite any existing values in the Coordinates panel.
5.
Optionally, click Swap X-Y Data to exchange all x- and y-coordinate values.
6.
Optionally, click Export Dataset to open a file browser in which you can export the dataset to
a tab-delimited file.
7.
When you are finished entering the data point coordinates, click OK.
The dataset plot is extrapolated into an expression that can be used in parametric analyses or
assigned to a property value.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Related Topics
Importing Datasets
Editing Datasets
Cloning Datasets
Exporting Datasets
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.
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.
2.
3.
In the file browser window that appears, choose to import data from the following file types:
.mdx, .mda
.mdb
Microsoft Access
.xls
.txt
text file
.csv
Comma-separated value
.out
.cfg
.dat
TEK Oscilloscope
.tab
a.
If you select a file type other than .xls, .txt or .csv the data is imported immediately into
Working with Simplorer Projects3-77
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
Selecting a .xls file containing multiple sheets opens a Table Properties dialog where you
can choose the desired sheet from a drop-down list. Otherwise, selecting a .xls file imports
the data immediately into the Add Dataset dialog box.
c.
Only the first two columns of data are imported, the left-most column containing the
X-coordinate values. The x-coordinate values for successive data points must
increase within ten significant digits. Non-numeric entries are assigned a value of
zero.
The first row of data is assumed to contain column headings and is ignored.
Selecting a .txt 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.
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.
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 current name for the dataset in the Name text box.
4.
Edit values for existing data points, adding new datapoints as desired.
Use the buttons beneath the coordinates table to add rows above or below the currently
selected row, to delete rows, and to append rows to the end of the table.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Optionally, click Swap X-Y Data to exchange all x- and y-coordinate values.
Note
The x-coordinate values for successive data points must increase within ten significant
digits.
When you are finished editing, click OK to save the changes and return to the Datasets dialog
box.
6.
Related Topics
Adding Datasets
Importing Datasets
Cloning Datasets
Exporting Datasets
Removing Datasets
Using SheetScan
Cloning Datasets
Cloning a dataset generates a copy of an existing dataset. The clone can then be modified as
needed.
1.
2.
Click the dataset name you want to clone, and then click Clone.
The Clone Dataset dialog box appears.
3.
Related Topics
Adding Datasets
Importing Datasets
Editing Datasets
Exporting Datasets
Removing Datasets
Using SheetScan
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Exporting Datasets
1.
2.
3.
4.
Name the file (exported datasets are tab-delimited and are given a .tab extension), and click
Save to complete the export operation.
Note
You can also export a dataset in the Add Dataset and Edit Dataset windows.
Related Topics
Adding Datasets
Importing Datasets
Editing Datasets
Cloning Datasets
Removing Datasets
Using SheetScan
Removing Datasets
1.
2.
Click the dataset name you want to remove, and then click Remove.
3.
Related Topics
Adding Datasets
Importing Datasets
Editing Datasets
Cloning Datasets
Exporting Datasets
Using SheetScan
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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, or .pdf.
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 Simplorer format, and the extracted data exported to a Simplorer dataset or saved to a file.
The process for creating a dataset using SheetScan involves four basic operations:
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.
The Standard toolbar includes access to basic Windows functions such as file Open and Save,
Cut, Copy, Paste, Print, and Help.
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 curves coordinate system, and to select, append, delete, and insert points on the
active curve
The Zoom toolbar provides tools for scaling the current view, zooming in and out, resetting the
Working with Simplorer Projects3-81
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
zoom to 100 percent, and toggling the display of the curves grid on and off.
SheetScan Settings
Default settings are made by choosing Options>Settings. The Settings dialog box contains three
tabs:
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.
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.
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 for individual curves (see Defining a
Characteristic Curve in SheetScan).
Related Topics
Loading a Datasheet Picture into SheetScan
Defining a SheetScan Coordinate System
Defining a Characteristic Curve in SheetScan
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Browse directly to the datasheet picture file by choosing Picture>Load picture to open a
file browser window.
2.
When you have located the desired file, click OK to load the image into the SheetScan
editor. Supported file types include: .bmp, .dib, .jpg, .gif, .tif, .tga, .pcx, .pdf, .htm, and
.html.
2.
3.
Resize the HtmlViewer window and adjust its scrollbars until the desired portion of the
datasheet is in view
4.
Note
Related Topics
Loading a Datasheet Picture into SheetScan
Defining a SheetScan Coordinate System
Defining a Characteristic Curve in SheetScan
You cannot undo this action. If you delete a picture from the SheetScan editor, you
must reload it from the source file or Internet web page.
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- and Y-Values for this point. Typically, these values will correspond to the values
Working with Simplorer Projects3-83
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Select the desired scaling (linear, logarithmic, or decibel) for both the X and Y axes.
6.
7.
Note
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.
You can hide the grid by selecting Grid on the View menu, or by clicking the grid
icon
on the Curve toolbar.
Choose Curve>New.
The Curve Settings dialog box opens.
2.
3.
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.
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.
b.
Right-click in the editor window and choose Select Curve from the context menu.
Click the desired curve name to highlight it, then click OK to select the curve.
Note
If the Curve Values window is open, you can also click the tab of the desired curve to
select it.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
1.
2.
Change the properties of the curve as desired. Refer to SheetScan Settings for a detailed explanation of the settings you can make on the Axis and Representation tabs.
3.
4.
Repeat steps 1 through 3 for each additional characteristic curve you wish to change.
Select points click on a point to select it. Ctrl+click selects multiple points.
Append points click to add data points to the end of a curve.
Delete points click a data point to remove it from the curve.
Insert points click to insert new data points between existing data points.
2.
Select Curve>Delete.
Warning
You cannot undo this action. If you delete a curve and its data points from the
SheetScan editor, you must reconstruct it manually.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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.
2.
In the file Open dialog box, select the desired data file and click OK.
A Curve Settings dialog box opens.
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.
2.
In the Save dialog 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.
3.
Choose Equidistant if you want to set the Start and Stop X-Channel values and a Sample
Rate or Number of samples for the exported dataset(s),
4.
For Curves, choose Multidimensional Table if you wish to enter a Y-Value for each curve.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Data output using the Multidimensional Table option can only be exported to a file.
5.
Choose Dataset to export curve data directly to the projects dataset file. Or, choose File to
export curve data to any of the file formats listed above.
Related Topics
Adding Datasets
Importing Datasets
Editing Datasets
Cloning Datasets
Exporting Datasets
Removing Datasets
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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.
Note
1.
2.
You cannot undo an analysis that youve performed on a model using the
Simplorer Circuit>Analyze command.
To undo the last action you performed on the active project, such as inserting a design or
adding project variables, click the project icon.
To undo the last action you performed on the active design, such as drawing an object or
deleting a report, click the design icon.
On the Edit menu, click Undo, or click the Undo button on the toolbar.
The most recent action is now undone.
Note
When you save a project, Simplorer always clears the entire undo/redo history for the
project and its designs.
Related Topics
Redoing Commands
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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 postprocessing.
1.
2.
To redo the last action you canceled on the active project, such as inserting a design or
adding project variables, click the project icon.
To redo the last action you canceled on the active design, such as drawing an object or
deleting a field overlay plot, click the design icon.
On the Edit menu, click Redo, or click the Redo button on the toolbar.
The most recent canceled action is now reapplied.
Note
When you save a project, Simplorer always clears the entire undo/redo history for the
project and its designs.
Related Topics
Undoing Commands
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
Note
File types other than documents including executable files also can be added to the
project tree using this command.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
To import SML, VHDL (encrypted and unencrypted), SPICE, Modelica, and C models into a Simplorer project do the following:
1.
Select Tools>Import Simulation Models. A file selection dialog appears in which you can
browse to the file containing the model(s) you want to import.
2.
When you have located the desired model file, click OK.
Note
Note
The location of imported CModel dll files is set in the Simplorer Options dialog
box.
When importing SPICE models that reference external files, Simplorer checks for
the existence of the referenced files first in the current path, then in the syslib,
userlib, and personallib directories. If the files cannot be located, the message
manager prompts the user to copy the files to either the userlib or personallib
directory. Failure to do this will result in compilation errors when simulations that
use the model are attempted.
a.
When importing C-Models, if the selected dll file already exists in the personal or user
libraries, a dialog box appears asking if you want to replace the existing dll with the one
you are importing. Click No to terminate the import process, or Yes to continue.
b.
When importing C-Models, if one or more of the imported models contains an illegal
property name, a dialog box displays advising you of this. These problems must be manually corrected after import. The Message Manager window also displays messages identifying the problem(s), and provides suggested ways to correct them after import.
Click No to terminate the import process, or Yes to continue.
3.
The Update Project command under the SML, C-Model, SPICE, Modelica, and
VHDL-AMS Model Editor menus also opens the Import Components dialog box.
The Tools>Edit External Model Information command also opens the Import
Components dialog box displaying only the Models tab.
The Models tab lists the names of models that can be imported, provides a checkbox to update
Working with Simplorer Projects3-91
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
the project definitions, and a checkbox that allows existing models of the same names to be
overridden. The Update Project Definitions box is checked (selected) by default. A table lists
the names of models that will be imported. If a model name already exists, the Override
checkbox (checked by default) allows you to override the current model definition.
4.
The Component Import tab lists the models available for import by name, provides a checkbox for selecting whether or not to create a component from the model, a button for choosing a
symbol for the new component from the symbol library, a checkbox that allows you to choose
whether or not to show pin descriptions, and a pin count for the component. Initially, the pin
count reflects only the number of conservative pins in each model. The pin count changes to
reflect choices made on the Non-Conservative Pins tab. On the Component Import tab:
a.
Note
Ensure that the Create Component box next to each model for which you want to create a
component is checked (selected). By default, these checkboxes should already be selected.
The Override checkbox enables the imported component to override an existing component of the same name.
If you choose not to create a component, the source files will simply be compiled no
component is created.
b.
Ensure that the Show Pin Description box is checked (selected) for each model for which
you want the pin descriptions to be visible. By default, these checkboxes should already
be selected.
c.
Choose either Match number of pins (default) or Match pin names to filter the list of
symbols from which you can select when you click the button in the Symbol field.
Match number of pins filters the list of symbols to those having the same number of pins
shown in the Pins field. Match pin names filters the list of symbols to those whose pin
names match the imported models pin names.
5.
On the SDB tab, select the quantities and signals you want to set as default outputs for each
created component.
6.
On the Non-Conservative Pins tab, select the non-conservative quantities and signals for
which you want pins included on the new component symbol. The number of component pins
on the Component Import tab reflects your choices.
7.
The Un-Compiled tab is present only if one or more of the component(s) you are importing
cannot be compiled. Each un-compiled component is listed along with an Edit checkbox which
is checked by default. Checked entries will be opened in the appropriate model editor when
you OK the Import Components dialog box. Un-compiled models will not be imported, nor
will components be created for them.
Note
8.
The Un-Compiled tab will also display for un-compiled components when Editing an
External Model via the Tools>Edit External Model Information command.
On the Component Import tab, click the Symbol button to open the symbol Select Definition
dialog box where you can browse and select a graphic symbol for the new component from the
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
filtered list.
Note
9.
You can modify the symbol after import using the Symbol Editor.
b.
The new component(s) and model(s) are added to the Components and Models folders within
the current projects Definitions folder in the Project Manager.
The new model is also added to the list of Project Components on the Project Manager
Components tab where it can be placed onto a schematic for simulation.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
Enter the name of the VHDL-AMS file that will contain the exported code of the top-level entity. Click
on
to browse to a new location if desired. The exported file will be given the .vhd extension.
3.
A suggested Name of Top Level Entity is shown. The name in this field specifies the top-level entity
name in the exported VHDL-AMS netlist. The top-level entity instantiates the components on the sheet
and provides the interconnection information between the components. The suggested name can be modified if necessary, but the name should conform to VHDL-AMS identifier syntax requirements (see
VHDL-AMS Language Fundamentals for more details). If the name does not conform to the VHDLAMS identifier syntax requirements, the name will be highlighted for correction.
In addition to the top-level entity, you can also export the VHDL-AMS code of the individual
library components that are used in the sheet.
4.
To export individual components, choose either of the following options from the Component
panel:
Export all components exports the source code of all VHDL-AMS models on the schematic.
Export only user-defined components exports the source code of only those models
that are not available in the pre-installed Simplorer libraries.
When either of these options is chosen, additional options in the Export Components to panel
3-94 Working with Simplorer Projects
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
are enabled. These options allow the user to specify the target location of the source code
belonging to the individual components on the sheet.
Same file as top level entity generates one VHDL-AMS file that contains the source
code of all the models as well as the description of the top-level entity.
Single file separate from top level entity generates the source code of the models in a
file called file_name_Components.vhd where file_name refers to the name of the file provided earlier.
Individual files separate from top level entity creates several VHDL-AMS files separate from the file containing the top-level netlist. Each of these files contains the VHDLAMS description of a single model used in the sheet. The files name is derived from the
name of the entity that the file contains.
A sheet can contain models that are not developed in VHDL-AMS, but are instead developed as
internal/SML/C models. These models can also be exported to a netlist as foreign models with a
VHDL-AMS wrapper.
Note
5.
Note
6.
If the sheet contains non-VHDL-AMS models and this check box is not selected,
then the export operation will not be completed.
For pure VHDL-AMS compatibility, do not select this option.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
To create a model, component, and symbol from the current schematic, select Create Model and
Component from Current Schematic on the Simplorer Circuit menu.
Note
The Create model and component from schematic dialog box allows you to specify a
New component name. A default name based on the current design name is provided
automatically. If you choose to enter another name, it must conform to Simplorers naming conventions, and also be unique for the current project. Message reminders display if
the naming criteria are not met.
If you check Export to library, when you OK the dialog to create the model, component,
and symbol, the Export to user library dialog box displays in which you specify the .aclb
file where the new component will be saved. When you Save the library, the Export
Hierarchy dialog displays listing the component and dependent object definitions for the
exported component (symbol and model). Refer to Exporting Hierarchical Components
for detailed information on this dialog.) OK this dialog to save the component, model, and
symbol in the chosen libraries.
The model, component, and symbol will be added to the current project regardless of
whether Export to library is checked or not.
Checking Add symbol pins for quantities (nonconservative) enables the Make nonconservative pins visible by default checkbox and causes pins to be added to the symbol for
nonconservative interface ports.
Checking Make nonconservative pins visible by default causes the pins added above to
be visible. Leaving the box unchecked will make them hidden initially.
Printing
The printing commands enable you to print the contents of the active window in the design area.
Click File>Page Setup to set up formatting to print the active window in the Design Area. The
setup dialog box includes formatting options such as paper size, orientation, print margins,
borders, and labels that are specific to the editor (Schematic, Netlist, etc.) in the active window. The example below shows the Page Setup dialog box for all Simplorer text editors
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
See Printing a Schematic for additional information on Page Setup for the Schematic Editor.
When using Sheetscan, click File>Printer Setup to open a standard Windows Print Setup
dialog box set up the printer to print the active SheetScan document.
Click File>Print Preview to display a preview of the print job.
Click File>Print to print the active window in the Design Area. The dialog box may include
formatting options such as borders and labels that are specific to the editor (Schematic, Symbol, Netlist, etc.) in the active window.
See Printing a Schematic for additional information on printing from the Schematic Editor.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
3.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Event Callbacks
Operations you perform in Simplorer are called events and can include operations such as placing a component or running a simulation. Event Callbacks allow you to define custom JavaScript
and VBScript routines that will run automatically after a triggering event in Simplorer is detected.
After configuring callback scripts, you can save the script settings to the registry and then:
Select Project > Event Callbacks to open the Event Callbacks dialog.
The Description column lists the type of event that will trigger the invocation of the corresponding script(s) listed in the Callback column. When you define an Event Callback script,
you specify one or more scripts that will be run after a particular Simplorer event is detected.
2.
If no script name appears in the Callback column, click the appropriate Set script button to
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
define a new script. The Choose Scripts dialog opens and is unpopulated.
The Choose Scripts dialog options allow you to control the following:
Add Scripts opens the Library Editor Script Browser in which you can select
scripts you wish to add to the list of available callback scripts.
Clear Selected clears the selected scripts from the control grid at left.
Clear All clears all scripts from the control grid at left.
OK closes the dialog and implements your changes. The names of the callback
scripts in the list become the button name in the Callback column in the Callback
Events dialog.
Cancel closes the dialog and cancels your changes.
When the Scripts column is populated, you can reorder the listed scripts by dragging them up and down in the grid. You may also select multiple scripts in the grid
and then Add Scripts or Clear Selected.
3.
To modify the list of scripts to be applied to a Callback Event, click the desired Callback button to open the Choose Scripts dialog in which you can make the desired changes.
4.
After defining callback script(s), the Default Callbacks section at the bottom left of the Event
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
When you have finished defining one or more callback scripts, click OK in the Event Callbacks dialog to close the window and implement your changes. Or click Cancel to cancel your
changes.
6.
The callback script(s) you have defined will now be invoked whenever Simplorer detects the
occurrence of the associated event(s). For more information refer to Event Callback Scripting.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
To edit an existing material, display its properties in the View/Edit Material dialog box by
doing either of the following:
a.
Open the Edit Libraries dialog box, select the Materials tab, search for and select the
material you want to edit, and then do either of the following:
b.
In the Definitions/Materials subfolder in the Project window tree for the project that
contains the material you want to edit, locate the icon for the material you want to edit,
and then do either of the following:
Double-click it.
Right-click it, and then click View/Edit Materials.
2.
3.
When finished editing materials, click OK to close the Edit Libraries dialog box.
Open the Edit Libraries dialog box, select the Materials tab, and then click Add Material.
The View/Edit Material dialog box opens.
b.
Open the Edit Libraries dialog box, select the Materials tab, locate and select an existing
material definition on which you would like to base your new definition, and click Clone
Material(s).
The selected definition is copied under a new name, and the View/Edit Material dialog
box opens.
2.
Set the values for the new material properties in the View/Edit Material Dialog Box.
3.
3-103
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The View/Edit Material for panel allows you to select whether the material properties are
being edited for the active design, a particular product, or for all products. The selection chosen controls the set of properties that are displayed in the material properties list.
Selecting All Products also enables the Thermal Modifier checkbox.
To specify or change the material name, click in the Material Name box, and then type the
desired name.
Click Reset to restore any property values changed during an editing session to the values
present at the beginning of the session.
Click Cancel to close this dialog box without committing changes made in it, if any.
Click OK to commit changes made in this dialog box and close it.
Note
If you would like the changes you have made in a material to be available for use in other
projects, you must export the material to a library as described in the Edit Materials
Libraries dialog box topic.
Name Displays the property name. Property names are not editable.
Type Displays and sets the property type (Simple [the default] or Anisotropic). To change a
properties Type setting, click in the Type cell and select the desired type. Some property types
are not editable.
Value Displays and sets the property value. To change a property value, click the value you
want to change, and then type a value or parameter name.
Units Displays and, where applicable, sets the unit that applies to the Value entry. (For
example, the unit of magnetic saturation can be set to Gauss, uGauss, Tesla, or uTesla.) To
change a unit, click it, and then select the desired unit.
Thermal Modifier Optional field enabled by checking the Thermal Modifier checkbox.
Displays and sets a thermal modifier for the associated material property in effect making the
property temperature-dependent. To set or change a thermal modifier, click the value you want
to change and choose either None or Edit.
Choosing Edit opens the Specify Thermal Quadratic Parameters dialog box in which you
can modify the parameters that determine the thermal modifier value.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Basic Coefficient Set tab Used to set a reference temperature and unit of measure, and the
values of the coefficients of the first- and second-order terms of the quadratic formula that controls the thermal modifier value.
Advanced Coefficient Set tab Here you can set the upper and lower temperature limits
within which the quadratic formula is valid. You can also manually override the (default) automatic calculation of thermal modifier values to be used for temperatures outside of the upper
and lower temperature limits.
Material Properties
The following are the materiel properties that can be displayed and modified. Which are displayed
depends on the selection made in the View/Edit for panel.
Note
Material Name Sets the material name. To specify or change the name, click in the box, and
then type the desired name.
Relative Permittivity Sets the material relative permittivity. To specify or change the value,
click in the box, and then type the desired value.
Bulk Conductivity Sets the material bulk conductivity. To specify or change the value, click
in the box, and then type the desired value.
Dielectric Loss Tangent Sets the material dielectric loss tangent. To specify or change the
value, click in the box, and then type the desired value.
Magnetic Loss Tangent Sets the material magnetic loss tangent. To specify or change the
value, click in the box, and then type the desired value.
Electric Coercivity Sets the material electric coercivity. As this is a vector quantity, settings
are provided for the vector magnitude, and for the X, Y, and Z components of the vector. To
specify or change a value, click in the box, and then type the desired value.
Magnetic Coercivity Sets the material magnetic coercivity. As this is a vector quantity, settings are provided for the vector magnitude and units, and for the X, Y, and Z components of
the vector. To specify or change a value, click in the box, and then type the desired value. To
change the units, click in the box and select the desired unit from the list.
Thermal Conductivity Sets the material thermal conductivity. To specify or change the
value, click in the box, and then type the desired value.
Magnetic Saturation Sets the material magnetic saturation. To specify or change the value,
click in the box, and then type the desired value. To change the units, click in the box and
select the desired unit from the list.
Lande G Factor Sets the material Lande G factor. To specify or change the value, click in
the box, and then type the desired value.
Delta H Sets the material delta H and associated measured frequency. To specify or change a
value, click in the box, and then type the desired value. To change units, click in the box and
select the desired unit from the list.
3-105
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Core Loss Type Sets the core loss type. To specify or change the value, click in the box and
select the desired value from the list.
Mass Density Sets the mass density of the material. To specify or change a value, click in
the box, and then type the desired value.
Composition Sets the composition of the material. To specify or change the value, click in
the box and select the desired value from the list.
Specific Heat Sets the material specific heat. To specify or change a value, click in the box,
and then type the desired value.
Youngs Modulus Sets the Youngs modulus value for the material. To specify or change a
value, click in the box, and then type the desired value.
Poissons Ratio Sets the value of Poissons ratio for the material. To specify or change a
value, click in the box, and then type the desired value.
Thermal Expansion Coefficient Sets the material thermal expansion coefficient. To specify
or change a value, click in the box, and then type the desired value.
Validate Now Click this button to validate the current material property values. If validation succeeds, a green check mark appears below the Validate Now button. If validation fails, a red X
appears instead, and an error message informs you of which parameter value(s) are invalid, and
why.
3-106
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
4
Working with Libraries
This section describes how to configure and manage ANSYS Simplorer external library
resources. Use these topics to create and edit elements within the libraries, and to set up circuits
within Simplorer projects to access particular libraries.
Introduction to Components and Component Libraries
Managing Library Contents
Using the Component Editor
Using the Symbol Editor
Using the Script Editor
Using the Password Manager
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
A calculated model, such as a resistor, source, transmission line, or transistor, for which a
mathematical model exists in a Simplorer simulation engine
An interpretive user-defined model (IUDM)
A data container, such as a device model data component or an N-port black box component
that contains network information in spreadsheet form
A data input channel that introduces external data into an analysis, such as an N-port black box
component that refers to network data in an external file, or a SUBCKT component that refers
to a subcircuit netlist fragment in an external file
A component definition also references separately-stored data for its schematic symbol. These
component dependencies are stored as library objects in their own additional files.
See Using the Component Editor for information on how to create and modify library components.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Components
The Component Editor supports the viewing, modification, saving, and exporting of information
for component elements and graphical primitives. After modifying a component, the information
can then be saved, used to render a component, or exported. See Using the Component Editor for
information on how to create and modify components.
Models
Simplorer editors support the viewing, modification, saving, and exporting of information for C
Models, SML models, SPICE models, Modelica models, and VHDL-AMS models. See Using the
C-Model Editor, Using the VHDL Model Editor, Using the SPICE Model Editor, Using the
Modelica Model Editor, or Using the SML Model Editor for information on how to create and
modify these models.
Packages
Packages are collections of re-usable declarations and definitions such as types, constants, functions, procedures, and natures. Standardized packages from IEEE (such as math_real and textio)
and proposed packages from IEEE (such as electrical_systems and thermal_systems) are available in the Ieee (Ieee.apkg) and Std (Std.apkg) libraries. See Using the Package Editor for information on how to create and modify packages.
Symbols
A symbol is graphical representation of a component in a Simplorer Circuit schematic. Symbol definitions are stored in library files with the extension .aslb. See Using the Symbol Editor for information on how to create and modify symbols.
Simplorer Netlist
A Simplorer netlist is an SML textual representation of a design that describes the designs model
instances, connections, ports, and subdesigns, as well as instructions for data recording and analysis
type information. Each component instance in a schematic provides an entry for the netlist based on
the model or netlist line (using SML syntax and netlist string property expansion rules) chosen for
that particular instance. The Simplorer UI creates a netlist from the schematic design, prepares a
binary version of the netlist (SMT), and then provides this binary file to the simulator to perform
the simulation.
Library Concepts
In Simplorer, library component definitions are intended to be accessed once per component, when
you place the first instance of a component onto a schematic. Once a component is placed, the definition for the component transfers from the library to the project file.
Editing a component definition and updating instances is then controlled from the project definition, which is listed in the Components folder in the project tree.
In other words, you do not edit component definitions in the library, but in the project. If you want
your edits to be reflected in the library definition, for use in another design, you must export the
edited components to the library.
Working with Libraries 4-3
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Related Topics
Library Directories
Specifying the Location of Library Files
Component and Library Search Precedence
Adding Libraries to the Search Path
Updating Project Definitions from Library Definitions
Model and Library Synchronization
Removing Definitions from a Project
The VHDL-AMS work Library in Simplorer
Library Directories
The stock library files that ship with Simplorer are stored under the \syslib directory. These libraries are intended to be read-only and cannot be modified.
In addition to the system libraries, Simplorer recognizes two user-configurable library structures,
called the User Library and the Personal Library. These are used to add foundry support, user
defined models, and any custom or proprietary sets of components or simulation models. Customarily, userlib is a network repository for proprietary or corporate definitions available to all seats in
an enterprise. PersonalLib contains project and circuit-specific libraries as needed by individual
designs.
A root library directory is set up at installation. If none is specified, the default is the root Simplorer
directory.
The work library is identical to the project library for all models that were imported from a
text file or created manually in the VHDL-AMS model editor.
The work library is xxx for all models that were loaded from library xxx.
For example, if a model x1 that was loaded from library L1 loads two models: work.x2 and
L2.x3; and model x3 from library L2 also loads a model work.x2, then x2 referred in L1.x1
would be loaded from library L1, but x2 referred in L2.x3 would be loaded from library L2.
If a model refers to other models using work and this set of models will be exported to different libraries, then work should be changed to specific library names to ensure that the referenced models are found.
All models referred to using work must be exported to the same library.
Related Topics
About the VHDL-AMS working Library in Simplorer
VHDL-AMS Model Editor
VHDL-AMS Models in Simplorer
4-4 Working with Libraries
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
In the Directories group in the Project Options tab, type the new folder location in the
Library Directory box, or use the browse button to specify it.
3.
Click OK.
To return the library directory specification to its default value, click Reset Library Directory.
The personal library (PersonalLib) folder is located at <Project Directory>\PersonalLib, where
<Project Directory> is the location you specified for your Simplorer projects. To specify a new
location for the PersonalLib folder, you must specify a new project directory location. To do this:
1.
On the Tools menu, point to Options, and then click General Options.
2.
In the Directories group in the Project Options tab, type the new folder location in the Project Directory box, or use the browse button to specify it.
3.
Click OK.
To manage library aliases, on the Tools menu, select Manage Library Aliases.
2.
In the Library Directory Aliases dialog, add the desired Prefixes and Aliases.
a.
Click the Add Prefix button to add the new path prefix to the list.
Each Prefix is prepended to the original library name to create an alternate search string.
The library manager performs string substitutions with each Alias to create additional
potential library paths.
If the library is not found in the project, the library manager searches personallib, then
userlib, and finally syslib using the original and all alternate library names in order.
The / button in the Prefixes panel allows you to browse and choose an alternate directory path to be prepended to the original.
b.
Click the Add Alias button to add the new alias to the list.
The and / buttons in the Aliases panel allow you to browse and select filenames
and directories, respectively. You can also type the information directly into the text
Working with Libraries 4-5
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
boxes.
3.
The Save as default checkbox saves the currently defined prefixes and aliases so that they
become available when Simplorer is started.
Once a definition is used, it is transferred to the current project, and remains in the
project unless it is explicitly removed. See the Removing Definitions from a Project
topic for details. To see the definitions included in a project, expand its Definition
folders and subfolders in the project tree:
Modifying component and dependency definitions in libraries, or installing libraries
with modified component and dependency definitions, does not automatically
update those definitions in projects that contain them. To update project definitions
from library definitions, see Updating Project Definitions from Library Definitions.
To be included in a search path, an external library must be configured to each
circuit design within the project that must access it See Configuring Libraries for
details.
Configuring Libraries
Libraries must be configuredthat is, the lists of their contents must be added to Simplorers
library configuration for a particular circuit in a projectbefore you can use any components and
definitions they contain. A basic subset of syslib libraries is configured by default for all circuits in
new designs, but additional system libraries, including those for vendor components, and libraries
in userlib and PersonalLib, must be manually configured before first use.
When vendor components are loaded, the libraries of the top-level schematic are automatically
loaded into any existing subcircuit(s). This is because for same-product designs, the syslib configuration, when loaded, is automatically copied to the new design library, userlib, and PersonalLib.
Note
Each circuit design within a project may have a different library configuration.
2.
Click Tools > Configure Libraries. The Configure Design Libraries dialog opens.
3.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
a.
Use the System Libraries, User Libraries, and Personal Libraries radio buttons and the
list of library types (Materials, Scripts, Symbols, Models, Packages, and Components)
to browse the library locations set in Specifying the Location of Library Files.
The Available Libraries column displays the results of your selections.
b.
Note
Use the Available Libraries column to navigate to the library you want to add.
Icons for libraries that are already configured are green.
c.
d.
Use the >> button to add the selected library to the Configured Libraries column.
The icon for the newly configured library turns green.
4.
In the Configured Libraries column, click on the library you wish to remove from the
configuration to highlight it.
b.
Use the << button to remove the selected library from the configuration.
5.
Repeat steps 4 and 5 as needed until you have achieved the desired configuration.
6.
Optionally, you can set this library configuration as the default configuration for future designs
by checking Save as Default.
7.
Click OK.
2.
3.
Use the dialog box to select the item(s) to update, and click Update to finish.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Related Topics
Synchronizing Project Definitions
Automatic Library Synchronization
On-Demand Library Synchronization
Importing Simulation Models
Both the fuse and thermal models are present in the current projects Project Manager
Project>Definitions>Models folder.
1.
In the Project Manager, the thermal model is opened in the VHDL-AMS model editor and
terminal m is changed to m1.
2.
Update Project is then performed on the thermal model in the model editor.
Synchronization occurs on the fuse model (and on any other models in the current project
that may depend upon the thermal model). During this process, the fuse model is recompiled. However, compilation will fail in this instance due to the terminal name mismatch
(m vs. m1). Error messages are displayed in the Message Manager giving the line numbers
in the fuse model where the errors occurred.
3.
You could open the fuse model in the VHDL-AMS model editor, make the needed corrections (change m to m1), and perform Update Project on the fuse model to complete the
process.
Alternatively (perhaps because you mistakenly changed the thermal model), you could
also correct the errors by editing the thermal model so that the terminal names agree.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
including:
1.
With a project open, the thermal model is opened for editing in the VHDL-AMS model
editor and terminal m is changed to m1.
2.
Update Project is then performed on the thermal model in the model editor.
3.
The thermal model is then exported from the project to the sync_demo library using
Export to Library.
Automatic synchronization occurs on the fuse model - and on any other models (in any of
the libraries) that may depend upon the thermal model. During this process, the fuse
model is recompiled. However, compilation will fail in this instance due to the terminal
name mismatch (m vs. m1). Error messages are displayed in the Message Manager giving
the line numbers in the fuse model where the errors occurred.
4.
Open the fuse model in the VHDL-AMS model editor, make the needed corrections
(change m to m1), and perform Update Project on the fuse model to complete the process.
2.
Select Legacy Simplorer Library (*.smd) from the Files of type pull-down list.
3.
In the folder list, double-click folders to find the one that contains the desired library.
Note
4.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
5.
When you open a legacy Simplorer library (a library created in Simplorer version 7.0 or
earlier) the Legacy Translation Options dialog box displays.
The Hierarchy/C-Model Location panel allows you to specify either UserLib or PersonalLib as the location where the translated library will be saved; and whether to Flatten
it so that all legacy components are in one folder or to Replicate the legacy library folder
structure. For replicated hierarchies, aliases to the translated library folders are automatically added so that they are immediately available for use in designs. If the legacy library
references external data files or model DLL files, they will be copied to the bin or data
subdirectories of the chosen library directory - either userlib or personallib. If the userlib/bin or userlib/data subdirectory is not present, Simplorer attempts to create the subdirectory. If successful, the files are copied normally. If the subdirectory cannot be created,
Simplorer instead copies the files to the personallib directory.
Note
When translating an SMD that has a model with a graphical subsheet, Simplorer converts
the graphical subsheet data into an SML model and makes the S8 component non-hierarchical.
Translated libraries will automatically be configured and made available for use in
designs. Component libraries are also added to the tree on the Project Manager Components tab.
Add a schematic and place components from the newly translated library on it. Then use the
Definitions folders in the Project Tab to edit the component, symbol or model (right-click on
the desired element and choose Edit element_name on the context menu. You can also right-
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
click on the component and choose Edit element_name on the context menu.
Similarly, in the library translation project, you can right-click on the Models folder, etc. under
Definitions and select Edit Libraries. Choose the new library (upper right of the library dialog
box) and edit the desired definition(s).
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Materials
Scripts
Components
Models
Packages
Symbols
You can open all libraries for editing by right-clicking the Definitions directory of the Project
Tree in the Project Manager, and then selecting Edit All Libraries.
An Edit Libraries browser dialog box opens in which you can choose the tab for the library
type you wish to edit.
You can select an individual library by clicking Tools>Edit Configured Libraries, then
choosing the library you wish to view.
Alternately you may also right-click on any of the folders listed in the Definitions directory of
the Project Tree in the Project Manager, and then select Edit Library.
After choosing a library, an Edit Library browser opens with a tab open to the library you
selected.
The Edit Library browser also filters objects available for selection based on a number of object
attributes, including:
Name
Property
Model type
In addition, each Edit Library browser also includes checkboxes that allow you to Show Project
definitions or override filtering and Show all libraries.
Note
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
For Components, the Edit Component dialog box displays in which you can define a
component. Refer to the section on Editing Component Libraries for additional information.
For Symbols, a Get Name dialog box displays in which you can enter a name for the new
symbol. Clicking OK takes you to the Symbol Editor where you can define the new symbol. Refer to the section on Editing Symbol Libraries for additional information.
For Models, an Add Model dialog box displays. Refer to the section on Editing Model
Libraries for additional information.
For Packages, an Add Package dialog box displays. Refer to the section on Editing Packages Libraries for additional information.
For Materials, a View/Edit Material dialog box displays. Refer to the section on Editing
Materials Libraries for additional information.
For Scripts, a Get Name dialog box displays in which you can enter a name for the new
script. Clicking OK takes you to the Script Editor where you can define the new script.
Refer to the section on Editing Scripts Libraries for additional information.
Right-click on the desired object in the Component, Symbol, Model, or Package folder in the
Definitions directory of the Project Tree in the Project Manager, and then selecting Export
to Library on the context menu.
An Export to user library dialog box displays.
2.
Navigate to the location where you wish to save the exported library.
You can click the PersonalLib or UserLib buttons to jump to those pre-defined locations. If
present, you can also check the Encrypt check box to encrypt the library.
3.
4.
If you chose to Encrypt the library, the Enter Passwords dialog box opens in which you
can:
Enter a Full Access password users must enter the password to use and/or edit the
library contents.
Enter an Execute Only Access password users must enter the password to use the
library contents, but the contents cannot be edited.
Choose to Use Ansoft Password (Execute Only) encrypts the library without
requiring the user to enter a password to use it.
Choose to Use Same Password as if encryption resources already exist, you can
choose to use the existing password to encrypt the library.
Optionally, check Expire this resource on and enter a date on which use of the
encrypted library will expire.
Working with Libraries 4-13
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
b.
The Export Hierarchy dialog box opens. Refer to Exporting Hierarchical Components for
detailed information on working with this dialog box.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
To export a definition archive, first choose an archive name, either by typing the full filename
in to the Archive name edit field, or by using the browse button [...] next to it. The archive
name must have a .definition.zip extension, which is supplied by the dialog box.
Note
The definitions selected for export are listed in the Definitions to Export listbox. Use the
and
buttons to delete selected entries, or all entries, respectively.
The Type drop-down list on the left below the list of Definitions to Export controls which
libraries are shown in the tree below it. Choices include: Component, Symbol, Model, Package, Material, and Script. In the tree, each leaf element (definition) has an associated checkWorking with Libraries 4-15
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
box. Checking the box adds the definition to the export list above. Un-checking the box
removes the definition from the export list. With a library or library element node hilighted, a
user can select all definitions in that library for export by clicking Library All. Similarly, the
user can unselect all definitions in the selected library by clicking Library None. Expand All
and Collapse All expand or collapse the entire tree.
Typing a string into the text box next to the Find button allows the user to scroll to the first
definition whose name matches the string. Searches are not case-sensitive. You can also use
the wildcard asterisk character in search strings. For example: entering P* should find, in
succession, every component that starts with P (or p). Use multiple asterisks to further control
matches, e.g., *p* to find any definition with a 'p' in it, including as a first or last character; or
*p*p* to find "pipe" and "pump", etc.
The Remove unused definitions after export checkbox allows the user to clean up the current
project after export is complete.
Click OK to complete the process. The selected definitions, libraries, and referenced files are
zipped, and given a double extension, .definition.zip. Users can then e-mail or otherwise
transfer the zip file to others. The zip file is not encrypted, though models and packages contained therein may be.
Related Topics
Importing Definition Archives
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
First select a definition archive either by typing the path and definition archive file name in the
Archive text field, or by clicking the [...] button to browse for the file.
In the Imported Library Settings section, users can choose the basic location for the
imported archive with the PersonalLib or UserLib radio buttons. If desired, the user can further choose a subdirectory Path under PersonalLib or UserLib as a location for the libraries.
The user can also enter a Name for the imported libraries. The default name is the base name
of the archive file.
On import, data files will be moved to appropriate bin and data directories. External Referenced Files that are not appropriate to bin and data library directories will be referenced using
$PROJECTDIR. The user can click the [...] button to choose the directory for these files. The
default is the Project Directory specified in Tools>Options>General Options.
The Overwrite existing definitions and files checkbox (unchecked by default) allows the user
to replace current definitions and files with archive elements, permissions allowing.
Related Topics
Exporting Definition Archives
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
To open the dialog box for a materials library, click Tools > Edit Configured Libraries >
Materials. The Edit Libraries dialog opens on the Materials tab.
2.
On the Materials tab, use the Libraries scrolling window to locate and select the material you
wish to manage. The Show Project definitions checkbox enables material objects stored with
the project to be included in the listing.
You can also use the Search Parameters panel to search for the material by Name or by
Property. When searching by property, enter the propertys value in the search box.
The Material Filters tab provides controls for filtering the Materials list.
3.
View/Edit Materials - Edits properties or attributes for a selected material in the Material Editor. The resulting material may have the same name as the original, but it is saved
to the current project, rather than back to the library. In effect, you have checked out the
part to the project in order to edit it. If you want to write it back to the library, overwriting
the original part, use the Export to Library button.
(Use the Show Project Definitions checkbox to include current project elements in the
Edit Libraries dialog display.)
Add Material - Creates a new material which is saved to the current project.
Clone Material(s) - Creates a copy of selected material(s) with a different name.
The View/Edit Material dialog box opens, allowing you to edit the cloned materials properties. The cloned material is saved to the current project.
4.
To open the dialog box for a script library, click Tools > Edit Configured Libraries >
Scripts. The Edit Libraries dialog opens on the Scripts tab.
2.
On the Scripts tab, use the Libraries scrolling window to select the library file for contents
display. Use the buttons below to manage selected library objects:
Edit Script - Edits properties or attributes for a selected model in the Script Editor. The
resulting script may have the same name as the original, but it is saved to the current project, rather than back to the library. In effect, you have checked out the part to the project
in order to edit it. If you want to write it back to the library, overwriting the original part,
use the Export to Library button.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
(Use the Show Project Definitions checkbox to include current project elements in the
Edit Libraries dialog display.)
3.
To open the dialog box for a component library, click Tools > Edit Configured Libraries >
Components. The Edit Libraries dialog opens on the Components tab.
2.
On the Components tab, use the Libraries scrolling window to select the library file for contents display. Use the buttons below to manage selected library objects:
Edit Component - Edits properties or attributes for a selected component in the Component Editor. The resulting component may have the same name as the original, but it is
saved to the current project, rather than back to the library. In effect, you have checked
out the part to the project in order to edit it. If you want to write it back to the library,
overwriting the original part, use the Export to Library button.
(Use the Show Project Definitions checkbox to include current project elements in the
Edit Libraries dialog display.)
Note
Hint
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
3.
When sending exported data such as libraries to third parties, or when relocating
exported data, be sure to include all related files.
1.
When you select a hierarchical component in the Edit Libraries dialog box and click Export
to Library, the Export to user library dialog box is displayed.
2.
Choose the location and filename for the .aclb library file that will contain the exported components. Click Save to confirm your choice. (If the library does not exist, you are prompted to
create a new one.)
The Export Hierarchy dialog box is displayed listing the component and dependent object
Definitions for the exported components. Dependent objects that can be exported include:
Buttons in the Library column open an Export to user library dialog box where you can
browse for a library file in which to store the definition; or create a new library. The library file
type and extension correspond to the Library Type listed for each object. The Library field
button name is that of the library in which the definition currently is stored; and is blank if no
library is yet assigned. By default, the Library field names are set to the same library.
Checkboxes allow you to choose:
3.
which definitions to Export. By default, all definitions are checked for export.
whether or not to Overwrite existing definitions in the target library.
whether or not to Export Solution data for schematic components. Solution data is saved
in a .results folder instead of a library file.
Click OK to confirm your selections. The definitions (and solution data, if applicable) are
saved in the locations and files you chose.
To open the dialog box for a model library, click Tools > Edit Configured Libraries > Models. The Edit Libraries dialog opens on the Models tab.
2.
On the Models tab, use the Libraries scrolling window to select the library file for contents
display. Use the buttons described below to manage selected library objects:
Edit Model - Edits properties or attributes for a selected model in the corresponding
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
model editor: the C-Model Editor, the VHDL Model Editor, the SPICE Model Editor,
the Modelica Model Editor, or the SML Model Editor). The resulting model may have
the same name as the original, but it is saved to the current project, rather than back to the
library. In effect, you have checked out the part to the project in order to edit it. If you
want to write it back to the library, overwriting the original part, use the Export to
Library button.
(Use the Show Project Definitions checkbox to include current project elements in the
Edit Libraries dialog display.)
Some models - such as those that have been encoded - are not editable (button is disabled).
Encrypted models can be edited after the password has been entered to unlock it.
Note
3.
Add Model - Creates a new model object within the selected library. The Add Model dialog box allows you to name the model, and to choose the model type you wish to add. By
default, the model is added via the appropriate model editor.
Clone Model(s) - Creates a copy of selected object(s) with a different name within the
selected library. Encoded models cannot be cloned (button is disabled).
Remove Model(s) - Removes selected object(s) from the library. System library models
cannot be removed (button is disabled).
Export to Library - Exports a selected object to a different library. (Use also to export
edited objects from the project to the library if necessary.) System library models cannot
be exported (button is disabled).
When exporting SPICE models containing references to external files, the Message
Manager will display an alert if the referenced files cannot be located, prompting the
user to copy the files into either the personallib or the userlib directory.
To open the dialog box for a package library, click Tools > Edit Configured Libraries >
Packages. The Edit Libraries dialog opens on the Packages tab.
2.
On the Packages tab, use the Libraries scrolling window to select the library file for contents
display. Use the buttons below to manage selected library objects:
Edit Package - Edits properties or attributes for a selected model in the Package Editor.
The resulting package may have the same name as the original, but it is saved to the current project, rather than back to the library. In effect, you have checked out the part to
the project in order to edit it. If you want to write it back to the library, overwriting the
original part, use the Export to Library button.
(Use the Show Project Definitions checkbox to include current project elements in the
Edit Libraries dialog display.)
Some packages - such as those whose headers have been encoded - are not editable (button is disabled).
Working with Libraries 4-21
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
3.
Add Package - Creates a new object within the selected library. The Add Package dialog
box allows you to name the package, and to choose the package type you wish to add. By
default, the package is added via the Package Editor.
Clone Package(s) - Creates a copy of selected object(s) with a different name within the
selected library. Encoded packages cannot be cloned (button is disabled).
Remove Package(s) - Removes selected object(s) from the library. System library packages cannot be removed (button is disabled).
Export to Library - Exports a selected object to a different library. (Use also to export
edited objects from the project to the library if necessary.) System library packages cannot
be exported (button is disabled).
To open the dialog box for a symbol library, click Tools > Edit Configured Libraries > Symbols. The Edit Libraries dialog opens on the Symbols tab.
2.
On the Symbols tab, use the Libraries scrolling window to select the library file for contents
display. Use the buttons below to manage selected library objects:
Edit Symbol - Edit a selected symbol in the Symbol Editor. The resulting component
may have the same name as the original, but it is saved to the current project, rather than
back to the library. In effect, you have checked out the part to the project in order to edit
it. If you want to write it back to the library, overwriting the original part, use the Export
to Library button.
(Use the Show Project Definitions checkbox to include current project elements in the
Edit Libraries dialog display.)
3.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
To recompile, encode, or license model and/or package libraries, select Tools>Manage Model
Libraries.
The Manage Model /Package Libraries dialog box displays. The left panel lists an expandable tree of all available model libraries and packages. Checkboxes enable you to select the
libraries you wish to change. Checking a folder icon selects all libraries within the folder. Text
appears below the left panel informing you of the number of models and packages currently
selected. The right panel lists the elements in all selected libraries for informational purposes
only.
2.
3.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
a.
If none of the libraries is checked, you can perform operations on an individual library
by right-clicking its name in which case the context menu items will contain the library
name instead of All Checked Items.
To compile the checked items, select Compile (All Checked Items).
The progress bar below the library listing monitors the progress of the compilation. The
original library and package files are saved with a .bak extension.
Clicking the Stop button while compilation is in-progress stops the process, leaving the
libraries and packages in their original state.
b.
To encode or encrypt the checked items, select Encode (All Checked Items).
An Encryption Settings dialog box displays. Refer to the Encryption Settings Dialog Box
help topic for details on encryption settings. Encryption of encoded items is not supported
and results in messages to that effect in the Message Manager. Encoding encrypted items
results in messages informing you that The encode password has been removed.
c.
4.
To set a time license for the checked items, select Set Time License (All Checked
Items). Refer to the Time License Settings help topic for details.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
2.
The Resource Name field lists currently defined resources. Clicking on a resource name
displays a list of all items encrypted with it in the Encrypted Items field.
3.
Specify a name for the encryption resource in the Resource Name text field.
4.
Note
5.
Enter Password enter and confirm a password for the new resource.
Passwords must be at least eight (8) characters long. Passwords may contain spaces - but
may not begin or end with a space.
Use Same Password As click the radio button and then choose an existing resource
from the drop-down list. The chosen resources password will then be used by the new
resource.
Once you have assigned a password, click OK to create the resource and close the dialog box.
The Password Manager dialog box now lists the new resource.
6.
Repeat the above steps as needed to add encryption resources. When finished, click OK.
Working with Libraries 4-25
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
Note
3.
Deleting a resource merely removes that resource from the list of available encryption
resources. models and packages that were encrypted using that resource are unaffected
by its removal.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Related Topics
Encrypting or Encoding a VHDL-AMS Model
Encrypting or Encoding an SML, Modelica, or SPICE Model
Encrypting or Encoding a VHDL-AMS Package
Recompiling, Encoding, and Licensing Libraries
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
Check Enable Time License settings (un-checked by default); then use the Date field to enter
the license expiration date directly.
You can also click the down-arrow button to the right of the date field to reveal a pop-up calendar.
The left and right arrow buttons on the calendar change the calendar one month per
click.
Clicking directly on the month name pops up a menu that allows you to jump directly
to any month in the currently displayed year.
Clicking directly on the year enables you to use the associated up- and down- arrow
buttons to move sequentially to the desired year.
Clicking Today:mm/dd/yyyy at the bottom of the calendar selects the current date.
When the desired calendar page is displayed, click the day of the month to transfer the date
selection to the Date field in the License Information dialog.
3.
Click OK to confirm the date entry and close the dialog box.
4.
With the model from which you intend to remove time licensing open in the model editor,
select model_or_package Editor>Time License in the menu bar.
A License Information dialog box displays.
2.
3.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Editing Components
Use the Edit Component dialog box to:
Specify or change the component name, description, associated bitmap, and default property
values, including those necessary for netlisting and cosimulation, as appropriate
Specify or re-specify a graphical symbol to represent the component in the schematic editor
Specify or change the component terminal properties
The changes you make when editing a library component become part of the current project. (The
edited component is saved to the project, not back to the library.) If you want to make a new or
modified component available for use in other projects, you must save it to a component library
(.aclb) file using the Export command in the Edit Libraries dialog box.
Note
If you are adding a new component, it is useful to first identify and if necessary, create,
the necessary dependencies before defining your component.See the Component
Creation Process topic for details.
2.
In the project tree, expand the Definitions/Components subfolder for the project that contains the component you want to edit. Double-click the entry for the component you want
to edit, or right-click the entry and then select Edit Component.
b.
Open the Tools > Edit Configured Libraries > Components dialog box, then locate and
select the component that you want to edit. Click Edit Component, or double-click the
selected entry.
c.
Right-click an on-sheet component and select Edit Component on the context menu.
The Edit Component dialog box opens, displaying the definition of the selected component for
editing.
Working with Libraries 4-29
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
3.
If you wish to adjust the current symbol (or a clone of the current symbol if another component is using the same symbol), click Yes.
b.
If you wish to autogenerate a symbol consistent with the edited component properties,
click No.
To add a new component, open the Tools > Edit Configured Libraries > Components dialog
box, and then click Add Component. The Edit Component dialog box opens in which you can
select and define the model, elements and properties for the new component.
You can also open the Tools > Edit Configured Libraries > Components dialog box,
then locate and select an existing component on which you would like to base your new
component. Click Clone Component. A renamed copy of the selected component is
added to the list.
Double-click the entry for the new component, or click Edit Component. The Edit Component dialog box opens in which you can select and define the elements and properties
for the new component.
2.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
General Tab
Miscellaneous Tab
Terminals Tab
Simulation Models Tab
The General and Terminals tabs in the Edit Component dialog box each contain a symbol preview window which is automatically updated to reflect any changes you make to the symbol.
To make a new or modified component available for use in other Simplorer projects, you must
export it to a user or personal component library (.aclb) file using the Edit Libraries dialog box.
The library must be configured (added to) to the circuit or schematic within the target project.
To update another project with your updated component(s), select its icon in the project tree, and
then click Update Definitions on the Tools menu.
You can open the Edit Component dialog box in any of the following ways:
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Dialog Wizard. To edit the component properties, click Properties next to the Name text window.
In the Properties window, you can add, edit or remove default or local properties and values.
Note
If you remove a Quantity property to which a symbol pin was associated, when you OK
to exit the Edit Component dialog box, a dialog box displays informing you that The
pins of the referenced symbol do not match the current component terminals and
properties. at which time you can choose either to adjust the current symbol (or a clone
of the current symbol if another component is using the same symbol), or to
autogenerate a symbol consistent with the edited component properties
Symbol Area
The Symbol area of the General Tab allows you to choose an existing symbol for elements in the
current design from a drop-down list, and also displays a picture of the currently selected symbol.
You can choose any symbol that has an equal or greater number of pins than the component specified in the Component Name field. You can also choose to Auto-create a symbol.
The library of origin of the component is displayed beneath the component display in the Symbol
area; if the component is local to this Project, that message is displayed. When you click Select,
the Select Definition dialog box opens, allowing you to choose a definition for the symbol from a
list that is displayed. Click Edit to modify the symbol. A confirmation message is displayed with a
reminder that the Component and Definition editors will be closed (if open) and that all changes
will then be saved if you choose to continue. Click Clear at any time to clear all selections and displays in the Symbol area.
Note
Click OK to save your changes and close the dialog box, or click Cancel to close the dialog box
without saving any changes.
The top two rows of the Miscellaneous tab window display the Modified Date and Original
Date of the component. Text boxes allow you to specify the Current Author, Manufacturer,
Original Author, and Data Source.
To specify an Example File for the component, browse for the directory and example project
file by clicking the browse button [...].
You can also specify the components Reference Designator Base value, or enter a text
Description for the component.
The Bitmap image that is displayed with the component listing in the Project Tree is selected
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The Component Online Help area displays the help file and help topic associated with the
component. This field also allows you to specify a help file and topic if, for example, you want
to use your own help file. The help file type must be .chm (complied Microsoft HTML Help)
and must be located in <installdir>\Help. To link a component to a help file and topic do the
following:
1.
2.
Start Simplorer.
3.
Edit the component for which you want to set up a help link.
4.
5.
Choose the .chm file from the list in the Help File combo box.
6.
Enter a help topic .htm filename in the Help Topic text box. This filename is the .htm help
topic file compiled in the selected .chm file. The user must supply this information.
7.
Click the Test button to verify the link. The specified .chm file should open displaying the
components help topic.
8.
Click OK to close the Edit Component dialog box, and export the component back to its
library; or click Cancel to close the dialog without saving any changes.
Symbol pin Select the pin name for the terminal in the symbol.
Footprint pin Not applicable.
Nature Select the physical type (electrical, magnetic, etc.) associated with the pin.
Unconnected Shows the action to be taken if the pin remains unconnected.
Unconnected/default behavior Controls what Simplorer will do at analysis time if this
pin is left unconnected in a schematic. The options are:
Flag as error (the default) results in the generation of netlist errors in the Message
Manager.
Unique net writes a unique netname (e.g., unconnected0) as the net name for
the unconnected pin. This allows connections in a multi-element netlist line even
Working with Libraries 4-33
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Click OK to save your changes and close the dialog, or click Cancel to close the dialog without
saving any changes.
The Simulation Models tab is not shown for components representing subcircuits.
Add Model Click this button to select a simulation model on the Select Definition dialog Models tab.
Add Netlist Line Click this button to open a text editor where you can enter netlist information.
The Alternate Models pane lists simulation models currently associated with the component. The
listing shows the model Type (SML, VHDL, etc.), Name, Architecture, and Library. An Edit
button allows you to open the model in the appropriate editor if you wish to make changes to it.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Double click the component definition in the project tree to open the Edit Component dialog
box.
2.
In the Edit Component dialog box, click Properties on the General tab to open the Properties dialog box containing four tabs:
3.
Parameter Defaults
Properties
Quantities
Signals
When finished editing component properties on the tabs, click OK to close the Properties dialog box; then click OK to close the Edit Component dialog box.
Name This column displays the names of component parameters. Names can be edited for
case only.
Value This column allows you to change the initial values of parameters.
Unit This column allows you to set the unit of measure (as appropriate) for the parameter
value.
Evaluated Value This read-only column displays the evaluated value (as appropriate) of the
parameter.
Description This column allows you to enter a description for the parameter.
Netlist Unit This column allows you to set the unit of measure used when the parameter is
netlisted.
Callback This button allows you to associate a callback script with the parameter.
Read-only This check box controls whether or not the parameter settings can be changed.
Hidden This check box controls whether or not the parameter is hidden by default.
Property Type displays the type (e.g., Real) for generic properties.
Working with Libraries 4-35
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Show Pin This check box allows you to show a pin for the property on the components symbol.
Sweep This check box enables the value for sweep.
Default SDB This check box enables the value to be stored in the project SDB.
Name This column displays the names of component parameters. Names can be edited for
case only.
Value This column allows you to change the initial values of parameters.
Unit This column allows you to set the unit of measure (as appropriate) for the parameter
value.
Evaluated Value This read-only column displays the evaluated value (as appropriate) of the
parameter.
Description This column allows you to enter a description for the parameter.
Callback This button allows you to set associate a callback script with the parameter.
Read-only This check box controls whether or not the Name, Value, Unit, Description, and
Callback values for the property can be changed.
Hidden This check box controls whether or not the parameter is hidden by default.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Value
NameThis column displays the names of component parameters. Names can be edited for
case only.
ValueThis column allows you to change the initial values of parameters.
UnitThis column allows you to set the unit of measure for the parameter value.
Netlist Unit This column allows you to set the unit of measure used when the parameter is
netlisted.
Description This column allows you to enter a description for the parameter.
Callback This button allows you to set associate a callback script with the parameter.
Direction Allows you to select the parameter direction (In, Out, InOut, or Dont Care).
Default direction for added quantities is In.
Show Pin When enabled, this check box controls whether or not the parameter pin is shown
on a schematic.
Default SDB This check box controls whether or not the parameter is
When adding a quantity property, you must specify a Name and choose a Unit Type (angle, frequency, capacitance, etc.). Enter an initial value into the Value field. This can be a number, variable, or expression. Referenced project variables should be prefixed with a '$'. Examples: 22.4pF,
$C1, 2*cos($x). If the value requires a multiplier unit (such as meg for 1000000) click on the
Units field to select the multiplier unit.
Optimization
The Optimization radio button enables you to set default values for input parameters used in optimization analyses.
Tuning
The Tuning radio button enables you to set default values for input parameters used in tuning analyses.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Nominal Value.
Sensitivity
The Sensitivity radio button enables you to set default values for input parameters used in sensitivity analyses.
Statistics
The Statistics radio button enables you to set default values for input parameters used in Statistical
analyses.
NameThis column displays the names of component parameters. Names can be edited for
case only.
ValueThis column allows you to change the initial values of parameters.
UnitThis column allows you to set the unit of measure for the parameter value.
Netlist Unit This column allows you to set the unit of measure used when the parameter is
netlisted.
Description This column allows you to enter a description for the parameter.
Callback This button allows you to associate a callback script with the parameter.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Signal Type This column shows the type of signal (e.g., real or bit) set for the parameter.
Direction Allows you to select the parameter direction (In, Out, InOut, or Dont Care).
Show Pin When enabled, this check box controls whether or not the parameter pin is shown
on a schematic.
Default SDB This check box controls whether or not the parameter is
Do not use the names of reserved system parameters for property names.
Click the Edit button to edit a component property. Editable fields are the same as those described
above for the Add Property dialog box.
Click OK to save your changes and close the dialog, or click Cancel to close the dialog without
saving any changes.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The Edit Netlist String dialog box opens, displaying the netlist string. Use the dialog box to edit
the string if desired.
See Also: The Netlist String Syntax Reference
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Example:
~SUB(SUB = MS)
?(<propname>==<value>)(<expr1>)[:(<expr2>)]
?(<propname>!=<value>)(<expr1>)[:(<expr2>)]
~(<propname>==<value>)(<expr1>)[:(<expr2>)]
~(<propname>!=<value>)(<expr1>)[:(<expr2>)]
Same as ? and ~ above except the first term is evaluated for equal to (==) or not equal to
(!=) and if true, substitute expr1 else (optionally) expr2.
Example:
?(sim==fullwave)(NSUM=@NSUM):(F0=@F0)
*<propname>(<expr1>)
If property named propname has changed from default (definition value), then substitute
expr1.
(Syntax error if spaces in propname or propname is empty.)
Example:
*IDSS(IDSS = @IDSS)
&(<expr>)[^(pname1,pname2, . . . )]
Add all properties that have changed from default (definition value), except those in the
optional exclusion list. In expr, $ can be used to represent the property name, and # the property value.
Example:
&($=#)^(Model)
will netlist all properties that changed from their default value except the Model property.
\n
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Defined Variables
$SYSLIB will be expanded to <InstallationDirectory>/syslib upon netlisting, where
<Installation Directory> is the directory into which Simplorer was installed during setup.
$USERLIB will be expanded to <InstallationDirectory>/userlib upon netlisting.
$PERSONALLIB will be expanded to <ProjectDirectory>/PersonalLib upon netlisting,
where <ProjectDirectory> is the location you specified for your Simplorer projects.
Global Reference String in Simplorer
A global reference property will process its value the same way as the netlist string and will
place the result in the top-level (global) part of the circuit file.
<Simulator>GlobalRef=[string]
where <Simulator> is Simplorer, etc.
Examples:
SimplorerNetlist=CPLE:@ID %0 %1 %2 %3 ?Z(Z=@Z) ?E(E=@E) ?F(F=@F)
*A(A=@A)
Z, E, and F use the ? conditional because the component definition values assigned to these
parameters are different than those in the engine and should always be netlisted even if the user
has not changed them. The A parameter uses the * conditional because its component definition value matches that of the engine and we just need to netlist it if the user changes the
instance value.
SimplorerNetlist=R@ID %0 %1 @R ?TC1(TC1=@TC1 ?TC2(tc2=@TC2))
?TJ(TJ=@TJ) ?TNOM(TNOM=@TNOM)
In this example, TC1 will be netlisted only if TC1 exists, and TC2 will be netlisted only if TC1
and TC2 exist.
SimplorerNetlist=MSBENDO:@ID %0 %1 w=@Length sub=@Substrate
W and Sub will always be netlisted.
SimplorerNetlist=MOSFET:@ID %0 %1 %2 %3 MODEL=@Model
&($=#)^(Model)
Model will always be netlisted. The &($=#)^(Model) indicates to netlist all the parameters
as name=value, except for Model.
SimplorerNetlist=D@ID %0 %1 1N914
SimplorerGlobalRef =.LIB $SYSLIB/Vendor/D.lib
which may netlist to:
D22
net_3
net_4
1N914
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Draw graphical primitives, such as rectangles, circles, and arcs, using options on the Draw
menu
Add pins for electrical connections using the Pin option on the Draw menu, and possibly modifying the properties of these pins via the Pin List dialog box
Add text labels, using the Text option on the Draw menu
Add property displays, using the Property Display Setup option on the Symbol menu
Update the current project with the new or revised symbol definition using the Update Project
option on the Symbol menu
You may also want to export a symbol to a symbol library (.aslb) file for use in other projects. For
information on how to do this, see the Edit Libraries dialog box topic.
In the project tree, expand the Definitions folder and the Symbols subfolder for the project
that contains the symbol you want to edit.
Double-click the entry for the symbol you want to edit, or right-click the entry, and then
click Edit Symbol.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The symbol editor runs and opens the selected symbol for editing.
Click Tools>Edit Configured Libraries>Symbol to open the Edit Libraries dialog box to
the Symbols tab, and locate and select the Project version of the symbol that you want to edit.
Click Edit Symbol, or double-click the selected entry.
The symbol editor runs, and opens the selected symbol for editing.
Click Tools>Edit Configured Libraries>Symbol to open the Edit Libraries dialog box to
the Symbols tab, and then click Add Symbol.
The Get Name dialog box opens.
Type a name for the symbol into the Enter the name for this new Symbol box, and then
click OK or press Enter.
Double-click the entry for the new symbol, or click Edit Symbol.
The symbol editor opens.
Click Tools>Edit Configured Libraries>Symbol to open the Edit Libraries dialog box to
the Symbols tab, and locate and select an existing symbol on which you would like to base
your new symbol.
Click Clone Symbol(s).
The Get Name dialog box opens.
Type a name for the new symbol into the Enter the name for this new Symbol box, and
then click OK or press Enter.
Double-click the entry for the new symbol, or click Edit Symbol.
The symbol editor opens.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Graphic objects placed in the symbol editor have various properties associated with them such as
color, fill style, line weight, etc. Click Properties to view the properties of the selected object. The
other options are a combination of entries from the Edit, View, and Draw menus.
Level 0 graphics are common to both IEEE and Traditional symbol styles, and are always
shown.
All symbol Pins are on level 0, and thus are common to both styles.
Objects placed on level 1 in the IEEE style are always shown on the schematic when the
user chooses the IEEE display style. Similarly, objects placed on level 1 in the Traditional
style are always shown on the schematic when the Traditional style option is chosen.
Levels greater than 1 are independent for each style. Users may add any number of levels,
for IEEE, Traditional, or both styles using the Add Level button. Visibility of graphics on
additional levels may be controlled via the Default checkbox in the Levels dialog box, in
a special component dialog box, or programmatically. In Simplorer, visibility is controlled
by setting up Boolean conditions using quantities and then evaluating the conditions as a
simulation progresses.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Choose the Level by clicking the radio button next to the desired level.
2.
3.
Select and place the desired graphic object (circle, line, pin, text, etc.) from the Symbol Draw
Menu.
4.
M a cr
Layers in
a Level;
Graphic, Text,
Interaction areas
Level
31
Arc
This option, also available from the Symbol Draw toolbar
, initiates creation of an arc. To
draw an arc, click the symbol editor grid at the two points that will determine the arcs ends, and
then drag the arc to the desired radius.
Once you have created an arc, you can adjust its radius or move its endpoints by clicking the arc to
select it, and dragging the appropriate handle.
Circle
This option, also available from the Symbol Draw toolbar
, initiates creation of a circle. To
draw a circle, click the symbol editor grid to select a center point, and then drag the circle to the
desired diameter.
Once you have created a circle, you can adjust its diameter in either of two ways:
Click the circle to select it, and then drag one of its handles.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Double-click the circle to open its Properties dialog, type a new value for the Radius parameter, and then click OK.
By default, a new circle is hollow. You can fill a circle with solid color or parallel lines in one of
several styles as follows:
a.
With the circles properties displayed, click in the Value cell for the FillStyle property.
b.
c.
Click OK.
Line
This option, also available from the Symbol Draw toolbar
with one or more segments. To draw a line:
1.
Click the symbol editor grid where you want the line to start, and then click at one or more
points to continue the line.
2.
To complete the line, do one of the following after defining its final segment:
Press SPACE.
Right-click, and then click Finish.
After you have completed a line, you can change the endpoints of its segments by doing the one of
the following:
The Properties dialog box also allows you to set the color and width of the line; and the line style
(solid, dash, dot, dash dot, or dash dot dot).
The object displayed at the beginning and/or ending of the line can also be selected. Choices
include: a short perpendicular line, arrow, solid arrow, square, diamond, and circle.
Polygon
This option, also available from the Symbol Draw toolbar
create a polygon:
1.
Click the symbol editor grid to specify the position of one vertex, and then click wherever you
want to place additional vertices.
2.
To complete a polygon, specify the position of its final vertex, and then do either of the following:
Press SPACE.
Right-click, and then click Finish.
Once you have drawn a rectangle, you can edit its vertex positions, border width, and other properties, including its fill style, as follows:
Click the rectangle, and then edit its properties in the Properties window.
Double-click the rectangle, and then edit its properties in the Properties dialog box.
Working with Libraries 4-49
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
By default, a new polygon is hollow. You can fill a polygon with solid color or parallel lines in one
of several styles as follows:
a.
With the polygons properties displayed, click in the Value cell for the FillStyle property.
b.
c.
Click OK.
Rectangle
This option, also available from the Symbol Draw toolbar
, initiates creation of a rectangle.
To create a rectangle, click the editor grid to specify the position of one corner, and then drag the
rectangle to the desired size.
Once you have drawn a rectangle, you can edit its height and width, the position of its center, and
its angle (its rotation, in degrees, relative the handles of its bounding box) as follows:
Click the rectangle, and then edit its properties in the Properties window.
Double-click the rectangle, and then edit its properties in the Properties dialog box.
By default, a new rectangle is hollow. You can fill a rectangle with solid color or parallel lines in
one of several styles as follows:
a.
With the rectangles properties displayed, click in the Value cell for the FillStyle property.
b.
c.
Click OK.
Text Label
This option, also available from the Symbol Draw toolbar
, adds to the symbol an editable
Default text label in 12-point Arial. To edit the default text string immediately after placement,
type the text you want, and then press Enter or click elsewhere in the editor grid.
To change just the text of an existing label:
1.
2.
3.
4.
Other properties of a label, include its color, font, size, angle of rotation, and justification. A rectangular bounding box can also be shown around the text. The rectangles fill color and style, border
color and width, the position of its center, its width, height, and angle of rotation can be set independently of the associated text. To edit these properties:
1.
Click the label and view its properties in the Properties window.
b.
Double-click the label and view its properties in the Properties dialog.
c.
Right-click the label and select Properties to view its properties in the Properties dialog
box.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
Click in the Value cell for the property you want to modify.
3.
4.
Click OK, or click in another Value cell to commit the change and keep editing values.
Image
This option, also available from the Symbol Draw toolbar, allows you to select an existing external
.bmp or .gif image file, and place it on the symbol grid.
To add a bitmap or GIF image to a symbol:
1.
This displays a file browser. It defaults to your PersonalLib location, but lets you use buttons
to select Syslib, UserLib, Project Folder, file path, or standard browser functions to look
through your file system and network.
2.
3.
4.
5.
Click again to anchor the image and release it from the cursor.
The image remains selected, with the drag handles on the corners visible. If necessary, you can
select a handle resize the image.
The image includes a Properties window in which you can edit the images properties, including: center coordinates, angle of rotation, width, and height. A checkbox toggles display of a
border and enables additional border properties including: border color and width. Additional
checkboxes allow the image to be mirrored left-to-right, and to establish a link to the image
file.
Pin
This option, also available from the Symbol Draw toolbar, initiates placement of a symbol pin with
a default stem length of 100 mil. You can rotate a pin in 90 degree increments before placing it by
iteratively pressing R until the pin is oriented to your liking. Click in the editor grid to finish placing the pin. Pins are always placed on the 0 level and snapped to the grid. After placement, you
can rotate the pin in 90 degree increments by iteratively pressing Ctrl-R. You can also move and
reorient pins as described below.
Adjusting Pin Orientation
If the Adjust Pin Orientation on Drag option in the Schematic Editor Options: Symbol
Editor Options Tab is enabled, you can drag pins from one side of a symbol to another
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Top
L
e
f
t
Symbol
Graphics
R
i
g
h
t
Bottom
Note
Ctrl+click to select and drag multiple pins from one side of a symbol to another.
If multiple selected items include symbol graphics in addition to pins, then automatic pin
orientation is disabled for that move operation.
Pressing the Alt key while dragging the pin(s) temporarily disables the automatic pin ori-
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
entation funtion if Adjust Pin Orientation on Drag is enabled. Conversely, if Adjust Pin
Orientation on Drag is disabled, pressing the Alt key while dragging the pin temporarily
enables automatic pin orientation.
Other properties of the pin include its name, color, level, type, length, visibility of the pin name and
number, and the circuit node to which the pin will be connected when hidden. Refer to the section
on Editing Pin Properties for detailed explanations of these properties.
To edit these properties:
1.
Click the pin and view its properties in the Properties window.
b.
Double-click the pin and view its properties in the Properties dialog.
c.
Right-click the pin and select Properties to view its properties in the Properties dialog
box.
2.
Click in the Value cell for the property you want to modify.
3.
4.
Click OK, or click in another Value cell to commit the change and keep editing values.
Note
If you make a pin name or number visible, the text can be selected, moved, rotated, and
modified like any other text label. However, a pins name and number remain linked to
the associated pin.
Rotate
This option, also available from the Symbol Draw menu and by pressing Ctrl+R on the keyboard,
rotates a selected object or group of objects 90 counterclockwise.
Align Horizontal
This option horizontally aligns the locations of the members of a group of selected objects with the
location of the first-selected object.
To align multiple objects horizontally:
1.
Press Ctrl, and then click the object with which you want to align the others.
2.
Still pressing Ctrl, click the additional objects in turn to add them to the selection.
Note
3.
The first-selected object is highlighted in red, and that the subsequently selected objects
are highlighted in dark red.
Align Vertical
This option vertically aligns the locations of the members of a group of selected objects with the
location of the first-selected object.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Press Ctrl, and then click the object with which you to align the others.
2.
Still pressing Ctrl, click the additional objects in turn to add them to the selection.
Note
3.
The first-selected object is highlighted in red, and that the subsequently selected objects
are highlighted in dark red.
Flip Vertical
This option, also available from the Symbol Draw toolbar, flips the selected object or group of
objects around the X axis.
Flip Horizontal
This option, also available from the Symbol Draw toolbar, flips the selected object or group of
objects around the Y axis.
Update Project
Set Name
Property Display Setup
Pin List
Grid Setup
Import File
Export File
Edit Component
Animate
List
Update Project
The Symbol>Update Project command updates the current project with changes made in the current symbol.
Note
Update Project updates your symbol changes to the current project in memory and does
not save your changes to disk. To save your changes to disk, you must also click Save on
the File menu. If you would like the changes you have made in a symbol to be available
for use in other projects, you must export the symbol to a library as described in the Edit
Libraries dialog box topic.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Set Name
The Symbol>Set Name command opens a Properties dialog box in which you can rename the current symbol.
Note
Note
Add Click this button to add a new property display entry to the list.
Change Component ContextClick this button to open the Select Definition dialog
box, through which you can select the component definition on which property displays
are based. The properties of the selected component are then available in the Name cell
properties list.
Because a symbol can be used by multiple components with differing properties, any
property name can be entered by the user. If a component using the symbol doesn't have
a property with that name, the symbol property isn't used in that component.
Location Click in this cell to set the location (Left, Top, Right, Bottom, Center) of the
property display relative to the symbol center.
You can further position a property display by rotating it (Ctrl-R), or by dragging it to
another location with your mouse. When you do this for a given property display, its
Location value is set to Custom.
Name Click in this cell to type a property display name, or to select an existing property
Working with Libraries 4-55
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
display from a list. The component selected via the Change Component Context button
determines which property displays are listed for selection.
In the Project Manager, right-click on the Definitions>Symbols folder in the desired project
and select Add Definition on the context menu.
2.
Enter a name for the new symbol in the Definition Name dialog box and click OK.
On the main menu bar, select Symbol>Import File and choose an existing .svg symbol file to
import it into the symbol editor.
A dialog box appears advising you that importing the .svg file will remove any existing symbol
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
graphics in the editor, and asking you if you are sure you want to continue the import.
Note
4.
There is no Undo for the import operation. Consequently if you make a mistake
on import, you must close the project without saving, then reopen it to recover.
Currently you can import .svg symbols into any symbol editor window - including
those containing pre-exisiting component symbols in which case the current symbol
in the editor will be replaced by the imported symbol, so make sure that you import
the symbol in the desired place.
Click OK to import the .svg symbol for further editing, or Cancel to abort the operation.
Once the new symbol has been created, you can attach it to a component via the Property Display
Setup command.
Animate
The Symbol>Animate command opens the Animation dialog box where you can add, edit, and
delete expressions for animating the symbol. Animations embedded in a symbol change the symbol
appearance during the simulation process in response to a change in value of a system quantity.
The Expression control opens the Edit Condition dialog box in which you can add or edit
conditions that trigger animation events.
The Activate Level(s) control opens the Select Levels dialog box where you can choose which
symbol levels are shown when a condition is satisfied.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
In addition to the pin properties described below for the Pin List dialog, the pins Properties Window and Properties dialog also allow you to set the pin color and level.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Pin Label provides a field to add a user-defined label for the chosen pin on a component
symbol without having to change the actual Pin Name associated with the chosen pin. Pin
labels for pins in a component should be unique.
To specify or change the label of a pin, click in the Pin Label cell for that pin, type the name,
and do either of the following:
Press Enter.
Click in another cell.
The Pin Label can be displayed for the chosen pin by unchecking Use Name As Label.
Use Name As Label controls whether the Pin Name or Pin Label is displayed for the chosen pin when Show Label is enabled. For a new pin, Use Name As Label is checked by
default.
Pin Name sets the actual pin name. To specify or change the name of a pin, click in the Pin
Name cell for that pin, type the name, and do either of the following:
Press Enter.
Click in another cell.
Show Label controls visibility of the either the Pin Name or Pin Label text for the pin (as
determined by Use Name As Label). For a new pin, it is unchecked by default.
Show Index controls visibility of the pin number in the schematic editor. For a new pin, it is
unchecked by default.
Type drop-down list sets the pin type. Options include Normal (the default), ANSI In,
ANSI Out, and Zero Length. To change a pins type, click in its Type cell, and then click the
desired option.
Length (mils) sets the length of the pin stem (the graphical line associated with the pin port
symbol). By default, new pins have a pin stem length of 100 mils. To change the length of a
pin, click in its Length cell, type a new value, and do either of the following:
Press Enter.
Click in another cell.
Working with Libraries 4-59
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Hide Pin controls whether or not a pin is visible in the schematic editor. For new pins, it is
unchecked by default.
Hidden Pin Net editable when Hide Pin is checked, specifies the net (circuit node) to which
a pin will be connected if it is hidden. To specify a net, click in the Hidden Pin Net cell, type a
net name, and then do either of the following:
Press Enter.
Click in another cell.
Pin Labels can be displayed on the chosen pin by changing the PinLabel property with a
user-defined name and unchecking the checkbox UseNameAsLabel.
The UseNameAsLabel check box provides a mechanism to either use PinLabel or PinName as the display text on the schematic and symbol editor canvas. By Default it is set to
true
The ShowLabel Checkbox controls the visibility of chosen label text on the pin
Pinlabels for pins in a component should be unique.
Click the cell that displays the pin property value that you want to change.
2.
Modify the property value appropriate to its type as described in The Pin List Dialog Box.
3.
To commit the new value and continue editing pin properties, click another property
value.
To commit the new value and stop editing pin properties, click OK.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Double-click a script listed beneath the Definitions/Scripts folder in the Project Manager.
Select Edit Script in the Tools > Edit Configured Libraries>Scripts dialog.
This opens the Script Editor window. Text displayed within the editor is highlighted to allow for
easy identification of the various structures of the displayed script.
Export Script exports the script to a file. Refer to Exporting a Netlist for additional information.
Save Script saves the script.
JavaScript/VBScript controls the syntax highlighting for the selected language.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Symbol Function
Toolbar Symbol
Definition
Toggle bookmark
Delete bookmarks
Bookmark forward
Bookmark backward
Find window
Forward search
Backward search
Forward search,
case-sensitive
Backward search,
case-sensitive
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Models generated using the C-Model Editor are listed under Project Components in the Project
Manager components tree, and can be used in the same way as other Simplorer components.
Because they are components, their properties may also be edited using Simplorers Component
Editor.
For a detailed discussion of how to develop, program, debug, and deploy C-Models in Simplorer,
refer to: C-Models in Simplorer.
Related Topics
4-63
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The Text Options tab contains the same options settings as all other Simplorer text editors.
The General tab allows users to set how model source files are managed. It also allows
users to enable a warning if users attempt to override or replace an existing C-Model dll.
Check Warn about override/replace of existing dll to warn users if they attempt to
override or replace an existing C-Model dll file.
The DefaultModel Source panel contains a drop-down menu with three choices.
Choose None if you do not want the model to know the path to the source .scp file.
Choose Path to project to enable the model to know the path to the source .scp file.
Choose Zip Model Source to have the model contain the CModel editor file contents in zip format.
The C++ Compiler panel contains a drop-down menu that allows the user to select
which of the available installed Visual Studio versions to use for direct compilation
inside the C-Model editor.
4-64
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Adding a C-Model
The following procedure outlines the steps for adding a C model using Simplorers C-Model Editor.
1.
2.
Click the Add Model button to open the Add Model dialog box.
3.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
4.
Type the name of the new C-model into the Model Name field. This name will be applied to
the project folder Simplorer creates for the models files, and also to the models source files.
The new folder and files reside in the PersonalLib folder under the Project Directory specified
in the General Options dialog Project Options tab.
5.
Simplorer gives you the choice of adding the new model directly to the current project (for
later editing, perhaps), or of adding the model via Simplorers C-Model Editor. Choose one of
the following:
a.
To add a new model directly to the current project, uncheck the Add New Model Using
Editor checkbox, and then click OK.
Simplorer creates a new model project folder and source files (bearing the model name
you chose above) in the PersonalLib folder under the Project Directory specified in the
General Options dialog Project Options tab. The model is added to the Project Managers Definitions>Models folder.
Note
b.
You can open the model source files for editing by double-clicking the models icon.
To add a new model to the current project with its source files already open and ready to
edit, ensure that the Add New Model Using Editor checkbox is checked (the default setting). Click OK to close the box.
The C-Model Editor opens and automatically creates a C++ source (.cpp) file for the CInterface functions of the model, a C++ header (.h) file for the macro definitions necessary
for the model, and a C++ source file bearing the model name you chose above.
By default the C++ source file for your model will already contain function declarations
for the Initialize, Simulate, Validate, and Close functions for the transient analysis type.
Note
6.
When the C-Model Editor window is active, the Project Manager displays the Model
Editor tab which lists the files, functions, and other information for the C-Models.
Edit the model source files using the tools provided in the following sections:
Adding Analysis Types, Nodes, States, Variables, and Models to a C-Model
Implementing the Initialize, Simulate, Validate, and Close Functions
7.
When finished editing, select C Model Editor>Update Project to add the model to the project.
Related Topics
4-66
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The resulting Edit Model dialog provides a tree view with the selected item highlighted in the left
pane. The right pane contains the corresponding data entry fields.
Note
You can select items in the tree to add Models, Analysis Types, etc., instead of using the
menu
Select Edit Analysis Type from the C Model Editor menu. The Edit Model dialog box
4-67
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
Select the name of the appropriate model from the list presented in the Model list.
3.
Check the Use box next to the Analysis Type(s) (TRansient, AC, or DC) to be added.
4.
Click OK.
Initialize, Simulate, Validate, and Close function declarations are added for each of the analysis types selected for the model.
Note
The contents of these functions must still be added. For further information about
creating the contents of these functions, see: Initialize, Simulate, Validate, and Close
functions.
Select Edit Terminal from the C Model Editor menu. The Edit Model dialog box appears
4-68
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Add
2.
Select the name of the appropriate model from the list in the Model field.
3.
Click the Add button to add a new entry to the list in the Terminal field. (If this is the first
time you have visited this field for a new model, the field will be empty.)
4.
Type a name for the Terminal node that will be visible when the model containing the node is
placed onto a Simplorer Schematic sheet into the Name field.
5.
Select the nature of the Terminal node from the list of available natures in the Nature field.
6.
Repeat steps 2 through 4 to add other Terminal nodes as required for your model.
7.
Select Edit Terminal from the C Model Editor menu. The Edit Model dialog box appears
with Terminal selected in the Model tree.
Select the name of the appropriate model from the list in the Model field.
3.
To edit existing information for the node, simply click on the information and edit it.
To remove an existing node, select the line and then click the red X to delete it.
4-69
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Select Edit Quantity from the C Model Editor menu. The Edit Model dialog box appears
with Quantity selected in the Model tree.
Add
2.
Select the name of the appropriate model from the list in the Model field.
3.
Click the Add button to add a new entry to the list in the Quantity field. (If this is the first time
you have visited this field for a new model, the field will be empty.)
4.
Type a name for the Quantity node that will be visible when the model containing the node is
placed onto a Simplorer Schematic sheet into the Name field.
5.
Select the type of Quantity node from the list of available types in the Type field.
6.
If the Type chosen is REAL_, select the appropriate physical type from the list in the Physical
Type field and the expected unit of measure from the list in the Unit field.
7.
8.
Select the direction of the node from the list in the Direction field.
9.
If the value of the node is a data vector, select the Vector check box.
10. If you wish to add more quantity nodes, repeat Steps 1 through 8 for each node. If not, click
OK to add the new node properties.
AddNode_nc, SetDataTypeNode_nc, and SetUnitNameNode_nc function calls are added to
the appropriate model's Prepare_ function for each Quantity node created.
4-70
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Select Edit Quantity from the C Model Editor menu. The Edit Model dialog box appears
with Quantity selected in the Model tree.
2.
Select the name of the appropriate model from the list in the Model field.
3.
To edit existing information for the node, simply click on the information and edit it.
To remove an existing node, select the line and then click the red X to delete it.
Select Edit State from the C Model Editor menu. The Edit Model dialog box appears with
Internal State selected in the Model tree.
Add
2.
Select the name of the appropriate C-model from the list available in the Model field.
3.
Click the Add button to add a new entry to the list in the Internal States field. (If this is the
first time you have visited this field for a new model, the field will be empty.)
4.
Select a name for the state and type it into the Name field. The name should be a valid C++
identifier.
5.
Select a numerical default value for the state and type it into the Value field.
6.
If you wish to add more states, repeat Steps 1 through 4 for each state. Click OK to add the
internal states.
4-71
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Upon clicking OK, AddNode_State function calls for the states are inserted in the Prepare_
function of the appropriate model.
Select Edit State from the C Model Editor menu. The Edit Model dialog box appears with
State selected in the Model tree.
2.
Select the name of the appropriate model from the list in the Model field.
3.
To edit existing information for the state, simply click on the information and edit it.
To remove an existing state definition, select the line and then click the red X to delete it.
Declaring Variables
To declare a variable:
1.
Select the Edit Variable command from the C Model Editor menu. The Edit Model dialog
appears with Variable selected in the Model tree.
2.
Select the name of the appropriate C-model from the list available in the Model field.
3.
Click the Add button to add a new entry to the list in the Internal States field. (If this is the
first time you have visited this field for a new model, the field will be empty.)
4.
Select a name for the variable and type it into the Name field. The name should be a valid C++
identifier.
5.
6.
7.
If you wish to add more variables, repeat Steps 1 through 5 for each variable.
8.
Select the Edit Variable command from the C Model Editor menu. The Edit Model dialog
appears with Variable selected in the Model tree.
2.
Select the name of the appropriate C-model from the list available in the Model field.
3.
To edit existing information for the variable, simply click on the information and edit it.
To remove an existing variable declaration, select the line and then click the red X button
to delete it.
4-72
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Adding Models
Additional models may be added to a C-Model project to create a multiple-model dll. To add an
additional model:
1.
Select Add Model from the C Model Editor menu. The Edit Model dialog box appears with
Model selected in the tree view.
Add
2.
Click the Add button to add a new entry to the list in the Model field.
3.
4.
5.
6.
If you wish to add more models, repeat Steps 1 through 4 for each model.
7.
4-73
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
Validate and Close functions, when they are required, must be implemented manually.
For more information on how to implement Validate and Close functions, please refer
to the following sections:
Sample C-Model Source Code
C-Models in Simplorer
For more information on how to determine the matrix entries of a C-Model, please refer
to the C-Models in Simplorer documentation.
Click in the body of the Initialize function for one of the analysis types, and then right-click. A
shortcut menu appears.
2.
Select Simulator Data>Set Equation System from the menu. The Equation System dialog
appears.
3.
In the Analysis Type section, select the analysis type for which the initialize and simulate
functions are being implemented from the drop-down list (TR_, AC_, and DC_ represent transient, AC, and DC analyses, respectively).
4.
In the Matrix section, select the matrix for which entries are to be set from the list. Select
Jacobian for the Jacobian coefficient matrix, Solution Vector for the solution vector, or Right
4-74
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Add
By default, the dialog shows matrix entries for each of a C-Model's terminal nodes.
5.
Click the Add button to add additional variables to the matrix. New variables will be given the
default name Change Name. To edit the name of a new variable, click in the appropriate
field in the Node column, and edit the name.
6.
Once all variables have been added to the matrix, nonzero matrix entries can be added to the
matrix. To add nonzero matrix entries:
a.
Click the position of the entry in the matrix. The Jacobian Matrix Entry section of the
Equation System dialog is enabled for editing.
b.
Click the Add button in the Jacobian Matrix Entry section and enter the value for the
matrix entry into the Value field. If the matrix entry contains a temporal derivative, it can
be represented by 1/dt. If the matrix entry contains a complex angular frequency term, jw
can be represented by p.
Select the Fill RHS Manually check box only if the right-side vector entry corresponding
to the position of the currently selected matrix entry is to be filled manually. If the rightside vector is not to be filled manually, this check box may be left deselected.
Note
The right-side vector entry should only be filled manually if the corresponding equation
is nonlinear. For more information on setting right-side entries, please refer to the CModels in Simplorer documentation.
c.
Enter the right-side value corresponding to the matrix entry into the Right Hand Side
Value field only if the Fill RHS Manually check box has been selected. If not, leave the
field empty.
d.
Select the Use Simulate Section check box if the matrix entry is not constant.
4-75
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
e.
Once all nonzero Jacobian matrix entries and all right-side vector entries have been set,
select Jacobian in the Matrix section of the dialog to preview the completed Jacobian
matrix. Select Right Hand Side to preview the completed right-side vector.
7.
Set each Solution Vector entry by entering its value into the appropriate location in the Value
column.
8.
Once all nonzero Jacobian matrix, right-side vector, and solution vector entries have been set,
click OK. The C-Model editor generates the C code to set the matrix entries in the Initialize
and Simulate functions for the selected analysis.
Initializing Variables
Variables in Initialize and Simulate functions can be initialized to the values of literals, expressions, functions, struct variables, quantity nodes, and solution vector values. Initializing variables
to the values of literals, expressions, functions, and struct variables must be done entirely by manual editing. Initializing variables to the values of quality nodes or solution vector values, however,
can be done predominantly with commands available from the Insert Data and Simulation Data
menus of the C-Model editor.
To initialize a variable to the value of a quantity node:
1.
In the editor window, locate the variable to be initialized. Replace the semicolon following the
variable declaration with the C++ assignment operator =.
2.
3.
Select the name of the quantity node whose value the variable will be initialized with from the
drop-down list in the node Name field.
4.
Click OK. The C-Model editor will generate the code to initialize the variable to the value of
the selected quantity node.
Select the variable to be initialized. Replace the semicolon following the variable declaration
with the C++ assignment operator =.
2.
Open the Simulator Data menu. Select GetSVVal to initialize the variable to a solution vector
value or GetDSVVal to initialize the variable to the time derivative of a solution vector value.
A Get/Set Value dialog box appears.
3.
Select the row of the solution vector element to whose value the variable will be initialized
from the drop-down list in the Name field.
4.
Click OK. The C-Model editor will generate the code to initialize the variable to the value of
the selected solution vector element.
4-76
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
Select Insert Data>SetValNode_nc from the pop-up menu that appears. A Get/Set Value
dialog box appears.
3.
Select the name of the quantity node whose value the variable will be initialized with from the
drop-down list in the node Name field.
4.
If the Value to be assigned to the node is a variable, select the Value radio button and select the
name of the desired variable from the drop-down list in the adjacent field. If the value to be
assigned to the node is a string, select the Text radio button and enter the string value into the
adjacent field.
5.
Click OK, to generate the function call necessary to set the selected quantity node to the
desired value.
2.
Select Insert Data>SetValNode_ncFile from the pop-up menu that appears. A Get/Set Value
dialog box appears.
3.
Select the name of the quantity node for which the value is to be set from the drop-down list in
the node Name field.
4.
Enter the file name that the node is to be set to into the File name field, or browse to the file
using the Browse button.
5.
Click OK, to generate the function call necessary to set the selected quantity node to the
desired file name.
You must have either Microsoft Visual C++ 6.0 or Microsoft Visual Studio .NET
installed to check syntax.
1.
Select C Model Editor>Check Syntax to check the syntax of the new C-model.
2.
This invokes Microsoft Visual C++ 6.0 (or Microsoft Visual Studio .NET) which checks
the code for syntax errors. Simplorers Message Manager window displays the results of the
syntax check. If errors are reported, clicking on them should take you to the associated lines of
code in the editor window.
Note
A Dynamic Link Library (dll) file of the model is generated during the syntax check.
4-77
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
tions have been implemented, the C-model is ready to be built and added to the Simplorer project
as a component.
Related Topics:
File Settings
Configuring Build Settings
Updating a Project to Include the C-Model
File Settings
If any additional files are required to build the project, they may be added via the C Model Editor
menu. To add C++ files to the project, select C Model Editor>File Settings. A dialog box will
appear that can be used to browse to files that are to be included in the build. The dialog box may
also be used to delete from the C-Model project files that are already included with the project.
2.
Select C++>General in the tree view to set the paths to C++ files that should be included in
the build, either by typing the path directly into the Additional Include Directories text box,
or by clicking the browse button to open the Additional Include Directories dialog in which
4-78
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
3.
Select C++>Preprocessor in the tree view to add Preprocessor Definitions to the build configuration.
4.
You can also set library paths for builds by selecting Linker>General in the tree, and then
either type the path in the Additional Library Directories text box, or use the browse button to
open the Additional Include Directories dialog to browse and add directories.
5.
Additional dependencies can be specified by selecting Linker>Input, then entering the items
to be added to the link line for the build.
6.
2.
The Import Components dialog box appears listing all of the models in the current C Model
project on the Models tab.
3.
Refer to Importing Simulation Models for detailed information on settings you can make in this
dialog box.
4.
Click OK. This invokes the C++ compiler of Microsoft Visual C++ 6.0 or Microsoft Visual
Studio .NET to compile the C-Model source code and header files into a dll file. If the compiler detects an error or issues a warning, it is displayed in the Message Manager window and
will identify the line number of the statement that caused the error or warning. You can then
use Ctrl+G to open the Go To Line dialog box to go to the line.
If the compilation of the C-Model project succeeds, a message appears in the Message Manager window indicating that the project update was successful.
A component for each model is created and added to the Project Manager Component Definitions folder. The new models are also added to the list of Project Components where they
can be placed onto a schematic for simulation.
4-79
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
C-Models created in Visual C++ 6.0 or Visual Studio .NET cannot be revised using the
C-Model Editor and must be revised using the application in which they were created.
Revising a C-Model
Once the files are opened, the C-Model may be revised. The following revisions may be performed
on a C-Model.
For more information on how to perform these revisions on a C-Model, see the following sections:
Adding Analysis Types, Nodes, States, Variables, and Models to a C-Model
Implementing the Initialize, Simulate, Validate, and Close Functions
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Save Tab filename saves the file whose tab is currently active in the editor.
Save Tab filename As opens a Save As dialog for saving the file currently active in the editor allowing you to specify a new filename and path.
Save ModelName saves the model project files currently active in the editor.
Save ModelName As opens a Save As dialog for saving the model project files currently
active in the editor, allowing you to specify a new project filename and location for the project
files.
Update Project
The Save Tab filename, Save Tab filename As, Save ProjectName, Save ProjectName
As, and Update Project menu items are common to the C Model, VHDL-AMS, SPICE,
Modelica, and SML model editors; and the VHDL Package Editor.
For C-Models, invokes Microsoft Visual C++ 6.0 (or Microsoft Visual Studio .NET)
to build a Dynamic Link Library (dll) file of your C-Model.
For all model types, enables creation of components for the models and their addition to
the current project. For packages, enables creation of the package and addition to the current project.
Check Syntax invokes Microsoft Visual C++ 6.0 (or Microsoft Visual Studio .NET) to
check the code for syntax errors. Simplorers Message Manager window displays the results of
the syntax check.
Add Model opens a dialog box for adding a new model to a C-model project.
Edit Analysis Type opens a dialog box for adding a TRansient, AC, or DC operating-point
analysis to a model within a C-model project.
Edit State opens a dialog box for adding and editing C-model internal states within a Cmodel project.
Edit Terminal opens a dialog box for adding and editing C-model terminal nodes within a
C-Model project.
Edit Quantity opens a dialog box for adding and editing C-model quantity nodes within a Cmodel project.
Edit Variable opens a dialog box for adding and editing C-model variable declarations
within a C-model project.
Build Settings opens a dialog box for setting paths to C++ files to be included in the building
of a C-model project, specifying preprocessor definitions, additional dependencies, and for setting library paths different from the default path.
File Settings opens a dialog box for adding and removing files from a C-model project.
Export Project a sub-menu allows the user to choose which of the available installed Visual
Studio compilers to use to export the current C-model project. The sub-menu lists all supported
4-81
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
versions. A Visual Studio icon appears next to versions currently installed on the user machine.
By default, the exported project is saved in the users PersonalLib.
4-82
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
played. Right-clicking on an icon in the tree opens a pop-up menu allowing you either go to that
item in the main C-Model editor window, or to open the Edit Model window.
4-83
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
GetValNode_nc generates the code for obtaining a real value from a quantity node.
GetValNode_ncCplx generates the code for obtaining a complex value from a quantity
node.
GetValNode_ncFile generates the code for obtaining a file name from a quantity node.
GetValNode_ncStrg generates the code for obtaining a string value from a quantity node.
GetValNode_ncState generates the code for obtaining a state value from a quantity node.
SetValNode_nc generates the code for passing a real or string value to a quantity node.
SetValNode_ncFile generates the code for passing a file name to a quantity node.
SetValNode_ncState generates the code for passing a file name to a quantity node.
AllocateUserDataMemory generates the code for allocating memory for instance-specific
data.
GetUserData generates the code for obtaining user-specific data.
GetDCUserData generates the code for obtaining DC user-specific data.
Set Equation System opens the Equation System dialog, which is used to generate code for
setting Jacobian matrix, right-side vector, and solution vector entries.
GetCplxSVVal generates code for obtaining the complex value of a solution vector element.
GetDSVVal generates code for obtaining the time derivative of a solution vector element.
GetSVVal generates code for obtaining the value of a solution vector element.
ISIM_ECM_D_DT generates the function that returns the time derivative operator for
transient analysis
ISIM_ECM_IEMAX generates the function that returns the maximum current error
allowed during iterations in transient simulation
ISIM_ECM_ITERAT generates the function that returns the maximum number of iterations
4-84
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
ISIM_ECM_LDF generates the function that returns the local discretization error
ISIM_ECM_NEW generates the function that returns TRUE when the simulator operates
smoothly and FALSE when the simulator is forced to take a step back in time
ISIM_ECM_P generates the function that returns the ...
ISIM_ECM_SOLVER generates the function that returns the solver type of the network
simulator
ISIM_ECM_UEMAX generates the function that returns the maximum voltage error
allowed during iterations in a transient simulation
OSIM_ECM_REJECT generates the function that requests a back step from the simulator
OSIM_ECM_SYNC generates the function that requests a back step from the simulator and
setting of a new, user-defined step size
OSIM_SYNC generates the function that requests a ...
Report2Sim generates the function that displays messages in the simulator output window
or in pop-up windows
The Initialize, Simulate, Validate, and Close functions for the transient, AC, and DC analyses
of an RLC low-pass filter
The Initialize, Simulate, Validate, and Close Functions for a linear characteristic model
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
//row 4
pMod->SetSymbolicGSEntry(4, 1, 0, RS_DONTFILL);
pMod->SetSymbolicGSEntry(4, 3, 0, RS_DONTFILL);
pMod->SetSymbolicGSEntry(4, 4, 0, RS_DONTFILL|D_DT_OPERAT);
//row 5
pMod->SetSymbolicGSEntry(5, 0, 0, RS_DONTFILL);
pMod->SetSymbolicGSEntry(5, 1, 0, RS_DONTFILL);
pMod->SetSymbolicGSEntry(5, 5, 0, RS_DONTFILL);
//static entries
pMod->SetRealGSEntry(4,
pMod->SetRealGSEntry(4,
pMod->SetRealGSEntry(5,
pMod->SetRealGSEntry(5,
1,
3,
0,
1,
1);
-1);
-1);
1);
return TRUE;
}
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
//rightside entries
pMod->SetRealRSEntry(0,
pMod->SetRealRSEntry(1,
pMod->SetRealRSEntry(2,
pMod->SetRealRSEntry(3,
pMod->SetRealRSEntry(4,
pMod->SetRealRSEntry(5,
dQ);
-dQ + PHI/L);
-V3/R + V4/R);
-V3/R + V4/R + PHI/L);
-V2 + V4 - dPHI);
V1 - V2 + Q/C);
return TRUE;
}
4-87
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
4-88
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
//row 5
pMod->SetSymbolicGSEntry(5, 0);
pMod->SetSymbolicGSEntry(5, 1);
pMod->SetSymbolicGSEntry(5, 5);
//static entries
pMod->SetRealGSEntry(4,
pMod->SetRealGSEntry(4,
pMod->SetRealGSEntry(5,
pMod->SetRealGSEntry(5,
1,
3,
0,
1,
1);
-1);
-1);
1);
//set initial values for inductor flux and capacitor charge from DC operating
point
pMod->SetSVVal(4, flx);
pMod->SetSVVal(5, chg);
return TRUE;
}
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
//row 2
pMod->SetRealGSEntry(2, 2, 1.0/R);
pMod->SetRealGSEntry(2, 3, -1.0/R);
//row 3
pMod->SetRealGSEntry(3, 2, 1.0/R);
pMod->SetRealGSEntry(3, 3, -1.0/R);
pMod->SetRealGSEntry(3, 4, -1.0/L);
//row 4
pMod->SetCplxGSEntry(4, 4, ISIM_ECM_P( pMod ));
//row 5
pMod->SetRealGSEntry(5, 5, -1.0/C);
//send values to nonconservative output nodes
pMod->SetValNode_nc(STRG_RESISTOR_VOLTAGE, V3-V4);
pMod->SetValNode_nc(STRG_INDUCTOR_VOLTAGE, V4 - V2);
return TRUE;
}
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
pMod->SetSymbolicGSEntry(1, 4, 0, RS_DONTFILL);
//row 2
pMod->SetSymbolicGSEntry(2, 2, 0, RS_DONTFILL);
pMod->SetSymbolicGSEntry(2, 3, 0, RS_DONTFILL);
//row 3
pMod->SetSymbolicGSEntry(3, 2, 0, RS_DONTFILL);
pMod->SetSymbolicGSEntry(3, 3, 0, RS_DONTFILL);
pMod->SetSymbolicGSEntry(3, 4, 0, RS_DONTFILL);
//row 4
pMod->SetSymbolicGSEntry(4, 1, 0, RS_DONTFILL);
pMod->SetSymbolicGSEntry(4, 3, 0, RS_DONTFILL);
//row 5
pMod->SetSymbolicGSEntry(5, 0, 0, RS_DONTFILL);
pMod->SetSymbolicGSEntry(5, 1, 0, RS_DONTFILL);
pMod->SetSymbolicGSEntry(5, 5, 0, RS_DONTFILL);
//static entries
pMod->SetRealGSEntry(4,
pMod->SetRealGSEntry(4,
pMod->SetRealGSEntry(5,
pMod->SetRealGSEntry(5,
1,
3,
0,
1,
1);
-1);
-1);
1);
return TRUE;
}
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
double dPHI = 0;
double dQ = 0;
//non-static matrix entries
//row 1
pMod->SetRealGSEntry(1, 4, -1.0/L);
//row 2
pMod->SetRealGSEntry(2, 2, 1.0/R);
pMod->SetRealGSEntry(2, 3, -1.0/R);
//row 3
pMod->SetRealGSEntry(3, 2, 1.0/R);
pMod->SetRealGSEntry(3, 3, -1.0/R);
pMod->SetRealGSEntry(3, 4, -1.0/L);
//row 5
pMod->SetRealGSEntry(5, 5, -1.0/C);
//rightside entries
pMod->SetRealRSEntry(0,
pMod->SetRealRSEntry(1,
pMod->SetRealRSEntry(2,
pMod->SetRealRSEntry(3,
pMod->SetRealRSEntry(4,
pMod->SetRealRSEntry(5,
dQ);
-dQ + PHI/L);
-V3/R + V4/R);
-V3/R + V4/R + PHI/L);
-V2 + V4 - dPHI);
V1 - V2 + Q/C);
4-92
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
return TRUE;
}
//=================================================
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
return TRUE;
}
4-94
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
return TRUE;
}
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
//====================================
4-97
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
4-98
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
Click the Add Model button to open the Add Model dialog box.
3.
4.
Type the new VHDL-AMS model name in the Model Name field.
5.
Simplorer gives you the choice of adding the new model directly to the current project (for
later editing, perhaps), or of adding the model using Simplorers VHDL-AMS Model Editor.
Choose one of the following:
4-99
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
a.
To add a new model directly to the current project, uncheck the Add New Model Using
Editor checkbox, and then click OK.
Simplorer creates new VHDL-AMS model entity and architecture declarations bearing the
chosen model name, and adds the model to the Project Managers Definitions>Models
folder.
Note
b.
You can open the model for editing from the Project Manager by double-clicking the
model, or by right-clicking the model and selecting Edit Model from the context menu.
To add a new model to the current project using the VHDL-AMS Model Editor window,
ensure that the Add New Model Using Editor checkbox is checked (the default setting).
Click OK to close the dialog box.
The VHDL-AMS Model Editor opens displaying new VHDL-AMS model entity and
architecture declarations in separate tabs bearing the model name you chose above.
Note
When the VHDL-AMS Model Editor window is active, the Project Manager displays the
Model Editor tab which lists the models, architectures, entities, and other information for
the VHDL-AMS Models.
6.
7.
When finished editing, select VHDL Model Editor>Update Project to add the model to the
project.
4-100
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
1.
Select the name of the appropriate model from the list in the Model Name field.
2.
In the Library Contents section, select the libraries, packages, and models to be included in
the VHDL model.
3.
Click OK.
VHDL-AMS code for the necessary LIBRARY and USE statements is added to the code in
the editor window.
Note
Libraries, packages, and models may also be removed from a model by deselecting
them.
Select the desired port type (Terminal, Quantity, or Signal) from the VHDL Model Editor >
Edit Entity menu. The Edit Model dialog box opens with the selected port type highlighted.
Note
You can also select the port type directly in the Edit Model dialog box simply by
selecting the desired item in the Entity tree. The data entry pane to the right of the tree
changes to reflect the selection.
2.
Select the name of the appropriate model from the list presented in the Model field.
3.
Click the Add button (the button with the dashed square and lightning symbol) to add a new
row to the list in the Port field. (If this is the first time you have visited this field for a new
4-101
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
b.
For Quantity or Signal ports, select a direction for the new port from the list available in
the Direction field: in, out, or inout.
c.
For Terminal ports, select one of the natures supported by VHDL-AMS from the list
available in the Nature field. For Quantity or Signal ports, select one of the types available in the Type field. These lists contain a number of physical, numerical, and logical
types (for example, voltage, real, bit).
d.
If applicable, type a default value for the port in the Value field.
e.
4.
5.
Select Generic from the VHDL Model Editor>Edit Entity menu. The Edit Model dialog
box opens with the Generic type highlighted.
Note
You can also select the Generic type directly in the Edit Model dialog box simply by
selecting Generic in the Entity tree. The data entry pane to the right of the tree changes
to reflect the selection.
2.
Select the name of the appropriate model from the list presented in the Model field.
3.
Click the Add button (the button with the dashed square and lightning symbol) to add a new
row to the list in the Generic field.
a.
b.
Select a data type for the new generic from the list available in the Type field. This list
contains a number of physical, numerical, and logical types.
c.
d.
4.
5.
4-102
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Editing an Entity
To edit an entity:
1.
Select the desired entity type (Terminal, Quantity, Signal, or Generic) from the VHDL
Model Editor>Edit Entity menu. The Edit Model dialog box opens with the selected type
highlighted.
Note
2.
Select the name of the appropriate model from the list in the Model field.
3.
You can also select the type directly in the Edit Model dialog box simply by selected the
desired item in the Entity tree. The data entry pane to the right of the tree changes to
reflect the selection.
To edit existing information, simply click on the information and edit it.
To remove an existing definition, select the line and then click the red X to delete it.
Renaming an Entity
To rename an Entity:
1.
Select Rename Entity on the VHDL Model Editor menu. The Edit Model dialog box opens
with Entity selected in the tree view.
2.
3.
Adding an Architecture
To add an architecture:
1.
Select Add Architecture on the VHDL Model Editor menu. The Edit Model dialog box
opens with Architecture selected in the tree view.
Note
2.
Click the Add button (the button with the dashed square and lightning symbol) to add a new
row to the list in the Architecture field.
a.
3.
4.
You can also add an Architecture directly in the Edit Model dialog box simply by
clicking Architecture in the tree. The data entry pane to the right of the tree changes to
reflect the selection.
4-103
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Select the desired object (Terminal, Quantity, Signal or Constant) from the VHDL Model
Editor>Edit Architecture menu. The Edit Model dialog box opens with the selected object
type highlighted.
Note
2.
You can also select the object directly in the Edit Model dialog box simply by selecting
the desired item in the Architecture tree. The data entry pane to the right of the tree
changes to reflect the selection.
Select the name of the appropriate model from the list in the Model field.
3.
Select the name of the architecture you wish to edit from the list in the Architecture field.
4.
Click the Add button (the button with the dashed square and lightning symbol) to add a new
row to the list in the object field. (If this is the first time you have visited this field for a new
model, the list will be empty.)
a.
b.
c.
e.
d.
Select one of the natures supported by VHDL-AMS from the list available in the
Nature field
Select one of the types (for example, voltage, reluctance, bit) available in the Type
field.
If applicable, type a default value for the signal in the Value field.
Optionally, add a description for the signal in the Description field.
Select one of the types (for example, voltage, inductance, bit) available in the Type
field.
If applicable, type a default value for the signal in the Value field.
Optionally, add a description for the signal in the Description field.
4-104
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
5.
6.
Select Rename Architecture on the VHDL Model Editor menu. The Edit Model dialog box
opens with Architecture selected in the tree view.
2.
3.
Select VHDL Model Editor>Check Syntax to check the syntax of the new VHDL model.
2.
Simplorer checks the code for syntax errors. Simplorers Message Manager window displays
the results of the syntax check. If errors are reported, clicking on them should take you to the
associated lines of code in the editor window.
2.
Select the name of the Architecture description in which the component is to be instantiated.
3.
In the Available Components section of the dialog box, browse to the desired component.
4.
Double-click the desired component. A new instance of the model appears in the Instantiated
Components section.
a.
b.
Select an entity and an architecture for the model instance from the lists available in the
Entity and Architecture fields.
5.
In the Ports section, enter a numerical value or the name of a port or generic in the Value field
for each of the model instance's ports. Terminals should be mapped to other terminals, while
quantities and signals can be mapped to ports of the same type, or to generics, or can just be
given numerical values.
6.
In the Generics section, select a value for each generic of the model. The value may be a
numerical value or generic and can be typed into the field or selected from the list of available
values in the Value field.
4-105
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
7.
Once all desired model instances have been added to the architecture description, click OK.
The editor generates the VHDL-AMS statements that instantiate the models and map their
ports.
2.
The Import Components dialog box appears listing all of the models in the current VHDL
Model project on the Models tab.
3.
Refer to Importing Simulation Models for detailed information on settings you can make in this
dialog box. When finished, Simplorer compiles the VHDL-AMS model source code.
If the compiler detects an error or issues a warning, it is displayed in the Message Manager window and will identify the line number of the statement that caused the error or
warning. You can then use Ctrl+G to open the Go To Line dialog box to go to the line.
If the compilation of the VHDL-AMS Model succeeds, a message appears in the Message
Manager window indicating that the project update was successful.
A component for each model is created and added to the Project Manager Component
Definitions folder. The new models are also added to the list of Project Components
from which they can be placed onto a schematic for simulation.
Related Topics
Importing Simulation Models
2.
3.
Select the Architecture you wish to encrypt from the drop-down list.
Click OK to confirm your choice and close the dialog box.
An Encryption Settings for <model_name> dialog box for the selected architecture displays.
Do either of the following
a.
Note
b.
4.
If you wish to encrypt the model, click the Encrypt radio button, then select the desired
encryption resource in the Resource Name list.
You can also add a new encryption resource by clicking the Add button.
If you wish to encode the model, click the Encode radio button. Encoding prevents the
model text from being viewed.
4-106
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Related Topics
Using the Password Manager
Encryption Settings Dialog Box
2.
In the Edit Models dialog box that appears, browse to the .vhd model containing the desired
model, and open it.
3.
Select the desired VHDL-AMS model and click OK to edit the model in the VHDL Model
Editor.
Save Tab filename - See C Model Editor Main Menu for details.
Save Tab filename As - See C Model Editor Main Menu for details.
Save ModelName - See C Model Editor Main Menu for details.
Save ModelName As - See C Model Editor Main Menu for details.
Update Project performs a syntax check and compiles the VHDL-AMS model. It also
enables creation of components for successfully compiled models, and their addition to the
current project. Simplorers Message Manager window displays the results of the operation.
Also see C Model Editor Main Menu.
Check Syntax checks the code for syntax errors. Simplorers Message Manager window
displays the results of the syntax check.
Edit Libraries and Packages opens the Edit Model dialog box for configuring the libraries, packages, and models that are to be includes in a VHDL-AMS model.
Edit Entity contains commands that open the Edit Model dialog box for editing a VHDL
model entitys Terminal, Quantity, Signal, and Generic definitions.
4-107
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Rename Entity opens the Edit Model dialog box where you can rename a VHDL model
entity.
Add Architecture opens the Edit Model dialog box for adding a VHDL architecture to a
VHDL model.
Rename Architecture opens the Edit Model dialog box for renaming a VHDL model
architecture.
Edit Architecture contains commands that open the Edit Model dialog box for editing a
VHDL model architectures Terminal, Quantity, and Signal definitions.
Instantiate Component opens a dialog box for setting paths to C++ files to be included in
the building of a C-model project, specifying preprocessor definitions, additional dependencies, and for setting library paths different from the default path.
Encryption Settings opens a dialog box for selecting a VHDL Architecture for encryption
or encoding via the Password Manager.
Time License Settings opens a dialog box for enabling or disabling Time License Settings
used to control how long a model may be used in simulations.
Library and Packages allows you to choose the libraries, packages, and models used in the
selected model.
Entity rename a model entity.
Entity>Terminal add, delete, and edit the Name, Nature (electrical, magnetic, etc.), and
Description of terminal ports for the selected model entity.
Entity>Quantity add, delete, and edit the Name, Type (capacitance, voltage, etc.), Value,
4-108
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Direction (In or Out), and Description of quantity ports for the selected model entity.
Entity>Signal add, delete, and edit the Name, Type (capacitance, voltage, etc.), Value,
Direction (In, Out, or InOut), and Description of signal ports for the selected model entity.
Entity>Generic add, delete, and edit the Name, Type (capacitance, voltage, etc.), Value,
and Description of generics for the selected model entity.
Architecture add, delete, and rename model architectures.
Architecture>Terminal add, delete, and edit the Name, Nature (electrical, magnetic,
etc.), and Description of terminal ports for the selected model architecture.
Architecture>Quantity add, delete, and edit the Name, Category (free, across, or through,
Type (capacitance, voltage, etc.), Value, Direction (In or Out), and Description of quantity
ports for the selected model
Architecture>Signal
4-109
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
where you can choose either to go to that item in the main VHDL editor window, or to open the
VHDL-AMS Edit Model dialog box.
4-110
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The VHDL-AMS editor provides a context menu, which you can open by right-clicking in the editor window.
Note
The VHDL-AMS editor context menu commands given below are also used in other
Simplorer text editors such as the SML, C, Modelica, and SPICE model editors.
In addition to standard Cut, Copy, Paste, and Select All commands, other context menu commands include:
Comment Line(s) select one or more lines of code in the editor and apply this command
to change the code lines into comment statements.
Uncomment Line(s) select one or more commented lines of text in the editor and apply
this command to change the lines into code statements.
4-111
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Find opens a Find dialog box in which you can enter strings to search for in the editor
window. Controls allow you to make the search case-sensitive, and to control the direction
of the search relative to the current cursor position.
Replace similar to the Find command and dialog box, with the additional capability to
include a Replace with string.
Go To Line Refer to Going to a Numbered Line for details.
Related Topics
Text Editor Options
4-112
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
Click the Add Model button to open the Add Model dialog box.
3.
4.
Type the new SML model name in the Model Name field.
5.
Simplorer gives you the choice of adding the new model directly to the current project (for
later editing, perhaps), or of adding the model using Simplorers SML Model Editor. Choose
one of the following:
a.
To add a new model directly to the current project, uncheck the Add New Model Using
Editor checkbox, and then click OK.
Simplorer creates new SML model entity declarations bearing the chosen model name,
and adds the model to the Project Managers Definitions>Models folder.
Note
b.
You can open the model for editing from the Project Manager by double-clicking the
model, or by right-clicking the model and selecting Edit Model from the context menu.
To add a new model to the current project using the SML Model Editor window, ensure
4-113
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
that the Add New Model Using Editor checkbox is checked (the default setting). Click
OK to close the dialog box.
The SML Model Editor opens displaying new SML model entity declarations in a tab
bearing the model name you chose above.
Note
When the SML Model Editor window is active, the Project Manager displays the Model
Editor tab.
6.
7.
8.
When finished editing, select SML Model Editor>Update Project to add the model to the
project. Refer to Importing Simulation Models for additional details.
Related Topics
Importing Simulation Models
The SML editor provides a context menu, which you can open by right-clicking in the editor window.
Note
The SML editor context menu commands given below are also used in other Simplorer
text editors such as the VHDL-AMS, C, Modelica, and SPICE model editors
In addition to standard Cut, Copy, Paste, and Select All commands, other context menu commands include:
Comment Line(s) select one or more lines of code in the editor and apply this command
to change the code lines into comment statements.
Uncomment Line(s) select one or more commented lines of text in the editor and apply
this command to change the lines into code statements.
Find opens a Find dialog box in which you can enter strings to search for in the editor
window. Controls allow you to make the search case-sensitive, and to control the direction
of the search relative to the current cursor position.
Replace similar to the Find command and dialog box, with the additional capability to
include a Replace with string.
Go To Line Refer to Going to a Numbered Line for details.
4-114
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Related Topics
Text Editor Options
2.
In the Edit Models dialog box that appears, browse to the desired model file and open it.
The Models tab lists the names of models that can be imported for editing, provides a checkbox to update the project definitions, and a checkbox that allows existing models of the same
names to be overridden. The Update Project Definitions box is checked (selected) by default.
A table lists the names of models that will be imported for editing. If a model name already
exists, the Override checkbox (checked by default) allows you to override the current model
definition.
The Un-Compiled tab is present only if one or more of the component(s) you are importing
cannot be compiled. Each un-compiled component is listed along with an Edit checkbox which
is checked by default. Checked entries will be opened in the appropriate model editor when
you OK the Import Components dialog box. Un-compiled models will not be imported, nor
will components be created for them.
3.
Select the desired model and click OK to import and edit the model in the appropriate model
editor.
Note
When referencing external files in SPICE model code, use either file names (abcd.txt) or
a relative path + file names, where the relative path can be to: syslib, userlib or
personallib. If Simplorer cannot locate the external file in any of the above locations
when you check syntax or attempt to Update Project, the Message Manager displays an
alert prompting you to copy the referenced files into either the personallib or userlib
directory. This ensures that the external files can be located during compilation.
4.
5.
Select model_type Model Editor>Update Project to update the project model. Project components that use the revised model are also updated (i.e., synchronized).
Related Topics
4-115
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
a.
If you wish to enter dataset values manually, refer to the Dataset Parameters Tabs help
topic for details.
b.
If you wish to import a dataset from a file, click Import to import a data file.
c.
In the file browser window that appears, choose to import data from the following file
types:
.mdx, .mda
.txt
text file
.csv
Comma-separated value
.out
.dat
TEK Oscilloscope
3.
If you select a file type other than .txt or .csv the data is imported immediately into
the Add Dataset dialog box.
Selecting a .txt or .csv file opens an Import dialog box in which you can specify 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.
d.
When satisfied with the import settings, click OK to import the data.
e.
Manually edit the imported data, if desired. Refer to the Dataset Parameters Tabs help
topic for details.
These tabs are also used for setting table values for multi-dimensional table components
(NDSRC, NXMY, NDTAB, and NDNL).
4-116
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Edit Input Channels: Create or delete channel entries using the symbols on the upper right
side. Click in the fields for a list entry to define a channel Name and Unit.
Channel Data <Input Channel Name>: Use this panel to define the corresponding characteristic data for the selected input channel. The name of the selected input channel displays in the
panel name, and also in the column heading of the data table. Create, delete, or move table
entries with the symbols located above the table. Click in the fields to enter values.
Note
You cannot use variables or expressions. Only real numbers are accepted.
If the Sweep Data box is checked, clicking Set replaces the values in the lookup table with
values generated based on the Start Value, Step size, and Number of Samples settings. The
Append button inserts the new values at the end of existing table entries.
Import: (This button is present only when in the SML Editor.) Opens a file browser in which
you can select a file containing dataset values you wish to import. (Refer to Inserting a Dataset
in the SML Editor for detailed information on using this command.)
Output Parameters Tab
Edit Output Channels: Create or delete channel entries using the symbols on the upper right
side. Click in the fields for a list entry to define a channel Name and Unit.
Edit Output Data: Use this panel to define output channel values. Output channel names are
displayed in column headings. Input channel names and data are also shown for reference.
Click in the output channel fields to enter values for output quantity.
Note
You cannot use variables or expressions. Only real numbers are accepted.
You can also use the Tree View button to open a dialog box that allows you to navigate the
output data table by clicking on the elements in an expandable tree.
Select model_type Model Editor>Check Syntax to check the syntax of the model.
2.
Simplorer checks the code for syntax errors. Simplorers Message Manager window displays
the results of the syntax check. If errors are reported, clicking on them should take you to the
associated lines of code in the editor window.
Related Topics
Checking Syntax (VHDL Model Editor)
Checking Syntax (C-Model Editor)
4-117
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
b.
2.
If you wish to encrypt the model, click the Encrypt radio button, then select the desired
encryption resource in the Resource Name list.
You can also add a new encryption resource by clicking the Add button.
If you wish to encode the model, click the Encode radio button. Encoding prevents the
model text from being viewed.
Related Topics
Using the Password Manager
Time License Settings
Encryption Settings Dialog Box
4-118
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
Click the Add Model button to open the Add Model dialog box.
3.
4.
Type the new SPICE model name in the Model Name field.
5.
Simplorer gives you the choice of adding the new model directly to the current project (for
later editing, perhaps), or of adding the model using Simplorers SPICE Model Editor.
Choose one of the following:
a.
To add a new model directly to the current project, uncheck the Add New Model Using
Editor checkbox, and then click OK.
Simplorer creates new SPICE model entity declarations bearing the chosen model name,
and adds the model to the Project Managers Definitions>Models folder.
Note
b.
You can open the model for editing from the Project Manager by double-clicking the
model, or by right-clicking the model and selecting Edit Model from the context menu.
To add a new model to the current project using the SPICE Model Editor window,
4-119
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
ensure that the Add New Model Using Editor checkbox is checked (the default setting).
Click OK to close the dialog box.
The SPICE Model Editor opens displaying new SPICE model entity declarations in a tab
bearing the model name you chose above.
Note
When the SPICE Model Editor window is active, the Project Manager displays the
Model Editor tab.
6.
7.
8.
When finished editing, select SPICE Model Editor>Update Project to add the model to the
project. Refer to Importing Simulation Models for additional details.
Related Topics
The SPICE editor provides a context menu, which you can open by right-clicking in the editor window.
Note
The SPICE editor context menu commands given below are also used in other Simplorer
text editors such as the SML, VHDL-AMS, C, and Modelica model editors.
In addition to standard Cut, Copy, Paste, and Select All commands, other context menu commands include:
Comment Line(s) select one or more lines of code in the editor and apply this command
to change the code lines into comment statements.
Uncomment Line(s) select one or more commented lines of text in the editor and apply
this command to change the lines into code statements.
Find opens a Find dialog box in which you can enter strings to search for in the editor
window. Controls allow you to make the search case-sensitive, and to control the direction
of the search relative to the current cursor position.
Replace similar to the Find command and dialog box, with the additional capability to
include a Replace with string.
Go To Line Refer to Going to a Numbered Line for details.
Related Topics
Text Editor Options
4-120
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
4-121
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
4-122
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
Click the Add Model button to open the Add Model dialog box.
3.
4.
Type the new Modelica model name in the Model Name field.
5.
Simplorer gives you the choice of adding the new model directly to the current project (for
later editing, perhaps), or of adding the model using Simplorers Modelica Model Editor.
Choose one of the following:
a.
To add a new model directly to the current project, uncheck the Add New Model Using
Editor checkbox, and then click OK.
Simplorer creates new Modelica model entity declarations bearing the chosen model
name, and adds the model to the Project Managers Definitions>Models folder.
Note
b.
You can open the model for editing from the Project Manager by double-clicking the
model, or by right-clicking the model and selecting Edit Model from the context menu.
To add a new model to the current project using the Modelica Model Editor window,
4-123
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
ensure that the Add New Model Using Editor checkbox is checked (the default setting).
Click OK to close the dialog box.
The Modelica Model Editor opens displaying new Modelica model entity declarations in
a tab bearing the model name you chose above.
Note
When the Modelica Model Editor window is active, the Project Manager displays the
Model Editor tab.
6.
7.
8.
When finished editing, select Modelica Model Editor>Update Project to add the model to
the project. Refer to Importing Simulation Models for additional details.
Related Topics
The Modelica editor provides a context menu, which you can open by right-clicking in the editor
window.
Note
The Modelica editor context menu commands given below are similar to those used in
other Simplorer text editors such as the SML, VHDL-AMS, C, and SPICE model
editors.
In addition to standard Cut, Copy, Paste, and Select All commands, other context menu commands include:
Comment Line(s) select one or more lines of code in the editor and apply this command
to change the code lines into comment statements.
Uncomment Line(s) select one or more commented lines of text in the editor and apply
this command to change the lines into code statements.
Find opens a Find dialog box in which you can enter strings to search for in the editor
window. Controls allow you to make the search case-sensitive, and to control the direction
of the search relative to the current cursor position.
Replace similar to the Find command and dialog box, with the additional capability to
include a Replace with string.
4-124
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Related Topics
Text Editor Options
4-125
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
4-126
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Adding a Package
The following procedure outlines the steps for adding a package to a project using Simplorers
Package Editor.
1.
2.
Click the Add Package button to open the Add Package dialog box.
3.
4.
5.
Simplorer gives you the choice of adding the new model directly to the current project (for
later editing, perhaps), or of adding the model using Simplorers Package Editor. Choose one
of the following:
a.
To add a new model directly to the current project, uncheck the Add using editor checkbox, and then click OK.
Simplorer creates a new VHDL-AMS package bearing the chosen package name, and
adds the model to the Project Managers Definitions>Packages folder.
Note
b.
You can open the package for editing from the Project Manager by double-clicking the
package, or by right-clicking the package and selecting Edit Package from the context
menu.
To add a new package to the current project using the Package Editor window, ensure
that the Add using editor checkbox is checked (the default setting). Click OK to close the
dialog box.
4-127
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The Package Editor opens displaying new VHDL-AMS package entity declarations in a
tab bearing the package name you chose above.
Note
When the Package Editor window is active, the Project Manager displays the Model
Editor tab.
6.
7.
When finished editing, select Vhdl Package Editor>Update Project to add the model to the
project.
Editing a Package
The Package Editor can be used to revise a package. To revise a package:
1.
2.
Locate the package you wish to edit and click on it to highlight it.
3.
Click the Edit Package button to open the package in the Package Editor.
4.
5.
6.
Select Vhdl Package Editor>Check Syntax to check the syntax of the SML model.
2.
Simplorer checks the code for syntax errors. Simplorers Message Manager window displays
the results of the syntax check. If errors are reported, clicking on them should take you to the
associated lines of code in the editor window.
4-128
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
b.
2.
If you wish to encrypt the package, click the Encrypt radio button, then select the desired
encryption resource in the Resource Name list.
You can also add a new encryption resource by clicking the Add button.
If you wish to encode the package, click the Encode radio button. Encoding prevents the
package text from being viewed.
Related Topics
Using the Password Manager
Time License Settings
Encryption Settings Dialog Box
4-129
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
4-130
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
5
Simplorer Components
A simulation model (SML description) can consist of different component types. A component that
is used in an SML description can be an internal (simulator immanent) component, a C-Model, a
VHDL-AMS model, or an SML model.
The following sections explain the various types of models found in the component libraries, and
provide detailed data on each component.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
6
Device Characterization Wizard
The semiconductor device characterization wizard aids in the setup of NPN-type IGBT and Power
MOSFET device models to operate according to the device manufacturers' specifications. The
wizard accepts inputs for various quantities available from the device manufacturer and fits a
numerical model to the data to provide accurate device simulation over a range of device excitations and thermal conditions.
The following types of semiconductor models are available for parameter fitting:
Average IGBT
Basic Dynamic IGBT
Advanced Dynamic IGBT
Power MOSFET (Basic Dynamic model)
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Characterize Device
Characterize
Device
Component
Information
2.
3.
To characterize a new device, select the New Device radio button, then select the Device
type: Average IGBT, Basic Dynamic IGBT, Advanced Dynamic IGBT, Power MOSFET.
To continue device characterization from a previous session, select the Continue device
characterization radio button and enter the file name from the previous session or browse
to the file using the ellipsis(...) button.
Click OK to start the device characterization wizard for the specified device. The following
topics describe the flow of the device characterization wizard for each device type, and provide
links to detailed information for each wizard dialog box. Choose the appropriate topic for your
specified device type to continue the characterization process.
Related Topics
Device Characterization Wizard Overview
6-2 Device Characterization Wizard
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Component Information
Nominal Working Point
Values
Breakthrough Values
Freewheeling Diode
Thermal Model
Transfer Characteristics
Energy Characteristics
Output Characteristics
Validation
Freewheeling Diode
Characteristics
Model Parameters
Related Topics
Characterize Device
Basic and Advanced Dynamic IGBT Characterization Flow
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Component Information
Nominal Working Point
Values
Breakthrough Values
Freewheeling Diode
Thermal Model
Transfer Characteristics
Output Characteristics
Dynamic Param.
Validation
Freewheeling Diode
Characteristics
Model Parameters
Related Topics
Characterize Device
Average IGBT Characterization Flow
Tutorial for Characterizing a Basic Dynamic IGBT
6-4 Device Characterization Wizard
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Component Information
Nominal Working Point
Values
Breakthrough Values
Source-Drain Diode
Thermal Model
Transfer Characteristics
Output Characteristics
Dynamic Param.
Validation
Source-Drain Diode
Characteristics
Model Parameters
Related Topics
Characterize Device
Tutorial for Characterizing a Power MOSFET
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Component Information
Characterize
Device
Component
Information
Nominal
Working Point
This information will generally describe the component. The Component Name will be used in the
schematic or in the SML file name to identify the component for later use.
Note
When naming the component, spaces are not valid characters. Using a space in the
component name will result in an error. The valid characters for the component name are
a-z, A-Z, 0-9 and the underscore character "_".
1.
2.
To define the Switching Energy and Delay Time Measurement criteria for a Basic Dynamic or
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Advanced Dynamic IGBT click on the ellipsis button [...] next to the Manufacturer field to
open the Manufacturer Data dialog box in which you can set the start and stop times for Eon,
td(on), Eoff, and td(off) for the named manufacturer.
Note
These criteria are not enabled for Average IGBT device characterization.
The Manufacturer Data dialog allows the user to select the start and stop criteria for the
switching times and energies from predefined lists. Because each manufacturer uses different
criteria for these parameters, it is important to select the criteria which match the manufacturer
of the device being characterized to help ensure that the configured device converges to the
desired characteristics. Some choices are not yet available in the characterization tool. In such
cases an approximation must be made. In most cases, the off-time is defined as starting from
when VGE starts to drop to when IC has dropped sufficiently; while the on-time is defined as
starting from when VGE starts to increase to when IC has sufficiently increased.
Note
Note
The following procedures suggest approximations for several manufacturers. If you have
questions about these approximations, please contact ANSYS support or e-mail:
na-simplorerigbt-support@ansys.com
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Vendor
ABB
Guidelines
ABB defines its switching criteria in its Applying IGBTs Application Note on its website.
ANSYS suggests the following on-time settings :
(This time is given on the datasheet as the sum of td(on) and tr.)
The on-switching energy loss, Eon, is measured as starting at 10% after zero-crossing of rising
VGE and stopping at 10 to 20 microseconds beyond this point. The off-switching energy loss,
Eoff, is defined as starting at 90% of falling VGE and stopping at stopping at 10 to 20
microseconds beyond this point.
Due to limitations of the device characterization tool, the following settings should provide an
approximation of these energy parameters:
ANSYS suggests the following on-switch energy settings :
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Vendor
Guidelines
Hitachi
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Vendor
Infineon/
Eupec
Guidelines
Infineon has defined its switching criteria for the switching times in the Infineon application
note AN2007-4, Figure 3.
ANSYS suggests the following on-time settings :
(This time is given on the datasheet as the sum of td(on) and tr.)
NOTE: A newer application note (AN2011-05, Figure22) describes a changed measurement for
the Off-switch time which doesn't have a time gap between the end of td(off) and the beginning
of tf. For those newer devices the selection should be:
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Vendor
IXYS
Guidelines
IXYS has defined its switching criteria for the switching times in its IGBT application note
IXAN0063.
ANSYS suggests the following on-time settings :
(This time is given on the datasheet as the sum of td(on) and tr.)
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Vendor
Mitsubishi
Guidelines
Mitsubishi uses varying definitions for its switching criteria. The datasheets usually supply the
definitions that were used. Regrettably, many datasheets do not supply the values of Eon and
Eoff, so it will not be possible to fit for these characteristics. Consequently, the user need not fit
for these values in the Dynamic Model Input section.
ANSYS suggests the following on-time settings :
(This time is given on the datasheet as the sum of td(on) and tr.)
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Vendor
Semikron
Guidelines
Semikron defines its switching criteria in its Technical Applications datasheet on its web-site.
ANSYS suggests the following on-time settings :
(This time is given on the datasheet as the sum of td(on) and tr.)
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Vendor
Guidelines
Fuji
Fuji has defined its switching criteria for the switching times in its IGBT Application notes
(REH983).
Many datasheets do not supply the values of Eon and Eoff, so it will not be possible to fit for
these characteristics. The user then needs to not fit for these values in the Dynamic Model
Input section.
The on-time is defined as the time from the input signal rising above the threshold voltage to
90% of rising Ic. The starting time is not yet available in the wizard.
ANSYS suggests starting at 10% of rising VGE and stopping at 90% of Ic. This time is found
in the data-sheet as toff.
The off-time is defined as starting when the input signal drops below the threshold voltage and
stops at 10% of falling Ic. The starting time is not yet available in the wizard. ANSYS suggests
starting at 90% of VGE and stopping at 10% of Ic. This time can be found in the data-sheet as
toff.
Fuji regularly does not supply the switching losses Eon and Eoff. Nor do there appear to be
definitions for the losses in the application notes. A probable good approximation is to start Eon
at 10% of rising VGE and stop at 1% of falling VCE. A probable good approximation is to
start Eon at 90% of falling VGE and stopping at 1% of falling Ic.
3.
Click Next to continue characterizing the device (See Nominal Working Point).
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Nominal
Working Point
Breakthrough
Values
The nominal working point of the device is the point commonly used when testing a device for
switching parameters such as switching speed, rise time, delay, etc. Ideally, this point should be the
condition in which the user is planning to operate the IGBT, but it is more important to have all the
data necessary for the characterization available at these conditions. Look to the area of the manufacturers specification regarding the test conditions for the switching times and losses to locate the
Nominal Working Point conditions.
Enter the information required to define the Nominal working point for the device:
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Refer to the Vendor-Specific Guidelines for Nominal Working Point Values below when
making the following settings
Nominal Reference Temperature This will generally be listed as Tc for the maximum
temperature test conditions for the switching characteristics,
[oC]
for example 125oC.
Collector-Emitter Saturation
Voltage under Nominal
Condition [V]
On-Switch Gate-Emitter (Drive) Listed as Vge in the switching characteristics test conditions.
Voltage [V]
Off-Switch Gate-Emitter (Drive) This parameter may be listed in the switching characteristics
Voltage [V]
test conditions; however, it often is not. A rule of thumb is to
use the negative of the Vge(On) value listed above.
When finished, click Next to continue characterizing the device (See Breakthrough Values).
Vendor-Specific Guidelines for Nominal Working Point Values
Refer to the follow vendor-specific guidelines when setting nominal working point values:
Vendor
Guidelines
ABB
Hitachi
Infineon
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Vendor
Guidelines
IXYS
Mitsubishi
Semikron
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Breakthrough Values
Nominal
Working Point
Breakthrough
Values
Half-Bridge Test
Circuit
In the Breakthrough Values dialog, you can enter parameters related to the device breakthrough or
breakdown performance. The data needed to characterize breakthrough values is missing in most
datasheets. In such cases disabling this feature is recommended. In order to ignore the breakdown
of the device, check the Disable Breakthrough Model checkbox. This has the effect of setting the
parameters to very high values, thus preventing the model from simulating the breakthrough effects
of the device.
In order to simulate the breakthrough effects, enter the parameters listed in the table below.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Breakthrough collector-emitter
voltage (V)
This value should be greater than the maximum collectoremitter voltage (V), i.e., Vce br > Vce max. A good rule of
thumb is to use twice the value for Vce max. In order to
determine this value, refer to the Safe Operating Area
diagram provided for the device. See Point A on the sample
diagram below.
Breakthrough junction
temperature (oC)
Breakthrough gate-emitter
voltage (V)
This value should be set greater than the value for Vge (On)
specified in the Nominal Working Point dialog box.
Collector-emitter resistance after This value represents the collector-emitter resistance of the
fault (Ohm)
device after a fault has occurred. Use the default value unless
the device vendor can supply a specific value.
Gate-emitter resistance after
fault (Ohm)
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Point B
Point A
When finished, click Next to continue characterizing the device (Half-Bridge Test Circuit).
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Half-Bridge
Test Circuit
Transfer
Characteristics
Choose the Half-Bridge Test Circuit Conditions parameter settings for the IGBT type being characterized:
Half-Bridge Test Circuit Condition for a Basic Dynamic or Advanced Dynamic IGBT
Note
Refer to the Vendor-Specific Guidelines for Basic Dynamic IGBT Half-Bridge Test
Circuit Condition below when making the following settings
Device Characterization Wizard 6-21
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
External Gate Capacity Cge ext This value should remain at the default value unless specified
(F)
in the manufacturers specification. Default value is zero.
Check the Use default values checkbox to apply the default values to the device being characterized.
When finished, click Next to continue characterizing the device (Transfer Characteristics).
Vendor-Specific Guidelines for Basic Dynamic IGBT Half-Bridge Test Circuit Condition
Refer to the follow vendor-specific guidelines when setting values:
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Vendor
ABB
Guidelines
R_tot is given by R_cc_ee or half of R_cc_ee in the datasheet, depending if
the value is per switch or for the whole module.
L_tot is given by half of Lsce in the datasheet, depending if the value is per
switch or for the whole module.
L_extern can be listed as Ls in the measurement conditions of Eon and Eoff.
Rg_on and Rg_off are usually listed as RG in the measurement conditions of
the switching times and energies.
Cge_ext is usually not listed. If not listed, 1pF is a good approximation.
Hitachi
Infineon
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Vendor
IXYS
Guidelines
R_tot is generally not supplied; a default value of 0 is then appropriate.
L_tot is generally not supplied; a default value of 0 H is then appropriate.
L_extern is generally not supplied; a default value of 30 nH is then
appropriate.
Rg_on and Rg_off are usually given as RG in the measurement conditions of
the switching times and energies.
Cge_ext is usually not listed. If not listed , 1pF is a good approximation.
Mitsubishi
Semikron
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Not applicable.
Not applicable.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
External Gate Capacity Cge_ext This value should remain at the default value of zero unless
(F)
specified in the manufacturers specification.
Check the Use default values checkbox to apply the default values to the device being characterized.
When finished, click Next to continue characterizing the device (Transfer Characteristics).
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Transfer Characteristics
Half-Bridge
Test Circuit
Transfer
Characteristics
Output
Characteristic
In the Transfer Characteristics dialog box, each tab corresponds to one transfer characteristic
curve, i.e., Ic=f(Vge) at a specific temperature. These characteristics are obtained from the typical
transfer characteristic curves supplied by the manufacturer as shown in the example below.
If the transfer characteristics are not supplied in the datasheet, enough points usually can be
extracted from the output characteristics to get a good fit. To do so, one takes the current Ic at the
highest possible VCE (when the current is saturated, i.e., it ceases to increase as VCE is increased)
for at least three different values of VGE.
The Characteristic Data section allows you to enter curves or work with the data for a specific curve selected on the tabs.
The Boundary Conditions section is used to specify the junction temperature (Tj) and the
Collector-Emitter Voltage (Vce) associated with each curve.
The Fitting Ranges section allows you to specify the range of the data to use when performing
the fitting. Initially, the values are automatically filled with the maximum and minimum cur-
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
In some cases data sheets provide graphs for the transfer characteristic that far exceed
the regular range of working conditions of the IGBT. This has a negative influence on
the quality of the curve fitting by making the fitting process to focus on the high current
area. Therefore, the data points that are used for the fitting of the transfer characteristic
should be limited to approximately three times INOM.
In the Fitting Characteristic Order section two set of transfer characteristic data need to be
specified. The transfer characteristic under nominal junction temperature is mandatory, while
the characteristic at a different temperature is used to calculate correction coefficients when the
junction temperature of the device is different from the nominal temperature. If the data for the
latter are not available, the Not Used option should be selected in the pull down menu.
In the Fitting section, you perform the fitting of the model to the characteristic curve data and
validate the results.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
When finished, click Next to continue characterizing the device (Output Characteristic).
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Validate
Show Result
Show Log
Start Fitting
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Output Characteristic
Transfer
Characteristics
Output
Characteristic
Freewheeling
Diode Charact.
In the Output Characteristics dialog box, each tab corresponds to one output characteristic curve,
i.e., Ic=f(Vce) at a specific temperature. These characteristics are obtained from the output characteristic curves supplied by the manufacturer as illustrated in the example characteristic shown
below.
The Characteristic Data section allows you to enter curves or work with the data for a specific curve selected on the tabs.
The Boundary Conditions section is used to specify the junction temperature (Tj) and the
Gate-Emitter Voltage (Vge) associated with each curve.
The Fitting Ranges section allows you to specify the range of the data to use when performing
the fitting. Initially, the values are automatically filled with the maximum and minimum current values from the curve.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
In the Fitting Characteristic Order section, four sets of transfer characteristic data can be
specified.
The Full Saturated Branch output characteristic under nominal junction temperature is
mandatory, while the characteristic at a different temperature is used to calculate correction coefficients when the junction temperature of the device is different from the nominal
temperature. If the data is available, use the value of the gate voltage which corresponds to
the one used in the on-switch switching measurements (Vge on from the Nominal Working Point Values dialog).
The Semi Saturated Branch output data is used to calculate correction coefficients for
the output when not fully voltage saturated. The best choice for this data is a characteristic
showing some flattening of the output curve as shown above for the VGE=8Vcase at
25oC. The Not Used option should be selected in the pull down menu for any of the data
items that are not available. The semi-saturated branch is always measured at a lower
value of VGE than the fully saturated branch.
In the Fitting section, you perform the fitting of the model to the characteristic curve data and
validate the results.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
When finished, click Next to continue characterizing the device (Freewheeling Diode Characteristics).
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
for the latter are not available, the Not Used option should be selected in the pull down menu, as
shown in the figure below.
For the Output Characteristic curves, you must enter a Full and Semi saturated curve. Looking at
the example characteristic shown below, the curve for Vge=18V would be the saturated curve
while the Vge=15V or Vge=12V would be acceptable choices for the semi-saturated case.
Validate
Show Result
Show Log
Start Fitting
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Freewheeling
Diode Charact.
IGBT Thermal
Model
In the Freewheeling Diode Characteristics dialog box, each of the tabs corresponds to one freewheeling diode characteristic curve, i.e., If = f(Vf) at a specific junction temperature Tj. These
characteristics are obtained from the forward diode characteristic supplied by the device manufacturer as illustrated below.
The Characteristic Data section allows you to enter curves or work with the data for a specific curve selected on the tabs.
The Boundary Conditions section is used to specify the junction temperature (Tj) associated
with each curve.
The Fitting Ranges section allows you to specify the range of the data to use when performing
Device Characterization Wizard 6-37
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
the fitting. Initially, the values are automatically filled with the maximum current and voltage
values from the curve.
In the Fitting Characteristic Order section, two sets of characteristic data need to be specified. The characteristic under nominal junction temperature is mandatory, while the characteristic at a different temperature is used to calculate correction coefficients when the junction
temperature of the device is different from the nominal temperature. If the data for the latter
are not available, the Not Used option should be selected in the pull down menu.
In the Fitting section, you perform the fitting of the model to the characteristic curve data and
validate the results. In addition, the use of the diode in the model may be disabled by selecting
the Disable Diode checkbox.
For more information, click on an area of the image map below.
When finished, click Next to continue characterizing the device (IGBT Thermal Model).
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Validate
Show Result
Show Log
Start Fitting
In addition, the Disable Diode checkbox may be used to remove the effects of a freewheeling diode
from the completed model.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Disabling the IGBT Thermal Model disables all thermal modeling for the device and switches
the IGBT into isothermal mode.
You may incorporate IGBT modeling but independently disable the thermal modeling of the
freewheeling diode.
You may enable thermal pins for the model, to externally model the effects of the heat sink,
affecting both the IGBT and the freewheeling diode.
You may select the topology of the internal thermal network.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
IGBT Thermal
Model
FW Diode
Thermal Model
In order to model the device's thermal effects the IGBT model uses a rational polynomial which is
represented internally by a combination of four RC elements.
The IGBT Thermal Model dialog box allows you to define the coefficients for elements of the
internal thermal network by extracting them from the manufacturers Transient Thermal Impedance data or by directly entering the Fractional Coefficients in a data table.
By default, the table to enter the Fractional Coefficients is enabled. Select the Use Transient
Thermal Impedance radio button to enable the entry of transient thermal impedance data into a
data table.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
When finished, click Next to continue characterizing the device (FW Diode Thermal Model).
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Select the Use Transient Thermal Impedance radio button in the Fitting Mode section of the
dialog box as shown below.
2.
In the Transient Thermal Impedance characteristic data curve section of the dialog box,
enter the thermal response curve as described in Working with Characteristic Data.
The thermal impedance of the IGBT is entered in the format of data pairs. An example of the
thermal impedance in the data sheet is shown in the figure below. Note in this case, the thermal
impedance required by the device characterization tool is the thermal response under single
pulse excitation.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Select the Use Fraction Coefficients radio button in the Fitting Mode area of the dialog box
as shown below.
The data table to enter the thermal coefficients is enabled for editing.
2.
Enter the thermal coefficients, i.e., thermal resistance Ri and time constant i here (please
refer to the IGBT Average model reference for more information on the thermal model). These
coefficients must be supplied by the device manufacturer in order to use either fractional
expansion model.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Show Result
Show Log
Start Fitting
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
FW Diode
Thermal Model
Average Model
Dynamic Model
Input
Basic Dynamic Model
The Freewheeling Diode Thermal Model dialog box is similar to the IGBT Thermal Model. The
freewheeling diode transient thermal impedance or the fraction thermal coefficients can normally
be found in the manufacturers' data sheet.
Note
Certain aspects of the thermal modeling are defined commonly for the IGBT and the
freewheeling diode (e.g. topology of the thermal model, type and parameters of the
heatsink, and type of the thermal output). Therefore those parameters are accessible only
on the thermal parameter page for the IGBT.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Click on an area of the image map below for more detailed information.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Energy
Characteristics
Validation
In the Energy Characteristics page, you need to enter the data for the calculation of the energy
correction coefficients for the Average IGBT model. The switching energy data under at least seven
different working conditions are required to calculate the complete set of energy correction coefficients.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The first row is the set of data under the nominal working conditions.
Each subsequent row may have only one change in the working condition, e.g., temperature T
is different from the value in the nominal values row. The required variation for each row is
listed in the Note column of the table and is described below.
Additional rows may be added.
If any of these data sets are not available, the Enable check box for this row should be unchecked
and the corresponding coefficients will remain at their default values (please refer to the IGBT
Average model reference for more information on the algorithm of the switching energy calculation). Additional information provided will be used to fine tune these coefficients.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The 2nd row is data at a different temperature Tj from the nominal value. This row of data is
used to calculate the temperature correction coefficient. In this row, only the value of Tj and
the switching energies are editable. The rest of the data are automatically copied from the 1st
row.If this set of data is not available, the Enable check box should be unchecked and the temperature correction coefficient will remain at its default value.
The 3rd row is data at a different collector-emitter voltage Vce. This row of data is used to calculate the voltage correction coefficient. In this row, only the value of Vce and the switching
energies are editable. The rest of the data are automatically copied from the 1st row. If this set
of data is not available, the Enable check box should be unchecked and the voltage correction
coefficient will remain at its default value.
The 4th and the 5th row are data at different collector current Ic: one at a higher current than
the nominal Ic and the other at a lower value. These two rows of data are used to calculate the
coefficients for doubled-sided current correction function (please refer to the IGBT Average
model reference for more information). In these two rows, only the value of Ic and the switching energies are editable. The rest of the data are automatically copied from the 1st row. If any
of these sets of data is not available, the Enable check box should be unchecked and the corresponding current correction coefficients will remain at its default value.
The 6th and the 7th row are data at different gate resistances: one at a higher resistance than the
nominal Rg_on or Rg_off and the other at a lower value. These two rows of data are used to
calculate the coefficients for doubled-sided gate resistance correction function (please refer to
the IGBT Average model reference for more information). In this row, only the value of
Rg_on, Rg_off and the switching energies are editable. The rest of the data are automatically
copied from the 1st row. If any of these sets of data is not available, the Enable check box
should be unchecked and the corresponding gate resistance correction coefficients will remain
at its default value.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Dynamic Model
Input
Dynamic Param.
Validation
In the Dynamic Model Input page, you need to enter the data for the calculation of the energy correction coefficients and switching delay times for the Basic and Advanced Dynamic IGBT models.
The switching energy data under at least six different working conditions are required to calculate
the complete set of energy correction coefficients.
The first row is the set of data under the nominal working conditions.
Each subsequent row may have only one change in the working condition, e.g., temperature T
is different from the value in the nominal values row. The required variation for each row is
Device Characterization Wizard 6-51
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Eoff
Ton
Toff
Residue Fitting of the nominal working point must converge before the extraction process can
proceed to other working points. Failure to converge on any other working point will
warn you of the failure and provide you with the option to continue the extraction
process with other working points.
Changing the residue will allow you to place more or less emphasis on fitting to a set
of parameters.
Weights can be adjusted for the switching energies, Eon and Eoff, and for the delay times, Ton and
Toff. A higher Weight gives a higher importance to more precisely fit to that particular value. A
default weight of 1 is set for these parameters.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
It is possible to define the Switching Energy and Delay Time Measurement criteria by clicking on
the Measurement button to open the Measurement Data dialog box in which you can set the start
and stop times for Eon, t(on), Eoff, and t(off) for the device being characterized.
Note
The Measurement Data dialog box contains the same settings as those in the
Manufacturer Data dialog box (Refer to Component Information).
When finished, click Next to continue characterizing the device (Dynamic Param. Validation).
Dynamic Parameters of the Advanced Dynamic IGBT Model
The first group of parameters is the same as those used for the Basic Dynamic IGBT model.
Eon
Eoff
Ton
Toff
In addition to the basic dynamic parameters the following table lists the advanced dynamic parameters whose values can be determined without the need of a template function fitting. These values
result from either integration or interpolation of the simulated wave form.
Err
Qrr
Flux
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Cos
Vos
TdG
TrG
TsG
TfG
TdI
TrI
TsI
TfI
TdV
Voltage wave form delay time before voltage rise (off switch)
TrV
TsV
Voltage wave form delay time before voltage fall (on switch)
TfV
I C = I C I LOAD is positive.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The value QRR includes the charge of the capacitive components of the upper half bridge transistor and the excess charge storage of the free wheeling diode parallel to the upper transistor at
the moment of IRR zero crossing. It is the remaining excess charge at this time.
Flux:
Another integral value is the area under the voltage overshoot. Defining the voltage overshoot
as: V = V V ,
CE
then
CE
CC
FLUX = VCE ( t ) dt
if the voltage overshoot is positive or maximum until the next on switch trigger occurs. This
overshoot is caused by stray inductances of the circuit from the power source to the half
bridge, throughout the half bridge back to the power source ground. From FLUX it is possible
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
to calculate the effective stray inductance L . Using FLUX module stray inductances can be
adapted to the best fit.
Cos:
To adopt the parasitic capacitances and the charge controlling life time parameters TAUFD
and TAUBE according to given
value COS =
di
values of
dt
IC
I C
I LOAD (100% ) is useful.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
di
at the moment of zero crossing
dt
the overshoot duration, fit automatically to preserve the excess charge QRR.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Vos:
di
VCE
.
VCC (100% )
( t ) = V1 ( t ) , the output
As constraints the device characterization must provided the level definition. Each trigger level
can accept values in the range of 0.0 to 1.0. The resulting time values are all related to the on
switch or the off switch trigger. By combination of these 12 time durations it will be possible
to generate very different measurement conditions which can be used as fitting targets or for
6-58 Device Characterization Wizard
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
comparison between measurement and simulation. The following picture gallery gives an
overview of the existing definitions:
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Dynamic Param.
Validation
Model
Parameters
In the Dynamic Parameter Validation page, you can check the accuracy of the parameterized
component through the validation of switching energies. The table is automatically populated with
data at the nominal and difference temperatures used to create the model. To the left of the Enable
button are the switching energies entered for the model creation, and to the right of the Enable button are those calculated through the dynamic model for validation.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
Click Show Log to view a copy of the simulation log showing both the Datasheet value and
the Simulation results as well as the Error percentage between the two sets of data.
Note
3.
You can selectively enable or disable the validation process for any row in the table by
selecting or clearing the Enable button
When finished, click Next to continue characterizing the device (Model Parameters).
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Validation
Model
Parameters
In the Average IGBT Validation page, you can check the accuracy of the parameterized component
through the validation of switching energies.
2.
Enter a set of parameters associated with a working point where known values of the energies
are available.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
3.
Click Validate to use the model, with the parameters entered, to calculate the energies in a test
configuration.
Entries on the left hand side of the Enable check box are fully editable, and the entries on the
right hand side of the check box are filled in after the validation process is finished. The validation is performed through a series of transient analysis under the specified working conditions.
4.
Click Show Log to view a copy of the simulation log showing both the Datasheet value and
the Simulation results as well as the error percentage between the two sets of data.
Note
5.
You can selectively enable or disable the validation process for any row in the table by
selecting or clearing the Enable button
When finished, click Next to continue characterizing the device (Model Parameters).
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Model Parameters
Validation
Average Model
Model
Parameters
Dynamic Param.
Validation
Basic Dynamic Model
The Model Parameters page shows the extracted values of the parameters. The allowed range of
the parameters, their default values, and a brief description are also provided.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
To complete the characterization process and place the model in the schematic;
a.
Click Finish.
The Model Parameters dialog box closes.
b.
c.
d.
2.
To complete the characterization process and create a stand-alone SML model of the device:
a.
Click on the Create SML button to create a parameterized Average, Basic Dynamic or
Advanced Dynamic IGBT component.
The Save As dialog box is displayed.
b.
The component name specified in the Component Information dialog box is used as the
file name.
c.
Browse to the location you wish to store the component model and click Save. A standDevice Characterization Wizard 6-65
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Click Finish to complete the Characterize Device wizard and place the component on the
schematic, or click Cancel to complete the wizard without placing the component.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Click this icon to display the Choose Characteristics dialog box for selecting and plotting the current characteristic curves.
Click this icon to delete the currently selected characteristic tab and all associated data.
Related Topics
Transfer Characteristics
Output Characteristic
Freewheeling Diode Characteristic
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Click the Show Results button (on the Transfer, Output, or FWD wizard pages).
2.
The Choose Characteristics dialog box allows you to select the characteristics to be displayed. Select the characteristic data to display by selecting or clearing the checkbox in the
show column for any curve.
3.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Related Topics
Transfer Characteristics
Output Characteristic
Freewheeling Diode Characteristic
Working with Characteristic Curve Data
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The information in this section on working with data curves is also applicable to the
Transient Thermal Impedance section on the IGBT Thermal Model dialog box,.
Characteristic curves may be opened, saved or imported using the command icons
listed in the table below.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Click in any data cell to make the cell editable and change the data for that entry in the table.
Click on the checkbox next to any data point in the table to Enable/Disable the data point during the fitting.
Select one of the command icons
below.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Validate
To validate the extracted parameters, the parameterized IGBT model is placed in the same testing
circuit configuration as that used by the manufactures. Simulation results are placed in the same
plot as the measurement data for easy comparison. To perform a validation:
1.
2.
In the Choose Characteristics dialog box, select or unselect any additional characteristics for
plotting by setting or clearing the Show checkbox next to the characteristic name.
3.
Click OK to dismiss the dialog box and plot the results of the validation as illustrated below.v
In the legend, traces started with Simu are simulation results, and the others are measurement data.
Related Topics
Transfer Characteristic
Output Characteristic
Freewheeling Diode Characteristic
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Show Result
The Show Results functionality provides a way to visually compare the measurement and simulation data. The results plotted are the data input from measurement, and the results generated using
the fitted polynomials from the fitting process. The plot is identical to the plot shown after completing the fitting process.
Related Topics
Transfer Characteristic
Output Characteristic
Freewheeling Diode Characteristic
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Show Log
The Show Log button is enabled after the curving fitting process is finished. This button displays a
fitting log with the final fitted parameter values as well as the accuracy information, as shown
below.
In the fitting log, the fitting status is given, i.e., Fitting Successful or Fitting Failure. In this example, the transfer characteristic data at both nominal working temperature (Tj=125oC) and a different working temperature (Tj=25oC) are fitted to derive the values of the set of parameters,
which determines the transfer characteristics of the IGBT model, and the working point correction
coefficients. If only the characteristic data at the nominal temperature are provided, the working
point correction coefficients will be set to 0.0 (Please refer to the IGBT Average model reference
for more information). The asymptotic standard fitting error for each parameter is listed in the fitting log, in both absolute and relative format.
Related Topics
Transfer Characteristic
Output Characteristic
Freewheeling Diode Characteristic
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Start Fitting
The fitting process involves adjusting a set of standard parameters to the selected curves. Once the
parameters are adjusted to fit to the characteristic curves, the parameters become the basis for the
IGBT model. The curves selected in the Fitting Characteristic Order section of the dialog are
used for the fitting process.
1.
2.
3.
The Choose Characteristics dialog box is displayed with the fitted curve pre-selected.
4.
Click OK to dismiss the dialog and display the fitted curves as shown below.
The characteristics data both from the measurement and the calculation are displayed in the
same plot for comparison.
In the legend, traces started with Gen are calculated results using the derived polynomials, and
the others are measurement data.
Related Topics
Transfer Characteristic
Output Characteristic
Freewheeling Diode Characteristic
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Import Model
Data may be imported from a parameterization wizard file using the Import Model... button.
To import data from an existing file:
1.
2.
Use the file browser to locate and open the .ppm file with the desired data.
The Import Data dialog is displayed.
Section items listed in the dialog depend upon the type of device model and the data available
in the selected file.
3.
Click one or more checkbox in the Check column to indicate what data is to be imported.
4.
Related Topics
Save Model
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Save Model
In order to save the state of the Device Characterization wizard at any point:
1.
2.
Enter a File Name for the saved parameterization file and click Save.
The parameterization may be recovered at a later time using the Continue Device Characterization option in the Characterize Device dialog, or by importing sections of data using the Import
Model... button.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Click Cancel.
2.
Click the Yes button in the confirmation dialog to Abort the Changes and the close wizard.
Click No to return to the wizard.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
First, determine the nominal conditions for the device. Ideally, these are the conditions at
which the device will be operated. Practically, these conditions should be those for which
you have the most information closest to the desired operating conditions. Search the data
sheet and look at all available data to decide on the nominal point. The measurement conditions for the dynamic characteristics (Eon, Eoff, td(on), and td(off)) are a generally
good choices.
DC characteristics are parameterized using the transfer and output characteristics, which
can be found as plots in the sheet.
Dynamic behavior is characterized using the switching energies and times, which can be
found either in a table or read from a plot.
The IGBT wizard documentation includes information and recommended settings for
several manufacturers. Make sure to consult these sections in the documentation when
characterizing a device.
Related Topics
Using the Device Characterization Wizard for a Basic Dynamic IGBT
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
At any time during the characterization process you can save your progress using the
Save Model button.
A characterization can be loaded using the Import Model tab.
1.
In the Component Information [1/12] dialog box, enter the component name and define the
Manufacturer Data. The detailed documentation describes some specific settings for several
manufacturers. These are the measurement conditions for the dynamic characteristics. For
example, Infineon/Eupec uses the following settings:
2.
The Nominal Working Point Values [2/12] dialog sets nominal values at the devices working point. As mentioned above, ideally, these are the operating conditions for the device in the
design. Practically, these values should be the ones on the manufacturer data sheet with the
most information closest to the operating conditions. These are the conditions for which the
parameterized device will best match the measured characteristics. For Infineon/Eupec, generally pick the measurement conditions for the dynamic characteristics. Pick the values of VCE
and IC that are mentioned in the table next to the value of the turn-on energy, Eon. Select the
temperature for which you have the output characteristics in the plots section. VGE_on and
VGE_off can be found next to the value of Eon. Cin, the input capacitance, can be found in
the datasheet. Cr, the Feedback (Miller) capacitance can be found in the datasheet, it is sometimes refered to as reverse transfer capacitance. If the values cannot be found in the datasheet,
0 is a good default value, as the characterization tool will then pick a value using the other
device characteristics. Click Next to continue.
3.
On the Breakthrough Values [3/12] dialog, check Disable Breakthrough Model, as the
breakdown characteristics data are rarely available in a data sheet. Click Next to continue.
4.
The data needed for the Half-Bridge Test Circuit Conditions [4/12] dialog can generally be
found in the tabular section of the data sheet.
For example, for an Infineon/Eupec device:
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
5.
Rg is the internal gate resistance found in the datasheet. This value will be used as an
initial value during the dynamic characterization, it will not be the internal gate resistance the characterized device ends up with.
R_tot is given by R_cc_ee. If the value is given by module instead of by switch,
halve it. If the value is not on the sheet, 0 (zero) is a good default.
Ltot, is given by Lsce. If the value is given by module instead of by switch, halve it.
If the value is not there, 0 (zero) is a good default.
L_extern can be given by Ls in the test conditions for Eon. If the value is not there,
30 nH is a good value to use. The characterization wizard will parameterize this value
to find a good fit with the dynamic data.
Rg_on and Rg_off can be found next to the values of the switching energies Eoff and
Eon.
Cge is generally omitted and a default value of 1e-12F can be used.
Cload is sometimes found on the datasheet as load capacitance. Use 0 if it is missing.
When finished setting values, click Next to continue.
The Transfer Characteristic [5/12] dialog enables you to parameterize the threshold voltages
and transconductance of the IGBT. The data can be entered using SheetScan. To do so, use the
Load characteristics from Dataset Manager button
above the table and then click
SheetScan. Load the manufacturer data sheet .pdf file using the Picture>Load picture command.
b.
To define the first characteristic, select Curve>New and give names to the X-Axis
and Y-Axis in the Curve Settings dialog box. Click OK when finished.
c.
Make sure to note the temperature given on the plot. Then select several points on the
curve starting with the lowest X-value. Pick at least 4 points. When done, click
File>Export and then click the Dataset button in the resulting Save dialog.
d.
e.
When finished, click File>Exit to exit the SheetScan tool, saving the scan setup information, if desired.
f.
In the Datasets dialog, select the data you want to use at the nominal temperature and
click Done. The data is transferred to the Characteristic Data table in the Transfer
Characteristic [5/12] dialog. Make sure to enter the correct values for temperature
and Vce, which you recorded during the SheetScan measurements.
Device Characterization Wizard 6-81
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
6.
h.
Click Start Fitting to fit the characteristics, then examine the resulting plot to check
the match of the fit. Click Next to continue.
For Infineon/Eupec, the plot shows IC=f(VCE). The output characteristics of the semi-saturated branch are often missing at a different temperature.
a.
Add up to 4 characteristics, making sure to identify them with the correct values of
VGE and temperature.
b.
Select the plot at the nominal temperature and with Vge=VGE_on for the Full Saturated Branch (Tnom) field in the Fitting Characteristic Order panel, and one at a
lower value of Vge for the Semi Saturated Branch (Tnom) field, or select Not
Used, if the data is not available. Repeat this at a different temperature for
Vge=VGE_on and at a lower Vge in the corresponding Full Saturated Branch
(Tdiff) and Semi Saturated Branch (Tdiff) fields. The fit will be better if the current
does not saturate much for the semi-saturated curve, but the fitting algorithm will
work with either option.
c.
Click Start Fitting to start the fit and examine the plot to check the match of the fit.
Click Next to continue.
The Freewheeling Diode Characteristic [7/12] dialog enables you to parameterize the DC
characteristics of the diode. Ideally, you should enter the output characteristics at both the
nominal temperature and at a different temperature using SheetScan as outlined in Step 5.
Make sure to note the value of the temperature for each curve.
8.
If you also recorded plot data for a different temperature, click the Add new characteristic button
in the top right corner, then use the Load characteristics from
Dataset Manager button
above the table to load the additional data. Select the
plot in the first tab for the Nominal Temperature field of the Fitting Characteristic
Order panel. If you added a second set of data for a different temperature, you can
select this plot for the Different Temperature field, or select Not Used, if data is
available only for one temperature.
The Output Characteristic [6/12] dialog enables you to parameterize more of the IGBTs DC
characteristics. Ideally, enter the output characteristics at Vge=VGE_on (Full Saturated
Branch) and for Vge at a lower voltage (Semi Saturated Branch), for both the nominal temperature and at a different temperature using SheetScan as described in the Step 5. Make sure
to note the value of Vge and the corresponding temperature for each curve.
7.
g.
Generate two characteristic data sets, one at the nominal temperature and one at a different temperature, being sure to identify them with their corresponding temperatures.
b.
Select the plot at the nominal temperature in the Nominal Temperature field of the
Fitting Characteristic Order panel, and the plot at the different temperature in the
Different Temperature field, or select Not Used, if the data is not available.
c.
Click Start Fitting to start the fit and examine the plot to check the match of the fit.
Click Next to continue.
The IGBT Thermal Model [8/12] dialog allows you to parameterize the thermal impedance
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
9.
If the data sheet provides extracted values for ri and ti, which is the case for Infineon/
Eupec, enter these four value pairs in the Continued/Partial Fraction Coefficients table,
click Start Fitting, check the plot and press Next to continue.
If the data sheet does not provide extracted values for ri and ti,, select Transient Thermal
Impedance and enter the plot data for the thermal characteristics using SheetScan per the
instructions given in Step 5. The plot will show the impedance as a function of time. Make
sure to adjust the scale of the coordinate system in SheetScan to logarithmic if needed.
Select Start Fitting to start the fit and examine the plot to check the match of the fit. Click
Next to continue.
The Freewheeling Diode Thermal Model [9/12] dialog allows you to parameterize the thermal impedance of the diode.
If the data sheet provides extracted values for ri and ti, which is the case for Infineon/
Eupec, enter these four value pairs in the Continued/Partial Fraction Coefficients table,
click Start Fitting, check the plot and click Next to continue.
If the data sheet does not provide extracted values for ri and ti,, select Transient Thermal
Impedance and enter the plot data for the thermal characteristics using SheetScan per the
instructions given in Step 5. The plot will show the impedance as a function of time. Make
sure to adjust the scale of the coordinate system in SheetScan to logarithmic if needed.
Select Start Fitting to start the fit and examine the plot to check the match of the fit. Click
Next to continue.
10. The Dynamic Model Input [10/12] dialog enables you to parameterize the dynamic characteristics of the IGBT. You can select to fit for the switching energies (Eon and Eoff) and switching times (Td(on) and Td(off)). The nominal point has to be fit, so the data has to be available.
The Advanced Settings button allows the user more control over the characterization process,
but should not be necessary to change for most devices. Check the more detailed description
for more information.
a.
Click the Measurement button to open the Measurement Data dialog and make sure the
settings correspond to the ones for the manufacturer of the device being characterized. For
example, for Infineon/Eupec, use Eon and Eoff from the data sheet as the goal settings for
Eon and Eoff. Use td(on)+tr as the goal setting for td(on) and td(off) as the goal setting
for td(off).
b.
c.
If data is available at a different value of VCE, add the lower value of VCE to the nV row
and the higher value of VCE to the pV row.
d.
If data is available at a different value of Ic, add the lower value of Ic to the nI row and the
higher value of Ic to the pI row.
e.
Advanced Settings
TR and TF are the rise and fall time from the data sheet. These should be set to 0 if one is
uncertain, their value can affect the convergence.
Device Characterization Wizard 6-83
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
MEASURE_FLAG allows the user to select between sampling (1) and interpolation (2) for
the method which is used to measure the characteristics.
There are 3 loops, the first loop uses a 1D search method to find a better solution. To enable it,
set LOOPS_A to an integer number larger than 0. MASKPAR_A contains the names of the
parameters which are changed by the characterization tool to find a better fit. RESORD_A
sets how the residue is defined 0 for the maximum error, 1 for the average error and 2 for the
root mean square error. RESTOL_A defines the value under which the residue must get to
leave the loop with a good solution.
The second and the third loop (B and C) use a Jacobean matrix method. LOOPS_B and
LOOPS_C set the number of pre-loops which are taken for the second and third loop, usually
1 should suffice. MASKPAR_B and MASKPAR_C contain the names of the parameters
which are changed by the characterization tool to find a better fit during the second and third
loop. MATRIX_B and MATRIX_C set the maximum number of Jacobean recalculations,
while ZEROFN_B and ZEROFN_C set the maximum number of constant Jacobian calculations. RESLOC_B and RESLOC_C will set the maximum number of relaxation which
occurs within a constant Jacobian calculation. RESORD_B and RESORD_C set how the residue is defined 0 for the maximum error, 1 for the average error and 2 for the root mean square
error. RESTOL_B and RESTOL_C define the value under which the residue must get to
leave the second and the third loop with a good solution, if it is zero it gets this value from the
worsksheet.
11. The Dynamic Parameter Validation [11/12] dialog enables you to validate the dynamic
extraction. The actual values of the switching times and energies for the parameterized device
will be calculated. Enable the conditions that need to be checked, then click Validate. Click
Next to continue.
12. The Model Parameters [12/12] dialog enables you to browse the parameters that were
extracted.
a.
b.
Click Finish to close the dialog. The characterized device is generated for you to place in
the Simplorer project.
Related Topics
Preliminary Considerations Using Data Sheet Information
Using SheetScan
Basic Dynamic IGBT Characterization Flow
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
First, determine the nominal conditions for the device. Ideally, these are the conditions at
which the device will be operated. Practically, these conditions should be those for which
you have the most information closest to the desired operating conditions. Search the data
sheet and look at all available data to decide on the nominal point. The measurement conditions for the dynamic characteristics (Eon, Eoff, td(on), and td(off)) are a generally
good choices.
DC characteristics are parameterized using the transfer and output characteristics, which
can be found as plots in the sheet.
Dynamic behavior is characterized using the switching energies and times, which can be
found either in a table or read from a plot.
The power MOSFET wizard documentation includes information and recommended
settings for several manufacturers. Make sure to consult these sections in the
documentation when characterizing a device.
Related Topics
Using the Device Characterization Wizard for a Power MOSFET
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
At any time during the characterization process you can save your progress using the
Save Model button.
A characterization can be loaded using the Import Model tab.
1.
In the Component Information [1/12] dialog box, enter the component name and define the
Manufacturer Data. The detailed documentation describes some specific settings for several
manufacturers. These are the measurement conditions for the dynamic characteristics. For
example, International Rectifier uses the following settings:
2.
The Nominal Working Point Values [2/12] dialog sets nominal values at the device's working point. As mentioned above, ideally, these are the operating conditions for the device in the
design. Practically, these values should be the ones on the manufacturer data sheet with the
most information closest to the operating conditions. These are the conditions for which the
parameterized device will best match the measured characteristics. For International Rectifier,
generally pick the measurement conditions for the dynamic characteristics. Pick the values of
VDD and ID that are mentioned in the table next to the value of the turn-on delay time, td(on).
Select the temperature for which you have the output characteristics in the plots section.
VGS_on and VGE_off can be found next to the value of td(on). Cin, the input capacitance,
can be found in the datasheet. Cr, the Feedback (Miller) capacitance can be found in the datasheet. It is sometimes refered to as reverse transfer capacitance. If the values cannot be found
in the datasheet, 0 (zero) is a good default value, as the characterization tool will then pick a
value using the other device characteristics. Click Next to continue.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
3.
On the Breakthrough Values [3/12] dialog, check Disable Breakthrough Model, as the
breakdown characteristics data are rarely available in a data sheet. Click Next to continue.
4.
The data needed for the Half-Bridge Test Circuit Condition [4/12] dialog can generally be
found in the tabular section of the data sheet.
For example, for an International Rectifier device:
5.
Rg is the internal gate resistance found in the datasheet. This value will be used as an
initial value during the dynamic characterization. It will not be the internal gate resistance the characterized device ends up with.
R_tot is generally omitted, 0 (zero) is a good default.
Ltot, is generally omitted, 0 (zero) is a good default.
L_extern can be given by Ls in the test conditions for td(on). If the value is not there,
30 nH is a good value to use. The characterization wizard will parameterize this value
to find a good fit with the dynamic data.
Rg_on and Rg_off can be found next to the values of the switching energies td(on)
and Eon.
Cge ext is generally omitted and a default value of 1e-12F can be used.
CLoad is sometimes found on the datasheet as load capacitance. Use 0 (zero) if it is
missing.
When finished setting values, click Next to continue.
The Transfer Characteristic Id=f(Vgs) [5/12] dialog enables you to parameterize the threshold voltages and transconductance of the MOSFET. The data can be entered using SheetScan.
To do so, use the Load characteristics from Dataset Manager button
above the table and
then click SheetScan. Load the manufacturer data sheet .pdf file using the Picture>Load picture command.
For an International Rectifier device, the data sheet plot shows ID=f(VGS).
a.
b.
To define the first characteristic, select Curve>New and give names to the X-Axis
and Y-Axis in the Curve Settings dialog box. Click OK when finished.
c.
Make sure to note the temperature given on the plot. Then select several points on the
curve starting with the lowest X-value. Pick at least 4 points. When done, click
File>Export and then click the Dataset button in the resulting Save dialog.
d.
e.
When finished, click File>Exit to exit the SheetScan tool, saving the scan setup information, if desired.
Device Characterization Wizard 6-87
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
6.
In the Datasets dialog, select the data you want to use at the nominal temperature and
click Done. The data is transferred to the Characteristic Data table in the Transfer
Characteristic [5/12] dialog. Make sure to enter the correct values for temperature
and Vce, which you recorded during the SheetScan measurements.
g.
If you also recorded plot data for a different temperature, click the Add new characteristic button
in the top right corner, then use the Load characteristics from
Dataset Manager button
above the table to load the additional data. Select the
plot in the first tab for the Nominal Temperature field of the Fitting Characteristic
Order panel. If you added a second set of data for a different temperature, you can
select this plot for the Different Temperature field, or select Not Used, if data is
available only for one temperature.
h.
Click Start Fitting to fit the characteristics, then examine the resulting plot to check
the match of the fit. Click Next to continue.
The Output Characteristic Id=f(Vds) [6/12] dialog enables you to parameterize more of the
MOSFET's output characteristics. Ideally, enter the output characteristics at Vgs=VGS_on
(Full Saturated Branch) and for Vgs at a lower voltage (Semi Saturated Branch), for both
the nominal temperature and at a different temperature, using SheetScan as described in the
Step 5. Make sure to note the value of Vgs and the corresponding temperature for each curve.
7.
f.
For International Rectifier, the datasheet plot shows ID=f(VDS). The output characteristics of the semi-saturated branch are often missing at a different temperature.
a.
Add up to 4 characteristics, making sure to identify them with the correct values of
VGS and temperature.
b.
Select the plot at the nominal temperature and with Vgs=VGS_on for the Full Saturated Branch (Tnom) field in the Fitting Characteristic Order panel, and one at a
lower value of Vgs for the Semi Saturated Branch (Tnom) field, or select Not
Used, if the data is not available. Repeat this at a different temperature for
Vgs=VGS_on and at a lower Vgs in the corresponding Full Saturated Branch
(Tdiff) and Semi Saturated Branch (Tdiff) fields. The fit will be better if the current
does not saturate much for the semi-saturated curve, but the fitting algorithm will
work with either option.
c.
Click Start Fitting to start the fit and examine the plot to check the match of the fit.
Click Next to continue.
The Drain-Source Diode Characteristic If=f(Vf) [7/12] dialog enables you to parameterize
the DC characteristics of the diode. Ideally, you should enter the output characteristics at both
the nominal temperature and at a different temperature using SheetScan as outlined in Step 5.
Make sure to note the value of the temperature for each curve.
Generate two characteristic data sets, one at the nominal temperature and one at a different temperature, being sure to identify them with their corresponding temperatures.
b.
Select the plot at the nominal temperature in the Nominal Temperature field of the
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Fitting Characteristic Order panel, and the plot at the different temperature in the
Different Temperature field, or select Not Used, if the data is not available.
c.
8.
The MOSFET Thermal Model [8/12] dialog allows you to parameterize the thermal impedance of the MOSFET. Do one of the following:
9.
Click Start Fitting to start the fit and examine the plot to check the match of the fit.
Click Next to continue.
If the data sheet provides extracted values for ri and ti, which is the case for International
Rectifier, enter these four value pairs in the Use Fraction Coefficients table, click Start
Fitting, check the plot and press Next to continue.
If the data sheet does not provide extracted values for ri and ti, select Use Transient
Thermal Impedance and enter the plot data for the thermal characteristics using
SheetScan per the instructions given in Step 5. The plot will show the impedance as a
function of time. Make sure to adjust the scale of the coordinate system in SheetScan to
logarithmic if needed. Select Start Fitting to start the fit and examine the plot to check the
match of the fit. Click Next to continue.
The Drain-Source Diode Thermal Model [9/12] dialog allows you to parameterize the thermal impedance of the diode.
If the data sheet provides extracted values for ri and ti, which is the case for International
Rectifier, enter these four value pairs in the Use Fraction Coefficients table, click Start
Fitting, check the plot, and click Next to continue.
If the data sheet does not provide extracted values for ri and ti,, select Use Transient
Thermal Impedance and enter the plot data for the thermal characteristics using
SheetScan per the instructions given in Step 5. The plot will show the impedance as a
function of time. Make sure to adjust the scale of the coordinate system in SheetScan to
logarithmic if needed. Select Start Fitting to start the fit and examine the plot to check the
match of the fit. Click Next to continue.
10. The Dynamic Model Input [10/12] dialog enables you to parameterize the dynamic characteristics of the power MOSFET. You can select to fit for the switching energies (Eon and Eoff)
and switching times (Ton and Toff). The nominal point has to be fit, so the data has to be
available.
a.
Click the Measurement button to open the Measurement Data dialog and make sure
the settings correspond to the ones for the manufacturer of the device being characterized. For example, for International Rectifier, use Eon and Eoff from the data sheet as
the goal settings for Eon and Eoff. Use td(on)+tr as the goal setting for t(on), and
td(off)+tf as the goal setting for t(off).
b.
c.
If data is available at a different value of VDS, add the lower value of VDS to the nV
row and the higher value of VDS to the pV row.
d.
If data is available at a different value of Id, add the lower value of Id to the nI row
and the higher value of Id to the pI row.
e.
Optionally, the Adv. Settings button allows the user more control over the characterDevice Characterization Wizard 6-89
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
ization process, but should not be necessary to change for most devices. Check the
more detailed description for more information.
Advanced Settings
MEASURE_FLAG allows the user to select between sampling (1) and interpolation (2) for the method which is used to measure the characteristics.
There are three loops, the first loop uses a 1D search method to find a better solution. To enable it, set LOOPS_A to an integer number larger than 0 (zero).
MASKPAR_A contains the names of the parameters which are changed by the
characterization tool to find a better fit. RESORD_A sets how the residue is
defined 0 (zero) for the maximum error, 1 for the average error and 2 for the root
mean square error. RESTOL_A defines the value under which the residue must
get to leave the loop with a good solution.
The second and the third loop (B and C) use a Jacobean matrix method.
LOOPS_B and LOOPS_C set the number of pre-loops which are taken for the
second and third loop, usually 1 should suffice. MASKPAR_B and
MASKPAR_C contain the names of the parameters which are changed by the
characterization tool to find a better fit during the second and third loop.
MATRIX_B and MATRIX_C set the maximum number of Jacobean recalculations, while ZEROFN_B and ZEROFN_C set the maximum number of constant Jacobian calculations. RESLOC_B and RESLOC_C will set the
maximum number of relaxation which occurs within a constant Jacobian calculation. RESORD_B and RESORD_C set how the residue is defined: 0 (zero) for
the maximum error, 1 for the average error and 2 for the root mean square error.
RESTOL_B and RESTOL_C define the value under which the residue must get
to leave the second and the third loop with a good solution, if it is zero it gets this
value from the worsksheet.
f.
Click Extraction to start the fit. A dialog displays showing progress of the extraction.
Upon completion, another dialog informs you that extraction is complete. Click OK
to return to the Dynamic Model Input [10/12] dialog.
g.
11. The Dynamic Parameter Validation [11/12] dialog enables you to validate the dynamic extraction. The actual values of the switching times and energies for the parameterized device
will be calculated. Enable the conditions that need to be checked, then click Validate. Click
6-90 Device Characterization Wizard
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Next to continue.
12. The Model Parameters [12/12] dialog enables you to browse the parameters that were
extracted.
a.
b.
Click Finish to close the dialog. The characterized device is generated for you to place in
the Simplorer project.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
7
Power Module Characterization Wizard
The Power Module Characterization wizard aids in the building of various types of power module
models so that they can operate to a device manufacturers specifications. The wizard accepts inputs
for various quantities available from the device manufacturer and fits a numerical model to the data
to provide accurate device simulation over a range of device excitations and thermal conditions.
Select Simplorer Circuit>Characterize Device> Power Modules to open the Power Module
Characterization Wizard.
Note
Microsoft .NET version 2.0, Service Pack 1 or later is required to open and use the
Power Module Characterization Wizard.
The wizard includes a library of DC-DC Converter models from various manufacturers. These
models can be used as-is, or they can be used as the basis for developing new, user-defined models.
For a detailed discussion of the approach to DC-DC Converter modeling, refer to the section on
Modeling of DC-DC Converters Based on Hybrid Wiener-Hammerstein Structure.
Related Topics
Using System Library Power Modules
Modifying System Library Power Modules
Creating a Power Module Behavioral Model
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
To view the characteristics of power module models supplied in the System Library, select the
desired models in the System Libraries model browser.
The model editing panel displays the summary tab for the model.
2.
To view the model code (read only) in the summary tab, click the Code View icon (magnifying
glass).
3.
To save the model in VHDL-AMS format, click the Code Save icon. In the resulting dialog
box you can enter the model file name and choose a save location.
4.
To enable generation of sub-architectures, click the Code Define Settings icon (wrench),
check Enable, and then select the sub-architectures you wish to include in the model.
5.
Click the View documentation icon (magnifying glass) in the tab title bar to view the documentation in the tab. You can also print the documentation via the Print icon, or export the
documentation as an html file via the Save icon.
6.
To import the model into the active Simplorer project, click the Simplorer icon. The message
panel displays Model sent to Simplorer upon completion of the operation.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Select the model you want to copy, press the right mouse button, and select Copy in the context menu.
2.
Paste this model any library in the User Libraries model browser by right clicking the library
and selecting Paste.
3.
Once the model is in the User Libraries you can modify the model as shown in the sections on
Creating a Power Module Behavioral Model, then import it into Simplorer.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
To create a new model library, select File > Add New > Library in the main menu bar.
A library with a default name is added under the User Libraries model browser.
2.
You can change the library name by clicking on the name to select it, then typing the new
name.
Select the new library in the model browser by clicking its icon in the User Libraries browser
panel. A Library menu displays in the main menu.
2.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
3.
In the New Model dialog, select the Behavioral DC/DC Converter model and click Accept.
A model with a default name is added under the selected library. Click the model name to edit
the name.
Every newly created DC/DC model has default parameters that correspond to a 12V input and 5V
output voltage with a constant efficiency.
In the User Libraries browser, select the DC-DC converter model that you want to edit.
An editing panel with four tabs - Summary, Static Model, Dynamic Model, and Events
Model - displays.
2.
3.
On the Static Model tab you can define the basic characteristic of the converter. Change the
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
value of the input voltage to 48V and the output voltage to 12V.
The Static Model editing panel shows two graphs: Efficiency vs. Output Current and Output
Voltage vs. Output Current.
4.
The first step to define a characteristic graph is to set its maximum and minimum values. Press
the Settings button of the Efficiency vs. Output Current graph.
A Settings dialog box displays.
5.
In the Settings dialog box, set the Output Current (A) Max value to 25 (we are assuming that
the converter supports a maximum output current of 25A). Similarly, enter 100 as the Efficiency(%) Max value. This corresponds to a maximum efficiency of 100%. Press Accept to
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
6.
Press the Add button of the efficiency graph to insert as many points as you need to define the
behavior of your converter. You can also right-click in the graph and select Add from the context menu.
In this example three more points will be added. The values of the points can be set by dragging the added points directly on the graphic or specifying the values directly in the table view.
(Note that as you add points, the table entries are automatically sorted in ascending order of
output current magnitude.)
7.
Enter the following values for the efficiency curve: (0.1, 60), (2.5,80), (8,86), (15,86), and
(25,70).
8.
Similarly, you can define the behavior of the Output Voltage vs. Output Current graph. Click
the Settings button of the Output Voltage vs. Output Current graph and enter a maximum
value of 25 for the Output Current (A), and a maximum value of 12 for the Output Voltage
(V) (the output voltage value corresponds to the nominal output voltage).
9.
In this example a load regulation of 2% at 24A is being defined. This means that the output
voltage of the converter drops 0.24V when the converter is supplying an output current of 24A.
The values to enter are: (0,12), (24,11.76), and (25,0). Note that the converter also has output
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
protection that makes the voltage drop when output current exceeds 24A.
At this point the minimum characteristic values needed to create a simulation model have been
defined, VHDL-AMS code for the model can be generated, and the model exported to Simplorer.
Select the Summary tab in the editing panel. The Summary tab contains a viewer and a toolbar with icon buttons for the most common functions for code and documentation generation.
2.
In the main menu, select Behavioral DC/DC > Code > View or click the Code magnifying
glass icon.
The VHDL-AMS code for the converter model is displayed (read-only) in the viewer.
3.
To import this model into Simplorer select Behavioral DC/DC > Code > Send To Simplorer.
This command adds the model to the currently active project in Simplorer.
4.
Return to Simplorer. In the Project Manager you can find the imported model under Definitions>Components. You can then drag and drop the model on to a schematic.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Select the Dynamic Model tab in the editing panel. In the Input Dynamic (Inrush Current)
panel, enable the Set Dynamic Behavior check box.
2.
Set the Input Voltage Step parameter to 48V that corresponds to a step in the input voltage
when the converter is powered. Set the Input Current Peak parameter to 1A and the Input
Current Peak Time to 1ms. You can also drag the points to graphically define the behavior of
the input current.
3.
Right click on the input dynamic graph and select Automatic Scale to display the input current
graph in its best representation.
4.
In the Output Dynamic (Output Voltage Transient Response) panel enable the Set
Dynamic Behavior check box to include the behavior of the converter under load steps.
5.
Set the Current Step value to 1A, this value corresponds to the load step under which the test
was performed. Set the Voltage Peak to 200mV. This value is the voltage drop peak when the
load step occurs. Set the Voltage Peak Time to 10us. This is the time when the voltage peak
occurs. Finally, set the Settling Time value to 100us. This value represents the time that the
converter takes to recover from the load step.
6.
Right click on the graph and select Automatic Scale to display the graph in its best representation.
7.
On the Summary tab generate the model and import it to Simplorer as needed.
Power Module Characterization Wizard 7-9
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Select the Events Model tab in the editing panel and check the Soft Start and Remote Control panel Enable checkboxes to enable these features.
2.
In the Soft Start panel, set the value of the Turn On Delay to 5ms and the Startup time to
1ms. Turn On Delay represents the time after power-up before the converter begins supplying
voltage. The Startup time is the time that takes the converter to raise the output voltage from
zero to its nominal value.
3.
When Remote Control is enabled, a terminal is added to the Simplorer model to control the
converter. The Turn On with value combo box defines the value used to turn on the converter.
Set the Remote Control Delay to 1ms. This value specifies the time that it takes for the converter to turn on or off after the remote control signal is toggled.
4.
Check the Enable box in the Input Voltage Protections panel. This function allows you to
define the input voltage operating range of the converter. Set the Undervoltage Turn On
value to 34.9V and the Undervoltage Turn Off value to 30.5V. These values mean that when
the converter is turned off it needs at least 34.9 V to turn on; and once it is turned on, if the
voltage drops below 30.5V the converter turns off.
5.
Set the Overvoltage Turn Off and Overvoltage Turn On values to 78.8V. In this case, when
the input voltage is above 78.8V the converter will turned off and if it is below it will turn on.
You can also enable other types of protection on the Events Model tab, such as Output Volt7-10 Power Module Characterization Wizard
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
age Protection and Thermal Protection. In this example these protections are not used.
Select the Static Model tab in the editing panel and enable the Current Sharing check box.
2.
Select the Parallel Output. In this example the converter has only one output named vo1.
Select this output in the combo box.
3.
Generate the code and import it to Simplorer as specified in the section Generating VHDLAMS Code and Importing the Model into Simplorer.
4.
Insert the model in a schematic in Simplorer to create a simulation model. (These steps are not
presented here).
5.
In the reality, two similar converters cannot be perfectly equal. They have physical differences.
When the current sharing feature is added to a model, a parameter named
current_share_deviation is included in the model. This value defines a factor of deviation that
simulates a real and imperfect current sharing among converters. This parameter is set in Sim-
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
6.
Similarly, to add the effects of thermal resistivity to the model, enable the Thermal Model
checkbox and supply the desired Thermal Resistivity value.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
ctrl
T
ON/OFF
soft-start
vg
ctrl
xss
dc-dc converter
vo
io
Lineal
dynamic
Non
lineal
static
Lineal
dynamic
Wiener-Hammerstein structure
The logic system (event driven behavior) that manages the protection and remote control features.
The logic system can be modelled by means of a state diagram. Its implementation on a circuit
Power Module Characterization Wizard 7-13
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
simulator will depend on the modelling capabilities of the simulator. It will measure the analog
variables that can modify the behavior of the DC-DC converter (output voltage, output current,
input voltage, temperature, etc.) and, based on its current state and the analog inputs, it will
generate the control signal for the power stage and control.
The continuous/discrete system that includes the power stage and its control - independently
if it is implemented digitally or analogy.
The power stage and control is modelled by means of a Wiener-Hammerstein structure (see
below). This structure has the advantage of gathering all the non-linear static behavior of the
converter, usually provided in datasheets, by means of one block. This non-linear behavior
includes:
Variation of the output voltage with respect to the output current and input voltage
Variation of the efficiency with the load and the input current.
io
Vg
Zel
DC-DC converter
Electrical
fi(io)
model
Output filter
fv(vg)
Zol
vo
ig
Zec
vref
Zoc
y
c
n
ie
c
fif
E
Thermal
model
1
Pdis = 1 Po
tc Rth
Tamb
Cth
It consists of:
A non-linear static model that represents the steady-state behavior of the converter.
a.
b.
Output voltage as a function of the reference, the input voltage and the output current.
A dynamic input block that models the high-frequency input impedance behavior of the converter and its initial inrush current.
A dynamic output block that models the transient behavior of the converter under load
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
changes.
Additionally, a simple thermal model is included to account for the effect of thermal protection.
The equations for the static, nonlinear model are given by:
iin =
vo io
1
(vg , io ) vg
(1)
(2)
There is a capacitive element place at the output. Actually, this is always the case to reduce
output voltage ripple and to reduce output impedance. This capacitive element need not be
ideal, and the model can include the equivalent series resistance (ESR) and inductance (ESL)
of the capacitor bank.
2.
Output voltage of the converter is controlled through the injected current. This is almost
true for current mode controlled converters up to the crossover frequency of the current loop.
In voltage mode controlled converters seems less obvious but, as will be shown the approach is
also applicable - but with higher error.
Using these assumptions, the small-signal model of the output stage of a general current controlled
converter can be represented as shown below, where: Zc is the equivalent impedance of the output
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
capacitors (including parasitics), Kv is the output voltage controller transfer function, ic is the
injected current, vref is the reference voltage and i0 is the current demanded by the load.
ic
vo
io
Zc
-
vref
Kv
According to the equivalent circuit shown above, and after some calculation, it is possible to arrive
at the following expression for the output voltage (3):
vo ( s ) =
ZC ( s)
Z C ( s )K v ( s )
io ( s ) +
vref ( s )
1 + Z C ( s )K v ( s )
1 + Z C ( s )K v ( s )
(3)
This transfer function is also the same as the transfer function of the equivalent circuit of the following figure, just by making the series impedance ZL equal to the inverse of the voltage loop regulator (4):
Z L (s) =
1
K v ( s ) (4)
As a consequence the proposed dynamic network to fit the output dynamics of the converter is the
one shown below.
Zl
vref
vo
Zc
io
Because the output network does not change the static behavior of the converter, which is
accounted for by the non-linear network, the condition that must be satisfied by this network is:
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Z L (0)
=0
Z C (0)
(5)
The impedance of ZL/ZC must be 0. It can be achieved with ZC(0)=infinite (capacitor) and/or ZL(0)
= 0 (inductance).
From the point of view of the parametric identification it is necessary to determine the structure of
the series impedance, ZL, to identify its components. To do that, the form of the transfer function Kv
will be analyzed.
Using the above assumptions and the small signal model shown above, the output voltage can be
controlled by means of a PI controller:
Kv ( s) =
s
1 +
s z
(6)
where:
This controller, according to equation (4) yields the following equivalent series impedance:
1
s
i
1
=
Zl (s) =
K v ( s) 1 + s
(7)
The network that fits into this transfer function consists of an inductance in parallel with a resistor
of the following values:
L=
Rd =
i (8)
z
i (9)
Applying this procedure to the current-controlled converter with equivalent output capacitors
impedance (C, RESR), the linear output network will have the structure shown below. This output
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
network can be easily identified based on the current step-response data provided by the manufacturer (or an equivalent measurement).
vo
RESR
Rd
vref
io
C
Equivalent Closed Loop Circuit
io
Vg
Zel
Output filter
DC-DC converter
Electrical
fi(io)
model
fv(vg)
Zol
vo
ig
Zec
vref
Zoc
y
c
n
ie
c
if
f
E
Thermal
model
tc Rth
1
Pdis = 1 Po
Tamb
Cth
This network must be selected under the constraint of not modifying the static behavior of the converter, given by the nonlinear static block. As a consequence, it must satisfy the same condition in
steady state as the output network equation (5).
One possible network that can be fitted based on inrush current data is shown below [1-2]. This network is valid for both over-damped and under-damped inrush current behavior.
Input filter
CIN
RIN
Vg
CIN
iIN
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Event-driven Behavior
The behavior of the converter depends on its state (ON, OFF, PROTECTION ...). It is possible to
include this dependency on the behavior thanks to the mixed-signal capabilities of current circuit
simulators. In this example, the state of the converter is modeled by means of the state diagram
shown below that controls the values of the dependent voltage and current sources.
COND_delay1
Remote_ON
COND_REM_ON
delay2
delay1
Remote_OFF
COND_REM_OFF
COND_delay2
Protection_OFF
Protection_ON
COND_OFF_ON
In this example, most commons events have been included based on a careful search of many DCDC converter manufacturers. The events included in this model are:
Remote control. This signal is usually provided to DC-DC converters to enable or disable
them.
Input voltage protection. This protection disables the operation of the converter when the
input voltage is out of the operational limits of the converter, to avoid malfunction.
Under-voltage protection (with and without hysteresis). Below this voltage, the converter will be turned off to avoid high currents that can destroy it.
Over-voltage protection (with and without hysteresis). This voltage setting assures that
all the components of the converter are working with designed voltage ranges.
Output voltage protection. This is usually an upper output voltage value that will disable the
Power Module Characterization Wizard 7-19
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Thermal protection. In the case of high-temperature operation of the converter, this protection will turn it off if the high-temperature limit is exceeded.
Over-current protection. This protection tries to avoid high internal current due to high
external loads. This protection is included inside the event-driven behavior in case of turningoff the converter. The protection based on lowering the output voltage as a function of the output voltage must be included in the static non linear model since it does not create an event.
References
[1] J. A. Oliver, R. Prieto, V. Romero, and J. A. Cobos, Behavioral modeling of dc-dc converters for largesignal simulation of distributed power systems, IEEE Applied Power Electronics Conference and Exposition, APEC 2006.
[2] J. A. Oliver, R. Prieto, V. Romero, and J. A. Cobos, Behavioral Modeling of Multi-Output DC-DC Converters for Large-Signal Simulation of Distributed Power Systems, Power Electronics Specialists Conference, 2006.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
8
Component Dialog Wizard
The Simplorer Component Dialog Wizard facilitates the development of component dialog boxes
for user-defined models, and for many other models (e.g., some VHDL-AMS components and
some subcircuit components such as the Icepak component) that do not already have their own
Component Dialog boxes. The Wizard features an easy-to-use graphical interface that can be used
to design, preview, and test component dialog boxes.
This section describes how to create, edit, and test component dialog boxes using the Component
Dialog Wizard. It also provides a thorough explanation of the menus and toolbars in the Wizard,
and a detailed step-by-step example of how to create a component dialog box using the Wizard.
Related Topics
Creating a New Component Dialog Box Using the Component Dialog Wizard
Adding Static Information and Control Elements to a Component Dialog Box
Determining a Non-conservative Input Node's Value Using Free Values
Aligning and Sizing Component Dialog Box Elements
Setting the Tab Order of a Component Dialog Box
Setting the Display Behavior of Component Dialog Box Elements
Testing a Component Dialog Box
Saving and Closing a Component Dialog Box
Using a Component Dialog Box
Revising a Component Dialog Box
Component Dialog Wizard Window Items
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
To start the Wizard you must first open the Edit Component dialog box by right-clicking a
component on a schematic, then selecting Edit Component from its context menu.
Alternatively, you can right-click a component listed on the Project Manager Components
tab, then select Edit Component from its context menu; or you can right-click a component
definition in the Project Manager Project tree, then select Edit Component from its context
menu.
2.
Once the Edit Component dialog box is open, click Setup Dialog on the General tab.
The Component Dialog Wizard starts. After starting the wizard, the Wizard Builder dialog
box may appear.
Hint
If you select Yes in this dialog box, the Component Dialog Wizard loads the Standard
Layout, which is a partially completed component dialog box. The Standard Layout is
useful for many component dialog boxes because it creates the basic structure of the dialog box decreasing your work and saving you time.
If you select No in the Wizard Builder dialog box, the Component Dialog Wizard loads
a blank component dialog box.
If the Wizard Builder dialog box does not appear upon starting the Component Dialog
Wizard, the Wizard automatically loads a blank component dialog. The Standard
Layout can still be added to the blank dialog by selecting Layout>Create Standard
Layout on the Wizard's menu bar.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
When adding static information or a control element to a component dialog box, you
may need to resize the component dialog box to accommodate the element. To resize a
component dialog box, point to one of its borders with the mouse pointer so that a
double-headed arrow appears. When the arrow appears, drag the border in one of the
directions indicated by the arrow. The dialog boxs size changes.
You may also need to move a component dialog box within the Component Dialog Wizard window. To move a component dialog, click the dark gray title bar at the top of the component dialog,
and drag it to the desired location within the Component Dialog Wizard window.
To accommodate larger component dialogs, you may also need to resize the Component Dialog
Wizard window itself. To do this, point to one of the edges of the window with the mouse so that a
double-headed arrow appears. When the arrow appears, drag the border in one of the directions
indicated by the arrow until the desired window size is achieved.
Related Topics
Changing the Name of a Component Dialog Box
Adding Groups to a Component Dialog Box
Adding Statics to a Component Dialog Box
Adding Text Edits to a Component Dialog Box
Adding ComboBoxes to a Component Dialog Box
Adding Check Boxes to a Component Dialog Box
Adding Radio Buttons to a Component Dialog Box
2.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
3.
Type the name of the component dialog box in the Name field.
4.
Click OK.
The new name becomes visible in the title bar of the component dialog.
You can also click the Add Group button on the Standard toolbar.
2.
3.
4.
Resize the group to its desired height and width by clicking and dragging its borders.
5.
6.
Edit the group's name in the Name field on the Group Data tab.
7.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
3.
Drag the static to its desired location in the component dialog box.
4.
Resize the static to its desired height and width by clicking and dragging its borders.
Component Dialog Wizard 8-5
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
5.
6.
Select Own Name from the Type list on the Static Data tab.
7.
8.
Click OK.
2.
3.
Drag the static to its desired location in the component dialog box.
4.
Resize the static to its desired height and width by clicking and dragging its borders.
5.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
6.
Select Node from the Type list on the Static Data tab.
7.
Select the name of the node for which information is to be displayed from the Node list.
8.
Select the type of node information to be displayed from the Show list.
There are four choices:
9.
Click OK.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
3.
Drag the text edit to its desired location in the component dialog.
4.
Resize the text edit to its desired height and width by clicking and dragging its borders.
5.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
6.
Select Model Name from the Type list on the Edit Data tab.
7.
Click OK.
2.
3.
Drag the text edit to its desired location in the component dialog box.
4.
Resize the text edit to its desired height and width by clicking on and dragging its borders.
5.
Right-click the text edit and select Properties in the context menu.
The Properties dialog box opens.
6.
Select Node from the Type list on the Edit Data tab.
7.
Select the name of the desired node from the Node list.
8.
Select Value from the Show list if a numerical value is to be entered through the component
dialog; or select Information if other information is to be entered.
9.
Check Browse edit control if the information to be entered through the component dialog is a
file name.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
3.
Drag the text edit to its desired location in the component dialog box.
4.
Resize the text edit to its desired height and width by clicking and dragging its borders.
5.
Right-click the text edit and select Properties in the context menu.
The Properties dialog box opens.
6.
Select Free Value from the Type list on the Edit Data tab.
7.
In the ID field, type a valid node name for the free value.
Note
Valid node names must start with a letter or underscore, and may contain any
combination of uppercase and lowercase letters (A-Z, a-z), the numerals 0 through 9,
and underscores
8.
Type a default value for the free value in the Value field.
9.
Check Browse edit control if the information to be entered through the component dialog is a
file name.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
For more information on free values see, Determining a Non-conservative Input Node's
Value Using Free Values.
2.
3.
4.
Resize the ComboBox to its desired height and width by clicking on and dragging its borders.
5.
Right-click the ComboBox and select Properties from the context menu.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
6.
Select Node from the Type list on the ComboBox Data tab.
7.
Select the name of the desired non-conservative input node from the Node list.
8.
Click the button with the dashed box to create a predefined entry for the ComboBox.
9.
Enter the description that will be listed in the component dialog box into the Description field.
10. Enter a value in the Value field that will be passed to the non-conservative input node when the
corresponding description is selected in the component dialog box.
11. Repeat steps 9 and 10 for the remaining predefined entries of the ComboBox.
12. Check Editable if you want to make the contents of the ComboBox editable.
13. Click OK.
To create a ComboBox for selecting the unit of a non-conservative node:
1.
2.
3.
Drag the ComboBox to its desired location on the component dialog box.
4.
Resize the ComboBox to its desired height and width by clicking and dragging its borders.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
5.
Right-click the ComboBox and select Properties from the context menu.
The Properties dialog box opens.
6.
Select Unit from the Type list on the ComboBox Data tab.
7.
Select the name of the non-conservative input node from the Node list.
8.
Click OK.
Select the Controls>ComboBox from the Component Dialog Wizard menu bar.
2.
3.
Drag the ComboBox to its desired location in the component dialog box.
4.
Resize the ComboBox to its desired height and width by clicking and dragging its borders.
5.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
6.
Select Display from the Type list on the ComboBox Data tab.
7.
Select the name of the desired non-conservative or conservative node from the Node list.
8.
Click OK.
You can also click the Add Combobox button on the Standard toolbar.
2.
3.
Drag the ComboBox to its desired location in the component dialog box.
4.
Resize the ComboBox to its desired height and width by clicking and dragging its borders.
5.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
6.
Select Free Value from the Type list on the ComboBox Data tab.
7.
Type a valid node name for the free value in the ID field.
Note
Valid node names must start with a letter or underscore, and may contain any
combination of uppercase and lowercase letters (A-Z, a-z), the numerals 0 through 9,
and underscores
8.
Click the button with the dashed box to create a predefined entry for the ComboBox.
9.
Enter a description that will be listed in the component dialog box in the Description field.
10. In the Value field, enter a value that will be passed to the free value when the corresponding
description is selected in the component dialog box.
11. Repeat steps 10 and 11 for the remaining predefined ComboBox entries.
12. Check Editable if you want the user to be able to edit the contents of the ComboBox.
13. Click OK.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
An example of a check box as it is appears in the Component Dialog Wizard is shown in the following illustration:
To create a check box for displaying or not displaying a model instance name:
1.
Select the Controls>CheckBox from the Component Dialog Wizard menu bar.
You can also click the Add Checkbox button on the Standard toolbar.
2.
3.
Drag the check box to its desired location in the component dialog box.
4.
Resize the check box to its desired height and width by clicking and dragging its borders.
5.
Right-click the check box and select Properties on the context menu.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
6.
Select Show Model Name from the Type list on the CheckBox Data tab
7.
8.
Check Show text left if you want to display the name to the left of the check box. If this option
is not checked, the name is displayed to the right of the check box.
9.
Click OK.
You can also click the Add CheckBox button on the Standard toolbar.
2.
3.
Drag the check box to its desired location in the component dialog box.
4.
Resize the check box to its desired height and width by clicking and dragging its borders.
5.
Right-click the check box and select Properties on the context menu.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
6.
Select Show Pin from the Type list on the CheckBox Data tab
7.
Select the name of the desired node from the Node list.
Note
8.
Select the manner in which the text accompanying the check box is displayed from the Show
list. There are two choices:
9.
Show Pin applies only to non-conservative nodes. Pins for conservative nodes are
always visible.
Use Pin[Node]: A check box appears with the phrase Use Pin and the name of the node
in brackets [Node Name].
Use Pin: A check box appears with the phrase Use Pin only.
Check Show text left to display the text to the left of the check box. If not checked, the text is
displayed to the right of check box.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
To create a check box for selecting or deselecting a non-conservative node as a model output:
1.
Select the Controls>CheckBox from the Component Dialog Wizard menu bar.
You can also click the Add Checkbox button on the Standard toolbar.
2.
3.
Drag the check box to its desired location in the component dialog box.
4.
Resize the check box to its desired height and width by clicking and dragging its borders.
5.
Right-click the check box and select Properties on the context menu.
The Properties dialog box opens.
6.
Select Outputs from the Type list on the CheckBox Data tab.
7.
Select the name of the desired node from the Node list.
8.
Select the manner in which the text accompanying the check box is displayed from the Show
list. There are five choices:
Nodename: The check box appears with the node name only: Node Name.
Node Name+Unit: The check box appears with node name and expected unit in brackets:
Node Name [Unit].
Output[Node]: The check box appears with the word Output and the node name in
brackets: Output [Node Name].
Component Dialog Wizard 8-19
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
9.
Description: The check box appears with the node description only: Description.
Description+Unit: The check box appears with the node description and expected unit in
brackets: Description [Unit].
Check Show text left to display the text to the left of the check box. If not checked, the text is
displayed to the right of check box.
You can also click the Add Checkbox button on the Standard toolbar.
2.
3.
Drag the check box to its desired location in the component dialog box.
4.
Resize the check box to its desired height and width by clicking and dragging its borders.
5.
Right-click the check box and select Properties on the context menu.
The Properties dialog box opens.
6.
Select Nodevalues from the Type list on the CheckBox Data tab.
7.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
8.
9.
Type a value to be assigned to the non-conservative node when the box is checked into the
Value checked field.
10. Type a value to be assigned to the non-conservative node when the box is not checked into the
Value unchecked field.
11. Click OK.
To create a check box for assigning one value or another to a free value:
1.
You can also click the Add Checkbox button on the Standard toolbar.
2.
3.
Drag the check box to its desired location in the component dialog box.
4.
Resize the check box to its desired height and width by clicking and dragging its borders.
5.
Right-click the check box and select Properties on the context menu.
The Properties dialog box opens.
6.
Select Free Value from the Type list on the CheckBox Data tab.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
7.
Type a valid node name for the free value in the ID field.
Note
Valid node names must start with a letter or underscore, and may contain any
combination of uppercase and lowercase letters (A-Z, a-z), the numerals 0 through 9,
and underscores
8.
9.
Type a value to be assigned to the free value when the box is checked into the Value checked
field.
10. Type a value to be assigned to the free value when the box is not checked into the Value
unchecked field.
11. Click OK.
To create a set of radio buttons for enabling and disabling other control elements within a
component dialog:
1.
You can also click the Add Radio Button button on the Standard toolbar.
2.
3.
Drag the radio button to its desired location in the component dialog box.
4.
Resize the radio button to its desired height and width by clicking and dragging its borders.
5.
Repeat steps 1 through 4 for the remaining radio buttons in the set.
6.
Select the Layout>Set Tab Order menu on the Component Dialog Wizard menu bar.
You can also click the Set Tab Order button on the Layout toolbar.
7.
Note the tab order number of each newly placed radio button in the group.
8.
Right-click the radio button with the lowest tab order number.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
9.
You can also click the Add Radio Button button on the Standard toolbar.
2.
3.
Drag the radio button to its desired location in the component dialog box.
Component Dialog Wizard 8-23
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
4.
Resize the radio button to its desired height and width by clicking and dragging its borders.
5.
Repeat steps 1 through 4 for the remainder of the radio buttons in the set.
6.
Select the Layout>Set Tab Order menu on the Component Dialog Wizard menu bar, or
click the Set Tab Order button on the Layout toolbar.
7.
Note the tab order number of each newly placed radio button in the group.
8.
Right-click the radio button with the lowest tab order number.
The Properties dialog box opens.
9.
10. Select the name of the non-conservative input node to be controlled by the set of radio buttons
from the Node list.
11. Select a name to be associated with the radio button and type it into the Description field.
12. Select the value that will be given to the chosen non-conservative input node when the radio
button is selected and type it into the Value field.
13. Check the Group check box.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
14. Repeat steps 1 through 12 for each remaining radio button in the set, but do not check the
Group check box for any of these buttons. Only the radio button with the lowest tab order
number in the set should have its Group box checked.
To create a ListBox for displaying and /or changing the values of parameters:
1.
2.
3.
4.
Resize the ListBox to its desired height and width by clicking on and dragging its borders.
5.
Right-click the ListBox and select Properties from the context menu.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The Properties dialog box opens, displaying two lists on the ListBox Data tab.
6.
In the Columns list, click the yellow lightning-bolt button and choose the columns that will
appear in the actual dialog box from the menu that appears.
7.
Similarly, in the Lines list, click the yellow lightning-bolt button and choose the parameters
that will appear in the actual dialog box from the menu that appears.
8.
9.
Click OK.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The first method is the direct passing or assignment of values by control elements such as text
edits and check boxes.
The second method is an indirect method that uses Free Values. Free Values are parameters
that are passed to the component dialog wizard, which then uses the values of these parameters
to calculate the values passed to some or all of the model's non-conservative nodes.
This section describes the procedure for assigning a value to a non-conservative input node using
free values.
Free values can be created in a component dialog using the text edit, ComboBox and Check Box
control elements (for a detailed explanation of how to create free values using these control elements, see Adding Static Information and Control Elements to a Component Dialog). Once free
values have been created, they can be used to determine the value of any non-conservative input
node that is not already connected to another control element in a component dialog.
To determine the value of a non-conservative input node using free values:
1.
2.
Add any necessary free values that have not already been added to the component dialog.
3.
Right-click an empty portion of the component dialog and select Properties on the context
menu.
The Properties dialog box opens, and a list of the model's non-conservative input nodes
appears in the Nodes panel. In the Connection column, there is a browse edit button to the
right of any input node not currently connected to any other control element. The values for
such input nodes can be determined by free values. For example, in the illustration below, the
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
values for nodes LOAD, RA, LA, and KE all can all be determined using free values.
4.
Click the browse edit button to the right of the input node that is to have its value determined
using free values.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
5.
Enter an expression for the value of the non-conservative input node in the upper left-hand
window of the Calculator dialog box. The expression should be written in terms of free values, non-conservative input values, variables, and Simplorer mathematical and logical operators, functions, and constants. The expression can be typed or entered using the utilities
provided in the Calculator dialog. These utilities are described below:
The upper right-hand panel contains a list of all conservative nodes, non-conservative
nodes, and free values. Double-clicking one of the names in this window adds it to the
expression.
The center panel contains a list of all Simplorer mathematical and logical operators, functions, and constants. Double-clicking one of the symbols in this window adds it to the
expression.
The lower left-hand panel contains a list of the various categories of Simplorer operators,
functions, and constants. Clicking one of the categories filters the display in the center
window to the operators, functions, and constants associated with that category. For example, if you click Trigonometrics in the left window, the list of Simplorer trigonometric
functions appears in the center window.
In the example shown below, the expression (E0 * A)/d has been assigned to the non-conservative node capacitor. The name of the non-conservative node does not appear in the upper
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
6.
Click the Test button when the expression has been entered. If any SML syntax errors are
found in the expression, the Component Dialog Wizard indicates the source of the error so
that you can correct it.
7.
8.
Repeat steps 1 through 7 for all non-conservative input nodes whose values are to be calculated
using free values.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The grid.
Lock controls.
Size controls.
By default, the grid is shown when the Component Dialog Wizard starts. If the grid is not
shown, it may be turned on by selecting Layout>Show Grid. Use the Show Grid command to
toggle showing/hiding the grid.
Spacing between points on the grid can be adjusted by selecting Wizard>Options from the
Component Dialog Wizard menu bar.
The Properties dialog box opens.
In this dialog box, enter an integer between 2 and 100 in the Grid Size field to adjust the spacing between grid points. A value of 2 provides the smallest grid spacing, 100 the largest.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Select the element or elements to be aligned with the single selected element. To do this, use
the mouse to draw a rectangle around the desired elements, or hold down the Shift key and
click each element individually.
2.
Select the guide element. To do this, hold down the Shift key while the other elements are
selected and then click the guide element. The guide element must be selected last.
3.
Choose a lock control by selecting Layout>Lock Controls, or click the appropriate lock control on the Layout toolbar.
4.
Left: The left edges of the selected elements become aligned with the left edge of the
guide element
Right: The right edges of the selected elements become aligned with the right edge of the
guide element.
Top: The tops of the selected elements become aligned with the top of the guide element.
Bottom: The bottoms of the selected elements become aligned with the bottom of the
guide element.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The first illustration in the example below shows the groups Resistor and Capacitor Parameters
and Default Outputs selected to be aligned with the left edge of the group Conservative Nodes.
The Left lock control is selected from the lock control menu to perform the alignment.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The second illustration shows the three groups in left alignment after the lock to the left has
occurred.
Select the element or elements to be sized to the reference element. This may be done by using
the mouse pointer to draw a rectangle around the desired elements or by holding down the
Shift key and clicking on each element individually.
2.
Select the reference element. This is done by holding down the Shift key while the other elements are selected and then clicking on the reference element.
Note
3.
Choose a size control by selecting Layout>Size Controls or by clicking the appropriate size
control on the Layout toolbar.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Size Height the selected elements are sized to have the same height as the reference
element.
Size Width the selected elements are sized to have the same width as the reference element.
Size Both the selected elements are sized to have the same height and width as the reference element.
The first illustration in the example below shows the group Conservative Nodes selected to be
sized to the height of the group Source Voltage Parameters. The Size Height command is selected
from the size control menu to accomplish the size change.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The second illustration shows the two groups with equal height after the sizing has occurred.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Open the Component Dialog Wizard if it has not already been opened.
2.
Select Layout>SetTabOrder.
Alternately, click the Set Tab Order button on the Layout toolbar (for more information on
the Component Dialog Wizard menu bar and toolbars, see Section XII: Reference).
The current tab order of the component dialog box will be shown. The element that is first in
the tab order is numbered 0, and the elements that are selected with each subsequent pressing
of the Tab key are numbered in ascending numerical order.
3.
Click the component dialog element that is to be first in the new tab order.
The number of the element should change to 0.
4.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
5.
Continue selecting elements until all elements are in the correct order. The illustration below
shows the same component dialog shown above with a newly set tab order:
6.
Click an empty portion of the component dialog to exit the tab order utility.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Lock causes the element to maintain a constant distance between its borders and selected
borders of the component dialog box. The element may change size in order to do this.
Relative causes the element to maintain its size and to maintain its relative distance from
the selected borders of the component dialog box as the dialog box is resized.
Default causes the element to maintain its size. An element with this behavior does not
maintain its relative distance from other elements with default behavior as the dialog is resized.
The following examples illustrate each dialog box resize behavior type:
Lock Behavior
Lock behavior causes a component dialog box element to maintain a fixed distance from the borders of the dialog. The first pair of illustrations shows a text edit element with Lock behavior
selected for the top and bottom dialog box borders. For comparison, a second text edit element of
equal size with Default behavior is also shown. The upper text edit is the one for which Lock
behavior has been selected.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The component dialog box has been resized by dragging its bottom border downward. In response,
the upper text edit has maintained its position relative to the top and bottom borders of the dialog
box. It has changed size in order to maintain a constant distance from both the top and bottom borders of the dialog box. In contrast, the text edit with Default behavior has moved in the direction of
the resizing of the dialog, and the distance between it and the top and bottom borders of the dialog
has changed.
Relative Behavior
Relative behavior causes a locked component dialog box element to maintain its relative distance
from the selected dialog box border. The next pair of illustrations shows two ComboBox elements
with Relative behavior selected with respect to the left border of the dialog box. For comparison,
two ComboBoxes of equal size with Default behavior are also shown. The upper ComboBoxes are
8-40 Component Dialog Wizard
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
the ones for which Relative behavior has been selected. These ComboBoxes are set to maintain
their left edges at the same relative distance from the left border of the dialog box as it is resized.
Relative Behavior - Before Resizing
The dialog box has been resized by dragging its right border to the right. In response, the upper
ComboBoxes have moved so that their relative distances to the left border of the dialog box
remains the same. In contrast, the lower ComboBoxes set for Default behavior have not moved.
Default Behavior
Default behavior, which is the behavior shown by a dialog box element if neither Lock nor Relative behaviors are selected, causes a dialog box element to maintain its size and its position relative
to the dialog box top and left edges when the dialog box containing it is resized. The next pair of
illustrations shows a group element with Default behavior. For comparison, a group element with
Lock and Relative behaviors is shown. The group with Default behavior is the upper group in the
illustration.
Component Dialog Wizard 8-41
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The dialog box has been resized by dragging its bottom border downwards and by dragging its right
border to the right. The upper group with Default behavior has not changed in size and has also
maintained its position relative to the left and top edges of the dialog box. The bottom group with
Lock and Relative behavior has changed its size in proportion to the change in size of the dialog
and has maintained its position relative to the left edge of the dialog box.
Resizing behavior.
Conditions
Right-click the element and select Properties from the context menu.
The Properties dialog box appears.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
3.
Select the desired resizing behaviors by checking the appropriate boxes. Relative can only be
selected if Lock is enabled. The Relative behavior number is the percentage of the dialog box
width (or height) maintained by the elements edge relative to the chosen dialog box edge. For
example, if Lock Right is selected, and its Relative number is set to 75; as the dialog box is
resized horizontally, the right edge of the element will move so that it is always 75 percent of
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
the distance between the left and right edges of the dialog box. If no boxes are selected, the element will exhibit Default behavior in both the width and height dimensions.
Note
4.
It is possible to achieve more than one resize behavior for a dialog element. For
example a given element can be set to Lock to the left dialog box border and to
resize in the height dimension by also choosing to Lock to the top (or bottom)
border.
Component dialog box elements do not exhibit their resize behaviors when the
component dialog box being constructed in the Component Dialog Wizard is
resized. They will exhibit their dialog resize behaviors only when a component
dialog box is resized in the Wizard's preview mode (See Section VIII: Testing a
Component Dialog for more details); or when a component dialog is accessed from
a Simplorer Schematic.
It is recommended that the user preview the dialog to be sure that the intended resize
behavior has been achieved.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Right-click the element and select Properties from the context menu.
The Properties dialog box appears.
2.
3.
Select the action to be applied to the dialog box element when the Condition is satisfied. Disable keeps the element visible while preventing the user from making changes to it. Hide
removes the element from view.
4.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
5.
Enter an expression for the desired condition for disabling or hiding the element in the upper
left-hand window of the Calculator dialog box. The expression should be written in terms of
free values, non-conservative input values, variables, and Simplorer mathematical and logical
operators, functions, and constants. The expression can be typed or entered using the utilities
provided in the Calculator dialog. These utilities are described below:
The right-hand panel contains a list of all conservative nodes, non-conservative nodes, and
free values. Double-clicking one of the names in this panel adds it to the expression.
The center panel contains a list of all Simplorer mathematical and logical operators, functions, and constants. Double-clicking one of the entries in this panel adds it to the expression.
The lower left-hand panel contains a list of the various categories of Simplorer operators,
functions, and constants. Clicking one of the categories filters the display in the center
window to the operators, functions, and constants associated with that category. For example, if you click Trigonometrics in the left panel, the list of Simplorer trigonometric functions appears in the center panel.
In the example shown below, the expression PHIO==KE has been entered. This condition is met
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
6.
Click the Test button when the expression has been entered. If any SML syntax errors are
found in the expression, the Component Dialog Wizard indicates the source of the error so
that you can correct it.
7.
8.
Repeat steps 1 through 7 for all non-conservative input nodes whose values are to be calculated
using free values.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Start the utility by selecting Layout>Show Component Dialog on the Component Dialog
Wizard menu bar.
Alternately, the utility can be started by clicking the Show Component Dialog button on
the Wizard's Layout toolbar.
The Component Dialog Preview window opens displaying a preview of the component dialog box. An example of a preview is shown below:
The preview allows the functionality of the component dialog to be tested. For example, values
in text edits may be retyped, radio buttons and check boxes may be selected and deselected,
and values in ComboBoxes may be changed. Additionally, the dialog resize behavior of the
component dialog may be tested by resizing the preview window.
Component Dialog Wizard 8-49
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
When finished testing, close the Component Dialog Preview window by clicking either the
OK or the Cancel button.
Start the Check Component Dialog utility by selecting Layout>Check Component Dialog
on the Component Dialog Wizard menu bar.
Alternately, the utility can be started by clicking the Check Component Dialog button on
the Wizard's Layout toolbar.
The illustration below shows an example of an error message returned by the Check Component Dialog utility:
The message indicates that the non-conservative input nodes c, rc, rd, and signal are not accessible through any control element available on the component dialog.
2.
To make the component dialog box complete, control elements must be added that connect to
these non-conservative nodes.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
To save the dialog box, select Wizard>Save on the Component Dialog Wizard's menu bar.
2.
To close the Component Dialog Wizard select Wizard>Close on the Component Dialog Wizard's menu bar.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
1.
To use a component dialog box, right-click the desired component on a schematic sheet and
select Properties from the context menu.
The models Properties dialog box appears.
2.
On the Parameter Values tab, click the CompDlgWizard button to open the component dialog box.
3.
Once the component dialog box opens, all of the functionality of the component dialog box is
available for use.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Delete - removes the component dialog created with the Wizard from subsequently placed
instances of the model. The changes made to the component dialog with the Wizard are
destroyed.
Save - saves all changes made to the element dialog.
Options - opens a dialog box (shown below) that features three controls for the Component
Dialog Wizard
Load Standard Layout - when selected, causes the Standard Layout to be loaded when the
Component Dialog Wizard 8-53
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Lock Controls - opens a submenu containing the Left, Right, Top, and Bottom Lock commands.
Size Controls - opens a submenu containing the Size Width, Size Height, and Size Both commands.
Show Grid - turns on or turns off the Component Dialog Wizard's grid.
SetTabOrder - starts the utility for setting the tab order of component dialog box elements.
Show Component Dialog - generates a preview of the component dialog.
Create Standard Layout - replaces all elements currently in the component dialog box with
the Standard Layout.
Check Component Dialog - starts the utility for checking if the component dialog is complete
with respect to non-conservative input nodes and free values.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Cut
Copy
Add
Static
Paste
Add
Text Edit
Delete
Add
Group
Help
Select
Add
Add
CheckBox RadioButton
Add
ComboBox
Add
ListBox
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Show
Component
Dialog
Align Top
Align Bottom
Size Both
Show Grid
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
9
Working with Variables
Variable Types
Defining an Expression
Intrinsic Variables
Defining Parameter Defaults
Assigning Variables
Choosing a Variable to Optimize
Including a Variable in a Sensitivity Analysis
Choosing a Variable to Tune
Including a Variable in a Statistical Analysis
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Variable Types
A variable is a numerical value, mathematical expression, or mathematical function that can be
assigned to a design parameter in Simplorer. Variables are useful in the following situations:
Project Variables are evaluated before simulation and can use constants,
functions and other project variables in their expressions.
A project variable can be identified by its dollar sign ($) prefix, as in $C1. If,
for instance, a project variable $C1 has been defined as equal to 4.32pF, a
capacitance property for a component anywhere in that project can be set
equal to 4.32pF by typing $C1 in the appropriate Value field:
You can manually include the symbol $ in the project variables name, or
Simplorer will automatically append the project variables name after you
define the variable.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Design Properties
Object Property
Variables
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
FML_INIT
Variables
FML Variables
FML variables are defined within FML components and are available for use
in expressions in the local design, also similar to local variables. These are
evaluated for each iteration at a point in the sequence of evaluation of the
user's choice, and can use simulation-dependent variables in their expressions.
Analysis control variables can be set within an FML component and will
override those values in the solution setup. As an example, setting Hmin and
Hmax based on a specific time value or circuit conditions may be very useful.
Care must be taken to avoid unintended consequences if these values are
changed. Note that setting Tend in this way may cause problems with spectral
plots, continuing a simulation based on Enable continue to solve in the setup,
or continuing a simulation with a state (KRN) file.
NOTE: The order of variable declaration is important, and this order is under
user control in FML components. A variable that is used before being defined
has a value of 0 at that use.
If you define a variable as an expression that evaluates to a constant, whether a project, local or
parameter variable, the expression will be retained in the variable list, rather than being evaluated
and replaced with a constant. This allows you to identify and modify the expression in the future.
Note
Whether you are defining project, local, or parameter variables, intrinsic names (f,
freq, lb, etc) are reserved and cannot be used or entered into the source and port
dialogs. See Reserved Variable Names for details.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
variables name when you create it, or Simplorer will automatically append the project variables
name with the symbol after you define the variable.
1.
Alternatively, right-click the project name in the project tree, and then click Project Variables on the shortcut menu.
The Properties dialog box appears, containing three tabs: Project Variables, Intrinsic Variables, and Constants.
Note
2.
The Intrinsic Variables and Constants tabs provide non-editable reference listings of
Simplorers predefined internal variables and constants.
3.
Note
4.
Project variable names must start with the symbol $ followed by a letter. Variable
names may include only alphanumeric characters and underscores ( _ ).
Names of reserved variables, reserved (intrinsic) functions and pre-defined
constants cannot be used as variable names.
Simplorer prepends a $ character to each project variable name you specify. The
$ symbol becomes an essential part of the project variable name and must be
included whenever you specify an existing project variable as a parameter value.
In netlists, the $ prefix is changed to Pjt_. For example, project variable $RNom
appears as Pjt_RNom in the netlist.
In the Unit Type text box you can use the drop down menu to select from the list of available
unit types. None is the default.
When you select a Unit Type, the choices in drop down menu for the Units text box adapt to
that unit type. For example, selecting Length as the Unit Type causes the Unit menu to show a
range of metric and english units for length. Similarly, if you select the Unit Type as Resistance, the Units drop down lists a range of standard Ohm units.
5.
In the Value text box, type the quantity that the variable represents. Optionally, include the
units of measurement.
Warning
If you include the variables units in its definition (in the Value text box), do not
include the variables units when you enter the variable name for a parameter value.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
statistical analysis.
6.
7.
8.
Optionally, select Read Only. The variables name, value, unit, and description cannot be
modified when Read Only is selected.
9.
Optionally, select Hidden. If you clear the Show Hidden option, the hidden variable will not
appear in the Properties dialog box.
The new variable can now be assigned to a parameter value in the project in which it was created.
Related Topics
Viewing and Editing Project Variables
Deleting Project Variables
Add/Edit Property Dialog Boxes
Alternatively, right-click the project name in the project tree, and then click Project Variables on the shortcut menu.
On the Project Variables tab, edit the variable name, value, unit, and description by clicking
in the appropriate cell and making the necessary changes.
Note
3.
Ensure that the Read Only checkbox is unchecked before attempting to edit.
Ensure that the Show Hidden checkbox is checked to display all defined variables.
2.
3.
Click Project>Project Variables to display the Properties dialog with list of variables.
4.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Related Topics
Deleting Local Variables
Alternatively, right-click the design name in the project tree, and then click Design Properties on the shortcut menu.
3.
Note
4.
Variable names must start with a letter, and may include alphanumeric characters
and underscores ( _ ).
Names of reserved variables, reservoir (intrinsic) functions and pre-defined
constants cannot be used as variable names.
In the Unit Type text box you can use the drop down menu to select from the list of available
unit types. None is the default.
When you select a Unit Type, the choices in drop down menu for the Units text box adapt to
that unit type. For example, selecting Length as the Unit Type causes the Unit menu to show a
range of metric and english units for length. Similarly, if you select the Unit Type as Resistance, the Units drop down lists a range of standard Ohm units.
5.
In the Value text box, type the quantity that the variable represents. Optionally, include the
units of measurement.
Note
If you include the variables units in its definition (in the Value text box), do not include
the variables units when you enter the variable name for a parameter value.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
statistical analysis.
Note
6.
Complex numbers are not allowed for variables to be used in an Optimetrics sweep, or
for optimization, statistical, sensitivity or tuning setups.
7.
The new variable can now be assigned to a parameter value in the design in which it was created.
Note
Local Variables are not usable in the designs subcircuits and are not in the designs
public interface (i.e., They are not visible on the component representing the design
when it is used as a subdesign)
Display the properties of the component that will use the local variable you want to define. To
do this, do any one of the following:
Right-click the component and select Properties from the pop-up menu.
The Properties dialog box opens.
Click either the Parameter Values or the Quantities tab.
Select the component, and then view its properties in the Param Values or Quantities tab
of the desktops Properties window.
a. Select the component.
b. On the Edit menu, click Properties.
The Properties dialog box opens.
c. Click the Parameter Values tab.
a. Select the component, and then right-click to open its shortcut menu.
b. Click Properties.
The Properties dialog box opens.
c. Click the Parameter Values tab.
2.
Click in the Value field for the parameter you want to set equal to the local variable.
3.
Type the variable namefor example, Resistor1. The name may not duplicate a reserved
(intrinsic) variable name. See Reserved Variable Names for details.
4.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
5.
Type a valid numerical quantityfor example, 10, 1.2e6, 1.5pF or 2.82mmin the Value
box.
6.
7.
Note
8.
Local Variables are not usable in the designs subcircuits and are not in the designs
public interface (i.e., They are not visible on the component representing the design
when it is used as a subdesign)
1.
2.
3.
4.
5.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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. Expressions may also contain pre-defined constants, but such constants may not be reassigned a new value. 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.
Numerical values may be entered in ANSYS Electromagnetics shorthand for scientific notation.
For example, 5x107 could be entered as 5e7.
Operator Precedence
Operators that can be used to define an expression or function have a pre-defined sequence in
which they are performed. The following list shows both the valid operators and the sequence in
which they are executed (listed in decreasing precedence). Operators of equal precedence are evaluated left-to-right except for exponentiation, which is evaluated right-to-left.
()
parenthesis
^ (or **)
exponentiation
unary minus
multiplication
division
addition
subtraction
==
!=
not equal
>
greater than
<
less than
>=
<=
&&
||
logic OR (disjunction)
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Range Functions
Range Functions are special functions that use a 2D dataset as input, along with 0 or more additional parameters. Range functions can be used to produce a user-created 2D report display that is a
collection of traces and their attributes. The trace collection and attributes are used to generate a
portion of a report definition that generates a family of curves in the report window.
For more information, as well as a table which lists available Range Functions, see Defining Traces
Using Range Functions.
Note
If you do not specify units, all trigonometric functions interpret their arguments in
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.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
When you define a new Project Variable or Local Variable, the name you assign must not
be the same as one of the reserved variable names listed on the Intrinsic Variables tab.
To view the list of reserved variable names, open the Project pull-down menu in the top menu bar
(or right-click on the name of a project), select Project Variables, and then click the Intrinsic
Variables tab:
Description
_Empty
_I1
_I2
_I3
_I4
_I5
_I6
_I7
_I8
_I9
_t
_u
_v
_V1
_V2
_V3
_V4
_V5
_V6
_V7
_V8
_V9
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Description
Ang
Budget_Index
Distance
...
ElectricalDegree
F1
F2
F3
Fend
...
FNoi
Freq
Fstart
...
Fstep
...
...
Hmax
...
Hmin
...
Ia
Ib
Index
IWavePhi
IWaveTheta
NormalizedDeformation
...
NormalizedDistance
OP
Pass
Phase
Phi
Rho
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Description
RSpeed
Spectrum
Temp
Tend
...
Theta
Time
Vac
Vbe
Vce
Vds
Vgs
ZAng
ZRho
In the project tree, right-click the design for which you want to define a parameter default.
2.
3.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
4.
Select Value.
5.
6.
Select Variable.
7.
8.
9.
Assigning Variables
To assign a variable to a parameter in Simplorer:
Type the variable name or mathematical expression in place of a parameter value in a Value
text box.
If you typed a variable name (without the $ prefix) that has not been defined, the Add Variable dialog box will appear, enabling you to define the variable either as a Local Variable or
as a Parameter Default.
If you typed a variable name that included the $ prefix, but that has not been defined, the Add
Variable dialog box will appear, enabling you to define the project variable.
Note
You can assign a variable to nearly any design parameter assigned a numeric value in
Simplorer. See the Simplorer online help about the specific parameter you want to vary
to determine if can be assigned a variable.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
If the variable is a design variable, on the Simplorer Circuit menu, click Design Properties.
b.
If the variable is a project variable, on the Project menu, click Project Variables.
Click the tab that lists the variable you want to optimize.
3.
Note
4.
5.
Note
6.
Complex numbers are not allowed for variables to be used in an Optimetrics sweep, or
for optimization, statistical, sensitivity or tuning setups.
Optionally, override the default minimum and maximum values that Optimetrics will use for
the variable in every optimization analysis. During optimization, the optimizer will not consider variable values that lie outside of this range.
Related Topics
Setting up an Optimization Analysis
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
If the variable is a design variable, on the Simplorer Circuit menu, click Design Properties.
b.
If the variable is a project variable, on the Project menu, click Project Variables.
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
4.
5.
For the variable you want to include in the sensitivity analysis, select Include.
The selected variable will now be 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 will use for
the variable in every sensitivity analysis. During sensitivity analysis, Optimetrics will not consider variable values that lie outside of this range.
7.
Optionally, override the default initial displacement value that Optimetrics will use 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.
Related Topics
Setting up a Sensitivity Analysis
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
If the variable is a design variable, on the Simplorer Circuit menu, click Design Properties.
b.
If the variable is a project variable, on the Project menu, click Project Variables.
Click the tab that lists the variable you want to tune.
3.
Note
4.
5.
Note
Complex numbers are not allowed for variables to be used in an Optimetrics sweep, or
for optimization, statistical, sensitivity or tuning setups.
The selected variable will now be available for tuning in the Tune dialog box.
Related Topics
Tuning a Variable
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
If the variable is a design variable, on the Simplorer Circuit menu, click Design Properties.
b.
If the variable is a project variable, on the Project menu, click Project Variables.
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
4.
5.
For the variable you want to include in the statistical analysis, select Include.
The selected variable will now be available for statistical analysis in a statistical setup defined
in the current design or project.
Note
6.
Complex numbers are not allowed for variables to be used in an Optimetrics sweep, or
for optimization, statistical, sensitivity or tuning setups.
Optionally, override the distribution criteria that Optimetrics will use for the variable in every
statistical analysis.
Related Topics
Setting up a Statistical Analysis
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
10
Schematic Editor
The schematic editor is the Simplorer tool for creating and editing designs. A design graphically
represents and captures the electrical, mechanical, and functional characteristics of a circuit or
multi-domain system. A design may be hierarchical; that is, it may contain symbols that represent
other designs. A design may consist of one or more pagesmultiple, associated graphical workspaces that share a local namespace at the same hierarchical level. You create a design by starting
the schematic editor and placing components, ports, connectors, and wires (connections) into a
default empty schematic.
General
Simplorer
Wiring
Multiple Placement
Fonts
Colors
Symbol Editor
2.
3.
Click OK.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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. (See Symbol Graphic Object Levels for additional information.)
SubCircuit Pin Spacing specifies the pin spacing in grid units for pins on a subcircuit component symbol. The default value is 1 grid unit. (See Adding a SubCircuit and Creating a SubCircuit from a Selection Area for additional information.)
Show Pin Names specifies that pin names are to be displayed in the Schematic Editor.
Property Display Angle Follows Symbol Angle specifies that displayed text properties
rotate when the associated component is rotated. Disabled by default.
Update Property Display on Definition Update specifies that when component symbol
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.
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.
Show advanced property data - turns on the display of less often used property tabs, such as
Symbol and General for components.
Net name display sets the net name property display distance from the net.
Selection Colors sets the colors of the first and subsequent objects as they are selected on a
schematic.
Inputs
Outputs
Inouts
Show Merge Wire dialog before combining wires displays the Merge Wire dialog box
before combining wires to allow for changes to the merge configuration.
Show Split Wire dialog before separating wires displays the Split Wire dialog box before
separating wires to allow for changes to the split configuration
Schematic Editor 10-2
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Show GlobalPort Disconnect dialog before separating displays the GlobalPort Disconnect dialog before separating wires to allow for changes to the global port configuration.
Components
Interface Ports
Grounds
Page Connectors
Global Ports
Object Type a pull-down menu used to select the object type whose colors you wish to
modify. Types are: Components, Interface Ports, Page Ports, Global Ports, Grounds,
Graphic Items, Wires, and Buses.
Set Color implements the color you have selected for the object type.
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.
Component Name is used to identify the component whose colors you wish to modify.
(Visible only when the Components Object Type is selected.)
Add allows you to add a component whose colors you wish to define. (Visible only
when the Components Object Type is selected.)
Wire Domain a pull-down menu used to select the wire domain whose color you wish
to modify. Each Wire Domain is assigned a unique color by default. Domains are: ConSchematic Editor 10-3
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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.
Clear Color resets the color of the component to its default value.
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.
In the Project Manager project tree, right-click the icon for the desired project, point to
Insert, and then click Insert Simplorer Design.
In the Project Manager project tree, select the project that will contain the new design by
clicking its icon. Then, on the Project menu, click Insert Simplorer Design; or click the
icon in the toolbar.
Related Topic:
Working with Simplorer Projects
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
the Shift+alt+drag keyboard shortcut to zoom in and out using the mouse. If your mouse has a
scroll wheel, you can also zoom in and out by holding down the Shift key while moving the scroll
wheel up (zoom in) or down (zoom out).
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 your mouse has a scroll wheel, move
the wheel up to scroll up and down to scroll down. If you scroll so far that no objects are in the
view, select Fit Drawing from the View pulldown in the Simplorer top menu bar (or Ctrl+D) to recenter the entire design, resized to fill the window.
Undo
Ctrl+y
Redo
Ctrl+x
Cut
Ctrl+c
Copy
Ctrl+v
Paste
Ctrl+a
Select all
Ctrl+e
Zoom in
Ctrl+f
Zoom out
Ctrl+q
Zoom area
Ctrl+d
Fit drawing
Ctrl+r
Rotate
Ctrl+w
Add wire
Ctrl+k
Shift+drag
Pan
Shift+Alt+drag
Zoom
Ctrl+Shift+click
F3
Find Elements
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Grid Setup
You can adjust the visibility, color, resolution, and other characteristics of both the Schematic
Editor and Symbol Editor grids.
Note
1.
The Schematic Editor and the Symbol Editor grid settings are independent of each
other.
If using the Schematic Editor, click Grid Setup on the Schematic menu.
b.
If using the Symbol Editor, click Grid Setup on the Symbol menu.
c.
on the Toolbar.
The Grid Setup dialog box opens displaying the settings described below.
Grid Lines Group
Pin grid This box displays and specifies the spacing of the pin grid lines (default is 100
mils). To specify a different value, click in the Pin grid box, and then type the new value. You
can also change the unit of measure. Because symbol pins always snap to the pin grid, changes
to this setting in the Schematic Editor affect the size or scale of displayed symbols.
Note
You can see the effect of changes to this setting more clearly if you apply a border to the
schematic using the Schematic>Page Borders command.
Major This box displays and specifies the spacing of the major grid lines (default is 10 pin
grids between major grid lines). To specify a different Major value, click in the Major box,
and then type the new value. To change the color of the major grid lines, click the Major color
button, specify a color in the Color dialog box, and then click OK to close the Color dialog.
Minor This box displays and specifies the number of minor grid divisions between major
grid lines (default value is 10). To specify a different value, click in the Minor box, and then
type the new value. To change the color of the minor grid lines, click the Minor color button,
specify a color in the Color dialog box, and then click OK to close the Color dialog.
Show Grid This check box toggles grid line visibility. Select Show Grid to make the grid
lines visible, or clear Show Grid to turn grid line display off. The default setting for Show
Grid is on.
Snap Text and Graphics to Grid This check box controls whether text and graphics (arcs,
circles, lines, polygons, rectangles) automatically snap to the nearest grid intersection on
placement. The default setting is on (checked).
Note
To ensure connectivity among schematic elements, symbol pins always snap to the pin
grid regardless of the Major and Minor grid line settings. This snapping cannot be
disabled.
Other Group
Background Color To set the editor background color, click the color box. The Color diaSchematic Editor 10-6
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
log box opens. Specify a color, and then click OK. The default background color is white.
Save as Default Check this box to save the current Grid Setup values as defaults for use
across Simplorer sessions.
Defaults Click to restore the Major, Minor, and Background Color settings to their factory
defaults.
OK click to commit changes made in this dialog box and close it.
Cancel Click to close this dialog box without committing changes made in it, if any.
2.
Make the desired settings, then click OK to apply them and exit the dialog box.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Page Borders
Title Block
Page Properties and Display
Border Type
None no border is displayed. All other settings in the tab are disabled when None is selected.
If title blocks have been defined, they will be hidden.
Outline only displays a simple outline of the specified Page Size. Margins can also be
adjusted.
ANSI Zones displays fully ANSI-compliant borders of the specified Page Size. The specified Number of Zones are added to the border.
ISO Zones displays fully ISO-compliant borders of the specified Page Size. The specified
Number of Zones are added to the border.
DIN Zones displays fully DIN-compliant borders of the specified Page Size. The specified
Number of Zones are added to the border.
Page Size allows you to choose from a number of preset vertical and horizontal page sizes.
Selecting Custom allows you to set your own page Width and Height.
Number of Zones allows you to set the number of Vertical and Horizontal zones to draw.
The minimum and maximum number of zones allowed varies with page size. If you try to set a
number outside of the allowable range, pop-up reminder appears displaying the allowable
range of values.
Margins allows you to set the Vertical and Horizontal margins in inches.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
On the Title Block tab, you can choose a Title Block Library by clicking the ellipsis button
[...] to locate a title block .aslb library; or accept the default library.
To add a title block to the grid, click on the yellow lightning bolt icon, and select a title block
symbol from the list presented.
Within the grid control, the title block can be set to snap along the bottom, top, or either side,
or not snap at all. You can optionally Rotate the title block 0, 90 or 270 degrees.
You can move title blocks on the schematic much like any other element, though title blocks
have optional snapping constraints. If a title block has been set to snap (any choice but None),
it can be moved between snapping points - Left, Center and Right for horizontal, Top, Center
and Bottom for vertical. The snap property on the title block will be changed accordingly. The
snap location can also be changed through the property window or the Page Borders and Title
Blocks dialog.
More than one title block can be added to a page. Unwanted title blocks can be deleted from
the page using either the single red X button to delete a single entry, or the double red X
button to delete all entries. An ID property on the title block corresponds to the number in the
ID column of this tab, so a user can identify which title block to delete.
Click OK to add all title blocks in the list to the schematic page, The blocks in the list snap to
the border as specified, or as previously placed if the snap specification is None. If blocks were
removed from the list, they are removed from the schematic. Any changes made to blocks in
the list are applied to pre-existing title blocks.
Schematic Editor 10-9
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Selecting None for Border Type after setting up border and title block(s) causes title blocks to
be remembered but not drawn.
Note that you can create a symbol with company logo, propdisplay positioning, and as much
additional information and graphics as needed and store it in a symbol library where it will be
available for any schematic page.
Clicking on the Save as default checkbox causes the title block information to be saved to the
registry and used as a default for the subsequent pages.
Page properties can include fields such as: ProjectPath, Project, Design, Title, Author, and Date.
Click on a Value field and enter the desired information. Data entered in fields used by the title
block(s) appear in the title block on the schematic. Page properties are saved if the Save as default
checkbox is checked, and then initialized when a new page is created. You can create additional
page properties, by clicking the yellow lightning bolt button.
In the symbol editor, a propdisplay may be added to a title block symbol, and the title block
propdisplay will then show the value of the same-named page property.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
To magnify or shrink the contents in the view window do any of the following:
2.
The view zooms to the chosen magnification. The absolute size of the model does not change.
3.
Note
To magnify a specific rectangular area in the view window do one of the following:
Draw a rectangle (or square) by selecting two diagonally opposite corners. This is the area
where magnification will be increased.
The rectangular area is magnified in size and the cursor returns to normal. The absolute size of
the model does not change.
To scale the contents to fit within the current window do one of the following:
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
Right-click in the schematic window and select Fit Drawing from the popup menu.
Click the
The view zooms to fit the contents of the drawing within the bounds of the window. The absolute size of the model does not change.
When a border has been added to a drawing, scale the bordered contents to fit within the
current window by clicking Fit Border on the View menu.
2.
The view zooms to fit the bordered contents of the drawing within the bounds of the window.
The absolute size of the model does not change.
Select Pan from the View menu. The cursor changes to a hand as you move it over the schematic window. Click and hold down the left mouse button and move the cursor to pan the view
in any direction. Release the mouse button to end the panning operation.
Hold down the Shift key and then click the left mouse button. The view is now attached to the
cursor (now shaped like a hand). Hold down the mouse button and move the cursor to pan the
view in any direction. Release the mouse button to end the panning operation.
Click the
icon on the toolbar. The cursor changes to a hand as you move it over the schematic window. Click and hold down the left mouse button and move the cursor to pan the view
in any direction. Release the mouse button to end the panning operation.
(Schematic and Symbol Editors) If you have a scroll-wheel mouse, move the wheel up to pan
the view up, down to move the view down.
Redrawing a View
You can redraw the current window view by selecting Redraw from the View menu.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Elements
Simulation
parameters
The following sequence of steps describes how to create a simulation model using the schematic
editor.
1.
Select and place components on a schematic sheet. Refer to the About Simplorer
Components chapter for detailed information on the types of components you can use to
create simulation models.
Note These components can also include subcircuit models coupled to external
applications.
2.
3.
4.
5.
Add drawing elements (including text and imported graphics), and reports as needed.
2.
In the component list, locate the component you want to place, opening library files
and
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
folders
Hint
3.
Searching for components in the installed libraries can be time-consuming. The Project
Manager Search feature minimizes the complexity of the search and allows quick
access to all models.
4.
Double-click the component, and then move your mouse cursor into the schematic. Inside
the schematic window, the cursor is accompanied by the component symbol for placement.
Clicking and holding the left mouse button on the desired component, then drag the component to the desired location and releasing the mouse button.
Right-click the component, and then select Place Component.
Position the cursor where you want to place the component, and click.
Hint
If Multiple Placement is turned on for components in Simplorers Schematic Options dialog box,
you can place additional instances of the component by clicking at additional locations.
To stop placing components during multiple placement, do either of the following:
Hints
To help facilitate the easy copying of design materials, Simplorer allows you to drag
and drop components from the Project Manager window to the Schematic Editor. In
particular, you can select and drag components:
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
1.
The first time you place a component in a project, entries for it are added under
the Component trees Most Recently Used and Project Components
headings. To save time as your work progresses, you can place new instances of
a component by double-clicking these icons as well.
For security reasons, encrypted components are not saved in the Most
Recently Used list or the Favorites list.
2.
3.
Warning
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Simplorer internal models have predefined default units for their parameters. Parameters
of user-defined models such as C-models and text macros can be assigned expected units
when they are created.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
To display the editable parameters of a component, either right-click the component and select
Display Component Dialog on the pop-up menu, or simply double-click the component. A typical
component Parameters dialog box is shown below.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
A components Parameters dialog box opens with its left-most tab selected by default; and with
the component instance Name selected.
Note
The parameters and associated units of measure shown in the component dialogs vary by
component. The dialog box may also contain additional parameter settings tabs - depending on the
component type. It also contains an Output/Display tab on which you can enable parameters as
outputs, and control how they are displayed on schematics.
Note
Component Properties dialog boxes also provide access and control of the
parameters shown in the Parameters dialog boxes.
You must use the Properties dialog boxes to edit parameters of components that do
not have a Parameters dialog box.
Use the various radio buttons, checkboxes, drop-down menus, and text boxes to edit parameter
values and - where applicable - to select the unit of measure. When new units for a components
parameters have been selected and the component is simulated, Simplorer automatically converts
quantities expressed in the used units to equivalent quantities of the default (expected) units. In
other words, component parameters can be expressed in units from different systems of
measurement, and the simulation still produces accurate results.
Use your mouse to move between fields, select radio buttons, and check and uncheck checkboxes.
You can also press the Tab key to move between fields, the SPACEBAR to check and uncheck
checkboxes, and the up- and down-arrow keys to select radio buttons. Press F1 to view detailed
information for a component and its parameters.
Parameter values can also be specified via input from an external component. To do this, check the
Use Pin box next to the desired parameter. The parameters value field is grayed-out to show that
the value of the parameter will now be determined by the component to which the pin is connected.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Descriptions of the column headings for the Output/Display tab are as follows:
Properties window Click on a component to select it. The Properties window displays the
properties of the selected component on a series of tabs where they may be edited.
Properties dialog box Right-click a component and select Properties on the pop-up menu to
edit properties. In addition to the tabs available on the Properties window, the Properties dialog
also contains a Property Displays tab, which can be used to control the display of properties as
text labels on the schematic.
Note
If you select multiple components, only those properties common to all selected
components are shown in the Properties window or dialog box. Changes made to
any of these common properties will affect all selected components. For example,
you can use this feature to select and deactivate several components simultaneously.
Clicking the Show Hidden checkbox allows you to view hidden properties of the
component. Hidden properties contain system-defined values and rules for
interpreting predefined component parameters. Modifying hidden properties
requires specialized knowledge of the component, and is not needed for normal
operation.
In-place editing Double-click on a property that is displayed near the component to start an
in-place edit of the property value. You can also move the property text box by dragging it to
the desired location.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
To add a component to the Favorites list, right-click on the component in the listing, and then
select Add to Favorites from the pop-up menu.
Note
For security reasons, encrypted components are not saved in the Most Recently Used
list or the Favorites list.
To remove a component from the Favorites list, right-click on the component in the Favorites
list, then select Remove from Favorites from the menu:
Operations on Components
Right-clicking on a component or other object in the schematic selects the object and opens a
context menu. This menu contains the following Schematic Editor commands.
Properties opens the Properties dialog box for the selected component.
Show Component Dialog... opens the component Parameters dialog box for the component.
Add at unconnected pins adds either Page Connectors, Interface Ports, or Grounds to
unconnected pins of the component.
Cut deletes the selected component or wire segment, and retains a copy for pasting into a
Schematic Editor 10-20
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Copy creates a local copy for pasting into a schematic in the same application.
Delete deletes the component.
Rotate rotates the component 90 degrees counterclockwise. (See also Drawing Operations:
Rotate.)
Flip Vertical flips the component in the Y-direction. (See also Drawing Operations: Flip
Vertical.)
Flip Horizontal flips the component in the X-direction. (See also Drawing Operations: Flip
Horizontal.)
Bring to Front moves the selected object to the front of the drawing. (See also Drawing
Operations: Bring to Front.)
Send to Back moves the selected object to the back of the drawing. (See also Drawing Operations: Send to Back.)
Activate restores a deactivated component to the circuit.
Deactivate (Open) temporarily converts the component into an open circuit. This is displayed graphically with a red X over the circuit element.
Deactivate (Short) temporarily converts the component into a short circuit. This is displayed
graphically with a circled red X over the circuit element.
Edit Component lets you edit the component using the Component Editor.
Edit Symbol lets you edit the component symbol using the Symbol Editor.
Copy as New Design lets you copy hierarchical designs (subcircuits) such that the pasted
copy is independent of the original source design. This menu item is also present in the context
menu for a subdesign in the Project Manager tree. (See also: Copying a Simplorer Design into
Another Design)
Edit Model lets you edit the component model using the appropriate model editor: SML
Model Editor, VHDL-AMS Model Editor, C-Model Editor, SPICE Model Editor. The message manager informs you if the model is not editable.
Alternatively, you can open the model for editing by right-clicking the model symbol in the
Project Manager Project tab, and selecting Model from the context menu
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Paste puts the local object from the previous copy or cut into the schematic.
Print prints the schematic in the active window.
Zoom In decreases the area of the schematic in the view.
Zoom Out increases the area of the schematic in the view.
Zoom Area lets you specify the new view area by clicking to specify the upper left and
lower right corners.
Fit Drawing changes the view to include all the objects currently present.
Right-clicking a component in the Components tab of the Project window opens a menu
containing the following commands:
Add to Favorites adds the component to your list of frequently-used components (see
Favorites and Most Recently Used Components).
Place Component attaches the component symbol to the cursor for placement in the schematic.
Edit Component opens the Component Editor dialog (see The Edit Component Dialog Box
in the Component Libraries topic for details).
View Component Help opens the on-line help topic for the component.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
When the Characteristic dialog box opens, select either an internal or external reference option for
the characteristic. Internal references include Component references and Datasets. External
references can be to variables or an external data file.
If you attempt to enter an invalid reference, an error dialog box displays informing you
of the invalid entry, and recommending possible remedial actions.
If you attempt to enter an invalid reference, an error dialog box displays informing you of the
invalid entry, and recommending possible remedial actions.
This reference may also be accomplished using a pin. To do this, check the Use Pin box in the
component's dialog rather than opening the Characteristic dialog. The pin to connect the external
component becomes visible on the sheet.
Characteristics in Files
To define a characteristic using an external file, select the option External Reference, and then
select File Name. You may then browse to the external file using the available buttons.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Using Pins
Pins are graphical connectors for linking nodes or parameters with a wire. There are two different
pin types: conservative nodes (also referred to as terminals) and non-conservative nodes (which
include parameters, inputs, and outputs).
Conservative
Non-conservative
2.
Once the Properties dialog is open, select the Quantities or Signals tab. These tabs contain a list
of all of the component's pins.
3.
To show a pin, select the Show Pin check box for the desired pin. To hide a pin, deselect the
check box.
Note
4.
The Show Pin check boxes are disabled for pins that cannot be displayed. Connections to
hidden pins can be defined via a name reference.
Click <Apply>. All selected parameters and nodes receive a pin on the sheet.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Names at Pins
The Property Displays tab controls the display of component properties associated with pins on the
schematic. Displayed properties appear as text labels on the schematic.
Connecting Components
Components on a sheet can be connected using wire mode or by dragging one pin of a component
over another pin of the same type.
Warning
Note
Direct connections between interface ports, or between an interface port and ground, are
not allowed
Connections (wires) for the various domains are distinguished by default colors. For example,
green for hydraulic, orange for magnetic, black for electrical, etc. Connections between different
domains are blue. These default colors can be set on the Colors tab in the Schematic Editor Options
dialog box.
To start drawing a wire, do one of the following:
Move the mouse cursor over a component pin to display the X-shaped wiring cursor:
Wiring Start
To draw connections:
Schematic Editor 10-25
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Click at the point where you want the wire to start, and move the cursor to extend the wire. As
you move the cursor, click wherever you want to turn a corner.
Wiring Finish
Selecting a Wire
Although you may draw a wire that includes bends in a single operation, Simplorer treats each
portion of a wire between bends as a separate segment during selection operations.
Related Topics
Removing Unconnected Wires
NetName is the name of the unique interconnecting node, or net, a wire represents. NetNames
correspond to the node names shown in the schematics corresponding circuit file, or netlist.
PinCount reflects how many component pins a wire interconnects, with one exception: Port
connections (interface and ground) are listed separately and thus are not included in PinCount
Schematic Editor 10-26
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
values. A wire connecting a port and three component pins will therefore have a PinCount of 3.
Related Topics
Removing Unconnected Wires
Checking Connectivity
The Electric Rule Check (ERC) feature checks the circuit for valid connectivity. ERC automatically
conducts rule checking for ports, connections, dangling (unconnected) wire segments, and
components of the active schematic.
1.
To test for connectivity, select Schematic > Electric Rule Check to open the Electric
Rule Check dialog.
2.
Select Check subcircuits to run the electric rule check on subcircuits of the active
schematic display
3.
4.
If an error is displayed in the Results window double-click the error message or select the
message and click Goto Error to go directly to the object in the Schematic Editor that
caused the error.
5.
Click Copy Results to Clipboard to copy the Results text to the clipboard for pasting
into another application such as an e-mail program.
6.
Related Topics
Removing Unconnected Wires
To remove all unconnected (dangling) wires and net segments from a schematic, select
Schematic>Remove Unconnected Wires.
Note
Merged nets (two or more nets with the same name) are not removed.
Related Topics
Selecting a Wire
Displaying Wire Properties
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Bus Format
A bus is a collection of schematic wires that are indexes of a base name, e.g., Data[0-31]. A bus is a
schematic concept only. In the circuit and layout, all signals are individual.
A bus name consists of :
A base name. A base name can contain any alphanumeric characters except the space ( ),
ampersand (&), and asterisk (*).
A square or angle open bracket ([, <]
A number, a range of numbers specified with a hyphen or colon (n1-n2 or n1:n2), or a
comma-separated list of numbers or ranges.
A square or angle close bracket
Bundle Format
A bundle is a collection of schematic wires including individual wires and buses, e.g., A,B,C[7-0].
A bundle is a schematic concept only. In the circuit and layout, all signals are individual.
A bundle name consists of a comma-separated list of single wire names and/or bus names. For
example:
DATA[1-5],node5
When a bus or bundle is copied and pasted, its name is lost and it becomes a single-signal
wire.
Drawing a wire by starting at a bus or bundle vertex will extend/add segments to the bus
or bundle.
Drawing a wire by ending on a bus or bundle will extend or add segments to the bus/bundle, unless the wire started at a named wire, bus or bundle. If it started at a named wire,
that named wire will be extended, and it will connect to the bus or bundle if the bus or
bundle contains the signal(s) in the named wire.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The wire is broken into sets as if the newly named segment(s) had been deleted. One set
retains the original name. The selected segments become a new wire and are assigned the
new name. The new name will spread to connected segments that are automatically
named, or that have fewer signals than the new name, and those segments will be added to
the new wire. Several different wires may result from this operation, each having a different name.
Thus, renaming a segment of bus A[0-3] to A[7-0] will rename the entire wire. Renaming
a segment of bus B[31-0] to B[0-63] with a sub-bus connected to it, B[16-31], will rename
the connected segments of B[0-31] but will not rename the sub-bus, since it is a separate
wire. Renaming the end segment of wire A[0-31] to A[0-15] will make that end segment
into a sub-bus that is a different wire than A[0-31].
If a wire with one or more pageports attached is renamed to a different width, the wire will
follow naming rules, and any pageports physically attached will also be renamed.
The name of a pin or port can be a simple signal name, or can specify multiple signals
through bus or bundle format.
Changing the name of a port will change the name of attached wires.
Connections between wires, between pins and ports, and between wires and pins/ports
depend on widths and names.
Wire to wire connections are made if one wire contains the signals of the other. Thus, a
wire A[0-7] would have 4 signals electrically connected to physically connected wire A[74], namely A[4], A[5], A[6] and A[7]. A bundle A,B,C would have one signal electrically
connected to physically connected wire A. A wire A,B,C,D would have two signals connected to physically connected wire C,D,E,F. (Refer to Drawing Bus Entry Objects for
information on adding visual representations of bus connections between a bus and individual wires.)
Wire to pin or port connections are determined by the number of signals in the wire and
pin/port. If the numbers of signals are the same, electrical connections are made in order.
If the widths are different, there is no connection.
Pin/port to pin/port connections are identical to wire to pin/port connections. If the widths
are the same, all signals are connected in order. If the widths are not the same, none are
connected.
Changing the name of a wire that is attached to a pin, a port, or another wire may cause
connections to be made or broken, based on the considerations above.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
Add a bus to the schematic by drawing a wire and naming it as a bus. For example:
DataBus[0:2].
2.
Place a Bus Entry from the Draw menu such that one end intersects the bus.
3.
Draw another wire from the other end of the Bus Entry object.
4.
Rename this new wire as DataBus[0] to use that element of the bus as the individual net.
5.
Disconnects
A disconnect is a circular visual indicator at the pin of a bus entry object. Its presence indicates that
two nets though visually connected through the bus entry object are actually disconnected as
indicated by the differing names.
If a bus entry has both pins connected to two different nets (which can be of different sizes) and if
neither of the named nets are a subset of the other named net, a disconnect circle will be drawn.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The figure above shows a bus named Bus[0:5], which has five nets that are branched out through
bus entry objects. Three nets are named properly as: Bus[0], Bus[2] and Bus [3]. However two nets:
net_3 and net_6 are not connected to the bus by name - and thus are shown drawn with circular
disconnect objects.
2.
Then click on Schematic in the top menu bar and select Auto-Name Wires (
).
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
3.
Adjust the Bus name setup or Net name setup, depending on which naming style you want to
use.
4.
Toggle Display name off if you do not want the wire names to display on the schematic.
5.
Select the direction for applying the names to the selected wires.
6.
Click the desired Apply button to set the names of the selected wires.
7.
Placing Ports
The following types of ports are available in Simplorer: interface, ground, global, and page.
An interface port serves as a connector into or out of a given design, and may contain termination and signal source definitions. The names of interface ports must be unique within a given
design but may be duplicated from design to design.
All ground ports connect to the reference or ground node, node 0.
A global port serves as a means of common connection in effect, a connection to a bus
within a given design, across hierarchical levels. You can define one or more circuit nodes to
connect to global ports that cross hierarchy and schematic page boundaries. Within a design,
all global ports with the same name are treated as if they are connected. The nature of the port,
electrical, fluidic, thermal, etc., is determined by the first connection made to the port. Once a
global port has a specific nature, additional connections in the same or other levels of hierarchy
can only be made to pins of that nature.
A page port (connector) serves as a named connection to a signal that is common to two or
more pages of the schematic.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The ports described in the next several topics are available from the Draw menu of the Schematic
Editor, and via toolbar icons as shown below:
Global Port
Interface Ports
Ground Ports
Global Ports
Page Connector
Interface Ports
Interface ports provide connectivity between different levels of hierarchy and serve as named
connectors in or out of a design. The interface port parameters specify the port name, its
impedance, a reference node, and (optionally) one or more power, current, or voltage source
specifications.
An interface port can have a source associated with it that provides excitation when the parent
circuit is not part of the simulation. When a parent is simulated, port sources in a subcircuit have no
effect and communication occurs between the parent and the child through the port. When the
subcircuit is simulated directly, rather than as part of a parent simulation, excitation at ports (if any)
is provided by port sources.
Similarly, a conservative interface port may have a sink associated with it. This may be a ground
reference or an impedance (to ground). These have no effect when a parent is simulated, but are
part of direct simulation of the subcircuit.
For conservative ports, the available sources and impedances depend on the port's nature. Refer to
Simplorer Options: Port Options Tab for detailed information on setting up lists of port source and
impedance components.
Related Topics
Renaming an Interface Port
Setting Interface Port Properties
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The cursor, now associated with an interface port symbol for placement, moves to the center of the
schematic window. To place the port, click at the desired location.
Hint
You can rotate an interface port before placing it by repeatedly pressing R on your
keyboard. Each press rotates the port 90 counterclockwise. After placement use Ctrl+R
to rotate the port.
If Multiple Placement is turned on for interface ports in the Schematic Options dialog box, you can
place additional ports by clicking at additional locations. To stop placing interface ports, do one of
the following:
To ensure electrical connectivity among schematic elements, the pins of placed interface
ports snap to a 100-mil (2.54-millimeter) grid. This snapping cannot be turned off, and
the spacing of the connectivity grid cannot be adjusted.
Note
Note
Unconnected interface ports automatically adjust to the domain they are being connected
to in the sub-circuit. However if the corresponding top-level pins in the parent circuit are
wired, then automatic adjustment does not occur, in which case domain conversion is
applied instead.
Related Topics
Renaming an Interface Port
Setting Interface Port Properties
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Right-click its schematic symbol, and select Properties to open its Properties dialog.
In the Properties window, Click on the port name button in the Port Name field to open
the Interface Port Name dialog box. Enter the desired name (including a bus name), then
click OK. The Properties window reflects the new name. Note that the port number
(pnum) does not change.
If the port is placed so that it connects to an existing node, the node is renamed to the name of
the port (even if the node was manually renamed by the user). You can also change a port
name attached to a node by selecting the node and clicking on the node name in its property
window. A Net Name dialog box similar to the one above opens for you to specify a new
name. Changing the net name changes the names of any ports attached to that node.
If you name a port the same as an existing net, the two nodes are merged into a single node
with that name. A dialog box appears for you to confirm the merge operation.
If you delete an interface port, the node to which it was attached is renamed to a systemdefined name (net_n).
Related Topics
Nets, Buses, and Bundles
Select the port and either double-click the port symbol, or right-click on the port symbol and
select Edit Port. you can also right-click the port icon in the project tree and select Edit.
The Port Properties dialog box opens.
2.
You can specify a Port Name (including a bus name), and set Terminal Attributes by selecting from the following drop down menus:
If the Port Name designates it as a bus port, you can also choose:
Common Attributes when checked, assigns the same Terminal Attributes and
Port Source or Impedance to all Bus Elements.
Schematic Editor 10-36
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
3.
Bus Element - drop down list allows unique Terminal Attributes and Port Sources
or Impedances to be assigned to individual bus elements.
You can specify a Port Source or Impedance for conservative ports by selecting the appropriate radio button: None, Source, or Impedance. Similarly, you can specify a Port Source for
non-conservative ports by selecting the Source radio button.
The Source dropdown contains a list of source components appropriate to the nature
(shown in the Terminal Attributes Type field) of the port.
Similarly, the Impedance dropdown shows appropriate impedance components.
The lists of available source and impedance components are set up in the
Tools>Options>Simplorer Options dialog, Port Options tab.
The Properties buttons open the special component dialog for the selected component, allowing complete specification of the elements properties.
The instance name of a port source has the form: <port name>_source_<comp name>. For
example, if you place an interface port named Port2 and select a voltage source E as its port
source, the instance name for this port source would be: Port2_source_E. Similarly, the name
of an port impedance would be <port name>_impedance_<comp name>. Instance names for
port sources and impedances cannot be modified, and the Output/Display tab on the special
component dialog is disabled.
Icons for defined port sources and impedances appear in the Project Manager tree under the
ports with which they are associated.
Double-clicking a port source or impedance icon opens the associated component dialog for
editing. Right-clicking an icon allows you to delete the instance.
4.
Related Topics
Nets, Buses, and Bundles
Schematic Editor 10-37
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Global Ports
A global port serves as a means of common connection in effect, a connection to a bus within a
given design, across hierarchical levels. You can define one or more circuit nodes to connect to
global ports that cross hierarchy and schematic page boundaries. Within a design, all global ports
with the same name are treated as if they are connected.
The nature of the port, electrical, fluidic, thermal, etc., is determined by the first connection made
to the port. Once a global port has a specific nature, additional connections in the same or other
levels of hierarchy can only be made to pins of that nature.
Note
To place a global port, select the schematic that will contain it. Then do one of the following:
The cursor, now associated with a global port symbol for placement, moves to the center of the
schematic window. To place the port, click at the desired location.
Hint
You can rotate a global port before placing it by repeatedly pressing R on your
keyboard. Each press rotates the port 90 counterclockwise. After placement use Ctrl+R
to rotate the port.
If Multiple Placement is turned on for global ports in the Schematic Options dialog box, you can
place additional ports by clicking at additional locations. To stop placing global ports, do one of the
following:
To ensure connectivity among schematic elements, the pins of placed global ports snap
to a 100-mil (2.54-millimeter) grid. This snapping cannot be turned off, and the spacing
of the connectivity grid cannot be adjusted.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
Direct connections between interface ports and/or global ports, or between a global port
and ground, are not allowed.
The terminal attributes of the global port shown in the dialog are determined from the connections and are provided for informational purposes.
Page Connector
A page connector serves as a named connection to a signal that is common to two or more pages of
the schematic. Page connectors thus serve as graphic reminders that a signal may be present on
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
elsewhere on the page, or on another page. Any node with a given name (system-generated or userdefined) is automatically connected across all pages that reference it.
Note
When translating legacy schematics having wires that are too close to pins to which they
are not connected, page connectors are added to the pins on the translated schematic to
maintain proper connectivity.
2.
You can rotate a page connector before placing it by repeatedly pressing R on your
keyboard. Each press rotates the page connector 90 counterclockwise. After placement
use Ctrl+R to rotate the page connector.
Click on the connector to select it and view its properties in the property window.
2.
Click on the connector name in the PortName field to open the Page Port Name dialog box:
3.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Alternatively, select Add at unconnected pins>Page Connectors from the Draw menu to add
page connectors to the currently selected component(s).
Ground Ports
A ground port serves as a connection to the reference or ground node, node 0 in Simplorer circuit
designs. Ground ports cannot be renamed.
To place a ground:
1.
2.
On the Schematic editor menu bar, menu, click the Ground icon
Ground on the Draw pulldown menu.)
. (Alternatively, click
The cursor, carrying a ground symbol for placement, can be moved to the schematic window.
3.
You can rotate a ground before placing it by repeatedly pressing R on your keyboard.
Each press rotates the ground 90 counterclockwise. After placement use Ctrl+R to
rotate the ground.
Simplorer supports multi-domain grounds for conservative pins and nets. Based on the type of
net connection, Simplorer automatically changes to the appropriate ground symbol and net
(wire) color. For example, the net (wire) color for hydraulic connections is green and the
default hydraulic ground symbol is
.
If two domains are merged on a common ground, the net connection defaults to the normal
blue color and the default ground symbol
.
Net connection colors and ground symbols revert to the appropriate states when the merged
domains are separated by deleting the connecting wires.
If Multiple Placement is turned on for grounds in the Schematic Options dialog box, you can place
additional grounds by clicking at additional locations.
To stop placing grounds during multiple placement, do either of the following:
To ensure electrical connectivity among schematic elements, the pins of placed grounds
snap to a 100-mil (2.54-millimeter) grid. This snapping cannot be turned off, and the
spacing of the connectivity grid cannot be adjusted.
Double click on the ground symbol to open the Properties dialog box.
2.
3.
Click on the Value field for GlobalPortSymbol to display a pulldown with the symbol
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
choices.
4.
Note
All of the global port symbols except the defaultglobalport symbol can be edited in the
Symbol Editor (part of the Library Editor).
Global Ports
If a global port is attached to a net, the net name is the global port name, and all connected
page ports have that name as well.
Interface Ports
If an interface port is attached to a net, the net name is the interface port name, and all conSchematic Editor 10-42
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
If more than one interface port are attached to a net, the net name is the first interface port
name.
Page Ports
If a page port is attached to a net (but no interface ports), the net name is the page port name.
If more than one page port is attached to a net, they will all share the same name.
Adding Ports
If a global port is added to a net, the name of the net and page ports on the net are changed to
the global port name.
If an interface port is added to a net the name of the net and page ports directly connected are
changed to the interface port name.
If a page port is added to a net (without any interface ports) the name of the net and pageports
directly connected are changed to the page port name.
Net names may not contain spaces, ampersands (&), or asterisks (*).
When you try to change an interface port name to that of an existing net, the existing net of the
same name as the new port name will be connected to the new ports net. A dialog box appears
so that you can resolve the name conflict by splitting the net into two nets, or allowing the nets
to remain connected.
When you try to change an interface port name to that of an existing net, the existing net of the
same name as the new port name will be connected to the new ports net. A dialog box appears
so that you can resolve the name conflict by splitting the net into two nets, or allowing the nets
to remain connected.
When you try to change a page port name to that of an existing net, the existing net of the same
name as the new port name will be connected to the new ports net. A dialog box appears so
that you can resolve the name conflict by splitting the net into two nets, or allowing the nets to
remain connected.
If an interface port name is changed, the name of the net it is attached to and any connected
page ports are changed.
If a global port name is changed, the name of the net it is attached to and any connected page
ports are changed.
If a page port name is changed, the net is examined to see what is physically connected. Wires
and pins that are directly attached to the renamed page port are connected on the net with the
page port. If there is another net with a page port of the new name, the page port and directly
Schematic Editor 10-43
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
connected objects are connected to that net. If there is no such other net, the page port and
directly connected objects become their own net.
If a net name is changed, the ports on the net that had the same name as the old net name will
be changed to the new name.
If a global port is deleted from a net, the name of the net is determined by the remaining global
or interface ports, or becomes a new unique name.
If an interface port is deleted from a net, the name of the net is determined by the remaining
interface ports, or becomes a new unique name.
If a page port is deleted from a net, the name of the net is determined by the remaining interface ports, or becomes a new unique name.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
On the Edit menu, click Find Elements. This opens the Find Elements dialog.
2.
Click on the Property field to open a pull-down menu that displays the element properties
to search for and select the desired property.
Buttons allow you to add and remove search properties in the table.
3.
Click on Criteria field to open a pull-down menu and select the desired search criteria.
4.
Enter a search string for the Property in the Value column. Wildcards * and ?can be
used in searches. For example, searching the Refdes property for R? with Match any of
the following and Contains criterion would find R1 and R2, but not C1.
5.
Check a Filter box to include element types (Components, Nets, Graphics, or Ports)
in the search.
Check an Option box to vary the scope of the search.
6.
Choose Match all of the following to restrict the results to elements that meet all of the
specified search requirements. Choose Match any of the following to match elements
that meet any of the search requirements.
7.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Search results are displayed in the Results window of the Find Element dialog and highlighted on the schematic circuit or subcircuit. Clicking on an individual search result entry
highlights that particular circuit or subcircuit element in the Schematic Editor.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Selecting Elements
Selecting Elements
You can select components, wires, and primitive drawing elements for various operations, such as
rotation or deletion, in any of the following ways:
To select a single element (component or wire segment) in the Schematic Editor, place the cursor over the element and click to select it. Click again anywhere in the schematic window to
deselect the object.
To select multiple elements, hold down the Ctrl key while clicking the elements. To deselect
one of the multiple elements, hold down the Ctrl key and click on the element. To deselect all
selected elements, click anywhere in the schematic window.
When you move a selected component, connected wiring normally stays attached to the
component.
To move a component and break its connections, hold down the Shift and Ctrl keys, hold down
the left mouse button on the component, and then drag the component to its new location.
To select all connected segments of a wire (also called nets), hold down the Shift and Ctrl
keys, and then click on any segment of the wire. If instead of clicking, you hold down the
mouse button, you can drag the wire segments to a new location, breaking any connections.
If you have difficulty selecting an object, you can select it from The Select Elements dialog box:
1.
On the Edit menu, click Select Elements. This opens the Select Elements dialog.
2.
In the Select Elements dialog, click the element(s) you want to select in the Schematic
Editor. You can select/deselect the Components or Nets box to vary the list of elements
you can choose. You may also click the Select All or Deselect All buttons.
Sorting Components
The sort order of Block components affects how simulations run. To sort designs using block
components:
1.
2.
Sorting Automatically is done left to right, top to bottom on the block components as they
appear on the schematic.
Click OK when finished to close the dialog box.
b.
To sort manually, select an item in the list, then use the up and down arrow keys to move
the item in the list. The block sequence numbers update accordingly on the schematic.
Click OK when finished to close the dialog box.
c.
Choosing Interactive sorting causes the dialog box to disappear. Numbers indicating the
current sort order appear next to each block component on the schematic.
Schematic Editor 10-47
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Sorting Components
Click on the block components in the desired sort order. As you make selections, the numbers update accordingly disappearing when you select the last unsorted component.
Note
By default, green numbers indicate that the block has already been sorted (picked), red
means the component has not yet been selected for sorting.
The colors are arbitrary and can be changed in the dialog box as can the font size.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
To access the Design List dialog box in the schematic editor, select Schematic>List from the
Simplorer top menu bar:
To access the Design List dialog box in the symbol editor, select Symbol>List from the Sim-
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note that the Design List dialog for the schematic editor contains four tabs: Components,
Graphics, Ports, and Nets. For the symbol editor, only the Graphics tab is present.
Each tab contains a grid that shows the objects that are present in the schematic or symbol
editor.
Each row in the grid contains one item, and each column displays an aspect of that item.
Each column may be sorted by clicking on the title. Clicking multiple times reverses the
order of the sort.
Selecting a row zooms to that item in the editor and selects it.
Multiple items can be selected at once using the shift or control keys, which will zoom/pan
the display so that all selected items are visible.
The Delete and Properties buttons apply to the objects in the selected rows.
To manipulate an objects properties, select the desired object and then click the Properties button to open its properties dialog for editing.
To delete object(s), select them and click Delete.
You can undo property changes and deletions.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Components Tab
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Graphics Tab
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Ports Tab
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Editing Operations
Nets Tab
Editing Operations
When the Schematic Editor is the active window, clicking Edit on the top menu bar accesses the
pull-down that menu contains the following commands. The commands that are active depend on
what is selected, and on the previous command.
Note
Commands such as Copy, Paste, Delete, and Rename are also used in various context
menus. For example, in the Project Manager Project tab to copy and paste Analysis
setups and options, and report definitions.
Undo undoes the last operation (the last operation was changing the value of a property in the
above picture, but the pulldown will show the last operation actually performed).
Redo re-executes the last operation that was undone.
Cut deletes the selected component or wire segment, and retains a copy for pasting into a scheSchematic Editor 10-54
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Editing Operations
Copy creates a local copy for pasting into a schematic in the same application.
Paste puts the local object from the previous copy or cut into the schematic.
Delete deletes the component.
Rename activates the text field of the selected schematic, project, plot, or other editable item
in the Project tree so that you can modify the objects name.
Select All selects all the components and nets in the schematic.
Select Elements opens a dialog so that you can select a component by name. See Selecting
Elements.
Find Elements opens a dialog so that you can find all elements that match the criteria you
specify. See Finding Elements.
Copy to Clipboard creates a global copy on the clipboard for pasting into a different application.
Properties opens the Properties dialog for the selected element. See Displaying and Editing
Component Properties.
Activate restores a deactivated component to the circuit.
Deactivate (Open) temporarily converts the component into an open circuit. This is displayed
graphically with a red X over the circuit element.
Deactivate (Short) temporarily converts the component into a short circuit. This is displayed
graphically with a circled red X over the circuit element.
Name Wire opens a dialog so that you can assign a new name to the selected wire node.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Drawing an Arc
To add an arc to a schematic:
1.
Move the cursor to the desired location in the schematic and left click to draw the first end
point of the arc.
3.
Move the cursor to the desired location for the second endpoint of the arc. and left-click.
This draws a straight line between the two points and gives the cursor a drag-handle at the midpoint of the line.
4.
Drag the mid-point to establish the arc, and left click release the mode.
This shows the arc selected, with the drag handles on the end points and midpoint of the arc
highlighted. If necessary, you can select a handle on the arc to change the location of the endpoints or the arc.
The arc includes a Properties window in which you can edit the arcs properties, including:
color (applies to both border and fill), line width, fill style, center coordinates, radius, and starting and ending angles.
5.
Drawing a Circle
To add a circle to a schematic.
1.
Move the cursor to the desired location in the schematic and left click to specify the center
point of the circle.
3.
Move the cursor to the desired location for the diameter of the circle and left-click.
Schematic Editor 10-56
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
This dynamically draws the circle and shows the arc selected, with the drag handles on the end
points and midpoint of the arc highlighted. If necessary, you can select a handle on the circle to
change the diameter. Notice that the element includes a Properties window.
The circle includes a Properties window in which you can edit the circles properties, including: fill color, border width, border color, fill style, center coordinates, and radius.
4.
Drawing a Line
To add a line to a schematic:
1.
Move the cursor to the desired location in the schematic and left click to draw the first end
point of the line.
3.
Move the cursor to the desired location for the second endpoint of the line and left-click.
This draws a straight line between the two points and shows the line selected, with the drag
handles on the end points highlighted. If necessary, you can select a handle on the line to
change the location of the endpoints.
The line includes a Properties window in which you can edit the lines properties, including:
color, line width, line style, coordinates of the endpoints, and objects such as arrowheads to be
placed at line ends.
4.
Drawing a Polygon
To add a closed polygon to a schematic:
1.
Move the cursor to the desired location in the schematic and left click to draw the first vertex.
3.
Move the cursor to the desired location for each subsequent vertex and left-click.
This draws a straight blue line between the designated vertices, and a straight black line
between the last vertex specified and the first.
4.
5.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Drawing a Rectangle
To add a rectangle to a schematic:
1.
Move the cursor to the desired location in the schematic and left click to place the first corner
of the rectangle.
3.
Move the cursor to the desired location for the opposite corner of the rectangle and left click.
This shows the rectangle selected, with the drag handles on the corners visible. If necessary,
you can select a handle resize the rectangle.
The rectangle includes a Properties window in which you can edit the rectangles properties,
including: border color, border width, fill style, fill color, center coordinates, width, height,
and angle of rotation.
4.
Move the cursor to the desired location in the schematic and left click.
This places a highlighted text box with Default Text written and highlighted within it.
3.
4.
This displays a file browser. It defaults to your PersonalLib location, but lets you use buttons
to select Syslib, UserLib, Project Folder, file path, or standard browser functions to look
through your file system and network.
2.
3.
4.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Drawing Operations
The image appears at the cursor location, remaining selected so that you can resize it as needed
by dragging the cursor. Resizing maintains the original proportions.
5.
Click again to anchor the image and release it from the cursor.
The image remains selected, with the drag handles on the corners visible. If necessary, you can
select a handle resize the image.
The image includes a Properties window in which you can edit the images properties, including: center coordinates, angle of rotation, width, and height. A checkbox toggles display of a
border and enables additional border properties including: border color and width. Additional
checkboxes allow the image to be mirrored left-to-right, and to establish a link to the image
file.
Drawing Operations
When the Schematic Editor is the active window, the following Draw menu commands allow you
to perform various operations on schematic elements. The commands that are active depend on
what is selected, and on the previous command.
Rotate this option, also available by pressing Ctrl+R on the keyboard, rotates a selected
object or group of objects 90 counterclockwise.
Align Horizontal This option horizontally aligns the locations of the members of a group
of selected objects with the location of the first-selected object.
To align multiple objects horizontally:
1.
Press Ctrl, and then click the object with which you want to align the others.
2.
Still pressing Ctrl, click the additional objects to add them to the selection.
Note
3.
The first-selected object is highlighted in red, and subsequently selected objects are
highlighted in dark red.
On the Draw menu, click Align Horizontal.
Align Vertical This option vertically aligns the locations of the members of a group of
selected objects with the location of the first-selected object.
To align multiple objects vertically:
1.
Press Ctrl, and then click the object with which you to align the others.
2.
Still pressing Ctrl, click the additional objects to add them to the selection.
Note
3.
The first-selected object is highlighted in red, and subsequently selected objects are
highlighted in dark red.
On the Draw menu, click Align Vertical.
Flip Vertical This option flips the selected object or group of objects around the X axis.
To flip multiple objects vertically:
Schematic Editor 10-59
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Drawing Operations
1.
Press Ctrl, and then click one of the objects you want to flip vertically.
2.
Still pressing Ctrl, click the additional objects to add them to the selection.
Note
3.
The first-selected object is highlighted in red, and subsequently selected objects are
highlighted in dark red.
On the Draw menu, click Flip Vertical.
Flip Horizontal This option flips the selected object or group of objects around the Y axis.
To flip multiple objects horizontally:
1.
Press Ctrl, and then click one of the objects you want to flip horizontally.
2.
Still pressing Ctrl, click the additional objects to add them to the selection.
Note
3.
The first-selected object is highlighted in red, and subsequently selected objects are
highlighted in dark red.
On the Draw menu, click Flip Horizontal.
Bring to Front moves the selected object to the front of the drawing.
Send to Back moves the selected object to the back of the drawing.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Select the schematic so that the Draw menu appears in the menu bar.
2.
Click Draw>Report>report_type, where report type can be: Rectangular Plot, Polar Plot,
Radiation Pattern, Rectangular Stacked Plot, Bode Plot, Nyquist Plot, Digital Plot or
DataTable - Columns or Rows, and move the cursor over the schematic.
The mouse drags a hollow rectangular box with the cursor at the center.
3.
Click the mouse at the location where you want to place the report.
The report appears on the schematic and the Report dialog box displays enabling traces to be
added immediately.
An entry for the report also appears in the Results folder of the Project Manager.
Note
You can also add a report to a schematic by dragging an existing report entry in the
Results folder of the Project Manager onto the sheet.
Related Topics
Modifying an On-sheet Report
Opening an On-sheet Report in a New Window
Generating Reports and Postprocessing
Creating Rectangular Plots
Creating Polar Plots
Creating Radiation Patterns
Creating Rectangular Stacked Plots
Creating a Bode Plot
Creating a Nyquist Plot
Creating a Digital Plot
Creating Data Tables
Right-click on the report and choose Edit in Place on the shortcut menu.
The cursor changes from a pointer dragging a coordinate symbol to a normal mouse pointer.
When you move the pointer over an editable element of the plot, the pointer changes color.
Schematic Editor 10-61
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
3.
To modify the report, i.e., add traces, variables, sweeps, etc., right-click on any elements and
select Modify Report from the shortcut menu to display the Report dialog.
To edit an elements properties do any of the following:
a.
Click on the desired element to select it, then modify its properties in the Properties Window.
b.
Double-click on the element to open its Properties dialog box in which you can edit the
element properties.
c.
Right-click on the element and select Edit>Properties on the shortcut menu to open the
elements Properties dialog box in which you can edit properties.
Related Topics
Opening an On-sheet Report in a New Window
Generating Reports and Postprocessing
Creating Rectangular Plots
Creating Polar Plots
Creating Radiation Patterns
Creating Rectangular Stacked Plots
Creating a Bode Plot
Creating a Nyquist Plot
Creating a Digital Plot
Related Topics
Modifying an On-sheet Report
Generating Reports and Postprocessing
Creating Rectangular Plots
Creating Polar Plots
Creating Radiation Patterns
Creating Rectangular Stacked Plots
Creating a Bode Plot
Creating a Nyquist Plot
Creating a Digital Plot
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Open the schematic to which you want to add a new page or pages.
2.
Click the New Page tab; or right-click the tab and select New Page from the context menu.
You are now editing the new page, 2.
3.
1.
Open the schematic from which you want to remove a page or pages.
2.
Right-click on the tab of the page you wish to remove and select Remove Page from the
context menu.
b.
Click the tab of the page you wish to remove and select Remove Page on the Schematic
menu. In the Remove Pages dialog box, select the page or pages you wish to remove and
click OK.
2.
3.
a.
b.
Right-click the tab of the page whose properties you wish to change and select Properties
from the context menu.
2.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The cursor, now associated with a page connector symbol for placement, moves to the center of the
schematic window. To place the connector, click at the desired location.
Hint
You can rotate a page connector before placing it by repeatedly pressing R on your
keyboard. Each press rotates the connector 90 counterclockwise.
If Multiple Placement is turned on for page connectors in the Schematic Options dialog box, you
can place additional connectors by clicking at additional locations.
To stop placing page connectors during multiple placement, do either of the following:
To ensure electrical connectivity among schematic elements, the pins of placed page
connectors snap to a 100-mil (2.54-millimeter) grid. This snapping cannot be turned off,
and the spacing of the connectivity grid cannot be adjusted.
Within a design and at the same hierarchical level, all page connectors with the same name act as a
common electrical connection. Therefore, once you have finished placing page connectors that you
want to be electrically common, you must ensure that they all have the same name. To change the
name of a page connector, do either of the following:
Open its Properties dialog by double-clicking the connectors schematic symbol, type a new
name into the Value cell for the ports Name property, and then click OK.
Changing the name of any member of a group of same-named page connectors renames
all members of the group with the new name.
Open the schematic from which you want to remove a page or pages.
2.
On the Schematic Menu, select Remove Page to open the Remove Pages dialog box.
3.
In the Remove Pages dialog box, select the page(s) you wish to remove, and click OK.
You can also remove a page by right-clicking on the tab of the page you wish to remove and
selecting Remove Page from the context menu.
Note
The Remove Page command removes pages containing components without warning. If
you wish to restore a page, use the Undo command.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
Insert a design in the default new project or new project you created by selecting Insert
Simplorer Design on the Project menu.
3.
Create a design at the project level by selecting Insert Circuit Design on the Project menu.
4.
5.
In the Project tree, drag the design icon for the design that you want to become a subdesign and drop it on the parent design.
The Synchronize Design dialog box opens. In this dialog box, you can select whether the
subdesign will be incorporated into the hierarchy of which the parent is part (Incorporate,
the default choice) or will merely be linked to it [Keep independent (black box)]. When
choosing Incorporate, you can also specify a name for the new subdesign.
b.
Click OK.
A symbol representing the subcircuit appears in the parent schematic. You can place and
wire it as desired.
2.
Insert a design in the default new project or new project you created by selecting Insert
Simplorer Design on the Project menu.
Schematic Editor 10-65
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
4.
5.
b.
On the Simplorer Circuit menu, point to Add SubCircuit, and then click Add SubCircuit on the sub-menu.
In the Project tree, right-click the icon for a design you want to reuse, and then select
Copy.
b.
Right-click the icon for the design into which you want to copy the subcircuit, and select
Paste.
A symbol representing the subcircuit appears in the parent schematic. You can place and
wire the subcircuit as desired.
As you create subcircuits, you will probably want to rename them. To do this:
1.
In the Project tree, click the name of the icon for the design that you want to rename.
2.
Simplorer creates a generic rectangular symbol for each new subcircuit. You can customize the
symbol for a subcircuit as follows:
1.
Expand the folder in the project tree labeled Definitions, and then expand the Symbols
subfolder.
2.
Double-click the symbol icon that corresponds to the subcircuit symbol you want to edit.
The symbol opens for editing in Simplorers symbol editor.
3.
When youre finished editing the symbol, click Update Project on the Symbol menu to
propagate your changes through the project.
Related Topics
Creating a SubCircuit from a Selection Area
Adding a SubCircuit
Use this command on the Add SubCircuit menu to add a Simplorer subcircuit to a design.
Schematic Editor 10-66
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
3.
Note
Unconnected interface ports automatically adjust to the domain they are being connected
to, in the sub-circuit. However if the corresponding top-level pins in the parent circuit
are wired, then automatic adjustment does not occur, in which case domain conversion is
applied instead.
Related Topics
Setting Up Hierarchical Designs
Interface Ports
Schematic Editor Options: General Tab
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
Click and drag the cursor until the selection rectangle encloses the area containing the components you want to include in the subcircuit, then click again to complete the selection.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
design.
The new subsheet component pin spacing is controlled automatically by the SubCircuit Pin
Spacing setting on the Schematic Editor Options: General tab. You can right-click the new
component and select Push Down on the context menu to view the subsheet and confirm the
selected components are present.
The selection area boundaries should only intersect nets on the schematics since they form the
interface of the subsheet.
Simplorer subcircuits do not allow a single net to cross the interface more than once. For
example the following selection would fail to create a subcircuit.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
All pins of an enclosed component instance must be inside the selection boundary for that
instance to be included.
For instances that have no pins, the objects origin must be inside the selection boundary for it
to be included in the subsheet.
Interface ports are not allowed to be present inside the selection area.
Page connectors will be inserted to maintain connectivity if Simplorer is unable to automatically route the interface nets on the parent sheet.
Related Topics
Setting Up Hierarchical Designs
Interface Ports
Page Connectors
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Open the design that contains the subcircuit you want to copy.
2.
3.
In the project tree, right-click the icon for the subcircuit, and then select Copy.
In the design, right-click the subcircuit symbol, and then click Copy on the context menu.
Within the schematic window, the cursor is associated with an N-port symbol for subcircuit
placement. To place the subcircuit, click at the desired location.
Hint
You can rotate the symbol for a subcircuit before placing it by repeatedly pressing R on
your keyboard. Each press rotates the component 90 counterclockwise.
If Multiple Placement is turned on for components in Simplorers Schematic Options dialog box,
you can place additional instances of the subcircuit by clicking at additional locations.
To stop placing subcircuits during multiple placement, do either of the following:
In the schematic from which you want to move, select the symbol for the design to which you
want to move.
2.
In the schematic from which you want to move, select the symbol for the design to which you
want to move.
2.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
In the project tree, right-click the icon for the design you want to copy.
2.
Select Copy.
3.
4.
Specify how the circuit you are copying will be associated with the target design by doing one
of the following:
6.
Select Make Copy to create an independent subdesign, which will not be affected by
changes to the original.
Select No copy - use instance of original to keep the copy linked to the original, so that
changes to one will affect the other.
Click OK.
Within the schematic window, the cursor is associated with a symbol for subcircuit placement. To
place the subcircuit, click at the desired location.
Hint
You can rotate the subcircuit symbol before placing it by repeatedly pressing R on your
keyboard. Each press rotates the component 90 counterclockwise.
If there is already a subdesign in the parent schematic, there is an easy way to create an independent
copy. Right-click on the subdesign symbol and select Copy as New Design. Then paste using the
menu command, or CTRL+V. In this case the Synchronize Design dialog will not appear.
Note
The first time you place a subcircuit in a design, an entry for it is added under the Project
Components heading in the Project Manager Component tree.
To save time as your work progresses, you can place new instances of the subcircuit on the
schematic:
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
If Multiple Placement is turned on for components in Simplorers Schematic Options dialog box,
you can place additional subcircuit instances by clicking at additional locations.
To stop placing subcircuits during multiple placement, do any of the following:
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Related Topics
Saving a Design Model Configuration
Loading a Design Model Configuration
Editing a Design Model Configuration
Ensure that the design whose model configuration you wish to save is currently active.
2.
Select Simplorer Circuit>Save Configuration from Simplorers main menu. You can also
right-click on the designs icon in the Project Manager project tree and select Save Configuration on the context menu.
The Save Model Configuration File dialog opens.
3.
Browse to the location in which you wish to save the .mcfg file.
4.
Enter a name for the file and click the Save button to save the file and close the dialog.
Related Topics
Loading a Design Model Configuration
Editing a Design Model Configuration
Ensure that the design whose configuration you wish to update is currently active.
2.
Select Simplorer Circuit>Load Configuration from Simplorers main menu. You can also
Schematic Editor 10-74
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
right-click on the designs icon in the Project Manager project tree and select Load Configuration on the context menu.
The Select Model Configuration File dialog opens.
3.
Browse to the .mcfg file you wish to load; and click the Open button to load the configuration
file.
Related Topics
Saving a Design Model Configuration
Editing a Design Model Configuration
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Design Settings
Related Topics
Saving a Design Model Configuration
Loading a Design Model Configuration
Simplorer Design Conventions
Design Settings
Simplorer Design Settings dialog box allows you to control various simulation options, and to
enable/disable the statistical package for the currently active design.
1.
Right-click the desired design icon in the project tree and select Design Settings from the
context menu.
You can also select Design Settings on the Simplorer Circuit main menu.
The Design Settings dialog box opens displaying two tabs: Simulation Options and Statistical Package.
2.
The Simulation Options tab settings automatically save state and initial values of a simulation model in separate files at the end of the simulation.
Automatically sort block diagram before simulation. when checked, block diagrams are automatically sorted before a simulation is run.
Enable symbol animation, output property update when checked, enables symbol animation; and also enables the Number of significant digits to display field.
Animations embedded in a symbol change the symbol appearance during the simulation process in response to a change in value of a system quantity. See Using the
Symbol Editor for more details.
Number of significant digits to display sets the number of significant digits displayed for evaluated properties on schematics. The number set in this field must be
between 1 and 14, inclusive. The default value is 5.
Simulation State (KRN): Save at end of simulation when checked, automatically
saves the simulation state to a .krn file at the conclusion of a simulation. The default
location\filename of the state file is:
\<projectname>.asmpresults\<projectname>_<designname>.krn. The file is overwritten an the end of each simulation. You can continue a simulation later with this
state file.
Check Ask for filename if you want to specify a path and name, other than the
default, for the state file at the start of simulation. When you start a simulation, the
resizeable State and Initial Value Files dialog box appears in which you can specify
this information. Clicking Cancel in this dialog box allows the simulation to proceed
without saving a file.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
simulation state file is loaded automatically at the start of simulation and is then used
for that simulation. The default location\filename of the state file is:
\<projectname>.asmpresults\<projectname>_<designname>.krn.
Check Ask for filename if you want to be prompted to choose a state file manually at
the start of simulation. When you start a simulation, the resizeable State and Initial
Value Files dialog box appears in which you can specify this information. Clicking
Cancel in this dialog box allows the simulation to proceed without loading a file.
b.
On the Statistical Package tab, click Enable to automatically configure a special index
variable, StatIndex, enabling you to run a Statistical Analysis without any other variable
in the design specified for Statistical. This is especially useful when using a third-party
statistical VHDL-AMS package, where the statistical variation is accomplished in the
individual VHDL-AMS models using the package functions.
You can also check Specify initial seed value to start the statistical analysis at a known
initial state. The seed value is fed to the random number generator and a random number
is generated. The same seed value will generate the same random number. Not specifying a seed value causes a different seed value to be automatically created for each analysis.
3.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Exporting a Schematic
Exporting a Schematic
You can export the currently active schematic to a file as follows:
1.
2.
Choose either Ansoft Neutral File (V4) (*.anf) or Microsoft Enhanced Meatfile (*.emf) as
the Save as Type.
3.
4.
5.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Printing a Schematic
Printing a Schematic
When you are preparing to print a schematic, you can control page setup, and preview the print
with your chosen settings before printing.
Setting Up the Page Layout
To set up the page layout before printing:
1.
Select Page Setup from the File pulldown on the Simplorer top menu bar.
The Page Setup dialog box opens.
2.
Use the Paper, Orientation, Margins, and Print Zoom controls to specify how you wish
the print to appear.
In the Schematic Options panel, you can specify whether or not to draw the grid and print
the design variables.
In the Border type panel, you can select the type of border to print around the schematic.
Selecting the ANSYS border type places a single line box around the schematic and adds
the current date and page number to the print.
Selecting the Schematic-defined border type prints the border as defined through the
Schematic->Page Borders menu option at the size specified. Typically, select this option
when printing out at a specific scale (i.e. 100%) to ensure that the border will be visible.
Use File>Print Preview to preview the effect of your choices.
3.
Click OK to close the Page Setup dialog box with your settings.
Select Print Preview from the File menu to see a preview of the schematic print.
2.
To navigate through the preview, click the Next Page, Prev Page, and/or Two Page buttons.
3.
To zoom in or out on the preview, click the Zoom In or Zoom Out buttons. You can also click
directly on the preview image to zoom in and out.
4.
Click Print to close the preview window and open the Print dialog box for printing.
5.
Right-click in the schematic window and select Print from the menu (or select Print from the
File menu) to open the Print dialog box:
2.
Use the controls to specify how you wish the print to appear.
In the Schematic Options panel, you can specify whether or not to draw the grid and print
the design variables.
Schematic Editor 10-79
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Printing a Schematic
In the Border type panel, you can select the type of border to print around the schematic.
Selecting the ANSYS border type places a single line box around the schematic and adds
the current date and page number to the print.
Selecting the Schematic-defined border type prints the border as defined through the
Schematic->Page Borders menu option at the size specified. Typically, select this option
when printing out at a specific scale (i.e. 100%) to ensure that the border will be visible.
3.
Make any desired selections in the Print Range, Copies, and Print Zoom panels.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
11
Product Coupling
Product coupling allows a product to leverage the capabilities of other products in specialized
areas. For example, coupling the Simplorer System Simulator to Maxwell electromagnetic field
simulation provides the accuracy benefit of full field simulation within the circuit simulation environment. Direct integration eliminates the need to translate models, saves time, and allows for
greater accuracy overall.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Simplorer Coupling
In addition to the components provided with Simplorer for use in Schematic Editor designs, Simplorer schematics can also link to models created in external simulation software through special
subcircuit coupling components. These coupling components may use data, extracted from full
three-dimensional field data, in a Reduced Order Model (ROM) independent of the original model;
or co-simulate with the model in its native product through a transient analysis.
For some Reduced Order Model (ROM) coupling components, the Simplorer model obtained from
the external product may be either a dynamic link (default) or static link.
A dynamic link coupling component will always check the external product for updated
ROM data before simulating.
A static link coupling component will only check the external product if parameters on the
coupling component have changed since the ROM data was acquired.
Reduced Order Model subcircuit coupling components that can be dynamic or static:
Reduced Order Model subcircuit coupling components that are only static:
PExprt Static
Mechanical
Icepak
Statespace (generic)
SIwave
HFSS
Esterel
Simulink
Mathcad
Maxwell Transient
RBD
Fluent
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Simulink Component
Mathcad Component
Maxwell Components
Rmxprt Dynamic Component
Q3D Dynamic Components
PExprt Static Component
ANSYS Mechanical Component
Icepak Component
State-Space Component
SIwave Component
HFSS Component
ANSYS RBD Component
ANSYS Fluent Component
ANSYS Esterel Component
Simulink SubCircuits
MATLAB/Simulink is a software application developed by The MathWorks Inc. to solve
numerical problems and visualize data. It can be used for a range of applications including: manipulations of vectors and matrix arrays; and problems in control engineering, system engineering, statistics, and signal processing.
The Simulink subcircuit allows co-simulation between a Simplorer schematic design and a
Simulink model.
To use a Simulink subcircuit with Simplorer you need installations of both Simplorer and
MATLAB/Simulink. The Simulink subcircuit is available only if the Simulink coupling is
licensed in the license.lic file in the Simplorer version you use. Make certain you use the correct
versions, licence.lic file and directory settings.
Related Topics
Program Requirements for MATLAB/Simulink SubCircuits
Add Simulink Component
Creating and Linking a MATLAB/Simulink Model
Simplorer/Simulink Co-Simulation
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
1.
Select Add Simulink Component from the Add Subcircuit menu to display the Simulink
Interface dialog.
2.
Specify a Name for the component. Refer to Names of Components and Variables for naming
conventions.
3.
Specify the Matlab File Name. An ellipsis button [...] lets you open a file browser to select a
file by navigating your file directories.
4.
Check Read link information from the Simulink file to enable Simplorer to launch the
Simulink application and load the Simulink .mdl file specified in the filename box. If no file
has been specified, or if the path or file name is invalid, an error dialog displays.
5.
If you want to add a copy of the Simulink file to the Simplorer project, check Insert Simulink
file in the project.
6.
The Link Assignment panel contains buttons for you to Add or Delete link assignments.
a.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Description
Direction
A drop-down menu lets you specify whether the variable supplies data
values To Simulink or receives data values From Simulink.
Add Pin
Use the checkbox to add a pin for the variable to the component symbol.
Description
b.
You can delete existing link assignments by selecting them from the list and clicking the
Delete button
.
7.
8.
Click OK to close the dialog and apply the changes or Cancel to close without changing.
9.
Place the component on the schematic sheet as you would any other component.
10. After placing the component on a sheet, its Properties dialog may be opened for configuration
of the component.
Note
The Simulink model configuration is saved with the schematic sheet. Simplorer must
establish a link to the MATLAB/Simulink application each time a simulation is run.
Related Topics
Creating and Linking a MATLAB/Simulink Model
Simplorer/Simulink Co-Simulation
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
In MATLAB, place an S-Function block from the Simulink library on the sheet.
Note
Only one (1) S-Function block (AnsoftSFunction) can be used in a model design.
An error message is displayed if you attempt to add a second S-Function.
2.
Double-click the S-Function block to open the Function Block Parameters dialog box.
3.
In the S-function name field, enter AnsoftSFunction (case-sensitive) and click OK.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
4.
Enable (i.e., check) Read link information from file and browse to the Simplorer project
.asmp file containing the Simplorer Simulink component.
5.
Use the Link and Autolink buttons to establish the desired signal links between the MATProduct Coupling 11-7
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
LAB/Simulink model and the Simplorer Simulink component. (Autolink links all signals with
the same name automatically.)
6.
7.
Related Topics
Add Simulink Component
Simplorer/Simulink Co-Simulation
Simplorer/Simulink Co-Simulation
1.
After you have added a Simulink component in Simplorer and created a MATLAB/Simulink
model, start the co-simulation by clicking Analyze in the Simplorer Circuit menu.
Warning
2.
Only one Simulink subcircuit can be used in a Simplorer design. An error message
appears in the Message Manager window if you attempt to Browse Netlist or
Analyze a design containing more than one Simulink component instance.
Note
To achieve a successful co-simulation, at least one output must be defined between the
Simplorer and MATLAB/Simulink models, and the variable step width must be chosen
as a simulation parameter in MATLAB/Simulink.
Mathcad SubCircuits
Subcircuit coupling to Mathcad integrates an existing Mathcad model into a Simplorer
simulation model and exchanges data during the simulation. Complex mathematical computations,
including curves and text descriptions, can thus be represented in Simplorer in their original form.
The coupling interface allows the simple linking of variables. In addition, you can integrate models
from other simulators simultaneously.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Select Add Mathcad Component from the Add Subcircuit menu to display the Mathcad
Interface dialog.
2.
Specify a Name for the component. Refer to Names of Components and Variables for naming
conventions.
3.
Specify the Mathcad File Name. An ellipsis button [...] lets you open a file browser to select a
.mcd or .xmcd file by navigating your file directories.
4.
Checking Insert Mathcad file in the project places an embedded object in the schematic. If
left unchecked, the component is linked to an external Mathcad .mcd file.
5.
6.
The Link Assignment panel contains buttons for you to Add or Delete link assignments.
a.
Description
Direction
A drop-down menu lets you specify whether the variable supplies data
values To Mathcad or receives data values From Mathcad.
Add Pin
Use the checkbox to add a pin for the variable to the component symbol.
Description
b.
7.
You can delete existing link assignments by selecting them from the list and clicking the
Delete button
.
Click OK to close the dialog and apply the changes or Cancel to close without changes.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Related Topics
1.
Select the appropriate command from the following list to add the corresponding model type:
A <Model_Type> Dynamic Coupling dialog box appears, and Simplorer launches the application in which the model type was created.
Note
You can resize the coupling dialog box to allow you to view long field entries in the
Name and File input fields, and in all dropdown lists as shown in the example below.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
Note
b.
specify a Name for the component. Refer to Names of Components and Variables for
naming conventions.
The name specified cannot be the same as any existing coupling component and/or
model.
In the Selection panel, enter the project File. An ellipsis button opens a file selection dialog that lets you navigate to find and select the Maxwell (or RMxprt) model file (*.mxwl)
or Q3D model file (*.q3dx) that you want to use.
The selected project is loaded into its application.
c.
d.
After you select the File and Design Type, select the design you wish to use in the coupled
model from the list in the Design drop down menu.
Product Coupling 11-11
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
e.
Select the desired solution from the Solution drop down menu.
f.
For Maxwell Dynamic Inductance, Dynamic Capacitance, and State Space coupling
components, select the Matrix to be used with the component during simulation.
g.
Note
h.
For Q3D Equivalent Circuit, and State Space dynamic coupling components, select the
Reduced Matrix to be used with the component during simulation.
i.
If you wish to edit the active project in its own application, click the Edit Project button
on the Link Description tab to open the project in its application window.
Note
3.
When finished editing, click the Obtain Design Information button to update the
data in the Information panel.
If you added new designs or solutions, or changed the name of an existing design or
solution, you may need to re-select the desired Design and Solution from the lists in
the respective drop down menus.
Select Save project after use to have the linked project file saved by its application after
co-simulation is completed.
b.
Select Unload project after use to have the linked project file closed by its application
after co-simulation is completed.
c.
If appropriate for your coupling component type, select Create static link to create a
static link and enable the Clear Static Cache button.
If Create static link is not selected, Simplorer obtains sml/netlist information from
the coupled product application every time a simulation analysis is run even if no
parameter has changed. This is the default behavior.
If Create static link is selected, Simplorer obtains sml/netlist information from the
coupled product application only if a parameter value has changed since the previous
simulation run. Clicking the Clear Static Cache button deletes the sml/netlist information currently stored in the Simplorer model. The next simulation run will then
obtain fresh sml/netlist information from the other product application and store it in
the Simplorer model.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
d.
Note
Choose to show either the Pin Name or Pin Description on the new component. By
default, pin names are shown.
Pin description properties are always added to the component regardless of whether or
not they are selected to be shown with pins.
e.
If you chose Pin Description when adding the component, you can subsequently
enable individual pin names by opening the component symbol in the symbol editor,
deleting a pins description, then double-clicking the pin and enabling ShowName in
the pin properties dialog box.
If you chose Pin Name when adding the component, you can subsequently hide individual pin names by opening the component symbol in the symbol editor, then double-clicking a pin and disabling ShowName in the pin properties dialog box. You can
then add descriptive text to the pin using the editors Draw>Text tool.
Choose a Reference Pins option from the drop-down menu. Choices allow you to
Automatically ground reference pins through call line, to Show all reference
pins, and to Show one reference pin.
Choose whether or not to Enforce Passivity.
Specify Desired Fitting Error (Percent) and Maximum Order values.
4.
The dialog boxs Information tab shows the Number of Conservative Pins and various other
Quantities present in the selected model. Users can choose to add pins for listed Quantities.
5.
When finished click OK to accept the values and close the dialog.
Note
6.
Place the component on the schematic sheet as you would any other component.
Note
7.
If a model is generated with this component, it will be given the same name as the
component. Also, the name specified cannot be the same as any existing coupling
component and/or model. An informational dialog box displays if the name chosen in
step 2 is already used by another coupling component or model.
The dynamic coupling component configuration is saved with the schematic sheet.
Simplorer must establish a link to the associated application each time a simulation is
run.
After placing the component on a sheet, its Properties dialog box may be opened for configuration of the component.
Note
On the Properties dialog box Parameter Values tab, clicking the component Data
button opens the <Component_Type> Dynamic Coupling dialog box in read-only mode
so that you can review the coupling settings. If the component instance contains SML
code, the dialog box contains a Preview tab on which you can view the SML code.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Transient Cosimulation
Equivalent Circuit
Dynamic Inductance
Dynamic Capacitance
State Space
Program Requirements
Transient Cosimulation Interface concept
Maxwell 2D Finite Element Model Prerequisites
Adding a Maxwell Transient Cosimulation Component
Preparing a Maxwell 2D Transient Model for a Link to Simplorer
How to Use a Maxwell 2D Finite Element Model in Simplorer
Continuing a Cosimulation with Maxwell
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
For two-way interactive use, Maxwell must be installed and licensed on the same
computer as Simplorer.
If the computer is connected to a network and is set to obtain an IP address
automatically, and the computer has an IP address in the range 192.168.x.y,
disconnecting from the network while co-simulating will cause the co-simulation to
stop.
Maxwell 2D or 3D may be installed on a different computer than the Simplorer
Installation - provided that a TCP/IP link can be established between the two
computers for co-simulation.
Simplorer controls the time step during simulation, and also controls the rotational speed or linear
velocity of the Maxwell component.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
During each time step, the two solvers exchange coupling matrix data over TCP/IP connections.
Since the data exchange is relatively small, the Maxwell 2D or 3D Transient and the Simplorer
transient solvers can run on different computers, as long as they have access to each other over a
TCP/IP network (which can include the Internet).
Note
After Simplorer runs the Maxwell 2D or 3D Transient project, the model, mesh, materials, sources,
and boundary conditions will remain unchanged. But the following changes will occur:
The previous solution is over-written, and most likely is different from a standalone Maxwell 2D or 3D Transient solution.
Time step and stopping time may change.
Mechanical transient setup will have been disabled, but the functions are still there.
User control program will have been replaced by tdslink_tcp.exe. This should not be configured manually from m2dfs.
While Simplorer allows you to add more than one Maxwell Transient Cosimulation
component to a schematic, only one can be active for simulation. You must deactivate all
others before successful simulation can proceed.
2.
On the Link Description tab, specify a Name for the component. Refer to Names of Components and Variables for naming conventions.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
3.
In the Selection panel, click the [...] button to open a file browser window, and locate and
choose the Maxwell Finite Element model .mxwl file containing the design you wish to
add.
The selected project is loaded into Maxwell.
4.
5.
Select the Design and related Solution you wish to use from the drop-down lists on the
Link Description tab.
6.
On the Options tab, choose to show either the Pin Name or Pin Description on the new
component. By default, pin names are shown.
Note
Pin description properties are always added to the component regardless of whether or
not they are selected to be shown with pins.
7.
If you chose Pin Name when adding the component, you can subsequently hide individual pin names by opening the component symbol in the symbol editor, then double-clicking a pin and disabling ShowName in the pin properties dialog box. You can
then add descriptive text to the pin using the editors Draw>Text tool.
Optionally, choose to Save and/or to Unload the Maxwell project after use by checking the appropriate checkboxes.
Optionally on the Link Description tab, choose the Edit Project button to open the Maxwell project window if you wish to edit the model directly in Maxwell.
a.
Note
If you chose Pin Description when adding the component, you can subsequently
enable individual pin names by opening the component symbol in the symbol editor,
deleting a pins description, then double-clicking the pin and enabling ShowName in
the pin properties dialog box.
Be sure to re-run the model analysis after making changes to the model.
b.
When finished editing, click the Obtain Design Information button to update the
data on the Information tab.
8.
When finished, click OK to accept the values and close the dialog, or Cancel to close the
dialog without the changes.
9.
Place the component on the schematic sheet as you would any other component.
10. After placing the component on a sheet, the Properties dialog may be opened for configuration of the component. The component includes the following outputs on the Quantities
Product Coupling 11-17
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
tab, which may be plotted in display elements or saved with simulation results:
Note
For each winding: the current, terminal voltage, flux linkage, and internal EMF.
Total core loss.
Total winding conductor loss.
For linear motion: the force, displacement, and velocity.
For rotational motion: the torque, angle, and speed.
The Transient Cosimulation coupling configuration is saved with the schematic sheet.
Simplorer must establish a link to Maxwell 2D each time the simulation is run.
Open a Maxwell project or create a new project using the Maxwell Desktop.
2.
Right click on the design name in the Project Manager window. Choose Solution Type in
the shortcut menu.
The Solution Type dialog box appears.
3.
Click the Transient radio button in the Magnetic section of the dialog box and click OK.
4.
Right-click on the design name in the Project Manager window. Choose Design Settings
in the shortcut menu.
5.
Note
a.
If necessary, choose Symmetry Multiplier tab and type the appropriate symmetry
value.
b.
Choose the Advanced Product Coupling tab and check the Enable transient link
with Simplorer checkbox.
c.
If a 2D design is involved choose the Model Depth tab and enter a value, and the
appropriate units, to represent the length of the device.
d.
Right-click on Model in the Project Manager window and choose Motion Setup/
Assign Band..., from the shortcut menu.
b.
Choose the Type tab within the Motion Setup dialog box and set the desired Motion
Type and the corresponding Moving Vector.
c.
Click OK.
You do not need to define an initial position since the initial condition will be established
by the Simplorer simulator.
6.
7.
Define the model excitation using the Maxwell2D/Excitations menu. The Maxwell
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
8.
Note
9.
a.
When assigning the Coil Excitation the user should enter the coil Name, the Number
of Conductors and the appropriate Polarity and then click OK. This step has to be
performed for each Coil definition.
b.
When assigning a Winding configuration for a selected Coil Excitation, the Winding Type should be External as either Solid or Stranded. The user should define the
number of parallel branches and then click OK.
You do not need to define an initial current since the initial condition will be established
by Simplorer simulator.
Add a Solution Setup under Analysis.
The Maxwell simulation end time (Tend) must be greater than or equal to that of
Simplorer. All the other options within the Solve Setup are optional as far the Simplorer
coupling task is concerned.
Save the Maxwell Project. If you exit the Maxwell simulator, Simplorer will launch it
again in a non-graphical Extractor mode to establish the link. If you leave Maxwell
open, the link will be established with the open Maxwell Desktop and you will be able to
monitor the solution process in Maxwell as well as any messages that may be displayed
during the simulation process.
For more information regarding Motion Setup, Boundaries, Excitations or Solution Setup in
Maxwell, consult the Maxwell documentation.
2.
Solve the problem in Maxwell to ensure that the Maxwell 2D or 3D Transient project is
set up correctly. Errors in the Maxwell project cannot be corrected from Simplorer.
Note
Please refer to the Maxwell documentation for detailed information on creating and
solving the Maxwell 2D or 3D model.
This preliminary Maxwell solution need not be for the same conditions or ending
time that Simplorer will establish.
3.
Ensure that Simplorer has run-time access to Maxwell, either on the same computer, or
another computer on the network via TCP/IP.
4.
Establish a link to the Maxwell 2D or 3D Transient project, and place a Maxwell Transient
Cosimulation Component on the Simplorer schematic.
Product Coupling 11-19
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
5.
Connect electrical and mechanical pins of the Maxwell Transient Cosimulation component to other models on the Simplorer schematic.
6.
Select a Transient Analysis Setup for the simulation. Attempting to simulate using either
AC and DC analysis setups will fail setup with resulting error messages in the Message
Manager.
7.
Note
You must first have saved a Simulation State (KRN) file at the end of simulation.
When using Simplorer-Maxwell Transient Cosimulation, save / load state only works
with the largest time at which Maxwell was solved. (This is because Maxwell can
currently only save one state.) While it is possible to start from an earlier saved time,
results may be incorrect.
For example, suppose you solve a transient analysis up through 1second and save the
simulation state to a file named one_second.krn, then load one_second.krn and solve
up through 2seconds and save the new state to a file named two_seconds.krn; if you
then reload one_second.krn and solve, Simplorer may give incorrect results because the
internal state of Maxwell is as it was at 2 seconds. Resuming from two_seconds.krn will
give correct results.
Note
You must load the saved KRN file at the beginning of the continuing simulation.
To specify the saving and loading of Simulation State (KRN) files, see Design Settings.
You must specify an end time greater than the current end time. To reset the end time,
double click on the analysis setup in the project window.
Then, simply start analysis. Simulation can be extended this way as many times as desired.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
If Maxwell is used non-interactively i.e., the Save project after use checkbox is
unchecked, it shuts down after each simulation and results data is lost if not saved, so a
KRN file cannot be used successfully.
If Save project after use is checked, the end time in the setup must be made greater
before the KRN file is loaded or Simplorer simulation will fail.
If KRN file save or load is set and the Maxwell project is not set to be saved the
following error message displays:
The Maxwell TR-TR coupling component is not set to save the Maxwell project, but
saving or loading a state file has been specified. Maxwell results valid at the state file's
end time will be necessary when using a state file.
Note
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
For two-way interactive use, Maxwell must be installed and licensed on the same
computer as Simplorer. However, Maxwell equivalent circuit models may be used
in Simplorer without a Maxwell license.
If the computer is connected to a network and is set to obtain an IP address
automatically, and the computer has an IP address in the range 192.168.x.y,
disconnecting from the network while co-simulating will cause the co-simulation to
stop.
2.
Note
3.
Note
Specify a Name for the component. Refer to Names of Components and Variables for
naming conventions.
The model generated with this component will be given the same name as the
component. Also, the specified name cannot be the same as any existing coupling
component and/or model.
In the Selection panel, click the [...] button to open a file browser window, and locate and
choose the Maxwell EC model .mxwl file containing the design you wish to add.
It is recommended that design names avoid using illegal characters such as the
space character. Illegal characters are replaced with an underscore character.
Refer to the section on naming conventions for additional information.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
retrieved from the Maxwell file and displayed in the Design drop-down menu.
The dialog boxs Information panel is also updated to show the Number of Conservative Pins and various other Quantities present in the selected model. You can choose to
add pins to the model for listed Quantities.
5.
Select the Design you wish to use from the drop-down list.
The Information tab displays the following information:
a.
Note
Quantities lists the Name and Value of model parameters that can be included in
the imported model by checking Add Pin.
Optionally, the Edit Project button opens the Maxwell project window if you wish to
edit the model.
Edit the model in Maxwell.
Be sure to re-run the model analysis after making changes to the model.
b.
6.
When finished editing, click the Obtain Design Information button to update the
data in the Information panel.
Linear Motion
Rotational Motion
Matrix
Transformer
Lookup Table
When finished with the wizard, the Quantities listing is updated. Select any parameter
pins you wish to include in the imported model.
7.
Note
On the Options tab, choose to show either the Pin Name or Pin Description on the new
component. By default, pin names are shown.
Pin description properties are always added to the component regardless of whether or
not they are selected to be shown with pins.
If you chose Pin Description when adding the component, you can subsequently
enable individual pin names by opening the component symbol in the symbol editor,
deleting a pins description, then double-clicking the pin and enabling ShowName in
the pin properties dialog box.
If you chose Pin Name when adding the component, you can subsequently hide indiProduct Coupling 11-23
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
vidual pin names by opening the component symbol in the symbol editor, then double-clicking a pin and disabling ShowName in the pin properties dialog box. You can
then add descriptive text to the pin using the editors Draw>Text tool.
8.
Selecting the Unload project after use checkbox causes Maxwell to close the project
and shut down after the Simplorer simulation is complete. This will release the Maxwell license.
Note
9.
The model generated with this component will be given the same name as the
component. Also, the specified name cannot be the same as any existing coupling
component and/or model. An informational dialog box displays if the name chosen in
step 2 is already used by another coupling component or model.
Place the component on the schematic sheet as you would any other component.
10. After placing the component on a sheet, its Properties dialog may be opened for configuration of the component. The component includes the following outputs on the Quantities
tab, which may be plotted in display elements or saved with simulation results:
For each winding, the current, terminal voltage, flux linkage, and internal EMF
Total core loss
Total winding conductor loss
For linear motion, the force, displacement, and velocity
For rotational motion, the torque, angle, and speed
The Equivalent Circuit coupling configuration is saved with the schematic sheet. Simplorer must establish a link to Maxwell each time the simulation is run.
Create a model of the component in Maxwell, including the geometry and material properties.
2.
3.
Note
4.
When assigning the Excitation as Current the user should enter the Current Excitation Name, the Value as an independent variable, the Type as either Solid or
Stranded and then click OK.
This step has to be performed for each terminal or group of terminals are intended to be
included on Current Excitation definitions.
Define the appropriate model parameters assigning them under Parameters.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
a.
When considering exporting a matrix into the circuit design, you must assign a
Matrix:
b.
In the Matrix dialog box, click the Include checkbox for each of the existing
sources to be included into the matrix calculation.
Use the Post Processing tab to specify turns and group together windings to better represent the physical winding topology.
When considering exporting a specific force calculation into circuit design as a measure of the mechanical through quantity of a linear motion design, a solid object has
to be selected and a Force parameter defined:
c.
When considering exporting a specific torque calculation into circuit design as a measure of the mechanical through quantity of a rotational motion design, a solid object
has to be selected and a Torque parameter defined:
5.
Solve the problem in Maxwell to ensure that the Maxwell project is set up correctly.
Errors in the Maxwell project cannot be corrected from Simplorer.
Note
Please refer to the Maxwell documentation for detailed information on creating and
solving the Maxwell model.
6.
Add a Solution Setup under Analysis. The Maxwell simulation end time (Tend) must be
greater than or equal to that of Simplorer.
7.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
In order to extract an equivalent circuit within the Parametric Setup there is no need to
define any Calculations entries unless this is a user choice to bring more field related
quantities as outputs into the circuit design.
8.
9.
Ensure that Simplorer has run-time access to Maxwell on the same computer or another
computer on the network.
10. Establish a link to the Maxwell Equivalent Circuit model project, and place a Maxwell
Equivalent Circuit Model component on the Simplorer schematic.
11. Connect electrical and mechanical pins of the Maxwell Equivalent Circuit model component to other models on the Simplorer schematic.
Note
Equivalent Circuit models exported from Maxwell that have mechanical pins must be
connected by these pins to a mechanical subsystem having a ROTATIONAL _V nature.
For versions of Maxwell lower than Version 10, Service Pack 1, this must be done using
a Domain to Domain component. For later versions, the connection can be made
directly.
2.
3.
4.
Choose the Force Setup and select its coordinate representation as component.
5.
Note
If within the Excitation definition the Solid configuration is selected to represent the
topology of the winding then the swept values of the current independent variable in the
parametric table has a physical meaning of Amperes or if within the Excitation definition
the Stranded configuration is selected to represent the topology of the winding then the
swept values of the current independent variable in the parametric table has a physical
meaning of Amperes-Turns.
6.
Click Next.
7.
Under Circuit Inputs and Outputs the user may select the appropriate Type for each
entry (e.g., Current for independent variable which stands for current excitation, and
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Position for independent variable which stands for motion definition) and define the
Extrapolation method only for Inputs based on specific design considerations choosing the
Bezier Interpolation method (for both Inputs and Outputs) or using the default Linear
Interpolation method.
8.
Click Next.
9.
Under Terminals dialog the user has to define the Scaling Factor (the default is 1 considering that the geometry and Boundary Conditions are related to the whole device). The
user may set accordingly the Coil Terminals (in terms of Resistance, Turns and Branches)
based on the definition of the Matrix entry. The Mechanical Terminals are automatically
selected based on the selections made at the Circuit Inputs and Outputs dialog.
2.
3.
4.
5.
Note
If within the Excitation definition the Solid configuration is selected to represent the
topology of the winding, then the swept values of the current independent variable in the
parametric table has a physical meaning of Amperes; or if within the Excitation
definition the Stranded configuration is selected to represent the topology of the
winding, then the swept values of the current independent variable in the parametric
table has a physical meaning of Amperes-Turns.
6.
Click Next.
7.
Under Circuit Inputs and Outputs the user may select the appropriate Type for each
entry (e.g. Current for independent variable which stands for current excitation and Rotation for independent variable which stands for motion definition) and define the Extrapolation method only for Inputs based on specific design considerations choosing the Bezier
Interpolation method (for both Inputs and Outputs) or using the default Linear Interpolation method.
8.
Click Next.
9.
Under Terminals dialog the user has to define the Scaling Factor (the default is 1 considering that the geometry and Boundary Conditions are related to the whole device). The
user may set accordingly the Coil Terminals (in terms of Resistance, Turns and Branches)
based on the definition of the Matrix entry. The Mechanical Terminals are automatically
selected based on the selections made at the Circuit Inputs and Outputs dialog. The user
may check the box to Use rotational velocity as mechanical terminals conservative definition for the circuit design component (e.g. if the box is unchecked the DisplacementProduct Coupling 11-27
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
3.
4.
Note
If within the Excitation definition the Solid configuration is selected to represent the
topology of the winding then the swept values of the current independent variable in the
parametric table has a physical meaning of Amperes or if within the Excitation definition
the Stranded configuration is selected to represent the topology of the winding then the
swept values of the current independent variable in the parametric table has a physical
meaning of Amperes-Turns.
5.
Click Next.
6.
Under Circuit Inputs and Outputs the user may select the appropriate Type for each
entry (e.g. Current for independent variable which stands for current excitation) and
define the Extrapolation method only for Inputs based on specific design considerations
choosing the Bezier Interpolation method (for both Inputs and Outputs) or using the
default Linear Interpolation method.
7.
Click Next.
8.
Under Terminals dialog the user has to define the Scaling Factor (the default is 1 considering that the geometry and Boundary Conditions are related to the whole device). The
user may set accordingly the Coil Terminals (in terms of Resistance, Turns and Branches)
based on the definition of the Matrix entry.
2.
3.
4.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Amperes.
Note
If within the Excitation definition the Solid configuration is selected to represent the
topology of the winding then the swept values of the current independent variable in the
parametric table has a physical meaning of Amperes or if within the Excitation definition
the Stranded configuration is selected to represent the topology of the winding then the
swept values of the current independent variable in the parametric table has a physical
meaning of Amperes-Turns.
5.
Click Next.
6.
Under Circuit Inputs and Outputs the user may select the appropriate Type for each
entry (e.g. Current for independent variable which stands for current excitation) and
define the Extrapolation method only for Inputs based on specific design considerations
choosing the Bezier Interpolation method (for both Inputs and Outputs) or using the
default Linear Interpolation method.
7.
Click Next.
8.
In the Terminals dialog the user has to define the Scaling Factor (the default is 1 considering that the geometry and Boundary Conditions are related to the whole device). The
user may set accordingly the Coil Terminals (in terms of Resistance, Turns and Branches)
based on the definition of the Matrix entry.
2.
Click Next.
3.
Under Circuit Inputs and Outputs the user may select the appropriate Type for each
entry (e.g. Current for independent variable which stands for current excitation and Rotation for independent variable - if any - which stands for motion definition) and define the
Extrapolation method only for Inputs based on specific design considerations choosing the
Bezier Interpolation method (for both Inputs and Outputs) or using the default Linear
Interpolation method.
Note
In case of Lookup Table choice the user has to enter Calculations under Parametric
Setup within Optimetrics to be able to get output entries in the Table dialog within
the extraction wizard.
User should use Simplorer compiler supported characters when naming these
calculations entries within Optimetrics otherwise the user will encounter Simplorer
compiler errors when instantiating the ECE component).
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Create a model of the component in Maxwell, including the geometry, materials, boundary conditions, external windings, and mesh.
2.
Solve the problem in Maxwell to ensure that the Maxwell project is set up correctly.
Errors in the Maxwell project cannot be corrected from Simplorer.
Note
Please refer to the Maxwell documentation for detailed information on creating and
solving the Maxwell model.
3.
Ensure that Simplorer has run-time access to Maxwell on the same computer or another
computer on the network.
4.
Establish a link to the Maxwell Equivalent Circuit model project, and place a Maxwell
Equivalent Circuit component on the Simplorer schematic.
5.
Connect electrical and mechanical pins of the Maxwell Equivalent Circuit component to
other models on the Simplorer schematic.
Note
Equivalent Circuit models exported from Maxwell that have mechanical pins must be
connected by these pins to a mechanical subsystem having a ROTATIONAL_V nature.
For versions of Maxwell lower than Version 10, Service Pack 1, this must be done using
a Domain to Domain component. For later versions, the connection can be made
directly.
6.
7.
2.
3.
Export the EC model as an .sml file using the Maxwell 3D>Export Equivalent Circuit>From Parametric Solution command. A corresponding .gif graphic file is also created. This graphic appears on the schematic
Note
If you are sending this model to another user, the exported .sml file is required but the
.gif file is optional.
Note
See Exporting Equivalent Circuit Data in the Maxwell Online Help for more
information.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
3.
4.
In Simplorer, add the Maxwell Inductance Dynamic coupling component to the sheet.
5.
6.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
Specify a Name for the component. Refer to Names of Components and Variables for
naming conventions.
3.
In the Selection panel, click the [...] button to open a file browser window, and locate and
choose the Maxwell .mxwl file containing the design you wish to add.
Note
Avoid using illegal characters such as the space character in design names. Illegal
characters are replaced with an underscore character. Refer to the section on naming
conventions for additional information.
The selected project is loaded into Maxwell.
4.
5.
Select the Design you wish to use from the drop-down list.
6.
Select the Solution and Matrix to use from the selected Design. The Information tab displays the following information:
7.
Note
8.
Note
9.
For 2D designs, a Depth field is displayed. Enter a positive number for the design length
in this field. The default unit of length is meter. You can change this to any valid unit of
length (ft or cm, for example). If you omit the unit of length, the component will use
the default unit of length set in the Default Units tab of the General Options dialog box.
Depth is controlled based on the DEPTH_FROM_SIMPLORER design quantity of
the component instance, so changes will propagate only by changing this property on the
Quantities tab of the components Properties dialog box.
Optionally, set the Scale to be passed on to Maxwell during simulation, where it performs
the same function as the Maxwell Symmetry Multiplier setting. Maxwell then passes the
results back to Simplorer. (Refer to Setting a Symmetry Multiplier in the Maxwell online
help for additional information.)
Coupling components created in Simplorer versions prior to version 10 may need to be
recreated to enable use of the Scale setting.
Optionally, the Edit Project button opens the Maxwell project window if you wish to edit
the Maxwell project.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
When finished editing, click the Obtain Design Information button to update the
data in the Information tab.
10. In the Options tab, choose to show either the Pin Name or Pin Description on the new
component. By default, pin names are shown.
Note
Pin description properties are always added to the component regardless of whether or
not they are selected to be shown with pins.
If you chose Pin Description when adding the component, you can subsequently
enable individual pin names by opening the component symbol in the symbol editor,
deleting a pins description, then double-clicking the pin and enabling ShowName in
the pin properties dialog box.
If you chose Pin Name when adding the component, you can subsequently hide individual pin names by opening the component symbol in the symbol editor, then double-clicking a pin and disabling ShowName in the pin properties dialog box. You can
then add descriptive text to the pin using the editors Draw>Text tool.
11. You can select the following additional options on the Options tab:
Selecting the Save project after use checkbox will cause Maxwell to save any solutions data after the Simplorer simulation, overwriting any previously saved data.
Selecting the Unload project after use checkbox will cause Maxwell to close the
project and shut down after the Simplorer simulation is complete. This will release
the Maxwell license.
The Create static link option will force Simplorer to load the data currently available
from the project and maintain it internally. Additional calls to Maxwell will not be
performed unless the properties of the component are changed. This option can result
in faster run times by minimizing the number of calls to Maxwell for data sharing.
Use the Clear Static Cache button to force Simplorer to remove the cached data and
acquired new data from Maxwell.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
3.
4.
5.
6.
2.
Specify a Name for the component. Refer to Names of Components and Variables for
naming conventions.
3.
In the Selection panel, click the [...] button to open a file browser window, and locate and
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
choose the Maxwell .mxwl file containing the design you wish to add.
Note
Avoid using illegal characters such as the space character in design names. Illegal
characters are replaced with an underscore character. Refer to the section on naming
conventions for additional information.
The selected project is loaded into Maxwell.
4.
5.
Select the Design you wish to use from the drop-down list.
6.
Select the Solution and Matrix to use from the selected Design.
The Information tab displays the following information:
7.
Note
8.
Note
9.
Quantities - lists the Name and Value of parameters that can be included in the
imported design by checking Add Pin.
For 2D designs, a Depth field is displayed. Enter a positive number for the design length
in this field. The default unit of length is meter. You can change this to any valid unit of
length (ft or cm, for example). If you omit the unit of length, the component will use
the default unit of length set in the Default Units tab of the General Options dialog box.
Depth is controlled based on the DEPTH_FROM_SIMPLORER design quantity of
the component instance, so changes will propagate only by changing this property on the
Quantities tab of the components Properties dialog box.
Optionally, set the Scale to be passed on to Maxwell during simulation, where it performs
the same function as the Maxwell Symmetry Multiplier setting. Maxwell then passes the
results back to Simplorer. (Refer to Setting a Symmetry Multiplier in the Maxwell online
help for additional information.)
Coupling components created in Simplorer versions prior to version 10 may need to be
recreated to enable use of the Scale setting.
Optionally, the Edit Project button opens the Maxwell project window if you wish to edit
the Maxwell design.
Note
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
When finished editing, click the Obtain Design Information button to update the
data in the Information tab.
10. In the Options tab, choose to show either the Pin Name or Pin Description on the new
component. By default, pin names are shown.
Note
Pin description properties are always added to the component regardless of whether or
not they are selected to be shown with pins.
If you chose Pin Description when adding the component, you can subsequently
enable individual pin names by opening the component symbol in the symbol editor,
deleting a pins description, then double-clicking the pin and enabling ShowName in
the pin properties dialog box.
If you chose Pin Name when adding the component, you can subsequently hide individual pin names by opening the component symbol in the symbol editor, then double-clicking a pin and disabling Show Name in the pin properties dialog box. You
can then add descriptive text to the pin using the editors Draw>Text tool.
11. You can select the following additional options on the Options tab:
Selecting the Save project after use checkbox will cause Maxwell to save any solutions data after the Simplorer simulation, overwriting any previously saved data.
Selecting the Unload project after use checkbox will cause Maxwell to close the
project and shut down after the Simplorer simulation is complete. This will release
the Maxwell license.
The Create static link option will force Simplorer to load the data currently available
from the project and maintain it internally. Additional calls to Maxwell will not be per
formed unless the properties of the component are changed. This option can result in
faster run times by minimizing the number of calls to Maxwell for data sharing. Use
the Clear Static Cache button to force Simplorer to remove the cached data and
acquired new data from Maxwell.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Each port in the coupling object corresponds to two terminals, one of which is the
reference terminal. Users can choose to automatically ground all reference pins
through call line, show all reference pins, or show one reference pin. If all the
reference pins are automatically grounded through call line, none of the reference
terminals will show up in the symbol, and they will be connected to ground
internally through the netlist (e.g., T1:= %0, T1_ref:=GND). If the second option
shows all reference pins selected, then all the reference terminals will be visible on
the symbol, and users are responsible for the connecting them appropriately.
Finally, if users choose to show only one reference pin, then the reference terminals
are internally connected together, and one common pin is made available on the
symbol for connection.
The simulation end time (tend) of Maxwell must be greater than or equal to that of
Simplorer.
2.
Perform a frequency sweep electromagnetic field solution using the Eddy Current solver.
3.
4.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
5.
Note
To make changes in the Maxwell Design, you must edit the design, recalculate the
field solution, and re-export the design.
The dynamic link with the Maxwell State Space design will not automatically solve
if a change is made to the analysis settings. Most importantly, if the sweep type is
changed and therefore the frequency points themselves are changed, solving
through Simplorer will not cause Maxwell to solve automatically. The intersection
of frequencies in the old and new analyses will be used. Users must go into Maxwell
and manually solve to use the new frequency sweep.
On the Simplorer Circuit main menu, select Subcircuit>Maxwell Dynamic Component>Add State Space.
The Maxwell State Space Dynamic Coupling dialog box appears.
2.
On the Link Description tab, specify a Name for the component. Refer to Names of Components and Variables for naming conventions.
3.
In the Selection panel, enter the project File. An ellipsis button opens a file selection dialog that lets you navigate to find and select the Maxwell file (*.mxwl) that you want to
use. The selected project is loaded into its application.
4.
5.
6.
Select the Design you wish to use from the drop-down list.
Select the Solution and Matrix to use from the selected Design.
The Information tab displays the following information:
7.
Quantities - lists the Name and Value of parameters that can be included in the
imported design by checking Add Pin.
If you wish to edit the active project in Maxwell, click the Edit Project button in the
Information tab to open the project in its application window.
a.
Note
When finished editing, click the Obtain Design Information button to update the
data in the Information tab.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
c.
8.
If you added new designs or solutions, or changed the name of an existing design or
solution, you may need to re-select the desired Design, Solution, or Matrix from the
lists in the respective drop down menus. Any changes made cause Simplorer to
request updated data from the Maxwell project.
For 2D designs, a Depth field is displayed. Enter a positive number for the design length
in this field. The default unit of length is meter. You can change this to any valid unit of
length (ft or cm, for example). If you omit the unit of length, the component will use
the default unit of length set in the Default Units tab of the General Options dialog box.
Note
9.
On the Options tab, choose to show either the Pin Name or Pin Description on the new
component. By default, pin names are shown.
Note
Pin description properties are always added to the component regardless of whether or
not they are selected to be shown with pins.
If you chose Pin Description when adding the component, you can subsequently
enable individual pin names by opening the component symbol in the symbol editor,
deleting a pins description, then double-clicking the pin and enabling ShowName in
the pin properties dialog box.
If you chose Pin Name when adding the component, you can subsequently hide individual pin names by opening the component symbol in the symbol editor, then double-clicking a pin and disabling ShowName in the pin properties dialog box. You can
then add descriptive text to the pin using the editors Draw>Text tool.
10. You can select the following additional options on the Options tab:
Selecting the Save project after use checkbox will cause Maxwell to save any solutions data after the Simplorer simulation, overwriting any previously saved data.
Selecting the Unload project after use checkbox will cause Maxwell to close the
project and shut down after the Simplorer simulation is complete. This will release
the Maxwell license.
The Create static link option will force Simplorer to load the data currently available
from the project and maintain it internally. Additional calls to Maxwell will not be
performed unless the properties of the component are changed. This option can result
in faster run times by minimizing the number of calls to Maxwell for data sharing.
Use the Clear Static Cache button to force Simplorer to remove the cached data and
acquired new data from Maxwell.
The Reference Pins drop-down menu allows you to choose whether to Show one
reference pin, Show all reference pins, or Automatically ground reference pins
through call line.
Product Coupling 11-39
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
11. When finished click OK to accept the values and close the dialog.
12. Place the component on the schematic sheet as you would any other component.
13. After placing the component on a sheet, its Properties dialog may be opened for configuration of the component.
The dynamic coupling component configuration is saved with the schematic sheet. Simplorer must establish a link to the associated application each time a simulation is run.
Note
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Open a project or create a new project in RMxprt, corresponding to the desired motor type.
Note
2.
Avoid using illegal characters such as the space character in design names. Illegal
characters are replaced with an underscore character. Refer to the section on naming
conventions for additional information.
3.
4.
5.
6.
7.
Note
RMxprt motor models are generally used for transient analysis, but they also support AC
and DC analysis.
All motor models exported from RMxprt have two mechanical pins that must be connected to a mechanical subsystem having a ROTATIONAL_V nature.
In RMxprt 4, the port labeled Torque is an electrical current source that is grounded internally. The voltage on this pin is sensed as the motor speed. A Domain to Domain component must be used to interface with the mechanical subsystem, as shown in the figure. The
pin labeled Position is for output only, and is an electrical voltage numerically equal to the
rotor angle.
In RMxprt 5 and later versions, the mechanical pins are of ROTATIONAL_V nature, and
the Domain to Domain component need not be used. The two pins are ROT1 and ROT2,
with torque as the through variable and speed as the across variable. The angle is output as
a real number.
Motor models exported from RMxprt 4 have the neutral grounded internally. The neutral
is not available for external connections, and in this example, the simulation runs even
though the sources are not grounded.
In RMxprt 5 and later versions, the neutral pin is available for external grounding.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
On the Simplorer Circuit main menu, select Subcircuit>Add RMxprt Dynamic Component.
The RMxprt Dynamic Coupling dialog box appears.
2.
Specify a Name for the component. Refer to Names of Components and Variables for naming
conventions.
3.
In the Selection panel, enter the project File. An ellipsis button opens a file selection dialog
that lets you navigate to find and select the RMxprt file (*.mxwl) that you want to use.
The selected project is loaded into its application.
4.
Simplorer communicates with RMxprt, retrieves the applicable Design and Solution information, and populates the corresponding menus with the information.
The dialog boxs Information tab is also updated to show the Number of Conservative Pins
and various other Quantities present in the selected design. Users can choose to add pins for
listed Quantities.
5.
After you select the File, select the design you wish to use in the coupled design from the list in
the Design drop down menu.
6.
Select the desired solution from the Solution drop down menu.
7.
Select Save project after use to have the linked project file saved by its application after
co-simulation is completed.
b.
Select Unload project after use to have the linked project file closed by its application
after co-simulation is completed.
c.
Select Create static link to create a static link and enable the Clear Static Cache button.
If Create static link is not selected, Simplorer obtains sml/netlist information from
RMxprt every time a simulation analysis is run - even if no parameter has changed.
This is the default behavior.
If Create static link is selected, Simplorer obtains sml/netlist information from RMxprt only if a parameter value has changed since the previous simulation run. Clicking
the Clear Static Cache button deletes the sml/ netlist information currently stored in
the Simplorer model. The next simulation run will then obtain fresh sml/netlist information from the other product application and store it in the Simplorer component.
By default, pin names are shown. The option to Show Description is disabled.
8.
If you wish to edit the active project in its own application, click the Edit Project button in the
Information tab to open the project in its application window.
a.
Note
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
9.
b.
When finished editing, click the Obtain Design Information button to update the data in
the Information tab.
c.
If you added new designs or solutions, or changed the name of an existing design or solution, you may need to re-select the desired Design and Solution from the lists in the
respective drop down menus.
When finished click OK to accept the values and close the dialog.
10. Place the component on the schematic sheet as you would any other component.
11. After placing the component on a sheet, its Properties dialog may be opened for configuration
of the component.
The dynamic coupling component configuration is saved with the schematic sheet. Simplorer
must establish a link to the associated application each time a simulation is run.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
First create a 2D or 3D model, with material and boundary assignments, in Q3D. Then perform
a frequency sweep solution on this model.
2.
3.
In Simplorer, add the Q3D Dynamic Equivalent Circuit component to the sheet.
4.
5.
Note
To make changes in the Q3D SML model, you must edit the 3D model, recalculate the
field solution, and re-export the model.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
1.
On the Simplorer Circuit main menu, select Subcircuit>Q3D Dynamic Component>Add Equivalent Circuit.
The Q3D SML Dynamic Coupling dialog appears.
2.
Specify a Name for the component. Refer to Names of Components and Variables for
naming conventions.
3.
In the Selection panel, enter the project File. An ellipsis button opens a file selection dialog that lets you navigate to find and select the Q3D file (*.q3dx) that you want to use.
The selected project is loaded into its application.
4.
5.
After you select the File and Design Type, select the design you wish to use in the coupled
component from the list in the Design drop down menu.
6.
Select the desired solution from the Solution drop down menu.
7.
Select the Reduced Matrix to be used with the component during simulation.
8.
Select Save project after use to have the linked project file saved by its application
after co-simulation is completed.
b.
Select Unload project after use to have the linked project file closed by its application after co-simulation is completed.
c.
Select Create static link to create a static link and enable the Clear Static Cache
button.
9.
Choose to show either the Pin Name or Pin Description on the new component. By
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Pin description properties are always added to the component regardless of whether or
not they are selected to be shown with pins.
If you chose Pin Description when adding the component, you can subsequently
enable individual pin names by opening the component symbol in the symbol editor,
deleting a pins description, then double-clicking the pin and enabling ShowName in
the pin properties dialog box.
If you chose Pin Name when adding the component, you can subsequently hide individual pin names by opening the component symbol in the symbol editor, then double-clicking a pin and disabling ShowName in the pin properties dialog box. You can
then add descriptive text to the pin using the editors Draw>Text tool.
10. If you wish to edit the active project in its own application, click the Edit Project button
in the Information tab to open the project in its application window.
a.
Note
When finished editing, click the Obtain Design Information button to update the
data in the Information tab.
c.
If you added new designs or solutions, or changed the name of an existing design or
solution, you may need to re-select the desired Design and Solution from the lists in
the respective drop down menus.
11. When finished click OK to accept the values and close the dialog.
12. Place the component on the schematic sheet as you would any other component.
13. After placing the component on a sheet, its Properties dialog may be opened for configuration of the component.
The dynamic coupling component configuration is saved with the schematic sheet. Simplorer must establish a link to the associated application each time a simulation is run.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Each port in the coupling object corresponds to two terminals, one of which is the
reference terminal. Users can choose to automatically ground all reference pins
through call line, show all reference pins, or show one reference pin. If all the
reference pins are automatically grounded through call line, none of the reference
terminals will show up in the symbol, and they will be connected to ground
internally through the netlist (e.g., T1:=%0, T1_ref:=GND). If the second option
shows all reference pins selected, then all the reference terminals will be visible on
the symbol, and users are responsible for the connecting them appropriately.
Finally, if users choose to show only one reference pin, then the reference terminals
are internally connected together, and one common pin is made available on the
symbol for connection.
The Q3D State Space component creates a state-space model that is valid over a range of
frequencies, while the Q3D Equivalent Circuit component creates an equivalent circuit
at a single frequency.
2.
3.
In Simplorer, add the Q3D state space coupling component to the sheet.
4.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
5.
Note
2.
Check the Automatically increase solution order box on the CG tab under Solve
Setup (Analysis->Setup)
b.
Set the Maximum Number of Passes in both the DC RL and AC RL fields (under
Analysis->Setup) for Multipole Adaptive Solutions to be greater that 1.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
3. Ensure that the end frequency specified for the frequency sweep in Q3D/Q2D is greater that
the end frequency use in the Simplorer AC analysis.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
On the Simplorer Circuit main menu, select Subcircuit>Q3D Dynamic Component>Add State Space.
The Q3D State Space Dynamic Coupling dialog box appears.
2.
On the Link Description tab, specify a Name for the component. Refer to Names of Components and Variables for naming conventions.
3.
In the Selection panel, enter the project File. An ellipsis button opens a file selection dialog that lets you navigate to find and select the Q3D file (*.q3dx) that you want to use.
The selected project is loaded into its application.
4.
5.
Select the Design you wish to use from the drop-down list.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
6.
Select the Solution and Reduced Matrix to use from the selected Design.
The Information tab displays the following information:
7.
8.
Note
When finished editing, click the Obtain Design Information button to update the
data in the Information tab.
c.
If you added new designs or solutions, or changed the name of an existing design or
solution, you may need to re-select the desired Design, Solution, or Reduced Matrix
from the lists in the respective drop down menus. Any changes made cause Simplorer
to request updated data from the Q3D project.
On the Options tab, choose to show either the Pin Name or Pin Description on the new
component. By default, pin names are shown.
Pin description properties are always added to the component regardless of whether or
not they are selected to be shown with pins.
9.
Quantities - lists the Name and Value of parameters that can be included in the
imported design by checking Add Pin.
If you wish to edit the active project in Q3D, click the Edit Project button in the Information tab to open the project in its application window.
a.
Note
If you chose Pin Description when adding the component, you can subsequently
enable individual pin names by opening the component symbol in the symbol editor,
deleting a pins description, then double-clicking the pin and enabling ShowName in
the pin properties dialog box.
If you chose Pin Name when adding the component, you can subsequently hide individual pin names by opening the component symbol in the symbol editor, then double-clicking a pin and disabling ShowName in the pin properties dialog box. You can
then add descriptive text to the pin using the editors Draw>Text tool.
You can select the following additional options on the Options tab:
Selecting the Save project after use checkbox will cause Q3D to save any solutions
data after the Simplorer simulation, overwriting any previously saved data.
Selecting the Unload project after use checkbox will cause Q3D to close the project
and shut down after the Simplorer simulation is complete. This will release the Q3D
license.
The Create static link option will force Simplorer to load the data currently available
from the project and maintain it internally. Additional calls to Q3D will not be performed unless the properties of the component are changed. This option can result in
faster run times by minimizing the number of calls to Q3D for data sharing.
Product Coupling 11-53
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Use the Clear Static Cache button to force Simplorer to remove the cached data and
acquired new data from Q3D.
The Reference Pins drop-down menu allows you to choose whether to Show one
reference pin, Show all reference pins, or Automatically ground reference pins
through call line.
Select Enforce Passivity to...
Desired Fitting Error (Percent) sets the S-Matrix fitting error tolerance.
Maximum Order sets the number of poles...
10. When finished click OK to accept the values and close the dialog.
11. Place the component on the schematic sheet as you would any other component.
12. After placing the component on a sheet, its Properties dialog may be opened for configuration of the component.
The dynamic coupling model configuration is saved with the schematic sheet. Simplorer
must establish a link to the associated application each time a simulation is run.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
Avoid using illegal characters such as the space character in design names. Illegal
characters are replaced with an underscore character. Refer to the section on naming
conventions for additional information.
2.
3.
4.
On the Simplorer Circuit main menu, select Subcircuit>Add PExprt Static Component to
add the PExprt Static Component to the sheet.
5.
6.
Note
To make changes in the PExprt SML model, you must edit the PExprt design and reexport the model.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Conservative terminals
Conservative terminals use the force-displacement mechanical domain representation and may be
either rotational or translational in nature (based on the definition of the Degree of Freedom in
ANSYS Mechanical). For conservative terminals, the system implemented is of the form:
dx
= Ax + BF
dt
s = Cx
where,
F is the vector of forces (or torques) at each terminal,
s is the vector of displacements at each terminal,
x is the vector of states.
Also in the conservative implementation, references are present in one of the following three forms:
no reference
common reference (only when all terminals have the same nature)
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
individual references
Non-conservative terminals
In the non-conservative representation, input and output pins are separate and non-conservative in
nature. The system implemented by the model is of the form:
dx
= Ax + B + u
dt
y = Cx
where,
u is the vector of inputs,
y is the vector of outputs.
Follow the steps outlined in the ANSYS Mechanical help to generate an .spm file in SML format for the Workbench/APDL static structural model with the desired degrees of freedom,
type (conservative or non-conservative) and references (single or individual). An image file for
Product Coupling 11-57
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
the component is also generated. (The output of the spmwrite command will be an .spm file
and an image file.)
2.
Select the Simplorer Circuit > Subcircuit > Add Mechanical Component menu item.
3.
In the MechanicalData Link Data dialog box, locate and select the appropriate .spm file to create a new component in Simplorer.
The .spm file is compiled and Parameters and Terminals information displays. Pin display can
be turned on or off through the Add Pin checkbox column in the Parameters grid.
4.
5.
Click OK to create a component and symbol (with image from the 3D model) and a model and
add them to the project.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
6.
Position the new component on the schematic and make the appropriate connections between it
and existing schematic components.
7.
Related Topics
ANSYS Mechanical Link Example
File Link Dialog Box
Clamped Free Beam with a spring (stiffness of 10000 Newton per meter) and 20kg mass at the
Product Coupling 11-59
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
free end
The ANSYS Mechanical source project files are also included in the
BarExample_SimplorerMechanicalLink.zip file.
The Simplorer project was created by first bringing the three models into Simplorer. Three separate
instances of the Clamped Free Beam were created and one instance each of the other two models
were created on the schematic. A 20kg mass was applied to one instance of the Clamped Free
Beam and a 10000 N/m spring and a 20 kg mass were applied to the third instance of the Clamped
Free Beam. The results for TR and AC simulation are compared against the corresponding reduced
order models.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The ellipsis button [...] opens a file selection window for locating and selecting the desired File
Source. You can assign a unique Model Name to the model and component being created. Clicking Obtain Design Info retrieves design information for the chosen source file. The Parameters
and Terminals panels display information about the parameters and terminals for the model being
created. Checking Add Pin adds a pin for the associated parameter to the new component.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Related Topics
Adding an ANSYS Mechanical Component Subcircuit
Icepak Components
This section contains information on:
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
V = I Ri ( 1 e
t i
i=1
where m is the number of rungs or RC pairs, and parameters Ri and i will need to be extracted
through curve fitting the transient step response of the thermal system.
A typical step response from a Foster network will not give close-to-zero slope as required by the
cross-heating curves and thus will not allow us to match the step response of cross-heating from the
thermal system. However, if one allows for negative R, the resistance, the curve fit works well.
Even though negative R poses no difficulty mathematically, it causes problems in circuit simulators. This difficulty can be overcome by using positive R but subtracting the V contribution from
that part of the RC circuit. Figure 4 shows an example. In this example, the voltage (or output) is
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
equal to VM1 minus VM2 rather than VM1 plus VM2. So, the Foster network itself has no negative Rs, but rather it has a part with negative voltage contribution.
y( t) = h( t)*x(t )
where x(t) is the input, y(t) is the output, h(t) is the impulse response, and * designates convolution.
Even though we could use the convolution equation to calculate the thermal response, we choose to
use the Foster network to represent the thermal system due to its simplicity to implement in circuit
simulators. In passing we note that, if the step response is too complex for the Foster network to
curve fit, one can always rely on the convolution method. Also, convolution notation makes it easier to express the solution for systems with many inputs and outputs as described below.
Systems with many inputs and many outputs
For systems with many inputs and many outputs, the superposition property is used to obtain the
solution. Superposition means that the overall output at one location is the sum of the contribution
from individual inputs. The convolution equations satisfy the superposition property. In terms of
the impulse response hij, the solution for a system with m inputs and n outputs can be calculated
using the matrix below:
Product Coupling 11-65
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
y1 ( t )
y2 ( t )
yn ( t )
x1 ( t )
*
x2 ( t )
where hij represents the impulse response of the jth input on the ith output, and again * designates
convolution rather than product. As before, instead of using the convolution method, a Foster network will be used to represent the thermal system. But instead of curve fitting one step response,
we need to curve fit nm number of step responses in principle. However, many of the cross-heating responses have very small values, and thus their contribution can be neglected. In passing we
note that the Laplace transform of the hij represents the impedance between the jth input and the ith
output.
Also note that the impulse response matrix would, in general, not be symmetrical even though the
system is linear. This is because, in a convection heat transfer problem, a downstream object will
strongly feel the heat from an upstream object but not vice versa. However, there are problems
with symmetrical impulse responses, for instance, diffusions problems with temperature boundary
condition.
Limitations and assumptions
As mentioned above, this method works provided that both systems are LTI. The linearity part of
LTI means that the system must satisfy the superposition property. The time invariant part of LTI
mainly concerned with the coefficients of various terms in the governing equations of the system,
which are typically ordinary or partial differential equations. For the Foster network, if the resistance and capacitance are constants, the system is linear and time invariant. We will next discuss
under what conditions thermal systems are LTI.
Thermal problems, governed by Navier-Stokes equations, are, in general, notoriously non-linear.
So, thermal systems processing power inputs and yielding temperature outputs are in general not
linear. The linearity is mainly due to, but not limited to, the momentum equation. However, if density and properties are constant, the momentum equation is decoupled from energy equation. This
decoupling makes the energy equation linear and thus the thermal systems linear. But as mentioned
above, the thermal system needs to be time invariant as well. To make the thermal system time
invariant, the coefficients of all terms in the energy equation need to be constant. Flow velocity,
which serves as the coefficients for energy equation in the convection term, is the main concern.
So, in order for the system to be time invariant, velocity cannot change as a function of time even
though no restriction is applied on spatial variation.
The thermal system can also be linearized by choosing the properly operating point. However, this
method has limited application for thermal systems as linearization requires that heating has a large
DC component and relatively small variation superposed onto it. Most thermal problems do not satisfy this condition. However, if this condition is satisfied, the Foster network method is valid.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
To summarize, the following conditions must be satisfied in order for the thermal system to be LTI
and thus make the method valid:
Constant density This is a very good assumption for incompressible fluids like water.
For compressible fluids like air, constant density implies low Mach number and adiabatic
temperature boundary condition. Even though the low Mach number condition does not
pose real restrictions on most of problems considered, the adiabatic temperature boundary
certainly cannot be satisfied strictly for heat transfer is the main point of interest. However, testing shows that the method still gives very decent results even when the max temperature increase goes up to 140K.
Constant property This is not a major concern as the properties either do not change
appreciably within the range of temperature, or the impact of the property is rather negligible. Density variation will likely show signs of a problem before properties variation.
Constant velocity The Foster network, characterized at one velocity, cannot be used for
other velocities. A new characterization (curve fitting) is needed if velocity changes.
No radiation This restriction is due to the non-linear relationship between temperature
and radiation heat flux.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Follow the steps outlined below to generate an .simpinfo file Icepak thermal model and associated output and symbol files:
a.
In the Icepak Model Manager Window, select each potential heat source (block.1 through
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
block.4), and assign a variable for the Total power of each potential heat source.
b.
Select menu item Solve>Run optimization, and in the Parameters and optimization
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
c.
Select the Trials tab in the Parameters and optimization dialog box, and set up the parametric analysis. Make sure the number of trials corresponds to the number of potential
heat sources. In each trial, one and only one of the heat source variables should have a
positive value, and the rest should be set to 0 (zero).
d.
Click Done, then reopen the Parameters and optimization dialog box and select the Trials tab.Make sure that all the trials are selected, and the Write Simplorer File option is
selected as well.
Note
Due to an error in Icepak trials settings, it is necessary to close the Parameters and
optimization dialog box by clicking Done after setting up the trails; then reopening it to
perform the parametric analysis. This guarantees the specified values for the heat source
variables are set properly during the parametric simulation.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
e.
f.
When the analysis is completed, a file with the extension .simpinfo is written in the same
location as the results .out files. A .gif image file for the model symbol is also generated
and written to this location.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
On the Simplorer main menu, select Simplorer Circuit > Subcircuit > Add Icepak Component.
The Icepak Interface dialog box displays.
3.
In the Icepak Source panel, click the ellipsis button [...] and select the appropriate .simpinfo
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The Icepak output (.out) and symbol (.gif) files generated by Icepak must be present
in the same directory as the .simpinfo file. If the Icepak output files are missing, an
error dialog box displays, and the component will not be generated. If the symbol
file is missing, a generic symbol is used for the component.
In Icepak-Simplorer coupling, the model names are used to name ports and
terminals. Because model names in Icepak may include characters that are illegal in
Simplorer, name checking has been implemented in Simplorer so that illegal
characters such as the dash - and period . characters are replaced with an
underscore _ character in the generated SML file. For example, the Icepak name
block.1 is changed to block_1 in the generated SML file.
The panel also indicates the number of Sources and trial Points present in the Icepak output
file.
4.
5.
Choose the desired Model Type. The thermal model can be represented either an by equivalent
thermal network (Equivalent circuit model) or in state-space format (State-Space model).
Each representation can be either Conservative or Non-Conservative. When the Conservative option is selected, the generated thermal component can be connected to an external thermal network through conservative thermal terminals, while the Non-Conservative thermal
component uses input heat source quantities and computes the temperature output quantities.
In order to enable selection of the Conservative model type, the Icepak thermal system needs
to contain at least one heat source and temperature measurement point pair, or in other words,
at least one thermal model which has heat dissipation needs to have temperature measurement
assigned to it. If there is no heat source and temperature measurement point pair in the Icepack
system, the Conservative option is disabled, and only the Non-Conservative option will be
available.
If State-Space model representation is selected, the requirement for selecting the Conservative model type is even stricter (due to model restrictions). In this case, all the heat source variables and the temperature measurement points have to be in pairs, or in other words, all the
thermal models with heat dissipation must have temperature measurement points assigned. If
this condition is not satisfied when State-Space model is selected, then the Conservative
option is disabled, and only the Non-Conservative option will be available.
6.
Click Generate.
Simplorer generates the new component. Information on the Parameters and Terminals for
the component appear in their respective panels. Pin display can be turned on or off through
the Add Pin checkbox column in the Parameters grid
Note
7.
Depending on the complexity of the Icepak output, several seconds may elapse before
the component is generated and available for placement on the schematic.
Click OK to create a component and symbol (using the image from the 3D model) and model
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Position the new component on the schematic and make the appropriate connections between it
and existing schematic components.
9.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
State-Space Components
This section contains information on:
dx
= Ax + Bu
dt
y = Cx + Du
where y is the output equation, and x is the state vector.
Detailed description of variables:
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Conservative models have bi-directional terminals where the number of inputs equals the
number of outputs. The state-space component currently supports three matrix forms:
1.
Z Formulation
2.
Y Formulation
3.
S Formulation
Product Coupling 11-77
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The S Formulation requires specification of a Zref Value for each port. A default
value of 50 ohms can be used; or you can specify values independently for each port
via the Matrix List.
Select Manual as the Matrix Source if you want to enter matrix data manually in the Enter
Matrix text field.
Select File as the Matrix Source if you want to importing the matrix data via a text file.
Matrix data must be entered in row-major order separated by any of the following delimiters: space,
comma, or semicolon. In text files, you can also use newline characters to break the entry at the end
of each row.
Matrices can be populated either by pressing the Populate button, or by directly editing the matrix
in the table. Attempting to populate the matrix with incorrectly sized or formatted data generates an
error message: Size of input does not match matrix size.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
By default, the View Matrix box is checked and the selected matrix data can be viewed and edited
directly in the matrix table. When View Matrix is unchecked, the Viewer button is enabled and can
be used to view the matrix data in Notepad.
On the Simplorer main menu, select Simplorer Circuit > Subcircuit > Add State Space
Component.
The Generate State-Space Component dialog box displays.
2.
3.
4.
6.
For Non-Conservative models, enter the number of States, Inputs, and Outputs.
For conservative models, in the Terminal Reference panel, choose the reference port assignment for the models physical ports.
5.
For conservative models (i.e., Z, Y, or S Formulation), enter the number of States and
Terminals, and select the physical Domain.
For S Formulation models, the Zref Specification panel controls are enabled for use as follows:
a.
Check Use Default to use the specified Zref Value for all ports in the model.
b.
Uncheck Use Default if you wish to specify the Zref value independently for each model
port. A Zref matrix entry is added to the Choose Matrix list box for this purpose. Select
the Zref matrix in the list, then use the Matrix Entry fields to specify the Zref values. You
can also enter the values directly in the matrix table if View Matrix is enabled.
Specify values for the model matrices. At a minimum, the A, B, and C matrices must be specified.
a.
Select the matrix for which you wish to enter values from the entries in the Choose
Matrix list.
The Matrix Entry panel fields are enabled. Also, if View Matrix is checked, an editable
matrix table displays.
b.
Note
Select Manual if you wish to enter the matrix values directly; then enter the desired
Product Coupling 11-79
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
c.
7.
Select File if you wish to import the matrix values from a delimited text file; then
click the [...] button to open a file selection dialog box. The selected text file path is
entered in the Enter Matrix box.
Click Populate to transfer the entered matrix values into the model.
Note
8.
Optionally, you can edit matrix values directly in the matrix table, provided that View Matrix
is checked.
9.
Optionally, uncheck View Matrix to enable the Viewer button to view the matrix data in
Notepad. Typically this would be used for viewing large matrices. Do not edit the data in the
viewer.
Depending on the complexity of the model, several seconds may elapse before the model
is generated and available for placement on the schematic.
11. Position the new component on the schematic and make the appropriate connections between it
and existing schematic components.
12. Run Simplorer analyses as desired.
You can view matrix values for existing state-space components by double-clicking the
component instance on a schematic to open the component dialog in read-only mode.
By default, the View Matrix box is checked and the selected matrix data can be viewed
directly in the matrix table. When View Matrix is unchecked, the Viewer button is
enabled and can be used to view the matrix data in Notepad.
You can edit matrix values for an existing state-space component instance using the Edit
Component dialog box.
a.
Expand the Definitions>Components subfolder for the project that contains the
instance you want to edit. Double-click the entry for the component you want to edit,
or right-click the entry and then select Edit Component to open the Edit Component dialog box.
Alternatively, right-click on the component in the schematic and select Edit Component from the shortcut menu.
b.
Click the Properties button on the General tab to open the Properties dialog box.
c.
On the Parameter Defaults tab, click the StateSpaceModel button in the Value field
to open the Component dialog in which you can change matrix values as needed.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
When finished, click OK to close the Component dialog, then OK to close the Properties dialog, then OK to close the Edit Component dialog and complete the change
process.
You can double-click the component instance on the schematic to re-open the Component dialog in read-only mode and confirm the changes.
In the project tree, expand the Definitions>Components subfolder for the project that contains
the coupling model you want to edit. Double-click the entry for the component you want to
edit, or right-click the entry and then select Edit Component to open the Edit Component
dialog box.
Alternatively, right-click on the component in the schematic and select Edit Component from
the shortcut menu.
2.
Click the Properties button on the General tab to open the Properties dialog box.
3.
On the Parameter Defaults tab, click the button in the Value field for the Data property. (The
buttons label is the name of the coupling object.)
If the coupling model file is not in its original location, a message displays informing you that
the file does not exist. Click OK to continue.
The coupling dialog box for the object opens.
4.
Click the [...] button to open a file browser window, and locate and choose the desired model
file to restore the link to it.
5.
Choosing No opens the project, but the coupling component retains the original path information to the related coupling model. You can then use the Changing Coupling Model Files proProduct Coupling 11-81
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Choosing Yes opens the coupling dialog box for the component. Click the [...] button to open a
file browser window, and locate and choose the desired model file to re-establish the link to it.
SIwave Components
SIwave is a tool used by signal and power integrity engineers to study complex electromagnetic
phenomena on printed circuit boards (PCBs) and IC packages. It can identify signal delay and
excessive cross-talk between interconnects, deficiencies in the power distribution network, and
regions in the layout that may cause EMC/EMI problems.
SIwave Full-Wave SPICE models are computed from broadband S-parameter data representing
PCB geometry. They are compact macro-models that are typically used in circuit tools for timedomain simulations. They optionally incorporate corrections for passivity and causality violations
that arise due to issues such as incorrect upstream material parameters.
Exporting an SIwave subcircuit allows you to perform an analysis of the structure in Simplorer.
Refer to the SIwave documentation for detailed information.
This section contains information on:
Note
2.
Refer to the SIwave online help Getting Results >Computing Full-Wave SPICE
Subcircuits topic for detailed information on computing and exporting the Simplorer
model.
If using SIwave v5, the export process generates three files: <simplorer_model>.sml,
<simplorer_model>.ss, and <simplorer_model>.jpg.
If using SIwave v6.0 or higher, the export process generates two files:
<simplorer_model>.sml, and <simplorer_model>.jpg
On the Simplorer Circuit main menu, select Subcircuit>Add SIWave Component to add
the component to the sheet.
In the Select SIWave generated SML file dialog box, navigate to the desired SIwave generated .sml file, then click Open to close the dialog, and place the component on the schematic
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
sheet.
Note
3.
4.
Note
To make changes in the SML model, you must edit the SIwave design and re-export the
model.
HFSS Components
Exporting an HFSS model allows you to perform an analysis of the structure in Simplorer. Refer to
the HFSS documentation for detailed information on exporting an HFSS model.
This section contains information on:
Note
Refer to the HFSS online help for detailed information on computing and exporting the
Simplorer model.
2.
If using HFSS v13, the export process generates three files: <simplorer_model>.sml,
<simplorer_model>.ss, and <simplorer_model>.jpg.
If using HFSS v14.0 or higher, the export process generates two files:
<simplorer_model>.sml, and <simplorer_model>.jpg
On the Simplorer Circuit main menu, select Subcircuit>Add HFSS Component to add the
component to the sheet.
In the Select HFSS generated SML file dialog box, navigate to the desired HFSS generated
Product Coupling 11-83
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
.sml file, then click Open to close the dialog, and place the component on the schematic sheet.
Note
3.
4.
Note
To make changes in the SML model, you must edit the HFSS design and re-export the
model.
Create or open a coupling design containing a coupling component created using either HFSS/
14.0 or later, or SIwave 6.0 or later.
2.
3.
Select and right-click on the HFSS or SIwave coupling component and select Push Excitations... to open the Push Excitations Dialog.
4.
In the Push Excitations Dialog, select the various excitation options to control the transformation of signal from transient to spectral domain. The Push Excitations Dialog automatically
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
a.
Note
b.
5.
Select the ports and frequency points of interest. By default all are selected.
The initial set of frequency points are the same as the ones used and passed by HFSS/
SIwave to generate the state space model.
Select the solutions of interest and choose the Transformation Parameters as explained
in the section Plotting Spectral Domain Data. You must uncheck Use Default Values if
you wish to set any of the advanced spectral Transformation Parameters.
Click OK to generate an Excitation file that can be imported back into HFSS and SIwave. The
location and name of the generated file are given in the Message Manager window.
Product Coupling 11-85
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Limitations
The following limitations should be noted when designing and using RBD subcircuits:
Discontinuous stops defined in Rigid Dynamics can cause convergence issues. To use
stops, define them in the Simplorer schematic.
Rigid Dynamics designs with contacts are not currently supported.
For details on creating a model in Rigid dynamics, please refer to the ANSYS Rigid
Dynamics/Mechanical help. Once the desired Rigid Dynamics model is setup correctly,
proceed with the following steps to setup and perform the co-simulation.
1.
2.
3.
4.
Simulate.
5.
Open the desired Rigid Dynamics (RBD) analysis system in Workbench; then doubleclick on the Model field to open the model for editing in the Mechanical application.
2.
Create the desired pins in Rigid Dynamics. The pins/terminals describe the interface
between Simplorer and Rigid Dynamics. Pins can be added on any of the joints.
a.
To add pins, in the ANSYS Rigid Dynamics window, use the New Simplorer Pin
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
icon in the tool bar as shown below. When the New Simplorer Pin icon is clicked
while the joint of interest is highlighted, the pin will automatically have joint information associated with it. Otherwise, you can select and apply the appropriate joint after
adding the pin.
b.
Once the pin has been added, select the DOF, Type, and Pin Nature to complete the
pin setup. Finally, rename the pin to the name that should appear in Simplorer.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
c.
3.
When finished adding pins, continue with Linking the RBD System to Simplorer.
Note
To create the link with Workbench, return to the Workbench window. Either drag and
drop a new Simplorer analysis system, or bring an existing one into the Workbench window.
2.
Drag and drop the Rigid Dynamics setup cell to the Simplorer Setup cell to establish the
link.
3.
When establishing the link for the first time, it is necessary to manually instantiate the link
component in Simplorer. To do this, first update the Simplorer setup. Then go into the
Simplorer menu bar and select the Simplorer Circuit> SubCircuit>Add RBD Component menu item to open the file select dialog. Select the desired .mbd file and the component will be created.
4.
In this case, the .mbd file that describes the interface must be manually exported to Simplorer. To export the .mbd file, click on the Transient cell and then select Tools>Write
Input File. Specify the file name and location in the dialog that appears and select OK.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
To instantiate the link component in Simplorer, use the Simplorer Circuit>Sub-circuit>Add RBD Component menu item to open the file select dialog. Select the .mbd file
that was exported in the previous step and the component will be created in Simplorer.
3.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
When finished making the required connections, continue with Simulating the RBD Coupled
Component.
To start the simulation in Simplorer, in the Project Manager tree, right-click on the Optimetrics icon and select DefaultDesignXplorerSetup>Analyze.
Simulation can be controlled using the progress bar in Simplorer (pause, stop, clean stop,
abort, etc).
To start the simulation from Workbench, use the systems Solution cell Update command.
During simulation, the two solvers both solve simultaneously and exchange data in an iterative
relaxation scheme at each time step to reach convergence.
Related Topics
RBD Coupled Component Postprocessing Results
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
To view simulation results in Rigid Dynamics, the results file must be manually imported into
the Rigid Dynamics setup. To do this, in the Rigid Dynamics window, select the solution cell
and then click on Tools>Read Result Files. (Refer to the ANSYS help for more details.)
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
1.
Setup Fluent: Load the Fluent design independently and create input and output parameters
(Boundary Conditions) for all desired interface points with the Fluent component. Save the cas
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
and dat files and exit Fluent. They may also be saved as cas.gz and dat.gz files.
Note
2.
3.
If the aaS Session Manager is already running, enter the machine name or IP address and port
number. If the Session Manager is not running, Simplorer will try to locate it on the current
machine and automatically start it in default mode.
4.
In the dialog box, select the CAS file - if there is a DAT file of the same name in the same location, Simplorer will automatically locate it. Use the selection button [...] and dialog if a different DAT file is desired.
5.
Click Obtain Design Info. Simplorer will launch/connect to the Ansys Session Manager and
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
query the Fluent design for design parameters. These parameters will be used as pins for the
Simplorer component.
6.
In the Simplorer co-simulation component, there are two additional inputs that can be used to
control the simulation. To access these, right-click on the component and open its Properties
dialog box. On the Quantities tab, the SynchType input can take values of 0 (default), 1 or 2.
Depending on the value of SynchType, SynchValue may be used as follows:
SynchType
SynchValue
Ignored
7.
8.
Start the simulation. Simplorer will launch and connect to Fluent and co-simulate. At the end
of the simulation, Simplorer will shut down Fluent if it was launched by Simplorer.
Product Coupling 11-95
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Create the Esterel design; then export the Esterel model dll file.
Note
2.
Refer to the Esterel documentation for detailed information on creating an Esterel model
and saving it as a dll file.
If the selected Esterel model has more than 10 quantities, the Import Components dialog
box displays in which you can select the pins and SDB outputs you want to enable in the
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
b.
3.
If the selected Esterel model has 10 or fewer quantities, Simplorer automatically adds pins
for all quantities, selects all quantities as SDB outputs, and creates the component.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
4.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
5.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
12
Netlist Editor
A netlist is an SML textual representation of a design that describes the designs model instances,
connections, subcircuits, ports, as well as instructions for data recording and analysis information.
Each component instance in a schematic provides an entry for the netlist based on the model or netlist line chosen for that particular instance (using SML syntax and netlist property expansion rules).
Simplorer creates a netlist from the schematic design, then prepares a binary version of the netlist
(i.e., a .smt file). The simulator then uses the binary file to perform the simulation.
Note
A Simplorer netlist does not contain information about the physical layout of a circuit.
You can use the Netlist Editor to view (browse) the derived netlist without making any changes.
The Netlist Editor display is colored to provide easy identification of variables, values, comments,
bookmarks, and other elements of the netlist. Printing the netlisting is also supported.
Related Topics:
Viewing Netlists in Schematic Designs
Netlist Editor Operation
Text Editor Options
Printing
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
The netlist in a Simplorer schematic design is for reference only so that you can
view what will be sent to the simulator.
The netlist should not be modified within the Netlist Editor view. While the Netlist
Editor will allow you to modify the netlist, and will ask if you want to save the
changes, any modifications you make will be overwritten the next time the netlist is
generated from the schematic.
This toolbar is also used with the C, VHDL, and SML model editors.
When the Netlist Editor is the active window, the Editor Toolbar is displayed in the Simplorer tool
bar area.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Toolbar Commands
Description
Toggle Bookmark
Next Bookmark
Previous Bookmark
Find Window
Find Forward
Find Backward
Find Forward,
Case-sensitive
Find Backward,
Case-sensitive
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Edit Menu
When the Netlist Editor is the active window, the Edit menu on the top menu bar includes Netlist
Editor commands.
The menu also identifies keystroke shortcuts that may be used in place of the mouse-oriented
command methods.
The Replace and Go To Line commands are not available on the Netlist Editor Toolbar. These
commands must be executed from the Edit menu or with a keystroke shortcut.
Using Bookmarks
A bookmark is a colored overlay that highlights a line in the netlist text that is significant to you.
Once created, Netlist Editor bookmarks allow quick access to text sections.
Inserting a Bookmark
Deleting a Bookmark
Deleting All Bookmarks
Moving Forward to the Next Bookmark
Moving Backward to the Previous Bookmark
Inserting a Bookmark
To insert a bookmark, position the cursor anywhere in the line to be marked, and then do one of the
following:
on the toolbar.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Press Ctrl+F2.
Deleting a Bookmark
To delete a single bookmark, position the cursor anywhere in the bookmarked line, and then do one
of the following:
If no bookmarks have been inserted, the Next Bookmark command does not move the cursor. If
the cursor is on or past the last bookmark in the netlist, the Next Bookmark command moves the
cursor to the first bookmark in the netlist.
If no bookmarks have been inserted, the Previous Bookmark command does not move the cursor.
If the cursor is on or before the first bookmark in the netlist, the Previous Bookmark command
moves the cursor to the last bookmark in the netlist.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
To search forward for the text, using case-insensitive matching, click the Find Forward icon
on the toolbar. If the cursor is past the location of the search text, the search wraps from the
beginning of the netlist.
To search backward for the text, using case-insensitive matching, click the Find Backward
icon
on the toolbar. If the cursor is ahead of the location of the search text, the search wraps
from the end of the netlist.
To search forward for the text, using case-sensitive matching, click the Find Forward, Casesensitive icon
on the toolbar. If the cursor is past the location of the search text, the search
wraps from the beginning of the netlist.
To search backward for the text, using case-sensitive matching, click the Find Backward,
Case-sensitive icon
on the toolbar. If the cursor is ahead of the location of the search text,
the search wraps from the end of the netlist.
If any search fails to find the target text, Designer notifies you with a message.
2.
Select the Direction for the search. Up searches from the cursor toward the front of the netlist,
wrapping from the front to the back if the text is not found. Down searches from the cursor
toward the back of the netlist, wrapping from back to front is the text is not found.
3.
4.
If any search fails to find the target text, Simplorer notifies you with a message.
2.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
3.
Select the Direction for the search. Up searches from the cursor toward the front of the netlist,
wrapping from the front to the back if the text is not found. Down searches from the cursor
toward the back of the netlist, wrapping from back to front is the text is not found.
4.
5.
To find and replace text item-by-item, click the Find Next button to start the search. When the
next instance of the search text is highlighted, click Replace to replace the search text with the
replacement text, or click Find Next again to leave the instance unchanged. Repeat this step
until all replacements have been made.
6.
To replace all instances of the search text with the replacement text globally, click the Replace
All button.
7.
When all replacements have been made, click the Cancel button to close the Replace dialog
box.
1.
The parenthesized display shows the range of available line numbers in the netlist that is
currently being edited.
2.
Enter the number of the line and click OK. The cursor moves to the beginning of that line.
Note
The Go To Line command and dialog box are also used by various other Simplorer text
editors such as the VHDL-AMS, Package, Script, C-Model, SPICE, Modelica, and SML
editors.
Click on Netlist in the top menu bar, and select Export. The Netlist Export dialog opens:
2.
In the Save in field, browse to the directory where the netlist file is to be saved,
Netlist Editor 12-83
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
3.
In the File name field, enter the complete name of the file, including the extension if any.
4.
Click Save to save the netlist file and close the dialog, or click Cancel to cancel the export
operation without saving anything.
Note
The above procedure can also be used to export a script composed in the Script Editor, in
which case the menu item and dialog names will be Script and Script Editor.
1.
2.
Check Display Line Numbers to display line numbers in the editing window.
Click the Bookmark button to open a Color selection dialog box in which you can select
a color for bookmarks.
The font panel displays the current font Name selection and font Size. Some non-editable
sample text displays the currently selected font and size. To change the font, select the
desired font name from the Name drop down list. To change the font point size, edit the
Size text field.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
13
ANSYS Workbench Integration
Overview
ANSYS Workbench combines the strength of its core product solvers with the project management
tools necessary to manage project workflow. In ANSYS Workbench, analyses are built as systems,
which can then be combined into a project. The project is driven by a schematic workflow that
manages the connections between the systems.
From the schematic, you can interact with applications (called workspaces) that are native to
ANSYS Workbench and that display within the ANSYS Workbench interface. Native workspaces
include: Project Schematic, Engineering Data, and Design Exploration (Parameters and Design
Points).
You can also launch applications that are data-integrated with ANSYS Workbench, meaning the
applications interface remains separate, but the data from the application communicates with the
native ANSYS Workbench data. Thus, data can be passed back and forth between any ANSYS
Electromagnetics product on a Workbench Project Schematic and any supported ANSYS or
ANSYS Electromagnetics desktop product. Depending on the application, data integration can
include basic actions such as saving projects, as well as more complex actions such as the coupling
of ANSYS Electromagnetics product variables to Workbench Design Exploration parameters.
Data-integrated applications include the following ANSYS Electromagnetics products: Designer
6.1 or later, HFSS 13.0 or later, Maxwell/RMxprt 14.0 or later, Q3D Extractor 10.0 or later, and
Simplorer 9.0 or later.
Note
For detailed information on working with ANSYS Workbench, please refer to the
Workbench documentation.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
If you have not already installed ANSYS 14.5, do so before proceeding. Refer to the ANSYS
documentation for instructions on installing the ANSYS 14.5 software.
2.
Launch Autorun.exe or Setup.exe for the ANSYS Electromagnetics product you wish to
install.
3.
4.
When the Integration with ANSYS 14.5 dialog displays, select the Yes radio button to have
the installer automatically integrate the ANSYS Electromagnetics product with ANSYS 14.5.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
5.
If you choose not to integrate the product with ANSYS 14.0 during installation, you can
perform this step after installation.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
In the Integration with ANSYS 14.5 dialog box, ensure that the Yes radio button is selected,
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
You can confirm that ANSYS 14.5 is aware of the ANSYS Electromagnetics integrated
applications via the ANSYS Workbench Options dialog, which shows the paths to the integrated
ANSYS Electromagnetics applications.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
as shown below.
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:
ANSYS Workbench Integration Overview 13-7
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Rmxprt 16.0, Designer 8.0, and Simplorer 11.0, appear on Workbench Project Schematics as
systems with two cells Setup and Solution. ANSYS Electromagnetics field products: HFSS
15.0, Maxwell 16.0, 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 14.5 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:
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 14.5 for these operations can be
found in the ANSYS 14.5 documentation and online help.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
or by selecting it from the context menu in the Workbench Project Schematic window:
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Parameters from the Ansoft project are exposed to Workbench through the DesignXplorer setup.
The ANSYS Electromagnetics systems cell status on the Workbench project is updated as changes
are made in the ANSYS Electromagnetics application desktop.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Scripting in Workbench
Scripts that include ANSYS Electromagnetics projects can be recorded and played back via
Workbench.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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 designs material to fix the problem.
HFSS Model
ANSYS Thermal
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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 motors stator and coils.
Maxwell 3D Model
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
on Workbench
You can setup links between ANSYS Electromagnetics field systems that reside on a Workbench
project schematic. Linking is setup in the ANSYS Electromagnetics application as shown in the
example below.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The User Defined Model (UDM) format makes it possible to exchange parameters.
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.
Pro/E Wildfire
UG NX
CATIA V5
SolidWorks
ANSYS Design Modeler (DM)
ANSYS SpaceClaim Direct Modeler (SCDM)
CAD software must be installed on user machine
Not required on solve nodes
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Platforms Supported
Windows 32 bit
Windows 64 bit
Linux is NOT supported but it is possible setup project on windows and use Linux nodes for
solves.
For example, in Workbench, a Pro/E Model can be linked to and HFSS design.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Through ANSYS Electromagnetics CAD Integration, the linked UDM includes the same
parameters.
Related Topics
Ansoft CAD Integration Through Workbench
Bi-Directional CAD Integration
CAD Integration Model Edits
Multiple Geometry Links for CAD Integration
CAD Integration Functionality
Healing with CAD Integration
Important Geometry Options for CAD Integration
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
For example, you make an edit in a CAD application and either run Refresh on an ANSYS
Electromagnetics design Geometry Cell or run Generate on the UDM in the ANSYS
Electromagnetics design window
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
ANSYS Electromagnetics CAD Integration Through Workbench
CAD Integration and Geometry Sharing
CAD Integration Model Edits
Multiple Geometry Links for CAD Integration
CAD Integration Functionality
Healing with CAD Integration
13-22 ANSYS Workbench Integration Overview
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Display Wireframe
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
For example, the following figure shows a DM Model, a Maxwell model, and ProE model linked to
HFSS in Workbench, and displayed in the HFSS History tree as three UDMs.
Related Topics
ANSYS Electromagnetics CAD Integration Through Workbench
CAD Integration and Geometry Sharing
Bi-Directional CAD Integration
CAD Integration Model Edits
CAD Integration Functionality
Healing with CAD Integration
Important Geometry Options for CAD Integration
DX analysis
WB Update Project
WB Update All Design Points
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Animation
Geometry
Field plots
Related Topics
ANSYS Electromagnetics CAD Integration Through Workbench
CAD Integration and Geometry Sharing
Bi-Directional CAD Integration
CAD Integration Model Edits
Multiple Geometry Links for CAD Integration
Healing with CAD Integration
Important Geometry Options for CAD Integration
The Healing options are: None, Auto and Manual. By default healing is off (None) and should be
turned on only if required.
Related Topics
ANSYS Electromagnetics CAD Integration Through Workbench
CAD Integration and Geometry Sharing
Bi-Directional CAD Integration
13-26 ANSYS Workbench Integration Overview
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Make sure parameters is checked and parameter key (filter) is appropriate to bring CAD
parameters.
The Mixed import resolution option is used to resolve parts with mixed dimension (typically
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
from Pro/E)
Refer to ANSYS Help for details: Path // CAD Integration // Overview :: 2 // Project Schematic
Presence Related to CAD Integration // Geometry Preferences
Related Topics
ANSYS Electromagnetics CAD Integration Through Workbench
CAD Integration and Geometry Sharing
Bi-Directional CAD Integration
CAD Integration Model Edits
Multiple Geometry Links for CAD Integration
CAD Integration Functionality
Healing with CAD Integration
UDM includes part attributes (like name, color etc) and material assignment
UDM can also have external coordinate systems and corresponding planes
UDM parts can be parameterized and manipulated in an ANSYS Electromagnetics modeler
just like any other part
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
In contrast to UDP:
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
UDM Properties have four tabs Definitions, Parameters, Options and Info
Option tab:
may have options if any
Related Topics
User Defined Model (UDM) for ANSYS WB Integration
Insert UDM Command on Draw Menu
UDM Properties
Library of Models for CAD Integration
ANSYS to Ansoft Geometry Transfer
CAD Integration Material Assignment Transfer
Geometry Transfer through ANSYS DesignModeler (DM)
CAD Integration Functionality
Related Topics
User Defined Model (UDM) for ANSYS WB Integration
UDM compared to User Defined Primitives
UDM Properties
Library of Models for CAD Integration
ANSYS to ANSYS Electromagnetics Geometry Transfer
CAD Integration Material Assignment Transfer
Geometry Transfer through ANSYS DesignModeler (DM)
ANSYS Workbench Integration Overview 13-31
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
UDM Properties
UDM Properties have four tabs Definitions, Parameters, Options and Info.
UDM name
Coordinate system used to position UDM
May have external reference to file
Option tab:
UDM Parameters
UDM Part Edits
Related Topics
User Defined Model (UDM) for ANSYS WB Integration
UDM compared to User Defined Primitives
Insert UDM Command on Draw Menu
Library of Models for CAD Integration
ANSYS to ANSYS Electromagnetics Geometry Transfer
CAD Integration Material Assignment Transfer
Geometry Transfer through ANSYS DesignModeler (DM)
CAD Integration Functionality
UDM Parameters
UDM geometry can be manipulated through its parameters
13-32 ANSYS Workbench Integration Overview
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
UDM shows a lightening bolt icon by the model name when parameters are edited.
You must run the Send Parameters and Generate command to synchronize parameters with
geometry
Related Topics
UDM Properties
UDM Part Edits
Operations will be part of history tree and retained during model refresh
Related Topics
UDM Properties
UDM Parameters
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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.
Desktop side:
UDM need not be deployed on each engine
Desktop will be busy during parametric analysis
Related Topics
User Defined Model (UDM) for ANSYS WB Integration
UDM compared to User Defined Primitives
Insert UDM Command on Draw Menu
UDM Properties
ANSYS to ANSYS Electromagnetics Geometry Transfer
CAD Integration Material Assignment Transfer
Geometry Transfer through ANSYS DesignModeler (DM)
CAD Integration Functionality
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The following figure shows how the information is transferred between simulators.
Geometry
ANSYS Electromagnetics lists and material assignment as Named Selection
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Material assignment
Dynamic because you can get updated geometry from ANSYS Electromagnetics
Associative because IDs persist between the ANSYS Electromagnetics model and the ANSYS
model during model refresh.
Boundary conditions in ANSYS are preserved.
Related Topics
User Defined Model (UDM) for ANSYS WB Integration
UDM compared to User Defined Primitives
Insert UDM Command on Draw Menu
UDM Properties
Library of Models for CAD Integration
CAD Integration Material Assignment Transfer
Geometry Transfer through ANSYS DesignModeler (DM)
CAD Integration Functionality
Engineering Data should have materials used in the ANSYS Electromagnetics model and
material names should match with case.
Material Properties in Geometry Options must be checked
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Related Topics
User Defined Model (UDM) for ANSYS WB Integration
UDM compared to User Defined Primitives
Insert UDM Command on Draw Menu
UDM Properties
Library of Models for CAD Integration
ANSYS to ANSYS Electromagnetics Geometry Transfer
Geometry Transfer through ANSYS DesignModeler (DM)
CAD Integration Functionality
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
In this case, the figure below shows how a chamfer operation on geometries is imported.
Related Topics
ANSYS Workbench Integration Overview 13-39
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Related Topics
User Defined Model (UDM) for ANSYS WB Integration
UDM compared to User Defined Primitives
Insert UDM Command on Draw Menu
UDM Properties
ANSYS Workbench Integration Overview 13-41
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
14
Analyzing Simplorer Designs
Simplorer enables you to set up and run analyses on the designs you construct in the Schematic
Editor directly from the Project Manager using the simulator engine in the background for running the analyses.
The simulator is the heart of the Simplorer system. Simulation models can be described using
SML (Simplorer Modeling Language), VHDL-AMS, SPICE, and C. The compiler, which automatically starts when you start the simulator, translates models into code the simulator can read.
At the beginning of each simulation (i.e., analysis), the simulator resolves name references of quantities used in different modules and simulators. The compiler recognizes only semantic and syntactic errors in the SML data stream. Except for the output of error messages, the compiler has no
contact with and the compile process cannot be affected by the user.
Schematic
Compiler
Syntax check of
model description
Simulator
Outputs
Link the
variables used
Simplorer uses the principle of simulator coupling. In simulator coupling, different single simulators are connected to solve tasks from several technical fields and to represent their interactions.
These different simulators exchange data during the simulation process, much as the real system
components would exchange energy and information in a real-time physical environment.
The simulator provides a variety of features, such as user-defined simulation precision, eventdriven modification of simulation parameters, and manual parameter modification during simulation.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Simulator Backplane
In Simplorer simulator coupling is achieved through a simulation backplane which is responsible
for controlling each of the sub-simulators. Sub-simulators communicate with each other through a
data bus.
Because certain basic knowledge about the simulation methods applied here is important for successful processing of a simulation task, below is a brief review of the fundamentals of Simplorer's
numerical algorithms and simulator coupling.
Although in reality all processes of a complex technical system run in parallel, in simulation a
sequential calculation of these processes must be done, because most readily available computers
have only one processor. Therefore, one must always keep in mind during modeling that all the
components of a modeled system are processed one after another.
Forward Euler
Backward Euler
Trapezoid
Using the current network solver method
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
For each block a certain sampling time can be defined by the user. Then the blocks are equidistantly
calculated only on these discrete times. The sampling time must be selected very carefully. There
may be dead time effects, especially in simulation models with different sampling times.
If no sampling time is specified, the block diagram module runs with the same (variable) time step
as the circuit simulator (quasi continuous case). In this case, make sure that the block diagram time
constants are larger than those in the electrical circuit model. If no sampling time is specified and
there is also no electrical circuit in the model, the block diagram module runs constantly with
HMAX.
The observance of block diagram simulator calculation times is guaranteed by the predictive time
step control of the time step manager.
10
U>=10
System
quantity
tx
t1=t0+h0
t3=t2+h2
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
VHDL-AMS Simulation
The VHDL-AMS simulator is a sub-simulator of the Simplorer system. It calculates simulation
models described in VHDL-AMS (Very high speed integrated circuit Hardware Description Language - Analog Mixed Signal). The SML compiler starts the VHDL-AMS simulator if VHDLAMS models are used in the simulation model.
Components for VHDL-AMS Simulation
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Simplorer Analyses
Before running analyses, you must specify the parameters that Simplorer will use for analyzing the
design. Analyses in Simplorer can be divided into two categories:
Standard Analysis Types single-run simulations for DC, Transient, and AC analyses. These
are provided by adding a Standard Analysis Setup and Solution Options to the design. When
added, these appear in the Program Manager project tree under Analysis.
Advanced Analysis Types multi-run simulations such as statistical analyses and optimization
analyses. These are provided by the various Optimetrics analysis setups.
TR (Transient) Analysis A Transient analysis computes the time-domain response of a circuit by numerically integrating a system of differential/algebraic equations. The equations are
derived from the circuit topology and from information provided by the circuit device models.
Transient analysis discretizes time and uses numerical integration methods (such as the trapezoidal rule) to solve the circuit equations at each time step.
AC Analysis AC Analysis is used to calculate the simulation model in the frequency
domain. First it performs a DC simulation to calculate operating point values and then an AC
simulation for a given frequency range.
Harmonic balance analyzes the periodic or quasi-periodic steady-state response of a circuit to a
periodic input by solving the circuit equations in the frequency domain. Time domain equations are represented by their Fourier series equivalents. In a one-tone or periodic analysis, the
input is a sine wave at a specified frequency, and the response is measured over a specified
range of harmonics of that frequency. In a multi-tone or quasi-periodic analysis, the input is a
combination of sine waves at different frequencies, and the response is a spectrum containing
the DC response, the harmonics of the input frequencies, and the sums and differences of the
harmonic frequencies.
DC Analysis DC Analysis is used to calculate the operating point for simulation models with
nonlinear components in the quiescent domain. The voltage and current information about the
operating point is saved to the .sdb file of the simulation model automatically. The voltage values for the computed operation point are automatically displayed on the sheet at the components.
DC analysis provides the DC operating point voltages and currents. In turn, the DC operating
point provides the initial values for DC sweep analysis, harmonic balance, and transient analyses. It also provides the large signal bias operating point for small signal AC analysis, noise
analysis, and linear network analysis.
Related Topics
Standard Analysis Setup Options
Analyzing Simplorer Designs 14-5
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Solution Options
Running Analyses
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Simulation parameters in the Transient Analysis Setup and Solution Options dialogs control the
simulation process. Parameter values used by the simulator during a simulation also provide information about the quality of a simulation result. Proper choice of values for simulation parameters is
very important for a fast and successful simulation. Simulation parameters also can be used in
equations and expressions.
The Transient Analysis Setup dialog box provides the following options:
Analysis Setup Name: the default name is TR. If you specify additional solution setups, the
default name increments by 1 (for example, TR1).
Analysis Control: includes values for End Time - Tend, Min Time Step - Hmin, and Max
Time Step - Hmax.
Checkboxes also allow you to Use Initial Values from a file, and to Disable This Analysis.
Enable continue to solve causes the simulation to pause at the currently set end time (Tend)
and to prompt you to set a new end time to continue the simulation. Refer to the Progress Bar
Menu help topic for additional information.
Note
If a simulation ends before the specified end time (Tend), the simulation does not pause
and the Progress bar closes normally.
Analysis Options: Clicking this button opens a Select Solution Options dialog box where you
can choose the solution option you intend to use for an analysis.
Related Topics
Adding a Transient Analysis
Guidelines for the Proper Choice of Time Step
Setting the Active Analysis Setup
Disabling/Enabling an Analysis Setup
Editing an Analysis Setup
Analyzing Simplorer Designs 14-7
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
What is the smallest time constant (min) of the electric circuit (R*C or L/R) or of the block
diagram (PTn-elements)?
What is the largest time constant (max) of the electric circuit (R*C or L/R) or of the block diagram (PTn-elements)?
Which is the smallest cycle (Tmin) of oscillations that can be expected (natural frequencies of
the system or oscillating time functions)?
Which is the largest cycle (Tmax) of oscillations that can be expected (natural frequencies of
the system or oscillating time functions)?
What is the smallest controller sampling (TSmin)?
What is the fastest transient occurrence (TUmin) (edge changes of time functions)?
What is the time interval to be simulated (Tend)?
Notes
1.
Select the smallest of each estimated maximum and minimum time step for
your simulation model.
2.
3.
In case of doubt, decrease the maximum and minimum step size by dividing
by 10, repeat the simulation and compare the results. If the second set of
results (with the step size decreased) shows conformity with the first results,
then the step sizes chosen for the first simulation were appropriate
(remember that smaller values increase the simulation time).
Right-click on Analysis in the Project tree and select Add Solution Setup>Transient from
the shortcut menu, or on the menu bar, click Simplorer Schematic>Add Solution
Setup>Transient.
The Transient Analysis Setup dialog box appears.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
A default name for the analysis appears in the Analysis Setup Name field.
The default name is TR. If you specify additional solution setups, the default name increments
by 1 (for example, TR1). If you want to change the name, do so by typing in the text field. The
name must begin with an alpha character and may contain only alpha, numeric, and underscore
characters.
3.
Hint
Refer to Guidelines for the Proper Choice of Time Step for help with these settings.
b.
Select units for each value from the drop down menus.
c.
Check Use Initial Values if you wish to load initial values from a file.
You can type the path and filename in the text box or click the button for a file Open
dialog box to locate and load the file.
d.
Check Enable continue to solve if you wish the simulator to pause after the currently set
end time. When you select Continue on the simulator progress bar menu, the Transient
Analysis Setup dialog box opens, prompting you to enter a new end time (Tend) with
which to continue the simulation. The new end time must be greater in value than the current end time. This process repeats until you manually stop the simulator. If you set Simulation Options to save the simulator state and/or the initial conditions, the corresponding
.krn and .aws files are also updated.
e.
Check Disable this analysis to exclude this analysis when analyses are run.
You can also control the analysis by right-clicking on its icon in the Project tree and
selecting Disable (or Enable) from the shortcut menu. The icon is gray when the analysis
is disabled.
4.
To choose solution options other than the default options, click the button to the right of Analysis Options to open the Select Solution Options dialog where you can choose the desired
solution option for this analysis. (The button name indicates the currently selected option.)
The Select Solution Options dialog box also allows you to add, edit, clone, and remove Solution Options.
5.
Related Topics
Monitoring and Controlling the Solution Process
Setting the Active Analysis Setup
Analyzing Simplorer Designs 14-9
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
AC Analysis Setup
AC analysis can be performed on the following components:
Passive Components
Electrical Sources (except for Fourier source)
Switches (except for controlled switches)
Semiconductor System Level
Semiconductor Device Level
SPICE compatible models
Transformers
Continuous Blocks
Discrete Blocks
Source Blocks
Signal Processing Blocks (except for MAX, MIN, MAXT, MINT, two-point element with
hysteresis)
Math Blocks
Measurement (Electrical domain)
Time Functions
Characteristics
Equations (except for DES solver)
C models with definition for DC and AC simulation.
Macros using appropriate models (internal components, C models)
Electrical Machines
State graph components
Signal characteristics
Physical Domain components
Digital components
Time Functions
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
Simulator Parameters
If models without DC and AC implementation are used in an AC simulation, an
error message appears.
The AC Simulator is used to calculate the simulation model in the frequency domain. The AC Simulator first performs a DC simulation to calculate operation point values and then an AC simulation
for a given frequency range. The voltage and current information for the DC simulation and the values for the AC simulation are saved in one .sdb file
The AC Analysis Setup dialog box provides the following options:
Analysis Setup Name: the default name is AC. If you specify additional solution setups, the
default name increments by 1 (for example, AC1).
Analysis Control: includes values for Start Frequency - FStart, Stop Frequency - FEnd,
Frequency time step or Points per decade - Fstep (depending on the AC sweep type - linear
or decadic). A checkbox also allows you to disable the analysis.
Enable continue to solve causes the simulation to pause at the currently set stop frequency
and to prompt you to set a new stop frequency (FEnd)to continue the simulation. Refer to the
Progress Bar Menu help topic for additional information.
Note
If a simulation ends before the specified stop frequency (FEnd) is reached, the
simulation does not pause and the Progress bar closes normally.
Analysis Options: Clicking this button opens a Select Solution Options dialog box where you
can choose the solution option you intend to use for an analysis.
Related Topics
Adding an AC Analysis
Setting the Active Analysis Setup
Disabling/Enabling an Analysis Setup
Editing an Analysis Setup
Copying and Pasting an Analysis Setup
Renaming an Analysis Setup
Deleting an Analysis Setup
Progress Bar Menu
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
If an AC simulation is started, the values for magnitude and phase, or real and imaginary part,
defined for electrical and block sources, are used to generate the sine wave.
The magnitude of AC parameters can be a numerical value, a variable (defined in an initial assignment condition or equation), or an expression. If you use an expression, only quantity types with
the attribute Out and standard functions can be used, for example R10.V*ABS(C1.V). In contrast to
the numerical value and the variable, expressions will be linearized in the operating point. Therefore, expressions also contain information about the current phase, whereas numerical values and
variables have no phase information.
The parameters: phase, real part, and imaginary part are common parameter types. You can use all
numerical values, variables, or expressions.
Adding an AC Analysis
1.
Right-click on Analysis in the Project tree and select Add Solution Setup>AC from the shortcut menu, or on the menu bar, click Simplorer Schematic>Add Solution Setup>AC.
The AC Analysis Setup dialog box appears.
2.
A default name for the analysis appears in the Analysis Setup Name field.
The default name is AC. If you specify additional solution setups, the default name increments
by 1 (for example, AC1). If you want to change the name, do so by typing in the text field. The
name must begin with an alpha character and may contain only alpha, numeric, and underscore
characters.
3.
b.
Select units for each value from the drop down menus.
c.
Check Enable continue to solve if you wish the simulator to pause after the currently set
stop frequency. When you select Continue on the simulator progress bar menu, the AC
Analysis Setup dialog box opens, prompting you to enter a new stop frequency (FEnd)
with which to continue the simulation. The new stop frequency must be greater in value
than the current stop frequency. This process repeats until you manually stop the simulator. If you set Simulation Options to save the simulator state and/or the initial conditions,
the corresponding .krn and .aws files are also updated.
d.
Check Disable this analysis to exclude this analysis when analyses are run.
You can also control the analysis by right-clicking on its icon in the Project tree and
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
selecting Disable (or Enable) from the shortcut menu. The icon is gray when the analysis
is disabled.
4.
To choose solution options other than the default options, click the button to the right of Analysis Options to open the Select Solution Options dialog box where you can choose the
desired solution option for this analysis. (The button name indicates the currently selected
option.)
The Select Solution Options dialog box also allows you to add, edit, clone, and remove Solution Options.
5.
Related Topics
Monitoring and Controlling the Solution Process
Setting the Active Analysis Setup
Disabling/Enabling an Analysis Setup
Editing an Analysis Setup
Copying and Pasting an Analysis Setup
Renaming an Analysis Setup
Deleting an Analysis Setup
Passive Components
Electrical Sources (except for Fourier source)
Switches (except for controlled switches)
Semiconductor System Level
Semiconductor Device Level
SPICE compatible models
Transformers
Continuous Blocks
Discrete Blocks
Source Blocks
Signal Processing Blocks (except for MAX, MIN, MAXT, MINT, two-point element with
hysteresis)
Math Blocks
Measurement (Electrical domain)
Time Functions
Analyzing Simplorer Designs 14-13
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Characteristics
Equations (except for DES solver)
C models with definition for DC and AC simulation.
Macros using appropriate models (internal components, C models)
Note
Electrical Machines
State graph components
Signal characteristics
Physical Domain components
Digital components
Time Functions
Simulator Parameters
If models without DC and AC implementation are used in a DC simulation, an error
message appears.
The DC Simulator is used to calculate the operating point for simulation models with nonlinear
components in the quiescent domain. Voltage and current information about the operating point is
saved to the .sdb file of the simulation model automatically. Voltage values for the computed operation point are automatically displayed on the sheet at the components.
The DC Analysis Setup dialog box provides the following options:
Analysis Setup Name: the default name is DC. If you specify additional solution setups, the
default name increments by 1 (for example, DC1).
Analysis Control: provides a checkbox that allows you to disable the analysis.
Analysis Options: Clicking this button opens a Select Solution Options dialog where you can
choose the solution option you intend to use for an analysis.
Related Topics
Adding a DC Analysis
Viewing DC Bias Values in a Schematic
Setting the Active Analysis Setup
Disabling/Enabling an Analysis Setup
Editing an Analysis Setup
Copying and Pasting an Analysis Setup
Renaming an Analysis Setup
Deleting an Analysis Setup
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Adding a DC Analysis
1.
Right-click on Analysis in the Project tree and select Add Solution Setup>DC from the shortcut menu, or on the menu bar, click Simplorer Schematic>Add Solution Setup>DC.
The DC Analysis Setup dialog box appears.
2.
A default name for the analysis appears in the Analysis Setup Name field.
The default name is DC. If you specify additional solution setups, the default name increments
by 1 (for example, DC1). If you want to change the name, do so by typing in the text field. The
name must begin with an alpha character and may contain only alpha, numeric, and underscore
characters.
3.
In the Analysis Control panel check Disable this analysis to exclude this analysis when analyses are run.
You can also control the analysis by right-clicking on its icon in the Project tree and selecting
Disable (or Enable) from the shortcut menu. The icon is gray when the analysis is disabled.
4.
To choose solution options other than the default options, click the button to the right of Analysis Options to open the Select Solution Options dialog box where you can choose the
desired solution option for this analysis. (The button name indicates the currently selected
option.)
The Select Solution Options dialog box also allows you to add, edit, clone, and remove Solution Options.
5.
Related Topics
Viewing DC Bias Values in a Schematic
Setting the Active Analysis Setup
Disabling/Enabling an Analysis Setup
Editing an Analysis Setup
Copying and Pasting an Analysis Setup
Renaming an Analysis Setup
Deleting an Analysis Setup
Show DC Bias
Update
Analyzing Simplorer Designs 14-15
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Display Options
Show DC Bias toggles visibility of existing data on and off. If there is no existing data, a simulation is run to create it. A checkmark appears next to the menu command to indicate that visibility
turned on.
Update causes a simulation to be run so that the data reflects the current design topology and settings. Update is disabled (dimmed) if DC Bias data is not visible.
Display Options opens the DC Display Options dialog box allowing display customization:
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The Use an existing setup checkbox allows the user to pick an existing DC setup, listed in the
Available DC Setups dropdown list. The checkbox and list are disabled if there are no existing DC
setups. If an existing setup is not chosen, a temporary setup that uses default values will be created
when needed.
In the Across Quantities panel, display of net across values can be toggled with the Show checkbox. Choosing All results in a value being shown for every conservative net. Choosing Selected for
Output results in display of the net across quantities selected in the Output Dialog.
Similarly, in the Through Quantities panel, display of component through values can be toggled
with the Show checkbox. Choosing All results in a value being shown for every component
instance. Choosing Selected for Output results in display of the component instance through
quantities selected in the Output Dialog.
The Manage Devices button allows appropriate 2-terminal devices to be chosen through the following dialog:
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Devices can be removed from the list by selecting them in the list, then clicking the
button.
Show quantities for current schematic only can be checked to limit the bias display to the current
schematic. If the box is unchecked, bias values are displayed for the current design and all its subdesigns. In a subdesign, display of bias values is based on a parent's simulation if the parent's
checkbox was unchecked and that bias display was most recently shown. To see values based on
simulation of the current subdesign, Simplorer Circuit/View DC Bias Values/Update can be
invoked.
Use the Across and Through panels to control the precision (number of decimal points) and color
used to display these values.
Use the Font panel to control the font used for the displayed values. Click the Select button to open
the Font dialog. Use the sliders to select the desired Font, Font style, and Size, then click OK to
return to the DC Display Options dialog.
Click Use Default to restore the default option values in the dialog. Click Set as default to make
the currently-set options the defaults.
Click OK to enable the specified options, or click Cancel to close the dialog without changing any
options.
Related Topics
Adding a DC Analysis
Setting the Active Analysis Setup
Disabling/Enabling an Analysis Setup
Setting the Outputs for Simulation
The list box displays the Solution Options currently defined for the project
New opens the Solution Options dialog box in which you can name and define a new set of
solution options. New options sets are added to the list of available selections.
Edit opens the selected solution options set in the Solution Options dialog box for editing.
Clone generates a copy of the selected solution options set.
Remove deletes the selected solution options set. A warning message displays if you attempt
to delete an option set that is in use.
To assign a solution options set for use with an analysis, select the desired options set form the list,
and then click OK.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
Click the setup name you wish make active and then click OK to confirm the choice and close
the dialog box.
Related Topics
Disabling/Enabling an Analysis Setup
Editing an Analysis Setup
Copying and Pasting an Analysis Setup
Renaming an Analysis Setup
Deleting an Analysis Setup
In the Project tree, right-click on the icon of the analysis setup you wish to disable (or enable).
2.
Related Topics
Setting the Active Analysis Setup
Editing an Analysis Setup
Copying and Pasting an Analysis Setup
Renaming an Analysis Setup
Deleting an Analysis Setup
In the Project tree, double-click on the icon of the analysis setup you wish to edit.
The appropriate Analysis Setup dialog box appears.
2.
3.
Note
You can also edit an analysis setup by selecting its icon in the Project tree, then editing
the settings in the Properties window Analysis Setup tab.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Related Topics
Setting the Active Analysis Setup
Disabling/Enabling an Analysis Setup
Copying and Pasting an Analysis Setup
Renaming an Analysis Setup
Deleting an Analysis Setup
In the Project tree, right-click on the icon of the analysis setup you wish to copy.
2.
Select Copy from the shortcut menu to copy the analysis setup.
3.
Right-click on the Analysis icon and select Paste to paste the copied setup.
Related Topics
Setting the Active Analysis Setup
Disabling/Enabling an Analysis Setup
Editing an Analysis Setup
Renaming an Analysis Setup
Deleting an Analysis Setup
In the Project tree, right-click on the icon of the analysis setup you wish to rename.
The name next to the icon becomes editable.
2.
3.
Related Topics
Setting the Active Analysis Setup
Disabling/Enabling an Analysis Setup
Editing an Analysis Setup
Copying and Pasting an Analysis Setup
Deleting an Analysis Setup
Deleting an analysis setup also deletes all plots that depend upon it.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
In the Project tree, right-click on the icon of the analysis setup you wish to delete.
2.
Select Delete from the shortcut menu to delete the analysis setup.
Related Topics
Setting the Active Analysis Setup
Disabling/Enabling an Analysis Setup
Editing an Analysis Setup
Copying and Pasting an Analysis Setup
Renaming an Analysis Setup
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Solution Options
The Solution Options dialog box allows you to set various parameters that control the analyses performed on your Simplorer designs.
The Solution Options dialog box includes the following tabs:
TR (Transient) Options
AC Options
DC Options
General Options
SML Header Options
TR (Transient) Options
Integration formula
Euler
Relative tolerance[%]
If enabled, the simulator uses the specified relative tolerance percentage along with the abso-
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
lute values (Maximum Current Error and Maximum Voltage Error) to determine acceptable error, and to determine convergence.
Note
Analog/Digital synchronization
Mixed-signal synchronization ensures timely exchange of values between the Analog and Digital sub-simulators when simulating systems with both Digital (VHDL) and Analog (VHDLAMS and SML) models or constructs. This simulation option controls the synchronization
strategy used. Although each of the strategies below will yield correct results, correctly selecting the best synchronization strategy for the system to be simulated, will yield the fastest simulation.
Hybrid
Adaptive
Conservative
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Samanskii factor
The Update Jacobian after ___ iterations setting is an optimization method where the simulator only re-evaluates the Jacobian Matrix after the specified number of iterations. Default is
one (1) which indicates that optimization is turned off. A value between 1 and 10 is allowed. In
case of systems requiring a very large number of iterations per time step for convergence, a
value greater than 1 can improve the performance of the simulator by avoiding Jacobian evaluations and matrix factorizations.
Note
A very high value may lead to non-convergence. Ideally use a value between
2 and 6.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
For additional information about the EDS interface and details about the settings refer to:
- Simplorer - ModelSim Co-simulation Interface User Guide
The default position has been determined empirically to be the most effective for the
largest variety of systems. In cases where the simulation fails to converge, or the initial
solution is incorrect or not found, changing the slider position may be helpful.
Systems with the following characteristics give better simulation results with partial pivoting:
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Complete Pivoting:
Systems with the following characteristics give better simulation results with complete pivoting:
Systems with very widely varying component values. For example, a system with some zerovalued resistances and some 10M Ohm resistances.
Related Topics
Adding Solution Options
Editing Solution Options
Copying and Pasting Solution Options
Renaming Solution Options
Deleting Solution Options
AC Options
Maximum number of iterations - Iteratmax
Maximum number of iterations for one simulation step. If convergence problems occur, the
calculation for the active simulation step will be stopped when the maximum value is reached
without consideration of other error limits. Default value is 40.
Related Topics
Adding Solution Options
Editing Solution Options
Copying and Pasting Solution Options
Renaming Solution Options
Deleting Solution Options
DC Options
Maximum number of iterations - Iteratmax
Maximum number of iterations for one simulation step. If convergence problems occur, the
calculation for the active simulation step will be stopped when the maximum value is reached
without consideration of other error limits. Default value is 50.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Use VHDL-AMS quiescent_domain - allows the user to switch between using VHDL-AMS
quiescent-domain equations for DC analyses (VHDL-AMS mode); or time domain equations
with 0 transients - i.e., steady state (Simplorer mode). Checked enables VHDL-AMS quiescent-domain usage.
Related Topics
Adding Solution Options
Editing Solution Options
Copying and Pasting Solution Options
Renaming Solution Options
Deleting Solution Options
General Options
Ambient Temperature (Cel) - Temp
Global ambient temperature for temperature dependent components. Default value is 27
degrees Celsius.
Damping Heuristics
Damping Heuristics settings provide one possible method for achieving convergence in cases of
convergence failure. They are especially useful for highly non-linear behavior such as that produced by exponential characteristics where the Newton-Raphson algorithm does not converge due
to large changes in the flow quantities (current, etc.) caused by changes in the node potentials. This
algorithm prevents divergence by limiting the allowed change in node potentials per Newton-Raphson iteration.
Limit node potential change per iteration if checked, the Node Potential Limiting
method is enabled.
Limit for initial simulation only if checked, limits node potential change for the first
step only (i.e., operating point analysis in case of TR analysis, and DC solution in case of
AC analysis)
Absolute limiting value and Relative limiting value used to calculate the acceptable
change per iteration. The acceptable change value is calculated as follows - ((Relative
limiting value)/100) * Current Potential Node Value + Absolute limiting value. Any
change greater than this in an iteration will be limited to this value. Units for the Absolute
limiting value are the same as the corresponding potential node units (V, m/sec, rad/sec,
Pascals, deg Centigrade, etc.).
Data Reduction
The following data reductions settings can be used to reduce the quantity of solution data that is
saved.
Start saving data at the time (or frequency for AC simulations) at which simulation results
data saving begins.
Analyzing Simplorer Designs 14-27
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
End saving data at the time (or frequency for AC simulations) at which simulation results
data saving ends.
Related Topics
Adding Solution Options
Editing Solution Options
Copying and Pasting Solution Options
Renaming Solution Options
Deleting Solution Options
Related Topics
Adding Solution Options
Simplorer Modeling Language
Right-click on Analysis in the Project tree and select Add Solution Options from the shortcut
menu.
The Solution Options dialog box appears with the TR tab selected.
2.
3.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
b.
4.
c.
d.
Under the General tab, specify the Ambient temperature (Cel) - Temp (default=27).
e.
Under the SML Header tab, you can provide SML text to be added at the beginning the
SML file generated by the schematic.
Related Topics
Editing Solution Options
Copying and Pasting Solution Options
Renaming Solution Options
Deleting Solution Options
In the Project tree, double-click on the icon of the solution option you wish to edit.
The Solution Options dialog box appears with the TR tab selected.
2.
3.
Related Topics
Adding Solution Options
Copying and Pasting Solution Options
Renaming Solution Options
Deleting Solution Options
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
In the Project tree, right-click on the icon of the solution option you wish to copy.
2.
Select Copy from the shortcut menu to copy the solution option.
3.
Right-click on the Analysis icon and select Paste to paste the copied solution option.
Related Topics
Adding Solution Options
Editing Solution Options
Renaming Solution Options
Deleting Solution Options
In the Project tree, right-click on the icon of the solution option you wish to rename.
The name next to the icon becomes editable.
2.
3.
Related Topics
Adding Solution Options
Editing Solution Options
Copying and Pasting Solution Options
Deleting Solution Options
In the Project tree, right-click on the icon of the solution option you wish to delete.
2.
Note
A warning message will display if the option is in use. If you choose to delete the in-use
option, the analysis that is using it reverts to using the default solution option settings.
Related Topics
Adding Solution Options
Editing Solution Options
Copying and Pasting Solution Options
Renaming Solution Options
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
3.
Locate the Simplorer solution .sdb file containing the solution data you want to import, and
click OK.
Expand Analysis in the Project tree.
Verify the presence of the imported solution.
Related Topics
Plotting Imported Solution Data
Importing a Solution Data File (non-.sdb format)
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
In the file browser window that appears, choose to import data from the following file types:
.mdx, .mda
.mdb
Microsoft Access
.xls
.txt
text file
.csv
Comma-separated value
.out
.cfg
.dat
TEK Oscilloscope
.tab
An Analysis Setup is created with the appropriate imported setup icon in the Project Manager.
Imported AC Setup
Imported TR Setup
The imported solution setup name is either TR_ or AC_ plus the base filename.
If the setup type is transient (TR); the Time channel is generated from the default transient
end-time (40ms) and the number of data elements per channel. If a specific Time channel
is present (either t in Simplorer 7 format or Time in later releases), then that will be
used.
Data is considered AC if the first channel is f; and subsequent pairs are enclosed in
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Data channels from the imported file are available for plotting.
Related Topics
Plotting Imported Solution Data
Importing Solution Data (.sdb format)
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Defined Output - This panel contains a list of the outputs defined for the current simulation. Each item listed includes the name of the item in the schematic and a period-delimited abbreviation for the output property defined as an output. For example, CD.V refers
to a component named CD and the V (for voltage) property for that component. You can
remove items from the list by selecting them and clicking the X icon. You can make
multiple selections by dragging the cursor. If the list exceeds the size of the window, a
scroll bar appears.
Find - For large schematics, it may be easier to search for defined outputs by name. The
Find function highlights items matching each successive number or letter you add in the
text box. Selection by wildcard is also supported. For example, type in a string like N*.V
in the Find edit control and click Add, and all the Net voltages are added.
Note
Outputs that are Boolean (enum-type) can only be plotted in digital plots or in data
tables.
Add/Remove - This panel contains hierarchical lists of the nets and elements of the
design, including submodel properties for VHDL-AMS, SPICE, and SML submodels.You
can specify the kinds of properties that appear in the list via check boxes to Show: Outputs (blue), Inputs (red), InOuts (brown), Subcircuits, and Derivatives. Displayed properties can include parameters, quantities (including those defined in VHDL-AMS
component architectures), and signals.
You can navigate the list hierarchy by clicking on the + to open the lists of nets or elements. Click the lower-level + to open lists of potential outputs. The Expand All and
Collapse All buttons can be used to expand (or collapse) all of the elements in the list tree.
Each potential output has a check box that you use to select it. Each potential output corresponds to a property available for that component or net.
The Element All and Element None buttons can be used to select and add (or remove) all
Defined Outputs for the element or net currently selected in the list.
The Add button adds all elements that match the current description, entered in the text
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
After making your selections use the OK button to accept the defined outputs or Cancel to
close the dialog without accepting the changes.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
15
Running Simulations
After you specify how Simplorer is to compute the solution(s), you can 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 Project>Analyze All command applies to all enabled setups at or below the level invoked in the Project tree.
Related Topics
Analyzing Simplorer Designs
Solving a Single Setup
Running More Than One Simulation
Specifying the Analysis Options
Remote Analysis
Monitoring and Controlling the Solution Process
Aborting Analyses
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Right-click a solution setup in the project tree. Standard Analysis setups can be either transient,
AC, or DC. Optimetrics setups can be either parametric, optimization, sensitivity, or statistical.
2.
On the context menu, click Analyze. (You can also press F12 to start an analysis.)
Simplorer first compiles a netlist for the project, then computes the solution(s).
Warning
Note
Improper or undefined simulation setups will cause errors during Optimetrics Analysis.
To verify the analysis setups, click Analysis>Analyze in the Project Manager window to
analyze the nominal circuit and review the messages in the Simplorer message manager
window prior to running the Parametric Analysis.
To solve two or more sweeps or two or more parametric analyses under a setup:
1.
Configure two or more machines for a distributed analysis. See Solving Remotely for configuration issues, and Configuring Distributed Analysis for setting up the Simplorer General
Options.
2.
In the project tree, under the design you want to solve, right-click the setup icon that includes
the sweeps of interest.
3.
Related Topics
Analyzing Simplorer Designs
Running More Than One Simulation
Specifying the Analysis Options
Simplorer Options: Simulation Options Tab
Remote Analysis
Monitoring and Controlling the Solution Process
Aborting Analyses
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Either click Project>Analyze All or right-click the project icon in the project tree and select
Analyze All.
Each solution setup is solved in the order it appears in the project tree.
Related Topics
Analyzing Simplorer Designs
Solving a Single Setup
Specifying the Analysis Options
Simplorer Options: Simulation Options Tab
Remote Analysis
Monitoring and Controlling the Solution Process
Aborting Analyses
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
3.
Select the Prompt for analysis machine when launching analysis check box.
4.
Under Analysis Machine Options, select whether the default analysis machine should be the
local machine (Local), a remote machine (Remote), or whether analysis should be distributed
across multiple machines (Distributed).
a.
If you selected Remote, enter the default analysis machine information either as an IP
address, a DNS name, or a UNC name. See Remote Analysis.
b.
If you selected Distributed, you can add machines to a list, or edit an existing list of
machines. Select the Edit button to display the Distributed Analysis Machines dialogue.
Here you specify an IP address, a DNS name, or a UNC name for each machine to add to
the list. Control buttons let you Add Machine to List or Remove machines from the list.
For more information, see distributed analysis.
When the distributed option is set, Simplorer uses machines from the distributed list even
for non-distributed solves. In that case, for multiple non-distributed solves, the simulator
uses machines one at a time from the Machines for Distributed Analysis list, starting
from the first machine and moving down. To control the list order, select one or more
machines, and use the Move up or Move down buttons. Click OK to accept the changes
and close the Distributed Analysis Machines dialog. The machines are listed in the
Analysis Machines Options field in alphabetical order, rather than the distributed list
order.
Regardless of the machine(s) on which the analysis is actually run, the number of processors and Desired RAM Limit settings, and the default process priority settings are read
from the machine from which you launch the analysis.
You can also control these selections via toolbar icons for:
Local
Remote
,
, and
Distributed
5.
Select the Send analysis request as: radio button to specify either the Current User (the
default) or the Specified User.
6.
Enter details for the user who would be running the simulations. You need to specify the User
Name, Password and the Domain/Workgroup information.
7.
Select the Queue all simulations check box to allow subsequent simulations to wait in a
queue, till the currently running simulation solves completely.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
8.
Click OK.
Note
The Simplorer Server Setup window does not appear when the Queue all simulations
check box is selected, even if you select the Prompt for analysis machine when
launching analysis check box. This happens because Simplorer does not queue
simulations that will be running on different machines, since they can run concurrently.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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.
Local Machine
Remote Machine
2.
3.
4.
Troubleshooting
The Tools>Options>Export Options Files command writes xml files containing the Options settings at all levels to the specified directory (default, ~\Documents\Ansoft\). 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.
Related Topics:
General Options: Analysis Options Tab
Distributed Analysis
Prerequisites for Remote and Distributed Analysis
1.
You must have Ansofts Remote Simulation Manager (RSM) or a supported High Performance Computing (HPC) management software program. (See High Performance Computing
(HPC) Integration). The list of currently-supported HPC software includes
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Altairs PBS
Sun GridEngine
Microsoft Windows Compute Cluster Server 2003
Microsoft Windows HPC Server 2008
2.
Simplorer 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 Simplorer
engines must be registered with each initialization of RSM. To do this, on each remote
machine:
On Linux, run RegisterEnginesWithRSM.pl, located in the product installation directory. (for example, /apps/AnsysEM/maxwell16.0/RegisterEnginesWithRSM.pl).
If the RSM service cannot run due to permission issues for the configuration file, it issues an error
message and exits. If your product is not registered with RSM, the analysis will run locally.
Configuring the Local Machine to Solve Remotely
1.
2.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
3.
Distributed: This option allows you to specify a machine list. See Configuring Distributed Analysis
To override the machine that you use on a per analysis basis, check Prompt for analysis
machine when launching analysis.
Checking this selection displays the following dialog when you run a simulation.
Select either the Local machine, or specify a machine name. You can Save Settings as
Default.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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.
Running Remote Analysis
When you run a simulation remotely, you should see a message in the Progress window identifying
the design name, and the specified remote machine. You will see Progress messages as the simulations continues. When the simulation is complete, you will see a message in the Message window.
Related Topics:
General Options: Analysis Options Tab
Distributed Analysis
Troubleshooting
Determining the Desired Configuration
Troubleshooting
Problem: When you try to solve from local to remote machine, a SIMPLORERLCOMENGINE
process starts on the remote machine, but the Simplorer user interface hangs indefinitely.
This occurs if the remote solve option is enabled after the COM daemon is started, or when 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:
Running Simulations 15-9
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
[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.
Remote Solve Node = Windows
Error: "Unable to locate or start COM engine on <remote node> : Unable to reach AnsoftRSMService. Check if the service is running and if the firewall allows communication."
1.
Try disabling the firewall. If this fixes the problem, please contact at hfqa@ansoft.com
2.
Confirm that you have not changed the Ansoft Service Port in Tools > Options > General
Options > Remote Analysis Options from the default 32958. If you have, change it back to
32958, restart Simplorer, and try to solve again.
3.
Make sure that the local machine is able to contact the RSM port on the remote node. Open a
command prompt on the local machine and type telnet <remote node name> 32958. If the terminal appears to be hanging then the connection was successful.
4.
Check to make sure the Ansoft Communication Service is running. To do this, go to the Windows Control Panel and choose Administrative Tools > Services. Find the Ansoft RSM Service and make sure its status says Started. If it is not running, try to start it by right-clicking on
the service and choosing Start. If it still does not start, then check the username/password combination listed in the Log On tab of the service properties.
5.
6.
Make sure the COM engine is registered with the Ansoft RSM Service. From the Windows
menu, choose Start>All Programs >ANSYS Electromagnetics>Simplorer 11.0>Register
with RSM to register the engines.
Error: "Unable to locate or start COM engine on <remote node>: Engine is not registered with the
Ansoft RSM service which is running on this machine."
a.
To register the engine, from the Windows menu, select Start >All Programs >ANSYS
Electromagnetics> Simplorer 11.0>Windows>Register with RSM
b.
To register the engine on 64-bit versions, from the Windows menu, select Start >All Programs >ANSYS Electromagnetics> Simplorer 11.0> Register with RSM
Try disabling the firewall. If this fixes the problem, please contact at hfqa@ansoft.com
2.
Confirm that you have not changed the Ansoft Service Port in Tools >Options >General
Options >Remote Analysis Options from the default 32958. If you have, change it back to
32958, restart the Ansoft product, and try to solve again.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
3.
4.
5.
Make sure that the local machine is able to contact the RSM port on the remote node. Open a
command prompt on the local machine and type telnet <remote node name> 32958. If the terminal appears to be hanging then the connection was successful.
Check to make sure Remote Simulation Manager is running. To do this:
a.
Go to the 'rsm' subdirectory of the Ansoft Remote Simulation Manager installation directory, <RSM installdir>/rsm.
b.
c.
If the status query indicates that the service is stopped, type ./ansoftrsmservice start.
Make sure the COM engine is registered with RSM. Type ./RegisterEnginesWithRSM.pl status from within the product installation directory. If the status query indicates "Not registered",
type:
./RegisterEnginesWithRSM.pl add.
Error: "Unable to locate or start COM engine on <remote node>: Engine is not registered with the
Ansoft RSM service which is running on this machine."
1.
To register the engine, go to the Ansoft product installation directory and type:
./RegisterEnginesWithRSM.pl add.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Advantages
Disadvantages
a) Only the remote process user a) The license log file will show
must be configured on the
that the remote process user
remote machine.
checked out the license,
b) Local analyses on the remote regardless of the local machine
user.
machine continue to work as
Related Topics:
15-12 Running Simulations
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Local User
Local Machine
Remote Machine
Launching User
1.
Local User: The user who starts the software on the Local Machine.
2.
Launching User: The user who sends analysis requests from the Local Machine to the remote
machines.
3.
Remote Process User: The user who owns the analysis processes on the remote machines.
Note
The Local User and Launching User must be known accounts on the Local
Machine.
The Local User, Launching User, and Remote Process User must be known
accounts on the Remote Machine.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
For security reasons, the remote process user account should not be associated with any
person.
1.
2.
Launching User: Same as the remote process user. In the Analysis Options dialog box of the
product being configured on the Local Machine, the Specified User option is selected, and the
remote process user name/password information is entered.
3.
Remote Process User: Set to The launching user on the Identity tab of the remote machine
DCOM configuration.
Note
If any local or remote machines are Unix-based, this configuration cannot be used.
Example:
Specified User
(common-user)
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
For security reasons, the remote process user account should not be associated with any
person.
1.
2.
Launching User: Same as the Local User. In the Analysis Options dialog box of the product
being configured on the Local Machine, the Current User option is selected.
3.
Remote Process User: Set to This User on the Identity tab of the remote machine DCOM
configuration.
Example:
Current User
(judy)
2.
Launching User: Same as the Local User. In the Analysis Options dialog box of the product
being configured on the Local Machine, the Current User option is selected.
3.
Remote Process User: Set to The launching user on the Identity tab of the remote machine
DCOM configuration.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Example:
Current User
(judy)
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
3.
4.
5.
6.
7.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Log in as an administrator to the machine on which you want to analyze the remote
machine.
2.
Install the version-specific software that you will use to analyze designs.
Log in as an administrator to the machine on which you want to analyze the remote
machine.
2.
Click Start>Run.
The Run dialog box appears.
3.
4.
Note
Under Console Root>Component Services>Computers, right-click My Computer, and then click Properties.
The My Computer Properties dialog box appears.
b.
Under the Default Properties tab, make sure the Enable Distributed COM on
this computer check box is checked.
c.
Under the COM Security tab, verify that the following minimum permissions
are included if you do not wish to restrict security permissions: You need not
remove any pre-existing permissions.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
d.
5.
2.
3.
4.
5.
Click OK to accept the changes and close the My Computer Properties dialog
box.
Under Console Root>Component Services>Computers>My Computer>DCOM Config, verify that the version-specific COM engine that will be
used to analyze remotely is listed. (For instance, if you are configuring Simplorer
8, look for SimplorerEngineV8 Class.) If the desired Simplorer Engine class is
not listed, you need to re-register the corresponding SimplorerComEngine. Once
the correct class is listed, right-click it, and select Properties.
The SimplorerEngineV8 Class Properties dialog box appears.
Running Simulations 15-19
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
b.
Under the General tab, make note of the Local Path to the COM engine you are
configuring for remote analysis.
c.
Under the Location tab, verify that the Run application on this computer
check box is checked.
d.
Under the Identity tab, select the user who will serve as the Remote Process
User:
The user specified as the Remote Process User must exist on the remote machine and can
not be a guest. (If you have specified The launching user, then any users acting as the
launching user must exist.) This is necessary because the Remote Process Users registry
settings may be deleted when he/she logs off the computer.
To check if a user exists on the remote machine:
1.
2.
3.
Make sure that the user specified as the Remote Process User is listed. If not,
you will need to add him/her as a user, and grant access other than Guest
access.
4.
Verify that the Remote Process User has access other than Guest access. If the
group is Guests, you need to change it to another group.
e.
If you would like the Launching User to serve also as the Remote Process
User (e.g. Common Configurations 1 and 3), select The launching user.
If you have chosen a particular user, select the This User option (e.g. Common Configuration 2), and enter the name of the user and the password.
Under the Security tab, verify that the following minimum permissions are
included if you do not wish to restrict security permissions: You need not remove
any pre-existing permissions.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
3.
Note
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
3.
f.
6.
Click OK to apply all of the changes to the product and version-specific Distributed COM configuration.
Click OK to apply all of the changes to the product and version-specific Distributed
COM configuration.
Note
1.
Log in as an administrator to the machine on which you want to analyze the remote
machine.
2.
Click Start>Run.
The Run dialog box appears.
3.
4.
5.
Verify that Everyone is listed among those users who are allowed to restore files and
directories.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
2.
3.
4.
5.
6.
7.
8.
If you made any changes to the Restore files and directories setting, you need to
reboot the machine.
Log in as an administrator to the machine on which you want to analyze the remote
machine.
2.
Click Start>Settings>Control Panel (or Start>Control Panel, depending on your Windows display settings).
The Control Panel window appears.
3.
4.
5.
6.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
b.
Click the Browse button. Browse to or type the path to the COM engine.
c.
Choose Change Scope..., and select which machines should be able to contact this
program on this machine.
d.
7.
If you wish to restrict the machines that can run this program, choose either My
network (subnet) only (should work with most networks) or Custom list.
If you do not wish to restrict the machines that can run this program, choose Any
computer (including those on the Internet). Be aware that this will allow any
machine, even those outside of your subnet, to communicate with this program
on this machine.
b.
For the Name, enter descriptive text to identify this exception (e.g. RPC End Point
Mapping).
c.
d.
Select TCP.
e.
Choose Change Scope..., and select which machines should be able to contact this
machine via this port.
f.
If you wish to restrict the machines for which this port is unblocked, choose
either My network (subnet) only (should work with most networks) or Custom
list.
If you do not wish to restrict the machines for which this port is unblocked,
choose Any computer (including those on the Internet). Be aware that this will
allow any machine, even those outside of your subnet, to communicate with this
machine via this port.
8.
9.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
User must have the product- and version-specific settings configured for remote analysis to
work successfully as a given Remote Process User.
Note
Start the product- and version-specific software configured as the Remote Process User.
2.
3.
4.
In the field corresponding to the Temp Directory, select a path to the Temporary File
Directory you want to use.
5.
6.
Configure any other settings you want to use when analyzing on the remote machine as
this Remote Process User (e.g. the number of processors).
Log in as an administrator to the machine on which you want to analyze the remote
machine.
2.
Edit the permissions for both the Temporary File Directory (configured above) and the
directory in which the COM engine is located. The path to the COM engine was determined during the Configure Distributed COM for Remote Machine step above. To edit the
permissions of a particular directory, do the following:
a.
In Windows Explorer, right-click the directory you are configuring, and click Properties.
b.
Click the Security tab. If it is not shown, then you may not be using the NTFS file
system. You may be able to skip the following steps for this directory.
c.
If the Everyone system identity is not listed among the users, click Add, and enter the
name of the user you want to add.
Note
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
d.
If the Remote Process User is not listed among the users, click Add, and enter the
name of the user you want to add.
e.
Add the necessary permissions to the directory. The Temporary File Directory
requires read, write, and delete permissions, and the directory in which the COM
engine is located requires read and execute permissions.
Next Step: Analyze a Test Design as a Remote User on the Remote Machine
2.
3.
4.
Log in as an administrator on the machine on which you want to set up project the local
machine.
2.
Install the version-specific software that you installed on the remote machine.
Log in as an administrator to the machine on which you want to set up projects the
local machine.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
3.
4.
b.
Under the Default Properties tab, make sure the Enable Distributed COM on this
computer check box is checked.
c.
Under the Default Properties tab, make sure the Default Authentication Level
according to the following table:
Network Configuration
Windows Domain
Connect
Connect
(if the Windows and Unix machines used for remote solve
have identical login/passwords configured)
Workgroup
None
d.
Under the COM Security tab, verify that the following permissions are included if
you do not wish to restrict security permissions: You need not remove any pre-existing permissions.
For Access Permissions, the Edit Default button:
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
2.
3.
4.
5.
5.
6.
7.
Reboot the machine if any changes were made during this process.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Firewall was automatically installed and enabled. You will need to add the runtime application and
TCP port 135 to the list of exceptions.
To add the runtime application and TCP port 135 to the list of exceptions:
1.
Click Start>Settings>Control Panel (or Start>Control Panel, depending on your Windows display settings).
The Control Panel window appears.
2.
3.
4.
5.
b.
If the installed application is listed (e.g., Simplorer 8), select the program from the
list. Otherwise, click the Browse button, and browse to the location of the application.
c.
Choose Change Scope..., and select which machines should be able to contact this
program on this machine.
d.
6.
If you wish to restrict the machines that can run this program, choose either My
network (subnet) only (should work with most networks) or Custom list.
If you do not wish to restrict the machines that can run this program, choose Any
computer (including those on the Internet). Be aware that this will allow any
machine, even those outside of your subnet, to communicate with this program
on this machine.
b.
For the Name, enter descriptive text to identify this exception (e.g. RPC End Point
Mapping).
c.
d.
Select TCP.
e.
Choose Change Scope..., and select which machines should be able to contact this
machine via this port.
If you wish to restrict the machines for which this port is unblocked, choose
either My network (subnet) only (should work with most networks) or Custom
list.
If you do not wish to restrict the machines for which this port is unblocked,
choose Any computer (including those on the Internet). Be aware that this will
allow any machine, even those outside of your subnet, to communicate with this
machine via this port.
Running Simulations 15-29
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
f.
7.
8.
2.
3.
4.
Under Design Analysis Options, do one or more of the following to configure the remote
analysis settings on a per-design basis:
5.
Note
a.
If you would like to select the machine to which to send the analysis immediately
before analyzing, select Prompt for analysis machine when launching analysis.
b.
Under Analysis Machine Options, select whether the default analysis machine
should be the local machine (Local) or a remote machine (Remote).
c.
If you selected Remote, enter the machine information either as an IP address, a DNS
name, or a UNC name.
Under Remote Analysis Options, select the user who should be the Launching User
from Send analysis request as:
a.
If the Local User will also be the Launching User, select Current User.
b.
If you want to specify a particular Launching User, select Specified User, and enter
the user name, password, and domain/workgroup credentials for the Launching
User. These are verified only when analyzing.
6.
7.
8.
9.
If the Server Setup dialog appears, select the machine on which you want to run the analysis, and click OK.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
If it runs successfully, this configuration is complete. Otherwise, review the Troubleshooting section to resolve the problem.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Troubleshooting
Issue
The following error appears when I try
to analyze my design after a long
hang:
Unable to locate or start COM engine
on machine_name. Error: The RPC
server is unavailable.
Solution
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The following error appears when I try Check the following on the remote machine:
to analyze my design:
If the OS on the remote machine is Windows XP
Unable to locate or start COM engine
Service Pack 2 or higher, Windows XP x64
on machine_name. Error: Access is
Professional, or Windows Server 2003 Service Pack
denied.
1 or higher:
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
(continued)
If the above has all been verified, reboot the local and
remote machines to refresh cached settings.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The following error appears when I try This message appears if the COM engine is missing on
to analyze my design:
the remote machine, or if the user does not have execute
Unable to locate or start COM engine permissions on the COM engine.
on machine_name. Error: Class not
registered.
The following error appears when I try If the OS on the remote machine is Windows XP Service
to analyze my design:
Pack 2 or higher, Windows XP x64 Professional, or
Unable to locate or start COM engine Windows Server 2003 Service Pack 1 or higher:
on machine_name. Error: Server
execution failed.
The following error appears when I try The user listed as this user on the remote machines
to analyze my design:
DCOM configuration has the wrong password entered.
Unable to locate or start COM engine To correct the problem, enter the correct password for the
on machine_name. Error: The server user listed as this user.
process could not be started because
the configured identity is incorrect.
Check the user name and password.
The following errors appear
immediately when I try to analyze my
design:
Failed to check out license
simplorer_solve. Bad encryption
handshake with vendor daemon
(FLEXlm Error -33).
The following error appears
immediately when I try to analyze my
design:
Unable to load into the registry the You must add the user on to the remote machine, log into
profile for the user username.
the remote machine as that user, and run the software one
Simulation completed with execution time to configure the runtime settings for that user.
error on server: machine_name.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Unable to create simulation working You must add the user on to the remote machine, log into
directory within temp dir: temporary the remote machine as that user, and run the software one
directory - simulating on machine_
time to configure the runtime settings for that user.
name. Simulation completed with
execution error on server machinename.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
If the above has all been verified, reboot the local and
remote machines to refresh cached settings.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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.
Simplorer supports two forms of distributed analysis:
Related Topics
Configuring Distributed Analysis
Editing Distributed Machine Configurations
Selecting and Optimal Configuration for Distributed Analysis
Create an new distributed machine configuration, or edit an existing one, see Editing Distributed Machine Configurations.
2.
3.
Select the Analysis Options tab, and under the Analysis Machine Options, click the Distributed radio button.
This displays the field for selecting configurations. If no list has been selected or created, the
field is blank. If you have previously created distributed machine configurations, click the field
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
When you have made a selection, the lower field shows the enab led machines in the configuration.
4.
Related Topics
Editing Distributed Machine Configurations
Selecting an Optimal Configuration for Distributed Analysis
The Tools>Options>Export Options Files command writes xml files containing the Options settings at all levels to the specified directory (default, ~\Documents\Ansoft\). The
Tools>Options>Export Options feature is intended to make it easier for different users to use
Ansoft tools installed on shared directories or network drives. The Example Uses for Export
Options Features section outlines some use cases enabled by this feature.
Click Tools>General Options to display the General Options dialog and select the Analysis
Options tab.
2.
Select the Analysis Options tab, and under the Analysis Machine Options, click the Distributed radio button.
This changes the display on the Analysis Machine Options tab to show the panels for viewing
and editing distributed machine configurations.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
3.
This displays the Distibuted Machines Configurations dialog. This lists existing configurations, and shows all machines in the selected configuration, enabled or not. Here you can Add
a new configuration, Edit an existing configuration, Delete a selected configuration, or Clone
an existing configuration, typically to edit the name and contents for other purposes.
4.
5.
Specify the name of the configuration. It cannot be empty and cannot be a previously used
name or a reserved word.
6.
For each machine to manually add to the list, under Remote Machine details, specify an IP
address, a DNS name, or a UNC name. You can also use Import Machines from File... to use
a text file to simplify the process.
Control buttons let you Add machine to list (see figure above) or Remove (see figure below)
machines from the list.
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
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
In general, Simplorer uses machines in the distributed analysis machines list in the order in
which they appear. If Distributed is selected and you launch multiple analyses from the same
UI, Simplorer select 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, Simplorer chooses the first machine in the list.
If another simulation is launched while the previous one is running, and this simulation
requires two machines, Simplorer chooses machines 2 and 3 from the list. If the first simulation then terminates and we launch another simulation requiring three machines, Simplorer
chooses 1, 4, and 2 (in that order).
The displayed list always 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. Also, when you select one or more machine names, you will see a
text field underneath the grid control showing the first machine name, the number of times it
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
7.
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
Ansoft 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 OK to 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.
8.
Click OK to accept the changes and close the Distributed Analysis Machines dialog. Only
machines checked as Enabled appear on the distributed machines list in the Analysis tab.
Regardless of the machine(s) on which the analysis is actually run, the number of processors
and Desired RAM Limit settings, and the default process priority settings are now read from
the machine from which you launch the analysis.
For more information, see distributed analysis.
Once configured, you can also control these selections via toolbar icons for:
Note
The option is only active if there are multiple rows listed in the parametric table, there
are multiple frequency sweeps listed under a given analysis setup, and the number of
distributed analysis machines is two or greater.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Related Topics
Related Topics
Configuring Distributed Analysis
Editing Distributed Machine Configurations
Selecting an Optimal Configuration for Distributed Analysis
General Options: Analysis Options Tab
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Alternatively you can right-click Results in the Project tree and select Solution Profile; or
click on the Show Profile
toolbar button.
The Simulation drop-down menu allows you to filter the profiles shown by analysis
type.
Profile data shown includes the starting time and date of the simulation run, the
machine name on which the simulation was run, the Simplorer version used for the
simulation, the elapsed time for the simulation, the amount of memory used by the
SimplorerServer process, the simulation completion time and date, and the status of
the run (e.g., Normal Completion). The profile will be cleared automatically when the
solution is invalidated.
2.
Optionally, click the Export button to export the profile data to a .prof file.
3.
Select the Runtime Simulation Monitor tab to monitor simulation progress in real time. This
panel can remain open while you run an analysis. It displays various simulation parameters
depending on the analysis type.
For transient simulations, Current time, End time, and min, max, and current Time step
values are displayed.
For AC simulations, Current and End frequency are displayed.
A graphical representation of the simulation iterations and Time Step (transient only) is also
shown.
To monitor the status of the solutions:
1.
Right-click the Results icon in the Project tree and select Browse Solutions.
The Solutions dialog box appears with two tabs, Statistics and Browse.
2.
Click the Browse tab to display data about the passes completed.
The left panel contains a tree structure showing the solutions listed according to Setup, Solution, and Variation (if any). A table in the right panel lists the Setup, the Solution, the swept
variable (if any), and the State of the solution.
a.
The Optimetrics Setup drop-down menu allows you to select the Optimetrics setup
whose solution data will be displayed. Choose None to display data for standard analyses
(Transient, AC, or DC).
Running Simulations 15-45
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
3.
b.
Use the Properties button to display a dialog box that lets you change the way the Setup,
Solution, and Variation are listed in the tree structure.
c.
You can delete solutions by selecting them from the table entries and clicking Delete. Use
Ctrl-click to select multiple solutions, or Shift-click to select a range of solutions. You can
also select all solutions for deletion using the Select All button. When you delete a variation belonging to None, only that variations solution file on disk is deleted. When a variation that is part of an Optimetrics analysis is deleted, the .sdb file containing all the
variations corresponding to that Optimetrics solution will be deleted.
Click the Statistics tab of the Solutions dialog box to display file and path information, as well
as file format, number of files, and file size.
Related Topics
Simplorer Simulation toolbar
Progress Bar Menu
Monitoring Solution Progress
Modifying Parameters During a Simulation
Active setup - drop-down menu allows you to choose the standard setup that is to be active for
the simulation.
Edit setup
- opens the setup dialog box for the currently selected standard setup.
Simulate Setup
Show Profile
- opens the Solutions dialog box with the Profile tab selected and the
current/appropriate Simulation Analysis Setup chosen.
Note
Right-clicking Results in the Project tree and selecting Solution Profile also opens the
Solutions dialog box.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
If you abort the solution in the middle of an adaptive pass, the data for that pass or
current frequency point is deleted. Any solutions that were completed prior to the
one that was aborted are still available.
The solutions that are available depend on when you abort the analysis. For
example, if you stopped the solution while a post-processing macro was executing,
the field solution computed for that setup is still available.
To stop a simulation cleanly between time steps, right-click in the Progress bar, and select
Clean Stop.
Simplorer ends the analysis after the next solved pass or frequency point.
Note
If, for example, you request a clean stop between the third and fourth adaptive pass, the
solutions for the third and fourth pass will be available.
While the simulation is paused, you can update reports with the SDB data current at the
time the simulation was paused. You can also selectively Modify Parameters if desired
before resuming the simulation.
If a simulation ends before the currently set end time (transient analysis) or stop
frequency (AC analysis) is reached, the simulation does not pause and the Progress bar
closes normally.
To continue the simulation, right-click in the Progress bar, and select Continue. The transient
or AC analysis setup dialog box opens in which you can set a new, larger-value end time or
stop frequency to continue the simulation. Otherwise, choose Stop to end the simulation and
close the Progress bar.
If you delete either the Transient Analysis Setup or AC Analysis Setup and attempt to Continue simulation, a dialog box informs you of this fact and asks if you want to stop the simulation. Choose Yes to stop the simulation and close the Progress bar. Choosing No allows you to
undo the deletion of the setup and Continue the simulation.
To modify various simulation and model parameters during a simulation, right-click in the
Progress bar, and select Change quantity values.
Simplorer pauses the simulator and opens the Set Assignments dialog box in which you can
Modify Parameters.
To open the Solutions dialog box with the Profile tab selected and the current/appropriate
Simulation Analysis Setup chosen, select Profile... on the context menu.
Running Simulations 15-47
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
To modify simulation and model parameters while a transient or AC simulation is running, do the
following:
1.
Right-click anywhere in the Progress bar and elect Change quantity values from the context
menu. You can also click on the Progress bar arrow to access the menu.
Simplorer pauses the simulator and opens the Set Assignments dialog box. The main panel
displays a simulator tree containing a Solution parameters folder, a Solution options folder,
a Design variables folder, and icons for each model instance used in the simulation. It may
also contain a Project Variables folder if project variables exist in the project.
Clicking the + symbol next to an item in the tree expands the item to show its parameters for
which new values can be set. Clicking the symbol collapses the item. You can also use the
keyboards right-arrow and left-arrow keys to expand and collapse items in the tree. Similarly,
you can use the up-arrow and down-arrow keys to move up and down the tree to select items
and parameters.
2.
Note
a.
Parameter changes made in the Set Assignments dialog box will affect only the
Simplorer circuit and not the external model when performing transient cosimulation
with other products such as Maxwell, Simulink, or ANSYS RBD.
You can modify the following parameters in the Solution parameters folder:
For additional information on these parameters, please refer to the Transient Analysis
Setup and AC Analysis Setup help topics.
15-48 Running Simulations
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
b.
Note
You can modify the following parameters in the Solution options folder:
Parameters in the Solution options folder are listed using their netlist names. Each of
these parameters corresponds to a setting found in the Solution Options dialog box. The
following tables give the parameter name, the corresponding Solution Options dialog
box setting name, and the range of values that can be entered for the parameter.
ADSync
Analog/Digital
synchronization
0=Hybrid (default)
1=Adaptive
2=Conservative
EqualSteps
positive integers
IEmax
Iteratmax
Maximum number of
iterations
LDF
PerformanceFactor
RelTol
SamanskiiFactor
Samanskii factor
Solver
Integration formula
0=Euler
1=Adaptive Trapezoid-Euler(default)
3=Trapezoid
StepAccelDamping
Temp
VEmax
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
AC solution options:
Solution options
parameter name
(Netlist name)
Acceptable Values
EmaxAC
Iteratmax
Maximum number of
iterations
Temp
c.
3.
You can modify properties for Design and Project variables, and for component properties
as defined in their respective Properties dialog boxes.
Enter the desired new value for the selected parameter in the text field and click the Set button
to send the new value to the simulation engine.
The Assignments panel echoes the newly assigned values. Parameter values listed in the
Assignments panel can be modified again by reselecting the parameter in the tree, entering the
desired value, and clicking Set to update the listing.
4.
Repeat steps 2 and 3 for any additional values you wish to modify.
5.
When finished, click Continue to close the Set Assignments dialog box.
The simulation run resumes using the modified values.
Note
The modified values will be used only in the current simulation run. Values must be reentered for each new simulation.
To view the solution queue, click Tools>Show Queued Simulations or click the Show Queue
icon on the toolbar.
This displays a dialog that displays each simulation and its current status.
2.
To change the order of a simulation in the queue, select the simulation, and click the Move up
and Move down buttons as needed to effect the change.
3.
To remove a simulation from the queue, select the simulation, and click Remove from Queue.
This removes the selected simulation from the queue.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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.
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 R14.5
release. In the second mode, an administrator configures the Ansoft RSM Service to act as an
interface to the job scheduler, and starts the Ansoft 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 Ansoft RSM Service is
running, and the Desktop process connects to the Ansoft RSM Service over the network to
submit the job. In this mode, some configuration is required, and the Ansoft RSM Service typically must run as a privileged user (e.g., root), so that it can launch processes as any user.
The GUI for Windows HPC job submission is still present in the R14.5 release. The new GUI is
generic, in that it may be used for multiple job schedulers, but it does not support submission of
Windows HPC jobs.
Related Topics
Scheduler Terminology
What a Scheduler Does
Installation of Ansoft Tools
Ansoft Jobs
Submitting and Monitoring Ansoft HPC Jobs
Running Simulations 15-51
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Scheduler Terminology
Core: unit of processing
Processor: consists of one or more cores
Machine/Host/Node: consists of one or more processors, memory, disk, etc.
Resource: Machines, licenses, etc. that are used by a Job
Job: Application (also called: program, executable), with command line options, that uses
resources to produce useful results. For example, simplorer.exe ng BatchSolve
Ansoft Terminology
Desktop: The main application used to accomplish a task, such as Simplorer. The desktop may
run as a GUI or it may run as a batch command.
Engine: Application (aka: executable) that is launched during analysis commands, to generate
analysis results
Multi-processing: A single engine uses multiple cores on the same machine
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 Ansoft Desktop Products
High Performance Computing (HPC) Integration
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Manages a compute cluster by running various interacting services on head nodes and compute nodes
Provides a programming interface to access services
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 Performace Computing (HPC) Integration
Command Line Enhancements for Ansoft Desktop Products
On LINUX platform, Ansoft tools may be installed on a shared drive, that is accessible to all
machines in the cluster.
On Windows platform, Ansoft tools must be installed separately on each host of the cluster.
The Ansoft tools must be accessible using the same path on each host. All cluster users running
Ansoft jobs must have permission to read and execute the files in the Ansoft installation directory
and its subdirectories.
Running Simulations 15-53
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The Temp directory selected during installation must be readable and writable by all user accounts
used to run the Ansoft tools. This temp directory path should be the same on all machines of the
cluster and should be local to every machine. For example, c:\temp on Windows, /tmp on LINUX
Because HPC is offered as a direct integration, you need only install the Ansoft software programs.
No additional configuration is required.
Example
Install the Ansoft tools in directory C:\Program Files\AnsysEM\Simplorer11.0\Win64 (or Windows) on each node of the cluster. The same directory pathname must be used on all hosts.
Related Topics
High Performance Computing (HPC) Integration
Firewall Configuration
Installation Directory Examples
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.
Windows cluster: Configure firewall by adding exceptions that allow Ansoft programs and services to communicate with each other. If you are using standard Windows Firewall, this is
automatically done for you, by the Ansoft installation program. On the other hand, if you are
using a 3rd-party firewall software, it needs to be configured in a similar manner.
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
High Performance Computing (HPC) Integration
Installation Directory Examples
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Ansoft Jobs
For most cluster environments, an Ansoft job will consist of an Ansoft Desktop running in nongraphical mode, performing a batch solve. The user will submit the job to the scheduler, specifying
an Ansoft Desktop command line to be executed on the cluster. For some schedulers, the user may
or must specify a script to run instead of specifying the Ansoft Desktop command line; in these
cases, the script will contain the corresponding Ansoft Desktop command line. When the resources
requested for the job are available to the job, the scheduler will start the job. In many cases, the user
submitting the job will not know which host or hosts are allocated to the job. With direct integration, if the Ansoft job is a distributed job, the Ansoft Desktop will query the scheduler for the hosts
allocated to the job, and it will use the scheduler facilities to launch the distributed engines.
Related Topics
High Performance Computing (HPC) Integration
Running Simplorer from a Command Line
This release has been tested with the following versions of Windows HPC:
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
When submitting the job, you should use the following pathname to specify the project file:
\\user1_PC\projects\new\project1.mxwl
Incorrect
If a local pathname is used, the cluster hosts will not be able to find the users project on the workstation
user1_PC: ' C:\user1\projects\new\project1.mxwl '
Related Topics
Integration With Microsoft Windows HPC Scheduler
Windows HPC Job Properties
Windows HPC Task Properties
Windows HPC Job Templates
Selecting Computation Resource Units (Job Unit Type)
How to Select the Windows HPC Job Unit Type
Windows HPC Job Credentials
High Performance Computing (Windows HPC) Integration
Job Name - text string that may be used to identify or describe the job
Job Template - Template that controls job property defaults and allowed values. (See Windows HPC Job Templates)
Priority - one of five levels: Lowest, BelowNormal, Normal, AboveNormal, and Highest
Job Unit Type - computing resource unit granularity: core, node, or socket (See Selecting
Computation Resource Units (Job Unit Type).
Minimum and maximum number of computing resource units for the job. (See Specifying the
Number of Compute Resource Units for Windows HPC Jobs).
Exclusive - if true, no other jobs will be scheduled on nodes allocated to this job
Node group names - run the job on nodes belonging to these node groups
Node list - if specified, runs the job only on the nodes in this list
Set the minimum/maximum number of computing resource units to the number of units the jobs
needs. For example, set the number of units to sixteen, to be able to run four distributed engines,
each requiring four cores for multi-processing.
The Priority property controls which jobs are run by the scheduler when several jobs are ready to
run. The Exclusive property allows the user additional control on the resources used by a job. For
example, a job may be scheduled which requires all memory on a host, but only some of the cores
on the host; the Exclusive property would prevent other jobs from being scheduled on the unused
15-56 Running Simulations
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
cores on the host. Node groups are created by cluster administrator to group together a set of similar nodes. For example, a node group '32GB Nodes' could be created to consist of all nodes, which
have 32GB of available memory. Jobs that are memory intensive are run on nodes that belong to
this node group.
There are other job properties that further limit which nodes may be allocated to a job:
The minimum limits may be used to ensure that the nodes allocated to this job have sufficient
resources (nodes or memory) to efficiently run the job. The maximum limits may be used to optimize use of the cluster resources. For example, a maximum memory limit may be used to ensure
that nodes having a large amount of memory are only used for jobs that actually need a large
amount of memory and are not allocated to jobs that only require a limited amount of memory. Setting these limits acts as a filter on the nodes which may be allocated to a job; they do not ensure that
the resources will be available to the current job. For example, setting a minimum memory per
node of 2000 MB ensures that nodes allocated to the current job have at least 2000 MB of memory.
A node with 2000 MB of memory may be allocated to the current job, even if another job running
on the node is using 1500 MB of memory, however.
There are several other job properties that are not described here. See the Microsoft documentation
for more details.
Related Topics
Integration With Microsoft Windows HPC Scheduler
Windows HPC Job Properties
Windows HPC Task Properties
Windows HPC Job Templates
Selecting Computation Resource Units (Job Unit Type)
How to Select the Windows HPC Job Unit Type
Windows HPC Job Credentials
High Performance Computing (HPC) Integration
Task Name - text string that may be used to identify or describe the task
Working Directory - Working directory where the task is started
Command Line - The command line executed to start the task
Minimum and maximum number of computing resource units for the task (The unit type is the
Running Simulations 15-57
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Command Line that analyzes a Simplorer project serially and monitors analysis progress that is
printed to
stdout/stderr: "C:\Program Files
\AnsysEM\Simplorer11.0\Windows\simplorer.exe"_ -ng -monitor -local
-batchsolve \\shared_drive\projs\capacitor.asmp
Command Line that runs four distributed engines, on compute units allocated by the HPC Scheduler:
"C:\Program Files\AnsysEM\Simplorer11.0\Windows\simplorer.exe" -ng _
-monitor -distributed -machinelist num=4 _
-batchsolve \\shared_drive\projs\capacitor.asmp
Command Line that runs four distributed engines, with each engine using four cores for multi-processing:
15-58 Running Simulations
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Related Topics
Integration With Microsoft Windows HPC Scheduler
Windows HPC Job Properties
Windows HPC Task Properties
Windows HPC Job Templates
Selecting Computation Resource Units (Job Unit Type)
How to Select the Windows HPC Job Unit Type
Windows HPC Job Credentials
High Performance Computing (HPC) Integration
Running Simplorer From a Command Line
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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
Integration With Microsoft Windows HPC Scheduler
Windows HPC Job Properties
Windows HPC Task Properties
Windows HPC Job Templates
Selecting Computation Resource Units (Job Unit Type)
How to Select the Windows HPC Job Unit Type
Windows HPC Job Credentials
High Performance Computing (HPC) Integration
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.
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.
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
15-60 Running Simulations
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Each task requires all of the memory available on the node, and running multiple tasks results
in excessive paging or swapping
Each task is limited by bandwidth of the disk connection
Each task is limited by network bandwidth
References
Related Topics
Integration With Microsoft Windows HPC Scheduler
Windows HPC Job Properties
Windows HPC Task Properties
Windows HPC Job Templates
Running Simulations 15-61
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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
Integration With Microsoft Windows HPC Scheduler
Windows HPC Job Properties
Windows HPC Task Properties
Windows HPC Job Templates
Selecting Computation Resource Units (Job Unit Type)
How to Select the Windows HPC Job Unit Type
Windows HPC Job Credentials
High Performance Computing (HPC) Integration
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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 Ansoft 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.
Submitting and Monitoring Jobs Using the Ansoft Submit HPC Job Dialog
The Ansoft Submit HPC Job Dialog
Specifying the Number of Compute Resource Units for HPC Jobs
Submitting and Monitoring Jobs Using the Ansoft Submit HPC Job Dialog
In order to submit jobs using the Ansoft Submit HPC Job dialog, the cluster head node hostname
must be set. Selecting the Tools>Windows HPC>Select Head Node... menu item brings up the
Select Head Node dialog.
You can enter the cluster head node name into the dialog. Alternatively, you can click the ellipsis
[...] button to browse the network for the cluster head node.
After setting the cluster head node hostname, select Tools>Windows HPC>Submit HPC Job...
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
You can select which setups are analyzed in the Analyze Setups section of this dialog. There are
radio buttons to select:
If you specify multiple setups, they will be processed sequentially in the order displayed in the edit
box.
15-64 Running Simulations
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The Resource Requirements group box controls how compute resources are used. The Distributed
Analysis settings control resource usage for the portion of the analysis that may be distributed to
different hosts. The Non-Distributed Analysis settings control the initial portion of analysis that
runs before the start of any distributed analysis --this initial portion cannot be distributed to separate hosts, and must be run on a single host.
There are two Distributed Analysis settings. The Number of engines is the number of analysis
engines that are started in parallel; the engines can run on separate hosts. The Number of cores per
engine setting controls the degree of parallel processing within each engine; these parallel threads
of execution must be on the same host. In the case of Simplorer, each distributed engine represents
one domain of a large model, portion of a frequency sweep analysis or portion of an Optimetrics
setup analysis.
There is only one setting for the non distributed analysis because this part of the analysis must
occur on a single host. The Number of cores controls the degree of parallelism used for this part of
the analysis.
Check Log Analysis Progress to log analysis progress to a <projname.progress> file. A Progress
file contains error/warning/info messages and progress text. Progress text is added every two seconds.
Pressing the Next button accepts the current settings, and advances to the Submit HPC Job: Properties dialog. Pressing the Cancel button dismisses the dialog without submitting the job.
Related Topics
Submitting and Monitoring Ansoft HPC Jobs
The Ansoft Submit HPC Job Dialog
Specifying the Number of Compute Resource Units for HPC Jobs
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
A Job description file is created using Windows HPC Job Manager. If a job description file is specified, the settings in this file will be used to obtain the following job properties:
See the Windows HPC Job Manager for documentation of above properties.
Pressing the Finish button submits the job. Pressing the Back button returns to the Submit HPC
Job: Tasks dialog. Pressing the Cancel button dismisses the dialog without submitting the job.
Related Topics
Submitting and Monitoring Ansoft HPC Jobs
Submitting and Monitoring Jobs Using the Ansoft Submit HPC Job Dialog
Specifying the Number of Compute Resource Units for HPC Jobs
Set Compute resource granularity to core or socket (see Selecting Computation Resource
Units (Job Unit Type)).
Set Number of compute resource units to the 'Number of engines'.
For a job that is memory intensive. Run a fixed number of engines on each node:
Set Compute resource granularity to core or socket (see How to Select the HPC Job Unit
Type).
Set Node exclusivity to true.
Set Number of compute resource units to the number of units that are for exclusive use by
this job.
Specify an appropriate node list or the node groups via the Job description file.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Example: Suppose the job is run on nodes with 32GB of memory and 8 cores per node. Suppose
each engine requires 8GB memory and that 4 engines can run on each machine. Suppose the Number of engines specified for this job is 10. Since four engines are run per node, we need three nodes
to run 10 engines. So, 'Number of compute resource units' should be set to 24 cores (3 nodes times
8 cores). The Number of cores per engine should be set to 2.The Number of cores should be set to 8
(or a smaller number, if using 8 cores slows down the analysis)
For a job that is memory intensive. Run one engine per node:
Example: Suppose the job is run on nodes with 16GB of memory and 4 cores per node. Suppose
each engine requires 16GB memory, that is, 1 engine can run on each machine. Suppose the Number of engines specified for this job is 10. So, the Number of compute resource units should be set
to 10 nodes. The Number of cores per engine should be set to 4 (or a smaller number, if using 4
cores slows down the analysis). The Number of cores should be set to 4 (or a smaller number, if
using 4 cores slows down the analysis)
Related Topics
Submitting and Monitoring Ansoft HPC Jobs
Submitting and Monitoring Jobs Using the Ansoft Submit HPC Job Dialog
The Ansoft Submit HPC Job Dialog
Specifying the Number of Compute Resource Units for HPC Jobs
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Besides the command line interface, you can also use a Job Management user interface to submit
jobs
Related Topic
General Terminology for LSF
Installation of Ansoft Tools on LSF Cluster
Integration of ANSYS EM Products with LSF
LSF Job Submission Guidelines
Job Management User Interface for LSF
LSF Command Used to Launch Remote Engine Processes
15-70 Running Simulations
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
This release has been tested with the following versions of LSF:
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
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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
clutser in which job submission commands are available.
SchedulerName: this contains the unique part of the scheduler proxy library name
ConfigString: this contains a scheduler specific configuration string
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 R14.5,
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.
For Linux, the cshrc.lsf or the profile.lsf file may be sourced to set up the environment,
depending on the shell.
For Microsoft Windows, the PATH environment variable should be set to include the directory
containing the LSF commands; this directory should be before any other directory containing
files with the same name as any LSF commands.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
$begin 'AnsoftCOMDaemon'
$begin 'Managed COM Servers'
$end 'Managed COM Servers'
$begin 'Scheduler'
'SchedulerName'='lsf'
'ConfigString'=''
$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 LSF
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. See below for details.
LSF on Linux
The environment should be configured so that the following LSF environment variables are set
appropriately for the LSF cluster in use: LSF_BINDIR, LSF_SERVERDIR, LSF_LIBDIR,
and LSF_ENVDIR. In addition, the following LSF commands should be found in the
LSF_BINDIR directory: "bsub", "bjobs", "bkill", "lsid", "lsrun", "lshosts", "bmgroup",
"bparams" and "bqueues".
LSF on Microsoft Windows
The environment should be configured so that all LSF commands are found using the PATH
environment variable. In particular, search for the following commands in the PATH should
result in the LSF command being found: "bsub", "bjobs", "bkill", "lsid", "lsrun", "lshosts",
"bmgroup", "bparams" and "bqueues". No other command with the same name should appear
before the LSF command in the PATH.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Desktop talks to 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 Platforms Load Sharing Facility (LSF)
General Terminology for LSF
What a Scheduler Does
Integration of ANSYS EM Products with LSF
Job Management User Interface for LSF
LSF Job Submission Guidelines
15-74 Running Simulations
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Ansoft Project should be available in a shared drive that is accessible to all machines in the
cluster
Ansoft Project should be available using the same path on all machines of cluster
Ensure sufficient space in project directory and temp directories
Ensure sufficient memory per engine
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 an HFSS job cleanly - ensures that the results obtained until now are preserved
bkill s TERM <jobid>.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Stop an HFSS job abruptly results are most likely lost. You have to manually remove the project
lock file
bkill <jobid>
Related Topics
Integration with Platforms Load Sharing Facility (LSF)
Job Management User Interface for LSF
Installation of ANSYS EM Tools on LSF Cluster
Integration of ANSYS EM Products with LSF
Known Issues for LSF
Troubleshooting for LSF
Command Line Enhancements for Ansoft Desktop Products
Aborting an Analysis
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Before you can use Submit Job, you must click Select Scheduler as the one-time initial step. The
opens the Select Scheduler dialog.
Job submission node: this is the node on the cluster where scheduler commands (such as LSF's
bsub) are allowed to run.
Choose Use this computer if scheduler commands are enabled on the post-processing node.
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.
Pre-requisites: For this choice to work, the job-submission node must already be configured
with a running Ansoft RSM service, as documented in the 'Installation/Configuration' section
Scheduler: Available choices are: LSF and SGE. It is possible for you to integrate their custom
scheduler into this UI, through a scheduler proxy. When this is done, more choices will be
available in the combo-box, one per custom scheduler proxy that is deployed in the installation
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
After specifying the job submission node, you can click Refresh. The scheduler information is then
listed in the Scheduler info text field.
Once you select a scheduler, you can access the interface for job submission, monitoring and control. Click OK to close the dialog.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
You access the Job submission UI by clicking Tools>Job Management>Other Schedulers>Submit Job.... This command launches a multi-tab dialog.
The Analysis Specification tab has parameters to specify the input project model, the analysis
setup and analysis options (including batchoptions) that affect analysis algorithms.
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).
The Scheduler Options tab has analysis-independent parameters specific to the job, such as
name, priority.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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 checkbox is enabled.
Analysis Options:
You have checkboxes for whether to Monitor Job through the GUI, and whether to Wait for
license.
You can also specify Batchoptions. Click the Add... button to open a dialog for selecting the
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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 checkbox lets you choose between displaying only frequently used entries (the default), or
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note that for Large Scale DSO problems, you also have the option to Add Batchoption for relevant Registry Keys.
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
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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:
This permits specifying Environment Variables. Click the ellipsis button [...] to open the Addi-
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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.
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.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
the Value for the Queue parameter from a drop down menu.
Job parallelization:
The values you specify here represent minimal requirements for each condition that can interact in
leading to the total resources the Scheduler derives from them. If you specify a node list in the
Resource selection area, that takes priority over any values specified in Job parallization (which are
then ignored).
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. For example, if you specify
7 distributed engines, with two processors per engine, and also limit the number of engines per
15-86 Running Simulations
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
node to 4, the scheduler may increase the number of cores used in order to meet the limit specified
for engines per node. Notice that a preview of the Submit Job Results shows the number or
resouces assigned, and that the scheduler generated code includes an MPI specification.
Preview submission
This opens a screen showing the bsub command to be used to submit the job.
Submit job actually sends the batch command to the LSF cluster.A dialog reports a successful submit and presents a checkbox for monitoring.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
You continue to have the Save Settings As Default, Preview Submission, and Submit Job buttons.
If you check Show advanced options, you can also specify Job submission options.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The Job submission options permit you to customize a job submission in terms of addition job submission options, or override a job submission 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
Integrated Job Monitoring for Job Management Interface for LSF
Scheduler Proxy Interfaces
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
In this dialog, user selects the same project they submitted. You begin by selecting 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 format
of the text is essentially same as output of the '-monitor' command-line option.
If desired, you can use the check boxes to filter the messages listed in terms of whether to monitor
Errors, Warnings, or Info messages.
Related Topics
Scheduler Proxy Interfaces
Job Management User Interface for LSF
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Related Topic
Job Management User Interface for LSF
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
mand. 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.
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 Ansoft jobs are mentioned here. The following options may be used to submit serial or parallel LSF jobs.
-n min_proc, max_proc or -n min_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 Ansoft 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 -m host_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 -m host_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.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Some engine processes are not shut down, and continue to run
LSF job is not fully removed
Project lock file is not removed
Linux only: MainWin core service processes (watchdog, mwrpcss and/or regss) are not
stopped
Some of these may interfere with submission of additional Ansoft 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
Ansoft batch jobs. Normally, these processes should timeout and end 15 seconds after the Ansoft
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
Ansoft job that has finished or terminated.
The following Linux examples use Maxwell as the ANSYS Electromagnetics product,
but similar command lines will work for other ANSYS Electromagnetics products.
If the maxwell command is included in the bsub command line, then the entire maxwell command
will be processed by the command shell two times. The maxwell command is processed when the
15-94 Running Simulations
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
bsub command is processed by the shell. It will be processed again when the maxwell command is
started by the scheduler.
Several 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 last example shows how to use a shell script so that the maxwell command line will be
processed by the command processor only once. The maxwell command is placed in the shell
script, and then the shell script 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 shell script should be accessible from all of the cluster hosts.
Serial job:
bsub -n 1 /opt/Ansoft/Maxwell16.0/maxwell -ng -BatchSolve _
~/projects/OptimTee.mxwl
The -R "span[ptile=4]" option indicates that the four cores need to be on the same machine.
The -batchoptions option indicates that Maxwell should use four cores for multi-processing.
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 "\"".
The -n 4 option indicates that the four cores are needed for the job.
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.
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
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The -n 4 option indicates that the four cores are needed for the job.
The -R "span[ptile=2]" option indicates that the cores must be allocated in groups of two cores
on the same machine.
The -machinelist num=2 option indicates that this is a DSO job and that a total of two engines
will be started.
The 'Maxwell3D/Preferences/NumberOfProcessorsDistributed=2 batchoption indicates that
the distributed analysis engines should use two cores for multi-processing.
The 'Maxwell3D/Preferences/NumberOfProcessors=2 batchoption indicates that the portion of
the analysis that is not distributed should use two cores for multi-processing.
The maxwell command is placed in the shell script (~/projects/OptimTee.csh). In the bsub
command line, the maxwell command is replaced by the shell script pathname.
If the simplorer command is included in the bsub command line, then the entire simplorer command will be processed by the command processor cmd.exe two times. The simplorer command is
processed when the bsub command is processed by the command processor. It will be processed
again when the simplorer command is started by the scheduler.
The first three examples show the entire simplorer command line enclosed in double quotes ("),
while the double quote (") characters within the simplorer command line are replaced by escaped
double quotes (\"). This ensures that the quoted arguments of the simplorer command are processed
correctly. The remaining examples show how to use a batch file so that the simplorer command line
will be processed by the command processor only once. The simplorer command is placed in a
batch file, and then the batch file pathname is placed in the bsub command line. Then, the simplorer
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\Simplorer11.0\Windows\simplorer.exe\"
-ng -BatchSolve \\host\share\projects\capacitor.asmp"
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The entire simplorer command is in double quotes, and the double quotes enclosing the simplorer pathname are escaped. Each of these double quotes is replaced by the sequence \".
The -R "span[ptile=4]" option indicates that the four cores need to be on the same machine.
The -batchoptions option indicates that Simplorer should use four cores for multi-processing.
The entire simplorer command is in double quotes, and the double quotes enclosing the simplorer pathname and the -batchoptions value are escaped. Each of these double quotes is
replaced by the sequence \".
The -n 4 option indicates that the four cores are needed for the job.
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 simplorer command is placed in the batch file \\host\share\projects\Capacitor.bat. In the
bsub command line, the simplorer 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\Capacitor.bat
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
'Simplorer/Preferences/NumberOfProcessors'=2" _
\\host\share\projects\Capacitor.asmp
The -n 4 option indicates that the four cores are needed for the job.
The -R "span[ptile=2]" option indicates that the cores must be allocated in groups of two cores
on the same machine.
The -machinelist num=2 option indicates that this is a DSO job and that a total of two engines
will be started.
The 'Simp[lorer/Preferences/NumberOfProcessorsDistributed=2 batchoption indicates that the
distributed analysis engines should use two cores for multi-processing.
The 'Simplorer/Preferences/NumberOfProcessors=2 batchoption indicates that the portion of
the analysis that is not distributed should use two cores for multi-processing.
The simplorer command is placed in the batch file \\host\share\projects\Capacitor.bat. In the
bsub command line, the simplorer command is replaced by the batch file pathname.
Related Topic
Integration with Platforms Load Sharing Facility (LSF)
General Terminology for LSF
What a Scheduler Does
15-98 Running Simulations
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Output of LSF batch job corresponding to the analysis of Ansoft project: You can obtain this
using LSF commands: use bacct if jobs output is not redirected to a file. For example,
bacct l <jobid>
Batch log generated by Ansoft product (typically, projectname.log, in the same directory as
the Ansoft project file)
Debug logs generated by Ansoft product, during the running of LSF job.
Set ANSOFT_DEBUG_MODE to 1
It is good to collect another set of logs with above value set to 7
Create \\shared_drive\ansdebug directory that is accessible by all machines in the cluster
Set ANSOFT_DEBUG_LOG to a file in \\shared_drive\ansdebug directory, for example,
\\shared_drive\ansdebug\anslog
Set ANSOFT_DEBUG_LOG_SEPARATE to 1.
Set ANSOFT_LSF_LOG to a distinct file in \\shared_drive\ansdebug directory, for example,
\\shared_drive\ansdebug\lsf.log
For each pair of the machines, between which the remote analysis fails, run "ping remoteRunning Simulations 15-99
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
For each machine in the network, dump the network interfaces (for e.g. run "ifconfig -a") and
note the output
Email all 5 logs to development
- Jobs log generated by LSF
- Log generated by Ansoft product
- Entire \\shared_drive\ansdebug folder
- Output from ping command
- Output related to compute nodes network interfaces
Related Topic
Integration with Platforms Load Sharing Facility (LSF)
General Terminology for LSF
What a Scheduler Does
Installation of Ansoft Tools on LSF Cluster
Integration of Ansoft Products with LSF
LSF Job Submission Guidelines
Known Issues for LSF
Command Line Enhancements for Ansoft Desktop Products
Aborting an Analysis
Workarounds for LSF
Some users reported core dumps during Simplorer 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
Related Topics
Integration with Platforms Load Sharing Facility (LSF)
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
This release has been tested with the following version of PBS Pro:
The job script is a shell script containing the Ansoft 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.
Serial PBS Batch Jobs
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 Ansoft PBS Batch Jobs for options that can facilitate monitoring of
Ansoft batch jobs.
Parallel PBS Batch Jobs
In the PBS documentation, parallel batch jobs are also called multi-node jobs. When an Ansoft
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 Ansoft PBS Batch Jobs for options that can facilitate monitoring of
Ansoft batch jobs.
Related Topics
Monitoring Ansoft PBS Batch Jobs
Running Simulations 15-101
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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=value command line option with Ansoft 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.
Here, the optional ppn or cpp specifiers pc_spec are of form:
ppn=X
Number of processes (tasks) per node. Default is 1 if not specified.
cpp=Y
Number of CPUs (threads) per process. Default is 1 if not specified.
The optional global suffix, #suffix, which applies to all hosts has one of the following values:
#excl
This suffix requests exclusive access to the allocated nodes.
#shared
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 Ansoft desktop -Machinelist
num=num_distributed_engines command 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. Both the NumberOfProcessors and NumberOfProcessorsDistributed should match the PBS cpp 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
Monitoring Ansoft PBS Batch Jobs
15-102 Running Simulations
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The following examples show how to submit Linux Maxwell jobs on PBS, but similar
command lines and job scripts will work for other ANSYS Electromagnetics products.
Most of the following examples are PBS "Single-node jobs." The last example is a PBS "multinode jobs"; this examples demonstrate how to specify the allocation of threads, tasks and nodes to a
job.
Serial job:
qsub ~/pbs_scripts/OptimTee.sh
Serial job that needs a minimum of 4GB memory and two hours of real (wallclock)
time:
qsub ~/pbs_scripts/OptimTee.sh
The #PBS -l ncpus=4 directive indicates that four cores or CPUs are allocated to this job.
The -batchoptions option indicates that Maxwell should use four cores for multi-processing.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The #PBS -l ncpus=4 directive indicates that four cores or CPUs are allocated to this job.
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 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].
The -machinelist num=4 option indicates that this is a DSO job and that a total of four engines
will be started.
The 'Maxwell3D/Preferences/NumberOfProcessorsDistributed=2 batchoption indicates that
the distributed analysis engines should use two cores for multi-processing.
The 'Maxwell3D/Preferences/NumberOfProcessors=2 batchoption indicates that the portion of
the analysis that is not distributed should use two cores for multi-processing.
Related Topics
Integration with PBS (Portable Batch System) Professional from Altair Engineering
qsub Arguments
Monitoring Ansoft PBS Batch Jobs
Example PBS qsub Command Lines
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
This release has been tested with the following versions of GE:
6.2u4
6.2u5
2011.11
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 EM job doesn't require graphics. ANSYS EM job progress can be monitored through
GE(SGE) commands or in the dialog opened through Tools>Job Management>Monitor Jobs....
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
In addition to the command line interface, you can also use a Job Management user interface to
submit jobs
Related Topics
Job Management User Interface for SGE
Command Line Enhancements for ANSYS EM Desktop Products
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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
clutser in which job submission commands are available.
SchedulerName: this contains the unique part of the scheduler proxy library name
ConfigString: this contains a scheduler specific configuration string
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 R14.5,
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,
15-108 Running Simulations
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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 Ansoft Desktop Products
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Before you can use Submit Job, you must click Select Scheduler as the one-time initial step.This
opens the Select Scheduler dialog.
Job submission node: this is the node on the cluster where scheduler commands (such as SGE's
qsub) are allowed to run.
Choose Use this computer if scheduler commands are enabled on the post-processing node.
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.
Pre-requisites: For this choice to work, the job-submission node must already be configured
with a running Ansoft RSM service, as documented in the 'Installation/Configuration' section
Scheduler: Available choices are: LSF and SGE. It is possible for you to integrate their custom
scheduler into this UI, through a scheduler proxy. When this is done, more choices will be
available in the combo-box, one per custom scheduler proxy that is deployed in the installation
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
After specifying the job submission node, you can click Refresh. The scheduler information is then
listed in the Scheduler info text field.
Once you select a scheduler, you can access the interface for job submission, monitoring and control. Click OK to close the dialog.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
You access the Job submission UI by clicking Tools>Job Management>Other Schedulers>Submit Job.... This command launches a multi-tab dialog.
The Analysis Specification tab has parameters to specify the input project model, the analysis
setup and analysis options (including batchoptions) that affect analysis algorithms.
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).
The Scheduler Options tab has analysis-independent parameters specific to the job, such as
name, priority.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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 checkbox is enabled.
Analysis Options:
You have checkboxes for whether to Monitor Job through the GUI, and whether to Wait for
license.
You can also specify Batchoptions. Click the Add... button to open a dialog for selecting the
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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 checkbox lets you choose between displaying only frequently used entries (the default), or
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note that for Large Scale DSO problems, you also have the option to Add Batchoption for relevant Registry Keys.
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
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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:
This permits specifying Environment Variables. Click the ellipsis button [...] to open the Addi-
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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.
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.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
you can select the Value for the ParallelEnvironment parameter from a drop down menu.
Job parallelization:
The values you specify here represent minimal requirements for each condition that can interact in
leading to the total resources the Scheduler derives from them. If you specify a node list in the
Resource selection area, that takes priority over any values specified in Job parallization (which are
then ignored).
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. For example, if you specify
7 distributed engines, with two processors per engine, and also limit the number of engines per
node to 4, the scheduler may increase the number of cores used in order to meet the limit specified
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
for engines per node. Notice that a preview of the Submit Job Results shows the number of
resouces assigned, and that the scheduler generated code includes an MPI specification.
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 checkbox for monitoring.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
You continue to have the Save Settings As Default, Preview Submission, and Submit Job buttons.
If you check Show advanced options, you can also specify Job submission options.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The Job submission options permit you to customize a job submission in terms of addition job submission options, or override a job submission 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
Integrated Job Monitoring for Job Management Interface for SGE
Scheduler Proxy Interfaces
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
In this dialog, user selects the same project they submitted. You begin by selecting 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 format
of the text is essentially same as output of the '-monitor' command-line option.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
If desired, you can use the check boxes to filter the messages listed in terms of whether to monitor
Errors, Warnings, or Info messages.
Related Topics
Scheduler Proxy Interfaces
Job Management User Interface for SGE
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
In the first format, the Ansoft desktop command and its arguments are specified on the qsub command line. In the second format, the pathname of a shell script containing the Ansoft desktop command and its arguments is specified on the qsub command line. In the third format, the command is
omitted or replaced with a hyphen; this indicates that the command or script will be taken from
stdin.
Quoting Ansoft Command or Arguments for SGE
If the Ansoft tool executable pathname (ansoft_exe) or any of the arguments of the Ansoft tool
command (ansoft_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 SGE.
This is especially important when using the first form of the qsub command, as the Ansoft desktop
command is processed by the shell twice in this case. It is processed by the shell when the qsub
command is processed, and again when the job is started.
15-126 Running Simulations
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
ans_test1
slots
999
user_lists
NONE
xuser_lists
NONE
start_proc_args
/bin/true
stop_proc_args
/bin/true
allocation_rule
$round_robin
control_slaves
TRUE
job_is_first_task
FALSE
urgency_slots
min
accounting_summary TRUE
The user_lists and xuser_lists parameters are ACLs (access control lists) used to control which
users have permission to use the parallel environment. The user_lists setting gives permission to
use the PE. The xuser_lists setting denys permission to use the parallel environment. The
xuser_lists settings override the user_lists settings.
The start_proc_args and stop_proc_args parameters contain the pathname and arguments for the
parallel environment startup and shutdown scripts. No startup or shutdown scripts are needed for
parallel Ansoft batch jobs. The setting /bin/true may be used as the value for these scripts; this utility does nothing and returns an exit code indicating success (0).
The parallel environment allocation_rule parameter will affect how the analysis engine tasks are
distributed across the hosts allocated to the job. The $round_robin setting distributes the tasks
Running Simulations 15-127
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
across the hosts in a round robin fashion, resulting in the load being relatively evenly distributed
over all of the hosts. The $fill_up setting allocates all slots on a host before distributing the tasks to
another host; the result is that most hosts are either fully utilized or completely unused. See the
sge_pe man page for other settings for this parameter.
The control_slaves parameter must be set to TRUE, as described above.
The job_is_first_task parameter also affects how tasks are allocated. When submitting a job to run
in a parallel environment, the number of parallel tasks, n, is specified on the command line. If this
setting is TRUE, then the job process is considered one of the tasks, and only (n-1) additional tasks
are allocated to the job. If the setting is FALSE, then the job process is not considered to be one of
the tasks, and n additional tasks are allocated for the job.
See the sge_pe man page for more information about these and other PE parameters.
A parallel environment does not run tasks directly. Instead, the tasks are distributed to queues associated with the parallel environment. In order to complete the setup of a parallel environment, one
or more queues need to be associated with the parallel environment. The queue pe_list parameter is
used to specify the parallel environments (PEs) supported by the queue. This is an important step; if
no queues support a given PE, then jobs submitted to that PE will not run.
Parallel Batch Job Command Line Considerations
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
Monitoring Ansoft SGE Batch Jobs
Ansoft Desktop -monitor Command Line Option for SGE
Example SGE qsub Command Lines
Issue with MainWin Core Services for SGE
What a Scheduler Does
Recommended Practices for SGE Clusters
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The -t option displays extended information about the subtasks of each displayed job. This is equivalent to the -g t option. The -r option displays extended information about the resource requirements of the displayed jobs.
See the SGE manual pages for more information.
Related Topics
Integration with Sun Grid Engine (SGE)
Ansoft Desktop -monitor Command Line Option for SGE
Example SGE qsub Command Lines
Issue with qrsh (SGE)
Issue with MainWin Core Services for SGE
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The following examples show how to submit Linux Maxwell jobs on SGE, but similar
command lines will work for other ANSYS Electromagnetics products.
The -b y option indicates that maxwell is launched directly from the command line, instead of
using a script.
No queue is specified, so the default queue will be used
The -l h_rt=00:15:00 option indicates that this job has a "hard" runtime limit of 15 minutes.
Serial job using a script, with a runtime limit specified in the script:
qsub
~/sge/scripts/OptimTee.csh
The -b y option is absent, so the script ~/sge/scripts/OptimTee.csh will be run when the job
starts.
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.
The -b y option indicates that maxwell is launched directly from the command line, instead of
using a script.
The -pe pe1 4 command_line option indicates that this is a parallel job running under the pe1
parallel environment, and that 4 cores or processors are allocated to this parallel job.
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.
Related Topics
Integration with Sun Grid Engine (SGE)
15-130 Running Simulations
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Use the command qconf -mcto add a new complex to the table of complexes. Recommended
attributes are:
2.
name : exclusive
shortcut : excl
type : BOOL
relop : EXCL
requestable : YES
consumable : YES
default : 0
urgency : 0
Set the value of "exclusive" to TRUE for each execution host using the command qconf -me
hostname, where hostnameis 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:
Running Simulations 15-131
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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.
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/Ansoft/Maxwell16.0/maxwell -ng
-BatchSolve -Distributed -machinelist num=8
~/projects/OptimTee.mxwl
None of the hosts used for this job will be allowed to run other jobs while this job is running.
Use the command qconf -mcto add a new complex to the table of complexes. Recommended
attributes are:
name : physical_memory
shortcut : phys_mem
type : MEMORY
relop : <=
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
requestable : YES
consumable : YES
default : 0
urgency : 0
Set the value of "physical_memory" to an appropriate value for each execution host using the
command qconf -me hostname, where hostnameis 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.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
that requires 6 slots and 4G per slot, it will be able to run, with 4 slots on host A and 2 slots on host
B. The qsub command might look like: qsub -l phys_mem=4G -pe pe_name 6 command args
Example 2: Same as example 1, except that 7 slots are requested. In this case, the job will never
run. Although there are 8 slots available on hosts A and B, only two of the slots on host B are
usable by this job because it only has physical_memory of 8G. With only 6 slots total available to
this job (4 on host A and 2 on host B), the job can not start. In this case the command might look
like: qsub -l phys_mem=4G -pe pe_name 7 command args
Using Multithreading with Parallel Jobs
For large jobs it may be useful to combine multiprocessing with distributed processing. Distributed
processing refers to starting multiple processes, in which each process performs a portion of the
analysis. These processes may run on the same host or on different hosts. The number of processes
running at the same time is known as the number of "analysis engines". Multiprocessing refers to
using multiple threads within a single process to decrease the run time of the process. Multiprocessing may also be called multi-threaded processing.
As a concrete example of combining multiprocessing with distributed processing, an analysis could
run with four engines, where each engine uses two threads. In order to distribute the processing
load 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 pearallel_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:
pe_name : pe_sph2
slots : 999
user_lists : NONE
xuser_lists : NONE
start_proc_args : /bin/true
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
stop_proc_args : /bin/true
allocation_rule : 2
control_slaves : TRUE
job_is_first_task : FALSE
urgency_slots : min
accounting_summary : TRUE
When submitting a job, use the parallel environment where the slots per host matches the number of threads per engine.
The -b y option indicates that Maxwell is launched directly from the command line, instead of
using a script.
The -pe sph2 8 command_lineoption 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.
The -Distributedoption indicates that this is a DSO job, so that multiple engines will be started.
The -machinelist num=4option indicates that a total of four engines will be started.
The 'Maxwell/Preferences/NumberOfProcessorsDistributed'=2batchoption indicates that the
distributed analysis engines should use two cores for multi-processing.
The 'Maxwell/Preferences/NumberOfProcessors'=2batchoption indicates that the portion of
the analysis that is not distributed should use two cores for multi-processing.
The entire Maxwellcommand 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
Integration with Sun Grid Engine (SGE)
Monitoring Ansoft SGE Batch Jobs
Ansoft Desktop -monitor Command Line Option for SGE
Running Simulations 15-135
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
/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.
watchdog
regss
mwrpcss
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Related Topics
Integration with Sun Grid Engine (SGE)
Monitoring Ansoft SGE Batch Jobs
Ansoft Desktop -monitor Command Line Option for SGE
Running Simulations 15-137
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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.
The -Machinelist num=num_distributed_engines option should be included, where
num_distributed_engines is the total number of analysis engines to be started on the hosts
assigned to the job.
Other examples:
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
remote 10.1.1.221 _
LSF
bsub n 4 C:\ Simplorer11.0\simplorer.exe ng Batchsolve monitor _
Distributed machinelist num=4 _
\\shared_drive\projs\capacitor.asmp
This requests 4 cores to come from the same machine, as multi-processing needs cores to be on the
same machine
Distributed Analysis and Multi-Processing in the Same Job
Distributed-processing using 4 engines and multi-processing using 4 cores, using a total of 16 cores
bsub n 16 R span[ptile=4] c:\Simplorer11.0\maxwell.exe
BatchSolve Distributed machinelist num=4 _
batchoptions \\shared_drive\registry.txt _
\\shared_drive\projs\capacitor.asmp
ng _
Related Topics
Running Simplorer from a Command Line
Integration with Platforms Load Sharing Facility (LSF)
General Terminology for LSF
What a Scheduler Does
Installation of Ansoft Tools on LSF Cluster
Integration of Ansoft Products with LSF
LSF Job Submission Guidelines
Running Simulations 15-139
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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
Linker Options:
IsProductLaunchedInYourEnvironment
GetTempDirectory
GetMachineListAvailableForDistribution
LaunchProcess
GetUseRsmForEngineLaunch
GetThisJobID
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
Running Simulations 15-141
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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 then 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
15-142 Running Simulations
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
LaunchProcess
Purpose
Launch a local or remote process to run an analysis engine. This function is called by the
Ansoft 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.
Running Simulations 15-143
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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 Ansoft 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 Ansoft RSM service executable per host, and the Ansoft RSM executable will
launch all of the engine processes.
If the Ansoft 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 Ansoft 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.
15-144 Running Simulations
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Return Value
Returns true if the Ansoft RSM service should be used to launch engine processes for this
scheduler. Returns false if the Ansoft 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 then 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);
Running Simulations 15-145
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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 then 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.
Returns 0 (success) if the environment is appropriate for submitting jobs to the scheduler.
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.
On success, 0 is returned, and the scheduler name, scheduler description, and scheduler
version are written to the schedulerName, schedulerDescription and schedulerVersion
arguments.
On failure, a non-zero error code is returned, and an error message to display to the user is
written to the msg argument.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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.
On success, 0 is returned, and the attribute definitions are written to the attributeDefs
Running Simulations 15-147
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
argument.
On failure, a non-zero error code is returned, and an error message to display to the user is
written to the msg argument.
If the scheduler proxy library does not support any attributes using this approach, the
attributeDefs argument will contain no attribute definitions, and 0 will be returned.
int AbortJob(std::string& msg, const std::string& jobID, bool force, const SubmissionUserStruct& submissionUser):
This function requests the scheduler to abort a job identified by the jobID argument. If the
force argument is true, then errors should be ignored (the exact behavior is scheduler specific).
The submissionUser argument contains information about the client user (the user 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.
int SubmitUniformJob(std::string& msg, std::string& jobID, const CmdLineStruct& cmdLineInfo, const JobParallelizationStruct& jobParallelization, const UniformComputeResourcesStruct& computeResources, const JobOptionsStruct& jobOptions, const
JobAtributesStruct& jobAttributes, const SubmissionUserStruct& submissionUser,const
IJobParameters* jobParametersCB):
This function submits a job to the scheduler.
On success, 0 is returned, and the job identifier of the newly submitted job is written to the
jobID argument.
On failure, a non-zero error code is returned, and an error message to display to the user is
written to the msg argument.
This function is used to submit jobs to the scheduler in which the resources allocated to the job
are uniformly distributed across the nodes allocated to the job. All other arguments are input
arguments, and they are described below:
The cmdLineInfo argument contains the command line arguments. The first argument is the command name.
The jobParallelization argument contains information on how the job should be parallelized. It
contains the following integral parameters:
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The computeResources argument is a reference to an object of type UniformComputeResourcesStruct. This struct contains zero or more resource attribute settings for the job. Each resource attribute setting consists or a resource name and a resource value. The resource name is the name of one
of the resources defined in the AttributeDefinitionsStruct filled in by the GetComputeResourceAttributes() function. The resource attribute value is the value specified for the resource attribute
by the user using the Compute Resource Selection Parameters dialog. If no resource attributes
are specified by the user in this dialog, then the computeResources argument will contain no
resource attribute settings.
The jobOptions argument contains the environment variable settings for the job.
The jobAttributes argument contains job submission attributes which are not necessarily related to
the compute resources allocated to the job. The job name and the requested job priority are included
in this data structure. The SchedulerOptions tab of the Job Submission dialog allows the user to
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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
15-150 Running Simulations
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
On success, 0 is returned, and the job identifier of the newly submitted job is written to the
jobID argument.
On failure, a non-zero error code is returned, and an error message to display to the user is
written to the msg argument.
This function is used to submit jobs to the scheduler in which the nodes to use and the number
of engines to run on each node are specified by the user. All other arguments are input arguments, as for the SubmitUniformJob() function. These input arguments are the same as for
the SubmitUniformJob() function, except that the computeResources argument is a reference to a NonUniformComputeResourcesStruct, as described below:
The computeResources argument is a reference to an object of type NonUniformComputeResourcesStruct. This object contains a vector of pairs, where each pair consists of the name of
a node in the cluster, and the number of engines to run on the node.
int PreviewUniformJob(std::string& msg, std::string& preview, const CmdLineStruct&
cmdLineInfo, const JobParallelizationStruct& jobParallelization, const UniformComputeResourcesStruct& computeResources, const JobOptionsStruct& jobOptions, const JobAtributesStruct& jobAttributes, const SubmissionUserStruct& submissionUser, const
IJobParameters* jobParametersCB):
This function is similar to the SubmitUniformJob() function, but instead of submitting the
job, text representing how the job will be submitted is written to the preview argument. Typically the preview text includes the job submission command and the contents of the job script
created for the job. For some schedulers, this content may not be meaningful, so the text
returned could be different.
On success, 0 is returned, and the job preview text is written to the preview argument.
On failure, a non-zero error code is returned, and an error message to display to the user is
written to the msg argument.
The other arguments are input arguments with the same meaning as for the SubmitUniformJob() function. The submissionUser argument is ignored for this function.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
project file is TestProject123.asmp, then the batch file is TestProject123.log. The batch log file
contains useful information about the analysis run.
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.
Testing IsProductLaunchedInYourEnvironment
Testing GetSchedulerDisplayName and GetThisJobID
Testing GetTempDirectory
Testing GetMachineListAvailableForDistribution
Testing LaunchProcess
Testing GetUseRsmForEngineLaunch
Testing IsProductLaunchedInYourEnvironment
This function should be tested first. If the Ansoft 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.
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 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
15-152 Running Simulations
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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:
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 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 Ansoft desktop application will not start the analysis engines using the
LaunchProcess function directly. Instead, the Ansoft 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 proRunning Simulations 15-153
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
cess 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.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Troubleshooting GetSchedulerDisplayName
Verify that the IsProductLaunchedInYourEnvironment function returns true when running in the scheduler environment.
Verify that the scheduler display name is a valid ASCII string.
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 display name, including the terminal null byte, then the
display name is copied to the buffer and true is returned.
Troubleshooting GetThisJobID
Verify that the IsProductLaunchedInYourEnvironment function returns true when running in the scheduler environment.
Verify that the job ID is a valid ASCII string.
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 job ID, including the terminal null byte, then the job ID is
copied to the buffer and true is returned.
Troubleshooting GetTempDirectory
Verify that the IsProductLaunchedInYourEnvironment function returns true when
running in the scheduler environment.
Verify that the temporary directory name is a valid ASCII string.
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
Verify that the IsProductLaunchedInYourEnvironment function returns true when running in the scheduler environment.
Verify that the list of hosts is a valid ASCII string containing a space separated list of host names.
A host name will appear in the list a number of times equal to the number of processors or cores
available to the job on that host.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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 list of hosts, including the terminal null byte, then the list
of hosts is copied to the buffer and true is returned.
Troubleshooting LaunchProcess
Verify that the IsProductLaunchedInYourEnvironment function returns true when running in the scheduler environment.
The hostName argument is a host name from the list returned by the GetMachineListAvailableForDistribution function. Verify that the LaunchProcess function can accept host names in the format returned by the GetMachineListAvailableForDistribution function.
The exePathName argument is the pathname of the analysis engine executable to be started. This
pathname may contain spaces or other characters special to the shell. Ensure that the LaunchProcess function is able to handle such cases.
The arg1 and arg2 arguments may contain newlines, tabs, single quotes, spaces, dollar signs, and
other characters which may be special to the shell. Ensure that the LaunchProcess function is able
to handle such cases. If needed, the newline characters may be replaced by other whitespace characters. One or both of these arguments could also be an empty string; verify that the empty string is
correctly passed to the engine process command line.
If a scheduler command is used to launch the engine process on a remote machine, the engine command line may be processed by the shell twice, once when the scheduler command is processed by
the shell, and again when the engine command is processed by the shell. In such cases, the quoting
of characters special to the shell will need to be take these two passes through the shell into
account. In some implementations, it may be necessary or convenient to use different approaches
for launching engine processes on the local machine and on remote machines; if this is 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.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Re-solving a Problem
If you modify a design after generating a solution, the solution in memory will no longer match the
design.
To generate a new solution after modifying a design, follow the procedure for running a simulation:
1.
2.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
16
Network Data Explorer
The network data explorer, ndExplorer, provides visualization, analysis, and manipulation tools for
network data. It is accessible by selecting Tools > Network Data Explorer on the main menu bar.
The topics for this section include:
ndExplorer Overview
Loading Data Into ndExplorer
Exporting Data from ndExplorer
Right-Click Context Menu Options
Viewing Data and Modifying the Display
Creating a Statistics Plot
Comparing Network Data
Comparing Variations
Displaying Plot Traces from Multiple Data Sources
Displaying Mixed-Mode Parameters
Changing Port Properties and Reducing Matrix Size
Thresholding
Smoothing
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
ndExplorer Overview
ndExplorer Overview
To open the ndExplorer, click Tools > Network Data Explorer. The ndExplorer window is
divided into the following panes:
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.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
ndExplorer Overview
Export Buttons for exporting as SYZ Data, Broadband, and Lumped (currently Lumped
is not enabled); same options as those accesed via the File menu. Broadband export also
allows the user to create a Simplorer component.
Compare matrix data Lets you choose a comparison data set (or none at all).
Quantity The quantity to display (parameter or statistical).
Parameter type S, Y, or Z parameters.
Format The display function to apply to the data: magnitude/phase, real/imaginary, dB/
phase, magnitude, phase, dB, real, or imaginary.
The variation list box allows you to control which variations are currently active; this
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.
Frequencies unavailable for a variation are dimmed and are not highlighted when
selected.
Checking Select all causes all items within the list box to be selected; the corresponding
data is displayed in the data view pane. Warning: given the volume of data in many network data sets, this display may take a considerable time to generate, especially when the
graph plot view is enabled.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
ndExplorer allows you to have multiple files open. 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.
All data sets are available for data comparison, and all data sets which are open for comparison
are also available as primary data sets.
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.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Precision
Type of data
Renormalize data
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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:
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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:
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The actual controls displayed in the dialog vary with the Full Wave Spice Format:
File Name Use the default file name or browse to a different file/location.
Full Wave Spice Format Select the export format. The remaining controls in the dialog
vary with the format selected.
Use Common Ground Select this box to use a common ground.
Enforce Causality Select this box to enforce causality.
Enforce Passivity Select this box to enforce passivity.
Renormalize Select this box to renormalize using the impedance specified in the adjacent text box. (Not present for PSPICE, Simplorer, or Spectre.)
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Create Simplorer Component Creates a Simplorer component. (Present only for Simplorer.)
Touchstone Options
When Touchstone 1.0 or Touchstone 2.0 is selected as the format, the following Touchstone
Options are displayed:
Import Options
The Broadband export dialog displays Import Options, when the Full Wave Spice Format chosen is
either Touchstone 1.0 or Touchstone 2.0..
The Import Options group has a checkbox: Add as derived solution. When checked, the
exported Touchstone file is read in as an s-parameter solution and loaded into ndExplorer
for comparison. If the solution was renormalized during the export, then the original solution impedances are applied on importing back.
The Edit button opens a text edit box where the user can give the solution a description
which will be displayed in ndExplorer to better identify the imported solution.
The solution is added to ndExplorer as a derived solution so that the user can compare this
solution with the original solution. All of the comparison features available in ndExplorer
can be used to compare the original and derived solutions.
~DerivedSolution='1' is the exported solution. When you hover over the derived solution
line in the list box below, the tool tips displays the description entered in the export dialog.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The import of the exported solution is now done by reading the exported Touchstone file.
Advanced Options
Click the Advanced button to display the following advanced options.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
the number of poles used at each iteration) until it can find an acceptable fit to the data.
For broad frequency sweeps and large numbers of excitations this process can be time
consuming because of all the iterations and is not guaranteed to produce a good fit to the
data. It is retained as a fallback if the TWA algorithm fails.
Scripting ndExplorer
Scripting is available for each ndExplorer export method, which means a script can be recorded to
duplicate the export process. ndExplorer can be invoked in the following contexts, and scripting is
available from the Project Context and the Design Instance Context (simulation setup):
No design When there is no design available, the export functionality is not available,
and so scripting is not available.
Project Context In the context of a project, you can open a Touchstone file and then
export. Scripting is available.
Design Instance Context In the context of a solution (RCM from the simulation setup in
a design), you can export the corresponding networkdata solution. Scripting is available.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Display Format
The Display format dialog allows the user additional control over the display of values throughout
ndExplorer.
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.
Precision The number of decimal places to display.
Use scientific notation When checked, values are displayed using scientific notation,
e.g. 3.88124e-001.
Network Data Explorer16-13
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Post-format difference When comparing data sets, subtract values after applying the
formatting function (e.g. dB, magnitude, etc.); the values displayed will be the difference
between the magnitude, dB, and so on.
Pre-format difference When comparing data sets, subtract values before applying the
formatting function (e.g. dB, magnitude, etc.); the values displayed will be the magnitude,
dB, etc., of the complex difference.
Length The default units used to display and interpret length values (e.g. de-embedding
length).
Average Display the average of the matrix values across the selected frequencies.
Minimum Display the minimum matrix values across the selected frequencies.
Maximum Display the maximum matrix values across the selected frequencies.
Highlight Min/Max
This 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 matrix, this option determines if the transpose cell is
to be highlighted as well.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
3.
4.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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 iv 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.
Use Parameter type 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.).
When the cursor is placed over a cell, tool-tip text reveals detail as to the content of the
Network Data Explorer16-16
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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.
Selecting Plot in the data view pane switches the view to a colored graphical representation of the tabular data.
2.
3.
4.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The matrix values are displayed in a color coded grid; if the current Format is a complex
value, only the real component is used to determine the display color. Use the Parameter
type 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).
Network Data Explorer16-18
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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.
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.
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.
Selecting Table in the data view pane, switches the view to a matrix representation of the
graphical data.
Number of colors number of color entries in the legend, i.e. the number of divisions
between the start/end of the data range.
Use the data minimum and maximum automatically select the data range using the
minimum and maximum values from either just the selected frequencies or all frequencies in the data set.
Network Data Explorer16-19
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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
mimum of 0 and a maximum or 1 could be used.
2.
3.
4.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Values for all frequencies are displayed for each matrix cell selected. The data type and
format are determined by the Parameter type and the Format settings in the control
pane.
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.
Clicking on a column header in the data table highlights the column. The corresponding
trace in the plot view is also highlighted.
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.
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 is modeless and the filters are immediately applied 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:
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Lower triangle, show S(i, j) for all j < i. There are n(n-1)/2 choices.
2.
3.
4.
5.
Select Plot > Log Frequency to switch the X axis to a log scale.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The standard "view" right click menu options are available: zoom, pan, fit-all, visibility,
etc. A right click Copy Image is also available; the resulting image may be pasted into
external documents.
Holding the cursor over a trace will provide an identifying tool-tip; in the case of multiple
variations this is the only way to distinguish between the curves for a particular cell.
Selecting Table in the data view pane, switches the view to a tabular view of the plot data.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
3.
4.
The various statistical measures for the current Parameter type and Format are displayed for each frequency selected. Only real (not complex) data formats are offered for
Network Data Explorer16-24
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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.
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.
Clicking a column header sorts the data using that column for comparison; clicking again
reverses the order of the sort.
2.
3.
4.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The various statistical measures (for the current Parameter type 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.
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.
Selecting Plot in the data view pane, switches the view to a graph of the statistical data.
Network Data Explorer16-26
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The graph shares the same color coding as the columns; highlighted columns are highlighted in the plot.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
3.
4.
A graph of each of the statistical measures selected (for the current Parameter type and
Network Data Explorer16-28
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Format) is displayed across 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.
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.
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.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Select Browse in the Compare matrix data control field or the Compare menu option
on the File menu.
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.
The data displayed in all views is now of the primary Network data less the values for the
Network Data Explorer16-30
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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 Display format
settings dialog (available on the Edit menu or the right-click context menu).
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 No compare.
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.
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 Network
data file field of the control pane.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Comparing Variations
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 the Data Sources (Edit menu or the right-click menu) to choose the variations to
compare.
The Compare Variations 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.
Network Data Explorer16-32
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The variations being used may be changed through the drop-down lists in the 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.
Open multiple data sets, either through the main file browser or through the data comparison browser.
2.
Use the Edit menu or the right-click menu to open the Data Sources dialog.
3.
Enable the Display plot traces for all data sources option.
Traces for a given cell or statistical measure are displayed for all data sets; you can use
Network Data Explorer16-33
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
If a single cell or statistical measure is displayed, different colors are used for each data
trace.
If multiple cells or statistical measures are selected, a single color is used for all data traces
for each cell or statistical measure.
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.
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.)
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
3.
Select Edit > Define Differential Pairs to open the Differential Pairs dialog.
4.
Select New Pair in the Differential Pairs dialog to pair the selected ports.
5.
Optionally select a Ref. Z (ohm) column heading to enable the Set impedance button
which can be used to set a new impedance value entered in the associated data entry field.
6.
Optionally change the Positive and Negative ports being paired using the drop-down lists.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
Click the Active column boxes for the pairs you wish to activate. (Alternately, you can
click the Active column header itself to activate all pairs listed in the column).
The chosen pairs are activated.
Note
The ndExplorer Edit menu option Reset All Port Properties deactivates all pairs, but it
does not clear the differential pair settings. And since Reset All Port Properties also
clears reference impedances and terminations, it should not be used when the user
simply wishes to disable all differential pairs. To disable all differential pairs, click the
Active column header in the Differential Pairs dialog to deselect all pairs.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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
imag i, e.g. 5i
Explicit units may be used with the impedance value (e.g. 0.5kOhm) but will always be
shown in ohms (when the dialog is redisplayed).
Reorder ports by clicking and dragging their row. To see the port names in the data view
displays, use the right-click menu option Full Port Names.
Terminated ports are eliminated from the matrix thereby reducing the matrix size. Existing
data sets with mismatching port numbers will no longer be available for data comparisons.
Port properties may be restored to their load time values using the Reset All Port Properties option on the Edit menu.
Network Data Explorer16-37
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The de-emebedding column only appears if gamma values are available (specifically, if
ndExplorer is invoked from the results menu within Simplorer). Values are 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 by using the File > Save As option.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Thresholding
Thresholding
The Thresholding control is accessed through the Magnitude Thresholding option on the Edit
menu. Thresholding is a way of reducing matrix entries to zero based on a value threshold. 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 Parameter type 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:
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.
Network Data Explorer16-39
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Thresholding
Min to average When selected, the slider data ranges extends from the data minimum to
the mean.
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.
Apply to selected frequencies only When selected, the Save edits button only modifies
the currently selected network data matrices, otherwise, the matrix data for all frequencies
and variations are adjusted.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Smoothing
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.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
17
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 Simplorer. For example, you can parameterize the model geometry or material properties. You can then perform the following types of analyses on your nominal Simplorer design:
Parametric
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
Simplorer can compute.
Optimetrics 17-1
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Sensitivity
Tuning
Statistical
Note
Sweeping or using a complex variable is not allowed in any optimetrics setup, including
optimization, statistical, sensitivity, and tuning setups.
Related Topics
Setting up a Parametric Analysis
Setting up an Optimization Analysis
Setting up a Sensitivity Analysis
Tuning a Variable
Setting up a Statistical Analysis
Parametric Overview
Optimization Overview
Sensitivity Analysis Overview
Statistical Analysis Overview
Tuning Overview
Using Distributed Analysis
17-2 Optimetrics
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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
Simplorer 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 performperformperform 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
Setting up a Parametric Analysis
Optimetrics 17-3
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Once you have created a parametric setup, you can copy and paste it, and then make
changes to the copy, rather than redoing the whole process for minor changes.
Alternatively, right-click Optimetrics in the project tree, and then click Add>Parametric
on the shortcut menu.
Note
Sweeping or using a complex variable is not allowed in any optimetrics setup, including
optimization, statistical, sensitivity, and tuning setups.
After you define a parametric sweep, a shortcut menu becomes available when you right-click
the setup name.
3.
Use the Options tab if you want to save the solution data for solved design variations in the
parametric analysis, or to enable/disable use of a fast calculation-update algorithm to speed up
optimetrics and report updates during optimetrics analyses.
Note
Improper or undefined simulation setups will cause errors during Optimetrics Analysis.
To verify the analysis setups, click Analysis>Analyze in the Project Manager window to
analyze the nominal circuit and review the messages in the Simplorer message manager
window prior to running the Parametric Analysis.
Related Topics
Adding a Variable Sweep Definition
Specifying a Solution Setup for a Parametric Setup
Using Distributed Analysis
Parametric Overview
17-4 Optimetrics
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
1.
Alternatively, right-click Optimetrics in the project tree, and then click Add>Parametric
on the shortcut menu.
3.
Click the variable for which you are defining the sweep definition from the Variable pulldown list.
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.
5.
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.
Click OK.
Related Topics
Specifying Variable Values for a Sweep Definitions
Synchronizing Variable Sweep Definitions
Modifying a Variable Sweep Definition Manually
Overriding a Variables Current Value in a Parametric Setup
Optimetrics 17-5
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Linear step
Linear count
Specify a linear range of values and the number, or count of points within
this range.
Decade count
Specify a logarithmic (base 10) series of values, and the number of values
to calculate in each decade.
Octave count
Exponential count Specify an exponential (base e) series of values, and the number of values
to calculate.
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:
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
3.
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.
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. Simplorer 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
Synchronizing Variable Sweep Definitions
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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, Simplorer 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
Specifying Variable Values for a Sweep Definitions
Click the Table tab of the Setup Sweep Analysis dialog box.
The design variations Simplorer solves for the parametric setup listed in table format.
2.
To modify a variable value, click a value text box in the table and type a new value.
To delete a variable value from the sweep definition, click the row you want to delete, and
then click Delete.
To add a new variable value to the sweep definition, click Add. Then click in the value
text box and type a new value.
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.
Optimetrics 17-7
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Your modifications are tracked and available for viewing at the bottom of the Setup Sweep Analysis dialog box under the Sweep Definitions tab. The operations you performed are listed with
descriptions.
Warning
If you modify an original sweep definition using the Add/Edit Sweep dialog box
after you have manually modified its table of design variations, your manual
modifications become invalid and are removed. A warning is displayed to inform
you that your manual values are about to become invalid, so you can decide whether
or not to proceed.
Related Topics
Adding a Variable Sweep Definition
Overriding a Variables Current Value in a Parametric Setup
In the Setup Sweep Analysis dialog box, click the General tab.
Under Starting Point, all of the current independent design variable values are listed.
2.
Click the Value box of the variable with the value you want to override for the parametric
setup.
3.
Type a new value in the Value box, and then press Enter.
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
4.
Alternatively, you can select the Override option first, and then type a new variable
value in the Value box.
5.
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.
In the SIM. Setup area of the dialog box, all available simulation types associated with the
project will be listed. Select the simulation setups to be run during parametric analysis by
17-8 Optimetrics
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Improper or undefined simulation setups will cause errors during Parametric Analysis.
To verify the analysis setups, click Analysis>Analyze in the Project Manager window to
analyze the nominal circuit and review the messages in the Simplorer message manager
window prior to running the Parametric Analysis.
Related Topics
Adding a Variable Sweep Definition
Modifying a Variable Sweep Definition Manually
In the Setup Sweep Analysis dialog box, click the General tab.
2.
Select the solution setup you want Simplorer to use when it solves the parametric setup.
Simplorer solves the parametric setup using the solution setup you select. If you select more
than one, results are generated for all selected solution setups.
Related Topics
Specifying the Solution Quantity to Evaluate for Parametric Analysis
Specifying a Solution Quantitys Calculation Range
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.
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.
Optimetrics 17-9
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Related Topics
Specifying a Solution Quantitys Calculation Range
Specifying Specifying Specifying Specifying Output Variables
Setup Calculations for Optimetrics.
2.
In the Report Type text field in the Context pane, select from the drop down list of available
types.
3.
In the Solution text box, select from the drop down list of available solutions.
4.
In the Trace tab, specify the solution Category, a Quantity, and Functions. The resulting
expression will be displayed in the Calculation Expression field.
a.
b.
Add the expression you want to evaluate, and then click Done.
The recently created output variable appears in the Quantity list.
17-10 Optimetrics
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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.
5.
To apply a Range function to the Calculation Expression, see Setting a Range Range Range
Range function.
6.
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.
7.
Related Topics
Specifying a Solution Quantity to Evaluate
Setting a Range Range Range Range function
In the Setup Sweep Analysis dialog box, click the Calculations tab.
2.
3.
4.
5.
In the Value box, click a value at which the solution quantity will be extracted.
6.
In the project tree, right-click the parametric setup for which you want to view the 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 parametric setup with the results you want to view from the pull-down list at the top
of the dialog box.
Optimetrics 17-11
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
3.
4.
5.
6.
Optionally, click a design variation in the table, and then click Apply (at the far right side of
the dialog box).
Simplorer now points to the selected design variation as the nominal solution and as a result,
the design is changed to represent the selected design variation.
Click Revert to return the design in the view window to the original value.
7.
To view the results in graphic form, select Plot as the view type.
8.
Select the variable with the swept values you want to plot on the x-axis from the X pull-down
list.
9.
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.
b.
Click the row with the variable value you want to use as the constant value in the plot, and
then click OK.
10. Select the solution quantity results you want to plot on the y-axis from the Y pull-down list.
The x -y plot appears in the view window.
You can modify the display by right-clicking in the graph area. See CreatingCreatingCreatingCreating Reports for details on these operations.
11. To view profile information about the analysis, click the Profile tab on the Post Analysis Display dialog.
12. When more than one parametric analysis has been run, use the left and right arrows to select a
profile.
13. Click Close to close the Post Analysis Display dialog.
Related Topics
Plotting Solution Quantity Results vs. a Swept Variable
Viewing Solution Data for an Optimetrics Design Variation
17-12 Optimetrics
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Under Optimetrics in the project tree, right-click the specific parametric setup.
A shortcut menu appears.
2.
Note
After you define a parametric sweep, a shortcut menu becomes available when you
right-click the setup name.
While the analysis is running, you can access parent and child progressprogressprogress 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:
Right-click the progress window, and select Show Subtask Progress Bars.
Right-click the progress window, and select Hide Subtask Progress Bars.
Related Topics:
Optimetrics 17-13
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
17-14 Optimetrics
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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
Setting Up an Optimization Analysis
Choosing an Optimizer
Choosing an Optimizer
Conducting an optimization analysis allows you to determine an optimum solution for your problem. In Simplorer optimization analyses, you have five choices of optimizer, though in most cases,
the Sequential Nonlinear Programming optimizer is recommended.
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.
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.
Setting up an Optimetrics Analysis 17-15
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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 common to optimization. The first is the possible presence of local minima. The fig-
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
ure 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
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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.
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 QuasiNewton 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:
17-18 Setting up an Optimetrics Analysis
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Schoenberg, Ronald. Optimization with the Quasi-Newton Method. Aptech Systems, Inc.
2001.
Related Topics
Optimization Setup for Quasi Newton Optimizer
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 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
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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
Optimization Setup for Pattern Search Optimizer
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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 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. Finally, this optimizer allows you to use nonlinear
constraints, making this approach much more general than either of the other two optimizers.
Related Topics
Optimization Setup for SNLP Optimizer
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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 so grown population participates in a selection (natural-selection) process that in turn reduces the size of the population to a desired level (Next Generation /
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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
Optimization Setup for Genetic Algorithm Optimizer
Optimization Variables in Design Space
Cost Function
Advanced Genetic Algorithm Optimizer Options
MATLAB optimizer
The MATLAB optimizer option lets you pass a script to MATLAB to perform the optimization.
When optimization is started, MATLAB is launched and a script is passed in to MATLAB to perform the optimization. During optimization, MATLAB calls back into Simplorer to perform the
solve and compute the cost. The cost is reported back to MATLAB, and MATLAB's optimization
then determines the next step in the optimization.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The optimization script is specified as part of the optimization setup. By modifying the optimization script, users can change optimization parameters and optimization method as well as use the
full power of MATLAB.
Running the Optimization
A MATLAB optimization is launched like any other optimization. The Message Manager displays
status messages when MATLAB is being launched, and status messages are generated for each
solve that is being performed.
In most cases, MATLAB terminates when the optimization has been completed. Some reasons why
MATLAB may fail to terminate include:
The user has modified the MATLAB script to not terminate MATLAB after the optimization.
A syntax error or some other error has occurred.
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:
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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 Simplorer
and perform the optimization. The dropdown selection lets you view only the portion of code of
interest without having to view the full script. The choices are:
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 fmincon() is used, 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.
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.
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
17-26 Setting up an Optimetrics Analysis
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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.
$ANS_VARIABLE_LIST:
$ANS_STARTING_POINT:
$ANS_MAXITERATIONS:
$ANS_MINVAL:
$ANS_MAXVAL:
$ANS_MINSTEP:
$ANS_MAXSTEP:
Note
While modifying the script, please ensure that the script follows MATLAB syntax.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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)
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
You can define more than one optimization analysis setup per design.
Once you have created an optimization analysis setup, you can copy and paste it,
and then make changes to the copy, rather than redoing the whole process for minor
changes.
To provide a broad range of capability, Optimetrics incorporates the following types of numerical
optimizers:
Click on the links above to view the setup procedure for each optimizer. Options for the analysis
are listed in the table.
The following optional optimization solution setup options can also be used:
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
Sweeping or using a complex variable is not allowed in any optimetrics setup, including
optimization, statistical, sensitivity, and tuning setups.
Note
Improper or undefined simulation setups will cause errors during Optimetrics Analysis.
To verify the analysis setups, click Analysis>Analyze in the Project Manager window to
analyze the nominal circuit and review the messages in the Simplorer message manager
window prior to running the Optimetrics Analysis.
Related Topics
Optimization Overview
Choosing an Optimizer
Set up the variables you want to optimize in the Design Properties dialog box.
2.
On the Simplorer Circuit 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 Quasi Newton 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.
8.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
In the Variables tab, specify the Min/Max values for variables included in the optimization,
and the Min/Max Step Size for the analysis.
You may also override the variable starting values by clicking the Override checkbox and
entering the desired value in the Starting Value field.
Optionally, modify the values of fixed variables that are not being optimized.
Optionally, set Linear constraints.
10. 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 checkbox will cause Optimetrics to modify the variable values in the nominal design to match the final values from the
optimization analysis.
11. Use the Options tab if you want to enable use of a fast calculation-update algorithm to speed
up optimetrics and report updates during optimetrics analyses, and to save the solution data for
solved design variations in the analysis.
Set up the variables you want to optimize in the Design Properties dialog box.
2.
On the Simplorer Circuit 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 Pattern Search 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.
8.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
In the Variables tab, specify the Min/Max values for variables included in the optimization,
and the Min/Max Step Size for the analysis.
You may also override the variable starting values by clicking the Override checkbox and
entering the desired value in the Starting Value field.
Optionally, modify the values of fixed variables that are not being optimized.
Optionally, set Linear constraints.
10. 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 checkbox will cause Optimetrics to modify the variable values in the nominal design to match the final values from the
optimization analysis.
11. Use the Options tab if you want to enable use of a fast calculation-update algorithm to speed
up optimetrics and report updates during optimetrics analyses, and to save the solution data for
solved design variations in the analysis.
Set up the variables you want to optimize in the Design Properties dialog box.
2.
On the Simplorer Circuit 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 Sequential Nonlinear Programming
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.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
7.
In the Variables tab, specify the Min/Max values for variables included in the optimization,
and the Min/Max Focus for the analysis.
8.
You may also override the variable starting values by clicking the Override checkbox and
entering the desired value in the Starting Value field.
Optionally, modify the values of fixed variables that are not being optimized.
Optionally, set Linear constraints.
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 checkbox will cause Optimetrics to modify the variable values in the nominal design to match the final values from the
optimization analysis.
9.
Use the Options tab if you want to enable use of a fast calculation-update algorithm to speed
up optimetrics and report updates during optimetrics analyses, and to save the solution data for
solved design variations in the analysis.
Set up the variables you want to optimize in the Design Properties dialog box.
2.
On the Simplorer Circuit 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 Sequential Mixed Integer Nonlinear
Programming 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.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
7.
In the Variables tab, specify the Min/Max values for variables included in the optimization,
and the Min/Max Focus for the analysis.
8.
You may also override the variable starting values by clicking the Override checkbox and
entering the desired value in the Starting Value field.
Optionally, modify the values of fixed variables that are not being optimized.
Optionally, set Linear constraints.
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 checkbox will cause Optimetrics to modify the variable values in the nominal design to match the final values from the
optimization analysis.
9.
Use the Options tab if you want to enable use of a fast calculation-update algorithm to speed
up optimetrics and report updates during optimetrics analyses, and to save the solution data for
solved design variations in the analysis.
Set up the variables you want to optimize in the Design Properties dialog box.
2.
On the Simplorer Circuit 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 Genetic Algorithm 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.
Setting up an Optimetrics Analysis 17-35
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
6.
7.
In the Variables tab, specify the Min/Max values for variables included in the optimization,
and the Min/Max Focus for the analysis.
8.
You may also override the variable starting values by clicking the Override checkbox and
entering the desired value in the Starting Value field.
Optionally, modify the values of fixed variables that are not being optimized.
Optionally, set Linear constraints.
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 checkbox will cause Optimetrics to modify the variable values in the nominal design to match the final values from the
optimization analysis.
9.
Use the Options tab if you want to enable use of a fast calculation-update algorithm to speed
up optimetrics and report updates during optimetrics analyses, and to save the solution data for
solved design variations in the analysis.
Set up the variables you want to optimize in the Design Properties dialog box.
2.
On the Simplorer Circuit 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 pulldown list. Selecting MATLAB enables the Acceptable Cost and Noise fields.
4.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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.
9.
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.
You may also override the variable starting values by clicking the Override checkbox and
entering the desired value in the Starting Value field.
Optionally, modify the values of fixed variables that are not being optimized.
Optionally, set Linear constraints.
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 checkbox will cause Optimetrics to modify the variable values in the nominal design to match the final values from the
optimization analysis.
12. Use the Options tab if you want to enable use of a fast calculation-update algorithm to speed
up optimetrics and report updates during optimetrics analyses, and to save the solution data for
solved design variations in the analysis.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
pleted, the optimization continues by performing another iteration, that is, by solving another
design variation.
If the maximum number of iterations has not been reached, the optimizer performs iterations until
the acceptable cost function is reached or until the optimizer cannot proceed as a result of other
optimization setup constraints, such as when it searches for a variable value with a step size smaller
than the minimum step size.
Note
The Genetic Algorithm optimizer does not use the Max. No. of Iterations criteria.
Under the Goals tab of the Setup Optimization dialog box, type a value in the Max. No. of
Iterations text box.
Related Topics
Adding a Cost Function
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
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 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 Output Variables dialog box.
Related Topics
Adding a Cost Function
Acceptable Cost
Cost Function Noise
Linear Constraints
Goal Weight
Step Size
Explanation of L1, L1, Norm Costs in Optimization
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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
c = 10000 L 11
where |L11| is the magnitude of the inductance, at the minimum, |L11| is expected to be very
small, L 11 0 .
From the solution setup, the error in |L11| is expected to be E
L11
tion is therefore
c perturbed = 10000 ( L 11
+ E L11 )
min
2
E c = c perturbed c min = 10000 ( 0.0 + 0.01 ) ( 10000 0.0 ) = 1.0
Therefore, the cost function noise would be 1.0.
Related Topics
Cost Function
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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.
a.
b.
Choose the Category of available data type depending upon the Solution type of the
design being optimized.
c.
Select the Quantity to add to the Calculated Expression field. Available quantities
depend upon the Category selection.
d.
You may optionally make a selection from the function list to apply to the calculated
expression.
e.
When the Calculation Expression has the desired equation, click Add Calculation to
add the expression to the cost function table.
f.
Repeat to add additional calculations to the cost function or click Done to exit the Add/
Edit Calculation dialog box and return to Setup Optimization.
3.
To modify the Solution on which the calculation is based, click in the Solution column and
select the solution from which the cost function is to be extracted from the pull-down list.
4.
To edit the calculation on which to base the cost function goal, select Edit from the pull-down
list.
5.
In the Condition text box, click one of the following conditions from the pull-down list:
<=
Equal to
>=
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
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
complex; two weight values must be specified. The weight value cannot be variable dependent.
Note
8.
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.
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.
Related Topics
Setting a Goal Value
Cost Function
Acceptable Cost
Goal Weight
Select the Report Type with a pull-down selection list containing the available types for
this design.
Select the Solution from the drop down selection list. This lists the available setups and
sweeps. As a minimum, the LastAdaptive solution is available.
Select the Geometry from the drop down selection list or select none (the default). This
modifies the list of quantities available to the ones that apply to the specific geometry.
2.
The Output Variables button opens the Output 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:
4.
Select the Category, these depend on the Solution type and the design. This lets you specify the category of information to be used in the cost function.
Select a Quantity from the list. Available quantities depend upon the Solution type, as
well as the Geometry and Category selection. Selecting a Quantity automatically enters it
into the Calculated Expression field.
Select a Function to apply to the value in the calculated expression.
For swept variables, the RangeFunction button opens the Set Range Function dialog to
apply functions to the expression that apply over the sweep range.
The Calculation Range tab applies to swept variables and allows you to specify the range of
Setting up an Optimetrics Analysis 17-41
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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.
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:
If you know the syntax of the mathematical expression or the output variable's name, type
it in the Calculation text box.
If you want to create an output variable that represents the solution quantity, do the following:
a.
b.
c.
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.
Under the Goals tab in the Setup Optimization dialog box, click Edit Cal. Range.
2.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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 Sparameter quantity, and phi or theta, if the solution quantity is a radiated field quantity.
3.
4.
5.
After you select a variable from the Variable pull-down list, you can select a range of values
for the calculation range as follows:
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.
b.
In the Value text box, type the value of the variable at which the cost function goal is to be
extracted.
Under the Goals tab in the Setup Optimization dialog box, click Edit Goal/Weight.
The Edit Goal/Weight dialog box appears.
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.
4.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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.
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:
a.
b.
Add the expression you want to be the goal value, and then click Done.
Simplorer enters the most recently created output variable in the text box below the
Goal Value heading.
4.
Click OK.
The goal value you specified appears in the Goal text box.
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.
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.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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:
Wj
-----Nj
Nj
ei
j
where
<=
0
ei =
si gi
ei = si gi
>=
0
ei =
gi si
si gi
si > gi
si gi
si < gi
If the total error value is within the acceptable cost, the optimization stops.
Related Topics
Adding a Cost Function
Setting up an Optimetrics Analysis 17-45
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Cost Function
1.
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 used for this
optimization analysis, and the current value set for the nominal model is ignored.
3.
Alternatively, you can select the Override option first, and then type a new variable value
in the Starting Value text box.
Optionally, click a new unit system in one of the Units text boxes.
Note
Related Topics
Setting the Min. and Max. Variable Values for Optimization
Step Size
Setting the Min and Max Focus
Modifying the Starting Variable Value for Sensitivity Analysis
Modifying the Starting Variable Value for Statistical Analysis
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.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Related Topics
Override the default min and max variable values for a single optimization setup.
Change the default min and max variable values for every optimization setup.
Overriding the Min. and Max. Variable Values for a Single Optimization Setup
1.
2.
Type a new value in the Min or Max 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 used for this
optimization analysis; the variable's current Min or Max value in the nominal design is
ignored.
3.
Alternatively, you can select the Override option first, and then type a new value in the
Min or Max text box.
Optionally, click a new unit system in one of the Units text boxes.
To revert to the default minimum and maximum values, clear the Override option.
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 Simplorer Circuit>Design Properties.
If the variable is a project variable, do the following: Click Project>Project Variables.
The Properties dialog box appears.
3.
Select Optimization.
4.
Type a new value in the Min or Max text box for the value you want to override, and then
press Enter.
5.
Click OK.
When Optimetrics solves an optimization setup, it does not consider variable values that lie
outside of this range.
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.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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:
si = xi + 1 xi
The natural distance measure is,
si =
si si
si
T T
s i D Ds i
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,
si
D min
<1
si
D max
>1
where Dmax has diagonal elements equal to the inverse of Max. Step values of the corresponding
optimization variables.
17-48 Setting up an Optimetrics Analysis
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Related Topics
Setting the Min. and Max. Step Sizes
Cost Function
Adding a Cost Function
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 system in the Units text box.
5.
Click OK.
Hint
Related Topics
Step Size
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
search domain. The starting point is the center of the focus box, but the search does extend
beyond the box.
This focus must be inside the domain limits. Consequently, it has to be equal or smaller size.
An error message is generated if you specify a focus outside the domain.
The focus box must be at least one hundredth of the domain size. Otherwise, an error message
is sent.
2.
Optimetrics displays Min. Focus and Max. Focus columns, with default values for each variable to be optimized.
If you do not have an initial guess based on your knowledge of the problem, make the focus
box equal to the domain; that is, the physical limits. This tells SNLP to search the entire decision space.
In the Min. Focus text box, type the minimum value of the focus range. Optionally, modify the unit system in the Units text box.
In the Max. Focus text box, type the maximum value of the focus range. Optionally, modify the unit system in the Units text box.
Click OK.
2.
In the Parametric Analysis pull-down list, click the parametric setup you want Optimetrics to
solve before optimization.
Note
3.
The parametric setup must include sweep definitions for the variables you are
optimizing.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
If the parametric setup has not yet been solved, Optimetrics solves it. Optimetrics uses the cost
value evaluated at each parametric design variation to determine the next step in the optimization
analysis. This enables you to guide the direction in which the optimizer searches for the optimal
design variation.
Related Topics
Solving a Parametric Setup During an Optimization
2.
In the Parametric Analysis pull-down list, click the parametric setup you want Optimetrics to
solve during an optimization.
3.
4.
Optionally, you can adjust the sweep values to be used during the optimization.
a.
b.
c.
d.
e.
Close the pup-up dialog box. Click Done to close the Add/Edit Calculation dialog.
2.
2.
3.
Select a norm from the pull-down in the Cost Function Norm Type field. The options are L1,
L2, and Maximum. L2 is the default.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Related Topics
Explanation of L1, L2 and Max Norms in Optimization
Cost Function
Cost =
wi i
1
For L2 norm the actual cost function uses the weighted sum of absolute values of the individual
Cost =
2
wi i
1
For the Maximum norm the cost function uses the maximum among all the weighted goal errors:
Cost =
N
Max W i i
1
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.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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:
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The norm type doesnt 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.
Related Topics
Cost Function
Click the Setup button to open the Advanced Genetic Algorithm Optimizer Options dialog.
2.
Select the Stopping Criteria. Any of the three following, or any combination of these can be
selected.
3.
4.
Number of individuals value field -- specify the number of parents for the optimizer to
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.
Roulette selection checkbox -- 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.
Number of individuals field -- specify the number individuals to include in the mating
pool.
Reproduction setup-- this button opens the Genetic Algorithm Optimizer Reproduc-
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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.
6.
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.
Select one of the four Crossover types from the drop-down menu.
The crossover type selected affects the options available.
Uniform
One point
Two point
Simulated binary
crossover
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
7.
Select the Mutation type--this can be one of three types, which you select from a drop-down
menu.
8.
Gaussian Distribution
Polynomial Mutation.
9.
Uniform Distribution
Uniform Mutation Probability: If this is more than zero (recommendation is to have still
a small probability here), then there will be some children whose features are simply a
completely random design (design variables randomly selected over the domain).
Individual Mutation Probability controls, for each child, the likelihood of a mild mutation.
Variable Mutation Probability. If the child will be mutated, this probability controls at
the variable level the likelihood of a mutation of the variables.
Standard Deviation is the standard deviation of the selected distribution that is being
used for the mutation and it is measured relatively to the optimization-domain.
When you have completed the Reproduction setup in the Genetic Algorithm Optimizer
Reproduction Setup dialog, click OK to close it and return to the Advanced Genetic Algorithm Optimizer Options dialog.
10. In the Advanced Genetic Algorithm Optimizer Options dialog, specify the children as a
Number of Individuals.
11. Set the Pareto Front value.
This the number of the very best individuals (identified relative to the cost function) to keep for
future generations.
12. Set the Next Generation parameters. The Next Generation is selected from the Parents, the
children, and the Pareto front.
Number of individuals value field -- specify the number of individuals to survive to form
the next generation for the optimizer to use.
Roulette selection checkbox -- 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.
13. Click OK to accept the settings for the Genetic Algorithm and to close the dialog.
Related Topics
Setting up an Optimization Analysis
Adding a cost function
Optimization Overview
Acceptable Cost
Explanation of L1, L2, and Max Norms in Optimization
17-56 Setting up an Optimetrics Analysis
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Choosing an Optimizer
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Related Topics
Setting Up a Sensitivity Analysis
Selecting a Master Output
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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 Design Properties dialog box.
2.
On the Simplorer Circuit 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 Simplorer to perform in the Max. No. of Iterations/Sensitivity Variable text box.
4.
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 checkbox 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.
The following optional sensitivity analysis setup options can also be used:
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
Sweeping or using a complex variable is not allowed in any optimetrics setup, including
optimization, statistical, sensitivity, and tuning setups.
Note
Improper or undefined simulation setups will cause errors during Sensitivity Analysis.
To verify the analysis setups, click Analysis>Analyze in the Project Manager window to
analyze the nominal circuit and review the messages in the Simplorer message manager
window prior to running the Sensitivity Analysis.
Related Topics
Sensitivity Analysis Overview
Setting the Maximum Iteration Per Variable
Under the Calculations tab of the Setup Sensitivity Analysis dialog box, type a value in the
Max. No. of Iterations/Sensitivity Variable text box.
Related Topics
Setting Up an Output Parameter
Under the Calculations tab of the Setup Sensitivity Analysis dialog box, click Setup Calculations to open the Add/Edit Calculations dialog box.
2.
In the Add/Edit Calculations dialog box, set up output parameter calculations to be evaluated
for sensitivity.
3.
To modify the solution from which the output parameter is to be extracted, click in the Solution column and select from the options in the pop-up list.
4.
You can modify the Calculation specified by clicking on the output parameter in the table and
selecting Edit.
5.
For output parameters based on swept variable, you must choose a single value in the Calculation Range at which to evaluate the output parameter.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
6.
If you have more than one output parameter, select Master Output if you want Optimetrics to
use the output parameter to base its selection of solved design variations.
Note
During a sensitivity analysis, the design variations that Optimetrics selects to solve 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
parameters 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
Selecting a Master Output
Select the Report Type with a pull-down selection list containing the available types for
this design.
Select the Solution from the drop down selection list. This lists the available setups and
sweeps. As a minimum, the LastAdaptive solution is available.
Select the Geometry from the drop down selection list or select none (the default). This
modifies the list of quantities available to the ones that apply to the specific geometry.
When selecting a geometry, you may also be required to specify a point within the geometry where the calculation is to be performed.
2.
The Output Variables button opens the Output Output Variables dialog box allowing you to
create special output variables to be used in the output parameter.
3.
The Calculation Expression field in the Trace tab is used to enter the equation to be used for
the output parameter. To enter an expression, you may type it directly into the field or use the
Category, Quantity, and Function lists as follows:
Select the Category, these depend on the Solution type and the design. This lets you specify the category of information to be used in the output parameter.
Select a Quantity from the list. Available quantities depend upon the Solution type, as
well as the Geometry and Category selection. Selecting a Quantity automatically enters it
into the Calculation Expression field.
Select a Function to apply to the value in the calculated expression.
For swept variables, the RangeFunction button opens the Set Range Function dialog to
Setting up an Optimetrics Analysis 17-61
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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 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.
Note
The solution quantity you specify must be able to be evaluated to a single, real number.
Related Topics
Setting the Calculation Range of an Output Parameter
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.
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
Setting Up an Output Parameter
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
able to be the current value set for the nominal design. You can modify the design point for each
sensitivity setup.
Warning
1.
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.
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.
3.
Alternatively, you can select the Override option first, and then type a new variable value
in the Starting Value text box.
Optionally, click a new unit system in one of the Units text boxes.
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
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.
Setting up an Optimetrics Analysis 17-63
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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.
3.
Alternatively, you can select the Override option first, and then type a new value in the
Min or Max text box.
Optionally, click a new unit system in one of the Units text boxes.
To revert to the default minimum and maximum values, clear the Override option.
Related Topics
Setting Up a Sensitivity Analysis
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 Simplorer Circuit>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
Setting Up a Sensitivity Analysis
In the Setup Sensitivity Analysis dialog box, click the Variables tab.
2.
Optimetrics displays the Initial Disp. column, with default values for each sensitivity variable.
3.
In the Initial Disp. text box, type the initial displacement value. Optionally, modify the unit
system in the Units text box.
Related Topics
Setting Up a Sensitivity Analysis
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
In the Setup Sensitivity Analysis dialog box, click the General tab.
2.
Click the parametric setup you want Optimetrics to solve before the sensitivity setup from the
Parametric Analysis pull-down list.
Note
3.
The parametric setup must include sweep definitions for the sensitivity variables.
If the parametric setup has not yet been solved, Optimetrics solves it. Optimetrics uses the results
(of the solution calculation you requested under the Goals tab of the Setup Sensitivity dialog box)
to determine the next design variation to solve for the sensitivity analysis.
Related Topics
Setting Up a Sensitivity Analysis
In the Setup Sensitivity Analysis dialog box, click the General tab.
2.
Click the parametric setup you want Optimetrics to solve during the sensitivity analysis from
the Parametric Analysis pull-down list.
3.
Related Topics
Setting Up a Sensitivity Analysis
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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.
2.
On the Simplorer Circuit menu, point to Optimetrics Analysis, and then click Add Statistical
.
3.
4.
Under the Calculations tab, type the maximum number of iterations you want Simplorer to
perform in the Maximum Iterations text box.
5.
6.
In the Calculation text box, set the value at which the solution quantity is to be computed.
7.
8.
The following optional statistical analysis setup options can also be used:
Note
Note
Related Topics
Statistical Analysis Overview
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
X@ID, the components ModelName property must be set to X. Next, the statistical variable is
automatically set to X@ID and the model engine is able to locate it.
Additionally, you must also have the same parameter names listed in your library subcircuit netlist
and in your UI parameters. For example, with a subcircuit netlist of:
CAP 0805: Netlist string: X@ID %0 %1 CAP0805 PARAMS: Cval=@C Rval=@R
The UI is only aware of C and requests statistical information on X@32~~C, while the subcircuit is
only aware of Cval. Because of this, you must set up the same component parameter name which
the actual model refers to. Consequently, if you add properties Cval and Rval in this component
example, you must also change the netlist to read:
X@ID %0 %1 CAP0805 PARAMS: Cval=@Cval Rval=@Rval
As a result, statistical analysis and tuning will work for both Cval and Rval.
Note The netlist template is also capable of accessing RefDes (Reference Designator) information
for netlist definitions of the form X@RefDes %0 %1 %2 ... .
Under the Calculations tab of the Setup Sensitivity Analysis dialog box, type a value in the
Maximum Iterations text box.
Related Topics
Setting up a Statistical Analysis
In the Calculations tab of the Setup Statistical Analysis dialog box, click Setup Calculations.
The Add/Edit Calculations dialog box is displayed, allowing you to define one or more mathematical expressions for statistical evaluation.
2.
Select the Report Type with a pull-down selection list containing the available types for
this design.
Select the Solution from the drop down selection list. This lists the available setups and
sweeps. As a minimum, the LastAdaptive solution is available.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Select the Geometry from the drop down selection list or select none (the default). This
modifies the list of quantities available to the ones that apply to the specific geometry.
When selecting a geometry, you may also be required to specify a point within the geometry where the calculation is to be performed.
3.
The Output Variables button opens the Output Output Variables dialog box allowing you to
create special output variables to be used in the output parameter.
4.
The Calculation Expression field in the Trace tab is used to enter the equation to be used for
the solution quantities. To enter an expression, you may type it directly into the field or use the
Category, Quantity, and Function lists as follows:
Select the Category, these depend on the Solution type and the design. This lets you specify the category of information to be used in the output parameter.
Select a Quantity from the list. Available quantities depend upon the Solution type, as
well as the Geometry and Category selection. Selecting a Quantity automatically enters it
into the Calculation Expression field.
Select a Function to apply to the value in the calculated expression.
For swept variables, the RangeFunction 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.
7.
To update or edit a selected cost function, enter the desired Calculation Expression and click
the Update Calculation button.
8.
Note
The solution quantity you specify must be able to be evaluated to a single, real number.
Related Topics
Setting up a Statistical Analysis
Setting the Maximum Iterations for a Statistical Analysis
Under the Calculations tab of the Setup Statistical Analysis dialog box, click in the CalculaSetting up an Optimetrics Analysis 17-69
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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 Statistical Analysis dialog box.
Related Topics
Setting up a Statistical Analysis
In the Setup Statistical Analysis dialog box, click the Variables tab.
All of the variables that were selected for statistical analysis are listed.
2.
Check or clear the Include checkbox for each variable to define the specific variables to be
varied in the statistical analysis setup.
3.
For each included variable, select Uniform, Gaussian, Lognormal, or User Defined in the
Distribution column for the variable you want to override.
If you changed the distribution type, the Override option is now selected. This indicates that
the distribution type you selected is to be used for this optimization analysis; the current distribution type selected for the variable in the nominal design is ignored in this statistical analysis.
Alternatively, you can select the Override option first, and then select a different distribution type in the Distribution text box.
4.
Optionally, if you want to change the distribution criteria, click in Distribution Criteria column for the variable you want to override.
5.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
b.
Enter the lower limit of the distribution in the Low Cutoff text box.
c.
Enter the upper limit of the distribution in the High Cutoff text box.
Simplorer will solve design variations using a Gaussian distribution within the low and
high cutoff values.
6.
7.
8.
9.
b.
Enter the sigma value of the distribution in the Sigma text box and select a unit from the
pull-down.
c.
d.
Enter the theta value in the Theta text box and select a unit from the pull-down.
b.
Click Edit XY Data to open the Edit Datasets dialog box in which you can select an
existing dataset, or create a new one.
By default, all variables are set to sample using Latin Hypercube sampling. This sampling
method provides for greater variability than random sampling by keeping track of chosen samples and guaranteeing that samples cannot be repeated. You may revert to random sampling by
clearing the checkbox in the Latin Hypercube column for any desired variable.
Make sure that the variable's distribution criteria are not being overridden in any statistical
setup.
2.
If the variable is a design variable, do the following: On the Simplorer Circuit menu, click
Design Properties.
If the variable is a project variable, do the following: Click Project>Project Variables.
The Properties dialog box appears.
3.
Select Statistics.
4.
Click in the Distribution column for the variable you want to change, and then select Uniform, Gaussian, Lognormal, or User Defined.
Setting up an Optimetrics Analysis 17-71
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
5.
Optionally, if you want to change the distribution criteria, click in the Distribution Criteria
column for the variable you want to change.
If the distribution type is Gaussian, the Gaussian Distribution dialog box appears. If the distribution type is Uniform, the Uniform Distribution dialog box appears.
6.
b.
c.
Type the mean value of the distribution in the Mean text box.
Simplorer will solve design variations using a Gaussian distribution within the low and
high cutoff values.
7.
8.
9.
b.
Type values for Sigma, M, and Theta in the corresponding text boxes.
b.
c.
Either type or import the X and Y data values for the distribution in the Edit Dataset dialog.
Statistical Cutoffs
The low and high cutoff values multiply the Gaussian Standard Deviation value. The variable lc,
below uses a Gaussian distribution that extends three standard deviations below 10nH and two
standard deviations above 10nH. Outside these values, the Gaussian distribution is truncated,
effectively giving a Gaussian distribution on a pedestal.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Uniform distributions such as variable cl above use only the Tolerance value, and do not have
cutoffs.
Edit Distribution
When setting the distribution type for a variable, you have the option of changing the distribution
parameters from the default values.
1.
Type the lower limit of the distribution in the Cutoff Probability text box.
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.
Simplorer solves design variations using a Gaussian distribution within the specified mean
and standard deviation values.
2.
Type the lower limit of the distribution in the Cutoff Probability text box.
b.
Type the mean value of the distribution in the Mean text box.
c.
3.
Type the lower limit of the distribution in the Cutoff Probability text box.
b.
Enter the shape parameter of the distribution in the Sigma text box.
c.
Enter the scale parameter in the M text box. The scale parameter should be set to 1 for the
standard lognormal distribution.
d.
Enter the location parameter value for Theta in the text box. The value for a standard lognormal distribution is 0.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
.Simplorer solves design variations with a logarithmic distribution using the shape, scale
Type the lower limit of the distribution in the Cutoff Probability text box.
b.
Select the Edit XY Data button to manually define the data distribution using datasets.
Related Topics
Adding Datasets
Changing the Distribution Criteria for Every Statistical Setup
Overriding the Distribution Criteria for a Single Statistical Setup
1.
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.
In the Setup Statistical Analysis dialog box, click the Variables tab.
All of the variables selected for the statistical 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 statistical analysis; the current value set for the nominal model will be ignored.
3.
Alternatively, you can select the Override option first, and then type a new variable value
in the Starting Value text box.
Optionally, click a new unit system in one of the Units text boxes.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
In the Setup Statistical Analysis dialog box, click the General tab.
2.
Click the parametric setup you want Optimetrics to solve during the statistical analysis from
the Parametric Analysis pull-down list.
3.
Related Topics
Setting up a Statistical Analysis
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Check Use fast calculation-update algorithm to enable use of the algorithm. (See also, Fast
Calculation-Update Algorithm Limitations.)
When the fast calculation-update algorithm is enabled:
You can enable some reports to be updated automatically during the optimetrics analysis
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
3.
You can see each trace (overwriting the previous), by setting the Optimetrics setup in the
Report dialog to None in addition to having all variables set to Nominal. At the end of the
analysis, the user will see the last calculated value.
If you have enabled Use fast calculation-update algorithm and want to save the solution data
for every solved design variation in the Optimetrics analysis, select Save solutions to database as shown below. Selecting Save solutions to database has no effect without enabling
Use fast calculation-update algorithm.
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.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
When the Save solutions to database option is checked, a plot with traces based on the
Optimetrics Setup just run can be updated through a menu command (right-click on the
desired report in the Project Manager Results folder and select Update Report) and will
show results as appropriate (family, if chosen).
Without the Save solutions to database option checked, you can examine analysis data in
the Post Analysis Display dialog, available by right-clicking on the Optimetrics Setup
and choosing View Analysis Result.
Similarly, when the fast calculation-update algorithm is enabled, a trace cannot be updated during
an analysis if the trace expression uses:
Project/Design variables. (However, you can use the same workaround described
above.)
Any range function.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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 are affected.
A design can be updated after a tuning analysis to reflect a design variation solved during a tuning
analysis and the results of each solved design variation are saved for post processing.
Related Topics
Tuning a Variable
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Tuning a Variable
1.
Before a variable can be tuned, you must specify that you intend for it to be used during a tuning analysis in the Properties dialog box.
2.
4.
In the Sim. Setups column, select the solution setup you want Simplorer to use when it solves
the specified design variation.
Simplorer solves the analysis using the solution setup you select. If you select more than one,
results are generated for all selected solution setups.
5.
In the Nominal text box for the variable you want to tune, type the value of the variable you
want Simplorer to solve, or drag the slider to increase or decrease its value.
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 Simplorer to solve a range of values, specify a linear range of values
with a constant step size:
6.
a.
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. Simplorer 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.
Click Tune.
You can click Abort to abort the tuning process, if desired.
Note
7.
Sweeping or using a complex variable is not allowed in any optimetrics setup, including
optimization, statistical, sensitivity, and tuning setups.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
Improper or undefined simulation setups will cause errors during Tuning Analysis. To
verify the analysis setups, click Analysis>Analyze in the Project Manager window to
analyze the nominal circuit and review the messages in the Simplorer message manager
window prior to running the Tuning Analysis.
Related Topics
Applying a Tuned State to a Design
Tuning Overview
Resetting Variable Values after Tuning
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.
2.
3.
Select Apply tuned values to design if you want to update the model to the new variable values.
4.
Related Topics
Reverting to a Saved Tuned State
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
Type the name of the tuned state you want to apply or click a name in the pull-down list.
3.
Select Apply tuned values to design if you want to update the model to the selected tuned
state's variable values.
4.
Related Topics
Saving a Tuned State
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
Do the following in the Calculation section of the window to insert a quantity into the expression:
3.
a.
Select the Report Type and Solution from the pull-down lists.
b.
Select a Category, Quantity, and Function from the lists, and click Insert Quantity Into
Expression.
c.
If you want to insert a specific pre-defined function, select one from the Function pulldown list, and click Insert Function.
You can also type numbers or expression by hand directly into the Expression area.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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
3.
Alternatively, you can select the Override option first, and then clear the Include option
for the variable you want to exclude.
Click OK.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
3.
Click the Value text box of the variable with the value you want to override.
4.
Type a new value in the Value text box, and then press Enter.
The Override option is now selected. This indicates that the value you entered is used for this
Optimetrics setup; the current variable value set for the nominal design is ignored.
Note
Alternatively, you can select the Override option first, and then type a new value in the
Value text box.
5.
6.
Click OK.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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): RnR), 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:
ij x i < cj j
i
where
ij are coefficients.
cj is a comparison value for the jth linear constraint.
xi is the ith designer parameter.
Related Topics
Setting a Linear Constraint
2.
If you are setting up an optimization analysis: In the Setup Optimization dialog box,
click the Variables tab.
If you are setting up a sensitivity analysis: In the Setup Sensitivity Analysis dialog box,
click the Variables tab.
3.
Click Add.
The Edit Linear Constraint dialog box appears.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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
Modifying a Linear Constraint
Deleting a Linear Constraint
Linear Constraints
2.
If you are setting up an optimization analysis: In the Setup Optimization dialog box,
click the Variables tab.
If you are setting up a sensitivity analysis: In the Setup Sensitivity Analysis dialog box,
click the Variables tab.
3.
Click the row listing the constraint you want to modify, and then click Edit.
The Edit Linear Constraint dialog box appears.
4.
Optionally, click a Coeff text box and type a new coefficient value.
5.
Optionally, click a different condition, < (less than) or > (greater than), in the pull-down list.
6.
Optionally, type a different inequality value in the text box to the right of the condition, and
then click OK.
You return to the Linear Constraint dialog box. The new coefficient value, the condition, and
the inequality value appear in the LHS (left-hand side), Condition, and RHS (right-hand side)
columns, respectively.
2.
If you are setting up an optimization analysis: In the Setup Optimization dialog box,
click the Variables tab.
If you are setting up a sensitivity analysis: In the Setup Sensitivity Analysis dialog box,
click the Variables tab.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Click the row listing the constraint you want to delete, and then click Delete.
The constraint is deleted.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
To use the Analyze All command at the Project or design level to simulate the nominal problem and subsequently run all Optimetrics setups, do the following:
1.
2.
To use the Analyze All command from the Optimetrics menu to simulate only the Optimetrics
based setups, do the following:
1.
2.
You can choose to analyze only the setups related to a specific Optimetrics type of analysis. In
order to simulate setups of a specific type, do the following:
Note
1.
2.
Click Analyze>All {TYPE} from the shortcut menu where TYPE is the specific analysis type of interest, Parametric, Optimization, Sensitivity, or Statistical.
Improper or undefined simulation setups will cause errors during Optimetrics Analysis.
To verify the analysis setups, click Analysis>Analyze in the Project Manager window to
analyze the nominal circuit and review the messages in the Simplorer message manager
window prior to running the Parametric Analysis.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
In the project tree, right-click the Optimetrics 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.
See the help topics in this section for more details about viewing optimization analysis results.
In the project tree, right-click the Optimetrics solution setup of interest, and then click View
Analysis Result on the shortcut menu.
The Post Analysis Display dialog box appears.
2.
3.
Select the Optimetrics setup with the results you want to view from the pull-down list at the
top of the dialog box.
4.
Optionally, to examine more detailed profile data for a specific design variation, do the following:
a.
b.
The Solutions dialog box appears with the profile data for the selected design variation.
The profile line for the matrix solver is in the following format:
Solver 123
where:
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.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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.
b.
5.
Click the row with the variable value you want to use as the constant value in the plot, and
then click OK.
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.
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 Table as the view type, if it is not already selected.
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.
Simplorer 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
Plotting Cost Data for an Optimization Analysis
Viewing Solution Data for an Optimetrics Design Variation
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.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
In the project tree, right-click the sensitivity setup for which you want to view the 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 Table as the view type, if it is not already selected.
The following values are listed in table format:
3.
The regression value of the output parameter at the design point is listed in the Func.
Value column.
The first derivative of the regression is listed in the 1st D column.
The second derivative of the regression is listed in the 2nd D column.
Click Apply.
Simplorer 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
Plotting Output Parameter Results for a Sensitivity Analysis
Viewing Solution Data for an Optimetrics Design Variation
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.
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.
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 short-
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
cut 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.
To view the results in tabular form, select Table as the view type.
The distribution results for the selected solution quantities are listed in table format for each
solved design variation.
4.
Optionally, click a design variation in the table, and then click Apply (at the far right side of
the dialog box).
The design displayed in the 3D Modeler window is changed to represent the selected design
variation.
5.
To view the results in graphic format, select Plot as the view type.
6.
7.
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.
8.
Optionally, click a design variation in the table, and then click Apply (at the far right side of
the dialog box).
Simplorer 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
Plotting Distribution Results for a Statistical Analysis
Viewing Solution Data for an Optimetrics Design Variation
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.
4.
5.
Select the solution quantity for which you want to plot distribution results on the y-axis from
the Y pull-down list.
Setting up an Optimetrics Analysis 17-93
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
A histogram plot appears in the Post Analysis Display dialog box. It displays the distribution
of the selected solution quantity.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
3.
In the Input Variables panel, check Include for the Design Variables to use. You can also
choose to override the value of a design variable. Editing the Value and Units fields automatically enables Override. Unchecking Override returns the value and unit to their original
states.
4.
To setup output calculations, click the Calculation tab and click the Setup Calculations button.
This opens the Add/Edit Calculation dialog. Here you can define the simulation results of
interest. The dialog box contains distinct panes and tabs to set the Context, the Calculation
Expression, and the Calculation Range. See Setup Calculations for Optimetrics for details.
Use the Add Calculation button to add expressions to the Calculations table of the DesignX-
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
5.
When you have added the calculations of interest, click OK to save the setup.
An icon for the DesignXplorer setup appears under Optimization in the Project tree.
6.
To create a .xml file with the setup information for DesignXplorer, 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 through your file system, and name
and save the .xml file. The .xml file contains information regarding the Simplorer 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. A path to the
Workbench installation must be specified in the Tools>General Options dialog Miscellaneous tab.
9.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Workbench will be launched with the connection to the Simplorer project established. To this
connection, you can add a DesignXplorer Setup. See the documentation of ANSYS Workbench for details on DesignXplorer.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
18
Generating Reports and
Postprocessing
After Simplorer 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 designs values and the corresponding analysis results.
For each solution type (Transient, AC, and DC), the Simplorer Circuit>Results>Create
Standard Report or Simplorer Circuit>Results>Create BodeNyquist Report commands allow
you to select from a cascading menu that lists the Display Types available 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 Simplorer Circuit>Results>Report Templates>PersonalLib><templateName>.
When you select one of the standard report types the Report dialog box displays.
Related Topics
The Report Dialog Box
Creating a New Report
Creating a Report from an Ansoft Report Data File
Modifying Reports
Modifying the Background Properties of a Report
Creating Custom Report Templates
User Defined Outputs
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Solution field provides a drop down selection list of available solutions (TR, AC, or DC).
Domain field provides a drop down list of domains. Available selections may include
Sweep, Time, or Spectral - depending on the Solution type.
When Spectral is selected, additional fields display in which you can make settings for Plotting Spectral Domain Data.
Optimetrics setup a drop down selection list of all defined Optimetrics analysis setups.
Select Quantities button opens the Select Quantities dialog box in which you can select
additional quantities for plotting.
Trace tab
This contains a dropdown menu for selecting the value(s) and a browse button for selecting from a list if sweeps (if available).
Y section
Category - Available categories depend on the Solution type and the design. This lets you
specify the category of information for the Y component.
Quantity for Y.
Function to apply to the Y quantities.
Value field displays the currently specified Quantity and Function.
Range Function button -- opens the Set Range Function dialog. This applies currently
specified Quantity and Function.
Families tab:
Nominals field (disabled if none exist in the design) allows you to Set All Variables to Nominal, Set All Unswept Variables to Nominal, or to Choose Nominals to open a dialog box in
which you can select the variables you want to set to nominal values.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Use Time as a primary sweep for TR solutions. Use Frequency as a Primary Sweep for
AC solutions.)
For the X-axis definition, only the available Primary Sweep quantity can be used.
For the Y-axis definition, any available quantity can be selected.
A set of N variations, where N is greater than one, must be selected under the Families
tab.
Set the desired Number of bins (the maximum number of rectangles used to represent the
number of outcomes). The number of bins must be between 2 and 1000.
Set the Value to sample at - the instance value of the selected Primary Sweep in milliseconds for Time, or kiloHertz for Frequency- at which the number of outcomes are computed among all N selected variations.
Update Report
Real Time checked -- enable real time updates for all reports.
Real Time unchecked -- enables drop down menu to Update All Reports or Update This
Report. Traces are updated to latest data available if you click Update This Report or after
last pass has been solved.
New Report. Adds a report to the Project tree under the Results icon. The new report is displayed in the Project window.
Add Trace - enabled when you have added a New Report, or selected an existing report to
modify. When you add traces, the new traces are displayed in the Project window under the
report.
Apply Trace - updates the selected traces in a report based on further processing or changes.
When you edit a trace, this button applies the current values to that trace.
Output Variables - opens the Output Variables dialog.
Options - opens the Report Setup Options dialog. This contains a checkbox for using the
advanced mode for editing and viewing trace components. Advanced mode is automatic if the
Generating Reports and Post-Processing 18-3
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
trace requires it. It also contains a field for setting the maximum number of significant digits to
display for numerical quantities.
Note
Open the Report dialog box and make the following changes:
2.
Select the desired transient solution and set the Domain to Spectral in the Context area.
3.
Set the Start Time and Stop Time as desired to avoid circuit startup artifacts or late time data.
4.
The number of harmonics to use in the FFT calculation can be set in the # Harmonics field.
Information about the Resolution Bandwidth and Maximum Frequency of the spectral data
will be updated automatically as the start time, stop time, and maximum number of harmonics
are varied. The start and stop times must lie within the transient simulation time limits.
5.
To control advanced settings such as noise threshold, integration type, and windowing, select
the Advanced button to the right of the # Harmonics field to open the Advanced dialog.
a.
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. You can apply a
window to the transient data to help resolve closely spaced harmonics and to reduce spectral leakage due to the finite nature of the time signal. Choose the Window Type to apply
to the data from the following list:
Window Function
Preferred Use
Rectangular (default)
Bartlett
Blackman
Hamming
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Window Function
Preferred Use
Hanning
Kaiser
Selecting the Kaiser plot also enables the Kaiser Param field to
specify an associated Kaiser parameter. The larger the Kaiser
parameter, the wider the window. The parameter controls the tradeoff between width of the central lobe and the area of the side lobes.
Welch
Weber
Lanzcos
b.
If desired, select the Adjust Coherent Gain checkbox, so that the signal levels are
adjusted (based on the window type) as if no window were used. When non-rectangular
windows are used, the window automatically changes the power level of the signal. This is
known as the coherent gain or processing loss of the window.
c.
If desired, change the Noise threshold (default value is 40 dB). This setting filters out data
that is more than the specified amount below the maximum magnitude.
d.
Set the Integration type as desired. FFT, the default integration type, is faster.
Note
6.
Fourier Integration may be slightly more accurate than FFT, but can be much slower,
requiring a long time to create results.
For more information about the use of windows in harmonic analysis see: F.J. Harris, On the Use
of Windows for Harmonic Analysis with the Discrete Fourier Transform, pp. 51-83, Proc. IEEE,
vol. 66, no. 1, Jan 1978.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
On the Simplorer Circuit menu or the Project tree, point to Results, and then select either
Create Standard Report or Create BodeNyquist Report and from the cascading menu
select the Display Type for the desired 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 Simplorer Circuit>Results>Report Templates>PersonalLib><templateName>.
The Report dialog box appears.
2.
In the Context section make selections from the following fields, depending on the design and
solution type.
Solution a drop down selection list of the available solutions, whether sweeps or adaptive passes.
Domain a drop down selection list of domain(s) relevant to the chosen Solution. For
transient reports, the domain can be Spectral or Time. For AC reports, the domain is
Sweep. For DC reports, the domain is Time.
When Spectral is selected, additional fields display in which you can make settings for
Plotting Spectral Domain Data.
Optimetrics setup a drop down selection list of all defined Optimetrics analysis setups.
Select Quantities button opens the Select Quantities dialog box in which you can
select additional quantities for plotting.
3.
The Update Report sections controls whether or not reports are updated in real time. By
default, reports are updated in real time. If Real time is unchecked, use the Update button to
update either the current report or all reports manually.
4.
In the Y Component section of the dialog make selections for the following:
a.
Category - contents of this list depend on the Solution type and the design. This field lets
you specify the category of information for the Y component.
b.
Note
The Quantity text field can be used to filter the Quantity list by typing in text. It is
enabled if the Category selected produces a lengthy Quantities list.
c.
d.
Ytext box- displays the currently specified Quantity and Function. You can edit this
field directly.
Note
The text color shows whether or not the expression is valid (blue for valid expressions,
red for invalid).
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
e.
5.
6.
Range Function button - opens the Set Range Function dialog. This applies currently
specified Quantity and Function.
Select the Primary Sweep value(s) from the drop down menu.
b.
If sweeps are available, you can select the browse button [...] to display a dialog that lets
you select particular sweep or sweeps, or all sweeps.
The Families tab of the Report dialog 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. You can make selections for the following:
a.
Sweeps allows you to edit the swept variable values that will be displayed by clicking
the [...] button in the Edit field., then choosing the desired variable values in the popup window. You can use a scroll bar to navigate the list.
- To select all values, click the checkbox for Use all values. This writes All in the
value field for that variable. You can also select individual values by clicking on
them.
- To select a range of values, hold down the Shift key, and click again.
- To select intermittent additional values, hold the CTRL key and click additional values. The values you select are highlighted in the list, and are also listed in the Values
column for that variable.
- To select all, use the Select All button. This highlights the complete list, as well as
listing all values for the variable in the Value field.
- To clear the selections, use the Clear All button.
b.
7.
In the Nominals field (disabled if none exist in the design) choose either Set All Variables to Nominal, Set All Unswept Variables to Nominal, or to Choose Nominals to
open a dialog box in which you can select the variables you want to set to nominal values.
Choose All Families (default selection) to enable traces for all families selected on the
Families tab to be displayed.
b.
Choose Statistics to select various statistical functions to apply to the traces selected on
the Families tab. The selected functions can then be plotted on a new report, or added to
the currently active report.
c.
Choose Histogram to generate a histogram plot based on the family of curves selected on
the Families tab. Observe the following general guidelines when generating histograms:
Generating Reports and Post-Processing 18-7
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
8.
For the X-axis definition, only the available Primary Sweep quantity can be used.
For the Y-axis definition, any available quantity can be selected.
A set of N variations, where N is greater than one, must be selected under the Families
tab.
Set the desired Number of bins (the maximum number of rectangles used to represent the
number of outcomes). The number of bins must be between 2 and 1000.
Set the Value to sample at - the instance value of the selected Primary Sweep in milliseconds for Time, or kiloHertz for Frequency at which the number of outcomes are computed among all N selected variations.
The Report dialog command buttons permit you create a new report with the settings you provide, or to modify an existing report.
9.
Use Time as a primary sweep for TR solutions. Use Frequency as a Primary Sweep for
AC solutions.)
New Report. Adds a report to the Project tree under the Results icon. The new report is
displayed in the Project window.
Add Trace - enabled when you have added a New Report, or selected an existing report to
modify. Click this to add one or more traces to the report. When you add traces, the new
traces are displayed in the Project window under the report.this is enabled when you have
created or selected a report.
Apply Trace - updates the selected traces in a report based on further processing or
changes. When you edit a trace, this button applies the current values to that trace.
Output Variables - opens the Output Variables dialog.
Options - opens the Report Setup Options dialog. This contains a checkbox for using 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.
Close - closes the Modify Report dialog.
10. To speed redraw times for changed plots, perform a Save. This saves the data that comprises
expressions.For example if re(S11)*re(S22) is requested over multiple widths, each of the S11
and S22 are stored when you save. If you do not do a save of a changed plot, the changed version is not stored.
Related Topics
Modifying Reports
Creating Custom Report Templates
18-8 Generating Reports and Post-Processing
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
Right-click in the report window (or right-click on the desired report icon in the project tree)
and select Export then Browse to open the Export Report dialog.
3.
Select the Ansoft ReportData files option (.rdat) in the Save as type selection drop down.
4.
Navigate to the desired location and either create a file name or select an existing file for the
exported report; and then click Save.
Right-click on the Results folder in the project tree and select Create Report From File.
2.
Browse to select the desired Ansoft ReportData file (.rdat); and then click Open.
3.
The selected report is added to the design and opens in a new report window.
Related Topics
Exporting Plot Data
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Modifying Reports
To modify the data that is plotted in a report:
1.
2.
3.
Modify the report settings as desired. Refer to Creating a New Report for detailed information
on the various settings for this dialog box.
You can also view and edit the properties of Reports and their traces via their Properties windows. See Modifying Background Properties of a Report.
Related Topics
Showing and Hiding Active View Objects
Modifying Background Properties of a Report
Modifying the Legend in a Report
Working with Traces
Editing the Display Properties of Traces
Add Trace Characteristics
Adding Data Markers to Traces
Creating Custom Report Templates
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
On the View menu or on the menu bar, click Active View Visibility.
The Active View Visibility dialog box appears.
2.
Select the tab for the object type you want to show or hide.
By default, objects on a tab are listed by name in alphabetical order. You can invert the order
by clicking the Name bar above the Name field. For reports with large numbers of objects, you
can resize the dialog box for easier selection.
3.
On the desired tab, check the Visibility checkbox for objects you want to show in the active
view window. Uncheck the box to hide objects.
Clicking the Visibility bar above the check box field toggles the visibility of all objects in the
list simultaneously.
You can also use the Name text box to type in an object name and control visibility for the
named object via the Show and Hide buttons.
4.
When finished making changes, click Done to close the dialog box.
2.
You must select an editable object in the report to be able to edit its properties.
Click on an object to select it and to view its Properties in the docked properties window. To
open Properties window, either double click on the selected object, or click Edit>Properties
on the toolbar.
The selectable objects in reports are as follows:
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
checkbox are grouped in the Properties dialog as Subtitle. Edits to the Subtitle Font Property affects both of them.
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
Generating Reports and Post-Processing 18-11
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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.)
Legend this lets you edit the Properties for whether to Show Trace Name, Show 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.
Traces you can select traces either in the Legend or on the plot. The trace will turn
green when selected. Editable properties for traces 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.
Grid Editable grid properties include: Grid border color, major and minor grid line colors and line styles, and whether to show the major and minor X and Y grids.
X or Y Axis Tab the defaults for most of these values are set in the Report 2D Options
Axis tab.
Specify Name selecting this enables you to change the axis name.
Name this describes the axis to which the following properties/options refer.
These are selected in the Modify Report dialog.
Axis Color set the color by clicking the color bar to display the Set color dialog
box. Select a default or custom color and click OK.
Text Font click the cell to display the edit Font dialog box in which you can select
from a list of available fonts, styles, sizes, and colors. The dialog also contains a preview field. Click OK to apply the font edits and close the dialog box.
-Manual Format (section)
Number format select from the drop down menu, Auto, Decimal, or Scientific notation.
Field Width enter a real value.
Field Precision enter a real value.
Axis Scaling use the drop down menu to select scaling as Linear or Log. For the Y
axis, all zero and negative values are discarded before log scaling is applied.
Specify Min check box that enables the Min field.
Min minimum axis value. text entry in same units as axis units. Saved as SI internally.
Specify Max Checked, enables the user to set the Max value to be displayed.
Unchecked, Simplorer automatically sets the Max value.
Max -- maximum axis value. text entry in same units as axis units. Saved as SI inter-
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
nally.
Specify Spacing Checked, enables the user to set the Spacing value to be displayed. Unchecked, Simplorer automatically sets the Spacing value.
Spacing the spacing of major tick divisions within the axis scaling range.
Value must be greater than zero. If the value exceeds the specified axis range,
spacing is automatically adjusted (entry is in same units as axis units. Saved as SI
internally.)
Minor Tick Divs the number of minor tick divisions displayed on the axis
between major tick divisions. Entry must be greater-than or equal-to 1 and less
than 20.
Auto Units use the check box to auto-compute the correct units for the axis.
Units click on the cell to select from a menu of available units if you have not
checked Auto Units.
3.
Map Infinity To enter a real value for the Map Infinity Mode.
When finished editing properties, click OK to apply the changes and close the dialog box.
Related Topics
Modifying Reports
Working with Traces
Modifying the Legend in a Report
Editing the Display Properties of Traces
Setting Report2D options
Creating Custom Report Templates
2.
Use View>Active View Visibility or the Show/Hide icons on the toolbar to display or hide the
Generating Reports and Post-Processing 18-13
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
report.
Either command displays the Active View Visibility dialog box.
3.
4.
Check/uncheck the Visibility checkbox to show/hide the Legend, and click OK to apply the
change and close the dialog box.
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.
2.
Position the mouse tip over the edge you want to resize.
The mouse pointer changes to a horizontal or vertical line with arrow tips.
2.
Click and drag the horizontal or vertical edge to the desire size and release.
Related Topics
Showing Objects
Hiding Objects
Modifying Reports
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
3D Report Attributes
To modify 3D report attributes:
1.
Right-click in a 3D report window and select Modify attributes from the context menu.
A dialog box appears containing four tabs: Color map, Scale, Traces, and Labels.
2.
3.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Spinning a 3D Report
You can set a 3D report spinning around any axis, to enable viewing from multiple angles without
having to rotate repeatedly.
1.
On the View menu, click Spin. Alternatively, right-click on the 3D graph, select View from
the pulldown menu, and then select Spin from the subordinate menu. The cursor changes to the
Spin mode cursor (curved arrows).
2.
Left-click and drag the mouse in the direction and at the speed you want to spin the view.
When you release the left button, the image begins spinning continually.
3.
To stop spinning, left-click the mouse again in the report window. You can start another spin in
the same or another direction and speed by repeating step 2.
4.
To end Spin mode, press the ESC key or deselect Spin on the View menu.
In the Project Tree, right-click on the report name of interest to display the shortcut menu and
click Save as Template:
This displays the Report Save As file browser. By default, the directory is your ProjectDirectory\PersonalLib\ReportTemplates directory.
2.
3.
You must provide a file name, which will be given an *.rpt extension.
It is good practice to give the template a descriptive name, showing both the kind of format
you begin with (such as Rectangular Plot or Digital Plot) and a description of the distinguishing edits (such as for company name, or color scheme). Once saved, this name will appear on
the Results>Report Templates>PersonalLib menu.
4.
The Save As Type field currently supports the Ansoft Report Format (*rpt) format.
5.
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.
Related Topics
Modifying Reports
Modifying the Background Properties of a Report
18-16 Generating Reports and Post-Processing
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Show X Scrollbar check the box to display a scrollbar beneath the X-axis on the report.
The scrollbar spans the entire visible width of the plot. Names of data markers you have added
to the plot appear on the scrollbar showing their relative locations on the plot. A small tab (and
vertical line - depending on the Thumb trans setting) appears under the scrollbar to mark the
locations of X-data markers present on the plot.
The scrollbar contains a thumb slider. When first displayed, the slider completely fills the
scrollbar. In addition to the Thumb width setting in the Properties window, you can change
the width dynamically by moving the mouse pointer over either the left or right edge of the
thumb slider until the pointer changes to a horizontal two-headed arrow. Click and hold the left
mouse button and slide the edge of the thumb to resize it. As the thumb width changes, the
scale of the graph and the portion of the plot shown change accordingly making the thumb
narrower zooms in, widening the thumb zooms out. Sliding the thumb scrolls the plot horizontally in the graph window.
Background color click to open a color selection box for setting the background color of the
scrollbar.
Thumb color click to open a color selection box for setting the thumb slider color.
Thumb trans click to open a Set Transparency dialog box containing a slider that sets the
transparency of the thumb. A text entry box shows the current setting. You can also enter a
value between 0 (opaque) and 1 (transparent) directly in the box to set transparency.
Thumb start sets the starting X-value of the plot displayed in the graph window.
Thumb width sets the X-axis value range of the plot displayed in the graph window. The
width of the thumb slider changes accordingly
For example, if the original plots X-axis range was 0 to 40, setting Thumb start to 5, and setting Thumb width to 20 changes the scale to show a range between 5 and 25 - effectively
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
You can restore the plot to its original view by right-clicking anywhere in the plot
window, then selecting View>Fit All from the pop-up menu.
Thumb Slider
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Polar Plot
Radiation Pattern
Data Table
A grid with rows and columns that displays, in numeric form, selected
quantities against a swept variable or other quantity.
Bode Plot
Nyquist Plot
Note
Outputs that are Boolean (enum-type) can only be plotted in Digital Plots or in Data
Tables.
In addition to the above reports, you can also generate a Plot-On-Schematic, which is a standard
2D Rectangular Plot associated with the selected component, displaying the plot alongside the
component in the Schematic editor.
On the Simplorer Circuit menu or the Project tree, point to Results, and then select Create
Standard Report>Rectangular Plot.
The Report dialog box appears.
Generating Reports and Post-Processing 18-19
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
In the Context section make selections from the following field or fields, depending on the
design and solution type.
Solution field with a drop down selection list. This lists the available solutions, whether
sweeps or adaptive passes.
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. The domain can be Sweep,
Spectral, or Time.
When Spectral is selected, additional fields display in which you can make settings for
Plotting Spectral Domain Data. The magnitude function mag() is also automatically
applied to Quantities selected for plotting in the Y field.
3.
Optimetrics setup a drop down selection list of all defined Optimetrics analysis setups.
Select Quantities button opens the Select Quantities dialog box in which you can
select additional quantities for plotting.
Under the Trace tab, Y component section, specify the information to plot along the y-axis:
a.
b.
c.
In the Function list, click the mathematical function of the quantity to plot.
d.
The Y value field displays the currently specified Quantity and Function. You can edit this
field directly.
Note
e.
4.
The text color shows whether or not the expression is valid (blue for valid
expressions, red for invalid).
When Spectral is selected, the magnitude function mag() is automatically applied
to Quantities selected for plotting in the Y field.
Range Function button -- opens the Set Range Function dialog. This applies currently
specified Quantity and Function.
On the Trace tab, X (Primary sweep) line, specify the quantity to plot along the x-axis in one
of the following ways:.
Select the sweep variable to use from the drop down list.
If sweeps are available, you can select the browse button to display a dialog that lets you
select particular sweep or sweeps, or all sweeps. The quantity will be plotted against the
primary sweep variable listed.
5.
On the Families section, confirm or modify the sweep variables that will be plotted.
6.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
name of that trace is displayed in a box that appears next to the cursor. when you move the
mouse cursor over a trace listed in the Curve Info box, the corresponding trace changes color.
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.
Related Topics
Sweeping a Variable
Working with Traces
Delta Markers in 2DPlots
Modifying Background Properties of a Report
Creating a Plot-On-Schematic
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
On the Simplorer Circuit menu or the Project tree, point to Results, and then select Create
Standard Report>Polar plot.
2.
In the Context section make selections from the following field or fields, depending on the
design and solution type.
Solution field with a drop down selection list. This lists the available solutions, whether
sweeps or adaptive passes.
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. The domain can be Sweep,
Spectral, or Time.
When Spectral is selected, additional fields display in which you can make settings for
Plotting Spectral Domain Data.
3.
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.
e.
5.
Select Quantities button opens the Select Quantities dialog box in which you can
select additional quantities for plotting.
Note
4.
Optimetrics setup a drop down selection list of all defined Optimetrics analysis setups.
The text color shows whether or not the expression is valid (blue for valid expressions,
red for invalid).
Range Function button -- opens the Set Range Function dialog. This applies currently
specified Quantity and Function.
On the Primary Sweep line, select the sweep variable from the drop down list and the values
against which to plot the Polar Component.
Click New Report.
This creates a new report in the Project tree, displays the report with the defined trace, and
enables the Add Trace button on the Report dialog box.
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 move the mouse pointer close to a trace, the quantity
name of that trace is displayed in a box that appears next to the cursor. when you move the
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
mouse cursor over a trace listed in the Curve Info box, the corresponding trace changes
color.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
Reviewing 2D Polar Plots
Sweeping a Variable
Working with Traces
RX
GB
1
R + jX = ---------------G + jB
where
G = conductance
B = susceptance
VSWR
A scale below the plot displays the scale of points along the R-axis.
1 + S ij
-----------------.
1 S ij
Related Topics
Creating 2D Polar Plots
On the Simplorer Circuit menu or the Project tree, point to Results, and then select Create
Standard Report>Radiation Pattern.
The Report dialog box appears, and a Radiation Pattern icon appears under Results in the
Project tree.
Generating Reports and Post-Processing 18-23
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
In the Context section make selections from the following field or fields, depending on the
design and solution type.
Solution field with a drop down selection list. This lists the available solutions, whether
sweeps or adaptive passes.
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. The domain can be Sweep,
Spectral, or Time.
When Spectral is selected, additional fields display in which you can make settings for
Plotting Spectral Domain Data.
3.
Optimetrics setup a drop down selection list of all defined Optimetrics analysis setups.
Select Quantities button opens the Select Quantities dialog box in which you can
select additional quantities for plotting.
In the Trace tab Mag area, specify the information to plot along the R-axis, or the axis measuring magnitude:
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
e.
The text color shows whether or not the expression is valid (blue for valid expressions,
red for invalid).
Range Function button -- opens the Set Range Function dialog. This applies currently
specified Quantity and Function.
4.
In the Trace tab Ang (Primary sweep) line, specify the sweep variable from the drop down
list, and specify all values or select values.
5.
6.
Optionally, add another trace to the plot by following the procedure above, using Add Trace
rather than New Report.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Related Topics
Sweeping a Variable in a Report
Working with Traces
On the Simplorer Circuit menu or the Project tree, point to Results, and then select Create
Standard Report>Data Table.
The Report dialog box appears.
2.
Similarly, if you drew a data table directly on a schematic using either the
Draw>Report>Datatable - Columns or Draw>Report>Datatable - Rows command,
double-clicking the data table on the schematic opens the Report dialog box.
In the Context section make selections from the following field or fields, depending on the
design and solution type.
Solution field with a drop down selection list. This lists the available solutions, whether
sweeps or adaptive passes.
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. The domain can be Sweep,
Spectral, or Time.
When Spectral is selected, additional fields display in which you can make settings for
Plotting Spectral Domain Data.
3.
Optimetrics setup a drop down selection list of all defined Optimetrics analysis setups.
Select Quantities button opens the Select Quantities dialog box in which you can
select additional quantities for plotting.
Show last value only - unchecked by default. checked if a transposed data table has been
added to the sheet using the Draw>Report>Datatable - Rows command.
On the Trace tab, select the quantity you are interested in and its associated function:
a.
b.
In the Quantity list, click the values to plot. Use Ctrl-click to make multiple selections.
c.
Optionally, in the Function list, click the mathematical function to apply to the quantity.
d.
The Y field displays the currently specified Quantity and Function. You can edit this
field directly.
Note
e.
The text color shows whether or not the expression is valid (blue for valid expressions,
red for invalid).
Range Function button -- opens the Set Range Function dialog. This applies currently
specified Quantity and Function.
Generating Reports and Post-Processing 18-25
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
4.
On the Primary Sweep line, select the sweep variable from the drop down list, and specify All
values or select values.
5.
For the X field, either check Default to use the default x quantity, or uncheck Default to
choose another quantity in the Select X Component dialog box.
6.
7.
Optionally, add other trace(s) to the plot by following the procedure above, using Add Trace
rather than New Report.
Related Topics
Working with DataTables
Sweeping a Variable
Working with Traces
To change the column order in a data table, drag a column head to the desired position and
drop it. Column and row headings remain visible when scrolling.
To restore the original column order if columns have been moved (reordered), right-click anywhere in the table and select the Reset command on the context menu.
To add a new set of data to the table each time an analysis is run, right-click anywhere in the
table and select the Accumulate command on the context menu.
To add a note to the data table, right-click anywhere in the table, select the Add Note command on the context menu, and type the note text in the resulting dialog box. Once created, you
can edit the notes font, background and border colors and visibility, and the border width.
The following properties tabs appear in both the Properties window and Properties dialog box for
the data table.
Data Table Tab
Show Global Min-Max - Displays the global minimum and maximum values of the unfiltered
data values in each column (or row if the table has been transposed). These values are displayed at the beginning of the table.
Show Local Min-Max - This field displays only if you choose to specify Min and Max values
on the Data Filter tab. Displays the local minimum and maximum values of the data values in
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
each column (or row if the table has been transposed). These values are displayed at the beginning of the table.
Transpose - Rearranges the data table such that each column of data becomes a row. Column
and row headings remain visible when scrolling.
Num Data Per Page - Sets the number of rows of data displayed per page. When multiple
pages are available for viewing, you can use the arrows and page numbers at the bottom of the
table to navigate through the pages.
Goto Page - This field appears only if multiple pages of data are present. Clicking the [...] button opens the Goto Page dialog box where you can choose the desired data page.
Show Trace Name - Checkbox that toggles display of all trace names.
Show Solution Name - Checkbox that toggles display of all solution names.
Show Variation Key - Checkbox that toggles display of all variation key names.
Font - Opens the Font dialog box in which you can set the font characteristics for the table.
Back Color - Sets the table background color.
Border Color - Sets the table border color.
Border Width - Sets the table border width.
Grid Color - Sets the table grid line color.
Grid Line Width - Sets the table grid line width.
Header Tab
Title Font - Opens the Font dialog box in which you can set the font characteristics for the
table title.
Sub Title Font - Opens the Font dialog box in which you can set the font characteristics for the
Generating Reports and Post-Processing 18-27
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
table sub-title.
Company Name - Field in which you can enter text for the sub-title.
Design Name - Toggles display of the design name in the table header.
On the Simplorer Circuit menu or the Project tree, point to Results, and then select Create
Standard Report>3D Rectangular Plot.
The Report dialog box appears.
2.
In the Context section make selections from the following field or fields, depending on the
design and solution type.
Solution field with a drop down selection list. This lists the available solutions, whether
sweeps or adaptive passes.
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. The domain can be Sweep,
Spectral, or Time.
When Spectral is selected, additional fields display in which you can make settings for
Plotting Spectral Domain Data. The magnitude function mag() is also automatically
applied to Quantities selected for plotting in the Z field.
3.
Optimetrics setup a drop down selection list of all defined Optimetrics analysis setups.
Select Quantities button opens the Select Quantities dialog box in which you can
select additional quantities for plotting.
Under the Z Component area, specify the information to plot along the z-axis:
a.
b.
c.
In the Function list, click the mathematical function of the quantity to plot.
d.
The Z value field displays the currently specified Quantity and Function. You can edit this
field directly.
Note
e.
4.
The text color shows whether or not the expression is valid (blue for valid
expressions, red for invalid).
When Spectral is selected, the magnitude function mag() is automatically applied
to Quantities selected for plotting in the Z field.
Range Function button -- opens the Set Range Function dialog. This applies currently
specified Quantity and Function.
On the Y (Secondary sweep) lines, specify the information to plot along the y-axis in one of
the following ways:
Select the sweep variable to use from the drop down list.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
5.
On the X (Primary sweep) lines, specify the information to plot along the x-axis in one of the
following ways:
6.
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.
Select the sweep variable to use from the drop down list.
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.
7.
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
Add Trace Characteristics
On the Simplorer Circuit menu or the Project tree, point to Results, and then select Create
Standard Report>3D Polar 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.
Solution field with a drop down selection list. This lists the available solutions, whether
sweeps or adaptive passes.
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. The domain can be Sweep,
Spectral, or Time.
When Spectral is selected, additional fields display in which you can make settings for
Plotting Spectral Domain Data. The magnitude function mag() is also automatically
Generating Reports and Post-Processing 18-29
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
3.
Optimetrics setup a drop down selection list of all defined Optimetrics analysis setups.
Select Quantities button opens the Select Quantities dialog box in which you can
select additional quantities for plotting.
In the Mag Component area, specify the information to plot along the R-axis, or the axis measuring magnitude:
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 mag value field displays the currently specified Quantity and Function. You can edit
this field directly.
Note
e.
The text color shows whether or not the expression is valid (blue for valid
expressions, red for invalid).
When Spectral is selected, the magnitude function mag() is automatically applied
to Quantities selected for plotting in the mag field.
Range Function button -- opens the Set Range Function dialog. This applies currently
specified Quantity and Function.
4.
On the Theta (Secondary Sweep) line, select the sweep variable from the drop down list and
specify all values or select values to plot along the theta-axis:
5.
On the Phi (Primary Sweep) line, select the sweep variable from the drop down list, and specify all values or select values to plot along the phi-axis:
6.
7.
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
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
On the Simplorer Circuit menu or the Project tree, point to Results, and then select Create
Standard Report>Rectangular Stacked Plot.
The Report window appears.
2.
In the Context section make selections from the following field or fields, depending on the
design and solution type.
Solution field with a drop down selection list. This lists the available solutions, whether
sweeps or adaptive passes.
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. The domain can be Sweep,
Spectral, or Time.
When Spectral is selected, additional fields display in which you can make settings for
Plotting Spectral Domain Data.
3.
Under the Trace tab, Y component section, specify the information to plot along the y-axis:
In the Category list, click the type of information to plot.
b.
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.
e.
6.
The text color shows whether or not the expression is valid (blue for valid expressions,
red for invalid).
Range Function button -- opens the Set Range Function dialog. This applies currently
specified Quantity and Function.
On the Trace tab, X (Primary sweep) line, specify the quantity to plot along the x-axis in one
of the following ways:.
5.
Select Quantities button opens the Select Quantities dialog box in which you can
select additional quantities for plotting.
a.
Note
4.
Optimetrics setup a drop down selection list of all defined Optimetrics analysis setups.
Select the sweep variable to use from the drop down list.
If sweeps are available, you can select the browse button to display a dialog that lets you
select particular sweep or sweeps, or all sweeps. The quantity will be plotted against the
primary sweep variable listed.
On the Families section, confirm or modify the sweep variables that will be plotted.
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 quanGenerating Reports and Post-Processing 18-31
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
tities 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 move the mouse pointer close to a trace, the quantity
name of that trace is displayed in a box that appears next to the cursor. when you move the
mouse cursor over a trace listed in the Curve Info box, the corresponding trace changes color.
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-axix scale.
Related Topics
Sweeping a Variable
Working with Traces
Delta Markers in 2DPlots
Modifying Background Properties of a Report
The Bode magnitude plot is a graph of log magnitude (Gain) versus log frequency. The Gain
values by default are expressed in decibels.
The Bode phase plot is a graph of phase angle versus log frequency. The Phase angle by
default is expressed in degrees.
Note
On the Simplorer Circuit menu or the Project tree, point to Results, and then select Create
BodeNyquist Report and from the cascading menu select Bode Plot.
The Report window appears.
2.
In the Context section make selections from the following field or fields, depending on the
design and solution type.
Solution field with a drop down selection list. This lists the available solutions, whether
sweeps or adaptive passes. Select AC:AC.
Domain field with a drop down selection list. Select Sweep.
Optimetrics setup a drop down selection list of all defined Optimetrics analysis setups.
Select Quantities button opens the Select Quantities dialog box in which you can
select additional quantities for plotting.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
3.
For the Primary Sweep field, specify the quantity to plot along the x-axis in one of the
following ways:.
b.
Select the sweep variable F (frequency) to use from the drop down list.
If sweeps are available, you can select the browse button to display a dialog that lets
you select particular sweep or sweeps, or all sweeps. The quantity will be plotted
against the primary sweep variable listed.
For the X field, ensure that the Default box is checked ensuring that Frequency is plotted
along the x-axis.
c.
In the Category list, click the type of information to plot along the y-axis.
d.
In the Quantity list, click the value to plot along the y-axis.
e.
Optionally, in the Function list, click the mathematical function to be applied to the quantity to plot.
The Signal field displays the currently specified Quantity and Function that will be plotted along the y-axis. You can edit this field directly.
Note
f.
4.
5.
The text color shows whether or not the expression is valid (blue for valid expressions,
red for invalid).
Range Function button -- opens the Set Range Function dialog. This applies currently
specified Quantity and Function.
Optionally, on the Families tab, confirm or modify the sweep variables that will be plotted.
Click New Report.
This creates a new Bode plot in the Project tree, displays the plot 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 x-y magnitude and phase graphs. 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
Sweeping a Variable
Working with Traces
Delta Markers in 2DPlots
Modifying Background Properties of a Report
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
On the Simplorer Circuit menu or the Project tree, point to Results, and then select Create
BodeNyquist Report>Nyquist Plot.
The Report window appears.
2.
In the Context section make selections from the following field or fields, depending on the
design and solution type.
3.
The Solution field lists the available solutions. For Nyquist Plots, select AC:AC.
In the Domain field select Sweep.
Optimetrics setup a drop down selection list of all defined Optimetrics analysis setups.
Select Quantities button opens the Select Quantities dialog box in which you can
select additional quantities for plotting.
b.
c.
In the Quantity list, click the value to plot. Typically this will be the output signal you
wish to investigate.
d.
Optionally, in the Function list, click the mathematical function to be applied to the quantity to plot.
The Signal field displays the currently specified Quantity and Function that will be plotted along the y-axis. You can edit this field directly.
Note
4.
5.
The text color shows whether or not the expression is valid (blue for valid expressions,
red for invalid).
e.
Optionally, the Range Function button opens the Set Range Function dialog in which a
range function can be selected and applied to the currently specified Quantity and Function.
f.
For the Base field, choose the desired quantity to plot from the Select Base Component
window.
Optionally, on the Families tab, confirm or modify the sweep variables that will be plotted.
Click New Report.
This creates a new Nyquist plot in the Project tree, displays the plot 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 quan-
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
tities you specified on a polar Nyquist 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
Sweeping a Variable
Working with Traces
Delta Markers in 2DPlots
Modifying Background Properties of a Report
On the Simplorer Circuit menu or the Project tree, point to Results, and then select Create
Standard Report>Digital Plot.
The Report window appears.
2.
In the Context section make selections from the following field or fields, depending on the
design and solution type.
3.
Optimetrics setup a drop down selection list of all defined Optimetrics analysis setups.
Select Quantities button opens the Select Quantities dialog box in which you can
select additional quantities for plotting.
Under the Trace tab, Y component section, specify the information to plot along the y-axis:
a.
b.
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
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
directly.
Note
The text color shows whether or not the expression is valid (blue for valid expressions,
red for invalid).
Creating a Plot-On-Schematic
After Simplorer has generated a solution, you can analyze your solution data by creating a 2D
report, or graphical representation, that displays the relationship between a designs values and the
corresponding analysis results. One convenient way to generate a 2D report is to create a Plot-OnSchematic, which generates a standard 2D Rectangular Plot associated with the selected component, displaying the plot alongside the component in the Schematic editor.
You can create a plot-on-schematic using either the Probe, Quick Probe, or Probe Selection commands as follows:
Probe Command
1.
Right-click on the desired component and highlight Probe in the context menu.
A list of quantities that can be plotted, such as voltage across the component, appears. The list
of quantities is determined by the Probe Quantities & Signals settings on the Simplorer tab
of the Schematic Options dialog box, and any output that is selected in the Defined Outputs
set in the Output dialog box. By default, the probe settings for the Simplorer schematic have
output quantities turned-on.
2.
Note
The plot is associated with the component so that, as the component moves, the plot
moves with it.
The plot can also be relocated directly by selecting and dragging it.
The plot can also be resized by dragging any of its handles.
Text is automatically resized with the plot.
The created plot also appears in the Results folder in the Project tree. Double-clicking the
plot listing in the tree opens it in a new 2D Rectangular Plot window.
If you change the display type to Data Table, the on-sheet plot will go blank (data tables
cannot be shown on the schematic). Instead, a separate Data Table window is displayed.
Each component/net/port can have only one on-sheet plot associated with it. You can, of
course, have multiple plots on the same schematic, but only one such plot for each component.
If you double-click on a plot in the schematic, the plot becomes fully editable. You can
move the legend bar around, change the color of traces, change scaling for X and Y-axis
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
every operation you can normally perform in a regular plot window. You can also add
plot markers. For more information see Modifying Reports. When you click outside of the
plot, it reverts back to being another schematic object.
2.
Use the checkbox to specify whether to use advanced mode when editing and viewing trace
components. (Advanced mode is used automatically if the trace requires it.)
3.
Use the text-box/pull-down-menu to specify the number of significant digits to use when
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
4.
Specify the drag and drop behavior by clicking the radio button:
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Curve
Axis
Grid Tab
Header Tab
Note Tab
Legend Tab
Marker Tab
Marker Table Tab
General Tab
Table tab
For properties controlled by checkboxes, 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.
3.
Click OK.
Line style -- select the options from the drop down menu. The options are Solid, Dot, Dash,
and Dot dash.
Color -- set the color by double clicking to display the Set color dialog. Select a default or custom color and click OK.
Width -- set the line width by editing the real value in the text field.
Arrows -- use the check box to use arrows on the curve ends.
Symbol -- use the check box to have symbols mark the locations of data points on the curve.
Sym Freq -- set the symbol frequency by editing the integer value in the text field.
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.
Fill Sym -- use the check box to set the symbol display as a solid or as hollow.
Sym Color -- set the color for the symbol by double clicking to display the Set color dialog.
Generating Reports and Post-Processing 18-39
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Axis Name this describes the axis to which the following options refer.
Color set the color by double clicking to display the Set color dialog. Select a default or custom color and click OK.
Auto Scale use the check box to toggle whether to auto scale the axis.
Min Scale if Auto Scale it not selected, edit the real value to set the minimum value of the
axix.
Max Scale if Auto Scale is not selected, edit the real value to set the maximum value of the
axis.
Auto Units use the check box compute the correct units for the axis.
Units click on the cell to select from a menu of available units if you have not checked Auto
Units.
Font color set the font color of the axis by double clicking to display the Set color dialog.
Select a default or custom color and click OK.
Edit 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.
Min Gutter % X axis default is 0 and all the Y axes get a default of 5%
Grid Name -- lists the name or letter of the grid. Not editable.
Line Style -- select the options from the drop down menu. The options are Solid, Dot, Dash,
and Dot dash.
Line Color -- set the color by double clicking to display the Set color dialog. Select a default
or custom color and click OK.
Color -- set the color by double clicking to display the Set color dialog. Select a default or custom color and click OK.
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.
Company Name -- click the cell and enter the default company name to be displayed in the
upper left corner of 2D plots.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note Color -- set the color by double clicking to display the Set color dialog. Select a default
or custom color and click OK.
Note 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.
Background Color -- set the color by double clicking to display the Set color dialog. Select a
default or custom color and click OK.
Background Visibility -- use the checkbox to toggle the background for the note on or off.
Border Line Color -- set the color by double clicking to display the Set color dialog. Select a
default or custom color and click OK.
Border Visibility -- use the checkbox to toggle the visibility of the note border.
Border Line Width -- set the line width by editing the real value in the text field.
Show Trace Name -- use the checkbox to toggle the visibility of the trace name.
Show Solution Name -- use the checkbox to toggle the visibility of the solution name.
Show Variation Key -- use the checkbox to toggle the visibility of the variation key.
Text Color -- set the color by double clicking to display the Set color dialog. Select a default or
custom color and click OK.
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.
Background Color -- set the color by double clicking to display the Set color dialog. Select a
default or custom color and click OK.
Border Line Color -- set the color by double clicking to display the Set color dialog. Select a
default or custom color and click OK.
Border Line Width -- set the line width by editing the real value in the text field.
Grid Color -- set the color by double clicking to display the Set color dialog. Select a default
or custom color and click OK.
Marker Color -- set the color by double clicking to display the Set color dialog. Select a
default or custom color and click OK.
Marker 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
Generating Reports and Post-Processing 18-41
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
preview field. OK the selections to apply the font edits and to close the dialog.
Show Intersections -- select the checkbox to show the X data value(s) where the marker
line and plot line(s) intersect.
b.
XMarker Color -- set the color by double clicking to display the Set color dialog. Select a
default or custom color and click OK.
c.
XMarker 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.
d.
Box Background Color -- set the color by double clicking to display the Set color dialog.
Select a default or custom color and click OK.
e.
Line Color -- set the color by double clicking to display the Set color dialog. Select a
default or custom color and click OK.
f.
Line Style -- select the options from the drop down menu. The options are Solid, Dot,
Dash, and Dot dash.
g.
Line Width -- set the line width by editing the real value in the text field.
Related Topics
Modifying Markers on Point Plots
Precision set the precision for marker placement by editing the real value field.
Text Color set the color by double clicking to display the Set color dialog. Select a default or
custom color and click OK.
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.
Background Color set the color by double clicking to display the Set color dialog. Select a
default or custom color and click OK.
Border Line Color set the color by double clicking to display the Set color dialog. Select a
default or custom color and click OK.
Border Line Width set the line width by editing the real value in the text field.
Grid Color set the color by double clicking to display the Set color dialog. Select a default
or custom color and click OK.
Grid Line Width set the line width by editing the real value in the text field.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Background Color set the color by double clicking to display the Set color dialog. Select a
default or custom color and click OK.
Contrast Color set the color by double clicking to display the Set color dialog. Select a
default or custom color and click OK.
Highlight Color set the color by double clicking to display the Set color dialog. Select a
default or custom color and click OK.
Accumulate Depth .
Curve Tooltip Option use the checkboxes to toggle the following properties:
a.
b.
c.
Clipboard Option - use the drop down menus to specify the following properties:
a.
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.
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 checkbox to toggle scientific notation on or off.
Copy to Clipboard use the following checkboxes to toggle the following properties for table
copy operations.:
a.
With Header
b.
Outputs that are Boolean (enum-type) can only be plotted in digital plots or in data
tables.
The values used for a plots axes (which may be X, Y, Z, phi, theta, or R depending on the display
type) can be variables in the design, such as frequency, or functions and expressions based on the
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
designs 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 yaxes. Traces appear in the Project tree under their report. They can be selected, copied and pasted.
When you move the cursor over a trace in a report, the cursor changes to the color of the trace to
show that it can be selected. Similarly, when you move the cursor close to a trace, the quantity
name of that trace is displayed in a box that appears next to the cursor. When you move the mouse
cursor over a trace listed in the Curve Info box, the corresponding trace changes color.
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.
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.
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 blue for valid, red for invalid.
3.
In the Report dialog specify the X axis information (for example Primary Sweep).
4.
Related Topics
18-44 Generating Reports and Post-Processing
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Removing Traces
Editing Trace Properties
Editing the Display Properties of Traces
Add Trace Characteristics
Adding Data Markers to Traces
Copy and Paste of Report and Trace Definitions
Copy and Paste of Report and Trace Data
Delta Markers in 2D Reports
2.
2.
In the docked Properties window for the trace, select the component field of interest, and select
Edit... form the drop down menu.
This displays the an edit Component field window.form which you can edit the category, quantity and function.
3.
Select the trace in the Project tree to display the docked properties window.
2.
In properties window, click the Solution field or the Domain field. If other selections are possible, they can be selected from the drop down menu.
Select the trace in the Project tree to display the docked properties window.
2.
Under the -Variables category, on the Families line, click the Edit button to display the Edit
families dialog.
From this dialog, you can select the Sweeps or Variations radio buttons. Each selection
changes the
If other nominal values are available you can click the ellipsis button to select from a list.
Related Topics
Generating Reports and Post-Processing 18-45
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Removing Traces
Editing the Display Properties of Traces
Add Trace Characteristics
Adding Data Markers to Traces
Discarding Report Values Below a Specified Threshold
Setting Report2D options
Copy and Paste of Report and Trace Definitions
Copy and Paste of Report and Trace Data
Delta Markers in 2D Reports
2.
Click once on the trace to view a Docked Properties window, or double click to open Properties window.
The display properties window for a trace includes a General tab and an Attributes tab.
The General tab properties apply to the general appearance of the plot. They include the Background color, Contrast color, Field width, 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.)
The Attributes Tab properties include the 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.
Note
Box is the default symbol to ensure that curves with single points always appear.
The Attributes Tab properties apply specifically to the Trace. The defaults are set in the
Report2D options. They include:
Name not editable by selecting the trace from the Report. It shows the characteristics of the trace as defined in the Report dialog.
To edit a trace name, see Editing Trace Properties
Color shows the Trace color. Double click to open a Color dialog box. You can
select from Basic colors, or custom colors. You can define up to 16 custom colors by
selecting or by editing the Hue, Saturation, Luminosity, and the Red, Green, and Blue
values.
Line style a drop down menu lets you select Solid, Dot, Dash, or Dot-dash.
Line width a text field lets you edit the numeric value.
Trace type the drop down menu contains entries for Continuous, Discrete, Bar-
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Zero, Bar Infinity, Stick Zero, Stick Infinity, Histogram, Step, Stair, and Digital.
3.
Show Symbol whether to show a symbol at the data points on the line.
Symbol Frequency how often to show symbols on the trace.
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
Fill Symbol use the check box to set the symbol display as a solid or as hollow.
Symbol Color shows the Symbol color. Double click to open a Color dialog box.
You can select from Basic colors, or custom colors. You can define up to 16 custom
colors by selecting or by editing the Hue, Saturation, Luminosity, and the Red, Green,
and Blue values.
Symbol Arrows use the check box to show arrows on the curve
Edit the properties of interest and OK the Properties window to apply the changes and close the
window.
Related Topics
Editing Trace Properties
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. The values
shown in the marker table reflect the units in the X and Y axis. You can sort the marker data by
holding down the space-bar and clicking on a legend column heading. A triangle appears in the
column heading to indicate ascending or descending sort order.
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.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
To end Marker mode, right-click to display the shortcut menu, and select End Marker Mode or
press Esc on your keyboard.
The available Marker mode commands and associated icons are the following:
Marker
-- this command lets you place a marker at an arbitrary point on a selected trace.
X Marker -- this command adds a movable marker at the origin of the plot with a vertical line
rising from the X axis. 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 flag on the vertical line
identifies the Y coordinate on the trace. A trace property lets you lock the drag feature to leave
the marker in place. This marker is not cleared by the Clear All command, and must be deleted
by selecting it and using the Edit Delete command.
Maximum
Minimum
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.:
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.
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.
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.
Previous Minimum
-- places a marker on the previous minimum on a selected trace.
You must exit marker mode and select a marker to enable this command.
Next Data Point (Right) -- moves a selected X marker to the next data point.
Previous Data Point (Left) -- moves a selected X marker to the previous data point.
Next Curve -- selects the next curve in the report, based on the order in the trace legend.
Previous Curve -- selects the previous curve in the report, based on the order in the trace legend.
Clear All -- clears all markers on a report except X Markers.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Set the first marker by left-clicking and holding the mouse button.
2.
Move the mouse without releasing left button to another position, and then release the left button to create second marker.
In the marker text window, you see the difference between the two markers instead of the X, Y
value of marker.
2.
Under the Axis tab, use the scroll bar to find the Specify Discard Values property.
3.
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
checkbox is not enabled.
5.
2.
Click Report 2D>Trace Characteristics, or right-click on the selected trace to display the
short cut menu.
3.
4.
Select the Category, and then an associated Function to apply. The available categories
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
depend on the plot; and the selecting a Category enables the display of associated functions.
Category
Functions
Math
max, min, pk2pk, rms, avg, integ, sum, mean, variance, stddev, integabs,
avgabs, rmsAC, ripple, pkavg, XatYMin, XatYMax, YatXMin,
YatXMax, XatYVal, YatXVal
PulseWidth
Overshoot,
Undershoot
overshoot, undershoot.
TR & DC
Error
Period
Radiation
Given a selected Function, and Category, the Add Trace Characteristics dialog displays a
text field that explains the Purpose of the function. For a list of functions and their definitions,
see the table in Defining Traces Using Range Functions.
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 Default button.
6.
Click the Add button to add the specified characteristics to the Trace.
2.
Click Report 2D>Trace Characteristics, or right-click on the selected trace to display the
short cut menu.
3.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
plotted wave-form. Range functions can be used to extract trace characteristics (such as max, min,
overshoot) from a plot and use those values for additional plotting, or use the values for exporting
to a file, where the data table formats are supported. Range Functions are listed in the Report
dialog and Output Variable dialog for users to employ. Extracted trace characteristics may also be
used in optimetrics.
For example, with a wave-form in a transient plot that contains a square pulse, a range function can
calculate and display a single value that represents the High-to-Low/Low-to-High transition states.
Or, with a plot that shows a pulse, the PulseWidth and RiseTime Range Functions can use the entire
plotted curve to calculate a single number that represents the width or rise-time, and display that
single-number representation directly over the specified range of plotted points.
Range functions trace characteristics are displayed on the report window as a column in legend
window.
Range functions are available from reporter and optimetrics.
Numerous range functions are available in the following categories:
Math functions
Pulse width functions
Overshoot/Undershoot functions
TR & DC functions
Error functions
Period functions
Radiation functions
Eye Measurements functions
Category
Description
Parameter(s)
avg
Math
N/A
avgabs
Math
N/A
crestfactor
TR & DC
deadtime
TR & DC
Obtains the latest time when the qtyl Tolerance:The +/- bandwidth
is within a tolerance of zero.
around 0
delaytime
TR & DC
Obtains the time from zero to 50% of Target: The target value for
the target point.
input
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Range Function
Category
Description
Parameter(s)
distortion
TR & DC
Frequency: Freq in Hz at
which to calculate the RMS
value of the selected quantity
formfactor
TR & DC
fundamentalmag TR & DC
iae
Error
integ
Math
integabs
Math
ise
Error
itae
Error
itse
Error
lSidelobeX
Radiation
X value of left side-lobe occurrence. N/A
(Overridable)
lSidelobeY
Radiation
Y value of left side-lobe occurrence. N/A
(Overridable)
N/A
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Range Function
Category
Description
Parameter(s)
max
Math
N/A
mean
Math
N/A
min
Math
N/A
overshoot
Overshoot/
Calculates peak overshoot given a
Undershoot
threshold value and number of
(Overridable) evenly spaced points over entire time
range.
per
Period
Calculates period.
(Overridable)
pk2pk
Math
pkavg
Math
pmax
Period
Maximum period of input stream.
(Overridable)
pmin
Period
Minimum period of input stream.
(Overridable)
prms
Period
Rms of period of input stream.
(Overridable)
pulsefall9010
Pulse Width
N/A
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Range Function
Category
Description
Parameter(s)
pulsefront1090
Pulse Width
N/A
pulsefront3090
Pulse Width
N/A
pulsemax
Pulse Width
pulsemaxtime
Pulse Width
pulsemin
Pulse Width
pulsemintime
Pulse Width
N/A
Returns the time at which the
minimum pulse value of the selected
quantity is reached.
pulsetail50
Pulse Width
pulsewidth5050
Pulse Width
pw_minus
pw_minus_avg
Pulse Width Average of the negative pulse width Threshold:Y transition value
(Overridable) input stream.
which determines the pulse
width; Number of Points:
Number of evenly spaced time
points
N/A
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Range Function
Category
Description
Parameter(s)
pw_minus_max
pw_minus_min
pw_minus_rms
pw_plus
pw_plus_avg
pw_plus_max
pw_plus_min
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Range Function
Category
Description
Parameter(s)
pw_plus_rms
ripple
Math
risetime
TR & DC
rms
Math
N/A
rmsAC
Math
rSidelobeX
Radiation
X value of right side-lobe
(Overridable) occurrence.
rSidelobeY
Radiation
Y value of right side-lobe
(Overridable) occurrence.
settlingtime
TR & DC
stddev
Math
Returns the standard deviation of
(Overridable) given values.
N/A
sum
Math
Returns the sum of given values.
(Overridable)
N/A
undershoot
Overshoot/
Calculates peak undershoot given a
Undershoot
threshold value and number of
(Overridable) evenly spaced points over entire time
range.
variance
Math
Returns the variance of given values. N/A
(Overridable)
XAtYMax
Math
XAtYMin
Math
N/A
N/A
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Range Function
Category
Description
Parameter(s)
XAtYVal
Math
xdb10Beamwidth Radiation
Width between left and right
x Value:
(Overridable) occurrences of values x db10 from
max.
xdb20Beamwidth Radiation
Width between left and right
x Value:
(Overridable) occurrences of values x db20 from
max.
YAtXMax
Math
YAtXMin
Math
N/A
YAtXVal
Math
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. For example,
you cannot copy a trace from a Modal Solution Data report and paste it in a Far Fields
report.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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
Copying to the Clipboard as Images
Copy and Paste of Report and Trace Data
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
Copying to the Clipboard as Images
Copy and Paste of Report and Trace Definitions
Removing Traces
You can remove traces from the traces list in the following ways:
18-58 Generating Reports and Post-Processing
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Select the trace you want to remove from the Project tree, and then click Delete.
Related Topics
Setting Report2D options
Working with Traces
Add Trace Characteristics
Removing Traces
In the Report dialog, select the variable from the X (Primary Sweep) pull-down menu.
2.
Click the ellipsis [...] button on the X (Primary Sweep) line of the Report dialog box to
displays a popup list of the possible values.
b.
Select All Values or click the Edited button to display a dialog that lets you specify the
sweeps to use.
All of the selected variables values will be plotted.
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.
Some of these functions can operate along an entire curve. These are: deriv, min, max, integ, avg,
rms, pk2pk, cang_deg and cang_rad. These functions have syntax as follows:
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
You can select from the following functions in the Trace tab Function list:
abs
Absolute value
acos
Arc cosine
acosh
ang_deg
ang_rad
Angle in radians
asin
Arc sine
asinh
atan
Arc tangent
atanh
avg
avgabs
cang_deg
cang_rad
conjg
cos
Cosine
cosh
Hyperbolic cosine
crestfactor
dB(x)
20*log10(|x|)
dBm(x)
10*log10(|x|) +30
dBW(x)
10*log10(|x|)
db10normalize
10*log [normalize(mag(x))]
db20normalize
20*log [normalize(mag(x))]
deriv
DDT
even
exp
formfactor
Returns root mean square RMS/Mean Absolute Value for the selected
simulation quantity.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
iae
Returns the integral of the absolute deviation of the selected quantity from
a target value that is entered via the additional argument. To use this
function, you need to open the Add Trace Characteristics dialog and select the
Error category.
im
int
integ
integabs
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
itse
j0
j1
LIMIT (var1,
var2, var3)
Limits the value of the input (var1) the to the specified lower (var2) and
upper (var3) limits.
ln
Natural logarithm
log10
Logarithm base 10
lsidelobex
The x value for the left side lobe: the next highest value to the left of the
max value.
The y value for the left side lobe: the next highest value to the left of the
max value.
lsidelobey
mag
max
Maximum of magnitudes.
max_swp
min
Minimum magnitudes.
min_swp
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
nint
Nearest integer
normalize
Divides each value within a trace by the maximum value of the trace. ex.
normalize(mag(x))
odd
overshoot
per
Calculates period.
pk2pk
Peak to peak. Difference between max and min of the first parameter over
the second parameter. Returns the peak-to-peak value for the selected
simulation quantity.
pkavg
Returns the ratio of the peak to peak-to-average for the selected quantity.
pmax
Period max.
pmin
Period minimum
prms
pulsefall9010
Pulse fall time of the selected simulation quantity according to the 90%10% estimate.
pulsefront9010
Pulse front time of the selected simulation quantity according to the 10%90% estimate.
pulsefront3090
Pulse front time of the selected simulation quantity according to the 30%90% estimate.
pulsemax
Pulse maximum from the front and tail estimates for the selected
simulation quantity.
pulsemaxtime
pulsemin
Pulse minimum from the front and tail estimates for the selected
simulation quantity.
pulsemintime
pulsetail50
Pulse tail time of the selected simulation quantity from the virtual peak to
50%.
pulsewidth5050
Pulse width of the selected simulation quantity as measured from the 50%
points on the pulse front and pulse tail.
PulseWidth
Functions
pw_plus
pw_plus_max
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
pw_plus_min
pw_plus_avg
pw_plus_rms
pw_minus_max
pw_minus_min
pw_minus_avg
pw_minus_rms
polar
re
rect
rem
Fractional part
ripple
Returns the ripple factor (AC RMS/Mean) for the selected quantity.
rms
rmsAC
rsidelobex
The x value for the right side lobe: the next highest value to the right of
the max value.
rsidelobey
The y value for the right side lobe: the next highest value to the right of
the max value.
sgn
Sign extraction
sin
Sine
sinh
Hyperbolic sine
sqrt
Square root
tan
Tangent
tanh
Hyperbolic tangent
Undershoot
XAtYMax
XAtYMin
xdb10beamdwidt 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
h
Characteristics dialog and select the Radiation category.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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.
y0
y1
Variables
Output Variables User defined expressions applied to derive quantities from the original
field solution.
2.
Select a quantity to plot from the Quantity list. The available quantities will depend upon the
selected category and the setup of the design.
In the Solution pull-down list in the Report dialog box, click the imported data you want to
plot.
2.
2.
3.
Select the Category, and then an associated Function to apply. The available categories
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
depend on the plot, and Category enables the display of associated functions.
Category
Math
max, min, pk2pk, rms, avg, integ, integabs, avgabs, rmsAC, ripple,
pkavg, XatYMin, XatYMax, XatYVal
PulseWidth
Overshoot,
Undershoot
overshoot, undershoot.
TR & DC
Error
Period
Radiation
Given a selected Function, and Category, the Set Range Function dialog displays a text field
that explains the Purpose of the function. For a list of functions and their definitions, see the
table in Defining Traces Using Range Functions.
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, use the ellipsis [...] button and uncheck Use
All Sweeps.
This enables a list of the sweeps. The sweep(s) you select is displayed on the Over Sweep line.
You can use the buttons to Clear All Selections or Select All sweeps.
6.
7.
Select the Sweeps Default or Edited radio buttons to specify whether to accept the default or
edited sweeps.
To edit the sweeps further, select the ellipsis button to display an Edit Sweep dialog.
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.
8.
Related Topics
Selecting a Function
Generating Reports and Post-Processing 18-65
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Context section, where you specify the Report type, the Solution, and for appropriate report
types, the Domain. Changing the Report type affects whether the Domain menu appears, and
may affect the functions listed in the Calculation section.
Output Variables section, where you can specify the name and expression for a new output
variable.
Quantities section, where you can insert quantities into the Expression area of the Output
Variables section.
Function section, where you can insert completed expressions into the Expression area of the
Output Variables section.
2.
3.
In the Output Variables section, enter a name for the new variable in the Name box.
To enter an expression, do one or both of the following:
a.
Type part or all of the expression directly in the Expression area. Valid functions appear
in blue. Invalid functions appear in red.
b.
Insert part or all of the expression using the options in the Building an Expression section.
4.
5.
6.
When you are finished adding output variables, click Done to close the Output Variables
window.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
3.
In the Output Variables section, enter a name for the new variable in the Name box.
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.
e.
From the Function list, select a ready-made function (this option is the same as inserting
the function from the Function section).
f.
g.
4.
To insert a function:
a.
In the Function section, select a ready-made function from the pull-down list.
b.
5.
When you are finished defining the variable in the Expression area, click Add to add the new
variable to the list.
6.
7.
When you are finished adding output variables, click Done to close the Output Variables
window.
Note
2.
3.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
4.
5.
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
Importing 2D Plot Data
Exporting Graphics Files from a Plot
Plotting Imported Solution Data
Setting a Range Function
If the simulation associated with a report has been paused via the Progress Bar Menu,
selecting Update Report or Update All Reports updates the report with the SDB data
current at the time the simulation was paused.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Next, edit the design. The report is marked Invalid (a large X appears in the legend of the
report window and on the report icon in the Results section of the Project tree).
Rerun the simulation. The report is updated with the latest solution data (state 2), and the
report is marked as valid (the X disappears).
Now click Undo. Simplorer still has the old solution data (state 1).
If Dynamically update postprocessing data during edits is off, the state 2 report data
becomes invalid again.
If Dynamically update postprocessing data during edits is on, Simplorer reloads the now
valid state 1 solution data into the plot and marks it valid.
Upon selecting Redo, the result again depends on the setting of the Dynamically update
postprocessing data during edits option. If the option is off, the report becomes valid again
(the state 1 data was not reloaded by the Undo operation, so the report is still displaying state
2). If the option is on, the state 2 data is reloaded dynamically and the plot is also valid.
Deleting Reports
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.
To delete all reports, either select Simplorer Circuit>Results>Delete All Reports, or rightclick on the Results icon in the Project Manager window for the design, and click Delete All
Reports on the pop-up menu.
Opening Reports
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.
To open all reports, either select Simplorer Circuit>Results>Open All Reports, or rightclick on the Results icon in the Project Manager window for the design, and click Open All
Reports on the pop-up menu.
Click Report2D or Report 3D on the top menu, and then select Export.
The Export Report dialog box opens.
2.
3.
Select the data file format from the Save as type pulldown. Options include:
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
4.
5.
Optionally, for 2D plots, 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 save the data, or click Cancel to close the dialog without saving any data.
Related Topics
Importing 2D Plot Data
Creating a Report from an Ansoft Report Data File
Left-click Report2D on the top menu, and then select Import Data.
The Open dialog box opens.
2.
3.
Select the file format from the Files of type pulldown. Options include:
4.
5.
Click Open to import and plot the data, or click Cancel to close the dialog box without
importing any data.
Related Topics
Exporting Plot Data
Creating a Report from an Ansoft Report Data File
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
Use the file browser to find the directory where you want to save the file.
3.
4.
Select the desired graphics file format from the Save as type pull-down list.
5.
Click Save. The file is exported to the specified location as a graphics file.
Related Topics
Exporting Plot Data
2.
Locate the Simplorer solution .sdb file containing the solution you want to import. and click
OK.
3.
If the imported data is in table format, click Table Data on the Import Data dialog. The Data
Table Import dialog opens:
4.
2.
Right-click on Results in the Project tree and select Create Standard Report><report type>.
3.
On the Report dialog box, select the imported solution from the Solutions pulldown menu.
4.
Select the desired data in the Traces tab, and then click New Report.
The Report window opens to display the imported solution.
5.
Select and add traces or other reports based on the imported solution data as needed. When
finished click Close to dismiss the Report dialog box
Using Animation
The follow sections describe how you can postprocess and then view various animated reports.
Frequency Animation
1.
To initiate the animation of the plot that is currently displayed, do one of the following:
Select Animate from the View menu.
Expand the Results icon in the Project window, right-click the plot entry, and select Animate
from the menu.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
If no animations have been defined previously, the Setup Animation dialog opens:
CTRL + click
to select multiple
frequencies
SHIFT + click
to select a range
of frequencies
Specify a name in the Name field (or accept the default, Animationn, where n is a numeral).
Optionally, enter a description.
For a frequency animation, select F as the Swept Variable.
By default, all the frequencies are selected (highlighted). Hold down the CTRL key to select
multiple individual frequencies, or hold down the SHIFT key to select a contiguous range of
frequencies. [These selection modes are illustrated in the dialog example above].
Click OK.
If one or more animations have been defined, selecting Animate from one of the menus opens
the Select Animation dialog:
Left-click to select one of the animations and click OK to start that animation.
Click the New button to open the Setup Animation dialog described above, and close the
Select Animation dialog.
3.
Simplorer calculates the frame data. If the Progress window is displayed, you can monitor the
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
progress of the calculation. When the frames have been calculated, the animation begins and
the Animation control panel opens:
Use the VCR buttons to play the animation. From left to right, the buttons are Reverse, Fast
Reverse, Stop, Fast Forward, and Forward. The indicator at the top of the dialog shows the
progress of the animation. Use the Speed slider to control the speed of the animation.
To export the frame data to a file, click Export. The Export File dialog opens:
Specify the directory and file name. Use the Save as type menu to select the file format (Animated GIF or AVI). Click Save to save the data and close the dialog.
Generating Reports and Post-Processing 18-73
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Click Close on the Animation control panel to stop the animation and close the panel.
Make any desired changes, and then click OK to apply the changes and close the dialog. Clicking
Cancel closes the dialog without making any changes.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
variables for probes. The values of design/project variables are selected when a trace is created
based upon the user defined solution in reporter.
For example, you could create a user defined solution called EyeTiming_1.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
that point of time. This allows UDOs to compute a set of calculations that take almost same amount
of computational resources as any one calculation in that set and cache that with reporter.
Note
When those calculations are subsequently plotted by the user, reporter will use the
cached results instead of invoking the computation on UDO.
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 to
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 userdefined solution.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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 *
DOExtension 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).
Generating Reports and Post-Processing -79
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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
GetUDSName()
Purpose: Return a string that is used as a prefix for all solution instances created using this
UDO.
Returns: string.
Example:
def GetUDSName(self):
return "MinMaxAvg
-80 Generating Reports and Post-Processing
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
GetUDSDescription()
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.
Returns: string.
Example:
def GetUDSDescription(self):
return "Sample UDO for dimension reducing quantities
GetUDSSweepNames()
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.
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 []
GetCategoryNames()
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.
Returns: list of strings.
Example:
def GetCategoryNames(self):
return ["UDOOutputs"]
GetQuantityNames(string categoryName)
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: i.e., no two categories can
have quantities with the same name.
Parameters:
Example:
Generating Reports and Post-Processing -81
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
GetQuantityInfo(string quantityName)
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.
Parameters:
Example:
# Returns an instance of QuantityInfo for the qtyName supplied or None if such a
# quantity could not be found
def GetQuantityInfo(self, qtyName):
# All the quantities we have are simple doubles
# we can leave them unitless
return QuantityInfo(Constants.kDoubleParamStr)
GetInputUDSParams(List<UDSProbeParams> udsParams,
IPropertyList propList,
List<UDSProbeParams> userSelectionForDynamicProbes)
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.
Parameters:
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.
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.
userSelectionForDynamicProbes .NET list of UDSProbeParam objects.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Example:
# Returns list of UDSParams and list of dynamic properties
# Adds setup time properties to the propList
def GetInputUDSParams(self, udsParams, propList, userSelectedDynamicProbes):
# Add the probes. We need only one double quantity
param1 = UDSProbeParams("probe1",
"double quantity probe",
Constants.kDoubleParamStr,
"", "")
udsParams.Add(param1)
# Add the properties we want the user to supply
# In this case, we will ask for a start/end range for
# X parameters. Since we cannot reasonably provide defaults
# as we have no idea what the sweep limits will be, we will
# also ask if the limits are to be activated.
prop = propList.AddNumberProperty("X Min", "0")
prop.Description = "Start X value to consider"
prop = propList.AddNumberProperty("X Max", "1")
prop.Description = "End X value to consider"
# For menus, the first option is the default.
prop = propList.AddMenuProperty("Activate X Limits", ["No", "Yes"])
prop.Description = "Activate X range"
return True
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
When a report is created from the UDO dialog, the category/quantity names specified by the UDO
are used (as shown below).
GetDynamicProbes(List<UDSDynamicProbes> dynamicProbes);
Example:
# Returns list of UDSParams and list of dynamic properties
# output UDSDynamicProbeCollection probes
def GetDynamicProbes(self, probes):
pass
Compute(IUDSInputData inData,
IUDSOutputData outData,
IPropertyList propList,
IProgressMonitor progressMonitor)
Purpose: This is the main computation method which generates the data for the quantities that
make up the UDO solution.
Parameters:
Generating Reports and Post-Processing -85
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The data is received from UI using IUDSInputData API. It is processed and the result data is sent
to UI using IUDSOutputData API.
Example:
# IUserDefinedSolutionHandle API implementation.
# Calculates output values and sets them using IUDSInputData/IUDSOutputData API.
def Compute(self, inData, outData, propList, progMon):
# Get the sweeps associated with the probe and validate
# use the probe name that we had defined earlier
sweeps = inData.GetSweepNamesForProbe("probe1")
if( sweeps == None or sweeps.Count > 1):
AddErrorMessage(self.GetName() + "Unexpected sweep count 0 or > 1 in Compute")
return False
= propList.GetNumberProperty("X Max").ValueSI
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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
if probeVal > maxVal:
maxVal = 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])
# And we are done.
return True
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Validate(List<string> errorStringList,
List<UDSProbeParams> udsProbParams,
IPropertyList propList,
List<UDSProbeParams> userSelectionForDynamicProbes)
Purpose: This method is used to validate the user choices. The values of the properties
entered, the probes etc. can be checked for suitability.
Parameters:
Example:
def Validate(self, errorStringList,probeList,propList, dynamicProbes):
if probeList == None or probeList.Count == 0:
errorStringList.Add("Empty probe list")
return False
return True
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Understanding these two classes and their methods is critical to a correct implementation of the
UDO Compute method.
IUDSInputData
GetDoubleProbeData(probeName)
GetSweepsDataForProbe(probeName, sweepName)
GetComplexProbeData(probeName)
GetSweepNamesForProbe(probeName)
GetRequiredQuantities()
GetVariableValues()
GetInterpolationOrdersData(probeName);
IUDSOutputData
SetSweepsData(sweepName, sweepData)
SetDoubleQuantityData(qtyName,qtyData)
SetComplexQuantityData(qtyName, qtyData)
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);
GetDoubleProbeData(probeName)
Purpose: This is the primary mechanism by which the UDO script obtains the probe data (as
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Parameters:
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 UDOs GetInputUDSParams
method.
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)
GetSweepsDataForProbe(probeName, sweepName)
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.
Parameters:
probeName - probe name for which which want the sweep data
sweepName - sweep name
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])
GetComplexProbeData(probeName)
Purpose: The primary mechanism by which the UDO retrieves data for its input probes (if it
expects complex data for the probe).
Parameters:
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 = []
Generating Reports and Post-Processing -91
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
if complexDataAsDouble != None:
for i in xrange(0,complexDataAsDouble.Count , 2):
complexData.append(complex(complexDataAsDouble[i],complexDataAsDouble[i+1]))
GetSweepNamesForProbe(probeName)
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 (probequantity vs Sweep Quantity) and two names implies 3D data ( probe-quantity vs Sweep 1 X
Sweep 2).
Parameters:
Returns: .NET IList<string> - list of sweep names for the current probe name.
Example:
# sweepNames is C# Array of strings
sweepNames = inData.GetSweepNamesForProbe(FarFieldsProbe)
GetRequiredQuantities()
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 UDOs compute method.
Returns: .NET IList<string> - list of required quantities names.
Example:
# quantities is C# Array of strings
quantities= inData.GetRequiredQuantities()
GetVariableValues()
Purpose: This allows the UDO to obtain the names and values of all the design variables for
which the UDO quantities are being requested.
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:
#varPair is of .Net KeyValuePair type
for varPair in theDict:
varName = varPair.Key
#string
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
GetInterpolationOrdersData(probeName);
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.
Parameters:
Returns: NET byte Array of interpolation order for the specified probe. These are to be
treated as 8bit signed integers, i.e., their values range from 0-127.
Example:
# interData is C# Array of bytes (integers in python)
interData = inData.GetInterpolationOrdersData(kProbeNames[0])
for interValue in theDict:
order = interValue
IUDSOutputData
This type is a twin of the IUDSInputData in that it is used to store the values computed by the
UDOs 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)
SetSweepsData(sweepName, sweepData)
Purpose: Each quantity that is computed by the UDO can be associated with a sweep. If it is,
the values that make up the sweeps data points must be specified using this call.
Parameters:
Example:
sweepList = [12.3, 14.5, 16.7]
outData.SetSweepsData(Freq, sweepList)
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
SetDoubleQuantityData(qtyName,qtyData)
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
Parameters:
Example:
doubleList = [12.3, 14.5, 16.7]
outData.SetDoubleQuantityData("V1PlusV2", doubleList)
SetComplexQuantityData(qtyName, qtyData)
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.
Parameters:
Example:
doubleFromComlexList=[]
comlexList = [(1+1j), (2+4j), (9.1+3.2j)]
for aComplex in comlexList:
doubleFromComlexList.append(aComplex.imag)
doubleFromComlexList.append(aComplex.real)
outData. SetComplexQuantityData ("V1PlusV2", doubleFromComlexList)
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
AllProperties
NumProperties
Functions:
Name
(string)
Description
(string)
PropType
Constructor:
The class is used as base class for INumberProperty, IMenuProperty, and ITextProperty.
Attributes:
Generating Reports and Post-Processing -95
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
ValueSI
(read-only double)
ValueInUnits
Units
(read-only double)
(read-only string)
HasUnits
(read-only bool)
Constructor:
INumberProperty(string name)
Functions:
Set(string numberWithUnits)
SetDouble(double number, string unitString)
Attributes:
Text
(string)
Constructor:
ITextProperty(string name)
Attributes:
MenuSelection
SelectedMenuChoice (string): This is the item in the MenuChoices list corresponding to the
MenuSelection index
MenuChoices
(IList<string>)
Constructor:
Example:
# adding data to IPropertyList propList; used in Compute function
prop = propList.AddNumberProperty('Offset 1', '0')
prop.Description = 'Trace 1 Offset'
prop = propList.AddNumberProperty(TRATE, "800 MHz")
prop.Description = "Frequency"
prop = propList.AddTextProperty(Text, The Text)
prop.Description = "Text Property"
-96 Generating Reports and Post-Processing
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Constants Class
The constants used in python script are defined in the Constants class.
Attributes:
Example:
paramType = Constants.kDoubleParamStr
propType = Constants.EPropType.PT_NUMBER
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:
ProbeName
(read-only string)
Generating Reports and Post-Processing -97
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
ProbeDescription
ParamType
(read-only string)
(read-only string)
ReportTypeName
(read-only string)
probeName required.
probeDescription - optional (can be empty string).
paramType - required; can be one of the Constants
kDoubleParamStr
kComplexParamStr
Example:
udsProbParam = UDSProbeParams("probe1","", Constants.kDoubleParamStr, "", "",)
UDSDynamicProbes Class
Attributes:
UDSParam
(read-only UDSProbeParams)
udsParam - required
userSelectedProbeName required
Example:
udsProbParam = UDSProbeParams("probe1","", Constants.kDoubleParamStr, "", "",)
selectedName = probe1
udsDynamicProbParam = UDSDynamicProbes(udsProbParam , selectedName )
QuantityInfo Class
Attributes:
ParamType
(read-only string)
FullUnitType
(read-only string)
Constructors:
QuantityInfo(string paramType)
QuantityInfo(string paramType, string fullUnitType)
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Parameters:
fullUnitType is a case insensitive string representing full unit type. It is not defined in Constants. Instead user can use any of the units in string representation e.g. mm orghz.
Example:
quantityInfo1 = QuantityInfo(Constants.kDoubleParamStr)
quantityInfo2 = QuantityInfo(Constants.kDoubleParamStr,ghz)
A task name
A sub-task name
The progress amount
A button to abort the task in progress.
All of this functionality and abort interaction is achieved using the following functions.
Example:
progMon.BeginTask("Process DQS")
progMon.SetSubTaskName("Compute UI segments")
progMon.SetTaskProgressPercentage(33)
progMon.SetSubTaskName("Compute the rest")
progMon.SetTaskProgressPercentage(100)
progMon.EndTask(True)
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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:
for varPair in varValues: #varPair is of .Net KeyValuePair type
varName = varPair.Key
varValue = varPair.Value
for python dict:
for varName in varValues:
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)
##############################################################
#
Imports
Generating Reports and Post-Processing -101
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
##############################################################
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
#--- IDA IUDOPluginExtension -----------------------def GetUDSName(self):
return "MinMaxAvg"
#--- ISA IUDOPluginExtension -----------------------def GetUDSDescription(self):
return "Sample UDO for dimension reducing quantities"
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
#--- ISA IUDOPluginExtension -----------------------# Returns list of UDSParams and list of dynamic properties
# output UDSDynamicProbeCollection probes
def GetDynamicProbes(self, probes):
pass
#--- ISA IUDOPluginExtension -----------------------# Returns list of sweeps names
# We have no sweep sas we reduce them.
def GetUDSSweepNames(self):
return []
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
= propList.GetNumberProperty("X Max").ValueSI
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
minVal = probeVal
if probeVal > maxVal:
maxVal = probeVal
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
if probeVal > maxVal:
maxVal = 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])
-106 Generating Reports and Post-Processing
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
outData.SetDoubleQuantityData("max_val", [maxVal])
outData.SetDoubleQuantityData("avg_val", [avgVal])
# And we are done.
return True
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
All script-library and other support files need to be in a Lib sub-directory under the
UserDefinedOutputs directory. Any .py files found in such Lib directories are ignored and
not displayed in the GUI as a valid UDO choice.
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)
2.
Drop the built assembly in any Lib directory upstream of the UDO script location: i.e., if you
have your UDO script in C:\Users\x\PersonalLib\UserDefinedOutputs\a\b\c\myudo.py and
have a .NET assembly called com.Acme.UDOLib You can keep the .NET assembly under
3.
UserDefinedOutputs\Lib,
UserDefinedOutputs \a\Lib,
UserDefinedOutputs \a\b\Lib
UserDefinedOutputs\a\b\c\Lib
Import clr
clr.AddReference(com.Acme.UDOLib)
import com.Acme.UDOLib or-- from com.Acme.UDOLib import * etc
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
User Defined Outputs: An Introduction
User Defined Outputs: Python Script API
-108 Generating Reports and Post-Processing
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Toolkit
The Toolkit command in the Simplorer Circuit menu provides access to design type specific
Iron-Python scripts, or module specific tasks.
A directory called "Toolkits" and a subdirectory "Simplorer" can be added to your syslib, userlib,
and/or personallib directories. IronPython toolkits (scripts) in these Toolkits>Simplorer directories
appear in the menu for use in Simplorer.
Use the Simplorer Circuit>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.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Results>Create Document
submenu lists UDD script
names when such scripts
are placed in the
appropriate *lib directories
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.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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 when you create or modify a UDD document. The trace data is available to the user and can be accessed from the python script.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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)
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Related Topics
Managing Documents Listed in the Project Window Under Results
Viewing UDDs with an Html Web Browser
UDD Script Libraries
User Defined Definitions: Python Script API
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
XSLT StyleSheet (Html) - File path to the XSLT stylesheet file used for Html generation.
XSLT StyleSheet (Fo) - File path to the XSLT stylesheet file used for Pdf generation.
Fop Executable (Pdf) - File path the Fop executable used for Pdf generation.
Clear Cache - Clears the cached XSL transform object and forces creation of a new one. (The
caching is done to save time during document generation, so subsequent generation or 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.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Related Topics
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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
3.
UserDefinedDefintions\Lib,
UserDefinedDefintions\a\Lib,
UserDefinedDefintions\a\b\Lib
UserDefinedDefintions\a\b\c\Lib
Import clr
clr.AddReference(com.Acme.UDDLib)
import com.Acme.UDDLib or-- from com.Acme.UDDLib import * etc
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
User Defined Definitions: Python Script API
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
oDesktop != None:
# version number
Generating Reports and Post-Processing -123
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
version = oDesktop.GetVersion()
text1 = tgroup1.AddContent()
text1 .Add(0, "Product Version")
text1 .Add(1, version)
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)
# Provides a script path
scriptpath = docgen.GetScriptPath()
text1 = tgroup1.AddContent()
text1 .Add(0, "Script Path")
text1 .Add(1, scriptpath )
#Provides the script version
text1 = tgroup1.AddContent()
text1 .Add(0, "Script Version")
text1 .Add(1, str(dblinput ))
#Provides the output xml path
outputpath = docgen.GetOutputFilePath()
text1 = tgroup1.AddContent()
text1 .Add(0, "Output Path")
text1 .Add(1, outputpath )
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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
Generating Reports and Post-Processing -125
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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\\x
sd\\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.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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\\fop1.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.
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
Generating Reports and Post-Processing -127
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
When displayed in the application, each progress message has four items:
A task name
A sub-task name
The progress amount
A button to abort the task in progress.
All of this functionality and abort interaction is achieved using the following functions.
SetTaskName (string taskName):
SetSubTaskName (string subTaskName)
BeginTask (string name)
SetTaskProgressPercentage(int progressPercent)
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.
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)
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
data and y complex data as a IDictionary<double, double[]>, given a quantity name and a variation.
TextData(string name) : Method used to return x data and y data as a IDictionary<string,
string> given a quantity name.
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.
CategoryNames() : Method to return a list of category names in the solution as an
IList<string>
QuantityNames(string category) : Method to return a list of quantity names in the solution as
an IList<string>, given a category.
VariableValues() : Method used to get alist of variations as a IList<Dictionary<string,
string>>
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()
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
b.
c.
2. EditDocument( [in] BSTR originalName, [in] VARIANT modifiedData, [in] VARIANT modifiedTraces, [out, retval] BSTR* uniqueName)
a.
b.
c.
d.
3. RenameDocument( [in]
a.
b.
4. DeleteDocument( [in]
a.
BSTR name)
5. UpdateDocument( [in]
a.
BSTR name)
6. ViewHtmlDocument( [in]
a.
BSTR name)
7. ViewPdfDocument( [in]
b.
BSTR newName)
BSTR name)
8. SaveHtmlDocumentAs( [in]
a.
b.
9. SavePdfDocumentAs( [in]
BSTR name,
a.
b.
[in]
BSTR saveTo)
BSTR saveTo)
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
a.
b.
Returns the (file) names of doc definitions according to the files in various installation
directories.
11.DeleteAllDocuments()
12.UpdateAllDocuments()
For 6, 7, 8, and 9, the document must have an existing, generated HTML or PDF.
"Test Report",
"SysLib",
(Location of the python
script(Syslib, Userlib, PeronalLib etc)
"TestUDDReport",
(Relative path of the script in the
UserDefinedDocuments folder)
// Start of input definition //
Array("NAME:Inputs",
// Solution input //
Array("NAME:DLMetrics",
(Input name)
"Solution",
(Input Description)
-1,
(Solution ID)
-1),
(Report ID)
// Trace input //
Array("NAME:DQ0",
(Input name)
"Trace",
"DQ0",
(Input Description)
-1,
(Solution ID)
-1),
(Report ID)
// Text input //
Array("NAME:Name",
(Input name)
"Text",
"User Name",
(Input Description)
Array("Sita Ramesh")),
(Default Value)
Generating Reports and Post-Processing -133
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
// Bool input //
Array("NAME:Summary",
(Input name)
"Bool",
"Display Summary",
(Input Description)
Array(true)),
(Default Value)
// Number input //
Array("NAME:Version",
(Input name)
"Number",
"Script Version",
(Input Description)
Array(1021)))),
(Default Value)
(Input name)
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
[
"NAME:Inputs",
[
"NAME:DLMetrics","Solution", "Data Line Metrics", -1, -1
],
[
"NAME:DQ0", "Trace", "DQ0", -1, -1
],
[
"NAME:DQS", "Trace", "DQS", -1,
-1
],
[
"NAME:Name", "Text", "User Name", ["Sita Ramesh"]
],
[
"NAME:Summary", "Bool", "Display Summary", [True]
],
[
"NAME:Version", "Number", "Script Version" [1021]
]
]
],
[
"NAME:DocTraces",
[
"NAME:DLMetrics",
[
Generating Reports and Post-Processing -135
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
"User Defined",
[
"Context:="
, ""
],
[
"Index:=" , ["All"], "Trise:="
, ["Nominal"], "Pulse_Width:=" ,
"Tfall:="
["Nominal"], "Data_Rate:="
, ["Nominal"]
"Length:="
, ["Nominal"],
, ["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",Fals
e,"0.001","WE",False,"100ns","WM",False,"100ns","WN",False,"0ps
","WS",False,"0ps"]
],
[
"Time:=" , ["All"],"Trise:=" , ["Nominal"],"Tfall:="
, ["Nominal"],"Pulse_Width:=" ,["Nominal"],
"Data_Rate:="
, ["Nominal"], "Length:="
, ["Nominal"]
],
[
"Probe Component:=" , ["DQ0"]
],
[]
-136 Generating Reports and Post-Processing
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
]
],
]
Sample Script:- This one adds, edits, renames and deletes a document
Set oModule = oDesign.GetModule("UserDefinedDocuments")
' Add a UDD
oModule.AddDocument Array("NAME:Test Report1", "Test Report",
"SysLib", _
"Examples/TestUDDInputs", Array("NAME:Inputs",
Array("NAME:DLMetrics", "Solution", _
"Data Line Metrics", -1, -1), Array("NAME:DQ0", "Trace", "DQ0",
-1, -1), Array("NAME:DQS",
"Trace", "DQS", -1, -1), Array("NAME:Name", "Text", "User
Name", Array("Sita Ramesh")), Array("NAME:Summary", "Bool",
"Display Summary", Array(true)), Array("NAME:Version",
"Number", "Script Version"))), Array("NAME:DocTraces",
Array("NAME:DLMetrics", Array("User Defined", "", "DDR3 ACTiming 4-DQ1", Array("Context:=", ""), Array("Index:=",
Array("All"), "Trise:=", Array( "Nominal"), "Tfall:=",
Array("Nominal"), "Pulse_Width:=", Array("Nominal"),
"Data_Rate:=", Array( "Nominal"), "Length:=",
Array("Nominal")), Array("Probe Component:=", Array("")),
Array())), Array("NAME:DQ0", Array( _
"Standard", "DQ0", "NexximTransient", Array("NAME:Context",
"SimValueContext:=", Array( _
1, 0, 2, 0, false, false, -1, 1, 0, 1, 1, "", 0, 0, "DE", false,
"0", "DP",
false, "20000000", "DT", false, "0.001", "WE",
false, "100ns", "WM", false, "100ns", "WN", false, "0ps",
"WS", false, "0ps")), Array("Time:=", Array("All"), "Trise:=",
Array("Nominal"), "Tfall:=", Array("Nominal"), "Pulse_Width:=",
Array("Nominal"), "Data_Rate:=", Array("Nominal"), "Length:=",
Array("Nominal")), Array("Probe Component:=", Array("DQ0")),
Array())))
Edit Document
oModule.EditDocument "Test Report1", Array("NAME:Test Report",
"Test Report", _
Generating Reports and Post-Processing -137
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
The product has to implement the GetModule call to create the UserDefinedDocument
scripting object. For e.g. Check AltraSimDesign.cpp (function GetMgrIDispatch()).
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
oApp = self.GetUDDAppContext(
Gets the application context
Usage:- Gets the active project ad the version of the product
oDesktop = oApp.GetAppDesktop()
if
oDesktop != None:
vr = oDesktop.GetVersion()
oProject = oDesktop.GetActiveProject()
oDesign = self.GetUDDDesignContext()
Gets the design context
Usage:- Gets the design name.
oDesign = self.GetUDDDesignContext()
if oDesign != None:
nm = oDesign.GetName()
IUDDGenerator interface
This interface available in the Generate method of the UDDPluginExtension.
This interface can be used to
1.
2.
3.
4.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
5.
6.
void WritePDF();
void LoadHTMLTransform();
7.
8.
9.
IUDDRoot interface
Calling GetDocumentRoot() on the IUDDGenerator interface provides you with the this interface. This interface can be used to
1.
2.
Add a new section to the document. Provide a section title and subtitle
section1 = docroot.AddSection("Section title", Section
subtitle)
3.
4.
IUDDSection interface
Calling AddSection() on the IUDDRoot interface provides you with the this interface. This
interface can be used to
1.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
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")
4.
IUDDImage interface
Calling AddImage() on the IUDDSection interface provides you with the this interface. On
this interface you can call the following methods
1.
2.
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")
IUDDText interface
Calling AddText() on the IUDDSection interface provides you with the this interface. On this
interface you can call the following methods
1.
2.
3.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Text1.SetQuotes()
4.
5.
6.
7.
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")
IUDDTable interface
Calling AddTable() on the IUDDSection interface provides you with the this interface. On this
interface you can call the following methods
1.
2.
3.
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)
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
IUDDTableGroup interface
Calling AddTableGroup() on the IUDDTable interface provides you with the this interface.
On this interface you can call the following methods
1.
2.
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.
Width can be set relative to 1. E.g Setting it to "2*" makes the column width double
the width of the others.
If the entire table width is considered to be 99.99 units. Width can be a number relative to this.
tgroup1.SetColumnWidth(int index,
4.
string width)
5.
Add a header with multiple rows to the table group. Takes number of sub rows.
IUDDTableRow tgroup1.AddHeader(int rows)
6.
7.
Add content with multiple rows to the table group. Takes number of sub rows.
IUDDTableRow tgroup1.AddContent(int rows)
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.
2.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
trow1.SetAlignment("center")
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
4.
int value)
column,
column,
double value)
Set cell text. Takes a column index, row index and a double value.
IUDDTextElement trow1.Add(int
value)
9.
column,
Set cell text. Takes a column index and a double value. It is added to the first row.
IUDDTextElement trow1.Add(int
8.
Set cell content. Takes a column index, row index and a int value.
IUDDTextElement trow1.Add(int
text)
7.
column,
Set cell content. Takes a column index and an int value. It is added to the first row.
IUDDTextElement trow1.Add(int
6.
string text)
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
text)
5.
column,
column,
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)
IUDDTableRow interface
Calling Add() on the IUDDTableGroup interface provides you with the this interface. On this
Generating Reports and Post-Processing -145
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
19
C-Models in Simplorer
Simplorer C-Models provide a powerful method for describing components and equations using C
or C++ code. Simplorer C-Models can be used like any other Simplorer components in network
simulations or block diagrams. Simplorers support for the creation and use of C-Models provides
the model developer with functions to control and influence the simulator behavior and internal
solving algorithms.
This chapter contains information on:
Designing a C-Model
Implementing C-Models
Programming C-Models
Using C-Models in Simplorer
C/C++ Function Reference
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Model description
contains loops and iterations
contains extensive mathematical operations
consists of multiple coupled ordinary differential equations
Re-use of already present C/C++ code
Inclusion and development of micro-controller source code
The Simplorer C Interface also allows the modeling of characteristics used to establish nonlinear
relationships of one input and one output quantity. Various Simplorer basic models can be connected to such blocks.
C-models show high simulation speed, accuracy, and numerical stability in Simplorer simulations.
They can be used in DC, AC, and transient simulations. It is possible to program variable step-size
models as well as fixed step-size models. These latter allow for example to run micro-controller
code at exactly the same sample times like on the real hardware. This is essential for realistic simulation of this kind of systems.
To assist in model development, Simplorer provides a C-Model Editor.The figure below shows
these steps, from creating the model draft to using the model in Simplorer. If the problem is complex and comprehensive, individual steps may need to be repeated.
Model design
Model implementation in
Microsoft Visual C/C++
Model application in
Simplorer
Model draft
Create C/C++
project
Import
C-model
Model
equations
Program model
in C/C++
Create
.dll model file
Modify
C-model symbol
Use C-model
in simulation
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The following steps outline the general methodology for defining, programming, and using a Cmodel:
1.
2.
3.
4.
5.
6.
7.
8.
Program Requirements
Simplorer 8.0 or higher with licensed C Interface
Any of the following programs:
Microsoft Visual Studio 2008
Microsoft Visual C++ 2008 Express
Microsoft Visual Studio 2005
Microsoft Visual C++ 2005 Express
Microsoft Visual Studio .NET 2002
Microsoft Visual Studio .NET 2003
Microsoft Visual C++ 6.0
Note
1.
2.
Several C-models are included with Simplorers standard libraries. These Cmodels can be used without an extra license for the Simplorer C Interface.
Installation
Developing C-models requires that the Microsoft compiler be properly installed on the computer.
During installation of the Simplorer C Interface, the required preparations in the Microsoft Developer Studio environment are automatically carried out.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Designing a C-Model
Before you can program and use C-models in Simplorer, you should first develop the model equations. The following sections provide an overview of the design considerations you should observe
while defining equations for your models.
If it is impossible to explicitly solve the flow equation for an input current (for example ij), the
input current must be used as internal variable: xl=ij. So Simplorer will numerically solve for the
flow variable.
Simplorer handles the mathematical description of components using the Jacobian matrix description, where J is the Jacobian matrix, s is the solution vector and r the right side vector of the equation system.
19-4 C-Models in Simplorer
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
For this purpose, the node potentials and the internal quantities are to be lined up in a solution vector. Due to this definition of the solution vector the corresponding Jacobi matrix and right hand side
vector of the system is defined.
The Jacobian matrix elements and right side entries must be entered by the user. In the case of linear equations, only the constant terms i0l=il(v1,k=0,x1,n=0) and F0j=Fj(v1,k=0,x1,n=0) in the
right side vector rlin are necessary.
The simulator automatically adds the variable parts. This feature can also be switched off to fill the
right side manually. When it comes to nonlinear equations, you must fill the complete corresponding right side entry. Ordinary differential equations fit into this scheme by using the exchangeability of differential operators.
d
d
=
x d t
dt x
Simplorer uses the same Jacobian matrix scheme in transient, DC and AC simulations. The user has
to select and establish the suited equations for the different simulation domains.
Example
The node behavior of a simple ohmic resistor is described by the following two equations:
v1 v2
i 1 ( v 1, v 2 ) = ---------------R
v1 v2
i 2 ( v 1, v 2 ) = ---------------R
r manual
v1 v2
i
---------------R
= 1 =
i
v v
1
2
2
--------------
R
0
i
= 1 = 0
0
i
0
2
If the resistor is a linear system its right side can be filled automatically. Since
i1=Fj(v1,k=0,x1,n=0), there are no constant terms to be filled on the right side.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
RC Example
The transient behavior of the RC combination is described by the following equations:
v1 v2
i 1 = i R = ---------------R
v 1 v 2 dQ
i 2 = i R + i C = ---------------- + ------R
dt
dQ
i 3 = i c = ------dt
Q
F ( Q, v 1, v 2, v 3 ) = v 2 v 3 ---- = 0
C
1
--- 0 0
R
1
d
--- 0 -----
R
dt
d
0 0 0 -----
dt
1
0 1 1 ----
C
--1R
1
--R
v1 v2
----------------
R
v1
v 1 v 2 dQ
-------------- R - + d t
v2
=
v3
dQ
dt
v v Q
----
2 3 C
DC Equations
DC Analysis results in steady-state values of the potential, flow, and internal quantities. This means
the DC-equations contain no dynamic effects. DC behavior can be described by algebraic equations. In general, they can be derived from the TR equations by setting the temporal derivatives to
zero. Expressed in the Jacobian scheme the equation system can be reduced to:
J DC s DC = r DC
RC Example
The DC behavior of the RC-combination can be described by the following equations which were
extracted from the TR-equations:
v1 v2
i 1 = i R = ---------------R
v1 v2
i 2 = i R + i C = ---------------R
i3 = ic = 0
Q
F ( Q, v 1, v 2, v 3 ) = v 2 v 3 ---- = 0
C
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
1
--- 0 0
R
1
d
--- 0 -----
R
dt
d
0 0 0 -----
dt
1
0 1 1 ----
C
--1R
1
--R
v 1 v 2
--------------
R
v1
v 1 v 2-
v2
= --------------R
v3
Q
Q
v 2 v 3 ----
C
AC Equations
In contrast to the TR analysis which deals with the temporal course of signals, the AC analysis is
used to calculate system behavior in the conjugated frequency domain. The complex description of
signals in this domain is generally applied: s()=sr()+jsi(), where =2f is the angular frequency. sr() is the real part and si() is the imaginary part of the complex signal s(). For the
complex calculation of the signals, the same Jacobian formalism is used like in the case of TR- and
DC- analysis:
J AC s ( ) = r ( )
Jacobian matrix entries, right side entries and the solution vector are complex numbers. The AC
analysis is performed on a fixed operating point. Such an operating point is a solution of the TRequation-system at a fixed time step. This means the transient equations are almost literally applicable for the AC analysis. Present temporal derivatives are replaced by their formal Laplace transformation:
d
j
dt
RC Example
In the case of the RC combination the AC equations appear in the following manner:
v 1 v 2
i 1 = i R = ---------------R
v
v
1
2
i 2 = i R + i C = ---------------- + j Q
R
i = i = j Q
3
Q
F ( Q, v 1, v 2, v 3 ) = v 2 v 3 ---- = 0
C
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
v
1
2
1
v--------------
--- 0 0
R
R
v 1
v
1
2
--1- 0 j v 2
---------------- + j
R
R
=
0 0 j v 3
j
Q
1
Q
0 1 1 ----
v 2 v 3 ----
C
C
--1R
1
--R
0
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Implementing C-Models
Once you have drafted you model design and developed the models equations, you can implement
them in one of the following environments:
It is within these environments that you program C-models, build the model .dll files, and also
modify and debug your model programs.
Start MSVC++ 6.0, choose File>New, and click the Projects tab.
b.
c.
Enter name and location (path) of the new project in the text box and click OK.
MSVC++ 6.0 creates all necessary files and project settings for a Simplorer C-model. It
C-Models in Simplorer 19-9
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
installs two different configurations: Release and Debug. Debug is the default configuration. Building the project results in a Windows .dll model file for dynamic link to Simplorer.
Note If you use the predefined Simplorer project, a version resource is automatically added to new Cmodels.
2.
b.
Select All Configurations from the settings list and Preprocessor from the category list.
c.
Check the entry in the Additional include directories box and click OK. The path must
point to the location of the files Sim2000User.h, Complex.h, and DataTypes_Basic.h.
These files are usually located in \syslib\bin\Template\C_Interface below the Simplorer installation path.
3.
Select configuration
Select category
b.
Select a configuration (debug or release) from the settings list and General from the category list.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
c.
Adapt the entry in the Output file name box for the selected configuration and click OK.
4.
Select configuration
Select category
b.
Select All Configurations from the settings list and Input from the category list.
c.
Check the entry in the Additional library path box and click OK. The path must point to
the location of the files Sim2000User.lib and Complex.lib. These files are usually located
in \syslib\bin\Template\C_Interface\Lib below the Simplorer installation path.
Select configuration
Select category
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
5.
Choose File>Open to open the automatically created source file project_name.cpp in the
Source Files folder. It represents a template for programming a Simplorer C-model.
6.
Add your modifications to the source file to define the model behavior.
Choose Build>Set active configuration to set the desired configuration for the created .dll
model file. Use the Win32-Debug configuration during the model development and debugging phase, use the Win32-Release configuration for the final model build.
8.
Choose Build>Build *.dll to build the Dynamic Link Library of the model. After successful
compilation and linkage the .dll model file is ready to be introduced to Simplorer.
9.
Start Simplorer and select Tools>Edit Configured Libraries>Models to include the C-model
in a model library.
2.
Load the MSVC++ 6.0 workspace file (.dsw) for the C/C++ project.
3.
Include and add changes to the model source code file (.cpp).
Warning
Make sure there is no Simplorer simulation running which uses the .dll model file to
be modified. If the .dll model file is already in use, the linker cannot create a new
one.
4.
5.
Choose Build>Build *.dll to compile and link the model source code.
6.
Make sure the linker stored the file on the right location accessible to Simplorer. If necessary,
copy the new .dll model file to the right location.
7.
If changes were made on external nodes or internal states, start the Update C-model function
in Model Agent.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
8.
The model is now ready to use. Start the simulations from Simplorer Schematic.
9.
For further model source code changes, repeat steps 3 through 8 as needed.
2.
Load the MSVC++ 6.0 workspace file (.dsw) or the project file(.dsp) for the C/C++ project.
3.
Choose Build>Set active configuration and set the active configuration to Win32-Debug.
4.
Make sure that you build your DLL in a library directory (either <PersonalLib>\bin or <UserLib>\bin).
a.
To find out the current setting for PersonalLib or UserLib open the General Options dialog box in Simplorer (Tools>Options>General Options). The settings are on the Project
Options tab.
b.
In MSVC++ 6.0 workspace choose Project>Settings and click the Link tab. Choose Customize from the Category box. Set the path of the .pdb file in Program Database Name
and the path of the DLL Output File Name.
5.
6.
7.
8.
Switch to the MSVC++ 6.0 workspace and attach to the sim.exe process (Build>Start
Debug>Attach to Process).
9.
a.
Visual Studio launches a new workspace for sim.exe. You must add the source files that
you want to debug into this new workspace manually.
b.
Set at least one break point at the statement after the ASSERT.
10. The debugger will stop at the break point you set.
11. Set breakpoints and other debug related settings in MSVC++ 6.0 (refer to its manual for help).
12. After simulation ends, the simulator is shut down automatically and the debugger stops.
Note
You should save the environment for the sim.exe workspace, so that the next time you
start debugging you can reuse your break points. Otherwise all debugging settings will
be lost.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
b.
Select the Visual C++Project folder from the project type list.
c.
d.
Enter name and location (path) of the new project in the text box and click OK.
MSVC++ .NET creates all necessary files and project settings for a Simplorer C-model. It
installs two different configurations: Release and Debug. Debug is the default configuration. Building the project results in a Windows .dll model file for use with Simplorer.
Note
2.
If you use the predefined Simplorer project, a version resource is automatically added to
new C-models.
b.
c.
Check the entry in the Additional include directories box and click OK. The path must
point to the location of the files Sim2000User.h, Complex.h, and DataTypes_Basic.h.
These files are usually located in \syslib\bin\Template\C_Interface below the Sim-
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
3.
b.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
c.
Adapt the entry in the Output file name box for the selected configuration and click OK.
4.
b.
c.
Check the entry in the Additional library directories box and click OK. The path must
point to the location of the files Sim2000User.lib and Complex.lib. These files are usually located in \syslib\bin\Template\C_Interface\Lib below the Simplorer installation
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
path.
5.
Choose File>Open to open the automatically created source file project_name.cpp in the
Source Files folder. It represents a template for programming a Simplorer C-model.
6.
Add your modifications to the source file to define the model behavior.
See Programming C-Models for additional information.
7.
Choose Build>Configuration Manager to set the desired configuration for the created .dll
model file. Use the Debug configuration during the model development and debugging phase,
use the Release configuration for the final model build.
8.
Choose Build>Build Solution to build the Dynamic Link Library of the model. After successC-Models in Simplorer 19-17
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
ful compilation and linkage the .dll model file is ready to be introduced to Simplorer.
9.
Start Simplorer and select Tools>Edit Configured Libraries>Models to include the C-model
in a model library.
2.
Load the MSVC++ .NET workspace file (.sln or .vcproj) of the C/C++ project.
3.
Include and add changes to the model source code file (.cpp).
Warning
Make sure there is no Simplorer simulation running which uses the .dll model file to
be created. If the .dll model file is already in use, the linker cannot create a new one.
4.
5.
Choose Build>Build Solution to compile and link the model source code.
6.
Make sure the linker stored the file on the right location accessible to Simplorer. If necessary
copy the new .dll model file to the right location.
7.
If changes were made on external nodes or internal states, start the Update C Model function
in Model Agent.
8.
The model is now ready to use. Start the simulations from Simplorer Schematic.
9.
For further model source code changes repeat Steps 3 through 8 as needed.
2.
Load the MSVC++ .NET workspace file (.sln or .vcproj) of the C/C++ project.
3.
4.
Make sure that you build your DLL in a library directory (either <PersonalLib>\bin or <UserLib>\bin).
a.
To find out the current setting for PersonalLib or UserLib open the General Options dialog box in Simplorer (Tools>Options>General Options). The settings are on the Project
Options tab.
b.
Choose Project>Settings and select the Linker. Set the path of the .pdb file in the
Debugging subfolder in the Generate Program Database File box and the path of the
DLL in the General subfolder in the Output File box.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
5.
6.
Add an ASSERT(FALSE) statement into the Initialize function and set at least one break point
at the statement after the ASSERT.
7.
8.
Switch to the MSVC++ .NET workspace and attach to the sim.exe process (Debug>Attach to
Process).
9.
10. The debugger will stop at the break point you set.
11. Set breakpoints and other debug related settings in MSVC++ NET (refer to its manual for
help).
12. After the end of the simulation the simulator will be shut down automatically and the debugger
stops.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Programming C-models
Using the Simplorer project template or the C-model editor, programming Simplorer C-models is
an easy and straightforward task.
You can find the RC3pin example in the Simplorer path ...\Examples\Applications\C_Interface\.
It is used to describe C-model functions in this section.
Note
Basic Steps
There are a few basic constructions needed in every model source file to ensure a proper link to the
Simplorer simulator. These statements are already included in the template file and can be extended
and adapted to model specific needs.
Include specific header files
Their purpose is mainly to define standardized data types for data exchange between the model and
simulator. The most important of these data types is the C++ object type CModUser, which is the
19-20 C-Models in Simplorer
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
basic model object type for storing all model-dependent information pins, parameters, outputs,
equations, etc.
That eases the later change of the name without the risk of skipping some occurrences. Since it is
possible to include more than one model in a model source file and consequently in the same .dll
model file the other model names should also be defined here.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
// German
pMod->SetInfoNode_nc( STRG_NCNAME_U0, "Anfangsspannung am Kondensator",
MAKELANGID( LANG_GERMAN, SUBLANG_GERMAN ) );
pMod->SetInfoNode_nc( STRG_NCNAME_RESISTANCE, "Widerstand", MAKELANGID(
LANG_GERMAN, SUBLANG_GERMAN ) );
pMod->SetInfoNode_nc( STRG_NCNAME_CAPACITANCE, "Kapazitaet", MAKELANGID(
LANG_GERMAN, SUBLANG_GERMAN ) );
// Outputs
pMod->AddNode_nc( STRG_NCNAME_CHARGE,
DEFAULT_CHARGE );
// Output Units
pMod->SetUnitNameNode_nc( STRG_NCNAME_CHARGE,
"C
");
// Output Info
pMod->SetInfoNode_nc( STRG_NCNAME_CHARGE, "Capacitor charge" );
pMod->SetInfoNode_nc( STRG_NCNAME_CHARGE, "Ladung auf Kondensator",
MAKELANGID( LANG_GERMAN, SUBLANG_GERMAN ) );
return 1L;
}
The appearance of the definitions in the Prepare function is shown in the property dialog of the corresponding model in the Schematic.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Every CModUser object needs to provide four model-function pointers for every simulation mode
(TR, AC, and DC) for which it is designed, and also one Prepare-function pointer. These model
functions are stored in the object using specialized methods.
The five model functions and their assignment are listed in the following table. These five modelfunctions are later called PISVC functions (Prepare, Initialize, Simulate, Validate, Close).
Function name
Task
CModUser-method
SetUMODPrepFct()
Initialize function Set symbolic and static Jacobi matrix entries SetUMODInitFct()
and flags, initialize internal variables and
states, allocate dynamic memory if needed.
This function is called by the Simulator
(sim.exe) to initialize the model before the
simulation starts.
SetUMODSimFct()
Simulate function Set static and dynamic Jacobi matrix
elements. Calculate and set outputs or inner
states. Feedback to simulator if needed. This
function is called by the Simulator (sim.exe)
for every iteration in DC, for every iteration
of every time step in TR and for every
frequency-step in AC.
SetUMODValidFct()
Validate function Perform tasks after simulation time steps.
Feedback to simulator if needed. This
function is called by the Simulator (sim.exe).
Close function
There is no Simplorer demanded restriction on the model function names used for these tasks. But
it is suggested that you store the names in define-variables for later easy change or extension of the
file.
Note
Model functions assigned to the various simulator modes are not required to be different.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
As shown in the source code example of the RegisterUMODELFct, every dll-included object must
provide its own model functions. The proper allocation is done through the models name by using
the CModUser method GetDefName.
Note
Even though there are no Simplorer restrictions on the names of the model functions, the function
definitions must adhere strictly to the following data types.
FCTDECL modelfct( CModUser *pMod )
{
...
return TRUE; // or FALSE...
}
The model functions must be of type FCTDECL, which means, among other things, that they are able
to return the predefined values TRUE or FALSE to signal a successful or erroneous execution to the
simulator. The model functions use as the only argument a pointer to a CModUser object. Such an
object facilitates extensive access of the models functions to the simulator, its equation system,
and model I/O.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The sequence of the PISVC functions is shown below in connection with the Simplorer simulator.
Main Simulator
Backplane
C-model
Main Function Calls
Start
Prepare
Prepare
Equations
Initialize
Initialize
Time functions
t=t+h
Calculate
step size
Simulate
Simulate
Validate
Validate
Yes
Electrical
Circuit
VHDL
VHDL-AMS
External simulators
Output
Block diagram
t<=tend
State graph
No
Close
Close
End
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
break;
case 1: pUModDecl->SetDefName( STRG_MODELNAME2 );
pUModDecl->SetModelType( UMODEL );
pUModDecl->SetSimPref( BDM );
break;
default:
break;
}
return TRUE;
}
Simplorer needs a name, model type, and preferred subsimulator for each model. This information
is provided by the CUModDecl's methods SetDefName, SetModelType, and SetSimPref. Since
Simplorer distinguishes different models in a .dll model file by their names, it is essential to use a
unique name for each model.
See also CModUser Object Methods
Simplorer distinguishes two types of models: UMODEL and UDCHAR. UMODEL is used to
model whole dynamic systems, UDCHAR is used in programming so called characteristics for the
description of non-linear I/O-relationships and may be used in combination with a number of Simplorer's basic components and C-models of UMODEL type.
See also CUmodDecl Object
See also Models used as Characteristics
The simulator preference method SetSimPref controls the accessibility to Simplorer's internal
equation system. Full access to the equation system is enabled using the ECM (Electric Circuit
Module) simulator. This allows to introduce arbitrary nonlinear ordinary differential equations to
Simplorer and an extensive access to its step size algorithm.
Selecting the BDM (Block Diagram Module) simulator as the preferred simulator allows the inclusion of algebraic input-output relations only. No conservative nodes are possible with this selection.
BDM models will automatically be provided with a node for explicit specification of the block's
sample time.
See also C-models with Specified Sample Time
The TFM (Time Function Module) is used for modeling time-dependent signals like sine waves.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
switch( pMod->GetAnalysisType() )
{
case TR_:
pMod->SetUMODInitFct( INIT_FCN1_T );
pMod->SetUMODSimFct(
SIMU_FCN1_T );
pMod->SetUMODValidFct( VALI_FCN1_T );
pMod->SetUMODCloseFct( CLOSE_FCN1_T );
pMod->AddAvailableAnalysisType(TR_);
break;
case DC_:
pMod->SetUMODInitFct( INIT_FCN1_D );
pMod->SetUMODSimFct(
SIMU_FCN1_D );
pMod->SetUMODValidFct( VALI_FCN1_D );
pMod->SetUMODCloseFct( CLOSE_FCN1_D );
pMod->AddAvailableAnalysisType(DC_);
break;
case AC_:
pMod->SetUMODInitFct( INIT_FCN1_A );
pMod->SetUMODSimFct(
SIMU_FCN1_A );
pMod->SetUMODValidFct( VALI_FCN1_A );
pMod->SetUMODCloseFct( CLOSE_FCN1_A );
pMod->AddAvailableAnalysisType(AC_);
break;
default:
break;
}
//
//
//
//
Initialize Funct. TR
Simulate Funct. TR
Validate Funct. TR
Close Function TR
//
//
//
//
Initialize Funct. DC
Simulate Funct. DC
Validate Funct. DC
Close Function DC
//
//
//
//
Initialize Funct. AC
Simulate Funct. AC
Validate Funct. AC
Close Function AC
}
if( !strcmp( pMod->GetDefName(), STRG_MODELNAME2 ) )
{
pMod->SetUMODPrepFct( PREP_FCN2 );
// ModelInterface
switch( pMod->GetAnalysisType() )
{
case TR_:
pMod->SetUMODInitFct( INIT_FCN2_T );
// Initialize Funct. TR
pMod->SetUMODSimFct(
SIMU_FCN2_T );
// Simulate Funct. TR
......
}
}
return TRUE;
}
The argument of this function is a C++ object of type CModUser. This central object stores all
model related information needed for its simulation.
C-Models in Simplorer 19-27
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
TR Initialize Function
TR Simulate Function
TR Validate Function
TR Close Function
TR Initialize Function
The prime task of the Initialize function is to mark all non-vanishing entries in the Jacobian matrix
to make it ready for filling with static and dynamic entries. Then initial conditions have to be set
and static entries can be filled. In the case of dynamic models these functions differ for TR-, DCand AC-modes because of the existence of temporal derivatives.
Symbolic entries are made by using the AddSymbolicGSEntry method of the CModUser object.
pMod->AddSymbolicGSEntry( 1, 3 )
// Informs the simulator about a non-vanishing entry at (1,3)
In the case of an automatically filled right side vector and additive terms in specific entries, it is
necessary to separate these entries in several terms.
Example (E4)
Let F1=3x1+0.5x1. Then F1/x1=3+0.5d/dt results. Therefore the corresponding Jacobian entry
(i,j) consists of two separate entries and results in the following program code:
pMod->AddSymbolicGSEntry( i, j, 0 );
pMod->AddSymbolicGSEntry( i, j, 1, D_DT_OPERAT );
The third parameter of the AddSymbolicGSEntry method is the index of the subentry, the optional
fourth parameter is used as a flag to signalize a temporal derivative to the simulator.
See also CUModDecl Object
In case of an error the initialize function shall return the FALSE value to inform the simulator about
this problem. Apart from this the model user can be informed about details of the problem by using
the Report2Sim callback function.
See also Callback Functions
RC Example
According to equation (E1), the Jacobian matrix for transient analysis consists of nine non-vanishing entries. Only two of them are constant. The other seven are potentially varying during a simulation run. Apart from this, the following example shows the use of the Report2Sim() function.
FCTDECL Init_RC_TR( CModUser *pMod )
{
// Get values from model interface
19-28 C-Models in Simplorer
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
TR Simulate Function
After setting up the Jacobian matrix in the Initialize function the whole mathematical model
description must be provide for the simulator. This is done through the Simulate function. In almost
every case three different simulate functions for the different simulator modes (TR, DC, AC) have
to be programmed.
C-Models in Simplorer 19-29
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The frequently used temporal derivative operator d/dt is replaced by the specialized callback function ISIM_ECM_D_DT.
See also Callback Functions
Example
Let F1=2(v1-v2)+3x1. Then F1/x1=3d/dt which results in the following program code:
pMod->SetRealGSEntry( 2, 2, 3*ISIM_ECM_D_DT( pMod ) );
If the right side vector is filled automatically (which is only possible in the case of linear equations)
and the partial derivatives are composed of additive terms with and without temporal derivatives,
several subentries at the corresponding Jacobian entry have to be filled.
Example
Let F1=3x1+0.5x1. Then F1/x1=3+0.5d/dt results. If the Prepare function sets the symbolic
Jacobian entries corresponding to example (E4) results in the following program code.
pMod->SetRealGSEntry( i, j, 0, 3.0 );
pMod->SetRealGSEntry( i, j, 1, 0.5*ISIM_ECM_D_DT( pMod ) );
Apart from setting the Jacobian entries the Simulate function is also used to set output quantities to
the model interface using the SetValNode_nc() method.
RC Example
The transient equations of the RC combination contains several dynamic terms. These have to be
set to the Jacobian matrix in the simulate model function:
FCTDECL Simu_RC_TR( CModUser *pMod )
{
// Getting parameters from the model interface
double cap = pMod->GetValNode_nc("C");
double res = pMod->GetValNode_nc("R");
// Getting Values from the solution vector
double q = pMod->GetSVVal( 3 ); //Charge on capacitor
// Example for parameter check
if (res <= 0.0)
{
char message[100];
strcpy( message, pMod->GetUseName() );
strcat( message, ": R must be positive" );
Report2Sim( pMod, UMOD_ERR, message );
return FALSE;
}
// Setting variable Jacobian matrix entries
pMod->SetRealGSEntry( 0, 0, 1.0/res );
pMod->SetRealGSEntry( 0, 1, -1.0/res );
pMod->SetRealGSEntry( 1, 0, -1.0/res );
pMod->SetRealGSEntry( 1, 1, 1.0/res );
19-30 C-Models in Simplorer
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
TR Validate Function
After every successful time step, Simplorer calls the Validate function for all models in a system. In
this section the model can perform tasks unique in every time step. For example, it is possible to
store data in an internal state for further use in the next time step.
TR Close Function
The Close function is called after finishing a transient analysis. It is the proper place for some final
cleanup procedures such as: freeing dynamically allocated memory, storing documentation information on the hard disk and/or closing all opened files.
C-Models in Simplorer 19-31
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
DC Initialize Function
DC Simulate Function
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
DC Validate Function
DC Close Function
DC Initialize Function
The DC Initialize function has similar purposes like the corresponding model function for TR analysis. Moreover, for static models (components without temporal derivatives), they are almost identical. Then a corresponding implementation like in the case of the DC Prepare function is
applicable.
RC Example
According to equation (E2) the DC Jacobian is very similar to the TR case with the exception of
two temporal derivatives which vanish in the DC case. This results in the following source code
fragment:
FCTDECL Init_RC_DC( CModUser *pMod )
{
// Get values from model interface
double cap = pMod->GetValNode_nc("C");
double uc0 = pMod->GetValNode_nc("UC0");
double q;
// Set symbolic Jacobian entries according to (E1)
pMod->SetSymbolicGSEntry( 0, 0 );
pMod->SetSymbolicGSEntry( 0, 1 );
pMod->SetSymbolicGSEntry( 1, 0 );
pMod->SetSymbolicGSEntry( 1, 1 );
pMod->SetSymbolicGSEntry( 3, 1 );
pMod->SetSymbolicGSEntry( 3, 2 );
pMod->SetSymbolicGSEntry( 3, 3 );
// Set constant Jacobian entries
pMod->SetRealGSEntry( 3, 1, 1.0 );
pMod->SetRealGSEntry( 3, 2, -1.0 );
// Set initial condition electric charge on capacitor
q = cap * uc0;
pMod->SetSVVal( 3, q ); // Entry #3 in solution vector
return TRUE;
}
DC Simulate Function
The DC Simulate function provides the mathematical DC description of the models static behavior.
The equations can be derived from the transient equations by dropping all dynamic parts. That
means that all Jacobian entries containing temporal derivatives vanish for DC analysis. All explicit
time dependencies must be extrapolated to infinite time.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
RC Example
The DC equations of the RC combination are found in equation (E2). They are similar to the equations of the TR version:
FCTDECL Simu_RC_DC( CModUser *pMod )
{
// Getting parameters from the model interface
double cap = pMod->GetValNode_nc("C");
double res = pMod->GetValNode_nc("R");
// Getting Values from the solution vector
double q = pMod->GetSVVal( 3 ); //Charge on capacitor
// Setting variable Jacobian matrix entries
pMod->SetRealGSEntry( 0, 0, 1.0/res );
pMod->SetRealGSEntry( 0, 1, -1.0/res );
pMod->SetRealGSEntry( 1, 0, -1.0/res );
pMod->SetRealGSEntry( 1, 1, 1.0/res );
pMod->SetRealGSEntry( 3, 3, -1.0/cap );
// Because of the linearity of the equations the right side
// vector is filled automatically!
// Sending output values to model interface
pMod->SetValNode_nc( "Q", q );
return TRUE;
}
DC Validate Function
In most cases the DC Validate function is only required to signal a successful DC simulation step to
the simulator by returning the TRUE variable. It can be omitted if it is not used.
DC Close Function
Because the results of DC analyses are used as the operating point for subsequent AC simulations,
the DC Close function is very important. The DC Close function must store all information necessary to reconstruct the operating point for a (possible) subsequent AC analysis. Therefore UserData
is used. The UserData linked via the SetUserData method in DC can be queried in AC analyses by
GetUserDataDC.
RC Example
For the RC example, three values shall be stored for further use in the AC analysis. These are the
capacity and resistance values, and the voltage at the capacitor. For this purpose, an adequate memory structure (sDCOP) must be established.
struct sDCOP
{
double cap, res, Vc;
};
FCTDECL Close_RC_DC( CModUser *pMod )
19-34 C-Models in Simplorer
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
{
double C = pMod->GetValNode_nc("C");
double R = pMod->GetValNode_nc("R");
double Vc = pMod->GetSVVal(1) - pMod->GetSVVal(2);
sDCOP *pUserData = (sDCOP*)pMod->AllocateUserDataMemory( sizeof(sDCOP)
);
pMod->SetUserData( pUserData, sizeof(sDCOP) );
pUserData->cap = C;
pUserData->res = R;
pUserData->Vc = Vc;
return TRUE;
}
AC Initialize Function
Due to the complex algebra used in the description of the AC behavior of dynamic systems the AC
Initialize function often differs from the TR or DC version.
RC Example
Comparing the AC Jacobian matrix of equation (E3) to the one of the TR example (E1) shows
many similarities except the temporal derivatives which are replaced by complex numbers j.
Therefore the symbolic AC entries have no derivative flag (D_DT_OPERAT). Furthermore, the
solution vector of the AC problem consists of complex entries.
FCTDECL Init_RC_AC( CModUser *pMod )
{
// Get values from DC analysis, sDCOP is defined below
long DCsize;
sDCOP *pUserData = (sDCOP*)pMod->GetDCUserData( &DCsize );
double cap = sDCOP->cap;
double res = sDCOP->res;
double Vc = sDCOP->Vc;
// Set symbolic Jacobian entries according to (E1)
pMod->SetSymbolicGSEntry( 0, 0 );
pMod->SetSymbolicGSEntry( 0, 1 );
pMod->SetSymbolicGSEntry( 1, 0 );
pMod->SetSymbolicGSEntry( 1, 1 );
pMod->SetSymbolicGSEntry( 1, 3 );
C-Models in Simplorer 19-35
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
pMod->SetSymbolicGSEntry( 2, 3 );
pMod->SetSymbolicGSEntry( 3, 1 );
pMod->SetSymbolicGSEntry( 3, 2 );
pMod->SetSymbolicGSEntry( 3, 3 );
// Set constant Jacobian entries
pMod->SetRealGSEntry( 0, 0, 1.0/res );
pMod->SetRealGSEntry( 0, 1, -1.0/res );
pMod->SetRealGSEntry( 1, 0, -1.0/res );
pMod->SetRealGSEntry( 1, 1, 1.0/res );
pMod->SetRealGSEntry( 3, 1, 1.0 );
pMod->SetRealGSEntry( 3, 2, -1.0 );
pMod->SetRealGSEntry( 3, 3, -1.0/cap );
// Set initial condition electric charge on capacitor
double q = cap * Vc;
pMod->SetSVVal( 3, q ); // Entry #3 in solution vector
return TRUE;
}
AC Simulate Function
The AC Simulate function provides the mathematical description of the models AC behavior. Generally this contains complex algebra and differentiation. From Laplacian transformation the temporal derivative operator d/dt is replaced by the complex term j. This factor is represented in the
source code by the callback function CComplex ISIM_ECM_P.
See also Callback Functions
RC Example
From the AC equations of the RC combination example (E3) the following AC Simulate function
results:
FCTDECL Simu_RC_AC( CModUser *pMod )
{
long DCsize;
// Get values from DC analysis, sDCOP is defined below
// (they are not needed in the Simulate-function of this example)
sDCOP *pUserData = (sDCOP*)pMod->GetDCUserData( &DCsize );
double cap = pUserData->cap;
double res = pUserData->res;
// Variable Jacobian entries
pMod->SetCplxGSEntry( 0, 0, ISIM_ECM_P( pMod ) );
pMod->SetCplxGSEntry( 0, 1, -ISIM_ECM_P( pMod ) );
// Because of the linearity of the equations the right side
// vector is filled automatically!
return TRUE;
}
19-36 C-Models in Simplorer
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
AC Validate function
The AC Validate function is called by the Simulator between subsequent frequency steps. It can be
omitted if it is not used.
AC Close function
The AC Close function is called after a AC simulation. It is the right place for releasing dynamically allocated memory or for other clean-up.
When selecting BDM as the preferred simulator a non-conservative node named TS is automatically created. The user input for this parameter is automatically taken as sample time of the block.
This ensures the sampling of the block at these sample times independently of all other elements on
a simulation sheet. All block outputs are held constant until the block is sampled again.
A user input of 0 disables the fixed sample time and forces the Simplorer simulator to calculate the
block at every simulator step.
To ensure a proper operation in all circumstances it is necessary to access block outputs via associated internal states only.
See also Use of Internal States
Direct setting of model outputs shall be prevented. Due to this technique the simulator is able to
access the output nodes of the component in case of a back step event.
C-Models in Simplorer 19-37
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The sample time of a model can be accessed or modified using the callback functions
GET_SAMPLETIME and SET_SAMPLETIME. It is suggested to set a default sample time in the prepare
function of the model. Otherwise Simplorer uses the system sample time. In case of a zero sample
time input, the GET_SAMPLETIME function returns the current simulator time step width. This facilitates the use of this function in temporal numerical integration procedures.
FCTDECL PREP( CModUser *pMod )
{
Output
Nonlinear resistor
RNL
Nonlinear conductor
GVNL
CVNL
Nonlinear capacitor
CNL
LINL
Nonlinear inductor
LNL
EVNL
EINL
IVNL
IINL
Ie
Le
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Simplorer Model
Output
DCMENL-CHM
ie
Non-linear block
NL
INPUT
VAL
C-models
arbitrary arbitrary
The programming of a C-model characteristics needs to register the model as a UDCHAR in the RegisterUserModel section:
FCTDECL RegisterUserModel( long lIndex, CUModDecl *pUModDecl )
{
switch( lIndex )
{
case 0: pUModDecl->SetDefName( "Charactermodel" );
pUModDecl->SetModelType( UDCHAR );
break;
default:
break;
}
}
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Updating C-models
To update models using .dll files, either click Elements>update C Models, or use the shortcut menu
command. Select a .dll file in the input field. The model name in the .dll file must be identical to the
active model name (defined with RegisterUserModel). You can select either a map file or the list
mode to assign new to old parameters. Click in a field of new parameters to select a new name in
the list. The list provides all in the C-model defined parameters and nodes.
The options to update node model information, default values, and units replaces entries in the
active model with definitions from the .dll model file. Units are defined with
SetUnitNameNode_nc, information about nodes with SetInfoNode_nc and SetInfoNode__c,
default values in AddNode_nc.
See also Programming C-models
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
Paths for .dll model files specified in OPTIONS>PROGRAM DIRECTORIES Search Paths.
3.
4.
5.
6.
Note
The path, defined in the Files tab of model properties, is not used in the search
algorithm.
C-models in Schematic
C-models appear in the Project Manager Components tree under Project Components. They can be
placed on a schematic sheet and used in a simulation model like any other Simplorer component.
The Properties window of a C-model lists the models parameters and nodes, as defined in the .dll
model file. Like any other Simplorer model, a customized component dialog can be designed using
the Component Editor.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
UMODEL
Type name
Instance name
Attributes
List of
conservative
nodes
List of nonconservative
nodes
UMODEL
Type name:
Instance name:
Conservative nodes:
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Data Types
The Data exchange of user defined C-models with Simplorer via the CModUser object requires the
use of some predefined data types. These data types are listed in the following:
Data Type
Usage
Example
BOOL
Logical values
TRUE, FALSE
CComplex
Storage of complex
numbers
eAnlsType
eDataType
Type of non-conservative
nodes
INTEGER_, REAL_,
ENUMERATION_, PHYSICAL_,
ARRAY_, RECORD_, FILE_,
STRING_, BOOL_, COMPLEX_,
CHAR_
eNature
Domain name of
conservative nodes
ELECTRICAL_, MAGNETIC_,
THERMAL_, TRANSLATIONAL _,
TRANSLATIONAL_V,
ROTATIONAL_, ROTATIONAL_V,
FLUIDIC_
eSolverType
EULER_, TRAPEZOIDAL_
eUModType
Model type
UMODEL, UDCHAR
FCTDECL
LPCTSTR
Pointer to a constant
character string
SIMFCT_UMODEL
Flag
Simulator type
Flag
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
CUModDecl Object
The Simplorer C Interface provides a specialized C++ class to perform basic link operations of
Simplorer with the C-models. This class is named CUModDecl. It and its methods is only used in the
RegisterUserModel section of the model source code. There are three public methods to be used
by the programmer:
SetDefName
Assigns a name to the model.
void SetDefName( char *DefName )
DefName
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
SetModelType
Assigns a model type to the component.
void SetModelType( eUModType Type )
Type
Model type.
This method is used to inform Simplorer about the model type. Simplorer
distinguishes between UMODEL and UDCHAR type C models. The first
are components with an arbitrary number of conservative and nonconservative pins and internal equations. The latter are used to represent
so called 'characteristics', relating an output to an input value. These kind
of models can be used as a parameter input for Simplorer internal
components or other C models.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
SetSimPref
Assigns a simulator to the model.
SetSimPref( ULONG Sim)
Sim
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
AddNode_nc
AddSubNode_nc
GetDataTypeNode_nc
GetNode_ncParam
GetValNode_nc
GetValNode_ncCplx
GetValNode_ncFile
GetValNode_ncStrg
GetValSubNode_nc
IsCharConn
IsParamSetFlag
SetDataTypeNode_nc
SetInfoNode__c
SetInfoNode_nc
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
SetValNode_nc
SetValNode_ncFile
SetValPtrNode_nc
SetValSubNode_nc
Internal states
AddNode_State
GetValNode_State
Equation system
GetCplxSVVal
GetDSVVal
GetSVVal
SetCplxGSEntry
SetCplxRSEntry
SetRealGSEntry
SetRealRSEntry
Sets the real value of an entry in the right side entries vector.
SetSVVal
SetSymbolicGSEntry
Model identification
GetDefName
GetHierName
GetUseName
Miscellaneous
AllocateUserDataMemo Allocates memory for the storage of instance specific data.
ry
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
GetAnalysisType
GetDCUserData
GetUserData
IsTransientOP
SetUModCloseFct
SetUModInitFct
SetUModPrepFct
SetUModSimFct
SetUModValidFct
SetUserData
AddAvailableAnalysisType
Adds an analysis type to a component.
This method is used to inform the Simplorer simulator about the analysis types supported by the
component. It is generally used in conjunction with the definition of model functions during
model registration
BOOL AddAvailableAnalysisType( eAnlsType Type, char *pszFreeName = NULL
);
Type
pszFreeName
CModUser *pMod;
pMod->AddAvailableAnalysisType(TR_);
Sections
RegisterUMODELFct
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
AddNode__c
Adds conservative nodes to component.
Components in conservative systems must have conservative nodes to allow connection
with other systems of the same domain. Assigned with such a node is in every domain a
flow and a potential variable. For example in electrical systems
(NatureName=NATURE_NAME_ELECTRICAL_) these are electrical current or
voltage; in the case of translational mechanical systems
(NatureName=NATURE_NAME_TRANSLATIONAL_) these are force or velocity.
void AddNode__c( LPCTSTR Name, enum eNature Nat=ELECTRICAL_ )
void AddNode__c( LPCTSTR Name, LPCTSTR NatureName )
Name
Nat
NatureName
CModUser *pMod;
pMod->AddNode__c( "np" ); //Electrical is default
pMod->AddNode__c("hipres", FLUIDIC_ );
pMod->AddNode__c("flange1", NATURE_NAME_ROTATIONAL_);
Sections
Prepare
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
AddNode_nc
Adds non-conservative nodes to component.
Non-conservative nodes are used to pass values in and out of a model. They can represent
parameters, initial conditions or even time dependent signals.
int AddNode_nc( LPCTSTR Name, double Val=0, long Dir=DIROUT, BOOL
Vec=FALSE )
int AddNode_nc( LPCTSTR Name, LPCTSTR Use, long Dir=DIROUT, BOOL Vec=FALSE
)
Name
Val
Default value.
Use
Dir
Vec
Return value
Sections
Prepare
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
AddNode_State
Adds subnodes to an appropriate non-conservative node.
Input and output nodes of C-models can be vectorized. For this, an already added nonconservative node can be extended using this function. The node must be added using
the Vec-flag in its AddNode_nc call.
int AddNode_State( LPCTSTR Name, double dVal=0 )
Name
dVal
Default value.
Return value
CModUser *pMod;
pMod->AddNode_State( "Heatshieldtemperature" );
pMod->AddNode_State( "Warpfactor", 7.3 );
pMod->AddNode_State( "On_Off", 0.0 );
Sections
Prepare
AddSubNode_nc
Adds non-conservative nodes to component.
Non-conservative nodes are used to pass values in and out of a model. They can represent
parameters, initial conditions or even time dependent signals.
long AddSubNode_nc( LPCTSTR Name, long lndex, double Val, long Dir );
long AddSubNode_nc( LPCTSTR Name, long Index, LPCTSTR Use, long Dir );
Name
Val
Default value.
Use
Dir
Sections
Prepare
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
AllocateUserDataMemory
Allocates memory for the storage of instance specific data.
The method is used to allocate a memory block to store instance specific data. The allocated
memory block can be accessed after allocating from every model function in every analysis type.
It is for example used to store the DC operating point after DC analysis for further use in AC
analysis.
void *AllocateUserDataMemory( long size )
size
Return value
CModUser *pMod;
struct UD { double d1; int cnt; };
UD *pData = (UD*)pMod->AllocateUserDataMemory( sizeof( UD ) );
pMod->SetUserData( pData, sizeof( UD ) );
pData->d1 = 1.5;
pData->cnt = 30;
Sections
GetAnalysisType
Returns current analysis type.
Returns the Analysis type to inform the model about currently applied analysis type. Can be used
for example when introducing analysis dependent functionality or equation sets.
eAnlsType GetAnalysisType()
Return value
CModUser *pMod;
if (pMod->GetAnalysisType() == TR_ )
pMod->SetUMODInitFct( INIT_FCN_TR );
Sections
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
GetCplxSVVal
Returns complex solution vector elements.
In general the solution vector in AC analysis consists of complex elements. The method returns
such a complex vector element.
CComplex GetCplxSVVal( int LineNo )
LineNo
Return value
CModUser *pMod;
CComplex V1 = pMod->GetCplxSVVal(0);
CComplex V2 = pMod->GetCplxSVVal(1);
Sections
GetDataTypeNode_nc
Returns data type of non-conservative nodes.
Returns the data type of non-conservative nodes. Predefined values are INTEGER_, REAL_,
ENUMERATION_, PHYSICAL_, ARRAY_, RECORD_, FILE_, STRING_, BOOL_,
COMPLEX_ and CHAR_.
eDataType GetDataTypeNode_nc( LPCTSTR Name )
eDataType GetDataTypeNode_nc( int NodeNo )
Name
NodeNo
Return value
CModUser *pMod;
char sn[100];
double dn;
if ( pMod->GetDataTypeNode_nc( "Pin1" ) == STRING_ )
strcpy( sn, pMod->GetValNode_ncStrg( "Pin1" ) )
else
double dn = pMod->GetValNode_nc( "Pin1" );
Sections
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
GetDefName
Returns definition name of the model.
Returns the name that has been given in RegisterUserModel section with SetDefName.
LPCTSTR GetDefName()
Return value
CModUser *pMod;
char modelname[100];
strcpy( modelname, pMod->GetDefName() );
Sections
GetDCUserData
Retrieves a DC operating point for use in AC analysis.
The method is used to access the operating point data in an AC analysis already stored in a
preceding DC analysis. Since the AC version of a model can use its own user data, this function
allows a non-interfering access to the separate DC data block. The simultaneously returned size
information can be used to double-check the validity of the data.
void *GetDCUserData( long *size )
size
Return value
Sections
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
GetDSVVal
Returns temporal derivative of a solution vector element.
Returns the temporal derivative of a solution vector element in transient analysis.
double GetDSVVal( int LineNo )
LineNo
Return value
CModUser *pMod;
double position = pMod->GetSVVal(3);
double velocity = pMod->GetDSVVal(3);
Sections
GetHierName
Returns the hierarchical name of the model.
When the model is situated within subsheets or macros this function returns the path to the model,
for example subsheet1.
LPCTSTR GetHierName()
Return value
CModUser *pMod;
char hname[100];
strcpy( hname, pMod->GetHierName() );
Sections
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
GetNode_ncParam
Returns the parameter string of a non-conservative node.
If a number is set, the function returns an empty string; otherwise, it returns the name of the
connected value.
LPCTSTR GetNode_ncParam(LPCTSTR lpszName);
LPCTSTR GetNode_ncParam(int iNr);
lpszName
Name of non-conservative node.
iNr
Return value
CModUser *pMod;
LPCTSTR strParam1, strParam2;
strParam1 = pMod->GetNode_ncParam ( "Parameter_1" );
strParam2 = pMod->GetNode_ncParam ( 7 );
Sections
GetSVVal
Returns real solution vector element.
In every analysis type, solution vector elements are provided by Simplorer for further calculation
and evaluation. The method is used to access the real value of a solution vector elements.
double GetSVVal( int LineNo)
LineNo
Return value
CModUser *pMod;
V1 = pMod->GetSVVal(0);
position = pMod->GetSVVal(3);
Sections
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
GetUseName
Returns model instance name.
Several instances of one model in a simulation model (sheet) can be distinguished by their userdefined instance name. The method is used to access to the actual instance name of the model.
LPCTSTR GetUseName()
Return value
CModUser *pMod;
char message[100];
strcpy( message, pMod->GetUseName() );
strcat( message, " says hello! " );
Report2Sim( pMod, UMOD_INF, message );
Sections
GetUserData
Access an instance-specific user-defined data block.
For the storage of instance specific model data, the user data-structure can be used. For every
simulation mode (TR, DC, AC) a separate memory data block can be used and accessed by this
method.
void *GetUserData( long *size )
size
Return value
Sections
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
GetValNode_nc
Access a value of a non-conservative node.
Signal values at non-conservative nodes like initial values or parameters can be accessed through
this method. The use with characteristics is explained below.
double GetValNode_nc( LPCTSTR Name)
double GetValNode_nc(intNo)
Name
No
Return value
CModUser *pMod;
double v = pMod->GetSVVal(0) - pMod->GetSVVal(1);
double torque1 = pMod->GetValNode_nc( "Flange1" );
double input3 = pMod->GetValNode_nc( 3 );
Sections
Name
No
dy_dx
Return value
CModUser *pMod;
double i, v, di_dv;
i = pMod->GetValNode_nc( "CH", v, &di_dv );
Sections
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
GetValNode_ncCplx
Access complex value of a non-conservative node.
Especially in the case of AC simulations the exchange of complex signals between components is
frequently used. This method accesses complex signals fed to non-conservative nodes.
CComplex GetValNode_ncCplx( LPCTSTR Name)
CComplex GetValNode_ncCplx( int No )
Name
No
Return value
CModUser *pMod;
CComplex impedance, shift(1, pi);
impedance = pMod->GetValNodeCplx( "Zport" );
impedance = impedance * shift;
Sections
GetValNode_ncFile
Gets a file name through non-conservative node.
Models with included file input/output can use file names as input parameters. These names are
passes to the model via non-conservative nodes. The file name is accessed by using the
GetValNode_ncFile method.
LPCTSTR GetValNode_ncFile( LPCTSTR Name)
LPCTSTR GetValNode_ncFile(int No)
Name
No
Return value
File name.
CModUser *pMod;
char parafil[20], logfile[25];
strcpy( parafil, pMod->GetValNode_ncFile( "P_f" ) );
strcpy( logfile, pMod->GetValNode_ncFile( 7 ) );
Sections
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
GetValNode_ncStrg
Get a character string through a non-conservative node.
Besides numerical values, it might be necessary to pass character strings such as file
names, messages, or expressions to components. These strings are passes to the model
via non-conservative nodes.
LPCTSTR GetValNode_ncStrg( LPCTSTR Name)
LPCTSTR GetValNode_ncStrg(int No)
Name
No
Return value
Character string.
CModUser *pMod;
char messg[20], formula[250];
strcpy( messg, pMod->GetValNode_ncFile( "Signal" ) );
strcpy( formula, pMod->GetValNode_ncFile( 2 ) );
Report2Sim( pMod, UMOD_INF, messg );
Sections
GetValNode_State
Retrieves real internal state value.
Internal states are used to store instance specific values or signals. The real values of these
internal states can be accessed by using this method. Internal states are preferable compared to
global variables whenever applicable.
double GetValNode_State( LPCTSTR Name )
double GetValNode_State( int No )
Name
No
Return value
CModUser *pMod;
double stateofcharge = pMod->GetValNode_State("SOC");
double T = pMod->GetValNode_State( 3 );
Sections
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
GetValNode_StateCplx
Retrieves complex internal state value.
Internal states are used to store instance specific values or signals. The complex values of these
internal states can be accessed by using this method. Internal states are preferable compared to
global variables whenever applicable.
CComplex GetValNode_StateCplx( LPCTSTR Name )
double GetValNode_StateCplx( int No )
Name
No
Return value
CModUser *pMod;
CComplex CSignal = pMod->GetValNode_StateCplx("CS");
Sections
GetValSubNode_nc
Retrieves the value of an input vector element
Components of vectorized non-conservative input nodes need to be accessed element-wise using
this function.
double GetValSubNode_nc( LPCTSTR Name, long Index );
Name
Index
double
double
double
double
Sections
x
y
z
t
=
=
=
=
pMod->GetValSubNode_nc(
pMod->GetValSubNode_nc(
pMod->GetValSubNode_nc(
pMod->GetValSubNode_nc(
"Space_time_Vector",
"Space_time_Vector",
"Space_time_Vector",
"Space_time_Vector",
0
1
2
3
);
);
);
);
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
IsCharConn
Check, if a characteristic is connected to a non-conservative node.
When using a node for connecting an external characteristics block to the C-model, it is very
important to really connect such a special block to this nc-node. When connecting other blocks to
this node, the results may be completely wrong. This function returns TRUE in case of a
characteristics is connected to the node and FALSE in all other cases.
BOOL IsCharConn(LPCTSTR Name);
Name
if ( !pMod->IsCharConn("ChNode") ){
Report2Sim(pMod, UMOD_ERR, "There is no Char-Block connected
at node 'ChNode'!");
return FALSE;
}
Sections
Initialize.
IsParamSetFlag
Checks if default parameter values has been changed by the user.
Non-conservative model inputs usually have a default value. This method allows to
sense the change of these parameters from default values.
BOOL IsParamSetFlag( LPCTSTR Name )
Name
Return value
CModUser *pMod;
double pp;
if ( pMod->IsParamSetFlag( "P1" ) )
pp = pMod->GetValNode_nc( "P1" )
else
pp = DEFAULT_P1;
Sections
Init, Simulate.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
IsTransientOP
Check, if simulator is calculating transient operating point.
Before every transient simulation, the Simulator performs an operating point analysis.For
example, initial values of capacitors and inductors are set, if they are specified. If they are not
specified, the simulator has to calculate reasonable starting values for the transient simulation. For
this calculation, most models need to have a special equation system. This special system can be
selected by monitoring the function return value. It is TRUE in case the simulator is calculating
the transient operating point and FALSE all other times.
BOOL IsTransientOP();
if ( pMod->IsTransientOP() ) {
// Use special Transient OP equation set
...
} else {
// Normal TR equation set
...
};
Sections
Simulate.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
SetCplxGSEntry
Sets complex entry in the Jacobian matrix.
For AC analysis the coefficients of the equation system to be solved are complex. This method is
used to enter these complex values into the Jacobian matrix. It also allows to enter multiple
additive values at the entry sites. This is might be necessary when filling the right side of the
equation system automatically.
BOOL SetCplxGSEntry(long Row, long Col, const CComplex &Val)
BOOL SetCplxGSEntry(long Row, long Col, const CComplex &Val, long sub)
Row
Col
Val
sub
Return value
CModUser *pMod;
CComplex z1(1.3,-2.2), z2(2.0,3.3);
CComplex jw = ISIM_ECM_P( pMod );
pMod->SetCplxGSEntry( 0, 2, z1
);
pMod->SetCplxGSEntry( 1, 3, z2
, 0 );
pMod->SetCplxGSEntry( 1, 3, 2.0 * jw, 1 );
Sections
SetCplxRSEntry
Sets a complex right side entry.
The automatic filling of the right side is only possible for linear equations. All nonlinear systems
require to fill the right side of the equations manually. In AC analysis the right side entries are
complex numbers. They are set using the SetCplxRSEntry method.
BOOL SetCplxRSEntry( long No, const CComplex &Val )
No
Val
Return value
CModUser *pMod;
CComplex z(1.2, 3.14)
pMod->SetSymbolicGSEntry( 1, 3, 0, RS_DONTFILL );
pMod->SetCplxRSEntry( 1, z );
Sections
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
SetDataTypeNode_nc
Sets a data type for a non-conservative node.
To every non-conservative node, a specific data type can be assigned. This can be done in the
Model Agent after introducing the model to Simplorer or in the model itself using this method.
BOOL SetDataTypeNode_nc( LPCTSTR Name, eDataType DataType )
BOOL SetDataTypeNode_nc( int No, eDataType DataType )
Name
No
DataType
Return value
CModUser *pMod;
pMod->AddNode_nc( "Z", 0.0, DIRIN );
pMod->AddNode_nc( "name", "Ralf", DIRIN );
pMod->SetDataTypeNode_nc( "Z", COMPLEX_ );
pMod->SetDataTypeNode_nc( 1, STRING_ );
Sections
Prepare.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
SetInfoNode__c
Assigns information line to conservative pins.
To every conservative node an info line can be assigned. This info line shall describe the meaning
or function of the node. The text line can be assigned in the Model Agent or in the model source
code. Info lines can be assigned in various languages (english is default). According to the
language selected in Simplorer the correct line will be displayed.
void SetInfoNode__c( LPCTSTR Name, LPCTSTR Info, LANGID lLangID =
MAKELANGID(LANG_ENGLISH,SUBLANG_ENGLISH_US) )
void SetInfoNode__c( int No, LPCTSTR Info, LANGID lLangID =
MAKELANGID(LANG_ENGLISH,SUBLANG_ENGLISH_US) )
Name
No
Info
lLangID
CModUser *pMod;
pMod->SetInfoNode__c( "V1", "Voltage" );
pMod->SetInfoNode__c( "V1", "Spannung", MAKELANGID( LANG_GERMAN,
SUBLANG_GERMAN ) );
Sections
Prepare.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
SetInfoNode_nc
Assigns an information line to non-conservative nodes.
To every non-conservative node an info line can be assigned. This info line shall describe the
meaning or function of the node. The text line can be assigned in the Model Agent or in the model
source code. Info lines can be assigned in various languages (english is default). According to the
language selected in Simplorer, the correct line will be displayed.
void SetInfoNode_nc( LPCTSTR Name, LPCTSTR Info, LANGID lLangID =
MAKELANGID(LANG_ENGLISH,SUBLANG_ENGLISH_US) )
void SetInfoNode_nc( int No, LPCTSTR Info, LANGID lLangID =
MAKELANGID(LANG_ENGLISH,SUBLANG_ENGLISH_US) )
Name
No
Info
lLangID
CModUser *pMod;
pMod->SetInfoNode_nc( "R", "Resistance" );
pMod->SetInfoNode_nc( "R", "Widerstand", MAKELANGID( LANG_GERMAN,
SUBLANG_GERMAN ) );
Sections
Prepare.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
SetNatureTypeNode__c
Assigns a nature to a conservative node.
The method is used to assign a nature type to a conservative node. Simplorer can
simulate dynamic systems in multiple physical domains. In every domain, there are
potential and flow variables assigned to conservative nodes. Such an assignment is
called the nature of the node. Simplorer prevents the unintentional connection of nodes
of different domains. Therefore the user has to assign a nature to every conservative
node. When creating conservative nodes using AddNode__c, the electrical nature is
default.
BOOL SetNatureTypeNode__c( LPCTSTR Name, LPCTSTR NatureName )
Name
NatureName
Return value
CModUser *pMod;
pMod->SetNatureTypeNode__c( "V1",
NATURE_NAME_ELECTRICAL_ );
pMod->SetNatureTypeNode__c( "p2",
NATURE_NAME_FLUIDIC_ );
Sections
Prepare.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
SetRealGSEntry
Sets a Jacobian matrix element.
The method is used to enter real values into the Jacobian matrix. It also allows to enter multiple
additive values at the entry sites. This is might be necessary when filling the right side of the
equation system automatically.
BOOL SetRealGSEntry( long Row, long Col, double Val )
BOOL SetRealGSEntry( long Row, long Col, double Val, long sub )
Row
Col
Val
Sub
Return value
CModUser *pMod;
double r1 = 10.0;
double r2 = 2.3;
double dh = ISIM_ECM_D_DT( pMod );
pMod->SetRealGSEntry( 0, 2, r1
);
pMod->SetRealGSEntry( 1, 3, r2,
0 );
pMod->SetRealGSEntry( 1, 3, 2.0*dh, 1 );
Sections
Init, Simulate.
SetRealRSEntry
Sets a right side entry at a defined position.
The automatic filling of the right side is only possible for linear equations. All nonlinear systems
require to fill the right side of the equations manually. For real entries this is done using the
SetRealRSEntry method.
BOOL SetRealRSEntry( long No, double Val ))
No
Val
Return value
CModUser *pMod;
pMod->SetSymbolicGSEntry( 1, 3, 0, RS_DONTFILL );
pMod->SetRealRSEntry( 1, -2.7 );
Sections
Init, Simulate.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
SetSVVal
Assigns a value to the solution vector.
The method is used for the assignment of initial conditions to the elements of the
solution vector. It assigns real as well as complex quantities to the solution vector.
Complex quantities are only used in AC analysis.
BOOL SetSVVal( int No, double dVal )
BOOL SetSVVal( int No, const CComplex &cVal )
No
dVal
cVal
Return value
CModUser *pMod;
CComplex z1(1.7, -3.1);
pMod->SetSVVal( 0, 230.0 );
pMod->SetSVVal( 3, z1 );
Sections
Init.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
SetSymbolicGSEntry
Marks non-vanishing Jacobian matrix elements.
Before filling the Jacobian matrix with real or complex entries the simulator has to be informed
about the non-vanishing entries of the matrix. Several additive terms can be filled at one entry site
using the subentry functionality. The method is mainly used in the case of automatically filling
the right side vector. Several predefined flag values can be combined using the '|' (OR-) operator:
D_DT_OPERAT|RS_DONTFILL.
BOOL SetSymbolicGSEntry( long Row, long Col )
BOOL SetSymbolicGSEntry( long Row, long Col, long sub, long Flag=0L )
Row
Col
Sub
Flag
Return Value
CModUser *pMod;
SetSymbolicGSEntry( 0, 0 );
SetSymbolicGSEntry( 1, 2, 0, RS_DONTFILL );
SetSymbolicGSEntry( 1, 2, 1,RS_DONTFILL|D_DT_OPERAT );
Sections
Prepare.
SetUModCloseFct
Assigns a close function to the model.
In the RegisterUMODELFct function of the source code, the model functions have to be
announced to the Simplorer simulator. The method is used to announce the Close function, which
is used for final clean up after simulation run.
void SetUMODCloseFct( SIMFCT_UMODEL pFct )
pFct
Pointer to a model function of type FCTDECL function(*CModUser).
FCTDECL RegisterUMODELFct( CModUser *pMod )
{
pMod->SetUMODCloseFct( modelclose );
return TRUE;
}
Sections
RegisterUMODELFct.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
SetUModInitFct
Assigns an initialize function to the model.
In the RegisterUMODELFct function of the source code, the model functions have to be announced
to the Simplorer simulator. The method is used to announce the Initialize function, where the
component initialization is performed.
void SetUMODInitFct( SIMFCT_UMODEL pFct )
pFct
Pointer to a model function of type FCTDECL function(*CModUser).
FCTDECL RegisterUMODELFct( CModUser *pMod )
{
pMod->SetUMODInitFct( ini_func );
return TRUE;
}
Sections
RegisterUMODELFct.
SetUModPrepFct
Assigns a prepare function to the model.
In the RegisterUMODELFct function of the source code, the model functions have to be announced
to the Simplorer simulator. The method is used to announce the Prepare function, where all the
nodes and internal states of the model are defined.
void SetUMODPrepFct( SIMFCT_UMODEL pFct )
pFct
Pointer to a model function of type FCTDECL function(*CModUser).
FCTDECL RegisterUMODELFct( CModUser *pMod )
{
pMod->SetUMODPrepFct( model_basics );
return TRUE;
}
Sections
RegisterUMODELFct.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
SetUModSimFct
Assigns a simulate function to the model.
In the RegisterUMODELFct function of the source code, the model functions have to be announced
to the Simplorer simulator. The method is used to announce the Simulate function, where the
mathematical model description is computed.
void SetUMODSimFct( SIMFCT_UMODEL pFct )
pFct
Pointer to a model function of type FCTDECL function(*CModUser).
FCTDECL RegisterUMODELFct( CModUser *pMod )
{
switch( pMod->GetAnalysisType() )
{
case DC_:
pMod->SetUModSimFct( SIM_DC );
break;
case TR_:
pMod->SetUModSimFct( SIM_TR );
break;
case AC_:
pMod->SetUModSimFct( SIM_AC );
break;
default:
break;
}
}
Sections
RegisterUMODELFct.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
SetUModValidFct
Assigns a simulate function to the model.
In the RegisterUMODELFct function in the source code, the model functions have to be announced
to the Simplorer simulator. The method is used to announce the Validate function, which is called
after every complete time step.
void SetUMODValidFct( SIMFCT_UMODEL pFct )
pFct
Pointer to a model function of type FCTDECL function(*CModUser).
FCTDECL RegisterUMODELFct( CModUser *pMod )
{
pMod->SetUMODValidFct( model_basics );
return TRUE;
}
Sections
RegisterUMODELFct.
SetUnitNameNode
Assigns units to non-conservative nodes.
Simplorer components can provide the units of its non-conservative nodes in the Schematic. The
method is used to assign the units. Since this values are used to inform the user only, there is no
restriction in unit names.
void SetUnitNameNode_nc( LPCTSTR Name, LPCTSTR Unit )
void SetUnitNameNode_nc( int No, LPCTSTR Unit )
Name
No
Unit
Sections
Prepare.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
SetUserData
Storages arbitrary instance specific user data memory.
It is often useful to re-use or exchange data in several model functions. The user data structure
allows to avoid the use of global variables which would cause interference with other instances of
the same model. The method is used to connect the user data to the model instance for further
access using the GetUserData function.
BOOL SetUserData( void *userdata, long size );
userdata
size
Return value
Sections
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
SetValNode_nc
Assigns a value to the non-conservative node.
Non-conservative nodes provide a very versatile interface to pass signals between different
components on a Simplorer Schematic. The method is used to assign data of nearly arbitrary type
to these nodes.
For a complex value, real and imaginary part of the node_nc are set. For a real value only the real
part is set. That means the imaginary part is not influenced by setting a real value. The previous
imaginary value still exists.
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
SetValNode_nc(
SetValNode_nc(
SetValNode_nc(
SetValNode_nc(
SetValNode_nc(
SetValNode_nc(
SetValNode_nc(
LPCTSTR
LPCTSTR
int No,
LPCTSTR
int No,
LPCTSTR
int No,
Name
No
dVal
iVal
cVal
Strg
Return value
CModUser *pMod;
double r = 27.5;
int i = 30;
CComplex z(2.3, -3.14);
pMod->SetValNode_nc( "speed", r );
pMod->SetValNode_nc( "step", i );
pMod->SetValNode_nc( 4, z );
pMod->SetValNode_nc( 5, "data.txt" );
pMod->SetValNode_nc( "displacement", 1380.0 );
Sections
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
SetValNode_ncFile
Assigns a file name to a non-conservative node.
The method is used to pass file names from the model to the simulator or the user.
BOOL SetValNode_ncFile( LPCTSTR Name, LPCTSTR Strg )
BOOL SetValNode_ncFile( int No, LPCTSTR Strg )
Name
No
Strg
Return value
CModUser *pMod;
pMod->SetValNode_ncFile( "file1", "autoexec.bat" );
pMod->SetValNode_ncFile( 3, "manual.pdf" );
Sections
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
SetValNode_State
Assigns a value to an internal state.
The method is used to assign a value to an internal state. The internal states are created by the
AddNode_State function. This kind of storage has to be preferred over global variables whenever
applicable. Every model instance has its own memory for state variables. State variables are
automatically stored and restored by the simulator in case of an backstep event. Complex states
are mainly used in AC analysis.
BOOL
BOOL
BOOL
BOOL
SetValNode_State(
SetValNode_State(
SetValNode_State(
SetValNode_State(
LPCTSTR
int No,
LPCTSTR
int No,
Name
No
dVal
cVal
Return value
CModUser *pMod;
CComplex z(3.5, -1.7);
pMod->SetValNode_State( "temperature", 36.5 );
pMod->SetValNode_State( 4, z );
Sections
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
SetValPtrNode_nc
Links a non-conservative node to a double pointer.
A non-conservative node can be linked to a static variable in the Dynamic Link Libraries
memory, so that every change of the value of the double pointer will affect the value of the node.
This is useful for variables defined within the UserData Memory of a model.
BOOL SetValPtrNode_nc( LPCTSTR Name, double *dVal )
BOOL SetValPtrNode_nc( int No, double *dVal )
Name
No
*dVal
Return value
CModUser *pMod;
double r[5];
int i;
for( i=0; i<5; i++ )
r[i] = sqrt(i);
double* p1 = &((CUserData*)pData)->m_dVal;
pMod->SetValPtrNode_nc( "roots", p1 );
Sections
SetValSubNode_nc
Assigns a value to an output vector element.
Non-conservative output vectors of C-models must be assigned element-wise using this
function.
long SetValSubNode_nc( LPCTSTR Name, long lndex, double Val );
long SetValSubNode_nc( LPCTSTR Name, long Index, LPCTSTR strVal);
Name
Index
Val
*Val
Return value
Sections
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Callback Functions
The Simplorer C interface provides a number of callback functions to access simulator specific data
or to influence the simulator behavior. These functions can be used in nearly all model functions.
The calling CModUser object is always a parameter of these functions.
CHAR_IN
Access the input variable in case of a characteristics model.
The Simplorer C interface allows the programming of arbitrary nonlinear relationships
in a characteristic model.
See also C-models Used as Characteristics.
This kind of model can be connected to any characteristics input node of Simplorer
basic components as well as of other C-models. The CHAR_IN function is used by the
characteristics model to access the independent variable x set by the connected element.
double CHAR_IN(CModUser *pModU )
Return value
CHAR_OUT
Sets the output variable in case of a characteristics model.
The Simplorer C interface allows the programming of arbitrary nonlinear relationships
y=f(x) in a characteristiC-model.
See also C-models Used as Characteristics.
This kind of model can be connected to any characteristics input node of Simplorer
basic components as well as of other C-models. The CHAR_OUT function is used by
the characteristics model to set the y value to be returned to the connected element.
void CHAR_OUT(CModUser *pModU, double y )
CHAR_OUT_DERIVE
Sets the partial derivative y/x of a characteristics model.
The Simplorer C interface allows the programming of arbitrary nonlinear relationships
in a characteristic model.
See also C-models Used as Characteristics.
This kind of model can be connected to any characteristics input node of Simplorer
basic components as well as of other C-models. Since in most cases the partial
derivative y/x is also needed for the Jacobian matrix, this function sets its values to
be accessed by the connected component.
void CHAR_OUT_DERIVE(CModUser *pModU, double dx_dy )
dx_dy
The partial derivative of the output quantity y with respect to the
input quantity x.
19-82 C-Models in Simplorer
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
GET_SAMPLETIME
Gets the sample time.of a component.
The Simplorer C interface allows to define components with arbitrary sample times to
be defined at initialization. These components are executed at this sample rate
independently of all other present components.
This callback function returns the user input at the corresponding node. In case of a zero
input, it returns the current sample time.
See also C-models with specified Sample Time
double GET_SAMPLETIME(CModUser *pModU)
Return value
getPATH
Returns sheet related path information.
This callback function returns the file path to the currently simulated sheet or the sheet
name. The output is controlled by the first function parameter, which can be set to the
pre-defined values PATH2MODELDESCRIPTION or MODELFILENAME.
void getPATH( long lOption, char *pszString, long lLen );
Return value
Path information.
IOption
pszString
lLen
ISIM_BASE
Gets the current simulation time in TR simulation mode (T).
Components with explicit time dependency can use this callback function to access
simulation time.
double ISIM_BASE(CModUser *pModU)
Return value
Simulation time.
ISIM_BASE_MAX
Returns maximum time step in TR simulation mode (HMAX).
double ISIM_BASE_MAX(CModUser *pModU)
Return value
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
ISIM_BASE_MIN
Returns minimum time step in TR simulation mode (HMIN).
double ISIM_BASE_MIN(CModUser *pModU)
Return value
ISIM_BASE_STEP
Returns current time step in TR simulation mode (H).
double ISIM_BASE_STEP(CModUser *pModU)
Return value
ISIM_BASE_TEMP
Returns current ambient temperature in C (THETA).
double ISIM_BASE_TEMP(CModUser *pModU)
Return value
ISIM_BASE_XEND
Returns simulation end time (TR) or ending frequency (AC).
double ISIM_BASE_XEND(CModUser *pModU)
Return value
ISIM_BASE_XSTART
Returns simulation start time (TR) or starting frequency (AC).
double ISIM_BASE_XSTART(CModUser *pModU)
Return value
ISIM_ECM_D_DT
Returns temporal derivative operator in TR analysis.
The callback function is used to access the numerical equivalent to the d/dt-operator in
TR analysis. Since Simplorer uses variable step size algorithms to simulate the system,
this value is not constant. The function has to be used every time the temporal derivative
is needed.
double ISIM_ECM_D_DT(CModUser *pModU)
Return value
1/dt
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
ISIM_ECM_IEMAX
Returns maximum current error (IEMAX) of the newton-raphson iterations during TR
calculation.
double ISIM_ECM_IEMAX(CModUser *pModU)
Return value
ISIM_ECM_ITERAT
Returns the maximum number of iterations (ITERATMAX).
double ISIM_ECM_ITERAT(CModUser *pModU)
Return value
ISIM_ECM_LDF
Returns the local discretisation error (LDF).
double ISIM_ECM_LDF(CModUser *pModU)
Return value
ISIM_ECM_NEW
Returns step information.
The callback function returns TRUE in normal smooth operation of the simulator when
it progresses continuously with time. Several events can force the simulator to step back
in time. During such a step it returns FALSE.
DOUBLE ISIM_ECM_NEW(CModUser *pModU)
Return value
ISIM_ECM_P
Returns complex frequency operator in AC analysis.
The callback function is used to access the complex frequency (the numerical equivalent
to the d/dt -operator) in AC analysis. Obtained through Laplacian transformation this
results to the complex term j. This requires the update of the operator in every
frequency step of an AC analysis. Therefore, this callback function must be used every
time in the simulate section to access the correct value.
CComplex ISIM_ECM_P(CModUser *pModU)
Return value
j.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
ISIM_ECM_SOLVER
Returns the solver type of the network simulator.
eSolverType ISIM_ECM_SOLVER(CModUser *pModU)
Return value
EULER_ or TRAPEZOIDAL_.
ISIM_ECM_UEMAX
Returns maximum voltage error (VEMAX) during TR calculation.
ISIM_ECM_UEMAX(pMod)
Return value
OSIM_ECM_REJECT
Requests back step.
The callback function is used to force the simulator to step back and repeat the last time
step with a smaller (simulator-defined) step size. It can be used when numerical
instabilities occur which are related to a too large step size or to approach switching
events.
void OSIM_ECM_REJECT(CModUser *pModU)
OSIM_ECM_SYNC
Sets new user-defined step size for ECM models.
The callback function is used to force the simulator to step back and repeat the last time
step with a user-defined smaller step size. It can be used when numerical instabilities
occur which are related to a too large step size or to approach switching events. The step
size must be greater or equal the minimum time step (HMIN).
void OSIM_ECM_SYNC(CModUser *pModU, double dt)
dt
OSIM_SYNC
Requests back step and setting new user-defined step size for TFM models.
The callback function is used to force the simulator to step back and repeat the last time
step with a user-defined smaller step size. It can be used when numerical instabilities
occur which are related to a too large step size or to approach switching events. The step
size must be greater or equal the minimum time step (HMIN).
void OSIM_SYNC(CModUser *pModU, double dt)
dt
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Report2Sim
Displays messages in the simulator output window or opens pop-up windows.
The callback function displays information important to the user. It can be used to
display information or errors. These messages will help to identify problems and avoid
unexpected simulation results. In case of an error, this routine does not stop the
simulator. This has to be done in returning a 'FALSE' value when leaving the model
function where the error occurred.
BOOL Report2Sim( CModUser *pModU, long Flag, LPCTSTR Message )
Flag
Message
Return value
SET_SAMPLETIME
Sets the sample time of a component.
The callback function is used to set an user-defined sample time for a component. The
component is calculated at the defined sample time. Simplorer is able to handle
components with fixed sample time parallel to continuous components.
See also Callback Functions
void SET_SAMPLETIME(CModUser *pModU, double DTS)
DTS
Sample time.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
20
VHDL-AMS Models in Simplorer
VHDL-AMS (Very high-speed integrated circuit Hardware Description Language Analog Mixed
Signal) is a standardized language used for describing digital, analog, and mixed-signal systems.
The Institute of Electrical and Electronics Engineers (IEEE) standardized the VHDL-1076 language as a Hardware Description Language (HDL) for digital models. The VHDL standard from
1993 was extended in 1999 for the description of analog and mixed-signal models in the form of
the IEEE 1076.1 standard for VHDL-AMS (hereafter referred to simply as VHDL).
For detailed information on the VHDL-AMS language in Simplorer, refer to: "VHDL-AMS Language Fundamentals."
A VHDL-AMS tutorial is also provided in both pdf and html help format:
(pdf format).
(html help format).
In addition to the functionality provided by the VHDL-AMS Model Editor, Simplorer supports
the development and simulation of VHDL-AMS analog, digital, and mixed-signal models in the
following ways:
Existing VHDL-AMS models in ASCII text can be imported into a library or a subsheet on a
schematic.
VHDL-AMS models in libraries, as well as text or graphical subsheets, can be exported to
ASCII text files.
Schematics containing VHDL-AMS models can also be exported as netlists to VHDL ASCII
files.
VHDL-AMS models can instantiate Simplorer models as foreign models, allowing users to
take advantage of the large number and variety of highly optimized and fast Simplorer models.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The models provided are open and can be used to derive more advanced models by copying the
description to a user library and editing the text to modify the model. The files can be used and distributed if the copyright statement, included in each model description, is not removed. To access
the model description, right-click the component name in the Project Manager and select View
Component Help from the context menu.
The functionality of all VHDL-AMS models is a subset of that of the equivalent Simplorer models
available in the Basic_Elements library (Basic_Elements.asmd). VHDL-AMS models can be used
in parallel with Simplorer models.
The digital models operate with digital signals and can be characterized with rise time/fall time/
propagation delays. They do not have any conservative nodes but can be connected to analog quantities using OmniCasters (in the Transformations library).
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
nature exists for each domain. An across and a through quantity is associated with each nature. The
following table links the across and through quantities for each Nature type:
Nature
Across
Through
ELECTRICAL
Voltage [V]
Current [A]
FLUIDIC
Pressure [Pa]
MAGNETIC
TRANSLATIONAL
Displacement [m]
Force [N]
TRANSLATIONAL_V
Velocity [m/s]
Force [N]
ROTATIONAL
Angle [rad]
Torque [Nm]
ROTATIONAL_V
Torque [Nm]
THERMAL
Temperature [K]
Circuit
The circuit graphic illustrates how across and through quantities are measured. The measuring
direction is marked by the red dot on the model symbol. The red dot is always at pin 1 of a model.
Across quantities: Value is calculated by subtracting the value at Pin2 from the value at Pin1.
Through quantities: Value is positive if the quantity flows into the model at the pin marked
with the red dot.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
puts, constant value parameters, conservative pins, etc. The ARCHITECTURE defines the
behavior of the model, and several modeling styles may be used for this description such as behavioral, dataflow, structural, etc. It is possible to associate multiple architectures with an entity declaration, and only the selected architecture will be used during simulation.
ENTITY
Input ports
ARCHITECTURE 1
ARCHITECTURE 2
ARCHITECTURE 3
Inout ports
Output ports
The model description for a passive resistor model included with the system follows. Explanations
of the statements used in the model description are included.
VHDL-AMS Resistor Model Example
To view the model description, select Tools>Edit Configured Libraries>Models, and click to
select the model from the list in the Edit Libraries dialog box. The model description appears in the
Model text pane to the right of the list. The example resistor model has an interface with two electrical terminals and one non-conservative input for the static resistance value.
LIBRARY IEEE;
USE IEEE.ELECTRICAL_SYSTEMS.ALL;
ENTITY R IS
PORT (QUANTITY R : RESISTANCE := 1.0e+3;
TERMINAL p,m : ELECTRICAL);
END ENTITY R;
ARCHITECTURE behav OF R IS
QUANTITY v ACROSS i THROUGH p TO m;
BEGIN
v == i*R;
END ARCHITECTURE behav;
ENTITY
PORT
TERMINAL
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
ARCHITECTURE
This statement specifies the model behavior v = i*R in VHDLAMS equation form.
Placing Components
Wiring Components
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
according to the nature of the conversion and an ARCHITECTURE description that may use
function calls to perform the conversion.
The different data types considered for signals are REAL, INTEGER, BIT, BOOLEAN,
BIT_VECTOR, STD_LOGIC, and STD_LOGIC_VECTOR. The only data type considered for
analog quantities is REAL. Some transformations can be specified with propagation delay, rise
time, fall time, threshold, and output value parameters. The functions used for the type conversions
are available in the omnicaster_package.
Conservative nodes of different domains can be connected using a Domain-to-Domain (D2D)
model available in the Nature Transformations folder of the transformations.asmd library. It is
also possible to connect a conservative node to a non-conservative node using a C2NC connection
model. In this case, the across value from the conservative node is transferred to the non-conservative node.
Note
Unlike the OmniCasters that are described in VHDL-AMS, the D2D and C2NC are not
VHDL-AMS models. Consequently, if schematics that use D2D or C2NC models are
exported to an ASCII netlist, the exported description may not simulate in a third-party
VHDL-AMS simulator.
The number of parameters in the Parameters and Output/Display dialog varies depending on the
selected model. To enter a parameter value, click in the input field of the corresponding parameter
and enter a numerical value (with or without suffix), a variable, or an expression. Default values are
used if no other value is defined for the parameter
Property expressions may contain variables that are generic, quantity, or signal properties of
VHDL-AMS components, such as r1.r. Only properties defined in the model's entity are available
for this use, consistent with the VHDL-AMS language fundamentals. In previous versions of Simplorer, properties from a model architecture were available for use, but this is no longer the case.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The VHDL-AMS language is case insensitive; upper case letters are equivalent to lower case letters. In this document, reserved words are in UPPER case and shown in BOLD.
Identifiers are simple names starting with a letter and may have letters and digits. The underscore
character is allowed but not as the first or last character of an identifier.
A comment starts with two consecutive hyphens, --, and continues until the end of the line.
The following table shows the syntax used in the documentation.
Syntax
Description
ENTITY
VHDL-AMS keyword
[expression]
optional entry
[name | string]
alternative selection
identifier{,}
repeated entries
=> <= :=
assignment operators
==
simultaneous statement
Design Units
Subprograms
Declarations
Concurrent Statements
Sequential Statements
Simultaneous Statements
Identifiers, Literals, and Expressions
Predefined Data Types
Predefined Attributes
Reserved Words
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Design Units
The VHDL-AMS language allows the definition of models for analog, digital, and mixed signal
circuits and systems in a standardized language. Design units (also library units) are segments of
VHDL-AMS code that can be compiled separately and stored in a library.
An entity normally consists of five basic elements, or design units: entities, architectures, packages,
package bodies, and configurations. Entities and architectures are the only two design units that
must exist in any VHDL-AMS design description. Packages and configurations are optional.
Elements of a VHDL-AMS Model
Model Description
ENTITY
(interface description)
ARCHITECTURE
(body description)
ENTITY load IS
ENTITY (
PORT (
ARCHITECTURE nominal OF load IS
ARCHITECTURE switch OF load IS
ARCHITECTURE admitt OF load IS
BEGIN
END
Packages
PACKAGE Declaration
PACKAGE tutorial IS
Configurations
CONFIGURATION
(instantiation and binding
information)
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Entity Declaration
An entity declaration defines input to a model and outputs supported by the model, and
generic parameters used by the different implementations of the model.
ENTITY entity_name IS
GENERIC (generic_list); -- optional generic list
PORT (port_list); -- input/output signal ports
END [ENTITY] name;
generic_list
port_list
Port Modes
ENTITY spring_tr IS
GENERIC(s0: DISPLACEMENT:= 0.0); -- list of generic parameters
PORT(QUANTITY c: IN STIFFNESS:= 100.0; -- list of quantity ports
TERMINAL tr1, tr2 : TRANSLATIONAL_V; -- list of terminal ports
SIGNAL ctrl: IN BIT); -- list of signal ports
END ENTITY spring_tr;
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Architecture
An architecture defines one particular implementation of a design unit (model behavior), at
some desired level of abstraction.
ARCHITECTURE architecture_name OF entity_name IS
declarations
BEGIN
concurrent/sequential/simultaneous statements
END [ARCHITECTURE][architecture_name]
declarations
concurrent
statements
sequential statements Statements that are executed in the order in which they appear. They
define algorithms for the execution of a subprogram or process.
simultaneous
statements
Statements that are executed at the same time with respect to each
other. They describe analog Differential Algebraic Equations (DAE).
Packages
A VHDL-AMS package contains subprograms, constant definitions, and/or type definitions that
may be used in one or more design units. Each package comprises a package declaration part and a
package body. The declaration part represents the portion of the package that is visible outside of
that package.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Package Declaration
Package declarations define the available types, constants, natures, subprograms, and attributes.
PACKAGE package_name IS
constant/type/subprogram/nature/attribute declarations
END package_name;
declarations
PACKAGE omnicaster_package IS
-- subprogram declarations
FUNCTION b2bl (b: BIT) RETURN BOOLEAN;
FUNCTION b2i (b: BIT; zv : INTEGER; ov : INTEGER) RETURN INTEGER;
END omnicaster_package;
PACKAGE misc IS
TYPE short_integer IS range -100 TO 100; -- type declaration
CONSTANT K : REAL := 1.3806503e-23; -- constant declaration
--subtype declarations
SUBTYPE TEMPERATURE IS REAL TOLERANCE "DEFAULT_TEMPERATURE";
SUBTYPE HEAT_FLOW
IS REAL TOLERANCE "DEFAULT_HEAT_FLOW";
-- nature declaration
NATURE THERMAL IS TEMPERATURE ACROSS HEAT_FLOW THROUGH THERM_REF REFERENCE;
END misc;
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Package Body
The package body defines the subprograms along with any internally-used constants
and types.
PACKAGE BODY package_name IS
subprogram bodies
END package_name;
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Package Visibility
The LIBRARY statement is used to make specified libraries such as the IEEE library visible
in a model description. If the library file name is not consistent with VHDL-AMS naming
conventions, an alias needs to be defined. See "Alias for File Names."
A USE statement can precede the declaration of any entity or architecture which is to utilize
items from the package. If the USE statement precedes the ENTITY declaration, the package
is also visible to the architecture.
To make all items of a package visible to a design unit, precede the desired design unit with a
USE statement accompanied by the ALL keyword. To make single items of a package visible,
only the corresponding item is defined in the USE statement. This saves simulation
(compilation) time, since all visible items in a USE statement must be loaded before
simulation.
See also WORK Library on page 20-66.
LIBRARY library_name;
USE library_name.package_name.ALL; -- all items are visible
USE library_name.package_name.item_name; -- one item is visible
library_name
package_name
item_name
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
STD Library
The STD library has two packages: STANDARD and TEXTIO.
The STANDARD package provides a number of types, subtypes, and functions. This package
is different from all other packages in that it is always visible and need not be explicitly
included within a model.
The TEXTIO package provides data types and subprograms that are required for reading and
writing ASCII files.
The TEXTIO package can be made visible within a model description in the following manner:
LIBRARY STD;
USE STD.TEXTIO.ALL;
Functionality
Usage
STD_LOGIC_1164
STD_LOGIC_ARITH
STD_LOGIC_SIGNED
USE IEEE.STD_LOGIC_1164.ALL;
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Package Name
Functionality
Usage
NUMERIC_BIT
Note
USE IEEE.NUMERIC_BIT.ALL;
The definitions for signed and unsigned data types are available in the NUMERIC_STD
package, and in the Synopsys SIGNED and UNSIGNED packages. Consequently, the
Synopsys packages cannot be used with the NUMERIC_STD package in any VHDLAMS design.
Usage
Electrical
USE IEEE.ELECTRICAL_SYSTEMS.ALL;
Mechanical
USE IEEE.MECHANICAL_SYSTEMS.ALL;
Translational
Rotational
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Domain
Usage
Thermal
USE IEEE.THERMAL_SYSTEMS.ALL;
Fluidic
USE IEEE.FLUIDIC_SYSTEMS.ALL;
Radiant
USE IEEE.RADIANT_SYSTEMS.ALL;
The following table lists the common declarations and constants that are valid in all physical
domains:
Package Name
Usage
Energy Systems
USE IEEE.ENERGY_SYSTEMS.ALL;
Fundamental Constants
USE IEEE.FUNDAMENTAL_CONSTANTS.ALL;
Material Constants
USE IEEE.MATERIAL_CONSTANTS.ALL;
Usage
USE IEEE.MATH_REAL.ALL;
Subprograms
Subprograms define algorithms for calculating particular functions of a model. They can be used to
divide complex model descriptions into smaller sections.
There are two forms of subprograms: procedures and functions. A procedure call is a statement; a
function call is an expression and returns a value. A subprogram has two parts:
Declaration statements
Sequential statements defining the behavior
Subprograms can use constants, variables, and signals as parameters. The parameters that are used
within a subprogram are called the formal parameters, while the parameters passed into the function or procedure are called the actual parameters.
Note that a simultaneous procedural statement is different from a subprogram. A procedural statement is used to describe analog behavior that occurs sequentially (rather than be solved simultaneously).
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Procedures
A procedure defines a group of sequential statements that are executed when the procedure is
called. A procedure can return any number of values (or no values) via its parameter list. A
procedure call invokes the execution of the procedure body.
PROCEDURE procedure_name [(formal_parameters)] IS
declarations
BEGIN
sequential statements
END [PROCEDURE] [procedure_name];
formal_parameters
declarations
sequential statements Statements that are executed in the order in which they appear, that define
algorithms for the execution of a subprogram or process.
-- declaration with formal parameters int and bin
PROCEDURE int2bin (VARIABLE int: IN INTEGER; VARIABLE bin: OUT BIT_VECTOR) IS
VARIABLE temp: INTEGER;
BEGIN -- start of sequential procedure statements
temp := int;
FOR i IN 0 TO (bin'LENGTH -1) LOOP
IF (temp mod 2 = 1) THEN
bin(i) := '1';
ELSE
bin(i) := '0';
END IF;
temp := temp/2;
END LOOP;
END int2bin; -- end of sequential procedure statements
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Functions
A function defines a group of sequential statements that are executed when the function is called.
A function returns a single value. Unlike procedures, functions are primarily used in expressions
and only have inputs in their argument list. A function call invokes the execution of the function
body.
[PURE | IMPURE] function function_name RETURN type_name
declarations
BEGIN
sequential statements
END [FUNCTION] [function_name];
PURE | IMPURE
Pure functions return the same value each time they are called with the
same values as actual parameters (default). Impure functions can return a
different value each time they are called, even when multiple calls have the
same actual parameter values.
formal_parameters
type_name
Data type or data subtype name, for example BIT, INTEGER, REAL,
of the return value.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
declarations
sequential statements
Statements that are executed in the order in which they appear, that define
algorithms for the execution of a subprogram or process.
-- declaration with formal parameters i and length and data type of return
value
FUNCTION i2bv (i: INTEGER; length: INTEGER) RETURN BIT_VECTOR IS
VARIABLE bv: BIT_VECTOR(length-1 DOWNTO 0);
VARIABLE temp: INTEGER;
BEGIN -- start of sequential procedure statements
temp := i;
FOR j IN 0 TO (bv'LENGTH-1) LOOP
IF (temp mod 2 = 1) THEN
bv(j) := '1';
ELSE
bv(j) := '0';
END IF;
temp := temp/2;
END LOOP;
return bv;
END i2bv; -- end of sequential procedure statements
BEGIN
in_var <= 10;
-- function call with actual parameters in_var and value 8
out_vec <= i2bv (in_var,8) AFTER 1ms;
END ARCHITECTURE bench;
Declarations
Declarations specify types, data objects, attributes, and components that can be used in design units. Declarations can be located in packages, entities, and architectures. The scope or visibility of a declaration depends on
where they are used.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
PACKAGE
visible in all
architectures
using the entity
declarations
ENTITY
ENTITY
ENTITY
declarations
visible only in
the architecture
ARCHITECTURE
ARCHITECTURE
ARCHITECTURE
ARCHITECTURE
declarations
VHDL-AMS data types can be classified as scalar, composite, access and file types. VHDL-AMS supports different kinds of data objects for each data type. These data objects include constants, signals, variables, files,
quantities, and terminals. VHDL-AMS includes a number of predefined data types, and allows user-defined
data types as needed. A TYPE statement is used to declare a new data type. A SUBTYPE statement is used to
constrain an existing type.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
TYPE Declarations
A type declaration defines a new data type.
Scalar type declaration: Declares a type that can be used to create enumeration, integer,
physical, and floating point elements.
Composite type declaration: Declares a type for creating array or record elements.
File type declaration: Declares a type for creating file handles.
type_name
Data type or data subtype name, for example BIT, INTEGER, REAL,
SUBTYPE Declaration
A subtype declaration defines a type that is derived from an existing type. TYPE creates a new
type while SUBTYPE creates a type that is a constraint of an existing type. It is possible to assign
values of objects belonging to subtypes to objects belonging to the base type.
SUBTYPE name IS type_name [constraint] [tolerance];
constraint
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
NATURE Declaration
A nature declaration defines a nature and its across and through quantities that can be accessed
through the model terminals. See also "Across and Through Quantities of Natures."
NATURE nature_name IS
across_type_name ACROSS through_type_name THROUGH reference_terminal reference;
nature_name
across_type_name
through_type_name
Specifies the branch types of the nature, which are used to define the type
of branch quantities. Only terminals can represent a nature.
reference_terminal
CONSTANT
SIGNAL
VARIABLE
FILE
QUANTITY
TERMINAL
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
CONSTANT Declaration
A constant declaration assigns a value to an identifier of a given data type. The use of
constants can improve the readability of VHDL-AMS code. The value of a
CONSTANT object cannot be changed by any executable code after declaration.
CONSTANT constant_name: type_name [expression];
constant_name
type_name
expression
CONSTANT
CONSTANT
CONSTANT
CONSTANT
CONSTANT
CONSTANT
SIGNAL Declaration
A signal declaration defines an identifier as a signal object. A SIGNAL object holds a
list of values, including the previous value, current value, and a set of possible future
values that appear on the signal. A signal object has digital properties; this means that
any change in a signal causes an event which can start a process or value assignment
specified in the model description.
SIGNAL name_list: type_name [expression];
name_list
type_name
expression
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
VARIABLE Declaration
A variable declaration defines an identifier as a variable object. A variable can be of any scalar or
aggregate data type and is updated immediately when an assignment statement is executed.
Variables can be declared only within subprograms, procedural statements, or process statements.
VARIABLE variable_name: type_name [expression];
variable_name
type_name
Data type or data subtype name, for example BIT, INTEGER, REAL,
expression
FILE Declaration
A file declaration defines an identifier as a file object.
FILE file_name: type_name [[OPEN file_open_kind] IS file_logical_name];
file_name
type_name
file_open_kind
file_logical_name
Defines the file name. The name is a string in quotes and its syntax must
conform to the operating system where the VHDL-AMS model will be
simulated.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
QUANTITY Declaration
A quantity declaration defines one or more identifiers as quantity objects. A quantity object is
specified by its type and a default value. Quantities can be declared in both entity and architecture
declaration placeholders. Quantities can be classified as PORT, FREE and BRANCH quantities
depending on where they are declared. PORT quantities appear in the ENTITY declaration,
BRANCH quantities appear in the ARCHITECTURE declaration and specify the across and
through values for terminals of a particular nature, and FREE quantities are declared as analog
values in the ARCHITECTURE declaration.
QUANTITY name_list : real_type_name [expression];
QUANTITY [across_aspect] [through_aspect] terminal_aspect;
name_list
real_type_name
across_aspect
Identifier that serves as the across quantity for the specified terminals.
through_aspect
Identifier that serves as the through quantity for the specified terminals.
terminal_aspect
TERMINAL Declaration
A terminal declaration declares a terminal, and also the reference quantity and contribution
quantity of the terminal.
TERMINAL name_list: nature_name;
name_list
nature_name
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Other Declarations
ATTRIBUTE Declaration
An attribute declaration defines an attribute name and its type. An attribute specification assigns a
value to the attribute. See also Predefined Attributes.
ATTRIBUTE attribute_name: type_name; -- declaration
ATTRIBUTE attribute_name OF name: entity_class IS expression; -- specification
attribute_name
type_name
name
entity_class
Specifies the name of the entity class, for example TYPE, SIGNAL,
FILE,
expression
COMPONENT Declaration
A component declaration defines a components interface and is typically placed in an
ARCHITECTURE or PACKAGE declaration. The component or instances of the component are
related to a design entity in a library using a configuration.
COMPONENT component_name [IS]
[local_generic_clause]
[local_port_clause]
END COMPONENT [component_name];
component_name
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
local_generic_clause
local_port_clause
ENTITY inv4 IS
GENERIC (TP_LH, TP_HL: TIME);
PORT (I_4 : IN BIT_VECTOR(3 DOWNTO 0);
Y_4 : OUT BIT_VECTOR(3 DOWNTO 0));
END ENTITY inv4;
ARCHITECTURE inv4_struct OF inv4 IS
COMPONENT inv
GENERIC (TP_LH, TP_HL: TIME);
PORT (I1 : IN BIT;
Y1 : OUT BIT);
END COMPONENT;
SIGNAL INV_OUT : BIT_VECTOR(3 DOWNTO 0);
BEGIN
-- instantiation of the inv component
INV_1 : inv GENERIC MAP (TP_LH,TP_HL) PORT
INV_2 : inv GENERIC MAP (TP_LH,TP_HL) PORT
INV_3 : inv GENERIC MAP (TP_LH,TP_HL) PORT
INV_4 : inv GENERIC MAP (TP_LH,TP_HL) PORT
END inv4_struct;
MAP
MAP
MAP
MAP
(I_4(0),Y_4(0));
(I_4(1),Y_4(1));
(I_4(2),Y_4(2));
(I_4(3),Y_4(3));
Concurrent Statements
Concurrent statements are included within ARCHITECTURE bodies and within BLOCK statements, representing concurrent digital behavior within the modeled design unit. These statements
are executed in an asynchronous manner, with no defined order, modeling the overall behavior or
structure of a design.
Block Statement
Process Statement
Concurrent Procedure Call
Concurrent Assertion Statement
Concurrent Signal Assignment Statement
Component Instantiation Statement
Break Statement
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
BLOCK Statement
A block statement groups related concurrent statements. The order of the concurrent statements
does not matter, because all statements are always executed together.
If a guard expression appears after the reserved word BLOCK, a boolean variable GUARD is
automatically defined and set to the boolean value of the guard expression. GUARD can then be
tested within the block, to perform selected signal assignments or other statements only when the
guard condition evaluates to TRUE.
[label_name:]
BLOCK [(guard expression)]
local declarations
BEGIN
concurrent statements
END BLOCK [label_name];
guard expression
Defines the value of the signal. The type of the expression must be
BOOLEAN.
local declarations
concurrent statements Digital statements that are executed asynchronously with respect to each
other, that describe a design unit in one or more modeling styles such as
dataflow, structural, and/or behavior styles.
-- D Latch: Transfer D input to Q output when Enable = '1'
B1:
BLOCK (Enable = '1')
BEGIN
Q <= guarded D AFTER 5ns;
END BLOCK B1;
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
PROCESS Statement
A PROCESS statement contains sequential statements but is itself a concurrent statement within
an architecture. An independent sequential process represents the behavior of some portion of a
design. The body of a process is a list of sequential statements. See also Processes.
The sequential statements in the process are executed in order, commencing with the beginning of
simulation. After the last statement of a process has been executed, the process is repeated from the
first statement, and continues to repeat until suspended. Processes can be suspended with a WAIT
statement. The WAIT statement is a versatile statement that allows a process to be suspended for a
specific period of time, boolean condition to occur, or/and an event to occur on a signal. The
optional sensitivity list is equivalent to providing a WAIT ON statement and causes the process to
be suspended. A process cannot have both a sensitivity list as well as a WAIT ON statement. See
also WAIT Statement on page 20-34
[label_name:]
PROCESS [(sensitivity_list)]
local declarations
BEGIN
sequential statements
END PROCESS [label_name];
sensitivity_list
local declarations
sequential statements
Statements that are executed in the order in which they appear, that define
algorithms for the execution of a subprogram or process.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
actual_parameters
Values of these parameters are transferred to the procedure for the formal
parameters (the parameters specified in the procedure declaration).
condition
string
Defines the text string which appears in the message. String literals are onedimensional arrays of characters enclosed in double quotation marks ( ).
severity_level
continue simulation.
ERROR/FAILURE: message output in the Simplorer info window and
termination of simulation.
ASSERT (TS > 0.0)
REPORT "Sample Time must be specified" SEVERITY ERROR;
ASSERT (UL >= LL)
REPORT "Upper Limit must be greater than Lower limit" SEVERITY WARNING;
ASSERT (arg > 100.0)
REPORT "Invalid Function argument " & REAL'IMAGE(arg) & " at time " &
TIME'IMAGE(now) & "." SEVERITY INFO;
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
target_signal
<=
<=
<=
<=
conditional_signal_ass Special form of signal assignment that assigns values only if a sequence of
ignment
related conditions are true.
selected_signal_assign Special form of signal assignment that assigns values only if a sequence of
ment
related conditions are true but differs in that the input conditions specified
have no implied priority.
condition
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
generic_map_list
port_map_list
LIBRARY vhdlams_tutorial;
LIBRARY IEEE;
USE vhdlams_tutorial.res; -- model res of the tutorial_vhdlams library is declared
USE IEEE.ELECTRICAL_SYSTEMS.ALL;
ENTITY bat_multi IS
GENERIC(
factor : REAL := 1.0;
v_init : VOLTAGE := 12.0);
PORT(
TERMINAL p,m : ELECTRICAL;
QUANTITY v_out : OUT VOLTAGE := 0.0);
END ENTITY bat_multi;
ARCHITECTURE struct OF bat_multi IS
CONSTANT ri: RESISTANCE := 1.0e-2;
CONSTANT fc: CAPACITANCE := 60.0;
CONSTANT rd: RESISTANCE := 4.0e-2;
CONSTANT sc: CAPACITANCE := 2.0e4;
TERMINAL t1,t2 : ELECTRICAL;
QUANTITY v ACROSS p TO m;
BEGIN
fc1: ENTITY WORK.cap(behav) -- instantiation of a component in the WORK lib
GENERIC MAP (c_nom => fc*factor, v_init => v_init)
PORT MAP (p => t1, m => m);
sc1: ENTITY WORK.cap(behav) -- instantiation of a component in the WORK lib
GENERIC MAP (c_nom => sc*factor, v_init => v_init)
PORT MAP (p => t2, m => m);
ri1: ENTITY res(behav) -- instantiation of a component declared in the entity
GENERIC MAP (r_nom => ri)
PORT MAP (p => p, m => t1);
rd1 : ENTITY res(behav) -- instantiation of a component declared in the entity
GENERIC MAP (r_nom => rd)
PORT MAP (p => t1, m => t2);
v_out == v;
END ARCHITECTURE struct;
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
break_list
sensitivity_clause
condition
END ARCHITECTURE;
Sequential Statements
Sequential statements appear in process statements and in subprograms (procedures and functions),
representing sequential behavior within the modeled design unit. These statements are executed in
the order in which they appear in the model.
WAIT Statement
ASSERT Statement
SIGNAL Assignment Statement
VARIABLE Assignment Statement
Procedure Call Statement
IF Statement
CASE Statement
LOOP Statement
NEXT Statement
EXIT Statement
RETURN Statement
NULL Statement
BREAK Statement
VHDL-AMS Models in Simplorer 20-33
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
WAIT Statement
A WAIT statement suspends subprogram execution until a signal changes, a condition becomes
TRUE, or a defined time period has elapsed. Combinations of these can also be used.
WAIT [ON sensitivity_list] [UNTIL condition] [FOR time_expression];
sensititvity_list
condition
time_expression
WAIT ON INPUT;
WAIT UNTIL ctrl > 1.5;
WAIT FOR TDELAY*unit_time;
ASSERT Statement
A sequential ASSERT statement checks a condition and provides a report if the condition is not
TRUE. A severity level can be specified to generate several types of messages.
ASSERT (condition)
[REPORT string] [SEVERITY severity_level];
condition
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
string
Defines the text string which appears in the message. String literals are
one-dimensional arrays of characters enclosed in double quotation marks
( ).
severity_level
Defines how the message appears and the effect for simulation.
NOTE: message output in the Simplorer Message Manager window.
WARNING: message output in a dialog and a request for user input to
break or continue simulation.
ERROR/FAILURE: message output in the Simplorer Message Manager
window and termination of simulation.
ENTITY sequential_assert IS
END;
ARCHITECTURE behav OF sequential_assert IS
SIGNAL clk:bit;
BEGIN
clk<=not clk AFTER 1 ns;
PROCESS(clk)
variable a:integer := 0;
BEGIN
a:=a+1;
ASSERT a/=1 REPORT "a!=1" SEVERITY FAILURE;
ASSERT a/=2 REPORT "a!=2" SEVERITY WARNING;
ASSERT a/=3 REPORT "a!=3" SEVERITY ERROR;
ASSERT a<10 REPORT "a==" & INTEGER'IMAGE(a) SEVERITY NOTE;
END PROCESS;
END;
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
target_signal
delay_mechanism
source_signal
variable_name
expression
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
IF Statement
An IF THEN ELSE statement performs a sequence of statements depending on the defined
condition. ELSIF and ELSE clauses are optional.
[label_name:]
IF condition THEN
sequential statements
[{ELSIF condition THEN
sequential statements}]
[ELSE
sequential statements]
END IF [label_name];
condition
sequential statements Statements that are executed in the order in which they appear, that define
algorithms for the execution of a subprogram or process.
pwm_ctrl:
PROCESS (cond1,cond2)
BEGIN
IF (cond1) THEN
ctrl_sig <= 0.0;
ELSIF (cond2 AND (NOT cond1)) THEN
ctrl_sig <= 1.0;
END IF;
END PROCESS pwm_ctrl;
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
CASE Statement
A CASE statement selects one of a number of alternative sequences of statements for
execution based on the value of an expression. The choices must be constants of the
same discrete type as the expression. Case choices can be expressions or ranges. Case
statements must also include all possible values of the control expression. The
OTHERS expression can be used to guarantee that all conditions are covered.)
[label_name:]
CASE control_expression IS
WHEN choice1 =>
sequential statements
WHEN choice2 =>
sequential statements
WHEN OTHERS =>
sequential statements
END CASE [LABEL];
control_expression Specifies a value that selects one statement sequence among the
list of alternatives. The expression must be of a discrete type, or of
a one-dimensional array.
choice
sequential
statements
Statements that are executed in the order in which they appear, that
define algorithms for the execution of a subprogram or process.
CASE J_K IS
WHEN "11" =>
state <= NOT state;
WHEN "10" =>
state <= '1';
WHEN "01" =>
state <= '0';
WHEN OTHERS =>
NULL;
END CASE;
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
LOOP Statements
The WHILE and FOR loop statements control the repetition of sequentially executed statements.
Loop termination statements allow termination of one iteration, loop, or procedure.
NEXT [WHEN condition]; -- end current loop iteration
EXIT [WHEN condition]; -- exit innermost loop entirely
[label_name:]
LOOP
sequential statements -- use exit statement to leave the loop
END LOOP [label];
[label_name:]
FOR variable IN start_val TO end_val LOOP
sequential statements
END LOOP [LABEL];
[label_name:]
WHILE condition LOOP
sequential statements
END LOOP [LABEL];
sequential statements Statements that are executed in the order in which they appear, that define
algorithms for the execution of a subprogram or process.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
variable/start_val/
end_val
Implicit index variables of the loop. Index variables need not be declared
separately.
condition
LOOP
input_something;
exit when end_file;
END LOOP;
FOR I IN 1 TO 10 LOOP
AA(I) := 0;
END LOOP;
WHILE NOT end_file LOOP
input_something;
END LOOP;
PROCESS
VARIABLE buf : LINE;
VARIABLE t_val_old, t_val_new, t_val, s_val : REAL := 0.0;
BEGIN
WHILE NOT ENDFILE(cyc) LOOP
READLINE(cyc,buf);
WAIT FOR 4ms;
END LOOP;
WAIT;
END PROCESS;
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
NEXT Statement
A NEXT statement causes the next iteration in a loop.
[label_name1:]
NEXT [label_name2] [when condition];
condition
NEXT;
NEXT outer_loop;
NEXT WHEN A>B;
NEXT this_loop WHEN C=D OR done; -- done is a BOOLEAN variable
EXIT Statement
An EXIT statement causes the immediate termination of the loop.
[label_name:]
EXIT [label2] [WHEN condition];
condition
EXIT;
EXIT outer_loop;
EXIT when A>B;
EXIT this_loop WHEN C=D OR done; -- done is a BOOLEAN variable
RETURN Statement
A RETURN statement terminates a subprogram. A function definition requires a return statement
to specify the return value. In a procedure definition, a return statement is optional.
[label_name:]
RETURN [expressions];
expression
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
NULL Statement
A NULL statement explicitly states that no action is required. It is often used in CASE statements
because all choices must be covered, even if some of the choices are ignored.
[label_name:]
NULL;
CASE J_K IS
WHEN "11" =>
state <= NOT state;
WHEN "10" =>
state <= '1';
WHEN "01" =>
state <= '0';
WHEN OTHERS =>
NULL;
END CASE;
BREAK Statement
A BREAK statement indicates explicitly the occurrence of discontinuities in a VHDL-AMS
description. The sequential BREAK statement represents a process containing a BREAK
statement.
The execution of a BREAK statement notifies the analog solver that it must determine the
discontinuity augmentation set for the next analog solution point. It can also specify reset and
initial values. The effect is conditional if the statement includes a condition.
[label_name:]
BREAK [break_list] [when condition];
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
break_list
condition
LIBRARY IEEE;
USE IEEE.MATH_REAL.ALL;
ENTITY sequential_break1 IS
END ENTITY sequential_break1;
ARCHITECTURE behav OF sequential_break1 IS
SIGNAL xs1,xs2 : BOOLEAN := FALSE;
SIGNAL aVal : REAL := 0.0;
BEGIN
xs1 <= NOT xs1 AFTER 1
ms;
xs2 <= NOT xs2 AFTER 2.5 ms;
PROCESS (xs1, xs2)
BEGIN
BREAK aVal => 4.0 WHEN xs2;
BREAK aVal => 2.0 WHEN xs1;
END PROCESS;
END ARCHITECTURE behav;
Simultaneous Statements
Simultaneous statements appear in the architecture body of a model and can be placed in the same
parts of a VHDL-AMS description as concurrent statements. Simultaneous statements are used to
express Differential Algebraic Equations (DAE) that together with implicit equations describe the
analog behavior of a model. The five types of simultaneous statements available are:
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
expressions
TERMINAL
QUANTITY
QUANTITY
power ==
Simultaneous IF Statement
A simultaneous IF statement specifies analog behavior of a system based on a set of conditions. A
simultaneous IF statement differs from a sequential IF statement in that the simultaneous
statement syntax is IF-USE-END USE while the sequential statement syntax is
IF-THEN-END IF.
[label_name:]
IF condition USE
simultaneous_statements
[{ ELSIF condition USE
simultaneous_statements }]
[ ELSE
simultaneous_statements ]
END USE [label_name];
condition
simultaneous
statements
Statements that are executed at the same time with respect to each other,
that describe Analog Differential Algebraic Equations (DAE).
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
control_expression
Specifies a value that select one statement sequence among the list of
alternatives. The expression must be of a discrete type, or of a onedimensional array.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
choice
A choice specifies the value of the control expression for which the
alternative is chosen. Each choice in a case statement alternative must be
of the same type as the expression.
simultaneous
statements
Statements that are executed at the same time with respect to each other,
that describe Analog Differential Algebraic Equations (DAE).
LIBRARY IEEE;
USE IEEE.MATH_REAL.ALL;
USE IEEE.ELECTRICAL_SYSTEMS.ALL;
ENTITY simultaneous_case IS
END ENTITY simultaneous_case;
ARCHITECTURE behav OF simultaneous_case IS
TERMINAL n1, n2
: ELECTRICAL;
QUANTITY vin ACROSS iin THROUGH n1 TO electrical_ref;
QUANTITY vout ACROSS iout THROUGH n2 TO electrical_ref;
CONSTANT Amp : REAL := 1.0;
CONSTANT a
: REAL := 1.0E3;
CONSTANT f
: REAL := 1.0E3;
SIGNAL
clk : INTEGER := 0;
BEGIN
clk <= clk+1 AFTER 1ms;
vout == vin'SLEW(1.0e38,-1.0e38);
CASE clk USE
WHEN 0 => vin == Amp*1.0*sin(2.0*math_pi*f*15.0*NOW);
WHEN 1 => vin == Amp*2.0*sin(2.0*math_pi*f*15.0*NOW);
WHEN 2 => vin == Amp*3.0*sin(2.0*math_pi*f*15.0*NOW);
WHEN 3 => vin == Amp*4.0*sin(2.0*math_pi*f*15.0*NOW);
WHEN 4 => vin == Amp*5.0*sin(2.0*math_pi*f*15.0*NOW);
WHEN others => vin == Amp*6.0*sin(2.0*math_pi*f*15.0*NOW);
END CASE;
END ARCHITECTURE simple;
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
declarations
sequential statements Statements that are executed in the order in which they appear, that define
algorithms for the execution of a subprogram or process.
ENTITY fktarccos IS
GENERIC (TS : REAL := 0.0);
PORT (QUANTITY INPUT : IN REAL;
QUANTITY VAL : OUT REAL);
END ENTITY fktarccos;
ARCHITECTURE behav OF fktarccos IS
QUANTITY temp_val : REAL := 0.0;
BEGIN
PROCEDURAL
BEGIN
IF (INPUT>-1.0) AND (INPUT<1.0) THEN
temp_val := arccos(INPUT);
ELSIF (INPUT = -1.0) THEN
temp_val := MATH_PI;
ELSE
temp_val := 0.0;
END IF;
END PROCEDURAL;
VAL == temp_val'ZOH(TS);
END behav;
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Identifiers
Literals
Expressions
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Identifiers
An identifier is the name of a constant, variable, function, signal, entity, port, subprogram, or
parameter and returns that objects value to an operand.
Identifiers in VHDL-AMS must begin with a letter, and can comprise any combination of letters,
digits, and underscores. Identifiers must not end with an underscore and must not include two
successive underscore character. Also no space is allowed within an identifier since a space is a
separator.
An indexed identifier is the name of one element of an array variable or signal. The expression
must return a value within the arrays index range. The value returned to an operator is the
specified array element.
letter { [underscore] letter_or_digit } -- identifier
letter { [underscore] letter_or_digit } (expressions) -- indexed identifier
Voltage1, power_dissipated, product_of_sums
voltage(2), current(3+1)
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Literals
A literal (constant) operand can be a numeric, a character, an enumeration, or a string literal.
There are two forms of numeric literals: integer and real literals. Integer literals represent a whole
number. Real literals can represent fractional numbers and always include a decimal point
preceded and followed by at least one digit.
Both types of numeric literals can use exponential notation and can expressed in a base. A decimal
literal is written in base 10 and a based literal is written in a base from 2 to 16 and is composed of
the base number, a number sign (#), the value in the given base, and another number sign (#).
base#digits# -- base must be a decimal number
2#101# -- decimal 5
16#AA#
16#f.1f#E+2 -- floating, exponent is decimal
Character literals are single characters enclosed in single quotation marks, for example 'a'.
Character literals are used both as values for operators and in defining enumerated types, such as
CHARACTER and BIT.
Enumeration literals are values of enumerated types. The two kinds of enumeration literals are
character literals and identifiers. Character literals are described earlier. Enumeration identifiers
are those listed in an enumeration type definition. If two enumerated types use the same literals,
those literals are overloaded.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
String literals are one-dimensional arrays of characters enclosed in double quotation marks ( ).
The two kinds are:
Character strings, which are sequences of characters in double quotation marks, for example,
ABCD.
Bit strings, which are similar to character strings but represent binary (B), octal (O), or
hexadecimal (X) values. For example, B1101. The digits in a bit string literal value can be
separated with underscores (_) for readability.
x"ffe"
-- 12-bit hexadecimal value, digits 0 to 9 and A to F
-- each value represents four BITs in the generated bit vector (array)
o"777"
-- 9-bit octal value, digits 0 to 7
-- each octal digit represents three BITs in the generated bit vector (array)
b"1111_1101_1101"
-- 12-bit binary value, digits 0 or 1, each bit in the string represents
-- one BIT in the generated bit vector (array)
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Relational
Shift
Relational operators include tests for equality (=), inequality (/=), and
ordering of operands (<, <=, >, >=). The operands of each relational
operator must be of the same type. The result type of each relational
operator is the predefined type BOOLEAN.
sll | srl
Shift left/right logical.
sla | sra
rol | ror
Operators for any one-dimensional array type whose element type is either
of the predefined types BIT or BOOLEAN (left operant) and predefined
type INTEGER (right operand). The result type of each shift operator is the
same as the left operand.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Adding
For each of these adding operators, the operands and the result are of
the same type.
Predefined for any integer and any floating point type.
Multiplying
*|/
Miscellaneous
For each of these multiplying operators, the operands and the result
are of the same type.
Predefined for any numeric type.
abs
absolute value
**
a** is a
Values
'1', '0'
Example
Q <= '1';
BOOLEAN
TRUE, FALSE
EQ <= True;
INTEGER
-2, -1, 0, 1, 2, 3, 4
REAL
1.0, -1.0E5
V1 = V2 / 5.3
TIME
CHARACTER
STRING
Array of characters.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Predefined Attributes
An object attribute returns information about a signal or data type. Predefined attributes denote values, functions, types, and ranges associated with various kinds of named entities.
The syntax of an attribute is some named entity followed by an apostrophe and one of the following
attribute names. A parameter list is used with some attributes. The following abbreviations are used
in the tables:
Q represents a quantity
S represents a signal
X represents a signal or variable
T represents a type
A represents an array or constrained array type
t represents an expression for time
e represent a static expression
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Quantity Attributes
Q'DOT
-- value of the derivative with respect to time of Q at the time the attribute
-- is evaluated
Q'INTEG
-- value of the time integral of Q from time 0 to the time the attribute is evaluated
Q'DELAYED[(t) ]
-- value of quantity Q delayed by t; if t is omitted, it defaults to 0.0
Q'ABOVE(e)
-- true if Q-e is sufficiently larger than 0.0, false if Q-e is sufficiently smaller
-- than 0.0. This attribute always returns a boolean signal (TRUE/FALSE).
Q'ZOH(e[,INITIAL_DELAY])
-- constant value of Q at the sample times INITIAL_DELAY+k*e until the next sample
-- time, with e as sample frequency and INITIAL_DELAY as the time of the first sampling
-- (k is any non-negative integer); if INITIAL_DELAY is omitted, it defaults to 0.0
Q'LTF(NUM,DEN)
-- Laplace transfer function of Q with NUM as the numerator and NEN as
-- denominator polynomials
Q'ZTF(NUM,DEN,e[,INITIAL_DELAY])
-- Z transfer function of Q with NUM as the numerator and NEN as denominator
-- polynomials, with e as sample frequency and INITIAL_DELAY as the time of the
-- first sampling; if INITIAL_DELAY is omitted, it defaults to 0.0
S'RAMP[(TRISE[,TFALL])]
-- quantity which follows the corresponding value of S with delay of rise time and
-- fall time; if TRISE or TFALL is greater than 0.0, the corresponding value change
-- is linear from the current value of S to its new value, whenever S has an event
S'SLEW[(RISING_SLOPE[,FALLING_SLOPE])]
-- quantity which follows the corresponding value
-- slope; if RISING_SLOPE is less than REAL'HIGH,
-- greater than REAL'LOW, the corresponding value
-- value of S to its new value, whenever S has an
Q'SLEW[(MAX_RISING_SLOPE[,MAX_FALLING_SLOPE])]
-- quantity which follows the corresponding value of Q, but its derivative time
-- is limited by MAX_RISING_SLOPE and MAX_FALLING_SLOPE
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Signal Attributes
S'DELAYED[(t)] -- value of signal S at time now-t; if t is omitted, it
defaults to 0.0
S'STABLE -- true if no event is occurring on signal S
S'STABLE(t) -- true if no event has occurred on signal S for t time units
S'QUIET -- true if signal S is quiet (no event this simulation cycle)
S'QUIET(t) -- true if signal S has been quiet for t time units
S'TRANSACTION -- bit value which toggles each time when signal S changes
S'EVENT -- true if an event has occurred on signal S in the current cycle
S'ACTIVE -- true if signal S is active in the current cycle
S'LAST_EVENT -- time since the last event on signal S
S'LAST_ACTIVE -- time since signal S was last active
S'LAST_VALUE -- value of signal S prior to latest change
S'DRIVING -- false if the current driver of signal S is a null transaction
S'DRIVING_VALUE --current driving value of signal S
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Reserved Words
The following words are reserved for the VHDL-AMS language, so they cannot be used as identifiers. Reserved words are printed in bold in this document.
Word
Description
ABS
ACCESS
ACROSS
AFTER
ALIAS
ALL
Makes all items in a package visible, refers to all names of a class, or refers
to all instances of a component.
AND
ARCHITECTURE
ARRAY
Declares an array data type containing a collection of elements that are all of
the same type (array, vector, or matrix).
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Word
Description
ASSERT
ATTRIBUTE
BEGIN
BLOCK
BODY
BUFFER
Port mode. Indicates a port which can be used for both input and output, and
it can have only one source.
BUS
Signal mode. Defines a bus that floats to a user-specified value when all of
its drivers are turned off.
CASE
COMPONENT
CONFIGURATION *
CONSTANT
DISCONNECT
** Signal driver condition. Defines the time delay to disconnect the guarded
feature of a signal which is part of a guarded signal statement.
DOWNTO
ELSE
ELSIF
END
ENTITY
Primary design unit. Declares the input and output ports of a design.
EXIT
FILE
Declares a type for creating file handles and an identifier as a file object.
FOR
FUNCTION
Defines a group of sequential statements that are executed when the function
is called.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Word
Description
GENERATE
GENERIC
GROUP
GUARDED
IF
IMPURE
IN
INERTIAL
INOUT
Port mode. Indicates a port which can be used for both input and output.
IS
LABEL
LIBRARY
LINKAGE
Port mode. Indicates a port which can be used for both input and output, and
it can only correspond to a signal.
LITERAL
LOOP
MAP
MOD
NAND
NATURE
NEW
NEXT
** Creates an object of a specified type and returns an access value that refers
to the created object.
Sequential statement. Cause the next iteration in a LOOP.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Word
NOISE
Description
** Declares the source aspect of a noise source quantity (serves as a source in a
frequency domain model) in a quantity declaration.
NOR
NOT
NULL
OF
ON
OPEN
OR
OTHERS
OUT
PACKAGE
PORT
POSTPONED
PROCEDURE
PROCESS
PURE
QUANTITY
RANGE
RECORD
REFERENCE
REGISTER
Signal mode. Defines a storage register that retains its last driven value when
all of its drivers are turned off.
REJECT
REM
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Word
Description
REPORT
RETURN
ROL
ROR
SELECT
SEVERITY
SHARED
SIGNAL
SLA
SLL
SPECTRUM
SRA
SRL
SUBNATURE
SUBTYPE
TERMINAL
THEN
THROUGH
TO
TOLERANCE
TRANSPORT
TYPE
Declares a type.
UNAFFECTED
UNITS
UNTIL
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Word
Description
USE
VARIABLE
WAIT
WHEN
WHILE
WITH
XNOR
XOR
*
**
Concurrent statements
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Direction
Assignment
Quantities
Analog objects
IN OUT
== =>
Signals
Digital objects
IN OUT INOUT
<=
Variables
:=
The following figure shows the results of the previous modeling code. The signal sig_s is delayed
and assigned to signals in three different ways:
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
sig_t
sig_i
sig_r
To improve the solver stability, use a 'RAMP or 'SLEW attribute or a BREAK statement. The 'RAMP
and 'SLEW attributes, as well as the BREAK statement, force a synchronization on the minimum
simulator time step HMIN and thus minimize the error deviation of the solver.
The following examples show value assignments in connection with variants to define rise/fall time
and positive/negative slew rate of a digital signal. The rise and fall time as well as positive and negative slew rate should be chosen so as to avoid infinite values of the first derivative for these quantities since this can cause simulator instabilities.
quantity_name == signal_name'RAMP(1.0e-9, 2.0e-9); -- define rise and fall time
quantity_name == signal_name'SLEW(100.0, 200.0); -- limit pos and neg slew rate
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The following examples show value assignments dependent on events applied to a signal.
BREAK ON signal_name; -- assignment when event on signal_name
BREAK quantity_name'DOT => 1000.0 ON signal_name
BREAK qv => -qv when not quantity_'Above(0.0);
quantity_name==signal_name;
The following example shows a value assignment if the quantity crosses a threshold value of 3.0.
The signal value is of type BOOLEAN since the 'ABOVE attribute returns a TRUE or FALSE. In
the next process, the actual value of the quantity is assigned to the signal. The next value assignment follows only after the quantity crosses the threshold again.
signal_name <= quantity_name'ABOVE(3.0); -- value of signal_name is true or false
PROCESS(signal_name)
BEGIN
signal_name <= quantity_name; -- value of signal_name is actual value + maximum hmin
END;
The following example shows a value assignment at each time interval specified as delay:
clock <= NOT clock AFTER 1ms; -- generates an event at each time step defined as delay
PROCESS(clock)
BEGIN
signal_name <= quantity_name;
END;
Solvability
The analog solver needs a specific set of equations when it evaluates the statements in the model.
The number of equations specified in the model must be equal to the sum of the number of free
quantities, through quantities, and port quantities of mode OUT.
All free quantities and port quantities of mode OUT must appear in a simultaneous equation
within the architecture of the model.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The following example uses two relevant quantities: I (port quantity of mode OUT) and ct through
quantity. Both quantities occur in the equations of the model.
LIBRARY IEEE;
USE IEEE.ELECTRICAL_SYSTEMS.ALL;
ENTITY AM IS
PORT (QUANTITY I : OUT REAL; -- port quantity of mode out
TERMINAL p,m : ELECTRICAL);
END ENTITY AM;
ARCHITECTURE behav OF AM IS
QUANTITY v ACROSS ct THROUGH p TO m; -- through quantity ct
BEGIN
I == ct; -- first equation with port and through quantity
v == 0.0; -- second equation
END behav;
The digital solver needs a minimum simulation step HMIN that is less than or equal to the least delay
specified with an AFTER statement.
WORK Library
Packages and models of a library are always compiled in the current WORK library. All packages
and models of that library are visible to other models of the same library and can be instantiated as
components in these models. If a model that instantiates models of the WORK library is copied to
another library, the WORK library of this other library is used. That means, the same instantiation
uses different models, because the WORK library was changed.
Library 1
WORK
Package
R
C
RC
LIBRARY WORK;
USE WORK.ALL;
ARCHITECTURE behav OF RC IS
Library 2
WORK
Package
R
C
RC
LIBRARY WORK;
USE WORK.ALL;
ARCHITECTURE behav OF RC IS
Models defined in VHDL-AMS text subsheets that are placed on a model sheet are also compiled
in the current sheets WORK library. All models of these subsheets are visible to other subsheets of
the same sheet at any hierarchy level.
Entity names defined in subsheets must be unique within the entire sheet, because an entity with a
duplicate name will overwrite the previously defined one.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Values on Sheet
In the Simplorer Schematic, parameter values for VHDL-AMS models are entered in component
dialogs. Values can be assigned to each parameter corresponding to the inputs defined in the model
entity. If no value is entered, the default value specified in the model is used.
Note
The syntax of user-defined values must conform to the SML conventions. VHDL-AMS
attributes and syntax cannot be used.
Each value assigned to a parameter is from type REAL. The following table lists possible value
assignments for VHDL-AMS data types and their effects.
Name Value
Default
Data Type
inp1
-1
-1.0
REAL
inp2
var1
0.0
REAL
inp3
ctrl
'1'
BIT
inp4
inp3'left
BIT
Object
Description
SIGNAL
GENERIC
inp5
2.5
10
INTEGER
SIGNAL
inp6
var2
INTEGER
GENERIC
inp7
'H'
STD_LOGI SIGNAL
C
inp8
var3
'0'
STD_LOGI SIGNAL
C
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
In addition to value specifications in the model dialog, OmniCaster models can be used to perform
value assignments. OmniCasters convert different data types correctly if a conversion is possible,
otherwise they reject a connection between the parameters.
REAL := -1.0;
REAL := 1.0);
IN BIT_VECTOR(3 DOWNTO 0):=(OTHERS =>'0');
OUT REAL := 0.0);
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
21
Simplorer Modeling Language
The Simplorer Modeling Language (SML) is the general internal description language used in Simplorer. Using the Schematic editor, components are positioned on the sheet and connected to form a
graphical representation of a model. The SML description is automatically generated from this
graphical model.
Using the SML text editor, the model description in SML notation can be edited, and its syntax
checked for validity.
The current version of the SML description language used by Simplorer is SML v2.0. Using the
Tools>Import Simulation Models command, you can convert SML files created in previous versions of Simplorer into the 2.0 format.
This chapter explains the common SML statements. Complete parameter lists of internal Simplorer
models are listed with the corresponding models.
This chapter contains information on:
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Comments
Names
Separators
Continuation Sign
Keywords, Pre-Defined Names, and Constants
Nodes
Model Attributes
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Comments
In SML source code comments can be inserted to:
Single Line Comments: Text after a double slash "//" is interpreted as comment up to the line
end.
Multi-Line Comments: The symbols "/*" and "*/" separate comments from the other text. All
characters within these marks are ignored by the simulator.
Example:
SMLDEF MacroRC
{
/* electrical pins */
PORT ELECTRICAL : N1;
PORT ELECTRICAL : N2;
/* parameter pins */
PORT REAL in RESISTANCE[Ohm] : ValueR = 1k; // value of the
resistance
PORT REAL in CAPACITANCE[F] : ValueC = 1u; // value of the
capacitance
/* Output values - unused
PORT REAL out : VR = R1.V;
PORT REAL out : VC = C1.V;
*/
INTERN
INTERN
R
C
R1
C1
N1:=N2,
N1:=N2,
N2:=GND ( R := ValueR ) ;
N2:=N1 ( C := ValueC ) ;
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Names
SML supports the following kinds of names.
File Names
Define Names
Type Names
Instance Names
File Names
File names specify a file name and path in a definition.
Note
"
[a-zA-Z]:\
All characters
except for
\n * ? " : . \
"
.
\\
.\
All characters
except for
\n * ? " : . \
[a-zA-Z]
[0-9]
[]
[a-zA-Z]
[]
_
Type Names
Type names specify a model (element) type, e.g. R, GS, ST, EXP, or definition names of userdefined C models, structural models, and models of sub-simulators. Type names must be clear. You
cannot use an type name twice unless other parameters (source, index, simulator) make the definition clear. The names may consist of letters, digits and underscores and can have a maximum of 50
characters.
Note
All names are case sensitive. The first character must always be a letter or underscore.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
[a-zA-Z]
[0-9]
[]
[a-zA-Z]
[]
_
Instance Names
Instance names specify a model (element) in a modelling level, e.g. circuit components, blocks,
states, time functions, characteristics, standard variables, subsheets, and macros. Instance names in
a modelling level must be clear. You cannot use an instance name twice in the same modelling
level. The names may consist of letters, digits and underscores and can have a maximum of 50
characters.
Note
All names are case sensitive. The first character must always be a letter or underscore.
[a-zA-Z]
[0-9]
[]
[a-zA-Z]
[]
_
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Separators
Except for file names, which are surrounded by quotation marks, blank spaces, tabs, and carriage
returns will be considered as separators. File names can be contain blank spaces. In some cases special separators are defined.
Comma
Separator between nonconservative nodes, dimension statements of multidimensional quantities, and index statements for access to multidimensional nodes.
Assignment ( := )
Separator between name and value of a nonconservative node respectively separator between
left and right side of an equation.
Semicolon
Separator between model instances.
Brackets
( ) Start and end of a nonconservative node list, parameters of math functions, or for grouping
of math operations.
{ } Start and end of a model definition or a group of similar elements.
[ ] Start and end of a dimension statement of multidimensional quantities or the index list for
access to multidimensional nodes.
Continuation Sign
If an input must be carried over to the next line, use the back slash ( \ ) as a continuation sign.
Mathematical constants
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Nodes
Conservative Nodes
Instance Name
Nonconservative Nodes
,
(
Value string
Parameter name
:=
Model Attributes
,
Attribute key
Attribute type
Value string
Parameter name
:=
Attribute key:
DB: Name of data base source file, which contains the model text
(MODEL, COUPL) or model DLL (UMODEL).
( VOL:=100u ,B:=700meg )
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Keywords separate the SML source code into different sections. Within a section every line ends
with a semicolon. For easier legibility, spaces can be inserted and lines indented in the lines of
code.
Preprocessor Instructions
Preprocessor instructions begin with a number sign (#) and must be ended with a newline character (enter). You can arrange as many as you like in any order.
Instruction
Description
#DEFINE
#UNDEF
#INCLUDE
#IFDEF
#IFNDEF
#ELSE
#ENDIF
#SET
#EXTSIM
#ENDEXTSIM
#INCLUDE Instruction
The #INCLUDE instruction includes the defined SML file at the position of the instruction and
forces the compiler to continue the process with the include file. This file contains a part of the
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
model description, which can consist of any SML text, as SML source code, model definitions,
source code of models of external simulators, definitions or comments,.
File name
#INCLUDE
File name:
#SET Instruction
The #SET instruction defines values of initial parameters and states (initial values of capacitors,
inductors, integrators) before the simulation start, independent of the assignments in the SML
description. You can set the values in a separate file or at the beginning of the SML source text. A
separate file must be included with the #INCLUDE command in the model description.
Instance name1
#SET
Parameter name
Value
Instance name2
Instance name1:
Instance name2:
Parameter name:
Value:
#SET
C1.V0
-6.59909u
#SET
Sym1.N0 9894.02
#SET
State1.Z 1
#SET
Sheet1.Sheet2.Lr1.I0 1.4121e-3
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Thus a simulation can be started with values of a steady-state condition. If an initial value is
defined with a #SET instruction twice, the last assignment is used.
#DEFINE Instruction
The #DEFINE instruction assigns the defined value to a name, independent of the assignments in
the SML file. All following parameters with the define name are set to the value in the #DEFINE
instruction. A define name can also be used in an #IFDEF and #IFNDEF instruction as condition.
You can place the definitions at the beginning of the SML source text or in a separate file. A separate file must be included with the #INCLUDE command in the model description.
#DEFINE
Define name
Define value
Define name:
Define value:
#DEFINE INIT
#DEFINE Initvalue 100
An empty character string as define value removes the value of the define name in the model
description. In an #IFDEF and #IFNDEF condition, however, the define name can be used.
#UNDEF Instruction
The #UNDEF instruction removes the definition of the defined name. All following values of the
define name will not be replaced. The define name will be considered of #IFDEF and #IFNDEF
conditions as undefined. You can place the definitions at the beginning of the SML source text or in
a separate file. A separate file must be included with the #INCLUDE command in the source text.
#UNDEF
Define name:
Define name
#UNDEF MIT_INIT
#UNDEF Init_value
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
source text or in a separate file. A separate file must be included with the #INCLUDE command in
the source text.
#IFDEF
Define name
#IFNDEF
#ELSE
Define name:
#ENDIF
#IFDEF MIT_INIT
#SET C1.U0 -6.59909
#ENDIF
#EXTSIM Instruction
The instructions #EXTSIM and #ENDEXTSIM includes directions and model descriptions of an
external subsimulator (e.g.SimVHDL). These directions and model descriptions will be write in a
separate text file and transferred to the compiler of the external subsimulator. The models defined
in an #EXTSIM instruction can be used with COUPL in the SML description.
#EXTSIM
Simulator name
Language name
Model description
#ENDEXTSIM
Simulator name:
Language name:
Model description:
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
#EXTSIM (VHDLSim,VHDLA)
entity RC is
end;
architecture behav of RC is
terminal k1,k2,gnd: electrical;
begin
vout==1.0; --direct voltage
i_r==u_r/1000.0;
i_c==1.0e-6 * u_c'dot;
end;
#ENDEXTSIM
Model Instances
The structure of a simulation description is defined in general by:
A definition for a component consist of the model instance, the component type and instance name,
followed by the conservative nodes and nonconservative nodes (parameters), which must be separated by at least one blank space. In some cases additional attributes can be defined.
Types of model instances in the SML:
INTERN
MODEL
UMODEL
COUPL
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Time functions to provide time behavior for different components. The time functions can be
divided into predefined and user-defined time functions.
Characteristic functions to model nonlinear characteristics in the form of y=f(x).
Internal models can be divided into models with fixed behavior and models with user-defined
behavior.
Instance name
List of
conservative
nodes
INTERN
List of nonconservative
nodes
INTERN
Type name:
Instance name:
Conservative nodes:
Nonconservative
nodes:
List of nonconservative
nodes
;
Attributes
INTERN
Type name
Instance name
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Conservative nodes
Nonconservative
nodes
Attributes
Attribute statements (SRC: and DST:). Only for equations (EQU) used.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
STATE
STATE1 {
MARK: 0;
CATI:C:=10;
SET:D:=D+1;
}
MODEL Instance
The MODEL model instance is used for user-defined structural models (all kind of macros), which
are included in a model library or defined with a SMLDEF statement.
MODEL
Type name
;
Instance name
List of
conservative
nodes
List of nonconservative
nodes
Attributes
MODEL
Type name:
Instance name:
Conservative nodes:
Nonconservative
nodes:
Attributes:
The SRC attribute defines the source model library and identifier. Both
can be omitted, the simulation speed, however, is slacked because of that.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
UMODEL Instance
The UMODEL model instance is used for user-defined C models, which are included in a model
library.
UMODEL
Type name
Instance name
Attributes
List of
conservative
nodes
List of nonconservative
nodes
UMODEL
Type name:
Instance name:
Conservative nodes:
Nonconservative
nodes:
Attributes:
COUPL Instance
The COUPL model instance is used for models of external simulators.
COUPL
Type name
Instance name
Attributes
List of
conservative
nodes
List of nonconservative
nodes
COUPL
Type name:
Instance name:
Conservative nodes:
Nonconservative
nodes:
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Attributes:
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
instance_name
conservative_nodes
Port type
Port name
,
Non-conservetive nodes - Parameters
PORT
Port type
Port direction
Physical
type
Unit
Port name
Default value
Signal name
Port type:
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Port direction:
Physical type
Unit
Port name:
Definition name of the node. The syntax rules for type names are valid.
Default value
Signal name
PORT
PORT
PORT
PORT
PORT
PORT
electrical : T1;
translational : T2;
real in : Value = 2k;
real in RESISTANCE[kOhm] : R_value = 2;
real out : R1_I = R1.I;
real inout : count = count_var;
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Also, all other nominators used in the macro are replaced. Therefore, it is impossible to get outputs
or references that directly access topology elements or nominators inside the macro model. They
have to be made accessible to the outside through the pins or the parameter list.
// Definition of structural model
SMLDEF Macro2
{
PORT electrical : T1;
PORT electrical : T2;
PORT real in : Value = 2k;
PORT real out : R1_I = R1.I;
INTERN C
C1
N1:=N0002, N2:=T2 ( C := 1u ,V0 := 0 ) ;
INTERN R
R1
N1:=T1, N2:=N0002 ( R := Value ) ;
}
//Model description
INTERN E E1
N1:=GND, N2:=N0001 ( EMF := 1 ,PARTDERIV := 1
INTERN R
R1
N1:=N0001, N2:=N0002 ( R := 1k ) ;
INTERN EQU { R := 1k ;}
//Usage of structural model
MODEL Macro2 Subsheet1 T1:=GND,T2:=N0002 ( Value:=R );
);
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Configuration Controls
SML has two different configuration controls: SIMCTL for simulator configurations and OUTCTL
for configuration of output devices.
Note
The configuration settings described in this section are made via Simplorers user
interface menus and dialog boxes.
Simulator Configurations
Simulation control parameters define the process control of the simulation. These parameters must
be handled very carefully, because varying them improperly may result in unpredictable numeric
effects.
See also Analysis Types for Simulation
SIMCTL
SIMCFG
Instance name
{
;
Type name
Instance name
List of nonconservative
nodes
Instance name:
Type name:
Instance name:
Nonconservative
nodes:
//Simulator Configuration
SIMCTL SimCtl1 {
SIMCFG SIMPLORER_TR Simplorer1 ( Tend := 40m, Hmin := 10u, Hmax := 1m,
Theta := 23 );
SIMCFG SECM SECM1 ( Solver := 1, LDF := 1, Iteratmax := 40, IEmax :=
0.001, VEmax := 0.001 );
}
Related Topics
Standard Analysis Setup Options
Solution Options
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Output Configurations
During the simulation a large amount of data will be produced. These data can be displayed directly
on the screen or saved in files through output specifications.
Output in Files
To evaluate data with other tools, specify the Simplorer database (SDB) as the output destination. For all output channels, the simulator creates an SDB file. The file name is
formed automatically from the name of the SML file and the extension SDB.
Every output destination can be assigned any system quantities from the electrical circuit, the block
diagram, the state graph and formulas, functions and variables. It is also possible to define a system
quantity for several output destinations.
OUTCTL
OUTCFG
Instance name1
{
;
Type name2
Instance name2
RESULT
List of nonconservative
nodes2
List of nonconservative
nodes3
Type name3
Instance name3
Instance name 1
Type name 2
Instance name 2
Nonconservative
nodes 2
Type name 3
Instance name 3
Nonconservative
nodes 3
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
//Output Configuration
OUTCTL OutCtl1{
OUTCFG VIEWTOOL Out1 ( Xmin := 0, Xmax := Tend, Ymin := -400, Ymax :=
400 );
RESULT SDB SDB_0( E1.EMF );
RESULT SDB SDB_1( STEP1.VAL );
RESULT VIEW VANALOG_2 ( E1.EMF, Type:=ANALOG );
RESULT VIEW VANALOG_3 ( C1.I, Type:=ANALOG );
OUTCFG SimplorerDB DB1 ( Xmin := 0, Xmax := Tend, Reduce := 0, StepNo :=
2, StepWidth := 10u );
}
Related Topic
Generating Reports and Postprocessing
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
22
Scripting
This section explains how to record, run, pause, resume, stop and troubleshoot scripts. You can also
create and edit Simplorer scripts using a text editor.
For information on how to create, edit and use scripts in Simplorer see:
(html help format).
(pdf format).
You can also access help for the scripting commands via the menu bar:
Scripting 22-1
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
Use the file browser to locate the folder in which you want to save the script, such as:
C:\work\SimplorerProjects\Scripts
Then double-click the folders name.
3.
Type the name of the script in the File name text box, and then click Save.
The script is saved in the folder you selected by the file name filename.vbs.
4.
5.
When you have finished recording the script, click Stop Script Recording on the Tools menu.
2.
Enter a name for the script, and click OK to close the dialog and begin recording.
3.
4.
When you have finished recording the script, click Stop Script Recording on the Tools menu.
The script you recorded is saved to the current projects scripts library. Refer to Managing
Library Contents for information on working with libraries.
22-2 Scripting
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
You can edit scripts stored in a project by right-clicking the desired script in the Definitions>Scripts folder in the Project Manager window; then selecting Edit Script from the
context menu. The script will open in the Script Editor.
You can execute a project script, by right-clicking the desired script in the Definitions>Scripts folder in the Project Manager window; then selecting Run Script from the
context menu.
Project scripts are stored in the project scripts library. Refer to Managing Library
Contents for information on working with libraries.
Running a Script
To run a script from Simplorer:
1.
2.
3.
Use the file browser to locate the folder in which you saved the script, and then double-click
the folders name.
Type the name of the script in the File name text box, or click its name, and then click Open.
Simplorer executes the script.
To supply script arguments when running from Tools>Run Script, use the Script arguments
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.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
'At this point, args has the arguments no matter if you are
running
'under windows script host or Ansoft script host
msgbox "Count is " & args.Count
for i = 0 to args.Count - 1
msgbox args(i)
next
Related Topics
Running VBScripts in 64-bit Windows Installations
Running Scripts when Different Versions of Simplorer are Installed
Simplorer10.MathMod
22-4 Scripting
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Simplorer11.MathMod
Stopping a Script
ClickTools>Stop Script.
Simplorer stops executing the script that has been paused.
Troubleshooting Scripts
The following procedures may be used to enable vbs scripts on Windows XP systems that block
vbs scripts from running.
Use either - not both - of the following procedures:
DEP Setting
Change Boot Parameter
DEP Setting
1.
Right -click My Computer and select Properties on the context menu to open the System
Properties dialog box.
2.
Select the Advanced tab and click the Settings button on the Performance panel.
The Performance Options dialog box displays.
3.
On the Data Execution Prevention tab, ensure that Turn on DEP for essential Windows
programs and services only is selected.
4.
Click Apply and then close the Performance Options and System Properties dialog boxes.
5.
1.
Changing Windows boot parameters using the following procedure may cause
your system to stop working.
Back up your system boot.ini file before proceeding.
Right -click My Computer and select Properties on the context menu to open the System
Scripting 22-5
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Select the Advanced tab and click the Settings button on the Startup and Recovery panel.
The Startup and recovery dialog box displays.
3.
On the System startup panel, click the Edit button to open boot.ini in Notepad.
Example:
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(2)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Microsoft Windows
XP Professional" /fastdetect /NoExecute=OptIn
22-6 Scripting
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
4.
Below the [operating systems] line, the various Windows boot options are listed.
Copy the line that matches what you normally use for booting, and paste the line immediately
below that line to maintain a backup of the original boot configuration.
Example:
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(2)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Microsoft Windows
XP Professional" /fastdetect /NoExecute=OptIn
multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Microsoft Windows
XP Professional" /fastdetect /NoExecute=OptIn
5.
Edit the newly-copied line to identify the new boot configuration as a backup of the original.
Example:
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(2)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Microsoft Windows
XP Professional" /fastdetect /NoExecute=OptIn
multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Microsoft Windows
XP Professional Backup" /fastdetect /NoExecute=OptIn
6.
Edit the original line to change the NoExecute option from OptIn to AlwaysOff.
Example:
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(2)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Microsoft Windows
XP Professional" /fastdetect /NoExecute=AllwaysOff
multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Microsoft Windows
XP Professional Backup" /fastdetect /NoExecute=OptIn
7.
Save the boot.ini file. If an error appears indicating that the file is read-only, you need to edit
the file's properties to remove the read-only flag.
8.
9.
When prompted for the boot configuration you wish to use, choose the same boot configuration name you used previously (as this is the one that now contains the AllwaysOff stateScripting 22-7
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
ment). If you never received a prompt previously, the default option should represent the boot
configuration with the AllwaysOff flag.
Note
If the machine is unable to boot with the new configuration, it is possible that the
file was edited improperly. You should reboot the computer and select the backup
option.
Once the computer boots properly, carefully follow the steps above to properly edit
this file.
If you still are unable to run vbs scripts, contact Ansoft Technical Support.
22-8 Scripting
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
23
Simplorer Design Conventions
The following sections describe the conventions that you need to use when working with Simplorer
designs.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The following predefined variable types are not allowed for names:
Related Topics
Predefined Variables
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Parameter Qualifiers
Components are characterized by various physical quantities. A resistor, for example, is represented by current (I) and voltage (V) in the simulation. System variables may be accessed by reading (to use the actual quantity in an expression or to create an output) or writing (to influence
quantities). Use the following syntax to access component variables:
ComponentName.Qualifier
Computations and outputs require access to system variables. The form and number of the qualifier
depend on the corresponding component.
Note
All qualifiers are case sensitive and must use capital letters (for example, R.V, not R.v).
Qualifier Lists
The following tables display the most common Simplorer qualifiers. The System Ouputs table lists
qualifiers that are read-only. The Component Parameters table lists qualifiers that can be both read
and written.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
System Outputs
Notation
Description
ComponentName.V
ComponentName.I
ComponentName.dV
ComponentName.dI
ComponentName.VAL
ComponentName.ST
ComponentName.P
ComponentName.Q
ComponentName.C
ComponentName.CHARGE
component charge
ComponentName.MMF
ComponentName.FLUX
ComponentName.S
component displacement
ComponentName.F
component force
ComponentName.V
component velocity
ComponentName.PHI
component angle
ComponentName.TORQUE
component torque
ComponentName.OMEGA
ComponentName.T
component temperature
ComponentName.H
Component Parameters
Notation
Description
ComponentName.EMF
ComponentName.R
ComponentName.C
ComponentName.L
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Notation
Description
ComponentName.G
ComponentName.I0
ComponentName.V0
ComponentName.CTRL
ComponentName.UL
ComponentName.LL
ComponentName.FREQU
ComponentName.TPERIO
ComponentName.AMPL
ComponentName.INPUT
ComponentName.TS
ComponentName.QUANT
ComponentName.CH
ComponentName.FILE
ComponentName.VALUE
ComponentName.K
ComponentName.VOL
ComponentName.B
ComponentName.P0
ComponentName.RHO
ComponentName.DIA
component diameter
ComponentName.LEN
component length
ComponentName.Q0
ComponentName.K
ComponentName.W
ComponentName.FLUX0
ComponentName.C
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Notation
Description
ComponentName.M
component mass
ComponentName.S0
ComponentName.V0
ComponentName.SUL
ComponentName.SLL
ComponentName.J
ComponentName.PHI0
ComponentName.OMEGA0
ComponentName.PHIUL
ComponentName.PHILL
ComponentName.K
ComponentName.C_TH
ComponentName.T0
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Parameter Types
The following table summarizes the parameter types used in Simplorer.
Type
Description
Common Type
(Name.X)
Value Utilization
E1.EMF
Control Type
(Name.CTRL)
Control input of
switching devices.
Example:
S1.CTRL
Initial values are set only once All numerical values (constant with
at simulation start.
or without unit suffix), simulation
parameters, variables, component
parameters, mathematical, or logical
See also Common Type.
expressions. A logical expression
provides only the value 1 (TRUE)
or 0 (FALSE).
Examples:
See Common Type.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Type
Description
Value Utilization
Logical
Expression Type
Parameters for
switching
conditions.
Boolean expressions.
Example:
TRANS1.TRC
Quantity Type
(Name.QUANT)
Control quantity of
controlled sources.
Examples:
ExNL.CTRL
EPOLY.CTRL
(Name.CH)
Examples:
IxNL.CTRL
Characteristic
Type
Examples:
Characteristics of
For a given X value, the Y
non-linear elements. value is determined. The
LOOKUP function provides
Examples:
characteristic values in
RNL.CH
equations.
EINL.CH
File Type
(Name.FILE)
Note
This table does not apply to user-defined models (UMODEL) if users choose to integrate
values directly.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Predefined Variables
The simulator uses intrinsic variables for internal computation. All predefined variables are case
insensitive.
Warning
Do not use predefined variables for names (including port names) in a model
description. If these variables are used in a model description, unexpected effects or
an error message result.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Pre-defined Constants
The simulator provides natural and mathematical constants that can be used in mathematical
expressions within component dialog boxes or SML descriptions.
The following table shows the available constants and their corresponding symbols:
Constant
pi
MATH_PI
mathE
MATH_E
e0
PHYS_E
Unit
Description
3.1415926535898
[/]
Pi
2.718281828
8.85419
Symbol
[/]
Euler number
10-12
CJm
Permittivity of vacuum
-06
Tm/J
Permeability of vacuum
J/K
Boltzmann constant
kB
Elementary charge
u0
PHYS_MU0
1.25664 10
boltz
PHYS_K
1.38066 10-23
10-19
elecq
PHYS_Q
1.60217733
c0
PHYS_C
299792458
m/s
Speed of light
g0
PHYS_G
9.80665
m/s
planck
PHYS_H
6.6260755 10-34
Js
Planck constant
abs0
PHYS_T0
-273.15
Absolute Zero
eta
N/A
376.730313461
Ohm
Impedance of vacuum
1. For backward compatibility, #defines of these names will be replaced by their values during
translation of a model definition - unless the #define line is still present in the model definition.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
If operands are complex numbers (for example, in an AC simulation), the comparison operators
(<, >, <=, >=) consider only the real part.
Operators
Assignment operators :=
Assignment
##
$$
Arithmetic operators *
Multiplication
Division
Addition
Subtraction
**
Less than
Greater than
Not equal to
Comparison operators This operator type forces the simulator to synchronize on the condition
with synchronization with the minimum step width.
<=
>=
==
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
For backward compatibility the operators: AND, OR, NOT, <>, ><, = are still
recognized in pure SML text.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
If the argument(s) are complex numbers (for example in an AC simulation), the functions RAD,
DEG, DEGEL, INT, REM, and LOOKUP consider only the real part.
Warning
Note
When entering these functions, do not leave spaces between the function arguments
and the open parenthesis mark. For example: SIN(x) not SIN (x).
The following tables list the standard mathematical functions included in Simplorer:
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Trigonometric Functions
Note
When defining arguments for trigonometric functions, you must consider poles to
avoid potential errors during a simulation.
Notation
Description
Example
SIN(x)
Sine, x[rad]
SIN(PI/6)=0.5
COS(x)
Cosine, x[rad]
COS(2PI/3)=-0.5
TAN(x)
Tangent, x[rad]
TAN(PI/4)=1
ASIN(x)
ASIN(0.5)=0.524=PI/6
ACOS(x)
ACOS(0.5)=1.0471=PI/3
ATAN(x)
ATAN(1)=0.785=PI/4
ATAN2(x,y)
ATAN2=ATAN(y/x)
ATAN2(.25,1)=
ATAN(4)=1.325
SINH(x)
Hyperbolic sine
SINH(1)=1.175201
COSH(x)
Hyperbolic cosine
COSH(1)=1.54308
TANH(x)
Hyperbolic tangent
TANH(1)=0.761594
ASINH
Hyperbolic Arcsine
ASINH(1.175201)=1
ACOSH
Hyperbolic Arccosine
ACOSH(1.54308)=1
ATANH
Hyperbolic Arctangent
ATANH(0.761594)=1
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Arithmetic Functions
Notation
Description
Example
SQR(x)
Square.
SQR(16)=16=256
SQRT(x)
Square root.
SQRT(9)=9=3
ROOT(x,y)
n-th Root.
ROOT(27,3)=27=3
SDT(x[,y]), y=0
SDT(var1)=var1 dt
DDT(x)
DDT(var1)=dvar1/dt
MAX(x1,x2)
MAX(1,5)=5
MIN(x1,x2)
MIN(1,5)=1
Integration methods:
0=Euler (explicit)
1=Euler (implicit)
2=Trapezoidal (implicit)
3=Auto mode (setting taken from
transient options dialog box)
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Notation
Description
Example
MOD(x,y)
Modulus.
MOD(370,60)=10
LOOKUP(x,y)
LOOKUP(XY1.VAL,5)=
Y value of the characteristic XY1
for the X value 5
x=Characteristic
name
y=X value
NOZ(x,y)
Not zero. Ensures that the minimum noz(x, 1e-13) = x if abs(x) > 1e-13
absolute value of x is restricted to the
= 1e-13 if abs(x) < 1e-13
absolute value specified by y. Default
and x is >=0
for y if not specified is 1e-12. This
= -1e-13 if abs(x) < 1e-13
function is useful in avoiding divideand x is <0
by-zero conditions introduced either
by normal expressions or the partial If y is negative, then the absolute
value of y is used.
derivative of these expressions.
noz(x, -1e-13) = x
For example:
if abs(x) > 1e-13
1/(VM1.V) would better be written
= 1e-13 if abs(x) < 1e-13 and x
as 1/(noz(VM1.V)) to avoid
is >=0
division by zero when VM1.V is zero.
sqrt(x.V) would be better written
as sqrt(noz(x.V)) if a partial
derivative of the expression is to be
considered because the partial
derivative of sqrt(x.V) with
respect to x.V is
1/2*(sqrt(x.V)).
Exponential Functions
Notation
Description
Example
EXP(x)
Exponential function.
EXP(5)=e5=148.41
LN(x)
Natural logarithm.
LN(3)=loge3=1.099
LOG(x[,y]); y=10
Common logarithm.
LOG(7,4)=log47=1.403
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Complex Functions
Notation
Description
Example
ABS(x)
Absolute value.
ABS(-8.5)=|-8.5|=8.5
RE(z)
Real part
RE(z)=5
IM(z)
Imaginary part
IM(z)=3
ARG(z)
ARG(z)=0.53
Conversion Functions
Notation
Description
ANG_RAD(x)
ANG_DEG(x)
Example
DEGEL(180,50)=10ms
Rounding Functions
Notation
Description
Example
SGN(x)
INT(x)
INT(2.5)=2
REM(x)
REM(2.5)=0.5
SGN(3)=1; SIGN(0)=0;
r=0 if z=0, 1 if Re(z)>0 or (Re(z)=0 SIGN(-3)=-1
and Im(z)>0), -1 otherwise.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Conditional Functions
Notation
Description
IF (condition1)
{ var:=1; }
Example
[ ELSE IF
(condition2)
{ var:=2; }
[ELSE IF (t>=2)
{ var:=2; }
ELSE
{ var:=3; }
ELSE
{ var:=3; } ]
The implicit IF statement is an
True-expression, expression and can only be used on
False-expression) the right side of an equation or in
value expressions.
IF (condition,
Related Topics
Predefined Constants
Operators
Equation Calculator
Value
SML
Examples
12
E12
TER
giga
10
E9
GIG
mega
106
E6
MEG
kilo
103
tera
10
E3
KIL
-3
E-3
MIL
micro
-6
10
E-6
MIC
nano
10-9
milli
pico
femto
10
E-9
NAN
-12
E-12
PIC
-15
E-15
FEM
10
10
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
SI Units
All units used in Simplorer are derived from the SI system of units.
Quantity
Unit Name
Symbol
Length
Meters
Mass
Kilograms
kg
Time
Seconds
Amperes
Temperature
Kelvins
Volts
However, the unit handling feature of Simplorer allows you to use non-SI units for designs. Non-SI
units are automatically converted to the expected SI units.
Related Topics
Unit Handling
Unit Types
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Unit Handling
The unit handling feature of Simplorer allows you to enter component parameter values in multiples of standard SI units such as millivolts, nanoamperes, and kilometers, as well as in non-SI units
such as pounds-per-square-inch, degrees Fahrenheit, and feet. This eliminates the need for errorprone unit conversions and reduces the time needed to calculate component parameters.
Each component parameter that is a physical quantity can be assigned an expected unit of measure,
which is the unit of measure for the parameter value used during simulation.
Note
Simplorer internal models have predefined expected units for each physical
parameter.
The parameters of user-defined models such as C-Models can be assigned expected
units when the user-defined models are created.
Each parameter also is provided with a set of additional units that can be applied to the same physical quantity.
For example, Simplorers force source component has an expected unit of Newtons and an associated set of additional units that includes milli-Newtons, PoundsForce, and dynes.
When an instance of a component such as the force source is placed on a schematic, its parameter
values can be edited in its Properties dialog box. The units associated with the parameters also can
be changed. The units are located in combo boxes next to the text fields containing each parameter's value. Changing the unit for a parameter is as simple as selecting a new unit in the combo box
for the parameter's unit.
When the component is simulated, Simplorer automatically converts quantities expressed in the
newly chosen units to equivalent quantities of the expected units. Thus, you can express component
parameters in units from different systems of measurement without affecting the accuracy of the
simulation results.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Unit Types
The following table lists the supported unit types for all ANSYS Electromagnetics products. Simplorer supports a subset of the unit types shown in this list. To confirm that a particular unit is supported in Simplorer, consult the default-value pull-down menus for the various unit specifications
listed in the Default Units Tab of the General Options dialog.
Unit Type
String Representation
Description
Acceleration
m_per_s2
Acceleration
cm_per_s2
Acceleration
in_per_s2
Acceleration
mm_per_s2
Admittance
Sie
Siemens
Admittance
megSie
Mega-Siemens
Admittance
uSie
Micro-Siemens
Admittance
mSie
Milli-Siemens
Admittance
kSie
Kilo-Siemens
Admittance
mho
Mhos
AIGB
F_per_ghalfs_per_m
AIGB
Fs2_per_ghalf_per_m
AmountOfSubstance
mol
Mol
AmountOfSubstance
umol
Micro-Mol
AmountOfSubstance
nmol
Nano-Mol
AmountOfSubstance
mmol
Milli-Mol
AmountOfSubstance
kmol
Kilo-Mol
Angle
rad
Radian
Angle
deg
Degree
Angle
degsec
Second
Angle
degmin
Minute
AngleCoefficient
per_rad
Per radian
AngleCoefficient
V_per_V_per_deg
AngleCoefficient
per_deg
Per degree
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Unit Type
String Representation
Description
AngleCoefficient
V_per_V_per_rad
AngularAcceleration
rad_per_s2
AngularAcceleration
deg_per_s2
AngularAcceleration
per_s2
AngularDamping
Nms_per_rad
AngularDamping
dNms_per_rad
AngularDamping
kNms_per_rad
AngularJerk
rad_per_sec2
AngularJerk
deg_per_sec2
AngularMomentum
kgm2_per_sec
AngularMomentum
nms
Newton-meter-second
AngularSpeed
deg_per_sec
AngularSpeed
deg_per_min
AngularSpeed
deg_per_hr
AngularSpeed
rad_per_sec
AngularSpeed
rad_per_min
AngularSpeed
rad_per_hr
AngularSpeed
rpm
AngularSpeed
rev_per_min
AngularSpeed
rev_per_sec
AngularSpeed
per_second
AngularStiffness
nm_per_rad
AngularStiffness
nm_per_deg
AngularWindage
nms2_per_rad2
AngularWindage
kgm2_per_rad2
Area
m2
Square-Meter
Area
km2
Square-Kilometer
Area
ft2
Square foot
Area
in2
Square Inch
Area
mm2
Square-Millimeter
Simplorer Design Conventions23-23
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Unit Type
String Representation
Description
Area
cm2
Square-Centimeter
Area
um2
Micro-meter squared
AreaCoefficient
per_m2
Per square-meter
AreaCoefficient
per_cm2
Per square-centimeter
ArealFlowRate
m2_per_s
ArealFlowRate
m2_per_min
ArealFlowRate
m2_per_hour
AreaPerPower
m2_per_W
AreaPerPower
m2_per_Js
AreaPerVoltage
m2_per_V
AreaPerVoltage
Am2_per_W
AreaPerVoltage
Am2_per_kW
AreaPerVoltage
m2_per_kV
AreaPerVoltageTemperature
m2_per_Vkel
AreaPerVoltageTemperature
Am2_per_Wkel
BIGB
F_per_ghalfs_per_Vm
BIGB
Fs2_per_ghalf_per_Vm
Capacitance
fF
Femto-Farad
Capacitance
farad
Farad
Capacitance
pf
Pico-Farad
Capacitance
uf
Micro-Farad
Capacitance
nf
Nano-Farad
Capacitance
mf
Milli-Farad
CapacitancePerArea
F_per_m2
CapacitancePerArea
nF_per_m2
CapacitancePerArea
uF_per_m2
CapacitancePerArea
F_per_cm2
CapacitancePerArea
mF_per_m2
CapacitancePerAreaPerVoltage F_per_Vm2
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Unit Type
String Representation
Description
CapacitancePerAreaPerVoltage mF_per_Vm2
CapacitancePerAreaPerVoltage pF_per_Vm2
CapacitancePerAreaPerVoltage nF_per_Vm2
CapacitancePerAreaPerVoltage uF_per_Vm2
CapacitancePerLength
F_per_m
CapacitancePerLength
pF_per_m
CapacitancePerLength
nF_per_m
CapacitancePerLength
mF_per_m
CapacitancePerLength
uF_per_m
CapacitanceTemperatureCoeff F_per_Kel
CapacitanceTemperatureCoeff pF_per_Cel
CapacitanceTemperatureCoeff pF_per_Kel
CapacitanceTemperatureCoeff mF_per_Cel
CapacitanceTemperatureCoeff pF_per_Fah
CapacitanceTemperatureCoeff nF_per_Kel
CapacitanceTemperatureCoeff mF_per_Kel
CapacitanceTemperatureCoeff F_per_Cel
CapacitanceTemperatureCoeff mF_per_Fah
CapacitanceTemperatureCoeff nF_per_Cel
CapacitanceTemperatureCoeff F_per_Fah
CapacitanceTemperatureCoeff uF_per_Kel
CapacitanceTemperatureCoeff nF_per_Fah
CapacitanceTemperatureCoeff uF_per_Cel
CapacitanceTemperatureCoeff uF_per_Fah
Charge
Charge
Coulomb
Charge
Ahour
Ampere hour
Charge
uC
Micro-Coulomb
Charge
mC
Milli-Coulomb
Charge
nC
Nano-Coulomb
Charge
kC
Kilo-Coulomb
Simplorer Design Conventions23-25
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Unit Type
String Representation
Description
Charge
As
Ampere second
Compliance
m_per_N
Compliance
in_per_lbf
Compliance
cm_per_N
Conductance
fSie
Femto-Siemen
Conductance
nSie
Nano-Siemen
Conductance
pSie
Pico-Siemen
Conductance
Sie
Siemens
Conductance
megSie
Mega-Siemens
Conductance
uSie
Micro-Siemens
Conductance
mSie
Milli-Siemens
Conductance
kSie
Kilo-Siemens
Conductance
mho
Mhos
Conductance
perohm
Reciprocal Ohm
Conductance
ApV
ConductancePerLength
S_per_m
ConductancePerLength
mS_per_m
ConductancePerLength
kS_per_m
ConductancePerLength
uS_per_m
ConductancePerLength
cS_per_m
Current
Ampere
Current
fA
Femto-Ampere
Current
kA
Kilo-Ampere
Current
mA
Milli-Ampere
Current
nA
Nano-Ampere
Current
pA
pico-Ampere
Current
uA
MIcro-Ampere
Current
Ampere
Current
ua
Micro-Ampere
Current
na
Nano-Ampere
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Unit Type
String Representation
Description
Current
ma
Milli-Ampere
Current
ka
Kilo-Ampere
Current
C_per_s
CurrentChangeRate
A_per_s
CurrentChangeRate
A_per_hour
CurrentChangeRate
mA_per_s
CurrentChangeRate
kA_per_s
CurrentChangeRate
uA_per_s
CurrentChangeRate
A_per_min
CurrentDensity
A_per_m2
CurrentDensity
uA_per_m2
CurrentDensity
mA_per_cm2
CurrentDensity
mA_per_m2
CurrentDensity
A_per_cm2
CurrentDensity
uA_per_cm2
CurrentGain
A_per_A
CurrentGain
A_per_mA
CurrentGain
mA_per_A
CurrentLengthPerVoltage
Am_per_V
CurrentLengthPerVoltage
mAm_per_V
CurrentLengthPerVoltage
uAm_per_V
CurrentPerCharge
A_per_C
CurrentPerCharge
A_per_Ahour
CurrentPerCharge
A_per_As
CurrentPerIrradiance
A_per_W_per_m2
CurrentPerIrradiance
kA_per_W_per_m2
CurrentPerIrradiance
uA_per_W_per_m2
CurrentPerIrradiance
mA_per_W_per_m2
CurrentPerLength
A_per_m
CurrentPerLength
mA_per_m
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Unit Type
String Representation
Description
CurrentPerLength
kA_per_m
CurrentPerLength
uA_per_m
CurrentPerTemperature2_half
A_per_Kel2half
CurrentPerTemperatureCubed
A_per_Kel3
CurrentPerTemperatureDiffCub A_per_diff_Kel3
ed
CurrentPerTemperatureDiffCub A_per_Cel3
ed
CurrentSquaredTime
A2s
Ampere-squared second
CurrentSquaredTime
mA2s
Milli-Ampere-squared second
CurrentTemperatureCoeff
A_per_Kel
CurrentTemperatureCoeff
A_per_Cel
CurrentTemperatureCoeff
mA_per_Kel
CurrentTemperatureCoeff
mA_per_Fah
CurrentTemperatureCoeff
kA_per_Kel
CurrentTemperatureCoeff
A_per_Fah
CurrentTemperatureCoeff
uA_per_Kel
CurrentTemperatureCoeff
uA_per_Cel
CurrentTemperatureCoeff
mA_per_Cel
Damping
Ns_per_m
Damping
kNs_per_m
Damping
mNs_per_m
Damping
cNs_per_m
Damping
dNs_per_m
Density
kg_per_m3
Density
g_per_cm3
Density
kg_per_l
Density
kg_per_dm3
Density
g_per_l
Displacement
meter
Meter
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Unit Type
String Representation
Description
Displacement
mm
Millimeter
Displacement
km
Kilometer
Displacement
cm
Centimeter
Displacement
um
Micrometer
Displacement
nm
Nanometer
Displacement
micron
Microns
Displacement
dm
Decimeter
Displacement
pm
Picometer
Displacement
fm
Femtometer
Displacement
mil
Milli-inch
Displacement
in
Inch
Displacement
ft
Foot (am.)
Displacement
yd
Yard (am.)
Displacement
mile
Mile (am.)
Displacement
mileTerr
Terrestrial mile
Displacement
mileNaut
Nautical mile
Displacement
lightyear
Light year
ElectricFieldStrength
V_per_meter
ElectricFieldStrength
v_per_meter
ElectricFieldStrength
v_per_cm
ElectricFlux
Coulomb
ElectricFlux
uC
Micro-Coulomb
ElectricFlux
nC
Nano-Coulomb
ElectricFlux
mC
Milli-Coulomb
ElectricFlux
As
Ampere-second
ElectricFluxDensity
C_per_m2
ElectricFluxDensity
nC_per_m2
ElectricFluxDensity
uC_per_m2
ElectricFluxDensity
mC_per_m2
Energy
Joule
Simplorer Design Conventions23-29
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Unit Type
String Representation
Description
Energy
Whour
Watt-hour
Energy
kJ
Kilo-Joule
Energy
eV
Electron-Volt
Energy
GJ
Giga-Joule
Energy
kWhour
kilo-Watt-hours
Energy
erg
Erg
Energy
Ws
Watt-second
Energy
megJ
Mega-Joule
Energy
uJ
Micro-Joule
Energy
mJ
Milli-Joule
EnergyDensity
J_per_m3
EnergyDensity
kJ_per_m3
FluidicCapacitance
m3_per_Pa
FluidicCapacitance
cm3_per_Pa
FluidicConductance
m3_per_Pas
FluidicConductance
cm3_per_Pas
FluidicResistance
Pas_per_m3
FluidicResistance
Ns_per_m5
Flux
Wb
Weber
Flux
weber
Weber
Flux
vh
Volt-hour
Flux
mx
Maxwell
Flux
vs
Volt-second
Force
fNewton
Femto-Newton
Force
pNewton
Pico-Newton
Force
nNewton
Nano-Newton
Force
uNewton
Micro-Newton
Force
mNewton
Milli-Newton
Force
kNewton
Kilo-Newton
Force
megNewton
Mega-Newton
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Unit Type
String Representation
Description
Force
gNewton
Giga-Newton
Force
PoundsForce
Pounds-force
Force
newton
Newton
Force
megnewton
Mega-Newton
Force
unewton
Micro-Newton
Force
mnewton
Milli-Newton
Force
dyne
Dyne
Force
knewton
Kilo-Newton
Force
kp
Kilo-pound
Force
poundsForce
Pound-force
Frequency
GHz
Gigahertz
Frequency
rps
Frequency
thz
Tera-Hertz
Frequency
Hz
Hertz
Frequency
kHz
Kilo-Hertz
Frequency
milliHz
Milli-Hertz
Frequency
MHz
Mega-Hertz
Frequency
per_sec
Per second
HeatFlow
Watt
HeatFlow
J_per_s
Illuminance
lx
Lux
Illuminance
klx
Kilo-Lux
Illuminance
meglx
Mega-Lux
Illuminance
lm_per_in2
Illuminance
W_per_m2
Illuminance
W_per_cm2
Illuminance
lm_per_cm2
Illuminance
lm_per_m2
Impedance
Ohm
Ohm
Impedance
megohm
Mega-Ohm
Simplorer Design Conventions23-31
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Unit Type
String Representation
Description
Impedance
mOhm
Milli-Ohm
Impedance
kOhm
Kilo-Ohm
Impedance
uOhm
Micro-Ohm
Impedance
Gohm
Giga-Ohm
Inductance
fH
Femto henri
Inductance
Henry
Inductance
mH
Milli-Henry
Inductance
nH
Nano-Henry
Inductance
pH
Pico-Henry
Inductance
uH
Micro-Henry
Inductance
Henry
Inductance
uh
Micro-Henry
Inductance
nh
Nano-Henry
Inductance
mh
Milli-Henry
InductancePerLength
H_per_m
InductancePerLength
pH_per_m
InductancePerLength
nH_per_m
InductancePerLength
mH_per_m
InductancePerLength
uH_per_m
Inertance
Pas2_per_m3
Inertance
Ns2_per_m5
Inertance
kg_per_m4
Irradiance
irrad_W_per_m2
Irradiance
megW_per_m2
Irradiance
mW_per_m2
Irradiance
irrad_W_per_cm2
Irradiance
kW_per_m2
Irradiance
uW_per_m2
Irradiance
W_per_in2
Jerk
m_per_s3
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Unit Type
String Representation
Description
Jerk
cm_per_s3
Jerk
nm_per_s3
Jerk
in_per_s3
Jerk
um_per_s3
Jerk
mm_per_s3
Length
cm
Centimeter
Length
uin
Micro-inch
Length
meter
Meter
Length
mm
Milli-Meter
Length
km
Kilo-Meter
Length
cm
Centi-Meter
Length
um
Micro-Meter
Length
nm
Nano-Meter
Length
micron
Microns
Length
dm
Deci-Meter
Length
pm
Pico-Meter
Length
fm
Femto-Meter
Length
mil
Milli-inch
Length
in
Inch
Length
ft
Foot (am.)
Length
yd
Yard (am.)
Length
mile
Mile (am.)
Length
mileTerr
Terrestrial mile
Length
mileNaut
Nautical mile
Length
lightyear
Light year
Length2PerVoltage2
m2_per_V2
LengthCoefficient
per_m
Per meter
LengthCoefficient
V_per_V_per_m
LengthCoefficient
per_km
Per kilo-meter
LengthCoefficient
per_um
Per micro-meter
Simplorer Design Conventions23-33
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Unit Type
String Representation
Description
LengthCoefficient
per_in
Per inch
LengthCoefficient
per_cm
Per centi-meter
LengthCoefficient
V_per_V_per_in
LengthCoefficient
per_mm
Per milli-meter
LengthPerVoltage
m_per_V
LengthPerVoltage
mm_per_V
LengthPerVoltage
km_per_V
LengthPerVoltage
um_per_V
LengthPerVoltage
dm_per_V
LengthPerVoltage
cm_per_V
LengthPerVoltageRoot
m_per_Vhalf
LengthPerVoltageRoot
dm_per_Vhalf
LengthPerVoltageRoot
mm_per_Vhalf
LengthPerVoltageRoot
um_per_Vhalf
LengthPerVoltageRoot
km_per_Vhalf
LengthPerVoltageRoot
cm_per_Vhalf
LuminousFlux
lm
Lumen
LuminousFlux
gm2_per_s3
LuminousFlux
klm
Kilo-Lumen
LuminousFlux
mlm
Milli-Lumen
LuminousFlux
meglm
Mega-Lumen
LuminousIntensity
Cd
Candela
LuminousIntensity
GCd
Giga-Candela
LuminousIntensity
kCd
Kilo-Candela
LuminousIntensity
mCd
Milli-Candela
LuminousIntensity
megCd
Mega-Candela
MagFieldStrength
Oe
Oersted
MagFieldStrength
kOe
Kilo-Oersted
MagFieldStrength
A_per_meter
MagFieldStrength
kA_per_meter
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Unit Type
String Representation
Description
MagFieldStrength
A_per_meter
MagFieldStrength
oersted
Oersted
MagInduction
uGauss
Micro-Gauss
MagInduction
mGauss
Milli-Gauss
MagInduction
kGauss
Kilo-Gauss
MagInduction
uTesla
Micro-Tesla
MagInduction
mTesla
Milli-Tesla
MagInduction
kTesla
Kilo-Tesla
MagInduction
tesla
Tesla
MagInduction
gauss
Gauss
MagneticReluctance
A_per_Wb
MagneticReluctance
A_per_Vs
MassFlowRate
kg_per_s
MassFlowRate
g_per_s
MMF
Ampere
MMF
ua
Micro-Ampere
MMF
na
Nano-Ampere
MMF
ma
Milli-Ampere
MMF
ka
Kilo-Ampere
MolarDensity
mol_per_m3
MolarDensity
mol_per_dm3
MolarDensity
mol_per_cm3
MolarDensity
mol_per_l
MolarEnergy
J_per_mol
MolarEnergy
megJ_per_mol
MolarEnergy
mJ_per_mol
MolarEnergy
uJ_per_mol
MolarEnergy
kJ_per_mol
MolarEnergy
gJ_per_mol
MolarVelocity
mol_per_s
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Unit Type
String Representation
Description
MolarVelocity
cmol_per_s
MolarVelocity
mmol_per_s
MolarVelocity
kmol_per_s
MolarVelocity
umol_per_s
MolarViscosity
Pas_per_mol
MomentInertia
kgm2
Kilo-gram square-meter
MomentInertia
lbin2
Pound inch-squared
MomentInertia
lbft2
Pound foot-squared
Momentum
kgm_per_s
Momentum
gm_per_s
NoiseSpectrum
dBc/Hz
Percentage
percent
Per cent
PercentagePerTime
percent_per_s
PercentagePerTime
per_day
Per day
PercentagePerTime
percent_per_min
PercentagePerTime
per_hour
Per hour
PercentagePerTime
percent_per_day
PercentagePerTime
percent_per_hour
PercentagePerTime
per_min
Per minute
PercentagePerTime
per_s
Per second
Permeance
Vs_per_A
Permeance
Wb_per_A
Power
dBm
Power
dBW
Decibel watt
Power
fW
Femto-Watt
Power
pW
Pico-Watt
Power
nW
nano-Watt
Power
HP
Horsepower
Power
Btu_per_hr
Power
Watt
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Unit Type
String Representation
Description
Power
megW
Mega-Watt
Power
uW
Micro-Watt
Power
mW
Milli-Watt
Power
VA
Volt_Amps
Power
kW
Kilo-Watt
Power
gW
Giga-Watt
Power
J_per_s
Pressure
kn_per_meter_sq
Pressure
megn_per_meter_sq
Pressure
gn_per_meter_sq
Pressure
psi
Pressure
kpsi
Pressure
megpsi
Pressure
gpsi
Pressure
pascal
Pascal
Pressure
hPascal
Hekto-Pascal
Pressure
gPascal
Giga-Pascal
Pressure
techAtm
Technical atmosphere
Pressure
kPascal
Kilo-Pascal
Pressure
mbar
Milli-bar
Pressure
stAtm
Standard atmosphere
Pressure
mPascal
Milli-Pascal
Pressure
n_per_meter_sq
Pressure
megPascal
Mega-Pascal
Pressure
uPascal
Micro-Pascal
Pressure
torr
Torr
Pressure
bar
Bar
Pressure
cPascal
Centi-Pascal
Pressure
mmHg
Milli-meter mercury
Pressure
dPascal
Deci-Pascal
Simplorer Design Conventions23-37
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Unit Type
String Representation
Description
Pressure
mmh2o
Milli-meter water-column
PressureChangeRate
Pa_per_s
PressureChangeRate
torr_per_hour
PressureChangeRate
mmH2O_per_s
PressureChangeRate
psi_per_s
PressureChangeRate
techatm_per_hour
PressureChangeRate
bar_per_hour
PressureChangeRate
statm_per_s
PressureChangeRate
mbar_per_s
PressureChangeRate
mmH2O_per_hour
PressureChangeRate
Pa_per_hour
PressureChangeRate
psi_per_hour
PressureChangeRate
mmH2O_per_min
PressureChangeRate
techatm_per_min
PressureChangeRate
statm_per_hour
PressureChangeRate
torr_per_s
PressureChangeRate
mbar_per_hour
PressureChangeRate
techatm_per_s
PressureChangeRate
bar_per_s
PressureChangeRate
statm_per_min
PressureChangeRate
torr_per_min
PressureChangeRate
Pa_per_min
PressureChangeRate
bar_per_min
PressureChangeRate
mbar_per_min
PressureChangeRate
psi_per_min
PressureCoefficient
per_Pa
Per Pascal
PressureCoefficient
per_statm
PressureCoefficient
per_psi
PressureCoefficient
per_mmH2O
PressureCoefficient
per_mbar
Per Milli-bar
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Unit Type
String Representation
Description
PressureCoefficient
V_per_Vper_Pa
PressureCoefficient
per_mmHg
PressureCoefficient
per_techatm
PressureCoefficient
per_bar
Per bar
Ratio
db
Decibel
Ratio
bel
Bel
Reactance
Ohm
Ohm
Reactance
megohm
Mega-Ohm
Reactance
mOhm
Milli-Ohm
Reactance
kOhm
Kilo-Ohm
Reactance
uOhm
Micro-Ohm
Reactance
Gohm
Giga-Ohm
ReciprocalPower
per_W
ReciprocalPower
per_megW
ReciprocalPower
per_Js
ReciprocalPower
per_mW
ReciprocalPower
per_kW
ReciprocalPower
per_gW
ReciprocalResistanceCharge
per_OhmC
ReciprocalResistanceCharge
per_OhmAs
ReciprocalResistanceCharge
per_OhmAhour
ReciprocalResistanceTime
per_Ohms
ReciprocalResistanceTime
per_Ohmmin
ReciprocalResistanceTime
per_Ohmhour
Resistance
ohm
Ohm
Resistance
Ohm
Ohm
Resistance
megohm
Mega-Ohm
Resistance
mOhm
Milli-Ohm
Resistance
kOhm
Kilo-Ohm
Resistance
uOhm
Micro-Ohm
Simplorer Design Conventions23-39
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Unit Type
String Representation
Description
Resistance
Gohm
Giga-Ohm
ResistancePerCharge
Ohm_per_C
ResistancePerCharge
Ohm_per_Ahour
ResistancePerCharge
megOhm_per_C
ResistancePerCharge
nOhm_per_C
ResistancePerCharge
mOhm_per_C
ResistancePerCharge
uOhm_per_C
ResistancePerCharge
kOhm_per_C
ResistancePerCharge
Ohm_per_As
ResistancePerCharge
gOhm_per_C
ResistancePerLength
Ohm_per_m
ResistancePerLength
megOhm_per_m
ResistancePerLength
mOhm_per_m
ResistancePerLength
uOhm_per_m
ResistancePerLength
kOhm_per_m
ResistancePerLength
Ohm_per_um
ResistanceTemperatureCoeff
Ohm_per_Kel
ResistanceTemperatureCoeff
mOhm_per_Kel
ResistanceTemperatureCoeff
kOhm_per_Kel
ResistanceTemperatureCoeff
Ohm_per_Cel
Resistivity
Ohmm
Ohm Meter
Resistivity
Ohmcm
Ohm Centi-Meter
Resistivity
Ohmum
Ohm micro-meter
Resistivity
Ohmmm2_per_mm
SpecificHeatCapacity
J_per_Kelkg
SpecificHeatCapacity
mJ_per_Kelkg
SpecificHeatCapacity
kJ_per_Kelkg
Speed
mm_per_sec
Speed
cm_per_sec
Speed
m_per_sec
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Unit Type
String Representation
Description
Speed
m_per_hr
Speed
inches_per_sec
Speed
feet_per_sec
Speed
feet_per_min
Speed
miles_per_min
Speed
miles_per_sec
Speed
km_per_min
Speed
km_per_sec
Speed
m_per_sec
Speed
km_per_hour
Speed
miles_per_hour
Stiffness
N_per_m
Stiffness
lbf_per_in
Stiffness
N_per_cm
Stiffness
kN_per_m
SurfaceChargeDensity
surf_charge_C_per_m2
SurfaceChargeDensity
surf_charge_nC_per_m2
SurfaceChargeDensity
kC_per_m2
SurfaceChargeDensity
As_per_m2
SurfaceChargeDensity
SurfaceMobility
m2_per_Vs
SurfaceMobility
cm2_per_Vs
SurfaceMobilityPerVoltage
m2_per_V2s
SurfaceMobilityPerVoltage
cm2_per_V2s
Susceptance
Sie
Siemens
Susceptance
megSie
Mega-Siemens
Susceptance
uSie
Micro-Siemens
Susceptance
mSie
Milli-Siemens
Susceptance
kSie
Kilo-Siemens
Susceptance
mho
Mhos
Simplorer Design Conventions23-41
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Unit Type
String Representation
Description
Temperature
kel
Kelvin
Temperature
mkel
Milli-Kelvin
Temperature
cel
Degree Celsius
Temperature
dkel
Deci-Kelvin
Temperature
fah
Degree Farenheit
Temperature
ckel
Centi-Kelvin
TemperatureAreaPerPower
kelm2_per_w
TemperatureAreaPerPower
celm2_per_w
TemperatureCoefficient
per_Kel
Per Kelvin
TemperatureCoefficient
percent_per_Cel
TemperatureCoefficient
per_Cel
TemperatureCoefficient
percent_per_Fah
TemperatureCoefficient
per_Fah
TemperatureCoefficient
percent_per_Kel
TemperatureCoefficient2
per_Kel2
Per Kelvin-squared
TemperatureCoefficient2
per_Fah2
TemperatureCoefficient2
per_Cel2
TemperatureDifference
keldiff
Kelvin
TemperatureDifference
mkeldiff
Milli-Kelvin
TemperatureDifference
celdiff
Celsius
ThermalCapacitance
J_per_Kel
ThermalCapacitance
Ws_per_Kel
ThermalConductance
W_per_Kel
ThermalConductance
kW_per_Cel
ThermalConductance
mW_per_Kel
ThermalConductance
kW_per_Kel
ThermalConductance
mW_per_Cel
ThermalConductance
W_per_Cel
ThermalConductivity
W_per_Kelm
ThermalConductivity
mW_per_Kelm
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Unit Type
String Representation
Description
ThermalConvection
w_per_m2kel
ThermalConvection
w_per_cm2kel
ThermalRadiationCoeff
W_per_Kel4
ThermalRadiationCoeff
kW_per_Kel4
ThermalRadiationCoeff
mW_per_Kel4
ThermalRadiationConstant
W_per_m2Kel4
ThermalRadiationConstant
W_per_cm2Kel4
ThermalResistance
Kel_per_W
ThermalResistance
Kels_per_J
Time
Second
Time
hour
Hour
Time
ps
Pico-Second
Time
us
Micro-Second
Time
ns
Nano-Second
Time
ms
Milli-Second
Time
min
Minute
Time
fs
Femto-second
Time
day
Day
TimePerAngle
s_per_rad
TimePerAngle
s_per_deg
TimePerAngle
ms_per_rad
TimePerAngle
s_per_rev
TimeSqPerAngleSq
s2_per_rad2
TimeSqPerAngleSq
s2_per_deg2
Torque
fNewtonMeter
Femto-Newton-meter
Torque
pNewtonMeter
Pico-Newton-meter
Torque
nNewtonMeter
Nano-Newton-meter
Torque
megNewtonMeter
Mega-Newton-meter
Torque
gNewtonMeter
Giga-Newton-meter
Torque
FootPounds
Foot-pounds
Simplorer Design Conventions23-43
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Unit Type
String Representation
Description
Torque
NewtonMeter
Newton-meter
Torque
kNewtonMeter
Kilo-Newton-meter
Torque
mNewtonMeter
Milli-Newton-meter
Torque
uNewtonMeter
Micro-Newton-meter
Torque
cNewtonMeter
Centi-Newton-meter
TransconductanceParameter
A_per_V
TransconductanceParameter
mA_per_V
TransconductanceParameter
kA_per_V
TransistorConstant
A_per_V2
TransistorConstant
mA_per_V2
TranslationalAcceleration
trans_accel_m_per_s2
TranslationalAcceleration
trans_accel_cm_per_s2
TranslationalAcceleration
dm_per_s2
TranslationalAcceleration
trans_accel_in_per_s2
VelocitySaturation
vel_sat_m_per_V
VelocitySaturation
vel_sat_mm_per_V
VelocitySaturation
vel_sat_um_per_V
VelocitySaturation
vel_sat_cm_per_V
VelocitySaturationPerVoltage
m_per_V2
VelocitySaturationPerVoltage
cm_per_V2
VelocitySaturationPerVoltage
um_per_V2
VelocitySaturationPerVoltage
mm_per_V2
Viscocity
Pas
Pascal-second
Viscocity
hPas
Hecto-Pascal-second
Viscocity
kPas
Kilo-Pascal-second
Viscocity
mPas
Milli-Pascal-second
Viscocity
poise
Poise
Viscocity
Ns_per_m2
Viscocity
cpoise
Centi-poise
Viscocity
cPas
Centi-Pascal-second
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Unit Type
String Representation
Description
Viscocity
dPas
Deci-Pascal-second
Viscocity
uPas
Micro-Pascal-second
ViscousFriction
vis_fric_Ns_per_m
ViscousFriction
vis_fric_cNs_per_m
ViscousFriction
vis_fric_mNs_per_m
ViscousFriction
vis_fric_kNs_per_m
Voltage
dBV
Decibel Volt
Voltage
fV
Femto-Volt
Voltage
kV
Kilo-Volt
Voltage
megV
Mega-Volt
Voltage
mV
Milli-Volt
Voltage
nV
Nano-Volt
Voltage
pV
Pico-Volt
Voltage
Volt
Voltage
Volt
Voltage
fv
Femto-Volt
Voltage
pv
Pico-Volt
Voltage
uv
Micro-Volt
Voltage
megv
Mega-Volt
Voltage
nv
Nano-Volt
Voltage
mv
Milli-Volt
Voltage
kv
Kilo-Volt
Voltage
gv
Giga-Volt
VoltageAccelerationCoefficient V_per_m2_per_s2
VoltageAccelerationCoefficient mV_per_m2_per_s2
VoltageChangeRate
V_per_s
VoltageChangeRate
V_per_min
VoltageChangeRate
V_per_hour
VoltageChangeRate
mV_per_s
VoltageChangeRate
kV_per_s
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Unit Type
String Representation
Description
VoltageCoefficient
per_V
Per Volt
VoltageCoefficient
per_mV
Per Milli-Volt
VoltageCoefficient
per_kV
Per Kilo-Volt
VoltageCoefficient2
per_V2
Per Voltage-square
VoltageCubed
V3
Voltage-cubed
VoltageCubed
mV3
Milli-volt-cubed
VoltageGain
V_per_V
VoltageGain
V_per_mV
VoltageGain
mV_per_V
VoltageJerkCoefficient
V_per_m_per_s3
VoltageJerkCoefficient
mV_per_m_per_s3
VoltageLength
Vm
Volt meter
VoltageLength
kVm
Kilo-Volt meter
VoltageLength
mVm
Milli-Volt meter
VoltageLength
uVm
Micro-Volt meter
VoltagePerCell
V_per_cell
VoltagePerCell
megV_per_cell
VoltagePerCell
kV_per_cell
VoltagePerCell
uV_per_cell
VoltagePerCell
mV_per_cell
VoltagePerCell
nV_per_cell
VoltagePerCell
pV_per_cell
VoltagePerCell
gV_per_cell
VoltagePerLengthRoot
V_per_mhalf
VoltagePressureRootCoeff
V_per_Pahalf
VoltagePressureRootCoeff
mV_per_Pahalf
VoltageRoot
Vhalf
VoltageRootCoefficient
per_Vhalf
Per Volt-root
VoltageTemperature10Coeff
V_per_Kel10
VoltageTemperature10Coeff
V_per_Cel10
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Unit Type
String Representation
Description
VoltageTemperature10Coeff
uV_per_Kel10
VoltageTemperature10Coeff
mV_per_Kel10
VoltageTemperature10Coeff
uV_per_Cel10
VoltageTemperature10Coeff
mV_per_Cel10
VoltageTemperature11Coeff
V_per_Kel11
VoltageTemperature11Coeff
V_per_Cel11
VoltageTemperature11Coeff
uV_per_Kel11
VoltageTemperature11Coeff
mV_per_Kel11
VoltageTemperature11Coeff
uV_per_Cel11
VoltageTemperature11Coeff
mV_per_Cel11
VoltageTemperature12Coeff
V_per_Kel12
VoltageTemperature12Coeff
V_per_Cel12
VoltageTemperature12Coeff
uV_per_Kel12
VoltageTemperature12Coeff
mV_per_Kel12
VoltageTemperature12Coeff
uV_per_Cel12
VoltageTemperature12Coeff
mV_per_Cel12
VoltageTemperature13Coeff
V_per_Kel13
VoltageTemperature13Coeff
V_per_Cel13
VoltageTemperature13Coeff
uV_per_Kel13
VoltageTemperature13Coeff
mV_per_Kel13
VoltageTemperature13Coeff
uV_per_Cel13
VoltageTemperature13Coeff
mV_per_Cel13
VoltageTemperature14Coeff
V_per_Kel14
VoltageTemperature14Coeff
V_per_Cel14
VoltageTemperature14Coeff
uV_per_Kel14
VoltageTemperature14Coeff
mV_per_Kel14
VoltageTemperature14Coeff
uV_per_Cel14
VoltageTemperature14Coeff
mV_per_Cel14
VoltageTemperature15Coeff
V_per_Kel15
VoltageTemperature15Coeff
V_per_Cel15
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Unit Type
String Representation
Description
VoltageTemperature15Coeff
uV_per_Kel15
VoltageTemperature15Coeff
mV_per_Kel15
VoltageTemperature15Coeff
uV_per_Cel15
VoltageTemperature15Coeff
mV_per_Cel15
VoltageTemperature2Coeff
V_per_Kel2
VoltageTemperature2Coeff
V_per_Cel2
VoltageTemperature2Coeff
uV_per_Kel2
VoltageTemperature2Coeff
mV_per_Kel2
VoltageTemperature2Coeff
uV_per_Cel2
VoltageTemperature2Coeff
mV_per_Cel2
VoltageTemperature3Coeff
V_per_Kel3
VoltageTemperature3Coeff
V_per_Cel3
VoltageTemperature3Coeff
uV_per_Kel3
VoltageTemperature3Coeff
mV_per_Kel3
VoltageTemperature3Coeff
uV_per_Cel3
VoltageTemperature3Coeff
mV_per_Cel3
VoltageTemperature4Coeff
V_per_Kel4
VoltageTemperature4Coeff
V_per_Cel4
VoltageTemperature4Coeff
uV_per_Kel4
VoltageTemperature4Coeff
mV_per_Kel4
VoltageTemperature4Coeff
uV_per_Cel4
VoltageTemperature4Coeff
mV_per_Cel4
VoltageTemperature5Coeff
V_per_Kel5
VoltageTemperature5Coeff
V_per_Cel5
VoltageTemperature5Coeff
uV_per_Kel5
VoltageTemperature5Coeff
mV_per_Kel5
VoltageTemperature5Coeff
uV_per_Cel5
VoltageTemperature5Coeff
mV_per_Cel5
VoltageTemperature6Coeff
V_per_Kel6
VoltageTemperature6Coeff
V_per_Cel6
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Unit Type
String Representation
Description
VoltageTemperature6Coeff
uV_per_Kel6
VoltageTemperature6Coeff
mV_per_Kel6
VoltageTemperature6Coeff
uV_per_Cel6
VoltageTemperature6Coeff
mV_per_Cel6
VoltageTemperature7Coeff
V_per_Kel7
VoltageTemperature7Coeff
V_per_Cel7
VoltageTemperature7Coeff
uV_per_Kel7
VoltageTemperature7Coeff
mV_per_Kel7
VoltageTemperature7Coeff
uV_per_Cel7
VoltageTemperature7Coeff
mV_per_Cel7
VoltageTemperature8Coeff
V_per_Kel8
VoltageTemperature8Coeff
V_per_Cel8
VoltageTemperature8Coeff
uV_per_Kel8
VoltageTemperature8Coeff
mV_per_Kel8
VoltageTemperature8Coeff
uV_per_Cel8
VoltageTemperature8Coeff
mV_per_Cel8
VoltageTemperature9Coeff
V_per_Kel9
VoltageTemperature9Coeff
V_per_Cel9
VoltageTemperature9Coeff
uV_per_Kel9
VoltageTemperature9Coeff
mV_per_Kel9
VoltageTemperature9Coeff
uV_per_Cel9
VoltageTemperature9Coeff
mV_per_Cel9
VoltageTemperatureCoeff
V_per_Kel
VoltageTemperatureCoeff
V_per_Cel
VoltageTemperatureCoeff
uV_per_Kel
VoltageTemperatureCoeff
mV_per_Kel
VoltageTemperatureCoeff
uV_per_Cel
VoltageTemperatureCoeff
mV_per_Cel
Volume
Volume
ml
Simplorer Design Conventions23-49
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Unit Type
String Representation
Description
Volume
m3
Cubic-Meter
Volume
galUS
Gallon (am.)
Volume
cup
Cup
Volume
galUK
Gallon (br.)
Volume
Liter
Volume
mm3
Cubic-Centi-Meter
Volume
ml
Cubic-Centi-Meter
VolumeCoefficient
per_m3
Per cubic-meter
VolumeCoefficient
per_cm3
Per cubic-centi-meter
VolumeFlowConductance
VolumeFlowConductance
VolumeFlowPerPressureRoot
m3_per_sPahalf
VolumeFlowRate
m3_per_s
VolumeFlowRate
cm3_per_s
VolumeFlowRate
m3_per_hour
VolumeFlowRate
m3_per_min
VolumeFlowRateChangeRate
m3_per_s2
VolumeFlowRateChangeRate
cm3_per_s2
Weight
oz
Ounce
Weight
lb
Pound
Weight
kg
Kilogram
Weight
gram
Gram
Weight
ug
Micro-Gram
Weight
mg
Milli-Gram
Weight
ton
Tons
WireCrossSection
m2wire
Meter squared
WireCrossSection
um2wire
Micro-meter squared
WireCrossSection
ft2wire
Square foot
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Unit Type
String Representation
Description
WireCrossSection
in2wire
Square inch
WireCrossSection
mm2wire
Milli-meter squared
WireCrossSection
cm2wire
Centi-meter squared
WireCrossSection
AWG
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
24
Technical Notes
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Change the acceptable tolerance values The two absolute errors and the one relative tolerance value are used internally by the solver to check accuracy (convergence). Relaxing the tolerances may aid the simulation convergence.
It is usually safe to add a relative tolerance. Set the relative tolerance to 0.1%.
If acceptable, raise the values of the absolute current and voltage errors.
Increase the maximum allowed iterations By default this value is set to 40. Try setting this
value to 100 or more. The solver converges very rapidly (in quadratic order) if the initial solution is close to the actual solution. If not, it can exceed the max iteration limit very quickly.
Reduce the minimum time step If increasing max iterations does not work, the system may
be changing faster that the minimum time step allows the simulator to solve it. Reduce the
minimum time step to allow sufficient sampling for the highest frequency signal in the simulation.
Note
In some cases, increasing the allowed time step value can aid convergence by allowing
the simulator to step over discontinuous, difficult to solve points in the simulation.
Specify initial conditions (when available) When possible, such as with Capacitors, Inductors, and especially in VHDL-AMS models (using the break statement), specify the initial values of quantities. Since the solver relies largely on a good initial guess, it can help
tremendously if a good starting point is supplied to it.
Adjust the slider position When dealing with certain systems, (possibly systems which lead
to a near singular matrix) partial pivoting may not work. Try forcing full pivoting. This guarantees same or greater accuracy and a better chance of convergence
Use the Simulation Parameters model A very useful model that can be used to debug simulator issues (such as non-convergence). By monitoring the various solver parameters like the
time step used by the solver, the number of iterations required, number of rollbacks, etc, it is
possible to quite easily diagnose the problem and remedy it.
Change the LDF The LDF (i.e. the integration algorithm truncation error) value can be
reduced to force the solver to make smaller increases in the step size and may help convergence at the current time step. Increasing LDF may also work by allowing the solver to jump
over problematic solution points, but is not a recommended practice.
Improve the Model Some simple model improvements can save the simulator a lot of work
and can aid convergence. For example, smooth out any discontinuities, add damping for highly
non-linear models, check and fix any inconsistencies and errors in circuit topology and connectivity, make models more realistic, etc.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Intention
Imagine a state machine that has to perform certain operations at exactly specified time points, e.g.,
at t1 = 1 ms, t2 = 2 ms, etc. To trigger these events, the simulator will approach t1 with some step
size h. It will ignore t1 until t > t1, then discard the last step and reduce h. The simulator does some
kind of interpolation to find the new h. From then on, h will be successively increased until again t
> t1 and the same procedure starts anew. This whole process continues until t1 is being stepped
over by hmin.
This has many drawbacks. First, the simulation accuracy suffers considerably because t1 is only hit
by an error depending on hmin. Second, simulation speed suffers extremely (especially for clocked
systems and alike) because Simplorer takes a lot of extra steps (e.g. many hundreds depending on h,
hmin, and hmax) just to trigger this event roughly.
If the model itself knows the point where the condition goes true, it could set the step size to synchronize exactly to this point.
Handling
The backplane includes now a trigger list. Its a sorted list with all scheduled events. After a time
step, when the simulator calculates the step size for the next time step, it includes this list for the
step size calculation.
New functions to schedule and unschedule events are available in the system now. The functions
can be called from the State graph and the C-Interface.
ScheduleTrigger or SCHED- will create a new trigger.
DeScheduleTrigger or DESCHED - will remove a trigger
Calling repeatedly the function ScheduleTrigger or SCHED with the same name will overwrite the
existing time trigger with that name.
Definition of more than one time triggers for a time point is possible. Unscheduling has no effect as
long as at least one trigger for that time point is active. If all triggers are removed, the simulator will
not synchronize at that time point.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The $$ will set dTEv1 to the right side value and schedule the event once the state becomes active.
Thus, it might also be omitted because the SCHED type seems to form a unique definition. However, the DEL type also goes along with the ##-operator although one seems to suffice. Again: This
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
new action/transition combination corresponds to the delay operator (##), where a certain state
graph transition will become TRUE after a certain time has elapsed, e.g.:
DEL lTEl1 ## t + 1.1u
/* lTel1 becomes TRUE after t + 1.1 us has elapsed */
COND: lTEl1 AND R1.I < I_Max
/* switch if time elapsed and current less than its maximum, ...
*/
Error Messages
Messages are displayed when user calls Schedule or Deschedule in SIMPREP or SIMSTEP.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Error in deschedule the time trigger <%name>. Descheduling allowed only in SimInit() or SimValidate().
Error in schedule the time trigger <%name>. Scheduling allowed only in SimInit() or SimValidate().
Library Extensions
New Action type is added to all State graph models in the Basic library. The wizard will display the
new action type automatically in the combo box.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
2.
The following sections outline the procedure to setup, start, and control a co-simulation.
Installation/Pre-Setup (ModelSim)
1.
2.
For automatic mode, Simplorer must be able to invoke the ModelSim executables (vlib, vcom,
vsim, etc). Add the ModelSim executable path to the system path to ensure this.
Setup (ModelSim)
Prior to simulation, you must first create the co-simulation models and add them to the Simplorer
library.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
BEGIN
END behav;
The entity information is all that is needed to generate the complete interface for the foreign model.
The foreign attribute is defined in package STANDARD by the VHDL-AMS Language Reference
Manual and marks the architecture for implementation-dependent elaboration.
You can use a specific library/model/architecture from ModelSim, by extending the foreign string.
The syntax is:
ModelSim.<library name>.<entity name>.<architecture name>
By default the co-simulation will use the work library, the same entity name as that of the interface
model and the default architecture. You can specify either of the following combinations:
<library name>
<library name>.<entity name> or
<library name>.<entity name>.<architecture name>.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Netlisting (ModelSim)
Based on the schematic description, Simplorer automatically creates two netlists. The first is the
.sml file for the Simplorer simulator. The second is the netlist description, in VHDL, for ModelSim.
The ModelSim netlist is created in the same location as the Simplorer sml netlist and is named
<sml_name>_EDSCoSim_Netlist.vhd.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
ENTITY inv_modelsim IS
GENERIC (TP_LH : REAL := 0.0;
TP_HL : REAL := 0.0);
PORT (x : IN BIT := '0';
y : OUT BIT := '1');
END inv_modelsim;
ARCHITECTURE behav OF inv_modelsim IS
CONSTANT lh : TIME := TP_LH * 1 sec;
CONSTANT hl : TIME := TP_HL * 1 sec;
SIGNAL INV_OUT : BIT := '0';
BEGIN
INV_OUT <= NOT X;
Y <= INV_OUT AFTER hl WHEN INV_OUT = '0' ELSE
INV_OUT AFTER lh;
END behav;
When the user starts a simulation (for a design with models marked for ModelSim simulation) in
Simplorer, Simplorer generates the top-level ModelSim netlist, and then compiles, elaborates, and
starts ModelSim with the top level design which in turn loads the co-simulation interface.
The commands executed by Simplorer to setup ModelSim are:
vlib work
vcom -bindAtCompile <sml_name>_EDSCoSim_Netlist.vhd
vsim -t 1fs work.top
The External Digital Simulator sub-group in the transient analysis options allows viewing and editing of the commands executed by Simplorer. To do this, select ModelSim from the drop down box
and click on settings. The External Digital Simulator sub-group also provides a check box which
can be used to wait after the EDS setup. This allows the user to perform any additional setup steps
in ModelSim such as selecting outputs.
When ModelSim successfully loads the co-simulation dll, the message Successfully loaded the
Simplorer-ModelSim Co-simulation Interface is displayed. Once the ModelSim prompt is displayed, co-simulation setup is complete.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Note that once a setup is completed for a schematic, it remains valid until a new schematic is
loaded. This also means that only one valid co-simulation setup is allowed at one time. If an existing ModelSim setup is found by Simplorer, it will attempt to link to it and will fail if the existing
model loaded in ModelSim has a different interface that the one it is trying to link to.
Simulation (ModelSim)
Starting Simulation (ModelSim)
After a successful setup, Simplorer will start the simulation. If the Wait after loading external simulator checkbox is selected, Simplorer will bring up a dialog after successful simulation and will
wait for the user to hit OK.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
INOUTS are not currently supported across the co-simulation interface. Signals crossing the
co-simulation interface can only be of type IN or OUT.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Beginning with version R2011a, the Real Time Workshop product has been replaced by
Simulink Coder and Matlab Coder. To use the functionality described in this section,
licenses of both Simulink Coder and Matlab Coder are required.
Features
There are three target entries in the RTW system target list for exporting to a Simplorer target.
The Simulink model can be exported to a Generic Simplorer Target. That target will work with
fixed step size. The maximum integration step size in Simplorer is fixed by the sample time. It
is possible to use more than one instance of the model, exported to that target in one Simplorer
sheet. For the Generic Simplorer Target no Simulink license is necessary. The model will run
without Simulink, because the Simulink integration solver is exported also and is built in the
model itself.
With the second option it is possible to export a model with variable step size (supported only
with MATLAB version R2008a and earlier). For this option the Simplorer Rapid Simulation
Target is used. For this target RTW does not export an embedded Simulink solver. RTW
exports a link to the Simulink engine instead. Therefore the model will check out a Simulink
license during runtime. The restriction for this target is that only one instance of each exported
Simulink model can be used on a Simplorer sheet.
The third option exports to a Visual C++ makefile. That makefile can be open in Visual
Studio .Net. Visual Studio .Net can compile the model and create the Simplorer C-interface dll.
This option is for advanced users who want to look into the exported model code, debug the
model, or modify the model by hand after the export.
Simulations run completely under the Simplorer environment. The models have no step delay,
and performance is much better than with the Simulink co-simulation interface.
Because Simulink models don't have separate AC or DC behavior, the exported model will
work only for transient simulation in Simplorer.
All ports have to be scalar of type=double. Vector or complex ports are not supported.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Visual Studio 2008 is only supported by Matlab/Simulink version R2008a and later.
Beginning with version R2011a, the Real Time Workshop product has been replaced by
Simulink Coder and Matlab Coder. To use the functionality described in subsequent
sections, licenses of both Simulink Coder and Matlab Coder are required.
simplorer_msvc_rt.tmf
simplorer_rsim.tlc
simplorer_rsim.tmf
simplorer_rsim_wrapper.tlc
simplorer_rt.tlc
simplorer_rt_wrapper.tlc
simplorer_vc_rt.tmf
Setting VC++ specific environment variables for using Microsoft Visual Studio .NET 2003
command line tools (run vcvars32.bat)
Set environment variable SIMPLORER_HOME to point to the Simplorer installation base
directory (typically C:\Program Files\AnsysEM\Simplorer11.0\Windows)
If R2008b, R009a, R2009b, R2010a, or R2010b is the registered version, then no variable
time step C-Models will work.
If R2008a or R2007b is the registered version, then variable time step DLLs built with
either R2008a or R2007b will work.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
If R2007a or R2006b is the registered version, then variable time step DLLs built with
either R2007a or R2006b will work.
It is preferable for the registered version to be same as the version with which the DLL was
build. Users can uninstall and reinstall versions of MathWorks to set the registered version.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Template Files
simplorer_rsim.tlc
simplorer_rt.tlc
Depending on the selected target, these files are the entry point for the c-code generation with
RTW. The template controls the target language compiler and adds a new property page with Simplorer build options to the RTW dialog.
simplorer_rsim.tmf
simplorer_msvc_rt.tmf
simplorer_vc_rt.tmf
Templates for the target makefile. The templates collect the created model C source files, the
integration solver files and the created Simplorer interface C source files to a makefile. It sets
the compiler flags, include and lib directories for the compiler.
simplorer_rsim_wrapper.tlc
simplorer_rt_wrapper.tlc
Template to create the C source code for the Simplorer interface. Depending on the options set in
the RTW dialog and the Simulink model interface, adds inputs and outputs and wraps the Simulink
model into a Simplorer C-model. Simulink input or outputs labels are base for the Simplorer C
interface names.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Workflow
All models supported by the Real-Time Workshop can be exported to a Simplorer C model dll. For
details about general usage of RTW see the RTW documentation.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Simplorer Targets
There are 3 targets available in the RTW system target browser. The targets are based on
grt_malloc.tlc and rsim.tlc, therefore the dialogs are similar to the example shown below. See the
RTW documentation for more information about the parameter.
After a Simplorer Target is selected RTW will open a parameter dialog. Simplorer C-interface uses
the C++ language. Therefore the language must be set to C++. An additional Simplorer page in the
RTW section of the parameter dialog is added. The Simplorer C-model dll will be created in the
current Simulink working directory.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The solver must be set to a fixed type. If stop (end) time is set to inf the model will use the Simplorer end time. This option guarantees the most flexibility and should be used instead of a fixed
end time. If a fixed end time is set, the model output will be constant after that time is passed. The
fixed step influences the maximum integration time in Simplorer. Simplorer synchronizes to these
time points. A small sample time here could slow down the simulation dramatically. Also this time
should not be too large because between 2 samples the output of the Simulink model will be constant. A value change on an input port will not be recognized by the Simulink model between 2
samples. The step size should be a compromise between accuracy and speed.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
It is possible to interpolate the outputs of the Simulink model. Instead of constant values between
two samples the model uses interpolated values.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
For smother outputs this option could be used. In some cases the interpolation will increase the
number of iterations and reduce the accuracy. This could be the case, for example, if the model
switches the output value or if the output is discrete.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
You can point the Simplorer C-Model dll to a different license file by setting the
environment variable LM_LICENSE_FILE. The location pointed to by that variable
will override the default location compiled into the Simplorer C-Model dll.
If the Simplorer C-Model dll is unable to check out a Simulink license (this would happen, for
example, if all Simulink licenses are currently checked out), or has other errors when checking out
a Simulink license, it displays a detailed error message (similar to the one above) returned by the
FLEXlm API and exits.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Putting the model into a Simulink or Simplorer model increases the speed, stability and convergence of the sheet.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Description
Diode_ST4
Diode_DYN4
NPN_ST4
NPN_TH4
NPN_DYN4
PNP_ST4
PNP_TH4
PNP_DYN4
NJFET_ST4
NJFET3_DYN4
NJFET4_DYN4
PJFET_ST4
PJFET3_DYN4
PJFET4_DYN4
NMOS_DST4
NMOS3_DDYN4
NMOS4_DDYN4
PMOS_DST4
PMOS3_DDYN4
PMOS4_DDYN4
NMOS_EST4
NMOS3_EDYN4
NMOS4_EDYN4
PMOS_EST4
PMOS3_EDYN4
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Description
PMOS4_EDYN4
FUJI
SEMIKRON
DIODE5
Diode
NMOS5
N-Channel MOSFET
NMOS_FWD5
NJFET5
N-Channel JFET
NJFET_FWD5
PMOS5
P-Channel MOSFET
PMOS_FWD5
PJFET5
P-Channel JFET
PJFET_FWD5
NIGBT5
N-Channel IGBT
NIGBT_FWD5
PIGBT5
P-Channel IGBT
PIGBT_FWD5
NPN5
NPN BJT
NPN_FWD5
PNP5
PNP BJT
PNP_FWD5
NIGBT6
N-Channel IGBT
NIGBT_FWD6
PIGBT6
P-Channel IGBT
PIGBT_FWD6
QuickGraph
2D View
ConnectGraph
2D View (con)
QuickDigView
Numerical View
CDV
SimTableView
Table View
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Description
ConnectTableView
PROBE26
FFT6
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Even though it would be possible in Simplorer to define a library alias name 'work' (this
would load models specified by work.abc from the aliased library), this would not
have the same behavior as in other VHDL tools. The library concept that is used in
ANSYS Electromagnetics tools does not allow automatic writing to any library other
than 'project'. Writing to any other library can be done only by manual export.
Related Topics
The VHDL-AMS work Library in Simplorer
Using the VHDL-AMS Model Editor
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
25
Desktop Scripting with IronPython
This document describes IronPython briefly and then goes on to describe desktop provided IronPython scripting console and scripting with IronPython. This 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
Appendix: IronPython Samples
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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 beyond the scope of this document. There are
several excellent resources online that do a very good job in that regard. This document only
attempts to provide a limited introduction to IronPython as used to script ANSYS Elecromagnetics
products.
Also, this document is not a tutorial on the scripting of ANSYS Elecromagnetics products. It complements the existing scripting guide (available from a product's Help menu) and provides a
pythonic interpretation of that information. The reader might have to refer to either the scripting
guide or recorded samples of VBScript to follow some of the sections.
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:
Python has a large eco-system with plenty of supporting libraries, Visual IDEs and debuggers.
It is actively developed and enhanced.
IronPython, in addition, has access to the entire .NET eco system. This allows us, for instance,
to create a modern GUI using the System.Windows.Forms assembly from IronPython code
and call any other .NET assembly for that matter.
The use of IronPythons 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.
The Python syntax of dictionaries is somewhat easier to read and write when supplying arguments to the scripting methods.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
IronPython Mini-cookbook
While a tutorial on Python syntax is beyond the scope of this document, it will present simple counterparts to the VBScript constructs that users tend to use regularly.
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
Comments start with a single quote
IronPython
# Comments start with a sharp or hash
Assigning/Creating Variables
VBScript
Declare with a Dim
IronPython
# No Set syntax. Simply create and assign
Dim oDesktop
oDesktop = oApp.GetAppDesktop()
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Create Lists/Arrays
VBScript
Declare as array of String with 11
IronPython
# Declare an empty array
myEmptyArray = []
myArray(1) = bye
myInitedArray = [ 1, 2, 3, 4, 5]
known
ReDim array2(0 to 2) as String
# append to an array
array2(0) = this
mixed.append( 3.5 )
array2(1) = also
Create Dictionaries/Maps
VBScript
No direct equivalent is available as
IronPython
# an IronPython dictionary is a collection of
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Boolean Values
VBScript
Boolean literals are in lower case
IronPython
# The first letter is capitalized
true
True
false
False
Converting Numbers to Strings and Vice Versa
VBScript
Use CInt, CDbl, CBool, CLng
IronPython
# use the integer() or float() or double()
# casting to.
strInt = 3
Dim n = CInt(nStr)
intVal = int(strVal)
floatVal = float(strVal)
Dim v, vStr
v = 100
vStr = CStr(v)
strVal = str(42)
strVal = str(42.345)
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
String formatting/concatenation
VBScript
string concatenation uses the &
IronPython
# if you have two strings, you can always
operator
str1 = hello
str2 = world
num = 10
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
IronPython
vals = [1, 3, 3.456]
myArray(0) = alpha
myArray(1) = bravo
def process(val):
myArray(2) = charlie
return 2*val
# is of the form
Print i
Next
VBScript
Loop over a range, specify start, end
IronPython
# prints out values from 0 through 9
and step
For i = 0 To 10 Step 1
print i
Print i
Next
A note about indentation
Python is one of the thankfully rare languages where whitespace (spaces, tabs etc) are syntactically
significant. Whatever your feelings on the subject, you must understand the basics of indentation
before scripting in python.
Any statement that introduces a block of code should be written such that every line of the block
has the same indent (leading spaces or tabs) and the indent should be at least one more than the
indent of the introducing statement.
Sample Script 1: Describing python indentation
# define a function that starts at 0 indentation.
def multInt(a,b):
# every line following the def multInt which is expected to
# be a part of the function, must have the indent used by the
Desktop Scripting with IronPython25-7
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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)
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
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 ipy.exe console displays the following:
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
A primitive value
An array of primitive values
Another named array
A key, of the form keyName:= followed by
A primitive value
A function (described next)
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:
25-10 Desktop Scripting with IronPython
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
A primitive value
A key (of the form keyName:=) followed by
A primitive value
Another function (nested function)
Related Topics
Translating Script commands from VBScript to IronPython
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
If you see a VBScript snippet that looks like a VBScript Sub-Routine, remember to add parentheses.
If you see a VBScript function that has no arguments and no parenthesis, remember to add
them around an empty argument list.
The parentheses change is the only one to keep in mind when converting VBScript function calls
syntax to IronPython.
Return Values
Primitive Method Arguments
Named Array Argument
Named Array Values with All Key Value Pairs
Named Arrays with Nested Named Arrays
Function Blocks
Return Values
VBscript return values are sometimes assigned via the Set declaration. IronPython return values are
simple assignment (see the cookbook chapter)
Related Topics
Converting VBScript Function calls to IronPython Syntax
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
, "Cone1",
"Flags:="
"Color:="
, "",
,
"Transparency:=" , 0,
"PartCoordinateSystem:=" , "Global",
"UDMId:=" , "",
"MaterialValue:=" , "\"vacuum\"",
"SolveInside:="
, True
])
Note that the formatting (which helps readability immensely) is not really needed. All that had to
be done was
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Related Topics
Converting VBScript Function calls to IronPython Syntax
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
"Color":
"Transparency": 0,
"PartCoordinateSystem": "Global",
"UDMId": "",
"MaterialValue" : "\"vacuum\"",
"SolveInside": True
}
Related Topics
Converting VBScript Function calls to IronPython Syntax
Sample Script 7: Named array with nested named array in array syntax
[ NAME:name,
key1:=, 1,
key2:=, 2,
[NAME:name2, R:=, 255]
]
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
Sample Script 8: Named array with nested named array as mixed dictionary + array
{ NAME: name,
key1: 1,
key2: 2,
name2: [NAME:name2, R:=, 255]
}
Sample Script 9: Named array with nested named array in all dictionary syntax
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
{ NAME: name,
key1: 1,
key2: 2,
name2: {R : 255}
}
Sample Script 10: Nested named array with optional "NAME:" field
{ NAME: name,
key1: 1,
key2: 2,
name2: {
NAME : name2,
R
: 255
}
}
Related Topics
Converting VBScript Function calls to IronPython Syntax
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 dictionarys internal tree/key sorting scheme).
Note
When you see a function block, simply replace the Array( ) delimiters with the python
array delimiters [ ]
Related Topics
Converting VBScript Function calls to IronPython Syntax
25-16 Desktop Scripting with IronPython
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Tools > Run Script menu item, select IronPython from the file type drop down
Launch the product with a script argument, e.g., Simplorer runscript someScript.py
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
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
The use of these objects is done as per the individual product scripting guides with some syntax
adjustments made for the parameters to account for the IronPython differences.
Related Topics
IronPython Script Execution Environment
AddErrorMessage(str), AddWarningMessage(str), AddInfoMessage(str) and AddFatalMessage(str) this family of methods allows a script to add messages to the products message window. All methods take a python string.
RunScriptFile(filename) runs the contents of the supplied file as a script. The type of the
Desktop Scripting with IronPython25-19
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Related Topics
IronPython Script Execution Environment
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
_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)
# This makes it a modal dialog.
gui.ShowDialog()
# the following will make it a non-modal dialog
#Application.Run(gui)
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
IronPython Script Execution Environment
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
your existing script assets in this fashion and mixing with IronPython code for new functionality as
needed is a viable option.
Access to the application scripting objects is provided via the predefined oDesktop object (as listed
in Script Objects). Interacting with the script objects is very natural, method calls are made just like
in VBScript except that the argument syntax is somewhat simplified to follow natural Python syntax. All primitive types (string, integer, double) map to the natural primitive types in python. The
only differences from the VBScript syntax are seen when specifying array type arguments. The differences are described in earlier chapters.
Note
The typical VBScript calls to obtain the registered COM scripting interface via
CreateObject calls and then obtain the oDesktop object from it using the
GetAppDesktop() is not needed (or even supported on all platforms). Since all scripting
occurs in the context of a running workbench, the available Desktop object is always
provided and expected to be used directly.
Scripting using the IronPython scripting API is very much like scripting with VBScript except that:
The samples appendix 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 Script Execution Environment
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
"Cone1"), _
Array("NAME:ChangedProps", _
Array("NAME:Color", "R:=", 255, "G:=", 255, "B:=",
0))))
Sample Script 14: ChangeProperty command to change color of cone using Python
arrays
oEditor.ChangeProperty(
["NAME:AllTabs",
["NAME:Geometry3DAttributeTab",
["NAME:PropServers",
"Cone1"],
["NAME:ChangedProps",
["NAME:Color", "R:=", 0, "G:=", 0, "B:=", 64]
]
]
])
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.
Sample Script 15: ChangeProperty command to change the color of a cone using
Python arrays and dictionaries
oEditor.ChangeProperty(
["NAME:AllTabs",
["NAME:Geometry3DAttributeTab",
["NAME:PropServers",
"Cone1"],
["NAME:ChangedProps",
{
"NAME":"Color",
"R"
"G"
: 0,
: 64,
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
"B"
: 0
}]]
])
Create a Cone using IronPython
Most scripting tasks using IronPython are expected to be formatted as the example below. One
starts with the predefined oDesktop object and drills down to the design, editors, modules etc and
issues any required commands on the object while formatting the script command arguments in
natural python syntax.
Sample Script 16: IronPython script to create a cone
oProject = oDesktop.GetActiveProject()
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
}
Desktop Scripting with IronPython25-25
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
)
Create geometry and then create a grid from it using copy/paste/move
The following script demonstrates slightly more advanced use of scripting and the use of return values from script methods. It creates a 5x5 grid of cones and also demonstrates the adding of information messages to the applications message window.
Sample Script 17: Sample script to create a cone and then use copy/paste/move to
replicate it.
oProject = oDesktop.GetActiveProject()
oDesign = oProject.InsertDesign("HFSS","Hersheys
Kisses","DrivenModal","")
oEditor = oDesign.SetActiveEditor("3D Modeler")
"Transparency": 0,
"PartCoordinateSystem": "Global",
"UDMId": "",
25-26 Desktop Scripting with IronPython
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
"MaterialValue" : "\"vacuum\"",
"SolveInside": True
}
)
# Now replicate this a few times and create an array out of it
AddInfoMessage("Replicating it 24 times")
for x in range(5):
for y in range(5):
# leave the first one alone in it's created
# position
if x == 0 and y == 0:
continue
# all other grid positions, replicate from the
# first one
# copy first
oEditor.Copy(
{
"NAME": "Selections",
"Selections": firstConeName
}
)
# paste it and capture the pasted name
# the pasted names come in an array as we could
# be pasting a selection cmposed of multiple objects
pasteName = oEditor.Paste()[0]
# now move the pasted item to it's final position
oEditor.Move(
{
"NAME": "Selections",
"Selections": pasteName
Desktop Scripting with IronPython25-27
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
},
{
"NAME": "TransalateParameters",
"CoordinateSystemID": -1,
"TranslateVectorX": "%d * 3 * %s" % (x, coneBotRad),
"TranslateVectorY": "%d * 3 * %s" % (y, coneBotRad),
"TranslateVectorZ": "0mm"
}
)
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
26
Simplorer Terminology
This section defines the terminology used in the ANSYS Simplorer help topics. Terms are listed
in alphabetical order.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Glossary: A
A/D (Analog-to-Digital)
The process of converting an analog value into its digital equivalent.
AC simulation
Harmonic analysis of a model.
AC simulator
Simplorer simulator for AC analysis.
Action type
Defines how an action in a state is processed.
.afa file
Analytical Frequency Analysis file containing data of an analytical frequency analysis.
Animated Symbol
Symbol for a component or a macro that changes to reflect changes in values assigned to it. The
symbol can be modified by the user with an interaction button or by a system value during the simulation. Animated symbols can be generated using the Symbol Editor.
.aws file
Simulator file containing initial values of capacitors and inductors.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Glossary: B
Backplane
Common communication and control structure for all Simplorer simulators.
Basic version
Simplorer basic version without any optional modules.
Basics
Simplorer library containing the basic modeling elements for the Simplorer simulators.
Behavioral model
Smallest model unit that cannot be subdivided further.
Best representation
Function for scaling all output channels of a graph window to maximum size.
Bezier
Bezier curves are used in computer graphics to produce curves which appear reasonably smooth at
all scales. The curves are constructed as a sequence of cubic segments, rather than linear ones. Bezier curves use a construction in which the interpolating polynomials depend on certain control
points. The mathematics of these curves is classical, but it was a French automobile engineer Pierre
Bezier who introduced their use in computer graphics.
Block
Linear or nonlinear transfer function, basic element of block diagrams.
Block diagram
Combination of blocks to describe the dynamic behavior of systems.
Bookmark
Can be used in the Simplorer editor to mark a position and find it again.
.brs file
External Schematic file to parametrize a model sheet.
Simplorer Terminology26-3
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Glossary: C
Characteristic
Function or data set to describe a nonlinear characteristic of a Simplorer component, block or other
model.
Characteristic values
Analysis method that provides a list of frequently used characteristic values of a system quantity.
C-Interface
C/C++ programming interface for the integration of user defined nonlinear models or components
into the simulation model.
C-Model Editor
Simplorer application for the definition of models in the C/C++ language.
Color scheme
Predefined or user defined color settings for screen outputs or printing.
Compiler
Program for the translation of the SML description of a simulation model into a simulator specific
format.
Computation sequence
Sequence in which blocks in a simulation model are computed.
Connection rule
Rule determining which element can be connected to another under certain conditions.
Conservative node
Connection of two or more circuit component terminals.
Coordinate system
Reference system for the display of numerical values. It can be linear or logarithmic.
Crossing over
Exchange of genetic material between chromosomes in a genetic algorithm.
Cursor
Positioning element to determine the value of a quantity in a coordinate system.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Glossary: D
Data cache
Saves the data of the last simulation run.
Data channel
Simulation data for a specific quantity stored in a file or transferred to an active element.
Data filter
Function to select data by user defined criteria.
Data format
Defines how data are stored or exchanged between programs.
Data set
Simulation data of a simulation run at a given time step.
DC simulation
DC operating point analysis of a model.
DC simulator
Simplorer simulator for DC analysis.
Differentiation
Analysis method in the Post Processor.
DISPLAY
Simplorer library containing display elements to display simulation data inside a schematic.
Display Element
Element for graphic or numeric online visualization of simulation data on sheet.
DLL
Dynamic link library containing program components or models. It is loaded automatically upon
request.
Dongle
Software protection device connected to the printer port of the computer.
DSDE
Dynamic Simulation Data Exchange interface used to integrate external simulators on a clientserver-level.
Simplorer Terminology26-5
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Glossary: E
Electric circuit
Combination of electric components, connected by ideal wires.
Element
Any item that can be placed on a Schematic sheet, including models, text elements, display elements, drawing elements, subsheets, and so on.
Entity
VHDL-AMS term to describe the interface of a behavioral or structural model.
Euler formula
Numerical integration algorithm used inside Simplorer.
Evaluation function
Function evaluating the quality of a solution compared to the defined optimum.
Expert mode
Extended mode for the definition of an experiment. It allows fine tuning of parameters and methods.
Export filter
Special program for the export of simulation data into other applications.
Extern View
Special sheet independent oscilloscope for the display of simulation data.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Glossary: F
FFT
Fast Fourier Transformation.
File output
Saves a system quantity online during the simulation in a file.
Fitness function
Function describing the fitness of an individual (parameter constellation) in a genetic algorithm.
Simplorer Terminology26-7
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Glossary: G
Genetic Algorithm
Optimization method of the experiment tool with automatic parameter variation and target function
determination.
Grid lines
Grid lines in a coordinate system.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Glossary: H
HMAX
Simulation parameter, maximum step size for the integration algorithm.
HMIN
Simulation parameter, minimum step size for the integration algorithm.
Simplorer Terminology26-9
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Glossary: I
ID
Numeric value for the distinction of sheet elements.
Information window
Display of warnings, errors, program status for the Simplorer modules.
Initial condition
Defines the initial value for energy storing electrical components.
Initial state
A state that is active at the beginning of the simulation.
INT
Simulation parameter, defines the integration algorithm used for the simulation of electric circuits.
Interactivity pad
Part of an animated symbol, used to change the behavior and/or shape of a symbol (model component) by the user.
Iteration
Part of the integration process for the solution of nonlinear problems.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Glossary: J
Jacobian Matrix
Coefficient matrix for the numerical integration algorithm.
Simplorer Terminology26-11
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Glossary: K
Keyword
Can be used to do a search in a model database.
.krn file
Simulator file containing simulation status information. It can be used as a starting point for the
next simulation.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Glossary: L
Language concept
Settings to define the use of language for program (menus and dialogs) and libraries.
Library
Database containing a set of Simplorer basic elements and/or macro models.
.log file
Experiment tool file containing the protocol of an experiment.
Simplorer Terminology26-13
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Glossary: M
Macro
Contains one or more elements of a model description that can be used as single elements.
.mda/.mdk file
Simplorer data file of simulation results and characteristics (former format).
.mdx file
Simplorer data file of simulation results and characteristics.
Model
All elements in the libraries and subsheets (except for display elements).
Model tree
Hierarchical list box containing the available elements for the graphical modeling.
Module
Simplorer sub simulator or program.
Monitor
Special window for the display of simulation status and progress.
.mtx file
Simplorer data file of the DES model.
26-14 Simplorer Terminology
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Multi simulation
Analysis method of the experiment tool, batch mode computation of a simulation model with different, user defined parameter sets.
Mutation
Part of the genetic algorithm that generates new individuals (parameter sets) by randomly modified
parameters.
Simplorer Terminology26-15
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Glossary: N
Network installation
Installation process of a Simplorer network version.
Newton-Raphson-Algorithm
Nonlinear iteration algorithm used in Simplorer.
Non-conservative node
Connection of two or more non-circuit component terminals.
Normal mode
Default display of the experiment tool without evaluation functions and storage options.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Glossary: O
Object
Element of the graphic model description linked to another WINDOWS application (OLE).
Object browser
Special window for the display and browsing of the elements of a graphical model description.
Offline
When the simulation is not running in Simplorer.
Online
During the simulation in Simplorer.
Online graphic
Online display of simulation results during the simulation run.
Option
Optional Simplorer application. It can be registered using the installation manager.
Output
Definition of a specific quantity of the simulation model to be used as an output.
Simplorer Terminology26-17
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Glossary: P
Password
Letter and digit combination to access Simplorer.
Petri net
Special form of a state machine.
Pipe
Data channel for the data transmission between Simplorer modules.
Postprocessing
Data evaluation and processing after a simulation run has finished.
Preprocess
Specialized modules for information processing and parameter determination to define Simplorer
model components.
Preprocessor directive
Special commands for the SML compiler to include files, extract macros from the model library,
etc.
Print colors
Colors used to print a system quantity from an active element or the ViewTool.
Project
Organizational structure containing all files and information belonging to a simulation task.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Glossary: Q
Qualifier
References a system quantity or parameter of a Simplorer model component.
Quality criterion
Characteristic value of a system quantity used to determine the quality of an optimization run.
Queue
Display the active and all waiting simulation runs.
Simplorer Terminology26-19
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Glossary: R
Recombination
Part of the genetic algorithm. It generates new individuals (parameter sets) by crossing of two parent individuals.
Roll back
Go back to a previous simulation step.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Glossary: S
Sample time
Step size for digital controller.
Schematic
Simplorer module for the graphical model definition.
Screen colors
Colors used to display a system quantity online during the simulation in an active element or the
ViewTool.
Section
Part of the SML description containing model information for the Simplorer sub simulators.
Selection
Part of the genetic algorithm. It selects individuals of the active generation to be transferred to the
next generation by specific selection criteria.
Simulation model
Graphical or text description of a real system using modeling capabilities of a simulation system.
Simulation parameter
Parameter used to control the simulation process.
Simulator
Software for the analysis of the behavior of a system using a simulation model.
Simulator coupling
Direct link of one or more simulators using the Simplorer simulation backplane technology.
Simulator interface
Special software interface for the integration of external simulators into Simplorer.
.smd file
Simplorer ModelAgent file containing data of a model library.
SML
Simplorer Modeling Language.
Simplorer Terminology26-21
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
SML Editor
Simplorer application for the definition of models in SML language.
.sml file
File containing the model description of a simulation run.
Solver
Algorithm for the computation of model components without the capability to roll back steps.
.ssc file
Simplorer project file, containing all information about a project.
.ssh file
Simplorer schematic file, containing the graphical representation of a model and simulation data.
State
Basic element of state graphs that defines properties and activities in a certain system state.
State graph
Combination of states and transitions. A modeling language for discontinuous systems.
Status line
Displays the present state of a Simplorer application.
Subsheet
A Simplorer sheet embedded into another Simplorer sheet, connected via pins, automatically creates a macro inside the .sml file.
Sub-simulator
Simplorer internally coupled simulator.
Sub-skeleton
File containing rules for the creation of a non-Simplorer description language.
Symbol editor
Simplorer application for the creation or modification of a symbol.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Symbol level
Group of drawing elements of an animated symbol displayed together depending on the input value
or the user activity on a interaction pad.
Symbols
Graphic representations of elements on the Schematic, placed from the model library. They can be
modified using the symbol editor.
Synchronization
Update of a schematic from an older Simplorer version to the latest symbols.
Synchronization
Detection of events in a state graph.
System quantity
Any quantity computed by the simulator.
System simulation
Simulation level, where models from different physical domains are simulated at the same time.
System variable
Predefined variables inside Simplorer that cannot be used as a variable name or a specifier.
Simplorer Terminology26-23
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Glossary: T
Task
Analysis to be performed as part of an experiment. It can contain several simulation runs.
Template
Predefined structure for a Simplorer application.
TEND
Simulation parameter that determines the simulation end time.
Time limited
A license of the simulation software for a certain (limited) time period.
Time step
Present time step size used to compute the next results vector.
Toolbar
Bar in a Simplorer application to perform activities in the application.
Total fitness
The total fitness of an optimization run.
TR simulation
Transient analysis of a model.
TR simulator
Simplorer simulator for TR analysis.
Transition
Cross over condition between the input and output state(s) of a state graph, defined by a logical
expression.
Transition component
Basic structure of a state machine. It comprises a transition and all of its input and output states.
Trapezoid Formula
Numerical algorithm used inside Simplorer.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Glossary: U
UDMinit
Section of the C/C++ interface for the model initialization.
UDMMain
Section of the C/C++ interface containing the model computation algorithm.
User management
Saves the workspace for individual users.
Simplorer Terminology26-25
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Glossary: V
Version report
Special mode inside the Simplorer help system to create a detailed information file about the
present Simplorer installation.
VHDL
Very high-speed integrated circuit Hardware Description Language for digital systems.
VHDL-AMS
Very high-speed integrated circuit Hardware Description Language - Analog Mixed Signal. Extension of VHDL, a hardware description language for digital and analog systems.
VHDL-AMS simulator
Simulator integrated with Simplorers backplane that calculates simulation models described in
VHDL-AMS.
ViewTool
Program to display results online during the simulation outside the Schematic.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Glossary: W
Window elements
Windows in the workspace containing various information. They can be turned on or off by the
user.
Work flow
Graphic representation of a sequence of activities that are performed on a certain data set.
Simplorer Terminology26-27
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Glossary: Y
YMAX
Maximum value used for display in the online graphic using the View tool.
YMIN
Minimum value used for display in the online graphic using the View tool.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Index
Symbols
15
.amat file 103
.vbs file format 2
**(function) 11
#DEFINE 10
#INCLUDE 8
#SET 9
Numerics
3D Report,Spinning 16
A
aborting analyses 46
about symbols 44
ABOVE attribute 65
ABS (function) 17
Absolute Value
Function 17
AC analysis
adding 12
AC analysis settings 12
AC analysis setup 10
AC solution options 26
Accsess function to a characteristic (func-
tion) 16
ACOS (function) 14
ACOSH (function) 14
active analysis
setting 19
adding 16
Maxwell 2D Finite Element Model Subcircuit 16
adding a DC analysis 15
Adding a subcircuit 66
adding a transient analysis 8
Adding a VHDL-AMS Model 99
adding an AC analysis 12
Adding Datasets Manually 76
adding solution options 28
advanced analysis types (Optimetrics) 6
AFTER 57
Alias for file names 67
Alias for model library name 67
Aligning Component Dialog Box Elements
31
analyses
changing parameter values during 47, 48
clean stop 47
Index--1
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
monitoring 45
Optimetrics 1
pausing 47
re-solving 157
resuming 47
Simplorer 5
starting 1
stopping 46
analysis setup
deleting 20
editing 19
enabling or disabling 19
renaming 20
analysis types
advanced (Optimetrics) 6
standard 5
Analyze All command
using 3
AND (logic operator) 11
ANF file format 58
ANG_DEG (function) 17
ANG_RAD (function) 17
Ansoft Simplorer Desktop 5
ANSYS Esterel Component Subcircuits 96
ANSYS RBD Component Subcircuits 86, 92
Arc cosine
Function 14
Arc sine
Function 14
Arc tangent
Function 14
Arc tangent2
Function 14
ARCHITECTURE statement 10
archiving projects
Projects"archiving 65
ARG (function) 17
Argument of complex number
Function 17
Arithmetic Functions 15
Arithmetic operators 11
VHDL-AMS 52
Arranging symbol elements 48
ASIN (function) 14
ASINH (function) 14
ASSERT statement
Concurrent 30
Sequential 34
Assignment operators 11
VHDL-AMS 63
ATAN (function) 14
ATAN2 (function) 14
ATANH (function) 14
Attribute declaration 26
Attributes 54
For quantities 55
For signals 56
auto-save file 63
B
backplane
simulator 2
Basic Dynamic IGBT
Characterizing 79
batchoptions file format 34
block diagram simulator processing 2
BLOCK statement 28
Bookmarks 80
BREAK statement
Concurrent 33
Sequential 42
bulk conductivity 104
bus entry objects
drawing 30
C
calculation range
setting for a cost function 42
Index-2
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
editing 35
components
editor 29
removing unused definitions 73
Components Tab 10
Concurrent statements 27
ASSERT statement 30
BLOCK statement 28
BREAK statement 33
Component instantiation statement 31
Concurrent procedure call statement 30
Concurrent signal assignment statement
31
PROCESS statement 29
configuration files
setting options 20
configuring AC simulations
guidelines for 10, 11
configuring DC simulations
guidelines for 14
Configuring libraries 6
connectivity
checking 27
CONSTANT declaration 23
constants
predefined 10
constraints
setting linear 86
context-sensitive help 2
control elements
add to Component Dialog Box 3
controlling simulations 45
Controls Menu
Component Dialog Wizard 54
conventions
design 1
Conversion
From degrees electrical to seconds
(funtion) 17
From degrees to radians (function) 17
From radians to degrees (function) 17
Conversion Functions 17
copy command
for report and trace definitions 57
copy solution options 30
copying
subcircuits 65
Copyright and Trademark Notices 60
COS (function) 14
COSH (function) 14
Cosine
Function 14
cost function
adding 39
plotting results vs. iteration 91
setting a goal 39
setting the calculation range 42
specifying solution quantity for 42
viewing results vs. iteration 91
count
setting for sweep definitions 6
coupling model files
locating 81
creating
rcustom report templates 16
Creating a Model and Component from the
Current Schematic 95
creating a new schematic 1
Creating Plots On Schematic 36
Creating Simulation Models 13
custom report templates
creating 16
D
Data object declarations 22
CONSTANT declaration 23
FILE declaration 24
Index-4
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
SIGNAL declaration 23
VARIABLE declaration 24
Data table units 27
data tables, creating 25
Data types 53
dataset expressions
adding 76
Dataset preview plot properties 77
Datasets
Adding Manually 76
Importing 77
datasets
adding 76
modifying 78
DC analysis
adding 15
DC analysis settings 15
DC analysis setup 13
DC Bias Values
Viewing 15
DC solution options 26
ddt (function) 15
decade count sweep definitions 6
Declarations 19
default variable value
overriding for a parametric setup 8
DEFINE command 10
definitions
removing unused 73
definitions folder 10
definitions,updating from the library 7
DEGEL (function) 17
Deleting
Bookmarks 62, 79
deleting
projects 72
deleting an analysis setup 20
deleting reports 69
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
display behaviors
component dialog box 39
display types, of reports 19
Displaying pins 24
Displaying properties. 28
distributed analysis 13
licensing 39
distributed machine configurations
editing and creating 40
distribution criteria
setting for statistical setups 70
DOT attribute 5
Download from Server 71
DSO configurations 39
Dynamic Coupling SubCircuit
Maxwell Capacitance 33
Maxwell Inductance 31
Q3D SML 43
RMxprt 40
dynamic coupling subcircuit
adding 9
E
Edit Menu
Component Dialog Wizard 54
editing
materials 103
symbol, schematic 44
editing an analysis setup 19
Editing component properties 35
Editing Pin Properties 58
editing solution options 29
editor
component 29
model 36
script 36
Electric Rule Check 27
electric rule check 27
enabling an analysis setup 19
Index-6
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
.asmp 45
.asmpresults 45
.smd 45
.ssc 45
.ssh 45
files
auto-save 63
Simplorer 45
finite element subcircuit 14
fixed variables
setting values during analyses 85
Fractional part of a value (function) 17
free values
using for non-conservative input nodes
27
Functions 18
Arithmetic 15
Complex 17
Conversion 17
Exponential 16
Rounding 17
Trigonometric 14
functions
selecting for a quantity 59
standard mathematical 13
valid operators 10
G
general solution options 27
Getting Started guides 59
goal
setting a complex value 43
setting a real value 43
setting a single value 43
setting as variable dependent 44
setting for cost function 43
setting weight of 39
using an expression for 44
goal weight
setting 39
grid
Compoent Dialog 31
lines 6
snapping 6
visibility 6
Guidelines for configuring AC simulations
10
guidelines for configuring AC simulations 11
guidelines for configuring DC simulations 14
H
help
about conventions used 3
on context 2
on dialog boxes 2
on menu commands 2
HFSS Component Subcircuits 83
Hiding pins 24
hierarchical components
saving to libraries 19
hierarchical schematic 65
hierarchical schematics 71
High Performance Computing integration 51
HPC integration 51
Hyperbolic arccosine
Function 14
Hyperbolic arcsine
Function 14
Hyperbolic arctangent
Function 14
Hyperbolic cosine
Function 14
Hyperbolic sine
Function 14
Hyperbolic tangent
Function 14
I
Identifiers 49
Index -7
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
IF (function) 18
IF statement
Sequential 37
Simultaneous 44
If-Else (function) 18
IM (function) 17
Imaginary part
Function 17
Import / Update Models Options 10
Import Components dialog box 91, 115
Imported Solution Data, Importing 71
importing 58
Importing Datasets 77
Importing Plot Data 70
Importing Setup Data 32
Importing Simulation Models 91
Importing Solution Data 31
INCLUDE command 8
initial displacement
setting 64
inserting designs 47
INT (function) 17
Integer part of a value (function) 17
Integration
Function 15
intrinsic functions 11
Intrinsic Variables 12
introduction to Simplorer 1
IronPython 1
K
keyboard shortcuts 47
Keywords
VHDL-AMS 57
L
Lande G factor 104
layout editor window 34
Layout Menu
Component Dialog Wizard 54
LayoutToolbar
Component Dialog Wizard 56
Legacy Libraries
Translating 9
legacy Simplorer projects
opening 55
translation overview 55, 56, 10
Legacy translation
terminal mismatch 52
legacy translation
identical parameter names 53
schematics with Simulink component 54
SML header 52
legends in reporrts 13
libraries
Configuring 6
search path precedence 6
library
precedence 3
structures and usage precedence 3
License Agreements
Third-Party 64
licensing
distributed analysis 39
linear constraints
deleting 87
modifying 87
setting 86
linear count sweep definitions 6
linear step sweep definitions 6
Listing schematic design elements 49
Literals 50
LN (function) 16
Loading component example projects 12
local variables
adding 6
units in definition 6
locating coupling files 81
Index-8
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
lock controls
Component Dialog Wizard 31
LOG (function) 16
Logarithm 16
Logical operators 11
VHDL-AMS 52
LOOKUP (function) 16
LOOP statement 39
M
Macro Model Export 8
magnetic loss tangent 104
magnetic saturation 104
markers
delta between markers 49
material 104
bulk conductivity 104
dielectric loss tangent 104
Lange G factor 104
magnetic loss tangent 104
magnetic saturation 104
name 104
properties, editing 104
relative permittivity 104
materials
creating 103
editing 103
materials editor
using 103
Mathcad model subcircuits 8
MATLAB
use as optimizer 24
MATLAB Optimizer 24
MATLAB/Simulink coupling
Add Simulink Component 4
Creating a MATLAB/Simulink model 6
Simulation 8
MAX (function) 15
maximum number of iterations
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Index-10
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
O
octave count sweep definitions 6
old Simplorer projects, opening 55
Online Help for Components 12
On-sheet report
adding an 61
modifying an 61
opening in a new window 62
opening
example projects 49
existing projects 48
legacy Simplorer projects 55
recent projects 48
operator precedence 10
Operators
VHDL-AMS 52
operators
arithmetic 11
assignment 11
comparison 11
logic 11
Optimetrics
overview 1
tuning a variable 80
types of analyses 1
viewing analysis results 90
Optimization
Fast Calculation-Update 76
norms, L1, L2, and Max 52
optimization 15
MATLAB use 24
optimization analysis
choosing variables to optimize 16
optional settings 30
overview 15
plotting cost vs. iteration results 91
setting up 30
viewing cost vs. iteration results 91
optimization setups
adding 30
adding a cost function 39
procedure for defining 30
setting a goal 39
setting the max. iterations 37
solving 1
optimizers 15
Options
CModel Editor 64
text editor 84
options
setting in Simplorer 3
OR (logic operator) 11
output parameter
adding to sensitivity setup 60
plotting results 92
setting calculation range 62
specifying solution quantity for 61
viewing results in table format 92
output variables
deleting 67
specifying 66
P
Package
Body 12
Declaration 11
Visibility 13
Packages 10
For multidomain modeling 15
Standard 13
Page Menu
Component Dialog Wizard 54
page setup
schematic editor 8
page,schematic 63
panning the schematic view 11
Param Values Tab 16
Index -11
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Parameter Qualifiers 3
Parameter Types 7
parameterization
material properties 104
parameterizing
See variables 1
parameters
assigning variables to 15
reserved parameters 39
parametric analysis
setting up 4
solution quantity results 11
parametric setup
adding 4
overview 4
parametric setups
adding sweep definitions 5
adding to a design 5
plotting solution quantity results 90
setting the calculation range 11
solution quantity results 11
solving 1
solving before optimization 50
solving before sensitivity analysis 64
solving during optimization 51
solving during sensitivity analyses 65, 75
specifying a solution setup 9
specifying solution quantities for 9
using results for optimization 50
using results for sensitivity analysis 64
parametric sweep
distributed analysis 13
paste solution options 30
pattern search optimizer 15
pause 47
pausing a script 5
personallib 3
pin
properties, editing 58
Pin List dialog box 58
Pins
displaying and hiding 24
placing components 12, 13
Plot Data, Exporting 69
Plot Data, Importing 70
plots
distribution results for statistical analyses
93
parametric solution quantity results 90
Plots on Schematic, Creating 36
Plotting Imported Solution Data 71
polar plots
creating 2D 22
creating 3D 29
creating radiation patterns 23
information displayed 23
Pop Up 71
port
interface 33
placing 33
Port Options 10
Post-processing Data
updating 68
Power
Function 11
precedence
library usage 3
Predefined Constants 10
Predefined variables 9
primary sweep
modifying the variable 59
specifying for 2D rectangular plots 20,
31, 33
specifying for 3D polar plots 30
specifying for 3D rectangular plot 29
specifying for data tables 26
Index-12
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
saving active 62
saving automatically 63
saving copies 62
saving new 61
saving notes 98
Properites Dialog Symbol Tab 25
Properties
Parameter Values Tab 21, 23
properties
defining for components 35
displaying 19
pin, editing 58
report backgrounds 11
Properties Dialog
Property Displays Tab 28
Properties Dialog Box 19
Properties Dialog General Tab 25
property window 14
Property Window General Tab 17
Property window Symbol Tab 17
Push Down 71
Q
Q3D SML Coupling SubCircuit 43
Qualifier List 3
qualifiers
parameter 3
Quantities 63
quantities
plotting S-parameter 64
Quantities tab
Properties window 18
Quantity attributes 55
quasi newton optimizer 15
queued simulations
removing 50
viewing 50
Quick Probe command 37
Index -13
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
R
radiation patterns, creating 23
RAM
Increasing on 32-bit Windows 3
RAMP attribute 64
Range functions 11
RE (function) 17
Real part
Function 17
recording a script 2
recording a script to a project 2
rectangular plots
creating 2D 19, 30
creating 3D 28
of parametric solution quantity results 90
Reistry Key pathname
seaching for 28
Relational operators
VHDL-AMS 52
relative permittivity 104
REM (function) 17
remote analysis 6
Removing Unconnected Wires 27
renaming an analysis setup 20
renaming projects 72
renaming solution options 30
Report Data 68
Report Dialog Box 2
report templates
creating 16
report window 37
reporter window types 4
Reports
background properties 11
updating 68
reports
adding traces 43
creating 1
Index-14
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
S
saving
tuned states 81
saving a component dialog box 51
saving projects 61
active projects 62
automatically 63
new projects 61
saving copies 62
scheduler
proxy interfaces 146
Schematic
adding an on-sheet report 61
modifying an on-sheet report 61
opening an on-sheet report in a new window 62
schematic 1
adding a page 63
change page properties 63
Circuit, creating and editing 1
connecting pages 63
grid setup 6
hierarchical 1, 65, 71
multipage, setting up 63
page 1, 63
page setup 8
placing components 12
removing a page 64
System, creating and editing 1
schematic editor
starting 4
Schematic Editor Users Guide 1
schematic editor window 33
Schematic export 78
script editor window 36
scripting
IronPython 1
scripts
pausing 5
recording 2
recording to a project 2
resuming 5
running 3
stop recording 2
stopping execution of 5
sdt (function) 15
Search Tab 13
secondary sweep
modifying the variable 59
specifying for 3D polar plots 30
selecting solution options 18
sensitivity analysis
choosing variables to include 17
optional settings 59
setting up 59
sensitivity setups
adding 59
adding an output parameter 60
procedure for defining 59
setting initial displacement 64
setting the max. iterations 60
Sequential Mixed Integer NonLinear Programming (SMINLP) Optimizer 15
Sequential Nonlinear Programming (SNLP)
Optimizer optimizer 15
Sequential statements 33
ASSERT statement 34
BREAK statement 42
CASE statement 38
EXIT statement 41
IF statement 37
LOOP statement 39
NEXT statement 41
NULL statement 42
Procedure call statement 37
RETURN statement 41
Index -15
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Signal assignment 64
Signal assignment statement
Concurrent 31
Sequential 36
Signal attributes 56
SIGNAL declaration 23
Signals 63
Signals tab
Properties window 19
Simple simultaneous statement 44
Simplorer
command-line options 49
introduction 1
setting options 3
Simplorer Analyses 5
Simplorer conventions 1
Simplorer Design
setting up 46
Simplorer General Options 9
Simplorer Modeling Language 1
Simplorer Simulation toolbar 46
Simulation
MATLAB/Simulink coupling 4, 6, 8
simulation
VHDL-AMS 4
Simulation models
creating 13
importing 91
simulation models
characteristics 22
Simulation Options 76
simulations
changing parameter values during 47, 48
clean stop 47
controlling 45
monitoring 45
pausing 47
re-solving 157
Index-16
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
resuming 47
running Optimetrics 1
starting 1
stopping 46
Simulator
Solvabilty 65
simulator
block diagram 2
circuit 2
state graph 3
simulator backplane 2
Simulator Performance slider
using 25
Simulink component
legacy translation 54
Simulink model subcircuits 3
Simultaneous procedural statement
Statement 47
Simultaneous statements 43
CASE statement 45
IF statement 44
NULL statement 48
Simple simultaneous statement 44
Simultaneous procedural statement 47
SIN (function) 14
Sine
Function 14
SINH (function) 14
SIWave Component Subcircuits 82
size controls
Component Dialog Wizard 34
Sizing Component Dialog Box Elements 31
slider
Simulator Perfomance 25
SML Header Options 28
SML header translation 52
Smoothing, Network Data Explorer 41
snap to grid 6
SNLP optimizer
setting Min and Max focus 49
Solution Options 22
AC 26
DC 26
General 27
Transient 22
solution options
adding 28
copy 30
deleting 30
editing 29
paste 30
renaming 30
selecting 18
solution progress
monitoring 48
solution quantity
calculation range for optimization 42
calculation range for parametric setups 11
calculation range for sensitivity 62
calculation range for statistical 69
plotting parametric setup results 90
specifying for cost function 42
specifying for output parameter 61
specifying for parametric setups 9
specifying for statistical setups 68
Solution setup options 7
solution setups
choosing for a parametric analysis 9
solutions
after modifying the model 157
monitoring 45
pausing 47
re-solving 157
resuming 47
starting 1
stopping 46, 47
Index -17
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Solvability 65
solving 1
batch solution 49
parametric setup before optimization 50
parametric setup before sensitivity analysis 64
parametric setup during optimization 51
parametric setup during sensitivity analysis 65, 75
solving remotely 6
Sorting Block components 47
S-parameters
plotting quantities 64
spectral 4
Spice Compiler Options 10
Spinning a 3D Report 16
SQRT (function) 15
SQU (function) 15
Square
Function 15
Square root
Function 15
standard analysis setup options 7
standard analysis types 5
Standard mathematical functions 13
Standard Toolbar
Component Dialog Wizard 55
starting variable value
overriding for optimizations 46
overriding for sensitivity 62
overriding for statistical 74
state graph simulator processing 3
Statements
Concurrent 27
Sequential 33
Simultaneous 43
statistical analysis
choosing variables to include 19
Index-18
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Functions 18
Procedures 17
SUBTYPE declaration 21
sweep definitions
See variable sweep definitions 4
sweep variables in reports
modifying values 59
symbol
schematic, creating and editing 44
schematic, editing 44
symbol editor
grid setup 6
Symbol Elements
Arranging 48
symbols
about 44
Sync # column 6
Synchronize Design dialog box 72
synchronizing sweep definitions 6
syslib 3
System constants 9
T
TAN (function) 14
Tangent
Function 14
TANH (function) 14
templates for reports
creating 16
terminal mismatch 52
Test Machines
Distributed Analysis Machines dialog 43
testing a component dialog box 49
Text editor options 84
The 65
Third-Party License Agreements 64
Time step guidelines 8
T-junction Getting Started guide 59
toolbar
Simplorer Simulation 46
Toolbars
SheetScan 81
toolbars
overview 41
Tools
external 43
Top Menu Bar 39
trace characteristics 49
Traces
display properties 46
traces
adding to reports 43
categories 64
copy and paste definitions 57
removing 58
Traces dialog box 1
Trademark Notices 60
transient analysis
adding 8
timestep guidelines 8
transient analysis settings 8
Transient analysis setup 7
transient solution settings 22
Translating Legacy Libraries 9
translating legacy projects 55, 56, 10
Trigonometric Functions 14
tuning
choosing variables to tune 18
tuning analysis
resetting variable values after 82
reverting to a state 82
saving a state 81
setting up 80
TYPE declaration 21
Type declarations
NATURE 22
SUBTYPE 21
Index -19
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
TYPE 21
U
Unconnected Wires
Removing 27
Undoing commands 48
Unit Handling 21
unit suffixes 18
units
as part of variable definitions 4
expected 21
SI 20
used 21
UpdateRegistry command
setting or removing option values 23, 26,
28
Updating post-processing data 68
Updating Reports 68
used units 21
User Defined Documents (UDDs) 111
User Defined Outputs 75
userlib 3
Using
Bookmarks 80
using a component dialog box 52
using Check Component Dialog 50
using Show Component Dialog 49
using the materials editor 103
V
Values on sheet 67
Variable assignment statement 36
VARIABLE declaration 24
Variable names 2
variable sweep definitions
adding to parametric setups 5
manually modifying 7
overview 4
setting values to solve 6
synchronizing 6
tracking changes to 7
viewing all design variations 5
variable-dependent goal 44
Variables
in expressions 11
Intrinsic 12
Reserved 12
VHDL-AMS 63
variables
adding local variables 6
adding project variables 4
assigning to parameters 15
choosing to optimize 16
choosing to tune 18
defining sweep definitions 5
deleting from design 9
deleting from project 6
dependent 5, 7, 10
excluding from Optimetrics analyses 84
including in sensitivity analysis 17
including in statistical analysis 19
min. and max values for optimization 46
min. and max values for sensitivity analysis 63
output 66
overriding default value for a parametric
setup 8
overview 1
predefined 9
setting default value 5
setting distribution criteria 70
setting fixed values 85
setting range of values 63
setting range of values for optimization
46
tuning 80
types in HFSS 1
updating to optimized values 51
Index-20
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
VBScript
.vbs file format 2
Vector inputs on sheet 68
VHDL-AMS
Concurrent statements 27
Design units 8
Sequential statements 33
Simultaneous statements 43
Standard Packages and Types 13
VHDL-AMS Model Description
Exporting 94
VHDL-AMS Model Editor 99
VHDL-AMS simulation 4
View/Edit Material dialog box 104
Viewing DC Bias Values 15
W
WAIT statement 34
window
property 14
result 37
window items
Component Dialog Wizard 53
wire
selecting 26
wire properties
displaying 26
wiring 25
Wizard
Component Dialog 1
Wizard Menu
Component Dialog Wizard 53
WORK library 66
Z
zooming the schematic view 11
Index -21
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.
Index-22
Release 14.5 - SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates.