Add Array of Values for a Design Variable
A design variable can also be defined with an array of values.
- Click Maxwell 3D or Maxwell 2D > Design Properties.
- Click the Add Array.... button.
- Specify a variable Name in the text field.
- Select a Unit Type and Units from the drop-down menus.
-
To specify the array with Edit in Grid Selected, you can begin by clicking the Append Rows... button to display the Number of Rows dialog box. (For Edit in plain text field, see below.)
- Specify a value and click OK.
- When you have completed the array, click OK to close the dialog,
Alternatively, right-click the design name in the Project Manager tree, and then click Design Properties on the shortcut menu.
The Local Variables Properties window appears. From the Properties window you can Add, Add Array, Edit... or Remove variables. This section describes Add Array. Use the links for descriptions of Add, Edit, and Remove.
Any existing design variables are listed in the Properties window with the name followed by cells for Value, Unit, Evaluated Value, Type, Description, and Read-only and Hidden check boxes. A Show Hidden check box on the lower right of the Properties window controls the appearance of any hidden variables.
Initially, leave the Value radio button selected until you have defined a variable. The other radio buttons let you enable regular variables for Optimization/Design of Experiments, Tuning, Sensitivity or Statistics. Array variables cannot be enabled for optimetrics use.
The Add Array window displays.
This displays a list of indexed data rows in the Add Array dialog box. You can type any data value in the cells. If you enter alphanumeric text in a cell, it must be delimited by double quotes. You can edit the rows relative a row selection by clicking buttons to Add Row Above, Add Row Below, or Remove Row. All cells must contain a value.
The Array variable is listed in the Design Properties dialog as a local variable. The array variable value field includes the array contents in brackets with the unindexed data values delimited by commas.
If you elected to use the Edit in plain text field option in the Add Array dialog, the bracketed and comma delimited format is used.