Exporting a Circuit From a Parametric Solution

To create a circuit from parametric solutions, you first need to set up and solve a problem that contains a parametric sweep. Any force, torque, and matrix solutions are automatically available to use in the equivalent circuit. Other solutions can be treated as extra inputs/outputs if they have been added as calculations in the parametric setup — that is, extra inputs/outputs come from the parametric table.

Note: In Maxwell, global variable names begin with the $ character. However, when you are creating an ECE .sml model, this character causes the circuit to fail when importing it to Twin Builder. To resolve this, when the circuit is exported, the $ character is replaced by the _ character. For example, the project variable $MyVar is converted to _MyVar.

To export a circuit from a parametric solution:

  1. Click Maxwell 2D or Maxwell 3D > Export Equivalent Circuit > From Parametric Solutions.
    The General window appears, allowing you to specify basic information about the circuit model.
  2. Note:   This command is enabled only when the following two criteria are met:
  3. Select one of the following from the Model Type drop-down menu depending upon the Design Type (2D or 3D):
    • Linear Motion
    • Rotational Motion
    • Transformer
    • Matrix
    • Lookup Table
  4. Select a Parametric Setup from the drop-down menu.
  5. Select a Solution Setup from the drop-down menu.
  6. Select a Matrix Setup from the drop-down menu.
  7. Select a Force Setup or a Torque Setup from the drop-down menu, depending on which parameter you have set up for your design.
  8. For the force or torque setup, select X, Y, or Z as the Component.
  9. Select either Ampere-Turns or Amperes as the Current Source Variables option.
  10. Click Next.
  11. The Table window appears, allowing you to set up the inputs and outputs for the circuit equivalent. Most of the values have been automatically filled in, based on your design. You can keep the defaults or change the selections and values for the various parameters.

  12. To apply deep spline interpolation to all inputs in the circuit PWL model, select the Use Bezier Interpolation check box.
  13. To export the data to a table that you can edit and use to export an equivalent circuit at a later time, do the following:
    1. Click Export Table. The Save As dialog box appears.
    2. Select a location, and type a name in the File name box.
    3. Click Save.

    The Table window reappears. The file that is created contains header rows with information such as name, i/o, and type, plus all of the actual data. You may export the table to view or use in external programs. You can also modify the exported table file and then re-import it to create an equivalent circuit. On import, the information in the header rows is used as default settings in the circuit export dialog box.

    Note: The Table window is the last step for the Lookup Table model type. For all other model types, there is one more step: the Terminals window.

  14. For model types Linear Motion, Rotational Motion, Transformer and Matrix, click Next.
  15. The Terminals window appears, allowing you to set up terminals, which are nodes with "through" and "across" data. Most of the values have been automatically filled in, based on your design. You can keep the defaults or change the selections and values for the various parameters.

  16. Enter a Scaling Factor in the text box. The scaling factor is applied to all output quantities and can be used, for example, to scale data from partial models that take advantage of symmetry/
  17. Optionally, specify the Model depth for 2D XY models for scaling.
  18. Optionally, for 2D XY Rotational Motion model type, specify the Skew angle.
  19. When a stator core or rotor core is skewed for a 2D Rotational Motion model, the flux linkages and torque of the look-up table will be modified based on the skew angle θk .

    For any output of the look-up table, f(θ), where θ is rotor position, the modified output will be

  20. Specify the Terminals:
  21. To specify a coil terminal:

    1. Select a Source for the Flux or Charge, depending on whether your design is mechanical or electrical.
    2. Enter a Resistance.
    3. Enter the number of Turns in the coil winding.
    4. Enter the number of Branches.

    To specify a mechanical terminal:

    1. Select the Force (or Torque) variable from the drop-down menu.
    2. Select the Position variable from the drop-down menu.
    3. Optionally, for Rotational Motion model type, select Use rotational velocity.
  22. Click Finish to export the equivalent circuit.