Adding Variables
Define variables to create a parametric model.
A model is parametric when it is created using variable expressions. When a variable expression is modified, any items dependent on that variable are re-evaluated and automatically updated. It is the recommended construction method when creating a model, but not compulsory.
Defined variables are stored as part of the model in the .cfx file.
-
Open the Create Variable dialog using one of the
following workflows:
- On the Construct tab, in the Define group, click the Add Variable icon.
- On the model tree, a right-click context menu is available on Variables. From the list, select Add Variable.
- On the model tree, click the icon. From the drop-down list, select Add Variable.
- Press # to use the keyboard shortcut.
-
Create the following variables:
- Optional: Add the variable comments.
Name Expression Comment freq 9e9 The operating frequency. lambda c0/freq*1000 Free space wavelength. pin_r 1 Pin radius. wg_h 10 Waveguide height. wg_w 20 Waveguide width. Tip:- Click Add to keep the Create Variable dialog open and add more variables.
- Click Create to add a variable and close the Create Variable dialog.