opal-rt maxwell model extraction · 2019. 9. 5. · © 2012 ansys, inc.1 october 28, 2014 opal-rt...

14
© 2012 ANSYS, Inc. October 28, 2014 1 OPAL-RT Maxwell Model Extraction Dr. Emad Dlala

Upload: others

Post on 26-Jan-2021

2 views

Category:

Documents


0 download

TRANSCRIPT

  • © 2012 ANSYS, Inc. October 28, 2014 1

    OPAL-RT Maxwell Model Extraction

    Dr. Emad Dlala

  • © 2012 ANSYS, Inc. October 28, 2014 2

    Overview: ANSYS Toolkit

    • ANSYS Toolkit is supported in Windows and Linux in • Toolkit allows to build GUI through IronPython Scripting • GUI can be created through the Ansys UI Toolkit package or .NET Windows

    Forms. Documentation for Ansys UI Toolkit is available through ANSYS channels. Electric machines Design Toolkit is scripted using the Ansys UI Toolkit which is compatible with Windows and Linux

    • Toolkit functions similarly as the Run Script option except that Toolkit keeps Menu items

    Overview Electric Machines Toolkit

  • © 2012 ANSYS, Inc. October 28, 2014 3

    Electric Machines Design Toolkit

    Supports all types of (permanent-magnet) synchronous machines - motors and generators

    Overview Electric Machines Toolkit

  • © 2012 ANSYS, Inc. October 28, 2014 4

    • Place the directory Electric Machines Design Toolkit into the Maxwell2D (and/or Maxwell3D) directory of your AnsysEM installation or Personal library. Your directory should look like this (but necessarily as this one)

    C:\Program Files\AnsysEM\AnsysEM15.0\Win64\Maxwell\syslib\Toolkits\Maxwell2D\Electric Machines Design Toolkit

    or

    C:\Users\edlala\Documents\Ansoft\PersonalLib\Toolkits\Maxwell2D\Electric Machines Design Toolkit

    Creation of Toolkit Directory

    Note: Maxwell 2014 is by default installed

    under a new directory AnsysEM

    Overview Electric Machines Toolkit

  • © 2012 ANSYS, Inc. October 28, 2014 5

    • If not already exist, create a folder UserDefinedOutputs under syslib or userlib or Personallib

    • Place the directory Electric Machines Solutions into the UserDefinedOutputs directory of your Maxwell R15 (2014) installation. Your directory may look like this (but not necessarily as this)

    C:\Program Files\AnsysEM\AnsysEM15.0\Win64\Maxwell\syslib\UserDefinedOutputs\Electric Machines Solutions

    or

    C:\Users\edlala\Documents\Ansoft\PersonalLib\UserDefinedOutputs\Electric Machines Solutions

    Creation of UDO Directory

    Note: Personallib ensures

    read/write permissions

    Note: Maxwell R15 (2014) is by default

    installed under a new directory AnsysEM

    UDOs Electric Machines

  • © 2012 ANSYS, Inc. October 28, 2014 6

    • Create User Define Solution

    • Select Average and RMS Solutions item from the menu

    Example 1: Extraction of Opal-RT Model

    1

    Maxwell 2D -> Results -> Create User Defined Solution -> Electric Machine Solutions -> Average and RMS Solutions

    OPAL-RT– Example

  • © 2012 ANSYS, Inc. October 28, 2014 7

    • Select a probe (any transient quantity e.g., Moving1.Torque)

    • Specify properties:

    Example 1: UDO

    2

    1

    1. Poles = 8 2. DC resistances for each

    phase 0.04 ohm 3. Click OK (Keep defaults

    properties for the rest)

    OPAL-RT– Example

  • © 2012 ANSYS, Inc. October 28, 2014 8

    • Go to Maxwell2D > Toolkit > Electric Machines Design Toolkit > Efficiency Map Computation

    Example 1 – Toolkit

    OPAL-RT– Example

  • © 2012 ANSYS, Inc. October 28, 2014 9

    • Enter User Input Data in the General Tab as shown

    • RMS line current (maximum RMS value)

    • RMS L-L Voltage (if not known, enter a value greater than 0)

    • Keep all other settings in the General Tab as default

    Example 1 – Input

    OPAL-RT– Example

  • © 2012 ANSYS, Inc. October 28, 2014 10

    • Click on the Sweep & Map Tab

    • Enter 1 for Total Number of Electric Periods Simulated

    • Enter 40 for Number of Time Steps per Electric Period

    • Enter 20 for Number of Angle Sweep Points

    • Enter 1 for Number of Speed Points

    • Keep all other settings in the Sweep & Map Tab as default

    Example 1 – Input

    OPAL-RT– Example

  • © 2012 ANSYS, Inc. October 28, 2014 11

    • Click on the Simulation Tab

    • Check box for Create ECE and OPAL-RT Data

    • Keep all other settings in the Simulation Tab as default

    • Keep all settings on other tabs as default

    • Click Create Map

    Example 1 – Input

    OPAL-RT– Example

  • © 2012 ANSYS, Inc. October 28, 2014 12

    • Keep Maxwell running until you see data plots of the Torque Speed Curve.

    • Computation time will depend on the number of cores and CPU speed.

    • In this case, we used a 4-core DSO setup. This allows 4 transient solutions to solve simultaneously and greatly cuts down on total simulation time.

    Example 1 – Simulation

    Total Simulation of motor and generator modes including the parametric sweep took 23mins

    OPAL-RT– Example

  • © 2012 ANSYS, Inc. October 28, 2014 13

    Example 1 – Results

    OPAL-RT– Example

    • The results will be written under a directory created by the toolkit

    • A file named OpalRT_Matlab_Model_1.mat will be found under a subdirectory of the design name

  • © 2012 ANSYS, Inc. October 28, 2014 14

    Example 1 – Results

    OPAL-RT– Example

    • Open OpalRT_Matlab_Model_1.mat in Matlab